27 Aug 2010

If You Learn Only One New Thing This Year, Make It Rack

Rack is a "shim" between a web server and a Ruby web framework. It does the "grunt work" - the parsing of the HTTP, establishing the environment "stuff" (or HttpContext if you're a Microsoft person), and working with the web server so you don't have to.

That definition might make it seem like it's some massive chocolate cake framework - bloated and cranky dealing with the low-level machinery of the web. In fact, it's about as elegant as... well elegant can get. In fact I think it defines elegant.

27 Aug 2010

What To Look For In A Technical Co-Founder

There are two points to this attribute. The first is the ability for your cofounder to be able to not flake out and keep to their actual deadline. This comes from having previously built things and understanding how longs it actually takes to finish something. It also comes from straight up work ethic and dedication. The second point is your cofounder’s ability to have a strict cutoff for features to implement and what to “refactor”. A good technical cofounder will be able to say no to many things and put a hard stop on adding features in order to meet a deadline. Even if a technical cofounder has the ability to finish on time, they may not be estimating what’s realistic due to their inability to say no + leave things be. Taking twice as long was not due to their lack of work ethic, but the fact that they added too many things causing it to take twice as long. Many of these ideas may have even been the business cofounder’s ideas. A great technical cofounder will have the ability to tell their business cofounder no for the sake of meeting a deadline.

27 Aug 2010

Four Signs of an Awesome Coder

The most awesome coders have a sense of beauty in some form of metric that gives them a direction. This is the source of most (if not all) of the flame wars in the field since people have to work together yet have to do so with different (and often incompatible) metrics. Your metric may be performance, brevity, organizational, extensibility, obfuscated, or any other innumerable metrics that we judge code by.

As long as you have a metric, then you are awesome.

27 Aug 2010

Git: You have some suspicious patch lines

It turns out this is being caused by a pre-commit hook. There are two options you can go with to circumvent the issue.

git commit --no-verify .

The –no-verify will bypass the pre-commit hooks. This only works on the current commit thought, so you have to add the flag each time you want to commit.

I’ve found that if you

cd .git/hooks/
chmod -x pre-commit

will disable the pre-commit hooks permanently by removing the executable rights on the file.

I used this today. It worked.

26 Aug 2010

Output of karthick18/inception

http://github.com/karthick18/inception

# ./inception

Setting policy to real time process
Dreamer [Fischer], level [1], priority [87], policy [FIFO]
Dreamer [Cobb], level [1], priority [87], policy [FIFO]
Dreamer [Ariadne], level [1], priority [87], policy [FIFO]
Dreamer [Arthur], level [1], priority [87], policy [FIFO]
Dreamer [Eames], level [1], priority [87], policy [FIFO]
Dreamer [Yusuf], level [1], priority [87], policy [FIFO]
Dreamer [Saito], level [1], priority [87], policy [FIFO]
[Fischer] HIJACKED ! Open up my defense projections in my dream to the hijackers!
[Cobb] sees Fischers defense projections at work in the dream at level [1]
[Cobb] taking Fischer to level 2
[Ariadne] sees Fischers defense projections at work in the dream at level [1]
[Ariadne] following Cobb to level [2]
[Arthur] sees Fischers defense projections at work in the dream at level [1]
[Arthur] follows Cobb. to level 2 to fight Fischers projections
[Eames] sees Fischers defense projections at work in the dream at level [1]
[Eames] faking Browning to manipulate Fischers emotions for the inception at level [1]
[Eames] follows Cobb to level [2] to continue with the manipulation of Fischer
[Yusuf] sees Fischers defense projections at work in the dream at level [1]
[Yusuf] starts to fall into the bridge while fighting Fischers projections in level [1]
[Saito] sees Fischers defense projections at work in the dream at level [1]
[Saito] shot in level [1]. Following Cobb to level [2]
[Saito] follows Cobb. to level [2] after being shot
[Fischer] following Cobb. to Level [2] to meet his father
[Fischer] interacting with Mr. Browning in hijacked state at level [1]
[Fischer] interacting with Mr. Browning in hijacked state at level [1]
Dreamer [Cobb], level [2], priority [75], policy [FIFO]
Dreamer [Ariadne], level [2], priority [75], policy [FIFO]
Dreamer [Arthur], level [2], priority [75], policy [FIFO]
Dreamer [Eames], level [2], priority [75], policy [FIFO]
Dreamer [Saito], level [2], priority [75], policy [FIFO]
Dreamer [Fischer], level [2], priority [75], policy [FIFO]
[Cobb] taking [Fischer] to level 3
[Ariadne] joining [Arthur] in his dream at level 2 to fight Fischers defense projections
[Ariadne] joined [Arthur] in level [2]
[Arthur] Fighting Fischers projections in level [2]
[Eames] Faking Browning's projection to Fischer at level [2]
[Fischer] following [Cobb] to level [3]
[Fischer] met with Browning again in level [2]. Waits for Cobb before getting in to level [3] to meet his father
[Ariadne] joining [Cobb] in his dream at level 2 to help Fischer
Dreamer [Fischer], level [3], priority [63], policy [FIFO]
[Cobb] taking [Ariadne] to level 3
[Ariadne] following [Cobb] to level [3]
Dreamer [Cobb], level [3], priority [63], policy [FIFO]
[Eames] following [Cobb] to level [3]
Dreamer [Ariadne], level [3], priority [63], policy [FIFO]
[Saito] following [Eames] to level [3]
Dreamer [Eames], level [3], priority [63], policy [FIFO]
Dreamer [Saito], level [3], priority [63], policy [FIFO]
[Cobb] fights [Fischer] defense projections in level [3]
[Cobb] sees his wife [Mal] in his dream. [Mal] shoots Fischer
[Ariadne] sees Fischer shot by Mal in level [3]
[Ariadne] tells [Cobb] to follow Fischer to level [4] in Mal's world in limbo
[Ariadne] enters Limbo at level [4]
[Eames] sees [Fischer] shot in level [3]. Starts recovery
[Eames] tells [Saito] to keep fighting Fischers projections in level [3]
[Eames] fights Fischers defense projections at level [3]
[Eames] doing recovery on [Fischer] who is shot at level [3]
[Fischer] shot by [Mal] in level [3]
[Cobb] follows [Ariadne] and enters limbo with his Wifes projections in level [3]
[Saito] fights Fischers projections in level [3]
[Saito] fights Fischers projections in level [3]
[Saito] gets killed at level [3]. Enters limbo
[Yusuf] while falling into the river triggers Arthurs fall in level [1]
[Arthur] experiencing a FALL in his dream at level [1]
[Arthur] experiencing Free fall in level [2] coz of a fall triggered  of [Arthur] in level [1]
[Arthur] Fighting Fischers projections in level [2]
Cobb takes Elevator to meet Mal in level [4] while in limbo
[Cobb] tells [Mal] about his inception on her to think that the WORLD is unreal in level [4] while in limbo
[Mal] wants [Cobb] to go back with him into the world they built in their dreams in level [4] while in limbo
[Ariadne] follows [Cobb] in Elevator to level [4] in Limbo to meet his wife
[Fischer] interacting with Mr. Browning in hijacked state at level [1]
[Yusuf] while falling into the river triggers Arthurs fall in level [1]
[Arthur] experiencing a FALL in his dream at level [1]
[Arthur] experiencing Free fall in level [2] coz of a fall triggered  of [Arthur] in level [1]
[Arthur] Fighting Fischers projections in level [2]
[Fischer] interacting with Mr. Browning in hijacked state at level [1]
[Yusuf] while falling into the river triggers Arthurs fall in level [1]
[Arthur] experiencing a FALL in his dream at level [1]
[Arthur] experiencing Free fall in level [2] coz of a fall triggered  of [Arthur] in level [1]
[Arthur] Fighting Fischers projections in level [2]
[Fischer] interacting with Mr. Browning in hijacked state at level [1]
[Yusuf] while falling into the river triggers Arthurs fall in level [1]
[Arthur] experiencing a FALL in his dream at level [1]
[Arthur] experiencing Free fall in level [2] coz of a fall triggered  of [Arthur] in level [1]
[Arthur] Fighting Fischers projections in level [2]
[Fischer] interacting with Mr. Browning in hijacked state at level [1]
[Eames] doing recovery on [Fischer] who is shot at level [3]
[Yusuf] while falling into the river triggers Arthurs fall in level [1]
[Arthur] experiencing a FALL in his dream at level [1]
[Arthur] experiencing Free fall in level [2] coz of a fall triggered  of [Arthur] in level [1]
[Arthur] Fighting Fischers projections in level [2]
[Fischer] interacting with Mr. Browning in hijacked state at level [1]
[Yusuf] while falling into the river triggers Arthurs fall in level [1]
[Arthur] experiencing a FALL in his dream at level [1]
[Arthur] experiencing Free fall in level [2] coz of a fall triggered  of [Arthur] in level [1]
[Arthur] Fighting Fischers projections in level [2]
[Fischer] interacting with Mr. Browning in hijacked state at level [1]
[Yusuf] while falling into the river triggers Arthurs fall in level [1]
[Arthur] experiencing a FALL in his dream at level [1]
[Arthur] experiencing Free fall in level [2] coz of a fall triggered  of [Arthur] in level [1]
[Arthur] Fighting Fischers projections in level [2]
[Fischer] interacting with Mr. Browning in hijacked state at level [1]
[Yusuf] while falling into the river triggers Arthurs fall in level [1]
[Arthur] experiencing a FALL in his dream at level [1]
[Arthur] experiencing Free fall in level [2] coz of a fall triggered  of [Arthur] in level [1]
[Arthur] Fighting Fischers projections in level [2]
[Eames] doing recovery on [Fischer] who is shot at level [3]
[Fischer] interacting with Mr. Browning in hijacked state at level [1]
[Yusuf] while falling into the river triggers Arthurs fall in level [1]
[Arthur] experiencing a FALL in his dream at level [1]
[Arthur] experiencing Free fall in level [2] coz of a fall triggered  of [Arthur] in level [1]
[Arthur] Fighting Fischers projections in level [2]
[Cobb] finds [Mal] killed in level [4] while in limbo
[Ariadne] tells [Cobb] to search for Saito in limbo at level [4]
[Fischer] kicking off from limbo at [4] to level [3]
[Fischer] got a kick back from Limbo at level [3]
[Eames] doing recovery on [Fischer] who is shot at level [3]
[Eames] sees [Fischer] get a recovery kick at level [3]. Starts faking Fischers Father's projections for the final Inception
[Fischer] going to meet his dying father [Maurice Fischer] after getting a kick back to level [3]
[Cobb] enters limbo to search for Saito in limbo at level [4]
[Ariadne] taking the kick back from limbo at level [4] to level [3]
[Ariadne] returned from Fischers limbo to level [3] to take the synchronized kick
[Yusuf] going to take the kick back to reality and wake up all the others through a synchronized kick by effecting the VAN to fall into the river
[Arthur] got Kick at level [2]. Exiting to level [1]
[Arthur] got a Kick at level [1]. Exiting back to reality
[Fischer] got a kick at level [3]. Falling back to level [2]
[Fischer] got Kick at level [2]. Exiting back to level [1]
[Fischer] got a Kick at level [1].
[Eames] doing recovery on [Fischer] who is shot at level [3]
[Eames] got Kick at level [3]. Exiting back to level [2]
[Eames] got Kick at level [2]
[Eames] got Kick at level 1. Exiting back to reality
[Ariadne] got Kick back from level [3]. Exiting back to level [2]
[Ariadne] got KICK while at level [2]. Exiting back to level [1]
[Ariadne] got Kick at level [1]. Exiting back to reality

Cobbs' search for Saito ends in Limbo. Now either both take the kick back to reality or the ending is still a state of limbo from Cobbs' perspective, which is what Nolan wants us to think
This is in spite of witnessing his children turn towards him for the first time which we're never shown in his projections.
So, let me end the limbo state abruptly like the Movie with the totem spinning and leave it to the reviewers to decide the infinite sleep:-)

[Fischer] exiting back to reality from level [1] with the THOUGHT:

Reconcile with my father and have my own individuality

25 Aug 2010

MongoDB: The Definitive Guide - O'Reilly Media

Discover how MongoDB can help you manage a huMONGOus amount of data collected through your web application. This book covers the basic principles and advanced uses of this document-oriented database, and demonstrates why why MongoDB is scalable, high-performance, and reliable. This authoritative introduction, written by two software engineers from the company that develops this open-source database, offers guidance for programmers and advanced configuration for system administrators.

18 Aug 2010

The Top Idea in Your Mind

I realized recently that what one thinks about in the shower in the morning is more important than I'd thought. I knew it was a good time to have ideas. Now I'd go further: now I'd say it's hard to do a really good job on anything you don't think about in the shower.

18 Aug 2010

hindsight » Zappos headers

X-Recruiting: If you're reading this, maybe you should be working at Zappos instead.  Check out jobs.zappos.com

18 Aug 2010

progit's progit at master - GitHub

This is the source code for the Pro Git book contents.

18 Aug 2010

Our Git Workflow: Private Development, Public Releases

Eric Farkas's Posterous


"Don't panic."