Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Comments

top

As Prison Population Sinks, Jails Are a Steal

Kiwikwi Re:2,266,800 (402 comments)

1.6M? The U.S. prison population is 2,266,800 according to Wikipedia. It's been over 2M for years, and was 2,418,352 in 2008.

In the U.S., the word "prison" is more specific than you think. Look at the third figure from the top at your own link.

In 2010, the U.S. prison population was ~1,518,000 (state and federal prisons). The U.S. jail population was ~749,000. The sum of those is 2,267,000; then comes another ~90,000 in juvenile detention (see the table below the figure). Add all these (and a bunch of smaller numbers, such as holding facilities for immigrants, and military facilities), you get the number of incarcerated people, which is the number you mention.

But yes, AFAIK the U.S. still incarcerates more people than any other country in the world, both as a fraction of the population, and in absolute numbers. There's a long way down to the next on the list.

2 days ago
top

Battery Breakthrough: Researchers Claim 70% Charge In 2 Minutes, 20-Year Life

Kiwikwi Re:Charging amperage (395 comments)

Enh, seems to be only off by a factor 10, though IANAEE (I am not an electrical engineer). Forgive me if I'm missing a factor 1.44 or something, below.

Obviously you don't charge an electric car battery at 12 V. What the individual cells do is irrelevant, since they charge in parallel; the bottle neck is the cable attached to the car (and cooling, but hey, we're assuming magic new wonder battery tech, so I'll conveniently ignore that issue).

The highest power available using standard CEE (IEC 60309) plugs and mainline voltage is 3 x 125A x 230V, or about 86 kW. This is not normal in a home, obviously, but you can easily get a couple of these in commercial installations.

Ignoring losses (I know, I know), 86 kW means one hour to fully charge a Tesla Model S with the big 85 kWh battery pack, but that's also a big battery pack.

Charging the 48 kWh battery of the upcoming Model E to 70 % will take: 70% x 48 kWh / 86 kW = 23 minutes.

Now, I would've thought 3 x 125 A x 230V was about the limit, simple due to the weight (those cables are very heavy!). But apparently, Tesla Superchargers go beyond this, to more than 120 kW (340 A x 360 V), with possible plans for 135 kW or even 150 kW. (I guess if the cable is short enough, and you increase voltage beyond mains voltage...) This gives you 70% x 48 kWh charging times in as little as 17 minutes (120 kW) or even 13 minutes (150 kW). Still a far cry from 2 minutes, but then the 17 minute figure is using current mass-market technology.

5 days ago
top

Aral Sea Basin Almost Completely Dry

Kiwikwi Re:The water wars are coming (151 comments)

Yup, this is what you get when a short-sighted totalitarian government messes with the water cycle to enable farming in a desert, consequences be damned.

Come to think of it, California is what you get when a short-sighted democratic government messes with the water cycle to enable farming in a desert, consequences be damned.

Let's face it, environmental concerns wasn't really on any government's radar until the 70s. (And a lot of countries still try to ignore them...)

about three weeks ago
top

Apple Yet To Push Patch For "Shellshock" Bug

Kiwikwi Re:~/.cshrc (208 comments)

It really has nothing to do with the default shell. It won't matter what shell is the default when your CGI script starts with #!/bin/bash.

No, no, no, no... People really don't get the scope of this.

It doesn't matter what the default user shell is, or what language a CGI script is written in. Bash is the most common system shell, which means it's invoked all the time when other programs run commands.

Obviously, I can't know this, but OP is probably not using csh as his system shell, because that's not POSIX compliant and would cause major breakage.

If /bin/sh is Bash, you're vulnerable, no matter what shell you're using yourself, or what language your CGI script is written in.

Also, CGI scripts is only the most obvious attack vector; others that have been identified so far are the CUPS printing daemon, the ISC DHCP client and locked down SSH shells like those commonly used to host Git repositories. But there are without doubt many more. The only safe thing to do is to upgrade or remove Bash from your system immediately.

about three weeks ago
top

Flurry of Scans Hint That Bash Vulnerability Could Already Be In the Wild

Kiwikwi Re:"could be worse than Heartbleed" (318 comments)

