Java project in Eclipse: The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

This is an annoying Eclipse Bug which seems to bite now and then. See http://dev-answers.blogspot.de/2009/06/eclipse-build-errors-javalangobject.html for a possible solution, otherwise try the following; Close the project and reopen it. Clean the project (It will rebuild the buildpath hence reconfiguring with the JDK libraries)OR Delete and Re-import the project and if necessary do the above steps again. The … Read more

Checking to see if array is full

Since you are using array, the size of array is determined during compilation. Thus if your intention is to check whether current array’s index has reached the last array element, you may use the following condtion (possibly in a loop) to check whether your current array index is the last element. If it is true, … Read more

php get all url variables

The superglobal entry $_SERVER[‘QUERY_STRING’] has the query string in it. You could just append that to any further links. update: The alternate response on this page using http_build_query is better because it lets you add new variables to the query string without worrying about extraneous ?s and such. But I’ll leave this here because I wanted to mention … Read more

How do I open space-delimited file in Microsoft Excel?

Use the standard “Open” command. Then go to “Text Import Wizard” and choose that the original data type was delimited. You may need to go to a different step of the Wizard to specify that the delimiter is a space, but the Wizard does include the option of specifying what character the delimiter is.

Procedural and non-procedural query language difference

There is a myth that relational algebra notations are procedural and relational calculus notations are not. But every relation expression corresponds to a certain calculus expression with the same tree structure. So it cannot be procedural when calculus is not. You can implement/execute a query in either notation per its expression tree–or not. A (query) language is procedural when … Read more

Don’t understand static boolean behavior

static in this context means “local” (to the translation unit). There will be multiple copies of read_mess in your program, one per translation unit which is not the same thing as a header file. (In your case you can most likely approximate “translation unit” as .cpp or .c or .cc file). Probably what you meant to do was to declare an extern variable, or static class … Read more

What language is JavaScript written in?

Javascript is just a standard, more formally known as ECMAScript. It can be implemented in any language, just like any standard. Chrome’s Javascript engine, V8, is written in C++. From the project page: V8 is written in C++ and is used in Google Chrome, the open source browser from Google. V8 implements ECMAScript as specified in ECMA-262, … Read more