Wednesday, December 3, 2008

FC 10!

So a while ago, I upgraded my laptop from FC8 to FC10. It was a pretty simple process because the upgrade operation identified my existing FC8 partition and smoothly upgraded in roughly an hour and 30 minutes without asking for too much. Simple, nice and easy I say. Anyways, here are some reasons why you should upgrade to FC 10 (or this is what Redhat claims to be the reasons):

#1. Speeding Up the Boot Process
#2. The Excellent Solar Theme
#3. Making Printing Snappy – and Attractive
#4. Better Webcam Support
#5. Improved Virtualization
#6. Live image creation tools
#7. Global community efforts
#8. PackageKit (user-friendly yum!)

Read more details about the above and some more here. And let me close this entry with this quote that I read somewhere today :)

"Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)"

Friday, July 25, 2008

Search Recursion

Something funny happened today. All of us google - ummm to search. Even I was doing it. I was trying to use the "screen" utility on my test machine, so that I could start my test and log out and get back later to it. When I gave the "screen -r" command to reattach, I got the following error:

Cannot open your terminal '/dev/pts/0' - please check.

Some permission issue I guessed, so I thought I will search for the solution by googling. I searched by entering keywords like "screen, terminal, cannot, open" etc. etc. and clicked on the second link that came in (As as aside, which search link do you open from the search results? Should do a poll I guess :)).

I got on to that specific page and instead of getting the answer I get the following blurb:

"This is a common problem. Googling will help here"

Hmmm, scratch-scratch, I just googled didn't I? But I think instead of giving out solutions, people have actually started to say "google out and get it" nowadays. Will there come a day when all results we get be like the one above :P

Btw, a simple chmodding of the pts entry seems to help here for non-root users above..

Thursday, July 17, 2008

Batch Image Resize on Linux

Isn't it the same case always. You go out on a trip somewhere. You become trigger happy and click loads of pictures. You come back and want to share it with friends and need to upload them to either picassa or flickr. Now typically if you use a 6 plus MPixel camera, the pictures generally come out to around 1.7MB in size. Uploading a lot of such pictures is a big pain.

I recently discovered the convert utility on Linux. Using it is pretty simple. Here is a small script that I use to batch resize my pictures before uploading them:

for file in *.JPG;
do echo "Resizing file $file ...";
convert -resize 640x480 $file $file ;
done

Check out some pics (Portland visit for RailsConf) that were uploaded after the conversion above here.

Monday, July 14, 2008

iPhoney!!

Hmmm, if you go to techcrunch, the last 15-20 posts have been about iPhone. The hype, the apps, the wait and the likes. Seems to be some sort of a frenzy out there in the US for the next 3G phone from Apple. I even watched the somewhat funny video at this posting for waiting in line for 5 plus hours without any results.

I was trying to compare this with whats happening back in India. Vodafone did some adverts about launching the iPhone in India and I did contemplate for a second or two about sending them an sms about wanting to be one of the early users. But thats about it, I guess. I think people in America tend to have this ME FIRST mindset a lot. Long lines for the Wii, new star trek movies. Camping out for some new game launch etc. etc. I guess South Indian movie fans do this ;), but generally I do not find such fanatical single mindedness happening for such kind of stuff around in India.

Guess most Indians have more pertinent things to think about..

Wednesday, June 25, 2008

Fancy this Jam?

Hmm, some people say Google has the potential to be the new evil post M$. But you got to admit, there are some things which they do pretty well. Amongst that list, is the Google Code Jam. I participated in it once 3-4 years back. I would say it is kinda favored to those who are used to heavy API based C++, Java programming. More so for string manipulation based programming. For me, who has been mostly doing do-everything-yourself C language coding, it gets a bit (not very though and this is not to discourage C coders at all!) tough timewise. But nonetheless its a pretty interesting activity to participate in. Click here for this years details. Happy Code Jamming!

Wednesday, June 18, 2008

Get and Spread FireFox!!

One way to take a stab at M$'s evil world domination plans. Replace Internet Explorer with the Firefox browser! Infact 17th June is download firefox day and they are aiming to set a Guinness World Record by targetting 5 million downloads in a single day (scratch, scratch - no one knows the existing download record though).

