HNHacker News
TopNewBestAskShowJobs

jgeralnik

1,174 karma · joined June 17, 2011

Contact me. jgeralnik at gmail
submissionscomments
jgeralnik··on Tim Berners-Lee's Original Announcement (1991)

  However, it could start a revolution in information access
I'll say...
jgeralnik··on Collection Of Puzzles For Programmers
You're better off making that a generator:

sum((x for x in xrange(1, 101) if x % 3 == 0 and x % 5 == 0))

Notice the parenthesis instead of square brackets. Your version actually creates a list in memory. A generator generates the items one by one and doesn't need to store them all at the same time.

jgeralnik··on Raspberry Pi gets a Firefox OS port
Right, but the theoretical price of a pi is 35USD, not 35GBP.
jgeralnik··on Raspberry Pi gets a Firefox OS port
I orderer from RS in the first week and got it months ago for a total cost of $41 including shipping to Israel.
jgeralnik··on Humble Indie Bundle for Android 3
The two games that interest me from this bundle, Spacechem and Uplink, were already in previous bundles (though not for android) so I think I'll be passing on this one even though I've bought most of the previous ones.
jgeralnik··on The First Simple Symmetric 11-Venn Diagram found
Each color is touched by at most one color on top and one color on bottom. Looking at the original 7-Venn we get Red->Orange->Yellow->Green->Blue->Purple. Change the odd colors to white and the even colors to black and you're done.
jgeralnik··on Reasons for not learning functional programming
You missed the intro

  I'm trying to write a blog post for O'Reilly publicising
  the tutorials at CUFP, and was going to structure it
  around "10 reasons for not learning functional
  programming" rebutting each of them. Here's my list of 11
  (so far) … any more ideas?
jgeralnik··on Installing Linux on Windows 8 PCs: No easy answers
Yes, but that would make them responsible for any malicious code that any other distro used. That would mean they would have to do security reviews of every other distro if they wanted secure boot to remain secure, which is not feasible at all.
jgeralnik··on Changing My Mind On Microsoft
(Anecdotal counterpoint) For the vast majority of the students at my university, visual studio is the reach-to solution for any problem. They would much rather figure out how to write ASP.NET because visual studio is "awesome" than go around running node.js (what's that?) from a command line.
jgeralnik··on The Two Egg Problem
You could continue the binary search but that's not relevant anymore - the problem is to minimize the worst case, and your worst case is 51 while there exists a solution whose worst case is 14.
jgeralnik··on [dead]
Nope. I got it recently and can say for sure that it happened at exactly 500.
jgeralnik··on Vim Creep
It's not that individual commands are intuitive. Yes, you need to learn the verb for copying is y (and is called yank), the verb for deleting is d. The "intuitive" part comes once you have a basic vocabulary. You can then learn a new action and already "intuitively" know advanced ways to use it.

If I learn the new verb c, which deletes and puts me in insert mode, I already know that I can type c3w to change 3 words, or ci" to change the phrase inside quotation marks.

Because all verbs work on the same set of nouns and adjectives I can intuitively know what many commands do - even though I've never tried them - as long as I understand the parts that make up the command.

jgeralnik··on UK anti-encryption law
But the encryption method doesn't need to be non-trivial, especially when you define key as anything that

  (a)allows access to the electronic data, or
  (b)facilitates the putting of the data into an intelligible form;
jgeralnik··on UK anti-encryption law
It's really quite simple. Just xor it with some publicly available text, and then present the result of that xor as the "encryption key". When you xor that result with the original data, you get the publicly available text back.
jgeralnik··on Having a Go - first time experience with Golang
Just to give an example from I project I'm working on now:

  output.WriteString("<statements>\n")
  defer output.WriteString("</statements>\n")
jgeralnik··on Boxopus lets you download torrents to Dropbox anonymously + w/o a Torrent client
>> You don't need to "get" the file from anyone, you just need convince Dropbox to mark your account as having that file.

That post made it sound like there was a purpose to having the file in dropbox other than getting it.

jgeralnik··on Boxopus lets you download torrents to Dropbox anonymously + w/o a Torrent client
Maybe I'm missing something. What possible purpose (other than getting the file) could there be to convincing Dropbox that you have a file?
jgeralnik··on Boxopus lets you download torrents to Dropbox anonymously + w/o a Torrent client
If there is cooperation with another client who has the file you could just get the file from them in the first place.
jgeralnik··on Password Rules
Gmail, at least as of two years ago, let you choose a new password after correctly answering the security question. I once tried to answer the security questions to all of my close friends' accounts. I then sent the ones the I succeeded on (and was presented with a choose your new password screen which I then closed) and email suggesting that they change their security questions to something more secure.
jgeralnik··on Light Table is in YCS12
In this case YC is not about the funding but about the support and connections.
jgeralnik··on A few things to remember while coding in Python
I assume it was a joke; a pop culture reference to this stack overflow question:

http://stackoverflow.com/questions/1642028/what-is-the-name-...

jgeralnik··on The Facebook Offering: How It Compares
It looks like the size of the circle is the same as the value on the Y axis. The advantage of having higher values have bigger circles is that you can make all the crowded companies at the bottom of the Y axis can have smaller circles.
jgeralnik··on New PHP Vulnerability:?-s may expose source code for mod_cgi
Using that search and clicking through a few pages I found this: http://support.webroot.com/app/answers/detail/a_id/1761 which is susceptible to this vulnerability.
jgeralnik··on Use Probability Models to Predict Pebble Sales (and win a Pebble)
On the other hand it may be people who are on the fence about supporting or not and with the time whittling down decide to go for it.
jgeralnik··on Outwitting the Prisoner's Dilemma
No, he means Defect-Cooperate should give the person who lost less than he would have gotten from Defect-Defect.

For example, in the Prisoner's Dilemma you might get 0 years of jail time if only you defect, 1 year if you both cooperate, 3 years if you both defect, and 10 years if only the other person defects. Then, knowing that the other person will defect it is still in your best interest to defect as well.

In this challenge, if you know that the other person will defect you automatically get $0, whether you defect or not. In that case there is no particular reason for you to defect (except out of spite) and you are better off with the hopes that your opponent will keep his promise than with nothing.

jgeralnik··on Thinking in a Foreign Tongue Reduces Decision Biases
In this case the experiment compared bilinguals who had the problem presented to them in their native tongue with bilinguals who had the problem presented to them in their second language. It found that answers were dependant on the language they had been presented in - when the answers were in a foreign language there was less decision bias. It seems that being bilingual did not prevent people from having this bias in their native tongue.
jgeralnik··on You have 404,722 users? Here's what you can do.
http://news.ycombinator.com/item?id=3850739
jgeralnik··on Released: Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3
There aren't 4 current versions, there are 2. The other 2 are old versions that still get security updates.
jgeralnik··on Exploit Linux Machines Through Fun Challenges
One thing to note is that gdb screws with memory allocation. Just because it looked that way while running gdb does not mean it will look that way when run normally.
jgeralnik··on Kim Dotcom: The US Government is Wrong, Here’s Why
You're missing the point. There is a DMCA process, by which someone sends a takedown notice and the website owner needs to take down infringing material. In addition to this process, Megaupload offered certain third parties the ability to directly take down files without having to go through the takedown process. It is this ability which was limited, not the ability to send takedown notices.

All I'm saying is that in this regard Megaupload's actions were perfectly reasonable. The debate about whether taking down links instead of files because not all copies of the file are infringement is a completely separate issue.

← PreviousPage 5 of 7Next →