HNHacker News
TopNewBestAskShowJobs

salmonellaeater

910 karma · joined October 16, 2012

submissionscomments
salmonellaeater··on Captain American in a Turban
It's a little more low-tech:

http://en.wikipedia.org/wiki/Flash_%28photography%29

salmonellaeater··on Captain American in a Turban
The photos look unrealistic because the photographer used flash. They used something to diffuse the light, which makes it harder to recognize as flash, but the color temperature gives it away.
salmonellaeater··on Useless Use of Cat Award
Another handy bit of syntax:

  $ command-name 2>&1 | less
This combines standard out and standard error into one stream so you can read all the output in less [1]. Piping just standard out leads to stray error lines popping up on the screen while less is running, and they aren't kept in less's buffer so you lose track of them.

[1] http://www.cyberciti.biz/faq/redirecting-stderr-to-stdout/

salmonellaeater··on Documents Shed Light on Border Laptop Searches
EFF guide to defending your privacy at border crossings:

https://www.eff.org/wp/defending-privacy-us-border-guide-tra...

salmonellaeater··on A Really Good Article on How Easy it Is to Crack Passwords
Shannon did an experiment that found the entropy of English text is about 1.6 bits per character. This is probably a high estimate, since the kinds of sentences you might think up for a password probably have lower entropy than if you used a source of random bits to generate valid sentences.
salmonellaeater··on A Really Good Article on How Easy it Is to Crack Passwords
> "This is an answer to the batteryhorsestaple thing."

Steube misunderstands the xkcd comic [1]. There's a really good comment which explains it: "It could be argued that Randall's example of 4 words is too short -- and indeed, for some applications, it is. However for a typical dictionary size, and genuinely random selection, it is massively stronger than "typical" passwords and in fact easily adequte to defeat the above-mentioned attacks." [2]

Emphasis on "genuinely random selection."

[1] https://xkcd.com/936/

[2] http://www.schneier.com/blog/archives/2013/06/a_really_good_...

salmonellaeater··on We Post Nothing About Our Daughter Online
This approach is doomed to failure. From the moment their daughter starts spending time with people outside her immediate family, she will start showing up in others' photos and her face will be linked to those people. Given that there's some unknown person who repeatedly shows up with certain people, the second her name leaks somewhere it will be easy to reveal her history.

Even without face recognition, disparate 'anonymous' accounts on different sites can be linked to her, as long as a few associates can be linked to real-world people [1].

[1] http://www.academia.edu/1518346/Link_Prediction_in_Highly_Fr...

salmonellaeater··on Facebook is bad for you: Get a life
I thought the list was intended as a joke, a sort of master list of things everyone complains about. It also seems like all of the gripes are basically "I want to do something and I don't want certain people to know about it." In other words, privacy. With Mark Zuckerberg running the company (with his public disdain for privacy), are any of these gripes surprising?
salmonellaeater··on On Friday I sat in a bank
Ungepatched: Yiddish for "all mixed up."
salmonellaeater··on Plain Text Doesn’t Exist: Unicode and encodings demystified
> utf-16 misleads people into using fixed-width code where it won't work right

This is exactly my point: lots of code also treats utf-8 as if it were ASCII.

> how often do you see bulk pure text, without any markup, and that can't be compressed?

That's a good argument. Thanks :)

salmonellaeater··on Plain Text Doesn’t Exist: Unicode and encodings demystified
What is the argument for utf-8 that doesn't also apply to utf-16, depending on what your common characters are? Applications that use Asian languages take a big hit from utf-8.
salmonellaeater··on 29% of Bay Area's particulate air pollution comes from across the Pacific (2010)
> Riding a bike vs driving actually causes more pollution (because farms make lots of pollution) [unless you replace exercise you anyway do with bike riding].

Can you explain or provide a reference? Are you suggesting that because you consume more calories if you exercise, and your food comes from farms, the extra farm pollution is worse than what your car would have produced?

salmonellaeater··on Feds seized $2.9M from Mt. Gox, court docs show
You can't do arbitrage if you can't get your dollars out. If you buy Bitcoins for $100 and sell them on Mt. Gox for $120, you're making money on paper but you can't necessarily get your earnings out into your bank account. You'd quickly run out of capital, and in the end you might have your dollars seized.
salmonellaeater··on Everybody thinks about garbage collection the wrong way (2010)
The key point is that finalize() is not reliable, so you shouldn't depend on it. The correct idiom is more or less

  myResource = foo();
  try {
     ...
  } finally {
     myResource.release();
  }
