All Questions

1317
votes
15answers
338213 views

What does ** (double star/asterisk) and * (star/asterisk) do for parameters?

In the following method definitions, what does the * and ** do for param2? def foo(param1, *param2): def bar(param1, **param2):
274
votes
4answers
28049 views

Do DOM tree elements with ids become global variables?

Working on an idea for a simple HTMLElement wrapper I stumbled upon the following for Internet Explorer and Chrome: For a given HTMLElement with ID in the DOM tree, it is possible to retrieve th...
44
votes
6answers
45607 views

Table name as a PostgreSQL function parameter

I want to pass a table name as a parameter in a Postgres function. I tried this code: CREATE OR REPLACE FUNCTION some_f(param character varying) RETURNS integer AS $$ BEGIN IF EXISTS (select...
71
votes
3answers
44689 views

Are PostgreSQL column names case-sensitive?

I have a db table say, persons in Postgres handed down by another team that has a column name say, "first_Name". Now am trying to use PG commander to query this table on this column-name. select * fr...
415
votes
5answers
103100 views

What does the Star operator mean?

Possible Duplicate: What does *args and **kwargs mean? What does the * operator mean in Python, such as in code like zip(*x) or f(**k)? How is it handled internally in the interpreter? ...
30
votes
5answers
6127 views

Is there a spec that the id of elements should be made global variable?

If I have a <div id='a'> in Chrome then in javascript I can do a.stuff() (it's like as if a is a global variable). However this does not work with FireFox - I will need to use document.getEleme...
9
votes
1answers
7951 views

How to use EL with <ui:repeat var> in id attribute of a JSF component

I have following code: <ui:repeat var="class2" value="#{bean.list}" varStatus="status"> <h:form id="#{class2.name}"> <h:outputText value="#{class2.name}" /> </h:form>...
54
votes
8answers
40440 views

How to preserve identifierForVendor in ios after uninstalling ios app on device?

I am developing an iOS app which calls web-service for login and at that time i send login credentials to web server along with vendor identifier (identifierForVendor),to identify device uniquely for ...
197
votes
7answers
61309 views

Legal identifiers in Java

I am reading for SCJP and I have a question regarding this line: Identifiers must start with a letter, a currency character ($), or a connecting character such as the underscore ( _ ). Identifie...
5
votes
3answers
1174 views

identify groups of linked episodes which chain together

Take this simple data frame of linked ids: test <- data.frame(id1=c(10,10,1,1,24,8),id2=c(1,36,24,45,300,11)) > test id1 id2 1 10 1 2 10 36 3 1 24 4 1 45 5 24 300 6 8 11 I n...

Previous Next