Slashdot Mirror


User: EricTheRed

EricTheRed's activity in the archive.

Stories
0
Comments
97
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 97

  1. Re:When you count from 1 to 10, do you stop at 9? on Tech Companies Set To Appeal 2012 Oracle Vs. Google Ruling · · Score: 1

    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.

  2. Re:No Generic OS for Mobile devices yet. on Ubuntu Touch On a Nexus 7: "Almost Awesome" · · Score: 2

    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.

  3. Re:Very safe indeed on 11-Year-Old Coloradan Will Brew Beer In Space, By Proxy · · Score: 1

    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.

  4. Weather Station, time sync on Milestone: The Millionth UK-Made Raspberry Pi · · Score: 2

    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.

  5. Re: So Full Of Win! on How One Man Turns Annoying Cold Calls Into Cash · · Score: 1

    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.

  6. Re:Start your own on Ask Slashdot: Getting Hired As a Self-Taught Old Guy? · · Score: 1

    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.

  7. Re:Start your own on Ask Slashdot: Getting Hired As a Self-Taught Old Guy? · · Score: 3, Insightful

    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!

  8. Re:vBulletin on Ask Slashdot: What Is the Best Way To Add Forums To a Website? · · Score: 1

    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.

  9. Re:And for all of us who prefer RPN? on Color-Screen TI-84 Plus Calculator Leaked · · Score: 1

    Have they sorted out the dodgy keyboard problems?

    My 10 year old HP48G was really bad (to the point of almost being unusable) when it came to the 0 & 1 keys

  10. Re:XMPP on Microsoft Retiring Messenger, Replacing It With Skype · · Score: 1

    yes, probably down to them thinking that implementing s2s would devalue it somehow - facebook chat doesn't have s2s either

  11. XMPP on Microsoft Retiring Messenger, Replacing It With Skype · · Score: 1

    I wish I could retire my msn account but unfortunately it's still the preferred IM system for most here in the UK.

    Personally I have my own xmpp server running for IM. Not only is it open but it's also means that I'm in control of my contacts & know that, if it fails it's my own fault ;-)

    If I need to talk to someone on Google Talk or other xmpp severs its no problem as its federated correctly so I'm pretty much covered.

    I'm just wondering what those insisting on msn will do now or the chaos when this happens next year.

  12. Re:dayummm on Thanks For Reading: 15 Years of News For Nerds · · Score: 1

    I think it must have been 97/98 but saying that I can't remember anything about no logins etc :-/

  13. Re:Old Idea on Ask Slashdot: Using a Sandbox To Deal With Spambots? · · Score: 1

    I see the same thing in my forums. The capcha gets the spam bots but the mules (humans being paid pittance to spam) still try to get through, strangely they tend to post on a Monday morning.

    What I do to catch them is:
    * moderate the first X posts from any user.
    * don't allow posts from certain countries, usually India, South Korea & China.

    There's no automation on this as its low volume anyhow but it does work.

  14. Re:Two Things... on Is the Canadian Arctic the Future of Astronomy? · · Score: 1

    I think permafrost wouldn't be quite an issue if you think that for large parts of the antarctic it's nearly 2000m thick - just make sure it's still got bedrock beneath it & not water ;-)

    As for the endless nights, well same goes for the antarctic, just offset by 6 months but then they'll use the downtime for maintenance

  15. Re:Upwards? on NASA Considers Sending Telescope To the Outer Solar System · · Score: 1

    Yes I meant to say (at least I was thinking) the last slingshot wouldn't need to gain momentum, just change the trajectory - the momentum being gained from any previous encounters.

    If this is a telescope then you don't necessarily want extra momentum just a change in trajectory out of the plane of the ecliptic - although the timescales involved even this wouldn't add to much when you think how far both Voyagers have got since they were launched. Even they are power starved now so any telescope out there wouldn't last as long.

    As for parallax observing the other issue there would be the time to wait for a full baseline observation of a specific object - would the instrument still be in operation when the second observation is to be made? Possible but again it's down to power consumption

  16. Re:Upwards? on NASA Considers Sending Telescope To the Outer Solar System · · Score: 2

    That's true but then you can do both, hitch a ride on a survey craft to say Jupiter & Saturn, then when passing Saturn use it's gravity well to slingshot the craft - with telescope attach in a perpendicular direction.

    Thinking about it, the Voyager's are in such a trajectory, both leaving the solar system away from the plane containing the planets.

    http://voyager.jpl.nasa.gov/mission/images/interstellar_1.gif

  17. Re:Additional tablet feature on My $200 Laptop Can Beat Your $500 Tablet · · Score: 1

    To solve your problem at hand (pun intended) - please wash your hands. Frequently. With soap.

    That's not the problem, the problem is the oils excreted by the skin. For some people the amount is higher than others so for some people their tablets will appear dirtier simply because they are unwittingly depositing more oil for dirt to attach to.

    It's the same reason why with older blackberries the trackball's fail faster than others - it's easier for gunk to clog up the mechanism.

  18. Re:Additional tablet feature on My $200 Laptop Can Beat Your $500 Tablet · · Score: 1

    My greasy fingerprints all over the goddamn screen.

    I suffer from the same problem so a continual problem with tablets that I don't see going away.

  19. Re:Battery life must be bad on Dual-core Smartphone Runs Android and Ubuntu · · Score: 2

    yes I did & obviously this is a prototype so it would be big.

    Thing is when it gets to a production model - will batteries cope with a dual core phone? A lot of current phones have problems especially with low signal areas draining the batteries regardless of 'optimum' conditions they tend to use when stating battery life.

  20. Re:Battery life must be bad on Dual-core Smartphone Runs Android and Ubuntu · · Score: 1

    Well the way everywhere else was hinting it sounded like it was. If Intel can go it alone (they're big enough) then it may succeed. Time will tell

  21. Battery life must be bad on Dual-core Smartphone Runs Android and Ubuntu · · Score: 4, Interesting

    but that will improve.

    Saying that this sort of thing will happen eventually, with Meego being mothballed after Nokia defected to Windows we need a good Linux based OS other than Android

  22. Re:Latest beta is the worst on Firefox 4, A Huge Pile of Bugs · · Score: 1

    The rendering issues on OS X were known bugs and were in the release notes for 4.0b9. You are using beta software and there are bound to be bugs. It is fixed in their repo, and you can run Minefield (nightly builds) if you want to get the fix.

    I know I'm running beta - thats actually why I'm running it.

    However not seen the release notes as I was not given a choice - it was upgraded automatically from 4.0b8...

  23. Latest beta is the worst on Firefox 4, A Huge Pile of Bugs · · Score: 2

    I've been running FireFox 4 Beta for some time, however sadly it updated itself to the latest version yesterday and since then it's been virtually unusable.

    Anything running Javascript or Flash produce either blank screens (sometimes just by scrolling the page) or even the window title bar flashes (which it is as I type this).

    4.0b9 is definitely a regression - I want 4.0b8 back...

  24. Re:Sad day on Empire Strikes Back Director Irvin Kershner Dies at 87 · · Score: 1

    I should have and just have.

  25. Re:Sad day on Empire Strikes Back Director Irvin Kershner Dies at 87 · · Score: 4, Interesting

    They always go in threes. First LN, now IK. Who's #3?

    Sir Maurice Wilkes - one of the early programming pioneers of the 1940's?

    From The National Museum Of Computing, Bletchley Park twitter feed: http://twitter.com/#!/tnmoc/status/9283716039843841

    Sad news that today Sir Maurice Wilkes passed away, aged 97. Here he was on a visit last year to #TNMOC http://ow.ly/3gUD2