HNHacker News
TopNewBestAskShowJobs

crazydiamond

316 karma · joined December 27, 2009

part-time ruby programmer http://totalrecall.wordpress.com
submissionscomments
crazydiamond··on Vim Splits: A Guide to Doing Exactly What You Want
I usually have never found vertical splits to be helpful, though others may disagree. I prefer to keep several horizontal splits (in your case above). Just use C-j or C-k, your current file is maximized.

Remember, you have other options too, such as tabs, and just opening aux files as buffers and C-n or C-p to get to them.

crazydiamond··on Vim Splits: A Guide to Doing Exactly What You Want
omg, most of us have TAB mapped to insert-completion -- i've now got it mapped to snipMate.vim plugin.

In any case, ^w^w is quite easy to press twice without mapping, although that's entirely your call. It's fine if you have 2 equal splits and only want to jump to the other without resizing. When you have > 3, you definitely want to maximize the current split.

crazydiamond··on How an Indian Entrepreneur Learned to Love Paying Bribes
People like him make it tougher for the common man to survive, because we all have to pay bribes or nothing is done. Poor, or old or retired people are forced to pay bribes for basic amenities. We have to pay a bribe to get our income tax +++return+++. My old mother (78) was hospitalized and had to pay a bribe to get her insurance money. The list is endless.

For the last month, we've been out of +water+. This is because all the neighboring houses have an illegal connection which pulls the water from the main line. Of course, they've paid a bribe for it.

Its not funny, and its not fun. And it does not make the economy go smoother, _except_ for the rich.

crazydiamond··on Getting things done in the Capital of India
Actually the bureaucrats are quite open. A (real life) movie was once made on the IAS (English, August) which poked a lot of fun at them. It was later shown as part of the IAS training (perhaps still is).

The writer of the book, still is in the IAS and continues to write as he works.

crazydiamond··on Vim Splits: A Guide to Doing Exactly What You Want

    map <C-j> <C-W>j<C-w>_
    map <C-k> <C-W>k<C-w>_
    map <C-h> <C-w>h<C-w>_
    map <C-l> <C-w>l<C-w>_
Try these. They expand the window they move into. You'll love them.
crazydiamond··on _why: A Tale Of A Post-Modern Genius
> What we can learn from _why is non-attachment to our work

Non-attachment -- Exactly how? If so why delete your work ? That shows his attachment to it. iirc, there was some discontent over one of his libraries being overtaken by another (nokogiri ?). There were benchmarks that showed his lib to be slower. then he improved his lib. this went on. he did seem a bit annoyed, if i recall.

crazydiamond··on Black Holes: The Other Side of Infinity
Can someone summarize it. Only plays in USA.
crazydiamond··on _why: A Tale Of A Post-Modern Genius
I still can't figure why _why had to disappear just because his real name was discovered. So what's wrong with that?

And why hide your real name in the first place ? Considering that he gave presentations and made appearances, it was only a matter of time.

crazydiamond··on PyPy is the Future of Python
By writing part of python in python, they are avoiding repeatedly going to the C layer. Is that what makes it faster - fewer round-trips ?
crazydiamond··on Rubinius 1.0 (Fabius) Released
> He's also referred to Ruby as "Matz Lisp."

So when does the "enlightenment experience" Eric Raymond promised come ? Or did Matz take it all :-D

crazydiamond··on China is choking the Internet
Sorry to hear this. Can't you move out ? Why China - or is there no option. Can you not split some work with another Asian country - India for example ?
crazydiamond··on The Myth of Gravity
"but the approach implies that gravity is nothing more than the result of a system maximising its entropy, or disorder. ...

Smolin, a long term proponent of loop quantum gravity (LQG), believes that Verlinde’s work is not only compatible with LQG, it could even help to explain how familiar Newtonian gravity might emerge in this picture. According to LQG, spacetime isn’t the smooth fabric that Einstein envisioned; rather, if you zoom down to scales of 10^-33 cm, the fabric turns out to be woven from quantum threads. The key point for Smolin is that the holographic principle is also valid in this framework, allowing him to apply a version of Verlinde’s argument to demonstrate directly for the first time that loop quantum gravity has a limit that yields Newtonian gravity."

crazydiamond··on Untidy beds may keep us healthy
I haven't made my bed in a week. Now i am feeling +much+ better. :)
crazydiamond··on The most important programming language today
> If you really wanted to determine 'most important', think about what software you'd be left with if all software and dependencies written in a language was taken away.

That's one definition of "important". However, now that we have the OS's and webservers -- and are building _on_ them, what's the most important? Your point is like saying nuts and bolts are most important, for if you take them away the car will fall apart ;-)

