I am preparing for my interview tomorrow: I need answer for this question
how can u print 1 to 10 & 10 to 1 by using recursion and with single variable
i want to call a batch file from another batch file and also want to pass a variable to it. lets say i want to call b.bat from a.bat. my b.bat copies files. so while calling it from a.bat , i want to pass the path of the destination folder to b.bat.
At the moment I have a regular expression that looks like this:
^(cat|dog|bird){1}(cat|dog|bird)?(cat|dog|bird)?$
It matches at least 1, and at most 3 instances of a long list of words and makes the matching words for each group available via the corresponding variable.
Is there a way to revise this so that I can return the result for each word in the string without specifying the number of groups beforehand?
^(cat|dog|bird)+$
works but only returns the last match separately , because there is only one group.
Hello!
I have a PHP-variable called $go_Adress which contains the adress I need to get a map and a street view from. How do I do that? I have created an api-key but else I don't know how to do it!
Hope you can help.
the only thing i know about this subject is...
in PHP 5, when a variable used without assigned any value, then it a warning will be shown.
Is there any other difference between this 2 different version ?
Hey,
How can i pass (and access) using C, not c++, variable parameters into a function?
void foo(char* mandatory_param, char* optional_param, char* optional_param2...)
thanks
/fmsf
Hey,
How can i pass (and access) using C, not c++, variable parameters into a function?
void foo(char* mandatory_param, char* optional_param, char* optional_param2...)
thanks
/fmsf
Hello,
How would I pass a Python variable to the Bash shell? It should work like this:
foo="./RetVar.py 42"
Replace the double-quotes with `s
I have tried printing and sys.exiting the result, but to no avail. How would I accomplish my goal?
I am Using Selenium RC in C# My application has 3 Captha image in Different registration pages. i have a Huge script i will run it on night hours(when i am off). Hence i feel it will be better if i can capture the last displaying captcha image value and store it in to a variable so that i can input on the relevant field. Is it Possible ?
I'd like to get the current directory during a GNUmake file run put into a make variable.
What is the syntax to do this? Something like this?
DIR := $(PWD)
I am using BubbleEvent to give events from a web user control to its parent (which is a Default.aspx with code behind page).
I would like to use BubbleEvent to not only pass the sender and event, but also an integer or another variable.
Is there a way to add a parameter to the BubbleEvent, or is there a different way I should be approaching this?
I would like to convert this /bin/sh syntax into a widely compatible Windows batch script:
host=`hostname`
echo ${host}
How to do this so that it'll work on any Windows Vista, Windows XP, and Windows 2000 machine?
To clarify: I would then like to go on in the program and use the hostname as stored in the variable host. In other words, the larger goal of the program is not to simply echo the hostname.
I originally had the variable cpanel named url and the code would not return anything. Any idea why? It doesn't seem to be used by anything else, but there's gotta be something I'm overlooking.
import urllib2
cpanel = 'http://www.tas-tech.com/cpanel'
req = urllib2.Request(cpanel)
try:
handle = urllib2.urlopen(req)
except IOError, e:
if hasattr(e, 'code'):
if e.code != 401:
print 'We got another error'
print e.code
else:
print e.headers
print e.headers['www-authenticate']
What is the general meaning and where did it start to have variables with leading or trailing underscores?
ex: _varName and varName_
I have always thought a leading underscore indicated the variable was a pointer but I don't know where I got this idea. Recently I have seen these naming conventions used in Java which makes that reasoning completely wrong.
What happens, step by step, when a variable is returned. I know that if it's a built-in and fits, it's thrown into rax/eax/ax. What happens when it doesn't fit, and/or isn't built-in? More importantly, is there a guaranteed copy constructor call?
edit: What about the destructor? Is that called "sometimes", "always", or "never"?
I need to be able to execute a shell command through LaTeX [*] and have the resulting output available for use later on in the form of a LaTeX 'variable' (e.g., via a subsequent \newcommand command). If necessary a temporary file could be used to hold the output, although I would like to avoid this. I have been able to use
\immediate\write18
to invoke a bash command before, but this was only used to write to a temporary file.
[*] I realise that the -shell-escape flag must be set for this to be allowed
i'm try to change an image's imageurl on an aspx asp.net c# page based on a variable from #var=1 (or 2, or 3, or 4)
i know nothing about javascript unfortunately which is what i've been told i need. can anyone point me at a novice based script i can try to learn via implementation?
is it correct to unset the session variable for a particular index as the vay whole session is made unset in PHP?
I know this works: unset($_SESSION['bannersize'])
But does this works ? : unset($_SESSION['bannersize'][3])
or is there any other way to unset any particular desired index of the session and then again rearrange the values inside it to remove the empty index..?
I want to refer to a static Java variable in my styles.xml, is that possible? Here's a pseudo-xml example:
<style name="Artwork">
<item name="android:background">@drawable/border_{Constants.MY_COLOR}</item>
</style>
boolean variable have only two specified values ,"true" or "false"
How does it stored in VM?
Hmm...This is my first question here.Thank you all for answering me.
:)
Hi,
i have this code:
if(sfContext::getInstance()->get('form_signin')){
//...
}
but im getting this error:
The "form_signin" object does not
exist in the current context.
Any right way to check if a variable saved in sfContext is set or not ?
Regards
Javi
here's my problem: I have multiple classes that are part of the same package and they need access to a certain file path
String filePath = "D:/Users/Mine/School/Java/CZ2002_Assignment/src/"
Rather than declaring the same Filepath in every single class, is it possible to simply have a "global" type of variable of this FilePath so that all classes can access it and I only need to declare and update it once.
Thanks
How is the scope of a variable/identifier maintained in the symbol table of a c/c++ compiler.
Please suggest some good links and books to know the how compiling process of c/c++
program is implemented for better understanding.