array (25,061)


arrays Unloading a ByteArray using Actionscript 3

arrays Unloading a ByteArray using Actionscript 3

How do I forcefully unload a ByteArray from memory using ActionScript 3? I have tried the following:// First non-working solution byteArray.length=0; byteArray=new ByteArray();// Second non-wor…


Decoding T-SQL CAST in C#/VB.NET

Recently our site has been deluged with the resurgence of the Asprox botnet SQL injection attack. Without going into details, the attack attempts to execute SQL code by encoding the T-SQL commands in…


Generate list of all possible permutations of a string

How would I go about generating a list of all possible permutations of a string between x and y characters in length, containing a variable list of characters. Any language would work, but it should b…


What is the meaning of the type safety warning in certain Java generics casts?

What is the meaning of the Java warning? Type safety: The cast from Object to List is actually checking against the erased type List I get this warning when I try to cast an Object to a type with ge…


Using 'in' to match an attribute of Python objects in an array

I don't remember whether I was dreaming or not but I seem to recall there being a function which allowed something like, foo in iter_attr(array of python objects, attribute name) I've looked over the…


algorithm Efficiently get sorted sums of a sorted list

You have an ascending list of numbers, what is the most efficient algorithm you can think of to get the ascending list of sums of every two numbers in that list. Duplicates in the resulting list are…


Are PHP Variables passed by value or by reference?

Are PHP variables passed by value or by reference?…



php Using object property as default for method property

I'm trying to do this(which produces an unexpected T_VARIABLE error): public function createShipment($startZip, $endZip, $weight=$this->getDefaultWeight()){} I don't want to put a magic number in…


language agnostic Pass by reference or pass by value?

When learning a new programming language, one of the possible roadblocks you might encounter is the question whether the language is, by default, pass-by-value or pass-by-reference. So here is my ques…


arrays What is the best way to iterate through an array in Classic Asp VBScript?

In the code below For i=LBound(arr) To UBound(arr) What is the point in asking using LBound? Surely that is always 0.…




string how from java object example value javascript list get