Hi,
I'm having some troubles with the code below:
NSSortDescriptor *idDescriptor = [[[NSSortDescriptor alloc] initWithKey:key ascending:ascending] autorelease];
NSArray *sortDescriptors = [NSArray arrayWithObject:idDescriptor];
NSArray *orderArray = [array sortedArrayUsingDescriptors:sortDescriptors];
NSMutableArray *result = [NSMuta...
Hey,
I want to use a JQuery "check all" function in a form like this:
http://jetlogs.org/jquery/jquery_select_all.html
My problem is I am generating my form from a php script, and I don't know exactly how many checkboxes I will have in advance.
I use the "array" naming convention to be able to get all the selected checkbox values in m...
Hi there,
I'm using Powershell 1.0 to remove an item from an Array. Here's my script:
param (
[string]$backupDir = $(throw "Please supply the directory to housekeep"),
[int]$maxAge = 30,
[switch]$NoRecurse,
[switch]$KeepDirectories
)
$days = $maxAge * -1
# do not delete directories with these values in the path
$...
I have a range of 67 numbers, something like 256 through to 323, which i want to add to an existing array. it doesnt matter what the values are.
looking for code to itterate through those numbers to add them as keys to the array without adding each one at a time
...
Hello everyone,this is very basic...but please help me if anybody know about this...
Can an array be called as a const pointer?
...
I have the following module:
module add_8bit ( output wire co,
output wire [7:0] r,
input wire ci,
input wire [7:0] x,
input wire [7:0] y );
I am trying to use it via the following code:
wire rbit [7:0];
wire onebit [7:0];
wire twocomp [7:0];
wire tco, tci;
add_8bit t9 (...
When i populate an ArrayAdapter, at first the rows in the visible part of the screen will be blank except the first row, which will be an undesired result. Then when I scroll it down and then come back all the screen will be set correctly...please some one tell me why this behavior happens ?
Code :
homeListView = (ListView) fin...
I have an application in VBA that gives to my VB.Net dll one bi-dimensional variant. It is a an array, in which every component is a another array containing two positions.
I want to get this two-position array. When I am using VBA I can access directly the data from each position by doing:
dataArray(index, 0) or dataArray(index, 1)
...
I want to statically allocate the array. Look at the following code, this code is not correct but it will give you an idea what I want to do
class array
{
const int arraysize;
int array[arraysize];//i want to statically allocate the array as we can do it by non type parameters of templates
public:
array();
};
array::array():array...
using the below code for decoding json
$categories = json_decode($data);
$categories = $categories->data;
where i get this
{"categories":[{"id":1,"name":"Utilities","apps":897,"iconurl":"http:\/\/static.apptrackr.org\/caticons\/uti.jpg"},{"id":2,"name":"Productivity","apps":477,"iconurl":"http:\/\/static.apptrackr.org\/caticons\/pro....
Hey all,
When I run the flex application, I'm expecting to see 25 records from users table of my database in a list component, and all I see is 25 of this: [object User]
I tried to follow this tutorial: http://www.adobe.com/devnet/flashcatalyst/articles/building_datacentric_app_flashcast_flashbuilder_03.html but as he is using ColdFu...
I believe I am having a memory issue using numpy arrays. The following code is being run for hours on end:
new_data = npy.array([new_x, new_y1, new_y2, new_y3])
private.data = npy.row_stack([private.data, new_data])
where new_x, new_y1, new_y2, new_y3 are floats.
After about 5 hours of recording this data every second (more t...
Is there a syntax for declaring anonymous arrays in BeanShell? I would like to write code analogous to the following:
print(Arrays.asList("cat", "dog"))
but BeanShell fails to find the "asList" method, presumably because it doesn't understand varargs.
As a workaround, I could write:
print(Arrays.asList(new Object[]{"cat", "dog"}))
...
I'm getting the error:
wrong argument type nil (expected Data)
Here's my code (names have been changed to protect the innocent ;) ):
old_foos.each do |foo|
foo.bars.each do |old_bar|
if new_foo.bars.any? {|new_bar| new_bar.name == old_bar.name} #assume new_foo is properly set
check = 1
end
end
end
if check == 1
d...
I came with below solution but I believe that must be nicer one out there ...
array = [ 'first','middle','last']
index = array.length
array.length.times { index -= 1; puts array[index]}
...
hello i'm new to flex builder and trying to populate an array from an external file consisting of a list of strings.
how do i go about that? should i use some sort of a data object?
...
I'm not sure how to explain this, but why isn't this code pulling the correct image and icon file? It continues to pull the wrong info at the line 35, which makes all other data one node behind. Even when I delete the three locations below, it still gets the xml wrong. Why would it be doing this?
I verified the xml data and made sure al...
How do you set a variable equal to an array in Java. For example I have a class for input and a class for calculations which hold arrays. when I accept the user input from the input class how do I pass that variable into the array of my calculation class?
...
how can i cycle thru a local folder to add all (or some) files names and references to that file in an array using actionscript 3.0?
var fileArray:Array = new Array();
for (var item:Object in "../myFolder/")
{
trace(item.name);
fileArray.push(item);
}
something like this?
...
I want to have a static array with arrays in it. I know you can make a normal array like this:
int test[] = {1,2,3,4};
But I want to do something like this (Xcode gives me a bunch of warnings and stuff):
int test[] = {{1,2}, {3,4}};
In python it would be:
arr = [[1,2], [3,4]];
What's the proper way to do this?
...