HNHacker News
TopNewBestAskShowJobs

crazydiamond

316 karma · joined December 27, 2009

part-time ruby programmer http://totalrecall.wordpress.com
submissionscomments
crazydiamond··on So You Want To Be A Ruby Dev
Unnecessarily critical and not amusing. To bring up jruby and rubinius for someone starting out in ruby??? Why not also confuse him with Macruby ?

I develop more for fun .. i develop in ruby 1.9 and test to see it works in 1.8.7 also. No big deal!

I use "gem" for installing gems. Not bundler. No need to confuse someone new with RVM and ask him to play with all versions of ruby till he finds the one that suits him.

Its like asking a Java developer to try out all versions of Java starting with the 1.0 version, or asking a python developer to try jython and IronPython in addition to the 2 or 3 current versions.

What about perl. Should a new developer try out perl 4 and perl 6 too first ?

crazydiamond··on [dead]
Loved it. I imagine a lot of people will gladly hire her.
crazydiamond··on ScraperWiki - an online tool to make scraping simpler and more collaborative
Ruby has a library named scrubyt

http://scrubyt.org/

crazydiamond··on Vim and I and what my ideal Editor would look like
What you expect as defaults can be quite subjective.

Having worked on Vi/vim for over 20 years on a variety of systems, I actually expect other apps to behave like vim. I too have used a Mac for over 10 years but use vimperator on my FF browser, use file managers and other apps that allow for hjkl and other vi-ish strokes.

I am not sure the defaults you mention for C&P and Undo were around when Vi was written. So expecting Vi to behave as a Mac app may not be very fair. I've tried MacVim, but i prefer using Vim inside a Terminal in Screen.

crazydiamond··on Mailman: An incoming email processing microframework in Ruby
Could you tell us what other similar projects/gems exist in ruby? How is this different or better than them ?

Are you handling gmail accounts, TLS authentication ? Is this 1.9 compliant ?

crazydiamond··on One reason why humans are special and unique: We masturbate. A lot
From personal experience, I'd agree that lust requires the ability to string together thoughts. Having meditated for many years -- remaining in the present moment free of thought, ignoring any thought that comes, letting thoughts fall off as they arise -- lust / arousal are impossible (unless perhaps if one is married and does not need the mind for arousal).

Are animals able to carry on a thought process, not sure? Dogs certainly seem to be more in the present than humans.

That article links to another interesting one on asexuals.

crazydiamond··on Essential Vim
Please go to the catonmat site. It has cheat sheets for vim, emacs and a bunch of other useful things.

There's also a ruby gem named "cheat" which has cheatsheets for 100's of commands and programs. you can access them on your command-line.

crazydiamond··on Essential Vim
A lot of folks map jj for ESC and uu for underscore. However, what this means is that on typing j or u, vim waits for the next keystroke before displaying or doing anything.

I can't remember where this used to hit me. Perhaps some abbreviation with u ?? I notice I've commented off "uu" but still have "jj".