I have already downloaded and added my 1 to the global counter :). Infact downloads from India seem to be around the 35,000 mark. Wake up Indians! download now!

The global count appears close to the 5 million mark already! Check it out here!!

(P.S. This posting was done out of Firefox 3 :))
And here is my certificate!

Thursday, June 12, 2008

Coordinated debugging

I code in C mostly. I err and hence I debug too once in a while :). Have been using plain gdb for user-land program debugging for quite a while and it serves all my needs. Fast, from the command line, all the required bells and whistles (including readline) and I don't need no more.

And I even wonder how people use bulky IDEs like eclipse just to debug their programs! But lately, I wanted to browse the source code automatically while debugging. The alt-tab combinations to switch from gdb back to my source files in vim was getting a bit too tardy for me. And I had actually started considering thinking about an IDE (yuck...). But no more, presenting gdbtui!

Its gdb itself, but with the added convenience of co-ordinated source code browsing from within the terminal window itself! I was definitely happy to discover this gdb add-on today! Here is a screenshot that someone posted on flickr for you guys too. Definitely worth a try!

Monday, June 2, 2008

RailsConf - Day 4

Final day! We had to check out from the hotel in the morning itself. Denis, George are seasoned travellers and they were all ready and packed up at breakfast time! I was having some trouble adjusting to the additional 3 hours of lag introduced by travelling from the east to the western parts and arrived late for the breakfast too because of it. Denis then told me to check out of the room in 5 minutes. I made it in time by unceremoniously stuffing clothes, etc into the bag. My bag is a bit heavy. I always commit the mistake of carrying more clothes that I end up wearing on my visits :(.

Denis/George were going to speak about our RubyES - Ruby Enterprise Stack using PostgreSQL. We reached the convention center and prepared some pamphlets to spread the word about our session which was at 10:45 AM. Since it was the last day, the crowd was somewhat thinner at the venue than before. The session went well with a good round of Q & A at the end. Go here if you want to learn more and would like to play around with the stack. And if you want to know what I did in this stack, you can check out my screencast here too. The screencast was created using Jing. Check it out, my voice shouldn't scare you away :)

It was a half day session and our flight was at 9:55 PM. So we spent the remaining time at the bar in the Marriott that we had been staying in. We watched a bit of Shallow Hal, with Jack Black still being funny everytime I watch it. Denis and I also nursed some beers. I also had a shot of Goldschlager (which actually contains pure gold in it!) towards the end to get me into a sleepy mood for the flight :)

Got on to the flight to end my first RailsConf. It was not too bad!

RailsConf - Day 3

Day 3 was the last day for the exhibitions. So we again had good attendance at our booth. One thing that we noted was that all people tend to use MySQL as their database of choice just because everyone else is using it! Many did not understand the difference between MySQL and PostgreSQL and hence why they should use PostgreSQL in the first place. All of us tried to explain as best as we could but here is a link which explains in greater detail as to why PostgreSQL is a much better choice as compared to MySQL.

The breakfast and the lunch facilities during the conf were excellent and the Portland Convention Center is a huge facility indeed. But since there were so many attending the conference, it was pretty hard to get onto the wireless network there. One thing though that gave me some sort of a complex during the conf was that almost everyone who came to the conf were using the Apple Macs! I felt out of place with my lenovo thinkpad there :). Also many companies like Sun, Thoughtworks held a lucky draw and the winners were awarded free Mac Airbooks towards the close of the third day! Yup, I did enter but was not lucky this time around. Maybe next year. I did get my share of free tshirts though ;)

We ended the day by having dinner at a sports bar where I introduced Denis, George to some cool Ultimate Fighting Championship fights :). Denis refused to believe that it is a sport as he likened it to dog fights.

Saturday was also the occasion of the Rose Starlight Parade and Marathon so there were a lot of people out on the streets. It was good for me to see families sitting along side the road waiting for the marathon and the parade to pass by. I stayed around for a while to cheer up the guys participating in the marathon, but as it got a bit chilly later, I prefer to watch some of the action from the comfort of my hotel room before retiring to bed. Final day coming up tommorrow!

