News for hackers. Stuff that matters.

gopher

Re:Stop Wasting Connections, Use HTTP Keep-Alive on Friday March 08, 2019 @02:02PM (#19340933)
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.

Re:Stop Wasting Connections, Use HTTP Keep-Alive on Friday March 08, 2019 @01:58AM (#19335678)
Why do you think so? The server should report a Status Code for your 2nd request. What header would carry this keepalive hint?
Re:Hostnames on Sunday October 13, 2013 @05:02AM (#6541942)
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?
Re:Text-based terminal screencasts on Saturday August 10, 2013 @09:02AM (#6190948)
try script(1) and scriptreplay(1)
Re:Mailinator has a new design on Friday August 09, 2013 @06:33AM (#6184789)
and it's broken on mobile. (Android)
Re:The Conscience of a Hacker on Monday January 14, 2013 @12:00PM (#5055409)
after all, we are all alike
Re:Poll: Hackernews Meetup: Stuttgart, Germany on Tuesday February 21, 2012 @09:48AM (#3616599)
ok
Re:Many SSD Benchmark Reviews Contain Flaws on Monday September 13, 2010 @06:23AM (#1686106)
I've written a cross-platform, pure python benchmark for IOPS; see http://benjamin-schweizer.de/measuring-disk-io-performance.h...
Re:HTML5 Game Engine on Wednesday April 21, 2010 @08:20AM (#1281965)
I've seen the future.
Re:Is HN changing ? Part 2 on Thursday January 14, 2010 @08:40AM (#1052538)
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".
Re:Ask HN: How do you split strings (to get keywords)? on Thursday July 30, 2009 @06:40PM (#733247)
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.

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

First trial, one splits on whitespace, but this sucks on interpunction and special characters.Second trial, you use a alpha-numeric whitelist and split on anything else, but what about umlauts? What about hebrew or cyrillic?Third trial: split on characters < 32, whitespace and interpunction characters; this works somehow but is ugly. What would you do to get keywords from a string?

( Read More... | 7 comments | 2 points | on HN )
Re:Script kiddies have awesome tools on Wednesday November 05, 2008 @09:12AM (#354495)
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?

Re:Does IE6 *Still* Matter? on Wednesday November 05, 2008 @08:34AM (#354478)
yes.
Re:Check how fast it takes to brute force your password on Friday October 31, 2008 @05:59AM (#349817)
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.
Re:Check how fast it takes to brute force your password on Friday October 31, 2008 @04:46AM (#349783)
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?

First, hard disks are written from outside to inside making them faster in the beginning and second, linear IO does not count for databases.
Re:Just why did people start using Python anyway? on Thursday October 09, 2008 @06:53AM (#327687)
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.

Re:New in Labs: Stop sending mail you later regret on Tuesday October 07, 2008 @09:42AM (#325687)
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.

Older »