Meaning of statement in JS |
This won't wait for the document to be ready, this will execute the content
of the function immediately. Putting the function definition in parenthesis
makes it an expression, which returns a value being the function, making it
directly executable. This pattern is called an Immediately-Invoked Function
Expression (IIFE).
This is probably used in conjunction with a minifier like the Closure
Compiler.
Inside the function, document is a local variable. This makes it possible
for the minifier to reduce its name to a one or two character name.
Note also that all variables defined inside the function will be local :
they won't leak in the global scope, which may be interesting if this is
only part of the script.
|
In HTML5, please explain the meaning of '?' in the statement |
In HTML 5, nothing. It is just part of a URL.
In this case, it indicates the start of the query string, which a process
on the server may give special attention to.
It might also give no special meaning to it whatsoever, but be there just
so the URL is different to avoid older, cached versions of the same file
being reused after changes were made to it.
|
What's the meaning of this sql statement (order by count(*))? |
The result is to order by the column whose index is the count returned by
the inner query in the ORDER BY clause. Whoever wrote this, especially
without a comment, should be hanged by body parts important for
reproduction.
|
In this MySQL statement written in PHP, what is it meaning of ":" |
In this case, :2 refers to the third argument given to the function,
$this->thumbsPerPage, and :3 refers to $this->user['id']. It's not a
MySQL thing, just something that the DB::query function does.
|
What is the meaning of statement below that the declared type shall not be incomplete type |
That means you are not allowed to have:
static int arr[]; // This is illegal as per the quoted standard.
int main(void) {}
The array arris tentatively defined and has an incomplete type (lacks
information about the size of the object) and also has internal linkage
(static says arr has internal linkage).
Whereas the following (at file scope),
int i; // i is tentatively defined. Valid.
int arr[]; // tentative definition & incomplete type. A further
definition
// of arr can appear elsewhere. If not, it's treated like
// int arr[] = {0}; i.e. an array with 1 element.
// Valid.
are valid.
|
What is the meaning of this statement t=(input[i]=='t' || input[i]=='T'); |
The meaning is for each i th element:
If ith character is t or T. The (char)t variable will be assigned true i.e.
1. otherwise 0.
If (i+1)th character is h or H. The (char)h variable will be assigned true
i.e. 1 otherwise 0.
If (i+2)th character is e or E. The (char)e variable will be assigned true
i.e. 1 otherwise 0.
|
Warning: Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT |
There is no way to rewrite the sql to not throw that error message. Any
sort of order will throw that message as the slave might have different
rows then the master. mixed will solve it, as it will only switch to row
based replication when a statement is not safe to replicate with statement.
|
Meaning of .ui-"something" |
The classes are designed to create a visual consistency across an
application and allow components to be themeable by jQuery UI ThemeRoller.
http://api.jqueryui.com/theming/css-framework/
|
meaning of & in C++ |
This is bitwise AND operator. m & 1 evaluates to 1 if bit 0 is set and
every expression that is not 0 is true implicitly.
Following are equivalent expressions:
if ((m & 1) == 1) // bitwise AND is 1
if ((m & 1) != 0) // bitwise AND is NOT 0
if (m & 1)
However caution is required if testing more bits. For example m = 1:
if (m & 3) is true also, but the result is 1. Better is if ((m & 3)
== 3) in this case.
|
What is meaning of <> in MS-SQL? |
<> means not equal to in Transact-SQL.
Compares two expressions (a comparison operator). When you compare
nonnull expressions, the result is TRUE if the left operand is not equal to
the right operand; otherwise, the result is FALSE.
|
The meaning of << in groovy |
It means different things depending what is on the left hand side. The
simplest answer is that x << y compiles to x.leftShift(y), you need
to look at the JavaDoc of x's class to know what it will actually do.
The GDK adds implementations of leftShift to a number of core java classes,
for example to append to the end of a list.
Edit: looking more closely at the Spock documentation, the specific case
you've linked to appears to be something called a multiple variable data
pipe rather than a normal use of leftShift.
where:
[a, b, c] << sql.rows("select a, b, c from maxdata")
will run the test once for each row returned by sql.rows, assigning the
three values in the row to the three variables a, b and c.
|
Meaning of cin.fail() in C++? |
For line 7 and line 9, read the document.
while(cin.get() != '
'); // LINE 10
in the while, it tests whether the line cin.get() is an empty line, i.e,
containing just the new line.
|
what's the meaning of "x[] <- as.integer(x)" |
x[] <- as.integer(x)
It parses the contents of matrix x into integer, then stores it back into
x, as a matrix.
x[,] <- as.integer(x)
also works. But
x <- as.integer(x)
will lose the matrix structure.
|
NSDragOperationGeneric meaning |
Anything that makes sense for your app. In most cases, it's fine to treat
it as a synonym for NSDragOperationCopy.
In fact, I'm a bit surprised by the question. Usually,
NSDragOperationGeneric is the baseline for drag-and-drop. That is, when you
decide to support drag-and-drop in your view, whatever that means for your
view is what NSDragOperationGeneric represents. Then, the other drag
operations can be specializations or modifications of that. You ask
yourself "What does it mean for a drop to be a copy drop or a move drop
instead of just a normal drop?" and go from there. (In some cases, there's
no difference.)
|
Meaning of Event in php |
This article helped me understrand EventManager in ZF2:
The Event Manager is the component of the framework which allows you to
hook in to named events in your application.
There are an existing set of named events in the framework, such as the
dispatch event in controllers. You can also create your own as suits your
application’s purpose. That’s step one.
Then, you attach (or listen) to those events. When they fire – or are
triggered – your code interrogates the context of the event and responds
if needed.
reference:
http://www.maltblue.com/tutorial/zend-framework-2-event-manager-a-gentle-introduction
|
Underscore: meaning of '_:_' |
Short answer: They're assigning _ a value of _ in the data object. Just
like projects is assigned this.collection.models.
Longer answer: By doing this you're creating a local reference to _ so when
the program is executed it doesn't have to look as far up the scope tree to
find _. However, this really isn't needed as it most likely won't have any
visible impact on performance.
The thing is there are a million other much larger bottlenecks so you'll
most likely never notice the difference. For example, your example uses the
require.js test.js plugin which loads external files on demand. However,
that means before that text template can be used by your application it has
to successfully complete a GET request. Which means the application
probably has to wait anywhere from 10ms to 200ms be
|
Meaning of a Function |
This is basically what is says in pseudo code
if(year is divisible by 4 or 100) {
leapyear = true
} else if (year is divisible by 400) {
//this will never be hit because it would meet the first case
leapyear = true
}
|
What is this meaning "if( & 2)"? |
That's because Java does not implicitly case 0 to false.
In C++, 0 is false, so 1 & 2 = 0 which is false.
While in Java, 1 & 2 is still 0, but 0 cannot be treated as false, thus
the compiler told you there's a type mismatch.
|
CSS notation: the meaning of ">" |
Since IDs are unique, you can just do:
#splash {
/* stuff */
}
About your question:
html>body#splash
Will not work; try
html>body #splash
The > is basically the same this as a space, but selects only direct
children.
(I'm assuming you're trying to select #splash; that's how I read your
question. If you want to select body if #splash exists, then... well, you
can't.)
|
Meaning of ${} in javascript |
It's not you. :-) That's not valid JavaScript (the { triggers a syntax
error).
It could perhaps be a token for some pre-processor that replaces it with
something before the JavaScript is passed to the JavaScript engine.
|
Meaning of "." in printf |
In %.*s, the .* limits the number of bytes that will be written. If this
were written with a numeral included, such as %.34s, then the numeral would
be the limit. When an asterisk is used, the limit is taken from the
corresponding argument to printf.
From C 2011 (N1570) 7.21.6.1 4, describing conversion specifications for
fprintf et al:
An optional precision that gives … the maximum number of bytes to be
written for s conversions. The precision takes the form of a period (.)
followed either by an asterisk * (described later) or by an optional
decimal integer; if only the period is specified, the precision is taken as
zero.
|
Reserved bit meaning |
Reserved bits in data structures are those that have some special meaning
and are used internally.
Bit 3 of error code in in your example will be set if any reserved bits in
paging-related data structures were modified by your code. E.g. in 4 Mb
page directory entries on x86 bits 21 through 12 are reserved for use by
system and overwriting them is an error.
|
What is the meaning of =! in objective c |
A =!B is basically a boolean saying "set A to the opposite of B".
For example, you could do:
BOOL a = NO;
BOOL b = !a;
and b would then be YES.
Your line of code is basically flipping the state of the BOOL is_On, and
then the if statement block is being executed if the new state is YES,
otherwise the else block is being executed.
|
What's the meaning of xxxxx-1.apk? |
Basically, any file you download which has the same name as one already
available will get a number behind the name it has, which explains why you
have that number there.
It can be confusing if you got different versions for each apk and you
can't remember which one is the one you want to use.
For fixing it, you either have to delete the older ones that have no number
and/or a lower number in the file name, or make a list of what version you
gotten for each numbered and non-numbered file.
|
What is the meaning of this regexp? |
-[4-7] means the character - followed by one of the characters 4, 5, 6 and
7.
The first $ is escaped - so it indicates a $ in the input, whereas the
second $ is not escaped, and so it indicates the end of the string.
|
Meaning of # symbol |
why the next code has got # in class_eval?
this is string interpolation.
one example:
x = 12
puts %Q{ the numer is #{x} }
# >> the numer is 12
%Q Here
This is an alternative for double-quoted strings, when you have more
quote characters in a string.Instead of putting backslashes in front of
them.
|
Clojure: Meaning of ::tag |
The double-colon is the shorthand syntax for a namespace qualified keyword,
with the current namespace. It is ideal for preventing collisions with
external keyword based keys in hash-maps, such as having a :name and a
::name key in function metadata or comparing the :name vs ::name value of a
parameter.
Just like you would namespace a public function to both identify it and
prevent name conflicts, when exposing a custom keyword as a key or a value,
that could conflict would existing keywords, you should consider namespace
qualifying it.
|
Meaning of "#" when it is used like this href="#" |
You can use # to point to an ID on the page rather than redirect to a URL.
When you see stuff like "Click here to scroll to the bottom of the page`
The here href will be #bottomOfPage
http://jsfiddle.net/2q3NJ/
|
What is the meaning of null? |
Firstly, I suspect that's not your code - or it would throw a
NullPointerException. I suspect you've actually got:
s = s + strLine;
After that, it's very simple - concatenating any string with a null String
reference will give you null:
String x = null;
String y = x + "a";
System.out.println(y); // nulla
From section 15.18.1 of the JLS (string concatenation):
If only one operand expression is of type String, then string conversion
(§5.1.11) is performed on the other operand to produce a string at run
time.
Then from section 5.1.11:
If the reference is null, it is converted to the string "null" (four
ASCII characters n, u, l, l).
Note that your code is extremely inefficient at the moment - you should be
using a StringBuilder.
|
what is the meaning of arr[i]:0:14 in Pascal? |
It's a format for real numbers:
writeln( foo:N:M );
prints the value of foo in a field width of N and shows M decimal places.
So in C you'd use:
printf( "%N.Mf
", foo );
If N is is too small to hold the formatted value (given the size of M), it
will use the space it needs to print the number.
In Pascal, you may have N and/or M be variables. In that case, in C, you
could create the format string as follows:
char my_fmt[50]; // could pick a "smarter" length for the string; this is
just for example
sprintf( my_fmt, "%%%d.%df
", N, M );
printf( my_fmt, foo );
Or even simpler:
printf( "%*.*f
", N, M, foo );
|
Meaning of arr +1, *arr+1 , **arr+1 in 3D array |
Your answer is wrong. The first value for line 3 should be 112, not 114.
When you use arithmetic on a pointer, it changes the address by some number
of elements (of whatever size the array stores). When you use an array as
if it were a pointer, C will manage that for you.
When you use arr, the compiler will say you have a pointer to an array
holding two elements of type int[3][2]. So adding one to that means adding
sizeof(int[3][2]) which is 12. Here is a table to show this:
code element type ints per element bytes per element array
length
-----------------------------------------------------------------------------
arr int[3][2] 6 12 2
*arr int[2] 2 4 3
**arr int
|
meaning of "return this" |
return this returns the current object instance. I don't know what
HotOrNot class is, but it's clear that this method is defined in that
class. In the method, member variable ourHelper is initialised with a new
database helper and member variable ourDatabase is assigned a writable
database object from that helper - after which the instance of the class is
returned - most likely, so that the calls could be chained, e.g.
new HotOrNot(myContext).open().runQuery("some query text")
See the Java language specifications for more information on this keyword.
|
The meaning of RET in assembly |
It means RETurn, like a return in high level languages.
On most machines, it will pop the program counter's previous value before
entering the subroutine off of the stack and copy it to the PC's register.
For x86, the argument is the number of parameters on the stack. This
applies only if the convention used is to have the subroutine handle the
resetting the stack.
|
What is the meaning for the below code |
That is a way to get the reference to the GridViewRow from a DropDownList
from within it's SelectedIndexChanged event(for example). This works if the
DropDownList is in a TemplateField of a GridView.
But the better way is using the NamingContainer property.
For example:
protected void dropDownList1_SelectedIndexChanged(Object sender, EventArgs
e)
{
GridViewRow gvr = (GridViewRow)((Control)sender).NamingContainer;
}
It's better because it's less prone of errors. So the GridViewRow is still
the NamingContainer even if you would put this dropdown into a Panel
whereas the Parent approach would be incorrect then.
|
Meaning of "\cM?
?
" in Java |
It's a regular expression.
cM matches a Control-M or carriage return character
Matches a carriage return character
is a new line
? Matches the preceding character or subexpression zero or one time.
For example, "do(es)?" matches the "do" in "do" or "does". ? is
equivalent to {0,1}
Different operating systems have different ways to start a new line in
windows its /r/n in POSIX it's different. ec ect.
Your code is essentially removing all new lines and making everything on
one single line.
|
Can someone explain the meaning of ((.)$(.)) (==) 1 (1+) 0 |
The a1 is "just another type variable". It could mean anything, including
a, but doesn't necessarily mean anything. Most likely it is different from
a.
(==) is the "forced prefix" form of == the regular equality operator form
the Eq type class. Normally you'd write a == b, but that's just syntax
sugar for (==) a b, the prefix application of ==.
1 (1+) 0 doesn't mean anything in particular in this context, each of the
three subexpressions is an independent argument to "the owl", which
ultimately takes four arguments.
We can walk through the reduction.
((.)$(.)) (==) 1 (1+) 0
=== [ apply ]
((.)(.)) (==) 1 (1+) 0
=== [ implicit association ]
((.)(.)(==)) 1 (1+) 0
=== [ apply the definition: (f.g) x = f (g x) ]
((.) (
|
what's the meaning of this jquery if? |
This is just a buggy code. Using jQuery, $(something) always evaluates as
truish in a if statement (it's an object and it's not null).
If you want to test if there is at least one matching element, use
if ($(something).length) {
Note that when using jQuery functions, you don't have to test if there is a
match. There won't be any error if your reduce your whole code to
$('div[id="product_1"]').slideDown();
even if $('div[id="product_1"]').length is 0. The clean way is not to test.
|
Double 'at' symbol meaning in PL/SQL |
@@{url | file_name[.ext] } [arg...]
Runs a script. This command is almost identical to the @ ("at" sign)
command. When running nested scripts it looks for nested scripts in
the same path or url as the calling script. Only the url form is
supported in iSQL*Plus. The @@ command functions similarly to @ and
START.
Ref :http://docs.oracle.com/cd/B19306_01/server.102/b14357/ch12003.htm
|
c() function in javascript, meaning? |
In the HTML you provided, you'll see the following tag:
<script type="text/javascript"
src="http://static.storm8.com/im/js/global.js?v=330"></script>
Go to http://static.storm8.com/im/js/global.js?v=330 and you'll find the
following function definition:
function c(b,p) {
a='';s=String.fromCharCode;
for(i=0;i<b.length;i++) {if(p[i])a=s(b[i])+a;else a+=s(b[i]);}
return a;
}
|
Assembly, the meaning behind the colon ":" |
Those are memory addresses expressed in the segment:offset scheme. See e.g.
http://thestarman.pcministry.com/asm/debug/Segments.html
|