Abhi Yerra

Rants of lunatic

Archive for November 2008

No Mercy for Detroit

without comments

America should not be paying to bailout the American Auto Industry. With the level of fuel guzzling cars that they have been making in recent years, lack of focus on fuel efficiency, as well as mismanagement they brought the current turmoil on themselves a long time ago. Though other car makers like Toyota and Honda are hurting also their diversity has been a good offset in the current economic crisis. The Detroit automakers focusing solely on SUVs and trucks shot themselves in the foot unable to move away from that market as oil prices quickly rose. It is only appropriate then that they should hit troubled times.

Plus saving the auto makers will set a dangerous precidence to other industries that America is willing to bail them out if they are in trouble. Taxpayers are not responsible for bailouts of profit making industries even one as large as the Detroit automakers. Though I do agree that the $700 billion set out to help banks was in general a good idea since it gave the markets some much needed liquidity.

Written by abhiyerra

November 19, 2008 at 10:19 am

Posted in politics

Tagged with ,

Phusion Passenger for Traytwo

without comments

I moved to Phusion Passenger on traytwo. It looks like deploying rails apps will be a whole lot easier. No longer do I need to worry about maintaining mongrel ports and what not. A simple addition of a vhost file and a restart of apache to launch an new app is all that is needed. Also, apparently it is a whole lot faster than Mongrel so we’ll see if that is true.

Written by abhiyerra

November 15, 2008 at 1:10 am

Posted in programming, technology

Hadoop Pig – IP Access Count Script

without comments

This is a Pig Latin script to count the number of times a person has accessed a site. It is a very simple example which took me a while to figure out… I guess being a History major my coding has gotten a bit rusty.


A = load 'access.log' using PigStorage(' ');
site_access = foreach A generate $1, $0, 1;
access_mapped = group site_access by ($0, $1);
access_reduced = foreach access_mapped generate $0, COUNT($1);
dump access_reduced;

Written by abhiyerra

November 11, 2008 at 8:19 am

Posted in code

Technology for Democracy

without comments

Technology is going to play a more prominent role in democracy. We saw this in the way Obama conducted his campaign. He used technology and a grass-roots movement to go from a first term senator no one knew about to becoming the 44th President of the United States. A lot of this can be attributed to how he used technology.

His army of donors were largely just for thousands of individuals chipping in $10 or $15 dollars on his website. This base of donors was made possible by his use of the internet to collect these funds and the ease at which an individual could contribute. He used MySpace and Facebook effectively to get out his message and solicit more donations. I would always have a message waiting from him whenever I went to facebook and his use of emails to send out how he was doing was a steady stream.

The main facet of Facebook and MySpace is that they lets us feel as if we are in the know. It makes us feel like we are part of the lives of our friends, like we know what they are going through. Obama used this effectively on his campaign. His campaign was that of keeping us in the loop as if we are Obama’s friends. This level of personalization let us feel more connected to Obama as we got constant feedback from his campaign trail. By giving us this information we were always in the know as to what his campaign was going through.

However, Obama wants to use this technology based campaign further in his presidency. He launched a website where details on his appointees as well as a blog detailing his choices are going to be made. Further he is going to use his list of existing supporters to get their support for issues during his presidency so expect a message from President Obama sometime in the future if you were a donor.

Therefore, not only is Obama a 21st century president, he is using using 21st century technology and new media to his benefit and hopefully ours too. The connection we have with out government is going to get a lot stronger.

Written by abhiyerra

November 10, 2008 at 3:56 am

Posted in politics, technology

Meditation

without comments

I have started meditating lately as a way of self control, attempting to limit my desires and ego while striving to do what I need to do. I have been doing this after reading the Bhagavad Gita which goes into a metaphysical description about ones connection with God. However, what interests me the most is Chapter 6 about meditation.

Meditation as I do it involves the combination of a mantra and the breath. I attempt to follow the three stages of existence when I breathe: creation, preservation and destruction. Therefore, coorelating it with meditation: inhaling, holding the breathe, and exhaling. While doing this I have a mantra that coorelates with the different parts of these states.

My posture is that of a half lotus with my left leg above my right as that is the most comfortable for me with my back straight. I attempt to gaze at the tip of my nose as recommended in the Gita. It is a good spot to focus on as whenever thoughts come up there tends to be a waivering from this spot. When you realize that you have lost this spot just come back to it.

The point of meditation is to connect with nature, the oneness of all existence, so I like to meditate on the grass when possible.

Now the hard part in all this is following the breathe. The mind is like an ocean throwing wave after wave. Sometimes these waves are large and throughout the meditation calmness doesn’t exist, sometimes these waves are short allowing you to see the calm in short glimpses.

As a reminder for myself and anyone else who is striving for this goal the point of meditation is practice. Calm the ocean of thoughts letting them go one by one until you see the calm and your connection to existence as a whole.

Written by abhiyerra

November 1, 2008 at 1:05 am

Posted in thoughts

Outsourcing Site Elements

without comments

I am working on a website where I am outsourcing key elements having to do with handling RSS feeds to the Google AJAX Feed API. The outsourcing of this component is great for a several reasons. First, I don’t have to worry about caching and updating the RSS feeds, that is handled by Google. Second, it allows me to focus more on the major components of the site leaving the mundane tasks of updating rss feeds to a company that is actually competent at it.

This move to a component architecture will probably be the way the web will move especially with OpenID and OAuth making such headwinds. This is economical since sites can specialize allowing the more mundance components that take up resources to be outsourced.

Written by abhiyerra

November 1, 2008 at 12:32 am

Posted in programming, technology