I still go up and slam the ESC key after 20 years of vimming. How do i get into the habit of C-[ ?

crazydiamond··on Meditation Becomes Beneficial Surprisingly Fast
You needn't sit on a couch, cushion cross-legged .. You can very well walk in a park and keep your focus on breath or feet or on the ground in front, or the bushes and greenery, all the while ignoring any thoughts that come up. You can also sit on a park bench looking at the trees, focusing on the looking, being aware of looking.

This is known as awareness of awareness, or consciousness of consciousness which does sound fake but its very simple and effective. You soon start getting a feeling of what you really are as opposed to the belief of being a body/mind.

Being aware of this "I-feeling" is considered by many to be the fastest or direct path. This I-feeling is also found in the present moment when there is no past or future.

or Be aware of what is present between thoughts.

or Put your focus on what is conscious of existing.

There are tonnes of references that point to the same thing in different words:

- Power of Now (Tolle) - Michael Langford (albigen.com - full book available) - Youtubes of Papaji, Mooji, Tolle and many others

crazydiamond··on Meditation Becomes Beneficial Surprisingly Fast
That final quote is a mind-blower, could not have put it better myself. Hits the nail on the head. Thanks a lot for it.
crazydiamond··on Ask: What is the best blogging platform?
blogspot, wordpress, tumblr, posterous

You can get a free account on all these. There's also blogsome and livejournal, but not as good as the above.

crazydiamond··on [dead]
The last line was quite unexpected. But not funny. Am i missing something ?
crazydiamond··on Stephen Hawking on Religion: 'Science Will Win'
>"There is a fundamental difference between religion, which is based on authority, [and] science, which is based on observation and reason." Hawking is wrong when he says "Religion is based on authority". At the base/root of all/most religions, is an inquiry into truth. Today, religion has become authority, but that is not the true meaning.

Both science and religion inquire into the true nature of things. It seems science is only concerned with physical things, matter and energy, whereas the root of religion goes a step prior to that, to what even observes/experiences this.

crazydiamond··on How to sleep on a long haul flight
Interesting link at the end to alternate nostril breathing. I find focusing on the breathing - rising and falling of stomach - to be great as well.
crazydiamond··on Is Betelgeuse about to blow?
Funny, but there could be people living there ... billions or trillions !
crazydiamond··on Is Tolkien Actually Any Good? (2003)
> In order to get there, we have had to follow, in remorseless day by day detail the Hobbits' walking holiday from the Shire to Rivendell, the highlight of which is the monumentally irritating Tom Bombadil, who communicates entirely in jingles

Strangely, I loved the detailed walk through the forests. It made me feel like I was actually undergoing the walk. The entire book made me feel I made the journey!

I read LOTR first time at around 39 and loved it. It's time now for a re-read at 45. However, I've tried reading Silmarilion several times but never been able to complete it.

crazydiamond··on From PHP to Ruby, join me on my journey
http://pleac.sourceforge.net/pleac_ruby/fileaccess.html

You might find this helpful. File operations. Most of the perl cookbook has been done in ruby on this site.

crazydiamond··on Vegetarian robots
Somehow this doesn't feel right, unless scavengers and carnivores can feed off it. It's like a hole or block in the food-chain.
crazydiamond··on Tell HN: Stop surfing and start making things people want
In your todo list, always mark out your top item for today and finish it +first+. Do your browsing/surfing etc after finishing your top item.
crazydiamond··on Ruby Summer of Code Projects
iirc, hackety hack came out for Windows only. Is it available for OS X too now ? If not, are you working towards that?
crazydiamond··on Snap: A Haskell Web Framework
I had a look at the benchmarks. Could someone confirm -- larger values (bars) means better. So RoR is the worst, and Snap the best on both benchmarks.
crazydiamond··on Ruby: shallow copy surprise!
I cannot remember the exact cases, but the point is that you have an API on one hand, and the user of an API on the other.

The API returns strings to you, the user at some point needs to (say) perform multiple operations on that String. Say, multiple gsubs. So rather than create a new string with each, he uses a gsub!.

I've actually once had a discussion about this on ruby-forum when i faced this issue. We talked of a copy-on-write string. But i did not want to change my entire application.

It is inefficient for the API to keep returning dup()'ed strings. otoh, if the user accidentally changes the string (which she can), your API can throw an error or malfunction.

crazydiamond··on Ruby: shallow copy surprise!
This is not a surprise. I have the same issues with Strings too. A String is passed around your app and someone changes it - capitalizes/chomps etc. The String is changed throughout the app ! You have to dup() it, if you want to ensure no one changes it.

This means if you have classes returning Strings, such as first_name, last_name, address etc, your getter should return a dup() if you want to ensure no accidental change to it. That sucks, if you ask me.

crazydiamond··on There are no truly good men, according to cooperation study
> players would still hold back from contributing everything they had

Strange definition of "truly good men". If people contribute to help others, they are truly good. Its the spirit that matters, not how much you contribute. Are you willing to help, are you there for others -- if yes, then you are truly good.

crazydiamond··on From PHP to Ruby, join me on my journey
You'll find a lot of very helpful people on the ruby-forum.

I moved over from many years of java programming, and have loved what ruby has to offer. Meta-programming, open classes, closures, mixins and plenty more -- and I am not even hard-core.

Do read some source code of projects like Choice, Highline to get an idea of what ruby can do. If you like the command-line, I developed rbcurse while learning ruby.

crazydiamond··on Ask HN: Learning Ruby/RoR -- Which open source projects should I learn from?
Since you are looking for open source projects you can study the source of: Rails itself, Highline (JEG), Choice, Shooes (GUI).
crazydiamond··on Ask HN: Which Firefox addons you can't live without
Vimperator - gives me vim keys on FF.

Adblock

crazydiamond··on Closures - A Simple Explanation (Using Ruby)
Nice article. If i recall, Java did have anonymous classes. They did require variables to be declared final if they were to be used. It was bothersome at times, iirc.
crazydiamond··on Using vim inside irb
Slightly offtopic, but I have to say I like the HN folks a lot. I find that at reddit, vim and ruby related threads and posts get down-voted rather senselessly. The same post on HN gets upvoted and thanked.

The "formatting with par" cast was nice too. Nice pleasant voice, too.

crazydiamond··on Using vim inside irb
Very nice. However, should not irb take from the $EDITOR environment variable, like several other such programs and allow editing of contents by itself, rather than requiring another gem to be required.

I have earlier tried out other "plugins" to irb (iirc wirble to name one) .. these usually used to slow down loading of irb, and often result in messy outputs. So finally, i use a clean, default irb install. I'll certainly try this out, however. Thanks.

← PreviousPage 8 of 12Next →