Hi All,
I have application which allow users to create there on URL for a page on a particular domain.
What I want to achieve is to create URL having variable number of parameters separated by "/". For example:
www.mydomain.com/a
ww.mydomain.com/a/b
www.mydomain.com/a/b/c
and so on. After the root, everything would be considered as...
I have a makefile with the following code. I'm trying to set a variable in an if statement. It doesn't error, but %OPTION% just prints "%OPTION" (with only one percentage sign) and the $(OPTION) doesn't print anything. Please help
RELEASE_OR_DEBUG=debug
init:
SET OPTION=test
@echo test1 = %OPTION%
@echo test2 = $(OPTION)...
Suppose I have some XML like this:
<section name="SampleSection">
<item name="ScoredItem1">
<attributes>
<scored data_type="boolean" value="true"/>
</attributes>
</item>
<item name="UnscoredItem1">
<attributes>
<scored data_type="boolean" val...
Hi guys, how can I pass a string from PHP to Flash?
I need to pass this to flash,
$var = 'uid_'.$uid.'_'.'likes_'.$likes;
Any ideas on how I can accomplish this?
Thanx in advance!
...
I have associated my app with a UTI so that users can launch KML attachments. In the iPad app delegate of my universal app I can see the launchOptions and from these I get an NSURL for the file being launched. I want to store this as a global so that I can access it from elsewhere in my app, I am doing this using a singleton called Engin...
I've played with a lot of useful tools like HAML and LESS that gives CSS the capability of creating variables. I'm wondering why this feature wasn't included when CSS started. Is it too redundant or is not really necessary for some reason?
...
I have a Java game i'm creating and each window is a seperate JFrame
with its own components.
How would I get about calling variables from other .java programs?
Not quite sure how to do that.
...
can we access the hidden variables values in a controller's ActionResult if the hidden variable's value is set in javascript?
...
Hi,
I have two possibilities:
1) Store an object in a variable and use that variable in my code. But this uses memory to store the object right?
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
BOOL bool1 = [userDefaults boolForKey: key1];
BOOL bool2 = [userDefaults boolForKey: key2];
2) Don't store it in a vari...
Well there is two issues with the code below. Help with either of them would be greatly appreciated.
The first issue is that it doesn't like "(t.attribute==true)". It doesn't seem like me using a variable in that way. Are there any ways of getting around this?
The second issue, is again with the same variable, "("un" + attribute)", I r...
I've finally remembered what to ask. I never really got what : and ? do when a variable is being defined like this:
$ip = ($_SERVER['HTTP_X_FORWARD_FOR']) ? $_SERVER['HTTP_X_FORWARD_FOR'] : $_SERVER['REMOTE_ADDR'];
As you can see there is ? and : and ( )
Could anyone give me a brief detail about why and how they are used for?
Thanks...
Lets say I have a bunch of areas like:
joe is punching jim
joe is kicking jim
joe is spitting on jim.
and I wanted to find every case with joe is _ jim and completely change the order around. normally I would just do a wilcard search, and search and replace "joe is [^"]* jim". but what if i wanted to KEEP whatever the wildcard was an...
I want to copy and paste a C function I found in another program into my C++ program.
One of the function arguments uses the "this" pointer.
void cfunction( FILE *outfilefd, const VARTYPEDEFINED this);
The C++ compiler errors here on the function prototype:
error C2143: syntax error : missing ')' before 'this'
How do I make this...
Is it "better" to initialize AS3 class variables in the class constructor? Or can I just initialize them to their default value when I declare them at the top of my class? I ask because when there's a lot of class variables, it appears inefficient to declare them in one place and then initialize them in another when I could easily do b...
Hi,
I'm new to Rack and try to get my head around it running Ruby on Rails 3.0.0.beta4.
I'm starting a Rack app in the config.ru file but would like to use a variable there that is stored in my database. Is it even possible to get a database value back before the application is loaded or am I missing the point completely?
I'm using th...
So I know that you can wrap a function around another function by doing the following.
def foo(a=4,b=3):
return a+b
def bar(func,args):
return func(*args)
so if I then called
bar(foo,[2,3])
the return value would be 5.
I am wondering is there a way to use bar to call foo with foo(b=12) where bar would return 16?
Does this m...
Hi,
I have an array of buttons that when clicked on, opens or closes content on my site. I need to be able to track which one is open so that when I click on that button again, I will know whether or not to close the content.
Here's my array:
var imageOptions = ['.corporateNeeds', '.marketResearch', '.corpStrategic', '.employeeTrainin...
I am wondering about potential issues with – alternatives to - caching using an application variable. To preface, I have a custom application object that stores all application data in ONE application variable – the object organizes data in an XML cloud and stores the cloud in one variable for performance.
I am aware of DataSet caching,...
I have several fields, each one is like this:
field1
field2
field3
...
Using a loop with a counter, I want to be able to say fieldx. Where x is the value of the counter in that loop. This means if I have 6 entries in my array, fields1 - field6 will be given values.
Is fieldx possible?
...
How can I add letter to path?
For example if i have a path like 'c:\example2\media\uploads\test5.txt' (stored in a variable), but I need something like r'c:\example2\media\uploads\test5.txt', how can I add letter `r?
Because the function open() does not want to open the first path. When I try add path to function open() it gives me an ...