I'm surprised no body's mentioned the Leaf as a currency.
Specifically 1 deciduous forest equates to 1 ship's biscuit
This is crap. Either 'toIndex' actually means 'onePastToIndex', or the final if test should be if (toIndex >= arrayLen) .
Try calling this function with arrayLen=10, fromIndex=1, toIndex=10 -- no exception, despite the zero-based array's last element being index 9.
If you ask somebody to count from 1 to 10, do they stop at 9?
If you see the following prototype: int randomValue( int fromValue, int toValue), what is the highest value you would expect could be returned?
Identifiers should be named accurately! Bad identifiers like this make code unnecessarily difficult to read, and makes it easier for bugs to go unnoticed.
If the allegation is that Google copied this code, and they've replicated the bad names along with the trivial algorithm, it does seem likely they authored their version via cut & paste...
It might actually be correct, it depends on what's calling this method.
For example take either String.substring(begin,end) or String.subSequence(begin,end)
In either of those methods begin is the first inclusive index but end is the last exclusive one , so when you want chars 1..9 then begin is 1 but end is 10
There's plenty of api call's in there which follow the same pattern.
As I've never driven...
Cyanogenmod is doing a good job getting a more unified version of Android on many vendor's devices. I have several devices using it and it works well. (http://www.cyanogenmod.org/)
I have to agree. Currently running it on a Nexus 4 & 1st gen 7 as well as a 1st gen Kindle with no problems whatsoever.
Not all beer is carbonated with CO2. In fact most of the beer I drink isn't carbonated at all... i.e. true Bitter
The "healthier than water" part comes from hundreds of years ago when Beer was cleaner than water.
First one has been running for well over a year now connected to the Weather Station, uploading to various locations including twitter. The Register even picked up on this one as part of a 20 things to do with a pi.
The second is an NTP server using GPS as the time source.
The third is a pure experimental/dev PI.
I've got one more model B & two A's just waiting for a project.
Been meaning to setup a PI Cam on one to complement the weather station so that I get a sky camera (cloud cover by day, long exposure at night for meteor's etc.
As in asterisk which does run on a pi.
Not got round to using it myself but there's a plug in for that or even worse the - press 1 for thus, press 2 for that bit functionality.
Yes the TI-99/4A was my first computer & it did indeed have 16K of ram. It was even 16 bit which most people don't realise for a machine out in 1979/80!
A pity I didn't try it back then but there was a rudimentary genlock in the display circuitry which was why one of the system colours was called "Transparent"
With the young ones, I think you've been lucky & I've got the rest of them
As for the older ones, yes you can't get stuck with older technology. If you don't keep up it's quite easy to get left behind. Sometimes the problem is that they were held back, now that's a real problem & to me would be time to look elsewhere.
This isn't just in the US either, we have the same problem here in the UK.
Over the years I've seen loads of youngsters who straight out of university think they know everything until they get the sharp shock of reality.
Businesses go for them as they are cheap but it's those of us who have been around for decades that end up cleaning up the mess or attempt to train them.
There are some are so arrogant they don't want to accept they are wrong, they are the worse.
Nb: I'm self taught, didn't do university & still overworked in my mid forties!
I've not used an actual landline phone in years now.
At home I have a landline but there's no phone attached, just the VDSL modem for my fibre connection.
For phone calls I always use the mobile or VoIP so no landline phone there.
Even in the office it's a VoIP connection.
Pound for pound, the amoeba is the most vicious animal on earth.