HNHacker News
TopNewBestAskShowJobs

visitor4rmindia

426 karma · joined June 9, 2008

submissionscomments
visitor4rmindia··on Tell HN: Please Stop Breaking HTTP Clients
Maybe this would help?

Section 19.3

The line terminator for message-header fields is the sequence CRLF. However, we recommend that applications, when parsing such headers, recognize a single LF as a line terminator and ignore the leading CR.

visitor4rmindia··on When I'm dead, how will my loved ones break my password?
To be honest, who mugs people for their data!?!

"Your bytes or your life!" just doesn't have the same ring to it.

visitor4rmindia··on A Tale of Two Programmers
This just sounds like a wishful fairy-tale. Why is it the top item on hacker news?
visitor4rmindia··on Ask HN: Where do I go from here?
It's stories like this that sometimes make me wish I had moved to the US.

The American Dream is truly a wonderful concept.

visitor4rmindia··on [dead]
This is a very limited study that is getting too much press. From what I understand, she has researched "perfect use":

>Her studies found that in perfect use -- meaning the man pulls out every time -- withdrawal has a 4 percent failure rate, as compared to condoms, which have a 2 percent failure rate.

>"But nobody's perfect," said Jones, who published her commentary in the June issue of Contraception magazine.

So, if nobody's perfect, I would say we need more research before drawing conclusions one way or the other.

visitor4rmindia··on Ask HN: In which modern language/environment/framework is programming a joy?
I find Scheme + C to be the most satisfying combination. I love the abstractions that Scheme provides and good C bindings means I don't have to worry about what libraries may or may not be available.
visitor4rmindia··on The Complexity of Songs by Knuth
I started on TAOCP (vol 1) many years ago but gave it up halfway through because it was too complex. I didn't remember anything humourous in it but because of your comment, I went back to check.

I had a good chuckle at the index flowchart - maybe I'll give TAOCP another shot - thanks.

visitor4rmindia··on The Complexity of Songs by Knuth
This is a surprisingly fun read!

Knuth has a sense of humor - who knew?!

visitor4rmindia··on Minimalistic (vim-like) web browser based on Webkit
>Do you cycle through links and then choose the one you wanted, or is there a more direct way of accessing them?

Opera has an excellent way to select links using spatial navigation (shift+down,+up,+left,+right). It's remarkably easy to navigate to any link quickly on the page.

Also http://www.opera.com/browser/tutorials/nomouse/ is a good place to start "keyboard-only" browsing.

visitor4rmindia··on Minimalistic (vim-like) web browser based on Webkit
I do. I actually use (lynx+vim) for most browsing, and Opera (which has good keyboard bindings) when I want to post something (like now).

It's not that I have anything against the mouse but I enjoy the workflow and it works very well for me. Plus I don't have to worry about adverts or drive-by infections most of the time :-)

visitor4rmindia··on Vim Recipes
Verbose and not worth the read IMHO. The best tip in this entire document was changing a sentence to title case.

>Select the text you want to convert, hit :, then enter the regex:

    s/\<\(\w\)\(\w*\)\>/\u\1\L\2/g. 
And, even this is not completely correct. The expression will not work if you select part of a line. Your best bet would be to remap the following:

  nnoremap <A-c> :s/\<\(\w\)\(\w*\)\>/\u\1\L\2/g<CR>
  vnoremap <A-c> :s/\%V\(\w\)\(\w*\)\%V/\u\1\L\2/g<CR>
To get key bindings that you like (I've defaulted to the EMacs capitalize-word binding).
visitor4rmindia··on Ask HN: The HN karma paradox
I'm interested eru - could I see the script?
visitor4rmindia··on Pirate Bay Founder Devises DDo$ Attack
Evolution.
visitor4rmindia··on My toughest job-interview question ever
He appears to be good at algorithms, has a feel for the actual space and time requirements, is able to think under pressure, and has a sense of humour.

I'd hire him in a heartbeat.

visitor4rmindia··on Surviving Emacs
I think you're missing the point. I'm not denying that EMacs is great at what it does (I use it extensively).

However, if I had RSI problems I would switch to something else - it's definitely worth learning a new tool if it helps my health and well being.

visitor4rmindia··on Surviving Emacs
Thanks - will try it out.
visitor4rmindia··on [dead]
Fair enough - sorry!

Give me a shout when you're down the next time and I'll put together a team to thrash you at kabaddi! :-)

visitor4rmindia··on Surviving Emacs
Ok - I know I may be downmodded for this but wouldn't it just make more sense to switch to an editor that maybe doesn't cause you RSI problems?