Some programmers (although I've never met one) try to avoid this boilerplate by writing a finalize() method on myResource that releases it. It's an anti-pattern. C# and Java have syntactic sugar now that makes the boilerplate shorter, which should help.
salmonellaeater··on More Encryption Is Not the Solution
The difference is the country in which the hardware or the business resides has many more tools for getting at private data. They can just hit you with a wrench until you give up your secrets.

http://xkcd.com/538/

salmonellaeater··on More Encryption Is Not the Solution
> b. Fully (end-to-end) encrypted

One of the author's points was that you can't even trust your hardware. To prevent this fundamental weakness, we would need a whole new infrastructure of open-source hardware designs along with manufacturers who could somehow be trusted not to insert backdoors.

Also, you can't live in modern society without doing communicating with entities who you don't necessarily trust with your privacy (i.e. businesses). If the other party is agnostic or malicious regarding your privacy then you need the state's help if you want protection.

salmonellaeater··on Crashmapper: Visualizing Years of Traffic Collisions in NYC
Obligatory XKCD: http://xkcd.com/1138/

In Seattle a few intersections have been singled out as the most dangerous for cyclists because of the number of collisions involving cyclists there. Considering they are also the highest-traffic intersections for bicycles, it doesn't actually say anything about how dangerous they are per cyclist-trip.

Crashmapper is useless without knowing how many vehicles pass each intersection per day.

salmonellaeater··on How Watching 'Unbundled' ESPN and AMC Could Cost More Than Your Whole Cable Bill
I think the main reason bundling will continue to be how most television is offered is because it offers easy price discrimination. Which customer will be willing to pay more for ESPN: customer 1, who already is subscribed to 200 channels and has more than enough shows to watch; or customer 2, who isn't subscribed to anything? The cable companies and networks know that each additional channel or show offers diminishing marginal returns for the customer, and they want to get as much of the surplus in this transaction as they can. If they unbundle, they'll charge much more per channel, because they know customers will be willing to pay more.

If unbundling starts becoming more common, the big advantages I see for consumers are that people will waste less time watching things they don't care about (because they never subscribed to them in the first place) and money will go to studios that produce quality shows people are willing to pony up for, increasing the overall quality of entertainment. I'd love to be able to not subsidize reality TV.

salmonellaeater··on How ASCII lost and unicode won
Chinese has many different input methods. For example, in Taiwan most keyboards have the symbols for 4 different input methods printed on them: English/Pinyin on the top left, Zhuyin on the top right, Cangjie on the lower left, and Dayi on the lower right. The top two are phonetic, and the bottom two are symbolic.

Chinese input methods typically require a sequence of key-presses and then a selection from a menu of matching characters, with the most common matches first. Multi-character sequences can be entered without making a choice until the end, in which case the most likely n-grams come first.

Most people in Taiwan learn phonetic (Zhuyin) in school, which is very easy, as long as you know standard pronunciation.

http://en.wikipedia.org/wiki/Keyboard_layout#Taiwan

salmonellaeater··on How ASCII lost and unicode won
The fact that UTF-8 and UTF-16 are often exposed to programmers when dealing with text is a major failure of separation-of-concerns. If you had a stream of data that was gzipped, would it ever make sense to look at the bytes in the data stream before decompressing it? Variable-length text encodings are the same. Application code should only see Unicode code points.

In general it was a mistake to put variable-length encodings into the Unicode standard. A much better design would have been to use UTF-32 for the application-level interface to characters, and use a separate compression standard that is optimized for fixed alphabets when transporting or storing text. This has the advantage that the compression scheme can be dynamically updated to match the letter frequencies in the real-world text, and it logically separates the ideas of encoding and compression so that the compression container is easier to swap out. And, of course, an entire class of bugs would be eliminated from application code.

Edited first paragraph to clarify: Variable-length text encodings are the same.

salmonellaeater··on To clean the air, Dutch scientists invent pavement that eats smog
carbon doped TiO2

Can you provide a reference? Did I link to the wrong paper? That's an important detail and it's not in the article.

much more effective than regular TiO2

How much more effective? The study done by Italcementi in 2002-2003 (admittedly not very trustworthy since it's done by the company that makes the product) has numbers comparable to the Eindhoven study.

salmonellaeater··on To clean the air, Dutch scientists invent pavement that eats smog
The title is a little misleading. Titanium dioxide has been known since 1967 [1] to act as a catalyst for oxidizing a wide range of compounds, including nitrogen oxide (i.e. smog). Since at least 2002 it has been known to significantly decrease smog when applied to road surfaces [2][3]. The contribution here is another study (behind a paywall [4]) providing evidence for TiO2's efficacy at reducing smog.

[1] http://en.wikipedia.org/wiki/Titanium_dioxide#Photocatalyst

[2] http://www.italcementigroup.com/NR/rdonlyres/1F30E487-C0A2-4...

[3] http://www.time.com/time/specials/packages/article/0,28804,1...

[4] http://www.sciencedirect.com/science/article/pii/S0304389413...

salmonellaeater··on As Competition Wanes, Amazon Cuts Back Discounts
Amazon is intensely interested in finding the right price for everything. If you pay attention you can see small adjustments in the prices of a lot of products; they're most likely doing the equivalent of A/B testing to discover their most profitable point for every product. A product without competition will be less price sensitive, so they'll end up pricing it higher. An interesting question is whether Amazon could end up in legal trouble for what their pricing algorithm does.

A major theme of the small publishers and authors quoted in the article is that Amazon's price is higher than the publisher would want. If Amazon pays a fixed price for every book, then there's a fundamental conflict between the parties. Amazon wants to make margin, the publisher wants to make volume. If the publisher wants Amazon to keep their best interests at heart, they'll have to change the nature of their deal with Amazon so that their interests align.

salmonellaeater··on Tools To Help You Hide Online Raise The Ire Of Advertisers
At that point it becomes a question of whether browsers can be uniquely identified so they can be tracked across sites. If the advertiser can place a cookie from site A and a cookie from site B, they don't have a way to link them unless the browser is unique. Users who care about privacy are going to have to defeat browser fingerprinting[1].

[1] https://panopticlick.eff.org/

salmonellaeater··on New Argument in Forced-Decryption Case: Defendant’s Memory Is Ticking Clock
Put him in jail for contempt until he speaks or dies.
salmonellaeater··on Algorithms Every Data Scientist Should Know: Reservoir Sampling
It's easy to do the right thing using arbitrary-precision arithmetic and a random-bit generator. Basically, generate bits after the decimal point until the possible range for the final random number does not include 1/n. The number of bits you have to generate doesn't depend on n: the expected number is 2 bits[1]. If your random bits are biased, that's easy to correct too[2].

[1] You always need at least one bit. After the first, each additional bit divides the space in which 1/n can lie in half, so it's just 1 + (1/2 + 1/2(1/2 + 1/2(...))) = 1+1/2+1/4+... = 2. It's a lot like arithmetic coding[3]

[2] http://en.wikipedia.org/wiki/Fair_coin#Fair_results_from_a_b...

[3] http://en.wikipedia.org/wiki/Arithmetic_coding

salmonellaeater··on Free Speech Zone
"...picketing is afforded less protection than pure speech due to the physical externalities it creates"

Part of the point of protesting is that it inconveniences normal people and forces them to pay attention, and to likely hear the group's message in the process. I get personally irritated when some group is causing traffic delays and making a ruckus where I'm trying to go about my life, but I firmly believe they have the right to do it. Some day I might want to protest something, and I'd like to have the option.

salmonellaeater··on Being Present
He mentions that emails often end up occupying your mind for 30 minutes after reading them. If you're distracted and mulling over some problem that came from an email, you're not fully present.

I'm sure many have noticed this effect from reading email or news before bed. Often if I've been surfing or reading email too close to bedtime, the interesting issues and problems I've read about keep me awake for a long time.

salmonellaeater··on The Fallacy of Human Freedom
I think his definition of progress is steady change toward an ideal version of humanity. The main problem is that the ideal changes with the age, and not in a predictable way. If you were to ask someone 500 years ago what a perfect person was, it would be quite different from the answer you'd get today. What does progress even mean if the ideal towards which humanity is moving keeps changing? It just becomes a random walk.

Also, just because human behavior is changing, doesn't mean human morality is becoming better in any objective sense.

salmonellaeater··on Helios Bars: The arrival of the smart bike
You put a pay-as-you-go SIM card in it, and you can text it and it'll text its coordinates back.

That suggests, though, if anyone knows your bike's number they could track it everywhere. I'm not sure I'd want that feature.

← PreviousPage 5 of 6Next →