Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re:We developers knew this for a long time.. (Score 2) 274

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.

Comment Re:C is great (Score 1) 793

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.

Comment Re:Good question (Score 1) 1134

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.

Comment Re:You ares testing students the wrong way (Score 1) 241

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.

Comment Re:You ares testing students the wrong way (Score 1) 241

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?

Comment Re:You ares testing students the wrong way (Score 1) 241

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.

Comment Re:Tick mark == approval (Score 1) 713

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.

Comment Re:Protect magnetic storage? (Score 1) 87

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

Comment Re:Arrogance of geomodelers? (Score 1) 120

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.

Comment Re:Arrogance of geomodelers? (Score 1) 120

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

Comment Re:Finally (Score 1) 165

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.

Slashdot Top Deals

"Experience has proved that some people indeed know everything." -- Russell Baker

Working...