All Questions

909
votes
38answers
283406 views

Parameterize an SQL IN clause

How do I parameterize a query containing an IN clause with a variable number of arguments, like this one? SELECT * FROM Tags WHERE Name IN ('ruby','rails','scruffy','rubyonrails') ORDER BY Count DES...
129
votes
6answers
110481 views

Passing Parameters JavaFX FXML

How can I pass parameters to a secondary window in javafx? Is there a way to communicate with the corresponding controller? For example: The user chooses a customer from a TableView and a new window ...
339
votes
8answers
575990 views

What does int argc, char *argv[] mean?

In many C++ IDE's and compilers, when it generates the main function for you, it looks like this: int main(int argc, char *argv[]) When I code C++ without an IDE, just with a command line compiler,...
397
votes
32answers
767384 views

Get url parameter jquery Or How to Get Query String Values In js

I have seen lots of jQuery examples where parameter size and name are unknown. My url is only going to ever have 1 string: http://example.com?sent=yes I just want to detect: Does sent exist? Is i...
633
votes
4answers
1048438 views

What are the Xms and Xmx parameters when starting JVMs?

Please explain the use of Xms and Xmx parameters in JVMs. What are the default values for them?
148
votes
11answers
61777 views

What does the construct x = x || y mean?

I am debugging some JavaScript, and can't explain what this || does? function (title, msg) { var title = title || 'Error'; var msg = msg || 'Error on Request'; } Can someone give me an hint, ...
1042
votes
7answers
1306338 views

How are parameters sent in an HTTP POST request?

In an HTTP GET request, parameters are sent as a query string: http://example.com/page?parameter=value&also=another In an HTTP POST request, the parameters are not sent along with the URI. Where ar...
63
votes
7answers
31278 views

Parameter evaluation order before a function calling in C

Can it be assumed a evaluation order of the function parameters when calling it in C ? According to the following program, it seems that there is not a particular order when I executed it. #include ...
1863
votes
13answers
995877 views

Set a default parameter value for a JavaScript function

I would like a JavaScript function to have optional arguments which I set a default on, which gets used if the value isn't defined. In Ruby you can do it like this: def read_file(file, delete_after ...
217
votes
13answers
661430 views

What is "String args[]"? parameter in main method Java

I'm just beginning to write programs in Java. What does the following Java code mean? public static void main(String[] args) What is String[] args? When would you use these args? Source code an...

Previous Next