Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Luyt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
331.
▲
by
Luyt
15y ago
I use the 'Screenshot Pimp' add-on for Firefox; it lets me download any embedded video whether it is on Blip, YouTube or wherever.
332.
▲
Python metaclasses explained
(stackoverflow.com)
2 points
by
Luyt
15y ago
|
0 comments
333.
▲
by
Luyt
15y ago
"The way I would do it is to push the processing out to functions, too." This is indeed a good idea to isolate code away, but wouldn't alleviate a deeply nested control structure. It would make it somewhat more easier to look at, thoug
334.
▲
by
Luyt
15y ago
Yeah, that's fun ;-) I wish there was a if main: ... # do some processing instead of having to write: if __name__ == "__main__": ... # do some processing That'd make DHH happy, too ;-)
335.
▲
by
Luyt
15y ago
Hmmm, you have a point there, but what is your proposal to solve it in a correct way, then? Some problems need a deeply nested control flow and arcane business rules, you have to implement that somehow, and in such a case the method I use l
336.
▲
by
Luyt
15y ago
I find a great way to avoid deep nesting is to move code to functions, and bail out when some conditions are not met. As an example, this deeply nested code: def frob(someargs): if something > 2: ... # do some
337.
▲
by
Luyt
15y ago
"One place we declared defeat was in very long lines" This still haunts me today. IDLE, the IDE-like editor that comes with Python, struggles with long lines. Execute something like this: print list(range(10000)) ...and your whol
338.
▲
by
Luyt
15y ago
I like that idea. You could encode a block of octets with plain words. "\xC3\x08\x00\x23\xFA" would then actually travel on the wire as "Was named prefer to use the other especially in, every cast a chuckle on neithout getting. Into useful
339.
▲
by
Luyt
15y ago
Part of programming is laying out your data structures and algorithms in advance; you can perfectly do that on paper or a whiteboard. A whiteboard is even better at demonstrating pointer manipulations, since you can easily wipe out arrows w
340.
▲
by
Luyt
15y ago
The VPS that I used to run my blog on cost a bit over $100 a month (1 GB Rackspace slice + 160 GB of bandwidth Are hosting services much more expensive in the USA than in the EU? I pay 25 euro for a colocated 1U slot, 100MB/s guaranteed
341.
▲
by
Luyt
15y ago
Great: light gray text on a whtite background, that gives an excellent reading experience (not!). On the content side, this article warns us of the scaremongering in advertisements, goes on to call it propaganda, and advises us to ignore it
342.
▲
by
Luyt
15y ago
This is actually very good advice, and you can extend it to comments in source code. When I was young, I sometimes couldn't resist the urge to put strong wording in comments, like: // This sucks, use a better data structure for it!
343.
▲
by
Luyt
15y ago
Well, you have to look at those versions a little bit finer grained. Windows NT 3.51, 4.0, 2000 and XP were all very usable in a business environment; Windows 95, ME and Vista not so. Windows 7 seems workable, and with Windows 8 it seems th
344.
▲
by
Luyt
15y ago
I also hope KDE5 will be more like KDE3 than KDE4.
345.
▲
by
Luyt
15y ago
To which jwz replied: "Safety regulations are great. The bureaucracy we have here goes far beyond that into attempted cultural engineering."
346.
▲
by
Luyt
15y ago
Nice read. Did you also always wanted to open things to see how they work? When I was 6 or so, I asked my mother if I could open our hamster to see 'how it worked inside'. Maybe if I were allowed that, I'd be a surgeon now instead of a soft
347.
▲
by
Luyt
15y ago
Couldn't you make some application which scrapes Craigslist every 5 minutes and detects newly posted items, maybe filter them on some criteria, and SMS them to your phone?
348.
▲
by
Luyt
15y ago
Brrr, I would be terrified if something like this happened to any of the open source software I regularly use; and I even tried to get some 'pet issues' into them, which weren't honored, so I had to carry along private patches which I had t
349.
▲
by
Luyt
15y ago
The tutorial does not mention a Windows GUI for git. There exists TortoiseGit: http://code.google.com/p/tortoisegit/
350.
▲
by
Luyt
15y ago
I often use: for line in open("name.txt"): print line # Or do something else with it.
351.
▲
by
Luyt
15y ago
'Jar' files are actually zip files with a '.jar' extension. On my Windows machine I have .jar associated with a zip application, very handy to quickly inspect its contents.
352.
▲
by
Luyt
15y ago
The correct link is http://losangeles.cbslocal.com/2011/12/07/tv-experiment-goes... They changed the date in the URL.
353.
▲
by
Luyt
15y ago
Gandhi, not Ghandi ;-) A very common mistake. http://en.wikipedia.org/wiki/Gandhi
354.
▲
by
Luyt
15y ago
About Fisking , Robert Fisk himself wrote: "I have to be honest: I don't use the Internet. I've never seen a blog in my life. I don't even use email, I don't waste my time with this. I am not interested. I couldn't care less. I think the
355.
▲
by
Luyt
15y ago
Because it really isn't natural at all, it only looks natural. AppleScript is a kind of COBOL. You have to know exactly what (natural-sounding) keywords and clauses you can use. Try some real natural language and the interpreter is sudden
356.
▲
by
Luyt
15y ago
Thanks for the Magnatune tip! From their site: "For just $15/month, you get unlimited music downloads in a variety of MP3 and lossless formats as well as unlimited online music streaming. Our library of 15,000 songs (1100 albums) [...]" T
357.
▲
by
Luyt
15y ago
Some people think that these power sources are actually devices which NASA will use to 'ignite' Saturn or Jupiter into a second Sun: The Lucifer Project [1] There exist a Skeptoid episode about this, explaining that this is impossible. [2
358.
▲
by
Luyt
15y ago
Well, you can always find examples which are hard to cast. I was thinking more of serially producing coffee cups rather than ceramic art forms.
359.
▲
by
Luyt
15y ago
I think that page could benefit from some examples created by speedataPublisher; now I only see a list of features and requirements, not what I'm able to create with it.
360.
▲
by
Luyt
15y ago
One interesting artifact of 3D printing: no volume discounts When you arrive at a design which is commercially feasible in larger volumes, you'd use the printed design for making plaster casting moulds, then use clay slip casting to produ
More ›