Forgot your password?
typodupeerror

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

by EricTheRed (#45608285) Attached to: Tech Companies Set To Appeal 2012 Oracle Vs. Google Ruling

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

by EricTheRed (#45201683) Attached to: Ubuntu Touch On a Nexus 7: "Almost Awesome"

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.

Comment: Weather Station, time sync (Score 2) 129

by EricTheRed (#45071101) Attached to: Milestone: The Millionth UK-Made Raspberry Pi

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.

+ - AMD Intentionally Added Artificial Limitations To Their HDMI Adapters->

Submitted by Anonymous Coward
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."
Link to Original Source

+ - voyager had finally left the solar system

Submitted by EricTheRed
EricTheRed (5613) writes "The BBC is covering the good news that Voyager 1 has finally & officially left the solar system.

http://www.bbc.co.uk/news/science-environment-24026153

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

by EricTheRed (#44351287) Attached to: Compared to my 1st computer's memory ...

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!

http://en.wikipedia.org/wiki/Texas_Instruments_TMS9900

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

by EricTheRed (#44110623) Attached to: Ask Slashdot: Getting Hired As a Self-Taught Old Guy?

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

by EricTheRed (#44109735) Attached to: Ask Slashdot: Getting Hired As a Self-Taught Old Guy?

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!

Comment: Re:vBulletin (Score 1) 259

by EricTheRed (#41955697) Attached to: Ask Slashdot: What Is the Best Way To Add Forums To a Website?

Yes they have as one of my sites using PhpBB suffered from at first.

What I do to get around the scripts is:
1: Have a captcha - although not too complicated as I've found some disabled users have problems with it
2: Restrict posts to be moderated for the first few posts made by a new user. Once they hit a certain limit then their posts go live immediately.

No 2 is important because some people from India, Korea and China are paid to post to forum sites so doing this also captures them as well.

Initially there's a burst of spammers but this falls off as they find out which sites are pro-active in killing them. I still get the odd burst of spam, usually on a Monday morning but it's manageable.

You see but you do not observe. Sir Arthur Conan Doyle, in "The Memoirs of Sherlock Holmes"

Working...