No, it is any CGI program that sets an environment variable to unchecked user input and then invokes a shell or calls any other program that invokes a shell.

Got that?

No, it's not the CGI program that sets the HTTP_USER_AGENT environment variable, and this is not a vulnerability in the CGI program nor the CGI protocol. The fault lies 100% with Bash, which executes arbitrary shell code from arbitrary environment variables.

about three weeks ago
top

Flurry of Scans Hint That Bash Vulnerability Could Already Be In the Wild

Kiwikwi Re:"could be worse than Heartbleed" (318 comments)

any CGI program + any non-Debian Linux => vulnerable

No, only CGI programs that use system/popen/etc to call out to things that may be bash.

Enh, good luck auditing even just a resonably complex CGI program for direct and indirect invocations of the system shell.

For instance, care to guess whether this one is safe?

For once, the PHP programmers are ahead security wise due to the ubiquity of mod_php...)

Well for one most languages the equivalent facility is available and usually used since it is a requirement to scale.

I know, mod_perl and mod_wsgi on Apache, and of course, Fast CGI. But CGI is still common in a lot of setups.

For another, even the silly 'fork and exec' perl or php or python isn't vulnerable if said script avoids system/popen/backticks/whathaveyou.

Even if you don't call out to the shell yourself, the standard library might.

Pop quiz 1: How is the PHP mail function implemented?

Pop quiz 2: What parts of the Python standard library module uuid are safe to use, and what parts will render your CGI script vulnerable?

I guess I was wrong to play down the severity of bash, but my hope was for people to just consider themselves to make a mistake by ever potentially having bash in a cgi context, for reasons beyond this exploit.

It's the system shell. It's everywhere. The real lesson here is to not use a big bulky program like Bash as the system shell.

Answers to pop quiz:

1. popen to execute sendmail program.

