HNHacker News
TopNewBestAskShowJobs

samuel

744 karma · joined May 8, 2008

submissionscomments
samuel··on What's the one Linux command you wish you knew years ago?
set -o vi
samuel··on "I've isolated the bug to a database query"
I disagree with the readability part. I do heavy use of "WITH" to name my intermediate steps and comment the tricky parts (as I would do with any other programming language) and my colleagues find them pretty readable(or that's what I'm told). That's how I "reverse engineer" such monster queries, refactoring them in intermediate relations with names. Pretty often the same subselect is used more than once.

In fact, due the lack of side effects it's much easier to do than with procedural code.

samuel··on Underrated Features of PostgreSQL
transactional DDL for granted? Not at all! Oracle doesn't support that AFAIK. May be you were thinking about transactional DML?
samuel··on Ask HN: Anyone know where Mark Pilgrim went?
He's OK. I don't know how to link a tweet but see textfiles account(https://twitter.com/#!/textfiles)

Mark Pilgrim is alive/annoyed we called the police. Please stand down and give the man privacy and space, and thanks everyone for caring. ... The communication was specifically verified, it was him, and that's that. That was the single hardest decision I've had to make this year.

samuel··on About concurrency and the GIL
It really is performance-wise? Does a process switch between two equal processes avoids a TLB-flush?(How it could?) I don't know, I'm genuinely curious.
samuel··on Client asks for 100% uptime
(Embarrased) Yes of course it is. And that's coming from someone who presumes to know operator precedence and despises programmers who use extra parens for no good reason.
samuel··on Client asks for 100% uptime
I would answer that Price is a function of uptime given by the following formula:

Price(uptime) = K*(1/1 - uptime)

so I would ask for infinite dollars...

samuel··on Stanford's online Machine Learning class now open for enrollment
Look for yourself:

http://openclassroom.stanford.edu/MainFolder/CoursePage.php?...

The reference course on Stanford is CS229A instead of CS229, which is much lighter on Math. I have watched the videos on Linear and Logistic regression and the hardest derivations are elided, while the emphasis is put on intuitions.

samuel··on Java 8 lambda syntax decided - same as C# and Scala
...or rethrow it as an unchecked exception(RuntimeException).
samuel··on Chromebooks on sale at Amazon for $349
Asus is going to sell(presumably) the eee x101 running MeeGo for 200$, with decent specs for a "net oriented" computer(1 core Atom, 1GB RAM, 8GB SSD), so aren't manufacturing limitations what drive them away from that price tag. May be Google doesn't want to be identified with the somewhat crappy experience that low end hardware may deliver, just as they don't want Android to be associated with cheap smartphones, but with the iPhone competitors.

Which would be silly because their "OS" is much more limited than Windows 7, even the Starter version, and its only compelling feature would be to run on much cheaper hardware.

samuel··on Why python?
I do understand and use that features. My point it's that they aren't obvious. One of Python strengths was that any programmer could look at it and know what was going on, and, for newbies, it was much easier to learn.

I'm among the few unimpressed by list comprehensions. I use them because they're "idiomatic", but I'm equally comfortable with good old map(), which, I admit, it may be equally foreign for imperative-only programmers.

About the xrange() example, IIRC the iterator protocol predates generators, and probably is easier to grasp since the state is handled explicitely.

Decorators, as Lisp macros, are powerful but, if not handled with care, the source of very subtle bugs, because the thing you're looking at(the decorated function) doesn't do what it seems to do.

Anyway I'm not arguing against this artifacts, just pointing that, some of the merits of Python that were true a decade ago, aren't anymore.

samuel··on Why python?
I started to use Python not much after this article(2002?), and I wonder how much of those days' simplicity holds true. "Modern Python" is full of list comprehensions, generators and decorators. Not that's intrinsically bad, but it's not "executable pseudocode" anymore. Books as "Collective Intelligence" require you to know Python intricacies in order to understand it.
samuel··on Why F1 Steering Wheels Have Over 20 Buttons - And What They All Do
Because since it's hidden they don't want to disclose that information to other teams. I recall DLR(McLaren's driver) being asked about it after explaining their steering wheel's controls. Anyway, IIRC the interviewer "guessed" that it was another way of activating the DRS, so in practice it's not really so secret, but F1 its like this...
samuel··on "The worst algorithm in the world?"
Dunno. IIRC Every time I have seen the "bad" Fibonacci recursive algorithm has been followed by the "good" recursive one (bottom-up), which is O(1) in size if your language/implementation does tail-call elimination...
samuel··on Is “Hiring only the Best” a really Practical Advice?
I agree with this. Having A-players, recognized and respected as such may get the best of everyone. Lots of very capable people simply have had the bad luck of reaching teams without this kind of references and never were forced out of their "comfort zone". It's shocking when, having formed a great concept of yourself after years of practicing your craft, suddenly you find someone that outsmarts you in such a massive way.
samuel··on Ask HN: ______ is to Python as K&R is to C?
I agree. I think it's a great choice for experienced programmers: concise and to the point and exhaustive.
samuel··on Ask HN: Can Node.js Replace Mozilla Rhino?
I don't think they overlap too much. Rhino's primary use case is Java scripting, and it's (alleged) low performance probably doesn't matter a lot since it's just the glue that binds together heavier Java libraries. I know a handful of apps that use rhino that way: Mirth, Orion Rhapsody, Pentaho's Kettle...
samuel··on Moving to Python 3
"Python 3 is unarguably a better language than Python 2."

I would say that's unarguably marginally better. What provides Python 3 that I miss in Python 2? For me nothing at all. Ok, dealing with Unicode it's easier. So what? Optional type annotations, that's something I would miss.

samuel··on JQuery vs MooTools
I'm not submitting this as a flamebait. On the contrary, I'm fairly interested about HNers opinions about how these frameworks compare. I have little to nothing front end experience(and want to learn a JS framework). In my inexperienced view MooTools seems cleaner, but jQuery it's way more popular.
samuel··on Why Plenty Of Fish Stores Passwords in Plain Text
So he made a bussiness decission: weighed the risks and went for the most profitable one.

Still, I think he's been careless. If you really want to give your users a "recover password"(especially after you have reached success), do it in a sensible way. Use hardened authentication servers behind inspection firewalls(preferably encrypted so filesystem access isn't enough!!) but don't store them in the same database as the rest of your data. Or use hashes and store the plaintext(encrypted) in another system which will do the mailing.

There are lots of options, none of them as good as slow-hashes-only solutions, but a better compromise between security and UX.

samuel··on Bing sets the record straight on recent accusations
In fact what Google users are really clicking in searches are "google.com/url?" URL's which are also disallowed in robots.txt(while the url they redirect to aren't).
samuel··on Zed Shaw: Why I Don't Use Tor
Huh? Where's the conflict between Wikileaks and Tor? Wikileaks publishes goverment's secrets. Goverments sniff(presumably) citizens' communications, both content and session data. Tor helps citizens to leak those secrets hiding their session data.

