I have returned object from signature device and when i make quick watch on it, it told me that its an array of long and when i pass it to web method in my code behind (vb.net) it gives me nothing.
i need some help..
note: i'm using an activeX to capture the signature from the device.
this is javascript code :
function OnSave() {
...
I frequently create nonparametric statistics (loess, kernel densities, etc) on data I pull out of a relational database. To make data management easier I would like to store R output back inside my DB. This is easy with simple data frames of numbers or text, but I have not figured out how to store R objects back in my relational database...
Hi everyone -
I was reading the ctypes tutorial, and I came across this:
s = "Hello, World"
c_s = c_char_p(s)
print c_s
c_s.value = "Hi, there"
But I had been using pointers like this:
s = "Hello, World!"
c_s = c_char_p()
c_s = s
print c_s
c_s.value
Traceback (most recent call last):
File "<pyshell#17>", line 1, in <module>
c...
What's the proper way to tell if an object is allocated in Objective-C?
I've seen in sample code (and this seems to work only if it's never been allocated):
if(!Object) { ... }
I've also tried setting Object = nil, but that's a tedious process each time, gets a little bit annoying.
But if I have an object, and I want to allocate ...
I've asked this before for Java, but this applies specifically to J2ME.
Is there a way in J2ME to convert a string, such as:
{"name":"MyNode", "width":200, "height":100}
to an internal Object representation of the same, in one line of code?
The problem with such JSON libraries, is that they generate JSONObjects from strings, not...
Hi guys,
I don't know how i can share the same data between two tab bar items.
One tab uses nsfetchedresultscontroller and the other table is just a normal view that should use the same data as my fetchedresultscontroller.
If i had two normals views, i would just make my object a singleton, and let the tableview and normal view use the...
I am confused here. Which is lighter object? is orgWithNullImageCollection or orgWithImageCollection ? in the below code. Or is it lighter object concept at all. Please find the code snippet below for the reference.
class Orgnization
{
public Collection ImageCollection { get; set; }
}
Organization orgWithNullImageCollection = new...
I have a PHP object coming from an outside source (using PEAR's XML_Serializer). Some variables have dashes in the name like:
<?php
$company->{'address-one'};
I just want to know what the best way to go through this object and rename the object properties with underscores replacing the dashes so I don't have to deal with the sill...
I am been having trouble counting the number of objects in this array in server-side javascript.
Below is a JSON object which was parsed out using the array that I am trying to count.
NOTE: The object is in object form, not JSON string form.
JSON Object:
[{"dataSymbol":"21135103","isHoliday":false,"isIPO":false,"lastTradeTime":400...
What truth value do objects evaluate to in Python?
Related Questions
Boolean Value of Objects in Python: Discussion about overriding the way it is evaluated
...
I found that PHP5 isn't calling a __destruct() function if I have the following setup:
class test {
__destruct()
{
echo 'hehe';
exit;
}
}
header('Location: http://test.com/');
exit;
It never calls the destruct function
...
Very simple question, what would be your way of storing 100 KB - 2 MB objects in memory? Object is made of 3 doubles and two strings (both mostly under 5 chars long). Would using struct instead of class be any better?
EDIT: I don't know why I said double, it is float .. :S
...
I know I can loop through each level of the object, but I would like a more simple approach to this.
QueryResult Object
(
[queryLocator] =>
[done] => 1
[records] => Array
(
[0] => SObject Object
(
[type] => type_1
[fields] =>
[s...
I've been struggling for a couple of days now with the following...
I'm trying to find a way to instantiate a number of objects which I can name via a raw_input call, and then, when I need to, look at its attributes via the 'print VARIABLE NAME' command in conjunction with the str() method.
So, to give an example. Let's say I want to ...
Look at this piece of code:
MessageParser parser = new MessageParser();
for (int i = 0; i < 10000; i++) {
parser.parse(plainMessage, user);
}
For some reason, it runs SLOWER (by about 100ms) than
for (int i = 0; i < 10000; i++) {
MessageParser parser = new MessageParser();
parser.parse(plainMessage, user);
}
Any ideas ...
Hi,
I have just started a new job out of uni and I am learn OO PHP we have a custom framework where I work and my boss was talking about teaching me how to use JQuery with objects. I am also unsure whether he means objects from PHP classes or whether JQuery has its own object of some type. I am not sure exactly what he means by this. I...
I'll explain with pictures from Eclipse Debugger
I have an Class called "FieldContext", (I can't edit it, it's compiled in the Java OVal API)
Within "FieldContext" on the eclipse variable tab are "CompileTimeType" and "field"
Q1 Is there a legend for the icons in the variables tab? like what the red box with the "F" means + yellow d...
Consider
Class A has two constructors new A(int), new A(int, String)
also
it has a method show()
Then given a statement like,
A a1= new A(4);
A a2= new A(3, "foo");
and later in code (or in some methods where these object were passed)
a1.show();
a2.show();
new A(3).show();
and
new A(2,"bar").show();
If I wanted to differen...
class GuiMaker(Frame):
#more code
def __init__(self, parent=None):
Frame.__init__(self, parent)
self.pack(expand=YES, fill=BOTH) # make frame stretchable
self.start() # for subclass: set menu/toolBar
self.makeMenuBar() # done here: build menu-...
I wanted to know what tools (preferably free) can be used to layout a collection of objects and their relationship - simple relationship like members referring each other, inheritance, attributes et.al. I would prefer a tool with which I can create and update he diagram as quickly as possible.
I'm not familiar with UML, but it's probabl...