2. The following Python CGI script is vulnerable: import uuid (that's it). (uuid uses ctypes.util.find_library, which uses popen).

These examples took me less than 20 minutes of grepping to come up with, and I'm not even trying to hack any computers...

about three weeks ago
top

Flurry of Scans Hint That Bash Vulnerability Could Already Be In the Wild

Kiwikwi Re:So flog the bash developer who checked this in. (318 comments)

In those days [late 80s/early 90s] revision control wasn't universally used. Even as late as the early 00's I was training engineers coming out of master's degree IT programs who had no idea how to use a revision control system.

Linus didn't use a revision control system for the Linux kernel until 2002.

(Aw... comparisons between CVS and the "soon to be finished" Subversion. How quaint.)

about three weeks ago
top

Flurry of Scans Hint That Bash Vulnerability Could Already Be In the Wild

Kiwikwi Re:This exposes systemic insecurities (318 comments)

Basically, this Bash bug is really only exploitable by remote users because of some questionable decisions made in designing the software stack.

Hm, no, the fault here lies squarely with Bash choosing to interpret an environment variable called HTTP_USER_AGENT as a program to execute.

This is not about accepting arbitrary environment variables; CGI puts data in a few, well-defined variables. This is a perfectly legimiate use of environment variables. (And Windows does the exact same thing.)

You're right that using a "full-bore shell program" such as Bash as the system shell is moronic. It is, unfortunately, still the norm on all major Linux distros except Debian and derivatives (which use the limited Dash shell, which is not vulnerable).

Primarily, I think this is a wake up call for Fedora, SUSE and the others: Bash is a huge, complex component, evidently with insufficient security review, and should not be used as the system shell. Debian dropped it for performance reasons, but now we can add security concerns to the list. It can stay around for use as an interactive shell (though why you'd do that when you have zsh, I don't know...)

about three weeks ago
top

Flurry of Scans Hint That Bash Vulnerability Could Already Be In the Wild

Kiwikwi Re:"could be worse than Heartbleed" (318 comments)

Outside of malicious HTTP headers landing in environment variable in CGI land, I'm hard pressed to think of another reasonable vector for this bug to be a problem...

Unfortunately, attackers do not share your lack of imagination.

First of all, the CGI vulnerability is not about CGI scripts written in Bash, this is about any CGI script that at any point invokes a shell or invokes a program that invokes a shell (e.g. using the system call), irrespective of the actual shell command, on a system that uses Bash as the system shell (so pretty much all non-Debian based Linux distros).

Got that? any CGI program + any non-Debian Linux => vulnerable. (For once, the PHP programmers are ahead security wise due to the ubiquity of mod_php...)

Second of all, there are all kinds of non-CGI situations in which untrusted data is passed in environment variables. This is normally not a problem... unless that environment variable at any point is inherited by Bash.

The ISC DHCP client (dhclient) is the canonical example, as it runs a distro-specific shell script to set up the network once it gets a DHCP lease. Unustrusted values from the DHCP server are passed - you guessed it - in environment variables.

about three weeks ago
top

How Our Botched Understanding of "Science" Ruins Everything

Kiwikwi Re:In lost the will to live ... (795 comments)

Why is causing pain to others bad? Why do you care about what other people feel?

Quid pro quo. I care about them and don't cause them pain; and in return, they care about me and don't cause me pain. It's also called the social contract.

You may argue, "prisoner's dilemma" style, that an individual can then gain an advantage by breaking the social contract, and indeed some people do that. Bruce Schneier wrote a whole book about that topic. But as it turns out, most people don't break the social contract, due to 1) intense social conditioning (religious or otherwise) and/or 2) the threat of punishment if they're caught.

The social contract predates Christianity by millenias; heck, it presumably existed in a primitive form in stone age hunter-gatherer culture.

But even ignoring social conditioning and even the evolutionary traits that have developed to promote that contract (e.g. increased empathy), abiding by the contract still makes sense: Civilization depends on the majority following the social contract, and indeed, most people find that the immediate benefit of breaking the contract is outweighed by the threat of civilization falling apart. Of course, once people start to break the social contract in larger numbers, the cost-benefit ratio changes, and civilization crumbles quickly.

Surely you've heard of the Golden Rule? This requires zero belief in the supernatural or any sort of sacredness.

Except that it doesn't explain why you should follow it. Most people seem to use "karma" (or "what comes around goes around") as a not-quite-as-supernatural-as-an-omnipotent-God reason for following the Golden Rule.

I'd argue that karma is a real thing, only global, not personal. When you do a good thing for others, you increase global karma, ever so slightly increasing the odds of good things happening to you, too. (But it's a big world; I think you'll find playing the lottery has better ROI.)

Personal karma AKA the "just world" belief is of course a myth. The fact that so many people believe in it is a testament to the aforementioned social conditioning.

about a month ago
top

Apple Edits iPhone 6's Protruding Camera Out of Official Photos

Kiwikwi Re:Parallax. (425 comments)

Yes they have. Two of my coworkers have them now. Got them a few days ago. That's the result of big money contracts.

I mistakingly read this as a response to linear a's post above:

Another Lie! Slashdotters don't have "fiances".

about a month ago
top

Court Rules the "Google" Trademark Isn't Generic

Kiwikwi Re:Don't google it. Bing it! (159 comments)

I'm sorry, but saying you "binged" it sounds slightly obscene...

Could be worse. Microsoft originally considered calling it "Bang".

...

I'm not kidding. I guess they liked "Bang" because it conveyed a sense of, uh, instant gratification. Specifically:

The company had several criteria in rebranding the search engine, he said. The company wanted a name that was one syllable and couldn't be misspelled and was as short as possible.

Webster said he initially came up with "Bang." The name had a few things going for it, he noted. "It's there, it's an exclamation point," he said. "It's the opposite of a question mark."

about a month ago
top

Surprising Result of NYC Bike Lanes: Faster Traffic for Cars

Kiwikwi Re:Simple change. What about round abouts (213 comments)

Huh? Roundabouts and standard crossings are equivalent when it comes to pedestrians. In both cases, you add crosswalks "circling" the roundabout or intersection, and cars must yield for pedestrians when entering and leaving the roundabout/intersection. (Example of small roundabout with pedestrian crossings and bike path.)

If there's a lot of traffic, you add traffic lights; this, too, can be done for both roundabouts and intersections. (Example of roundabout with traffic lights; though I've personally observed that it's able to carry traffic pretty smoothly even when the lights are malfunctioning. This latter example also has heavy segregation between cars and bicycles; research has shown that cars are unfortunately slighly more likely to overlook bicyclists otherwise, compared to a standard intersection.)

Of course, there's always hideous designs like the Dupont Circle mentioned above, but that's just traffic planners showing that they don't understand roundabouts. Pedestrians should walk around the roundabout, not across it (hence the name), otherwise cars have to yield for pedestrians inside the roundabout, and you get a complete traffic jam. (The whole point of a roundabout is to limit the number of directions in which traffic moves...)

about a month ago
top

White House Names Google's Megan Smith As CTO

Kiwikwi Re:I assume she's not qualified because she's a wo (75 comments)

I have no problem giving the job to the most qualified person, even if that person is a woman. But she's not the most qualified person! You know how I know? Because she's a woman! She is clearly an AFFIRMATIVE ACTION pick. She's no good. All she knows about is mechanical engineering (aside from her years of IT experience)! I'm so sick of all this AFFIRMATIVE ACTION! Again, I'd love to give the job to a qualified woman. But every woman who gets any job gets it because of AFFIRMATIVE ACTION!

Thank you for this succinct recap of much of this Slashdot discussion thread.

You did forget to mention how the position was "just invented" for her. (And her two predecessors, err...)

about a month and a half ago
top

California DMV Told Google Cars Still Need Steering Wheels

Kiwikwi Re:Driverless (506 comments)

In the Copenhagen Metro (driverless), there are emergency brake levers next to every door. However, it was considered dangerous for the train to stop in a tunnel (and have passengers exit through the tunnel). Therefore: If you pull the emergency brake, the train will continue to the next station, then stop. (If you don't pull the emergency brake, the train will continue to the next station, then stop...)

Anyway, this might still be the safest mode of operation. If there's anything rail automation has taught us over the last century, it is this: Whenever the human second-guesses the automation, odds are that the human is wrong. About time cars got to this point, too.

about 2 months ago
top

GOG Introduces DRM-Free Movie Store

Kiwikwi Re:Watermarks? (126 comments)

Watermarks are pointless in this context. Watermarks are used to annoy pirates and nail leaky insiders, thats about it. Its an extremely limited tactic.

Exactly. Watermarks are useless against general piracy, since the burden of proof is simply too high to take the case against John Q. Public.

For instance, most people don't know that when you buy music on iTunes, Apple puts your e-mail-address in a metadata comment field in the file. But now that you do know, feel free to take a look at The Pirate Bay and start collecting e-mail addresses from AAC files.

Note that it's not a watermark - it's not in the audio data, it's plainly visible in the file and it's trivially removed. Yet the pirates don't even do that. And why should they? I've never heard of a person being even threatened with legal action over this.

about 2 months ago
top

GOG Introduces DRM-Free Movie Store

Kiwikwi Re:Why not some really old movies (126 comments)

There are more recent films that also lapsed into the public domain, due to a failure to register the copyright, "Night of the Living Dead" being perhaps the most well-known example.

The real reason why GOG doesn't include these films is three-fold:

1) There are already sites doing this (for free), e.g. the Internet Archive.

2) The quality of the original prints is often poor, restoring old movies requires great skill and is very expensive, and existing restorations are not public domain.

3) Most importantly, it's besides the point. GOG is trying to get the film industry to recognize the value of selling DRM-free movies, like the music industry did before them. Selling public domain movies would be plain counter-productive.

Here's hoping they'll succeed where others have failed before them.

about 2 months ago
top

Interviews: Bjarne Stroustrup Answers Your Questions

Kiwikwi Re:Oh darn I forgot to ask... (102 comments)

...how the hell you say that guy's name.

Roughly "B-yarn-uh Straw-strop".

about a month ago
top

Two Years of Data On What Military Equipment the Pentagon Gave To Local Police

Kiwikwi Re:No (264 comments)

the war on drugs is precisely why the US has imprisoned a far higher percentage of its population than any other first world nation.

To be specific, the US incarcerates more people than any nation, first-world or not. That's not only by percentages, but also by absolute numbers. Roughly one in four prisoners worldwide sits in a US prison.

about 2 months ago

Submissions

Kiwikwi hasn't submitted any stories.

Journals

Kiwikwi has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?