Slashdot Mirror


User: Clueless+Moron

Clueless+Moron's activity in the archive.

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

Comments · 334

  1. Re:We developers knew this for a long time.. on Valve Shares Performance Numbers On Port of Left4Dead · · Score: 2

    I know I am going to come off as a 'shill' but MS tools rock (I am not talking about their frameworks). It is the one thing that holds me to windows these days. All those tools you mention are available in windows and usually better polished. Valgrind compaired to say using boundschecker. You goto valgrind and bisect issues, boundschecker puts you right on the offending line that they think either overwrote memory or leaked. .

    You're going to come off as an MS shill because you are flat out lying. Valgrind tells you exactly what line is offending.

    char *p = malloc(8);
    p[10] = 42;

    Let valgrind run that code and it will immediately tell you that the source filename and linenumber that p[10]=42; is on along with a callstack backtrace. Ditto with leaked memory, reads of uninitialized memory etc.

  2. Re:C is great on What's To Love About C? · · Score: 1

    Efficiency matters. Python is great, but you don't want to use it for embedded work.

    Actually, I am currently working on an ARM based commercial embedded system that is almost entirely written in Python (on Linux).

    Once you make the leap of adding external ram and flash, which you need to run Linux reasonably, using python is not really a big deal. The whole system is still only a few square cm big; you could hide it in your fist.

  3. Re:Good question on Has the Command Line Outstayed Its Welcome? · · Score: 1

    Oh - vipw's for wimps. /etc/passwd's a text file, designed to be easily maintained by hand. If you can't hand edit it without fucking up, you don't deserve root permissions to the system.

    You're not thinking multiuser scenarios.

    The main feature of vipw is that it does locking. This prevents two admins from editing /etc/passwd at the same time, which could corrupt it completely. It also keeps it from getting corrupted because some user happens to be changing their password while /etc/passwd is being edited.

  4. "a" repeated 20 times. on How Many Seconds Would It Take To Crack Your Password? · · Score: 1

    Trillions of centuries online, 65.90 thousand centuries with the Massive Cracking Array Scenario, and yet somehow I don't want to use it.

  5. Re:You ares testing students the wrong way on Students Looking For Easy A Target Online Courses, Where Cheating Is Easier · · Score: 1

    Most questions on calculus tests I've taken don't have numeric answers. "Solve for X" was to be answered with the equation..

    My example with a normal calculator above shows how to verify your answer.

    As a trivial example, "solve d(x^2)/dx". Well duh, the answer is 2*x, but you can numerically verify that: Evaluate x^2 at 1 and 1.001. You get 1 and 1.002001. The difference times 1000 then is 2.001. Now evaluate your answer at 1: You get 2. Yup, your answer is probably right.

    Similarly, even the lamest programmable calculator can do numerical integration. So again, just numerically integrate your original function from 0 to 1 or whatever and verify that your integral answer formula produces a similar number.

    I did this quite regularly in calculus exams. Saved my ass repeatedly. You can also plug your test number into your intermediate steps to see where it changes -- that will be the place you made a mistake.

    So yes calculators are useful in calculus exams, even if it's not a monster like the HP50g that does full symbolic calculus.

  6. Re:You ares testing students the wrong way on Students Looking For Easy A Target Online Courses, Where Cheating Is Easier · · Score: 1

    Any sane prof would require that you show your work.

    That's fine; the HP50g has a mode where it shows the intermediate steps when solving a calculus problem.

    Even if it didn't, don't you think having a device that gives you the correct answer on a silver platter is a pretty handy thing to have in a calculus exam?

  7. Re:You ares testing students the wrong way on Students Looking For Easy A Target Online Courses, Where Cheating Is Easier · · Score: 1

    That's crazy. Fancy calculators like the HP50g can do symbolic calculus..

    Even less fancy calculators can be useful: I used my programmable calculator to check my answers. For a derivative, for example, evaluate the original formula at some arbitrary value, and then again at that same value plus .001. The difference of the results times 1000 is roughly the derivative, so now you can plug that same arbitrary value in your derivative as a confirmation that you probably got the right answer.

    The same calculator could also do numeric integration, so integrals could be checked as well.

  8. Attitude on SSID As the New Community Bulletin Board and Yard Sign · · Score: 3, Funny

    I saw "GetYourOwnDamnWifi" the other day. Ok guy, I get the point.

  9. Re:And Intel has a trick up their sleeve on ARM, Intel Battle Heats Up · · Score: 1

    . A phone or tablet or reader doesn't need to run Crysis

    Perhaps not a phone, but tablets are chiefly recreational devices. Games are part of the market.

    It doesn't take much to run Angry Birds.

  10. Re:Tick mark == approval on Icons That Don't Make Sense Anymore · · Score: 1

    When I grew up in Sweden, tests were marked with "R" for correct and a checkmark for wrong. Then we moved to Canada, and one of my first quizzes was math. I took it up to the teacher, who checked off every question and handed the test back to me with a big smile and the exclamation "good!".

    I was devastated. I sat at my desk completely baffled as to how I could have gotten every question wrong. I was thinking that maybe math is different in Canada. Eventually I went back to the teacher to complain, and after some confusion we were both sorted out.

    So yeah, don't count on checkmark meaning what you think it does to everyone.

  11. Re:Windows Phone 7 on Wozniak Praises 'Beautiful' Windows Phone · · Score: 3, Funny

    Yeah, and they've been paying clueless morons to rave about their shit on the internet too.

    Well I certainly never saw a dime of that money.

  12. Re:Protect magnetic storage? on 'Antimagnet' Cloak Hides Objects From Magnetic Fields · · Score: 1

    Well it could, but it's overkill. The big deal about this thing is that it doesn't distort any magnetic field it's in, making it effectively "invisible" from the magnetic field

    If you just want to protect something from a magnetic field and you don't care who knows it, just contain it in something like mu-metal

  13. Re:Arrogance of geomodelers? on Mystery Rising Within Mercury · · Score: 1

    Is there some part of "it could be measurement error" that is unclear to you?

    I'll just ignore that unnecessary insult.

    As I said, I've done tons of undergrad labs and in most all cases of conflict the measuring was the problem. So your sentence "It could be measurement error, but it's more likely that your models are wrong" is completely at polar opposites with my experience doing science right in the lab.

    Measuring tiny gravity variations while in orbit of a tiny planet in the vicinity of a huge sun with a vicious solar wind, wildly fluctuating magnetic fields and insane temperature variations is not easy. In fact, TFA itself admits that it was very difficult. It would be unprofessional for the modelling crew to not question unusual results. They did, they checked everything over, eventually concluded that the numbers must be good, therefore the model must be adjusted.

    THAT'S what's called being scientists.

  14. Re:Arrogance of geomodelers? on Mystery Rising Within Mercury · · Score: 1

    "Our geochemistry colleagues kept sending us back to the showers saying 'Your gravity field can't be right because none of the internal structure models are fitting.' But we do now know that we got the gravity field right. It was very difficult."

    If the measurements don't fit your models, it doesn't mean the measurements are wrong. It could be measurement error, but it's more likely that your models are wrong. And they call themselves scientists.

    So, if you measure neutrinos travelling across Europe faster than the speed of light, then it's most likely that the model that says neutrinos cannot travel faster than the speed of light is wrong?

    I did plenty of labs in Physics undergrad days. Almost every time things didn't make sense it turned out to be measurement problems.

  15. Re:Finally on CRTC Says Rogers Violating Federal Net Neutrality Rules · · Score: 1

    There are gobs to choose from: See canadianisp.ca.

    To be fair most all of them rent most of their infrastructure from Bell or Rogers, but their policies can be quite different. For example, my ISP permits me to run servers and is net neutral on their network. Once the packets hit someone else's fiber it's beyond their control of course.

  16. How do they know it was a rag in a fuel line? on Could a Dirty Rag Take Out a $2 Billion Satellite? · · Score: 1

    It's not like they have little nanites with cameras crawling around there. Fine, the main thrusters aren't working, but how did they manage to specifically blame it on a piece of rag in a fuel line? Aren't there a lot of ways a thruster can fail to fire?

  17. Re:I won't care on Leap Second Coming In June, 2012 · · Score: 1

    Ah, sounds like you've been working with lower level stuff then. Any consumer GPS module these days consists of a module smaller than one square cm with serial output that you simply have to parse (plus stuff like a 1 pulse-per-second output pin).

    NMEA-0183 is the ASCII protocol used by most marine equipment. GPSes also have a binary protocol which is quite a bit richer. Anyway, among other things they barf out your lat/lon and the date/time in UTC once per second.

  18. Re:I won't care on Leap Second Coming In June, 2012 · · Score: 1

    By "the GPS protocol" I meant what is sent OTA from the satellites, which does indeed include UTC correction. In other words, there is no excuse for a GPS module to not provide a means of giving UTC. And any GPS that produces NMEA-0183 output has no choice but give corrected UTC time.

    The binary SiRF protocol also provides UTC.

    And yes the time will be off until you get a fix, but of course you're not supposed to use the timing data until the unit does have a lock.

  19. Re:Listen to WWV in North America on Leap Second Coming In June, 2012 · · Score: 1

    The leap second is at the end of June 30th. From the IERS bulletin:

    2012 June 30, 23h 59m 59s
    2012 June 30, 23h 59m 60s
    2012 July 1, 0h 0m 0s

    So be sure to enjoy your extra long Saturday.

  20. Re:I won't care on Leap Second Coming In June, 2012 · · Score: 1

    The $GPRMC sentence is required by NMEA-0183 to report UTC.

    What brand module did you find that did not do this? I'd like to be sure to avoid it...

  21. Re:I won't care on Leap Second Coming In June, 2012 · · Score: 2

    The GPS protocol includes the UTC offset, so all GPS units report UTC time.

  22. Listen to WWV in North America on Leap Second Coming In June, 2012 · · Score: 4, Interesting

    On 5, 10, 15 or 20 MHz: at 00:00Z you will hear minute consisting of 61 seconds.

    If you happen to have a radio controlled timepiece, this will also be your chance to see if they handle the leap second conversion or took the lazy way out and just rely on the next time sync fix the time.

    00:00UTC June 30th 2012 is a Saturday evening in North America. What better way to celebrate a Saturday night?

  23. Re:BASIC is a horrible language. on Why Can't We Put a BASIC On the Phone? · · Score: 1

    Exactly. Python is completely unusable both in embedded systems, and in anything where performance matters the least little bit.

    Since android phone apps have a good chance of being in both categories ...

    That is complete and utter nonsense. And I say this as an embedded systems developer; we currently have a product that is almost 100% python based. It even runs a webserver in python and the performance is fine. It's a pretty complicated multi-threaded app.

    I'm not the only one, either. Only a few months back I was investigating an embedded system, and tons of stuff in it was written in python.

    Furthermore, my Symbian S60 smartphone runs python. It actually has some very impressive 3D apps written entirely in python

    Python's speed is comparable to any other typical interpreted language.

  24. Re:Let's get C99 right first on ISO Updates C Standard · · Score: 1

    That is one of the reasons why I find so many FSF supporters to be such hypocrits, they blather on about standards compliance, yet they use and abuse GCC extensions etc. The Linux kernel is horribly tainted in that way.

    Linux can be compiled using the Intel C compiler

    See include/linux/compiler*.h in your kernel source

  25. Re:Not all religions are bad on Christopher Hitchens Dies At 62 · · Score: 1

    Crusade: 1706, respelling of croisade (1570s), from M.Fr. croisade (16c.), Sp. cruzada, both from M.L. cruciata, pp. of cruciare "to mark with a cross," from L. crux (gen. crucis) "cross."

    The crusades were Christian. Even the name says so. Don't pretend it wasn't.

    Gulags were part of Stalinism. So was building dams, rocketry, idiotic agricultural policies, atheism and many other things. Stalin could have been a devout Catholic and still have had Gulags. What is hard to understand about this?