Saturday, May 31, 2008

RailsConf - Day 2

So the brainstorming continued pretty late from day 1 and eventually I slept pretty late with the promise of waking up early in the morning. Today was the first day of our booth right! Also I along with Denis, George had to record screencasts of the respective things that we had worked on. We had a 5 minute limit and my first recording was a disaster. It was a full 12 minutes long :)

The 2nd recording was agonizingly close to completion but I ran out of a precious few seconds before I could complete it, very frustrating. Eventually on the 5th try I was able to record a decent screencast. George is going to upload it and when its done I will share the url so that you all can check it out and see what I have done :)

We had good attendance to our booth. People were a bit confused about what we do exactly with Postgres and the Oracle spin on it. Also some wanted to know what exactly was the key differentiator in our RubyES stack. We had some interesting conversations with a guy from the Heroku booth who was using Postgres. In general there seemed to be a lot of curiosity and intent to use Postgres with rails app, which is definitely a good thing!

In the evening a company called as FiveRuns hosted HAPPY HOUR at a local pub, it was pretty crowded when we reached there, so we went to another place closeby. I kinda like the American food that I am getting to eat. Am also enjoying the different kinds of drinks too ;). Well they say, in America do as the Americans do! :)

We rounded up the day by dropping Marie off to the airport. She left ahead of us to go back to NJ. Had had very less sleep the last few days, so I snucked into bed at 9:45PM and got up at 6:15 am today morning. On to the oncoming day now :)

Thursday, May 29, 2008

RailsConf - Day 1

I am/was kind of getting used to the jetlag back in NJ, but now Portland has added another 3 hours to the mix. Its 6:15 PM local time while I am writing this and am already feeling sleepy here.

In the morning, me and George were quite hungry as our last meals were just the burgers that we have had on the flight from NJ. After the breakfast, we headed towards the Convention Center where RailsConf is being run. We took the Red Train or something to reach it. Was pretty impressed with the infrastructure here in Portland. I mean this is a decent tram which takes you FREE OF COST across major portions of Portland. When does one think this will happen in India?

The convention center was pretty good and we attended some of the sessions/tutorials. The attendance also seems pretty decent this year around. We headed back to our hotel for lunch with Denis and Marie. And after lunch, we have been holed up together in a room working on our rails stuff and what all we plan to do!

The brainstorming is still ongoing as we speak, so I better get back to it, now! (still groggy though...)

Wednesday, May 28, 2008

Conferencing the Rails!

Conference time is here. I was supposed to go to the PostgreSQL conference, but am going to the RailsConf instead. Actually wanted to go to PGcon, cos that would have been my first and it would have been a great chance to meet up with all the leading lights from the community. Also Pavan was going to present HOT there and we had plans to check out Toronto and Niagara falls after the conference too. But couldn't go as I am working on some cool Ruby on Rails stuff and wanted to see how it shapes out during and after RailsConf. Right now am in my New Jersey ready to fly out to Portland by the evening. Its going to be a 6 hour flight! USA IS a huge country. I think India by flight from North to South tips wont be more than 3 hours. Thankfully jetlag has not afflicted me much and now the trip westward towards Portland might add some more effects :) Lets see.

Thursday, May 8, 2008

SUNshine makes MySQL happy

Well, well, well... my last posting mentioned a link on slashdot where there was an announcement about MySQL mentioning intentions of close sourcing some of the stuff for their paying customers. As expected, there was a lot of hue and cry over it. Guess some in the PostgreSQL camp were happy rolling their I-Told-You-So eyes too.
It turns out that SUN and others in their camp have paid heed to all and again this link on slashdot says that they WON'T be close sourcing afterall. Interesting stuff this.. I wonder how many times companies have even been influenced in such an OPEN manner to do something of this sort. But GOOD I say :)

Thursday, April 17, 2008

Don't let the SUN go down on MySQL

