News for hackers. Stuff that matters.

nx

Re:How to Do What You Love (2006) on Tuesday July 21, 2009 @05:18PM (#716878)
He also implies nobody would write a foreword if it wasn't for the prestige. I would be honored to write a foreword for people I admire, I'd do it even if my name wasn't on the book.
Re:Gauging Your Distraction on Saturday July 18, 2009 @04:12PM (#712113)
What gray lady?
Re:Brainfuck compiler in brainfuck on Friday July 10, 2009 @06:45PM (#698550)
Awib is an optimizing compiler:

o) Sequences of '-','<','>' and '+' are contracted into single instructions. E.g. "----" is replaced with a single ADD(4).

SUB(4)?

Re:Here's my 4 hr experiment into making a viral twitter app on Thursday July 09, 2009 @11:44PM (#697075)
Lasted about 2 hours.
Re:Triangular buttons key to touchscreen typing success on Tuesday June 02, 2009 @10:38PM (#639105)
Baker told Register Hardware today that each triangular key has significantly more dead space around it than you’d find on a standard Qwerty layout. Consequently, users are more likely to press the correct key each time they tap.

Or less likely to press any key at all?

Re:Wolfram Alpha: The Wikipedia Killer on Sunday May 17, 2009 @03:18AM (#613135)
I really want to believe that, but we'll have to check later on. I'd like to see the OS community triumphing over commercial solutions.
Re:Poll: What kind of cell phone do you have? on Friday May 08, 2009 @12:25AM (#599182)
Nokia 1100.
Re:Ask HN: What does the Google Ocean team do? on Sunday May 03, 2009 @02:57PM (#591132)
Because it was THAT hard to Google it, right? http://www.google.com/search?q=google+ocean
Re:Logicly: a logic gate simulator on Sunday May 03, 2009 @02:42AM (#590655)
Would be really cool if one could define "new gates" in terms of gates, e.g. a half-adder, a full-adder.
Re:Coding Horror: Has The Virtualization Future Arrived? on Monday April 27, 2009 @02:24AM (#580959)
I hate Jeff, but this post makes sense: instead of being constrained by the backwards compatibility requirement, one can just pack every past version of the software on each release, just like HTTP clients and servers do when they ask for the protocol version.
Re:Ask HN: What other HN-like sites do you read? on Thursday April 23, 2009 @10:52PM (#576894)
Why the name change? Have I missed something?
It would've been twice as cool if it could take voice instructions.
Re:Ask HN: Are you an active or reactive leaner? on Friday April 10, 2009 @01:21PM (#556364)
I usually can understand abstract concepts, but also need, or prefer, to work all the way from the bottom up, just to make sure it works like I think it does. I can't just believe something the teacher tells me, I have to prove it works that way, based on past knowledge. But it is necessary to be able to function in higher levels of abstraction, I understand matrix multiplication as a bunch of dot-products, not as sums of products of numbers, for example, and from that easily derives the need for equal number of columns/rows.
Re:What Stack Overflow Can Teach You on Sunday April 05, 2009 @10:01PM (#548115)
I'm not a native speaker of English, I've studied the language for seven or eight years, and a couple of months ago I signed up on Hacker News and Reddit. I've learned a lot about establishing strong and rich discussions by reading and writing comments and messages. Generalizing, this idea could be boiled down simply to "practice is good." Of course, all the years I took formal English classes were very useful, but we must not underestimate the power of putting our knowledge to use. Theory without practice is meaningless, knowledge without use is, well, useless.
Re:Ask HN: MAC vs PC for a developer? on Sunday April 05, 2009 @09:43PM (#548074)
Exactly, that's why I assume everyone who is on Hacker News is aware of the Linux branch of operating systems, and at least isn't naive enough not to consider them in this kind of choice.
Re:Ask HN: MAC vs PC for a developer? on Sunday April 05, 2009 @07:58AM (#547305)
That's my point: "Mac PCs or non-Mac PCs".
Re:Ask HN: MAC vs PC for a developer? on Sunday April 05, 2009 @07:57AM (#547304)
I'd argue that "PC" has two meanings then. I'm going for "non-Mac PC", since that's what the title implies by separating Macs from the rest of PCs, and because I don't feel sensitive to exclude a huge set of possibilities.
Re:Ask HN: MAC vs PC for a developer? on Sunday April 05, 2009 @02:11AM (#547134)
It's not the same. If you say "Mac or PC", it is understood that you mean "Apple computers, or other type of general-purpose personal computers, i.e., non-Mac PCs". But if we interpret "PC" only as "Windows computer", then there's this huge number of OSes we're not taking into account, since we're just considering OS X and Windows.
Re:Ask HN: MAC vs PC for a developer? on Sunday April 05, 2009 @01:07AM (#547084)
Excuse me, "PC" does not mean "Windows computer", so I'd pick a PC and install some Linux distro.
Re:The Eight Levels of Programmers on Friday April 03, 2009 @11:41AM (#545015)
I want to be a dead programmer.

No, that doesn't sound as cool as I expected.

Re:Ask HN: What are your HNs for other domains? on Sunday March 29, 2009 @03:41PM (#537698)
Thanks for submitting the link, the content there is very interesting.
25 or 100?

First attempt: quick typing, conscious mistake.

Second attempt: quick typing, wrong password again.

Third attempt: okay, I'll type it in carefully now. Wrong password.

Fourth attempt: oh, yes, that was my Yahoo! password. Remembers password and enters it cautiously, because he/she knows that he has a maximum of 5 login attempts.

Five are enough for me. Or at most 10. 100 seem ridiculous. How often does it happen that you mistype your password 99 times and get it right on the one-hundredth, before you're tired of being shown the "wrong password" message and click the "forgot password" link?

Yes, that's the best way to prevent account hijacking, in my opinion. Or block the IP for 30 minutes after 5 failed logins, that renders any dictionary attack terribly inefficient.
It is reducing the search space drastically: Word (about 30% of the total length, and might be capitalized) + number (15%) + symbol (1 character) + word (50%).

The search space for a length n is: 2 x 26^(n/3) x 10^(n/6) x 30 x 26^(n/2) = 60 x 26^(5/6 x n) x 10^(n/6) = 60 x 10^(5/6 x n x log10(26)) x 10^(n/6) =~ 6 x 10^(1.17914n) x 10^(0.16666n) = 6 x 10^(1.34581n)

So that's about a 6 followed by 1.5n zeroes of search space for length n, approximately. Using only 100 characters of the ASCII code tables, you have a search space of 10^(2n) possible passwords, which is about n/2 orders of magnitude larger than Haddock's search space.

Disclaimer: I'm a HS student, no crypto folk, so the above might be wrong, but it's basic combinatorial stuff. And that's just theory, in practice, with just "password1", "letmein" and "123456" for a dictionary attack, you can hack into like 3% of the accounts of a site that doesn't use Haddock.

Edit: Oh, I didn't even think of this: THE WORDS ARE ALL VALID ENGLISH WORDS! That makes hacking in a lot easier.

Re:Ask HN: What are your HNs for other domains? on Sunday March 29, 2009 @02:19PM (#537605)
Academic Hacker News: it's like reddit.com/r/compsci

http://www.cs.toronto.edu/~ad/news/

Re:Parsing Roman Numbers - Beautifully on Friday March 27, 2009 @10:46PM (#536105)
It's a great programming quote I'd never heard.
Re:Ask PG: Unique visitors by country on Thursday March 26, 2009 @09:30PM (#534487)
Argentina - 1? That's me!
Re:Contextual User Interfaces on Monday March 23, 2009 @10:38AM (#528594)
Emailing the password? Ha.
You mean it's interesting how irregular natural languages are, but those are the ones we use instead of well-defined ones? Yeah, I guess it is interesting. But then again, nature comes before science, right? (Well, not if you asked a string theorist.) We're trying to impose logical systems where they do not exist, like reliable computers built on top of unreliable transistors (or relays, or vacuum tubes, for that matter). Heck, we even mix countable and uncountable, continuity and discreteness. We count two rocks and therefore we think we can have exactly two meters of something.

Why can't we just be well-defined formal systems? :/

Re:Ask HN: Has Hacker News been hacked/cracked? on Tuesday March 17, 2009 @01:54AM (#519484)
Okay, trust doesn't work as well as correct security measures. That's sad, but true.

Older »