Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Rangi42
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
Rangi42
11y ago
Python 3's `yield from` lets you write that in one statement: def n_queens(n): yield from (p for p in permutations(range(n)) if len({c + i for i, c in enumerate(p)}) == len({c - i for i, c in e
32.
▲
by
Rangi42
11y ago
Not everyone wants or needs to get a well-rounded liberal arts education. The problem is that undergraduate degrees are more and more a prerequisite for getting any job, so there's pressure to make it easy for poorer people to earn a d
33.
▲
by
Rangi42
11y ago
They never say which last letters are associated with which sex. I'm guessing that "o" is usually male and "a" is female, but, what about the other 24? Is "n" usually male ("-son")? Does "
34.
▲
by
Rangi42
11y ago
Which is also not likely to change. Again: "Now adults have no immediate use for teenagers." Why move just for the sake of your kid's four years in high school? This may not apply to urban families who take a train or bus to
35.
▲
by
Rangi42
11y ago
<video> tags are a more standardized part of the web. Although I should be able to disable auto-buffering as well as auto-play. Ideally the user can control whether all types of content get loaded—images, CSS, JavaScript, web fonts—or
36.
▲
by
Rangi42
11y ago
Do the third-world countries you're thinking of enforce traffic laws? Because I expect that an autonomous car could safely navigate an unmarked road if it were just paying attention to its destination and avoiding obstacles, not obeyin
37.
▲
by
Rangi42
11y ago
$400 USD is equal to 26,766.18 Indian rupees. Adjusting for purchasing power parity[1], that will buy as much as $1,526 in the US, so her yearly salary is equivalent to just over $18,000. Which is still surprisingly low. [1]: http:/
38.
▲
by
Rangi42
11y ago
"A seething mass of undifferentiated matter" describes runaway exothermic reactions fairly well. It also helps that Games of Life can be saved and reloaded. If your lab bench explodes, too bad, start over from scratch (assuming yo
39.
▲
by
Rangi42
11y ago
I see that you work in software security. Your list of sufficient criteria for Wikipedia relevance, alongside obvious ones like "been in the news" and "authored a book", also includes ones like "discovered a critica
40.
▲
by
Rangi42
11y ago
A treemap is a good static alternative to a literal tree of nodes. There are already programs like WinDirStat that use them to visualize file systems. https://en.wikipedia.org/wiki/Treemap http://windirstat.
41.
▲
by
Rangi42
11y ago
> Out of 4,037,953 GitHub user profiles with email addresses, we were able to identify 1,426,121 (35.3%) of them as men or women through their public Google+ profiles. I wonder if there's a gender bias with regard to making your Goo
42.
▲
by
Rangi42
11y ago
Also not a fan. The two existing methods of string formatting are sufficient: "%s %s %s" % (a, b, a) "{} {} {}".format(a, b, a) If you want placeholders to match variable names, you can do: "{a} {
43.
▲
by
Rangi42
11y ago
Perhaps someone could sneak it in as "further support for FAT32 variants." According to Terry, RedSea is "similar to FAT32, but with absolute block addresses instead of clusters, fixed-sized 64-byte directory entries and no
44.
▲
by
Rangi42
11y ago
This is a problem with a lot of paginated sites, such as Tumblr, various forums, and comment pages. Anything that's ordered from newest to oldest won't have a constant correspondence between URL and content.
45.
▲
by
Rangi42
11y ago
Okay, let's see what behaviors I should avoid... > Searching for the Tails, operating system, another Windows alternative popular among human rights watchers, will also land you on the deep-packet inspectee list. Oops. Too late. The
46.
▲
by
Rangi42
11y ago
That's not a practical metric, though. I'm on a campus with a 100Mbit/s connection, I frequently download large files (media and Linux ISOs), and still don't go above 200-300 GB/month. The 100Mbit/s figure is
47.
▲
by
Rangi42
11y ago
So in short, the opposite of a Bloom filter is a hash-map where, if you add two items that have the same hash, the second one replaces the first instead of them both being stored in a linked-list bucket. > The old id at that index is c
48.
▲
by
Rangi42
11y ago
Sam Hughes implemented this puzzle in Javascript to demonstrate how the solution works, and why some other proposed ones don't: http://qntm.org/gods
49.
▲
Rejecting the gender binary: a vector-space operation
(bookworm.benschmidt.org)
3 points
by
Rangi42
11y ago
|
0 comments
50.
▲
by
Rangi42
11y ago
Presumably the article's author is so used to "sexism" meaning "women are under-represented" that they don't realize "men are under-represented" is equally sexist. Not that under-representation is nec
51.
▲
by
Rangi42
11y ago
There would have to be strong controls on the recordings so that (a) the police need a warrant to access it, and (b) they can only view the relevant time and place. And I don't mean "a person whose nominal job it is to control acc
52.
▲
by
Rangi42
11y ago
I think most people don't expect the police to do that to them either. No-knock raids are something that happens to other people. Riots could affect anyone. (Not commenting on the accuracy of this view, just its existence.)
53.
▲
by
Rangi42
11y ago
It's parasitic because they're charging authors and readers. If publishing is a service to the author, then the author is paying to have their work seen, so it should be open access. If publishing is a service to the readers (as
54.
▲
by
Rangi42
11y ago
The source code is very well-written from a readability perspective, and the commmand-line API looks well-designed too.
55.
▲
by
Rangi42
11y ago
He's not obligated to do anything, but it's not surprising that other mathematicians are not too eager to retrace his steps to figure out if the proof is correct, given its length and unique notation.
56.
▲
by
Rangi42
11y ago
Which still fails if the values contain escaped quotes: Name, Age, Address "James aka ""Jim"", ""licensed"" attorney", 42, "New York" That's three values: J
57.
▲
by
Rangi42
11y ago
No, just the right edge. It also ignores the page zoom setting and screenshots the element at 100%. (User styles set by Stylish do apply, though.)
58.
▲
by
Rangi42
11y ago
Someone in the comments says "I was doing this on a normal 1600×900 monitory and was still having issues with the right edge being cut off a little." I have the exact same problem on a 1600×900 ThinkPad W530, running Windows 8.1 a
59.
▲
by
Rangi42
11y ago
What would observe differently about your dog if he were self-aware? Self-awareness wouldn't automatically let dogs speak their minds or write philosophical treatises on existence. When a dog is just sitting still, I have no idea if th
60.
▲
by
Rangi42
11y ago
I check Facebook once in a while and keep getting alerts (via a userscript) that friends of mine have deleted their accounts. On the other hand, the mailing list that my close friends and I created in high school is still keeping us in touc
More ›