There is a posting on /. about Sun deciding to close source some parts of MySQL. Hmmm, after paying 1 Billion Dollars in cold hard cash, its expected that Sun will try out some experiments to try and generate a revenue stream. But guess this will rub existing free users off the wrong way atleast initially as a knee-jerk reaction. Guess it will be good for PostgreSQL though :).

But to be fair, its good to see Marten Mickos (previously CEO of MySQL and now SVP at Sun) try and put out reasons for this latest move. All in all, this bodes well for my favourite DB - PostgreSQL :)

Note: The views expressed above are entirely my own personal views.

Thursday, April 10, 2008

USb and ME

I have a 42" LCD television which has a USB input to it. It has a pretty decent USB media player, so I can just plug in a USB device and watch images, movies and listen to music too from the same. I think its pretty neat and cool to have this feature in my LCD, much better than a clunky DVD player any day. But my current 80GB external USB hard drive is rapidly running out of space and I have to upgrade it.

But the problem is with the current state-of-the-art, 200 GB plus external drives require an external AC power source too. So its still plug and play, but with an additional plug in for the power source. I have narrowed down on a MAXTOR 500 GB external drive for about 120 odd US dollars (4740 INR). I think it is a pretty decent deal. Anyone got better suggestions? Are external power source less drives coming up on the horizon? Let know!

Tuesday, April 8, 2008

IndiZeitGeist

ZeitGeist is originally a German Expression that means "time spirit" or in other words the spirit of the current times or age. Google captures the online version of it by tracking the most oftly used search phrases. It thus reflects the current online mood or the pulse of the online world.

I thought to seek out what is on the minds of more and more Indians who are getting online and hence was looking around for Google India ZeitGeist. Sadly they don't seem to have country specific ZeitGeists (you listening Google?), but it seems they recently compiled and released a list specifically for India. Here it is. Seems like Orkut, Deepika Padukone, Sania Mirza, Mahatma Gandhi (yes he is on the list!) are the flavor of the times :)

FC8 and PulseAudio woes

So, I got a new laptop (Lenovo R61i) some time back and decided to install FC8 on it. Linux installations are a breeze nowadays, but still some wrinkles remain post-installation. My current woe is to get PulseAudio working seamlessly across all of my regular applications viz. mplayer, kde, flash websites etc.

First of all, it seems PulseAudio was not designed with KDE in mind, but thankfully this can be resolved by doing a:
"yum install kde-settings-pulseaudio"

This got mplayer working, but was still not able to get the audio working from flash based sites like youtube. I tried the usual remove, reinstall, sometimes-reboot trick but couldn't get audio working at all much to my chagrin.
Eventually, I got it to work by adding my current user login to proper groups (via Administration->Users And Groups). I added my current user "nikhils" to Avahi, Pulse, Pulse-* groups in the properties section.

The audio works fine via flash or mplayer for some time, but regularly comes back with an intermittent error like:
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
*** PULSEAUDIO: Unable to connect: Connection refused

Looks like this will need more time and tinkering. Will post back with my solution whenever I get it.

Google Reader at Cross Purposes with Google Adsense

Only recently I discovered about Google Reader. Like all things Google, the Reader is easy to use and nicely aggregates all your favorite websites, blogs and rss feeds under one location. Any updates to any of these sites are updated automatically, so you no longer have to wait and wonder about whether your favorite site or blogger has added some latest content or not. Here is my shared reader links.

My first thought was great - now I don't even need to keep my firefox tabs open all the time. But then I was like wait a minute! I wondered if this is actually good news for people who have Google Adsense on their websites. If a lot of subscribers just check out their Reader feeds and decide not to visit your homepage what do you do? Is Google Reader actually in some ways at cross-purposes with Google Adsense which would thrive on people visiting lots of sites and clicking through google ads eventually?

Monday, April 7, 2008

Ahem!

Ok, so a while back I bravely took the step forward to start off my own personal blog here. I am doing ok there, adding my personal raves and rants. But a while back I wanted to post something technical (don't be surprised, I pretend to be technical once in a while :)) and that did not seem like a good place. So here I am at my new tech blog in all technikkhils - err technicolor :)