Monday, September 29, 2008

Managing your mails with Labels and Filters

I have often noticed most of the newbies who subscribe to an active google group unsubscribe soon after being troubled by messy inbox because of the email flood. Or, as an alternative they choose not to receive Emails.

Hey! in case you have a gmail account, it was never that difficult to be receiving the discussions in your mailbox without bothering to locate an important mail in an ocean of mails from the group. The task can be easily accomplished with the help of Label and Filter. Not just groups, you can also you it to filter your mails as per your convenience.

Let me tell you the way to vanish away the cause of your daily migrane.

Go to Labels->Edit Label link from Left panel or Settings->Labels from the top bar.

Type the name of the label in the text box accompanying 'Create' that you would want to associate with your mail filter. You can choose any name you desire. And press Create button.

For example, if you wanted to filter all the mails from ioefoss google group, you could name the label IOE-FOSS or anything you deem suitable.

Huh! will that filter the mails from ioefoss in my mailbox? No not yet, you have just created a label, you need to filter the mails now.

Now, choose Filters from Settings. And click the link 'Create a new filter'.

So, you see so many criterias for filtering your mail. You can filter on the basis of the sender, receipant, subject, etc etc.

So, if a friend of you frequently communicates to you and you want to filter the mails from him, you would simply type in the email address of your friend in the 'From' textbox.

And in case, you wanted to filter the mails from google groups, you would type in the email address of the group in 'To' textbox.

For eg, to filter your emails from ioefoss google group, you would type 'ioefoss@googlegroups.com' in 'To' textbox. If you are confused how to select the field for filtering the mails, you would better check the header of the mail and find something common the mails you want to filter. You can do this by clicking 'Show details' in your mails.

After this, click 'Next step' button.

So, now you have various ways of filtering the mail.

If you wanted not to receive your filtered mails in your inbox and directly go the the Label, check 'Skip the Inbox' and then 'Apply the label'. In our case, the label would be 'IOE-FOSS'.

If you wanted to apply this for the prior communications, check 'Also apply filter to ___ conversations below'.

And that is all you had to do to get rid of your headaches. Simple, isn't it?

So, happy GMailing (thanks Dhruba for coining the term!!!).

Monday, May 12, 2008

Do you still love your old snake game?

With the development in graphics hardware and computing power, the games developed these days are very powerful and challenging. But still there is something fascinating about the traditional computer games. Most of us have must have played snake game popular on cell phones. I am sure there are many who are very crazy about it. I am myself a fan of the game and I love the simplicity of the game. But as far as I believe, after a certain time you adapt to the game and get hold of timings and strategy which may dilute your enthusiasm after sometime. And there is really no time factor for eating the food. How about being able to limit the time within which a player must eat the food? Hmmm.. not convinced with the idea.

Ok how about adding a timing limit indirectly by making you compete for a food which your friend in network also tend to occupy. That is making it go multi-player. Ah, now that sounds interesting. Want some more challenge? How about an intelligent snake which the computer controls and which is capable of determining the shortest path to food? Scared? Ain't you excited about it? Yup, there is a game that adds these feature to the snake game-iSnake. The project has been developed in Java. And just to let you know I am one of the developers of the game.

We developed this game as a part of our academic project and with the purpose of research in AI and real time gaming. But that doesn't mean we ignored factors like smooth gaming experience. We twicked the original swing components in Java to give the GUI a game like touch. The project uses Apache Mina Framework for communication. Besides, the game uses an algorithm for shortest path finding which we developed ourselves. The biggest challenge in the project was path computation in real time. Each game cycle is of 100ms and computing path within 100ms with other threads simultaneously running is really tough. Most of the path computations are rarely done in real time. We code- named the algorithm that we are currently using in the game as Viper. The game won the first prize at 'KUCC Software Meet 2008' and we participated with the project in 'LOCUS-Technical Fest 2008' for which the results are still awaited.

The game is hosted at sourceforge.net and has been released on 07 May. The game is registered under GPL and can be launched from web page using Java Webstart. You can find the complete documentation of the project including the path finding algorithm on the website.

So what are you waiting for? Browse the url: http://isnake.sourceforge.net, download the game. And get going. Give your friends a difficult time eating food. Happy Gaming!!!

Saturday, December 22, 2007

Extracting email addresses from multiple files

Few days back, we conducted a LTSP (Linux Terminal Server Project) ToT (Training of Trainers). We invited application (a .txt format) for the training. We needed 25 applications but we had around 90.
Now sending notification to everyone about their selection status was a problem. One option was to open the .txt file one by one then copy and paste the email address which was way too manual and time consuming (not less than 2 hours). Hence, we thought of an alternative.

I placed all the .txt files in a folder 'application'. Then I extracted out the lines that contained email addresses. The following simple yet powerful command did this for me.

jitendra@jitendra:~/application$ cat *.* | grep '@' > email_lines


cat *.* concatenated all the files in the directory and grep extracted the lines containing @. The output was directed to a file email_lines. The output contained lines like the one shown below:
(g) Email address: abc@gef.com

Though this command was sufficient to simplify out task and I could have done with it with more 15 minutes processing. But I wanted to go further experimenting and making the task more simple.

Now what I wanted was the section only after : from each line. This was accomplished using cut command. I went about like this.

jitendra@jitendra:~/application$ cut -d: -f2 email_lines>email_list

cut command remove the sections from each line of files. Here -d defined : to be the delimiter. -f was used to select the field. 2 specifies the field to the right of the delimiter : . 1 would have specified field to the left of delimiter. email_lines is the file from which the field section has to be removed. I directed the output to email_list.

Now I had a list of email addresses only. I preferred adding comma manually to them to create a comma separated list of email-addresses to send the notification.

The task which would have otherwise taken more than 2 hours was over in less than 10 minutes.

Sunday, November 18, 2007

GMail: Bigger and better

Only days after welcome improvements in UI and functionalities with new additions, GMail has now increased the mailbox volume to around 5000 MB mark.
The change comes in less than a month after GMail raised its mail size from around 2800 MB to 4300 MB.

With this, GMail makes it clear that size is never going to be a barrier in using GMail. Before you reach anywhere near the limit, you will get your mailbox size enlarged.

The improvements in UI are really a welcome change. Though the changes seem small, but I feel most of them are really awesome. Though I have not much explored the changes because of lack of time, the ones I liked are:

  • The new color selection looks better than the previous one. Though the change in color appear only at few places.
  • The change in position of Loading status display was long awaited. The previous design used to hide the Sign Out link in case of Loading.
  • The contact info on mouse-hover is really a great feature.
With these additions, GMail has shown that nothing can beat Google when it comes to innovation and quality.