Android device does not show up in adb list

Looks like the installed driver was in bad state. Here is what I did to make it work: Delete the device from Device Manager. Rescan for hardware changes. List item “Slate 21” will show up with “Unknown driver” status. Click on “Update Driver” and select /extras/google/usb_driver Device Manager will find the driver and warn you … Read more

Why am I getting string does not name a type Error?

Your using declaration is in game.cpp, not game.h where you actually declare string variables. You intended to put using namespace std; into the header, above the lines that use string, which would let those lines find the string type defined in the std namespace. As others have pointed out, this is not good practice in headers — everyone who includes that header will also involuntarily hit the using line and import std into their … Read more

Explaining the ‘find -mtime’ command

The POSIX specification for find says: -mtimen The primary shall evaluate as true if the file modification time subtracted from the initialization time, divided by 86400 (with any remainder discarded), is n. Interestingly, the description of find does not further specify ‘initialization time’. It is probably, though, the time when find is initialized (run). In the descriptions, wherever n is used as a primary argument, … Read more

what does “>>>” mean in java?

The >>> operator is the unsigned right bit-shift operator in Java. It effectively divides the operand by 2 to the power of the right operand, or just 2 here. The difference between >> and >>> would only show up when shifting negative numbers. The >> operator shifts a 1 bit into the most significant bit if it was a 1, and the >>> shifts in a 0 regardless. UPDATE: Let’s average 1 and 2147483647 (Integer.MAX_VALUE). We can do the … Read more

References with text in LaTeX

Have a look to this wiki: LaTeX/Labels and Cross-referencing: The hyperref package automatically includes the nameref package, and a similarly named command. It inserts text corresponding to the section name, for example:

Get the current year in JavaScript

Create a new Date() object and call getFullYear(): Example usage: a page footer that always shows the current year:  Run code snippetExpand snippet See also, the Date() constructor’s full list of methods.

R: “Unary operator error” from multiline ggplot2 command

It looks like you might have inserted an extra + at the beginning of each line, which R is interpreting as a unary operator (like – interpreted as negation, rather than subtraction). I think what will work is Perhaps you copy and pasted from the output of an R console? The console uses + at the start of the line when … Read more

Categories R