Hi,
I need to decode and specifically target the first url only in this array:
[{
"longDateTime":"3:00pm Saturday 21 August 2010",
"shortDateTime":"3:00pm Sat",
"url":"\/Pics\/ob\/7d778-127a9294cec0-12a929779a2b.Img.jpeg"
},{
"longDateTime":"2:00pm Saturday 21 August 2010",
"shortDateTime":"2:00pm Sat",
"url":"\/Pics\/ob\/7d778-12a9275d...
Is it possible to persist a class in session that I define in VBScript in classic asp:
<script runat=server language=vbscript>
Class clsCourse
Private Sub Class_Initialize
' Statements go here.
End Sub
End Class
dim oCourse
set oCourse=new clsCourse
</script>
How would I persist oCourse in session and recover it from session?
I ...
What I know is
\\.\
It is used when we open a device's symbolic link in user mode
\??\
It is used when we open a device in kernel mode
\\?\
long file name
\\
UNC path.
But I want to know more detail.
Could you explain more certainly about these prefixs.
...
Hi everybody,
right now i am at a point where i feel that i need to improve my javascript skills because i already see that what i want to realize will get quite complex. I've iterrated over the same fragment of code now 4 times and i am still not sure if it's the best way.
The task:
A user of a webpage can add different forms to a web...
I'm developing a kind of Graphical free activity diagram/circuit editor. I have to make it with C# or C++. I prefer C# though. What do you suggest I should use? Should I use the WPF (Windows Presentation Foundation)? or just add the presentation namespace to a normal Windows Application project or do you suggest a different method. I nee...
In Javascript, I have an array with objects that looks like this:
var arr = [
{
value_1: 0,
value_2: 4,
encounter_bits: {
min_level: 8,
max_level: 12,
rarity: 20,
conditions: [1, 5]
}
},
{
value_1: 1,
value_2: 4,
encounter...
I have a function similar to this:
void foo(obj ary[], int arysize) {
for (int i = 0; i < arysize; i++)
ary[i] = obj(i, "abc");
}
And I call it like this:
obj array[5];
foo(array, 5);
It's supposed to populate the array with my objects. However, when it returns, the objects are garbage. It works with value types like i...
I have a Sleep class (object) and within that class a sleepInSeconds() method.
Is there any difference between doing this:
wait = Sleep()
wait.sleepInSeconds(10)
And doing this:
wait = Sleep().sleepInSeconds(10)
or
Sleep().sleepInSeconds(10)
Which is more correct (or 'Pythonic'), what kinds of problems could I run into with on...
I'm new to AS3. Learning how to create classes. Is comp = new HouseObjects creating a new class? Is comp creating an instance of the HouseObjects? I realize that this is inside public class TreeHouse. I'm thinking that HouseObjects, how I set it up is not a class...not sure what the correct way to set up classes and properties.
Also I n...
Hello,
How would I figure out where a specific item is in an array? For instance I have an array like this:
("itemone", "someitem", "fortay", "soup")
How would I get the index of "someitem"
Thanks,
Christian Stewart
...
I have a custom database class that I wrote myself, and I also have a user class and a site class.
The MySQL class has methods like this:
connect
query
clean
fetch
The user class:
register
login
logout
resetPass
The site class:
updateTopics
addTopic
addPost
addReply
etc.
These classes need to interface with a database, which i...
This is for a web application using struts.
I have an array of objects in my Form that gets listed in a table. A user can add/edit/delete from the table. How would I send the changed table back to the Action class?
Will I need to create a string or array of strings, and parse that into an object? Is there a way that java/struts handles...
Saw this in wikipedia, this is what happens when you traverse an iterator via a foreach loop:
These methods are all being used in a
complete foreach( $object as
$key=>$value ) sequence. The methods
are executed in the following order:
rewind()
while valid() {
current() in $value
key() in $key
next()
}
End of L...
I bumbed into one of those moments when I just lose the focus and start wondering on a silly question:
var a = {
b: "value"
}
What is the typeof 'b' and I don't mean the typeof "value", but the actual Key labeled as b?
background:
I started wondering about this when I had to create a key which is a string:
var a = {
"b": "value"...
Hi Everyone,
Setting default values is one of my favourite things to do when creating JavaScript applications. While working, i came across a bug that could have easily escaped me.
This is how the object is used.
var obj = new App({
imgs: [];
preload: false
});
This is how the object is defined.
...
I've run into an organizational problem with an application I am working on, on the Android platform. The application uses sensors as input and OpenGL as output.
The traditional method is something
like organizing the project into an
MVC where I have the main activity
class load an OpenGL view and a
sensor handling class and will then...
So i have this class that includes some custom functions named class.php
I have another file called config.php that includes
require('engine.class.php');
$engine = new engine;
config.php also requires functions.php to run like:
require('functions.php');
i have a function in functions.php that uses $engine eg:
function login($usern...
I have a form with a select box on it.
The linq entity has a selectList as a public property on it.
I'm currently excluding it from the entity like this
[Bind(Exclude = "taskDeadlineTime")]
I now want to add a second drop down, and I'm getting this error when I try to UpdateModel()
No parameterless constructor defined for this obje...
I am trying to start a method from my main() as a new thread with pthread:
int main(int argc, char** argv) {
pthread_t shipGeneratorThread;
Port portMelbourne;
pthread_create(&shipGeneratorThread, NULL, portMelbourne.generateShips(), NULL);
return (EXIT_SUCCESS);
}
The Port class has a function that generate...
in my application i get returned an array of objects and i am trying to access to access the object inside the array like this $array[0]->name but it doesn't work for some reason ,
i tried to access it like this - $var = $array[0]; $var->name and it shows me this error > Trying to get property of non-object
whats going on here ? why i ...