Become a fan of Slashdot on Facebook


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 Internet speed test! ×

Comment Re:When you count from 1 to 10, do you stop at 9? (Score 1) 198

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.

Comment Re:No Generic OS for Mobile devices yet. (Score 2) 116

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. (

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.

Comment Weather Station, time sync (Score 2) 129

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.

Submission + - AMD Intentionally Added Artificial Limitations To Their HDMI Adapters (

An anonymous reader writes: NVIDIA was caught removing features from their Linux driver and days later Linux developers have caught and confirmed AMD imposing artificial limitations on their graphics cards in the DVI-to-HDMI adapters that their driver will support. Over years AMD has quietly been adding an extra EEPROM chip to their DVI-to-HDMI adapters that are bundled with Radeon HD graphics cards. Only when these identified adapters are detected via checks in their Windows and Linux Catalyst driver is HDMI audio enabled. If using a third-party DVI-to-HDMI adapter, HDMI audio support is disabled by the Catalyst driver. Open-source Linux developers have found this to be a self-imposed limitation and that the open-source AMD Linux driver will work fine with any DVI-to-HDMI adapter.

Submission + - voyager had finally left the solar system

EricTheRed writes: The BBC is covering the good news that Voyager 1 has finally & officially left the solar system.

What I like to think I'd that a computer from the mid 1979's, older than most people here on Slashdot is still running.

Not many of us have computers anywhere near that old that are still usable — OK got a BBC micro & electron that still work but even they are 5-6 years younger.

Well done to the original JPL Tech's

Comment Re:Missing alternative (Score 1) 587

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" :-(

Comment Re:Start your own (Score 1) 472

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.

Comment Re:Start your own (Score 3, Insightful) 472

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!

Slashdot Top Deals

Pound for pound, the amoeba is the most vicious animal on earth.