Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re:Nice strawman (Score 2) 174

The main problem is if they're competing with some legitimate business that is forced to pay its workers minimum wage, they'll lose against the prison workforce every time, unless they are also forced to pay the prisoners an equal wage. Though, one potential solution I could see is to contract the workforce out to a private company, require that minimum wages be paid, and have the state garnish these wages to pay for the prison. Problem with this is what private company in their right mind would pay the same wages for prisoner labor when they can get non-criminals to work for them for the same amount, typically? I'd personally favor workforce rehabilitation for non-violent criminals, but the economics of it make it a difficult thing to deal with.

Comment Re:Obviously a respons to the Apple promotion (Score 1) 219

More likely a response to the fact that something like 50-60% of college students are buying Macs for school instead of PCs. Question will be whether or not students are buying the Mac because of the iPod credit or whether it's more some other reason, and whether the free XBox will be enough to reverse that trend.

Comment Re:Javascript is a disaster (Score 1) 305

I think you've been inhaling a bit too much PHP. Just because Javascript is dynamically typed (and it's not alone in this respect, many interpreted languages are), doesn't mean the types are irrelevant. Sure, Javascript will coerce types sometimes, but it's pretty logical about it once you understand how it works. The only real complaint I have is overloading + for string concatenation as well as addition.

What you're asking for is an object that will coerce its inputs, which you can do, you just need to follow good programming practices--mainly, never allow public access to an object's members. If you use getter/setter functions, you can explicitly coerce your types once in the object and then everywhere you use it you no longer have to worry about it. It's standard OO best-practices. http://ejohn.org/blog/javascript-getters-and-setters/ is a good place to start to explore that in JS.

Programming languages have never had "reads the programmers mind" as a feature.

Comment Re:Javascript is a disaster (Score 1) 305

Since when has "+" appended 2 numbers?

Two objects that have always contained numerical values, were assigned numerical values, are treated as strings. You always have to explicitly cast them as numbers. Which is bogus. Just the typing alone hurts my fingers.

*fires up Chrome's JS console*

> var obj = {one: 1, two: 2}
undefined
> obj.one + obj.two
3
> var obj = {one: "1", two: "2"}
undefined
> obj.one + obj.two
"12"
> parseInt(obj.one) + parseInt(obj.two)
3

Nope, seems to work right to me.

Comment Re:I have a suggestion. (Score 1) 305

Oh, and there's no magic "DON'T FUCKING DO THAT!" operator either...

There isn't one in most Object Oriented languages either; I'm curious what about your design would need copies of objects anyway. I've run across very few instances where I thought they were useful. Lucky for you, someone already solved that for JS: http://james.padolsey.com/javascript/deep-copying-of-objects-and-arrays/

Comment Re:Easy to remedy (Score 2) 147

The only way anyone would've hit this bug is if they were trying to make their account default to HTTPS while the bug was active. If you'd already set to HTTPS by default, that would still have worked. So, if it exposed anyone to arrest, it would be because they continued past the bug to do risky things anyway.

http://www.theregister.co.uk/2011/03/26/microsoft_https_hotmail_syria/ if you want a source.

Comment Re:Burden of proof. (Score 2) 810

Exactly.

If you really want to tackle this problem, ask the people with the stories what "proof" they have that ghosts are haunting the place, and then formulate an experiment that can test for that proof. Or, if it's transient phenomena, do the detective work to come up with any alternate hypotheses. Them saying that "it must be a ghost" really just means that they lack knowledge that would allow them to explain it any other way. You will definitely not be able to "disprove" it in any other meaningful way.

Might want to take a look at this guy's video breakdowns to get an idea of how to approach this: http://captaindisillusion.com/

Comment Re:EICAR (Score 4, Insightful) 366

Then he's pretty stupid for wanting that. This'll look exactly the same as a real virus, and it will be easy to clean off, but it won't propagate or do nasty things like a real virus. For a computers 101 class, anything more than something like this is just asking for trouble.

Earth

Officials Sue Couple Who Removed Their Lawn 819

Hugh Pickens writes "The LA Times reports that Orange County officials are locked in a legal battle with a couple accused of violating city ordinances for replacing the grass on their lawn with wood chips and drought-tolerant plants, reducing their water usage from 299,221 gallons in 2007 to 58,348 gallons in 2009. The dispute began two years ago, when Quan and Angelina Ha tore out the grass in their front yard. In drought-plagued Southern California, the couple said, the lush grass had been soaking up tens of thousands of gallons of water — and hundreds of dollars — each year. 'We've got a newborn, so we want to start worrying about her future,' said Quan Ha, an information technology manager for Kelley Blue Book. But city officials told the Has they were violating several city laws that require that 40% of residential yards to be landscaped predominantly with live plants. Last summer, the couple tried to appease the city by building a fence around the yard and planting drought-tolerant greenery — lavender, rosemary, horsetail, and pittosporum, among others. But according to the city, their landscaping still did not comply with city standards. At the end of January, the Has received a letter saying they had been charged with a misdemeanor violation and must appear in court. The couple could face a maximum penalty of six months in jail and a $1,000 fine for their grass-free, eco-friendly landscaping scheme. 'It's just funny that we pay our taxes to the city and the city is now prosecuting us with our own money,' says Quan Ha."

Comment Re:But (Score 1) 590

Replication of results is not what happens in a peer review. It's because results weren't replicated that this is happening now. I would assume that most scientists are assumed to be honest about their data and conclusions because their reputation and ability to provide for themselves typically rests on them producing good science. Because in an ideal world, no one will fund a quack and his research.

The problem is that there are other markets that will eat up quack ideas and provide for the quacks that produce them even if they spout ridiculous but comforting lies. I very much doubt that recanting this study will affect Wakefield's ability to make money in any way, unfortunately, unless there is also some legal action in the fallout.

Slashdot Top Deals

Crazee Edeee, his prices are INSANE!!!

Working...