HNHacker News
TopNewBestAskShowJobs

gopher

78 karma · joined March 5, 2008

submissionscomments
gopher··on Stop Wasting Connections, Use HTTP Keep-Alive
Regarding the first question, IMO the webserver should half-close the socket. So, the on the wire requests are rejected on TCP level, while the final response is being delivered. Of course, the client needs to deal with socket errors in addition to http status codes.

For the keep-alive header, you are right, I wasn't aware of it.

gopher··on Stop Wasting Connections, Use HTTP Keep-Alive
Why do you think so? The server should report a Status Code for your 2nd request. What header would carry this keepalive hint?
gopher··on Hostnames
I think it depends mainly on the stakeholders. If we're talking about physical machines, I suggest location/hardware based naming. For virtual machines, I'd choose function/role based naming. Though, this depends on type and size of engineering staff that needs to work with it. For end users, I'd add service based names, possibly as cnames. And I'd plan to change the naming scheme as the requirements change. Has anyone a naming scheme that lasted more than ten years?
gopher··on Text-based terminal screencasts
try script(1) and scriptreplay(1)
gopher··on Mailinator has a new design
and it's broken on mobile. (Android)
gopher··on The Conscience of a Hacker
after all, we are all alike
gopher··on Poll: Hackernews Meetup: Stuttgart, Germany
ok
gopher··on Many SSD Benchmark Reviews Contain Flaws
I've written a cross-platform, pure python benchmark for IOPS; see http://benjamin-schweizer.de/measuring-disk-io-performance.h...
gopher··on HTML5 Game Engine
I've seen the future.
gopher··on Is HN changing ? Part 2
I've left HN some time ago, when I came back here today, I've seen three PHP stories on the front page. I'd say: yes, it changes. But I must credit one PHP story was on Pharen, "A lispy language that compiles to PHP".
gopher··on Ask HN: How do you split strings (to get keywords)?
I think of something like a comment or an abstract; security is not an issue here because input validation and escaping is done elsewhere.

Basically, I think of a string like "ham, egg." which should result in "ham" and "egg", and "Ветчина, яйцо." should also result in "Ветчина" and "яйцо".

The challenge is that you cannot whitelist all possible characters as there are (imho) too many charsets.

gopher··on Script kiddies have awesome tools
Basically, Wordpress is written in PHP and this is the root of all evil.

Let's look at the roots of PHP: it was never designed as a programming language, it was a tiny script language used to create Rasmus Lerdorf's website. Thus, it has a lot of oddities like the === operaor.

Do you know why it it is there? Because they wrote a broken instr() wrapper and messed up the error handling. And instead of doing one thing right, they added another obfuscation layer. Great design.

Then, PHP was traditionally used by webdesigners, not programmers. This lead to tons of bad code and bad practices. It is not that you cannot write elegant code in PHP, but there is so much more bad code around that it is hard to find the good code.

So, why do wonder about this?

gopher··on Does IE6 *Still* Matter?
yes.
gopher··on Check how fast it takes to brute force your password
I don't have a current dump, but if you send me an email, I can give you the script I've written to create those dumps. It prints out the counts.
gopher··on Check how fast it takes to brute force your password
I've created wordlists from Wikipedia database dumps some time ago (http://benjamin-schweizer.de/files/wordlist-wikipedia/); they are pretty large and thus, useful for dictionary attacks. The wordlists are sorted, common words are on top of the lists.

I think that there is a typical password length, so you could improve the sorting based upon a multi-dimensional rating scheme. I'd use expected password length and commonness of a word as factors. Mixing these real words with computer generated words might speed up brute force attacks.

However, I'm not sure how to integrate ordered wordfiles with rainbow tables. Any ideas?

gopher··on MySQL Disk Benchmarks with Sysbench. When will mySQL / INNODB stop scaling?
First, hard disks are written from outside to inside making them faster in the beginning and second, linear IO does not count for databases.
gopher··on Just why did people start using Python anyway?
Because other people used it, composed good code and even others adopted it. This resulted in a high-profile Python scene and good code. I think that many new ideas were contributed and it was fun to share ideas. This resulted in a rapid development of toolkits, frameworks and software. If you wanted to be part of this, you had to use Python.

But I think it is the same with JavaScript, Ruby, FreeBSD, PosgreSQL and many more hip foobars; In contrast, Java, PHP, many (not all) Microsoft products, Linux (partly) allured so many bad coders that it is simply boring to work through their code.

gopher··on New in Labs: Stop sending mail you later regret
WTF? Looks like GMail is feature complete and they dunno what to do... I bet the next thing we'll see is random signatures. Looks like the are implementing a bunch of useless features that all got mentioned in Usenet 15 years ago.
gopher··on Crowdsourcing a Pixel-Art City
And the famous eboy posters including Web 2.0 at http://hello.eboy.com/eboy/index.php
gopher··on Fed takes over AIG
Sometimes, you have to resign to win. If you want to keep these people off of education, how can they improve their own situation? Does this benefit you?

btw: what's your age now?

gopher··on Stack Overflow: the Blind Leading the Blind
What are the constraints? If it's processing time or memory, I'd choose the XOR solution (which is brilliant). But it could also be the time to solve the problem. This would mean that the first working solution that comes to mind would be the best. Or the solution should be transparent to non-programmers, which probably eliminates the XOR hack. It could also be the joy while coding...
gopher··on Join us at Hacker News Coffee, Palo Alto, Tuesday at 8:30am
http://301.sickos.org/ comes with python source, so you can easily hack it in (might be two more lines of code)
gopher··on Only two remote holes in the default install, in more than 10 years
A security hole? Indeed. In the default install? No, but anyways, those are the security guys and I feel this was funny:-)
gopher··on Programming Language Stories
I believe that the programming language does not matter, it is the paradigm that you follow. However, using exotic languages makes you read exotic code that might hold fresh ideas that drown in the crowd otherwise.
gopher··on PG on trolls
Some people troll because they know better but they are tired of explaining it. They say the truth(tm) when the crowd does not want to here it. I like them.