Better HN
topnewbestaskshowjobs
Log inSign up

gopher

78 karma · joined Mar 5, 2008 (18y ago) · 43 submissions

Submissions

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

Why do you think so? The server should report a Status Code for your 2nd request. What header would carry this keepalive hint?

comment 13y ago · link · parent

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?

comment 13y ago · link · parent

try script(1) and scriptreplay(1)

comment 13y ago · link · parent

and it's broken on mobile. (Android)

comment 13y ago · link · parent

after all, we are all alike

comment 14y ago · link · parent

ok

8.

Colorful Terminals: Theme Support for Tmux(benjamin-schweizer.de ↗)

1 points · by gopher · 14y ago · discuss

9.

Remaining Anonymous(benjamin-schweizer.de ↗)

1 points · by gopher · 15y ago · discuss

comment 16y ago · link · parent

I've written a cross-platform, pure python benchmark for IOPS; see http://benjamin-schweizer.de/measuring-disk-io-performance.h...

11.

Measuring Disk IO Performance(benjamin-schweizer.de ↗)

2 points · by gopher · 16y ago · discuss

12.

Building rsync3 on Mac OS X (Universal Binary)(benjamin-schweizer.de ↗)

1 points · by gopher · 16y ago · discuss

comment 16y ago · link · parent

I've seen the future.

14.

Unix Terminals: Surviving the Encoding Hell(benjamin-schweizer.de ↗)

6 points · by gopher · 16y ago · 1 comment

15.

More Fun with the Python Class Dispatcher(benjamin-schweizer.de ↗)

3 points · by gopher · 16y ago · discuss

16.

Improved Python Traceback Module(benjamin-schweizer.de ↗)

5 points · by gopher · 16y ago · discuss

comment 16y ago · link · parent

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".

18.

Sniffing HTTP Traffic at HAR2009(benjamin-schweizer.de ↗)

1 points · by gopher · 17y ago · discuss

comment 17y ago · link · parent

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.

20.

Ask HN: How do you split strings (to get keywords)?

2 points · by gopher · 17y ago · 7 comments

21.

Active DNS filtering at DTAG?(benjamin-schweizer.de ↗)

1 points · by gopher · 17y ago · discuss

22.

Python-MagickWand or How to Work With Icons(benjamin-schweizer.de ↗)

1 points · by gopher · 17y ago · discuss

comment 18y ago · link · parent

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?

comment 18y ago · link · parent

yes.

comment 18y ago · link · parent

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.

comment 18y ago · link · parent

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?

comment 18y ago · link · parent

First, hard disks are written from outside to inside making them faster in the beginning and second, linear IO does not count for databases.

comment 18y ago · link · parent

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.

comment 18y ago · link · parent

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.
12