Where is the conflict?

samuel··on Why Google's Chrome notebook will succeed
So it must be really tiny. Seriously, this thing is doomed unless gets really, really cheap, and I don't think how it could be.
samuel··on Why Google's Chrome notebook will succeed
But, How are they going to reach that price point? Specially since they are not going to produce them, and at least this model is pretty ordinary hardware(runs an Atom, not an ARM CPU). And, why manufacturers would want to canibalize their already tight margins on netbooks?

Besides, most people I know, would pay 100$ for the ability of running a "real" OS.

samuel··on Write your passwords down
So you have a paper on your wallet, which can be used to obtain every password you use, using an intricate and very specific "algorithm".

Then you publish the fact itself and the algorithm in your blog(real name), which, besides, doesn't depend on a passphrase (which could turn your method in a sort of dual factor authenticator).

The paper could be photocopied and returned to your wallet and you'd never know.

Please, don't talk me about how many bits of entropy your passwords have. They aren't secure.

samuel··on Netflix: Lessons We’ve Learned Using AWS
So you only test those cases you have thought can fail(which is compulsory to test anyway). The purpose of the Monkey Chaos is to trigger situations you haven't dreamed about.

OK, it ain't perfect. Things usually doesn't fail in a uniformaly distributed way and you can't be sure you'll see a different kind of fail on production, but it sounds useful(yeah, and pretty cool) nonetheless.

samuel··on I Miss Lisp
This is only true for SBCL on Linux, isn't it?
samuel··on How to detect a toxic customer
Sorry I don't get it. May be its me, I'm not on Sales or purchasing.

You want to purchase a large quantity of licenses, and you want a discount for them. So you ask for just one and use it as a proxy to know if the Company is flexible in its pricing? Is this standard practice?

I must say that I was at a company where the purchasing guy was always asking for discounts up front. He often tried to deceive the salesmen (for example he asked for free ISDN-GSM gateways to a telecom guy who ignored its price and thought they would cost like a phone). For him it was "just bussiness" and the way it's played the game.

Were we a toxic customer? For the naivest of our providers, sure we were.

samuel··on Facebook’s Gmail Killer, Project Titan, Is Coming On Monday
So it's more like a hotmail killer. Gmail users tend to be "power" ones.
samuel··on Ask HN: How do I give my son a head start?
It's funny, because that one of the "obvious" things to try that instead shows no correlation with academic performance. At least that's what it's said in "Freakonomics".

Anyway, I'm doing it with my two years and half son. He loves it and helps him to relax and rest(he's very active).

← PreviousPage 7 of 9Next →