I see, learn and rediscover… everyday!
 
Category: <span>code</span>

Gedit

Every GNU/Linux user must be knowing about Gedit. This tiny text editor which comes with gnome is much more powerful than we all think. A few customizations and adding a few plugins will convert this simple text editor into a complete IDE for any programming language. In this article, i have mentioned about the configurations i have made in my …

Slice…

Slice notation is one of the powerful feature in python using which can be used for operations like substr, str_reverse etc etc. The slice notation is really powerful for strings. I’m not very sure whether it can be used for other data types. For a string, it can be used as variable_name[start:end:step] If the start and end are equal, then …

Firefox 3 is amazing :)

Working on any product which is not yet released and developed by hackers all over the world πŸ˜‰ gives you sweet surprises every now and then ;). I have already mentioned how the form elements are made better in FF3.0 in http://sp2hari.blogspot.com/2007/06/firefox-3-ui-rocks.html The next surprise is Bookmarks ,FTP browsing and Downloads window πŸ™‚ :). Check out the screenshot for yourself …

Recording your screen in solaris :)

Recording your screen in Solaris works right out of the box. All you need to install is vncserver and vnc2swf. A simple HOW TO about recording your screen in Solaris. πŸ™‚ First you need to install Vncserver. Solaris by default doesn’t come with a VNC. The easiest way to install VNC is through pkg-get root@home# pkg-get -i vncserver Before running …

My Tinderbox is working…

Yes, you heard it right. My tinderbox is working. Even now i don’t know why i was trying to setup a tinderbox after both Emily and Nags asked me to concentrate on Firefox automation. I felt it was almost done and just few more steps, i will be able to set it up. And that’s what finally happened πŸ™‚ So …

SOC ….

Updates about SOC. 30 test scripts are working fine without any issue :). My target is to write 50 test cases and i will try to reach that this weekend πŸ™‚ :). The scripts can be downloaded from here. Things to be modified when you run your script in your environment are. 1. In the file firefox.xml, change the value …

file-roller …

When i saw the mail from nags saying ” Can somebody evaluate it and send me back the results. It was done by Yazhini, long time back, but I could not check them.” even i didn’t think i will write the test cases for file-roller that night. I just wanted to see the code and maybe make a comment. After …

Tinderbox ….

You never know when things will work and but if you believe that they will work ,they will. Ha, finally my own quote πŸ˜› . The Solaris download which i asked my friend to do failed πŸ™ . Crap . I waited for that for more than 2 days and finally it failed. Now i can’t to afford to wait …

Conquered solaris ….

Got up at 4 PM :-). Yes 4 PM. Yesterday after finding out that my Ethernet card had some arbit problem, planned to buy a new one. But felt like checking my Ethernet card for the last time. Went to my friend’s place and checked my Ethernet and it worked there :-(. I was both happy and sad. Happy because …

networking not working :P…

I have got a new phobia. Solaris phobia :P. lol. Well how easy solaris can ruin one whole night. Though i shouldn’t blame Solaris completely but at least it deserves something for troubling me with DNS thing sometime back . Anyway here comes the story. After discussing with Casanova about tinderbox i realized that setting up tinderbox is an important …

Firefox 3 UI rocks…

Really , the user interface of Firefox 3 rocks. Text boxes and other form fields have a nice smooth corners and select menu item is similar to the one you find in gnome πŸ™‚ . The old form elements are shown in this image. Click image for a clear view New here comes the new interface of the same webpage …

Finally 10….

Ok, i am certainly not talking anything about my GPA. After fighting (fighting is an understatement i suppose) with Firefox and LDTP for 3 hours (well this is actually few days), finally managed to get 10 test cases work properly. At least these 10 test cases will work properly for integration with Tinderbox. Have to send these test cases to …

Meet GNU/Linux 07

After 2 successful editions of Meet GNU/Linux, which is conducted by GLUG-T every year for beginners, the third edition of MGL is starting on 27th July, at NITT. A few updates about MGL’07 : 1. Guys are planning to release a beginner handbook, which would be given out to them. The content is being edited in a wiki : http://glugt-mgl.pbwiki.com/ …

Topping google search

I attended the podworks.in last weekend. For those who don’t know what podworks is , PodWorks.in is a 2-day workshop styled unconference dedicated to the sharing of knowledge around audio and video podcasting. It’s a successor to the extremely successful BlogCamp that was held last year. Though i have lots and lots to say about the event, one strange and …

Internet from solaris …

DNS makes our life real easy. Without that, i don’t think people will say check out http://google.com but check out http://64.233.187.99. I realized how important DNS is to us and without DNS how one can go mad. I installed Solaris (Neveda ) two weeks back and it was good. πŸ™‚ . Though i was a bit scared in the initial …

Running a test case …

Having written the test scripts for Firefox, this time going to tell how to test Firefox with these scripts. The test scripts can be found here There is a wiki page in LDTP website which gives quick tips about how to run LDTP test cases. First quick steps to get LDTP installed . If you have LDTP already installed, then …

SOC report …

My SoC is going fine and great. Hoping to finish this well ahead of time:) This is a blog + report πŸ™‚ So i have started with Automation of Firefox. For the current status of all the test cases i have mentioned here, check this link The categories under which i have written test cases till now are 1. Firefox …

I got my copy :-)

This is my first post related to my SoC. So let me just introduce things. I am doing Google Summer Of Code under Mozilla Foundation . My mentors are Nagappan from Novell, Bangalore and Emily Chen from Sun, China. When i started working for my SoC, i got a mail from Google SoC team saying “Hello everyone, In keeping with …

Oath for Software Engineers

Never write a line of code that someone else can understand. Make the simplest line of code appear complex. Use long counter intuitive names. Don’t ever code “a=b”, rather do something like: AlphaNodeSemaphore=*(int)(&(unsigned long)(BetaFrameNodeFarm)); Type fast, think slow. Never use direct references to anything ever. Bury everything in macros. Bury the macros in include files. Reference those include files indirectly …

Coding Style …

I have never thought much about coding style before i did my NOSIP in Novell. But once i started coding for ldtprecord, according to the coding style suggested to me by nags, i was surprised to see how nice and neat the final code looks. Some tips/tricks for nice coding skills are, 1. Do spend some time to think about …

Hello World …

I love Hello World programs. The reason is simple. Whenever i code a hello world, it means i am learning something new. I once found a huge collection of hello world programs here. And yes, i did a hello world program today. It is related cluster programming using MPI . πŸ™‚ . The code for the hello world #include <stdio.h> …

Seg Fault

Wikipedia says, A segmentation fault (often shortened to segfault) is a particular error condition that can occur during the operation of computer software. A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (for example, attempting …

Forgot mysql root pass ?

Recently forgot mysql root password for one of the servers i maintain . Little bit googling helped me to reset the password . Just copy pasted the tutorials i saw so that i need not google again . If you have set a root password, but forgot what it was, you can set a new password with the following procedure: …

Pragyan ’07

The big event is gonna start soon !!! “So where will you be from February 1 – 4 ?” . Thats what the website says :). I am doing bytecode and quiz management this time πŸ™‚ . Bad that i could not do anything for dalal this time πŸ™ .