crazydiamond··on How to spot a psychopath at work
The previous article I am speaking of (can't recall) spoke of how psychopaths can be totally emotionless when you describe their crimes to them. They cannot put themselves in the shoes of their victims. One way of getting them to confess was actually running down their achievements, comparing them to a well-known serial killer.

In some cases, this ploy succeeded and the suspect admitted to several murders that the police did not know of , or had not linked to the suspect. The need for attention, or to show off was so great.

The above post seems to refer to sub-clinical psychopaths. Its something we should _not_ be trying to judge - perhaps - we could land up judging normal people as psychopaths, since such methods of judgment _could_be_ error-prone, subjective and may not apply to people from different cultures or upbringing.

crazydiamond··on How to spot a psychopath at work
It really doesn't say much -- very successful .. manipulative .. no emotion .. the last 2 are quite subjective, quite common too.

There was an article on this topic some time back. Much more elaborate. Someone had done many years of study and came out with the conclusion that there are a large number of psychopaths. Even at home we could have relatives who are "sub-clinical psychopaths". He devised a test, but iirc, he advised others not to follow it, or to take its results seriously. However, it seems people have been using it while recruiting.

crazydiamond··on Ruby 1.9 made me remember how I hate the concept of encodings
I think there are trickier issues which a programming language has to deal with. For example, concatenating 2 strings using different encoding. Conversion is required. Specifying encoding is required.

And btw, here there is a loss since all character sets are not fully covered even in UTF-16 (iirc). I am trying to recall- maybe Matz gave a details reply somewhere on the net.

crazydiamond··on Ruby 1.9 made me remember how I hate the concept of encodings
I really can't recall the details but there are still some Asian character sets (Chinese iirc) that are not fully covered. The "two-way conversion" fails. And this was with UTF-16 iirc.
crazydiamond··on Ruby 1.9 made me remember how I hate the concept of encodings
I am not sure anyone else has it right, meaning Java and Python. I have read some article a month or 2 back, detailing what others have done -- none are proper/complete solutions. But from what I've seen in ruby discussion, a lot of rubyists are having problems with the new encoding system.
crazydiamond··on Ruby Ncurses Forms and Widgets Library
Another option that comes to mind is Thor by yehuda katz (took me ten minutes to recall the name!): http://yehudakatz.com/2008/05/12/by-thors-hammer/

otoh, there are some simple ones you could possible customize: i once studied and modified Choice (by Chris Wainstrath).

I'd really like to know if you find something that helps you, or what you did eventually.

crazydiamond··on The Myth of the Super Programming Language
iirc, the Lisp guy did offer some proof. Like macros.

One aspect that should be remembered is availability of libraries to do your tasks. I've read that CL just did not have a good enough set to use. Reddit was written in Lisp and then moved to python. One reason was threads, the other was that py had a lot of stable libs that could be reused.

crazydiamond··on The Myth of the Super Programming Language
Actually when i said the above, I should have clarified - for _me_ its more powerful. Your other points are very true. Smart or experienced programmers develop a product using X language, average programmers come to maintain it and cannot understand it. But what is the solution ? Should a good programmer dumb down his program for the sake of average ones to come ?

And yes, a smart programmer is way more productive than the average: could be more intelligent, a faster learner, or reuses what's there rather than reinvent the wheel. Smart programmer _often_ write simpler and clearer code -- I've seen newbies and average types writing convoluted buggy code for what could be done simply.

Smart programmers also sometimes realize that they might have a problem understanding their own code a while later and so use clearer, simpler techniques. So it can work both ways. Often they use more portable calls, or methods that will be backward compatible.

crazydiamond··on The Myth of the Super Programming Language
Sadly, not much in the way of any reasoning. Paul Graham etal have give reasons why they think Lisp is great, and their secret weapon. What is authors reasons for saying that is false.

I used to program in a hugely popular language, in which it was a pain to even open a file. It took ages to find out how to open it in append mode. How to format a decimal ... moving a piece of code into a try catch block was painful. Often one's productivity can suffer due to a language no matter how proficient one is in it.

Given the same amount of expertise in 2 languages, if i can write the same feature in much less time in one language, then it is more powerful.

crazydiamond··on TomDoc - Reasonable Ruby Documentation
I've been using yard for a while. Although, i often forget the tags and their usage, but one can use snippets for that (snipMate.vim) for example.

One can also write a script to generate the tags for a method.

crazydiamond··on Path to true happiness 'revealed'
1. I'd take these more as guidelines or suggestions, then. No harm in trying.

2. I totally agree that there's no standard definition to happiness, but is unhappiness not sort of universal -- i mean pretty standard. Call it unhappiness, dis-ease, or malaise, not feeling good, feeling out of sorts/low -- that kind of thing.

Some of these points certainly do help in making someone feel a lot less of these things. I find spreading good cheer - smiling and befriending new people really makes me feel much "happier", and these do not have to be strong/lasting relationships.

Showing affection to _animals_ really helps too. I have lots of stray dogs in my area, and i try to befriend them, some really respond lovingly, almost humanly.

Doing what i enjoy doing, hobbies is another suggestion.

Finally, I'd like to suggest some _meditation_. Keeping quiet, being internally silent for a while -- could be while sitting, lying, or walking in the park. Distancing myself from the constant din of thoughts and emotions and playback of the past. Cheers!

crazydiamond··on Ask HN: Power of VIM?
I wish vim would provide a kill-ring like emacs. I was recently writing an editor for an app of mine on the terminal. To enhance the keyboard usability - I read up on and implemented (among others) the kill-ring, it was easy to do, and really makes work easier than having to use registers. (kill-ring is for copying and yanking, multiple yanks go into the ring, and the values can be cycled through).
crazydiamond··on Ask HN: Power of VIM?
I loved your my_dict tip: ci' - new to me. Thanks.

Here's my favorite: http://rayninfo.co.uk/vimtips.html

crazydiamond··on Ruby Ncurses Forms and Widgets Library
Did you come across a project named Boson (I think), it allows aliasing of commands, and various other options. Check this: http://tagaholic.me/2009/10/14/boson-command-your-ruby-unive...
crazydiamond··on Ruby Ncurses Forms and Widgets Library
Thanks for your reply. I would really appreciate if you could elaborate a bit more on the REPL part. Are you talking of a command line with which to query your own app within the app, as to the state of objects. Is this within the app, or like talking to it on a port and passing commands on a shell.

I had been actually thinking on the lines of how emacs can expose its commands -- although i am not an emacs user. I'd need to study that.

I am very familiar with various command line parsing libraries, including cmdparse. I did not get your requirement in this context. Thanks for answering.

crazydiamond··on The problem with Microsoft according to Steve Jobs (1 minute video)
Enjoyed it. Nice video.
← PreviousPage 9 of 12Next →