Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?
Slashdot Deals: Deal of the Day - Pay What You Want for the Learn to Code Bundle, includes AngularJS, Python, HTML5, Ruby, and more. ×

Comment Re:Everyone has to learn about it. (Score 2) 191

For the simplest selects and inserts PHP could easily provide an interface that escapes the arguments. That would make it more natural for the lazy programmer to realize when he is doing queries that he has to think about.

If you're escaping your sql inputs you're part of the problem. SQL injection has been known to work on escaped strings using unicode tricks. Use bound parameters in parameterized queries and its not an issue at all.

Comment Re:Export to excel! (Score 1) 192

Be sure to format the file as an HTML or CSV, but save it with an .XLS extension so excel will annoy users several times per day when they open it that it doesn't match the extension.

Your average user that can't figure out how to change a file extension is also going to have trouble figuring out how to open a csv in excel, on my systems by default csv opens in notepad.

Comment Re:Writing that must've taken some skills (Score 1) 142

but pipes exhaust fumes back to the engine to burn some of the unwanted stuff.

I haven't followed the VW stuff too closely so I don't know for sure if you're correct on it being this but what you're talking about sounds like an EGR. If that is what they disabled then its purpose isn't to reburn stuff but rather to introduce an inert gas into the combustion chamber, the inert gas effectively decreases the volume of O2 in a combustion cycle and allows the exhaust to come out cooler than it otherwise would this reduces NOx emissions.

Comment Re:There was a sudden disturbance in the force... (Score 1) 620

Muzzle loaders are exempt from most of the federal firearms regulations. hence why convicted felons are allowed to purchase them, at least under federal law. Generally larger diameter than .50 is regulated, there are a few exemptions, shot guns come to mind, but those are limited to specific guns which generally carry other regulations (sporting requirements on imported shotguns). No there isn't a special license required for any firearm under federal law afaik, there is however a special tax stamp and registration which includes an extended background check and extra paperwork requirements.

Comment Re:11 cents a minute? (Score 2) 173

The prisons need to enable inmates to call only the numbers they've been authorized to call.

News to me. I've gotten calls before from inmates and none of them ever mentioned needing to pre-authorize the number.

Depends on the situation, I don't think the county/parish jail requires pre-authorized numbers, that way when you first get locked up you can call around to find a lawyer. But the big boy state prisons shouldn't be letting offenders just call you at random

Someone has to approve applications to enable telephone numbers.


Investigations checks out the number looking for things does this number belong to the offenders criminal contacts? Or the offenders victim/victims family? Those things get denied.

Someone needs to process the background information and telephone bills that are sent in to verify identities. Someone needs to manage the billing and payment aspects of all of this. Someone has to archive the recordings. etc etc. This operation is contracted out like anything else. The prison can't reasonably do this, nor should they be doing it.

Yeah, you're suffering from a bad case of privatazation-itis there. There is absolutely no reason that administrative staff could not be trained to manage such a system as part of their responsibilities except that the profitability of the private sector would suffer thereby. Just like there is *absolutely* no reason that the private sector should be able to run a prison at less cost than the government can. (Except by compromising reasonable wages and safety by so doing.)

Yeah all that stuff is handled by investigations in the prison I worked at. Storage may or may not have been onsite I couldn't say for sure as I didn't work in IT but they had a fairly substantial IT department and were miles away from the real world so I always assumed it was onsite.
The private prisons do in fact majorly reduce wages Captains at CCA prisons make less than Cadets in academy at the state prison I worked at make.

Comment Re: Only if you use App Cards with APPS! (Score 1) 317

Chip and PIN was compromised years ago.

Can you cite one instance of chip and pin being compromised?
Heres a tip, that chip and skim paper was about faulty terminals that allowed you to guess the nonce they would provide, the actual chip and pin design itself was and still is secure. Idiot manufacturers just didnt build to the chip and pin spec in their terminals.

Comment Re: Only if you use App Cards with APPS! (Score 1) 317

Hey right. The sales point cannot notify security, and film the people in the sales area. Right. To see who is using the card.

Notify security so they can do what? When a card gets reported stolen it just stops processing payments, it doesn't print out something on the terminal telling the cashier to arrest you and as soon as the card gets declined the offender is going to know the jig is up and make himself scarce asap. Filming the sales area is all good and well but the kind of criminals who steal cards go places they can avoid being filmed.

Comment Re:Only if you use App Cards with APPS! (Score 2) 317

So I steal your card and use it, scribbling a sig if needed.

My bank will reverse the charges provided I report it stolen and the card will stop working at that point. Thats how it works with both mag and chips, no difference there. What does change is you have to actually steal my card, whereas before all you had to do was get ahold of it for a few seconds to scan the mag strip so you could clone it later.

Comment An idea. (Score 5, Funny) 106

Why don't games just come on special SSDs? They could have two chips, one containing original game data and that chip is set read only after production, the other larger and read/write one contains updates and save data and then unionfs the two together so writes automagically go to the read/write larger one. Then you could just insert the SSD in a special cartridge so its easy to insert into and remove from the console!

And on the seventh day, He exited from append mode.