All I'm saying is that if you have to go through so much pain and trouble to use a piece of software then just maybe it's not right for you.

Also I'm not suggesting Vi but Emacs has a pretty good Viper-mode that may help with RSI issues. I use EMacs with Viper and I can pretty much work with minor hiccups when I switch from Vim. Just a suggestion.

visitor4rmindia··on [dead]
Welcome to India Jake Cooper! I hope you have a great time!

EDIT: Whoops! Sorry - my bad! Thanks paraschopra.

visitor4rmindia··on [dead]
Excellent advice Mahmud.

Also I'd guess Zaid is an expatriate - simply because I've noticed this tendency to put down India mostly among ex-pats (in the US and UK).

I'm a native and I love India. I've had chai at a dozen houses and shops and I never dreamt of feeling suspicious (and nothing happened to me either).

EDIT: To clarify my last statement - many shopkeepers will offer you tea when you are buying something from them.

visitor4rmindia··on [dead]
I'm happy you are re-thinking your suspicions - India is big and diverse and you can really meet some very nice people if you give them a chance.

Of course you can also meet some really horrible people but I think it's the same anywhere in the world. You have to keep your guard up a bit when dealing with total strangers.

visitor4rmindia··on A brief, incomplete and mostly wrong history of programming languages
Oh my God! That was the best belly laugh I've had in a long time. Very fun read.

>1995 - Brendan Eich reads up on every mistake ever made in designing a programming language, invents a few more, and creates LiveScript. Later, in an effort to cash in on the popularity of Java the language is renamed JavaScript. Later stil, in an effort to cash in on the popularity of skin diseases the language is renamed ECMAScript.

visitor4rmindia··on Best practices for programming in C
Um...function calls do have an overhead. Yes it is negligible in most cases but it certainly made a difference when C was invented.

In fact, C++ still carries the "inline" declaration around to avoid function call overhead. The compiler can ignore when knows better but the fact that inlining exits implies that function call overhead is not imaginary.

visitor4rmindia··on The Tao Of Programming
I will try to explain.

Firstly it is a focus on "results" rather than output. The novice has produced a lot of output but no results. How would you evaluate if the components serve their purpose? Are they doing too much? Are they not doing enough? It is only by virtue of the program's results that you can check. As programmers we tend to evaluate the code (which is an internal focus) more than the running program (which is an external focus). This is a great way to learn but a bad way to deliver anything of value to an end customer.

As a programmer, the novice would understand and be interested in the ins-and-outs of his screen editor, gui routines, and AI module. However, he would probably not have the same level of understanding of finance. For a good product, the novice should concentrate on raising his understanding of finance to the level where he can deliver solutions to his users. By ignoring his users (delegating them to an afterthought), he is making a fundamental mistake.

Finally, it is a question of value. This is key - the most fundamental aspect of this scenario. The programmer, for all his effort, has delivered nothing of value to his users. Worse, he does not even have the attitude and direction required to deliver value. When someone says "I'll put in that stuff later" (or it's equivalent), you can be sure they will deliver something of poor quality to the users.

In the end, if you cannot say the work you have done today will make someone's life better - what is the point of working so hard?

visitor4rmindia··on The Tao Of Programming
>A novice programmer was once assigned to code a simple financial package.

>The novice worked furiously for many days, but when his master reviewed his program, he discovered that it contained a screen editor, a set of generalized graphics routines, an artificial intelligence interface, but not the slightest mention of anything financial.

>When the master asked about this, the novice became indignant. ``Don't be so impatient,'' he said, ``I'll put in the financial stuff eventually.''

I love this one because it took me many many years to "get" this lesson: it's not about the code. It's about the Program.

EDIT: Minor edits

visitor4rmindia··on Is There Anything Good About Men?
You don't know Indian culture very well I can see. Yes they (and I) all have children. I don't think it crossed our minds not to.
visitor4rmindia··on Visualizing Bayes' theorem
Very interesting link. After reading that I think I may be generalizing from my own example. So I'll keep an open mind - thanks.
visitor4rmindia··on Is There Anything Good About Men?
I think she's insanely hot! As for smart, she worked as an IT consultant in the UK for over three years.

And her IQ is 131 (higher than mine).

visitor4rmindia··on Is There Anything Good About Men?
That's an excellent point! I really hope it doesn't work out that way but let's just wait and see.
visitor4rmindia··on Is There Anything Good About Men?
The original comment is simply an opinion so I replied with mine.

EDIT: Grammar

← PreviousPage 2 of 5Next →