Posts Tagged ‘Code’

Improving Efficiency in Managing E-mail

July 5, 2011 Leave a comment

I would like to share a nifty trick that I learnt last year. As all of you must already be aware that there is a great pain in processing tons of e-mails when you are back on vacation. Well, I found this blog which make this task a bit easier.

Basically, this trick helps in organizing mails by moving e-mails in your folder by a keyboard shortcut (like Alt+N). You need to do following steps

First, create a macro in outlook and copy/paste the code from this site.

Then you need to replace
Set objFolder = objInbox.Folders("_Reviewed")
Set objFolder = objNS.Folders.Item("Personal Folders"). Folders.Item("NIIT").

This is assuming that Personal Folders is your offline pst name and NIIT is the folder where you want to move. You might also want to update the double quotes.


Once you have modified the code, you can test it by running the macro and ensuring it is moving the message in a particular folder. You would need to repeat this routine for each folder you wish to automate.

Once you have the macro ready, you can create a Menu/Toolbar command for each folder. You need to underline one of the alphabet by prefixing &. This is the alphabet you would use along with the Alt key. For e.g. Alt+N to move it to NIIT folder.


If the alphabet is already mapped to a different function then you might want to update it.

That’s it. You are ready. I hope this helps.


I Believe I Caused This…

February 20, 2010 1 comment

All of us have a faced a technical problem sometime or the other that we need to solve urgently. Let’s take this particular case…

I am working on a project and everything is going well. I have thoroughly unit tested the code… code review is done… QA is done… and the customer is positive about their progress in the acceptance testing. I am already thinking of the project that I am going to work on next! But suddenly in one of the customer tests, the system goes down!!

Our first instinct in such case is naturally to figure out what went wrong. We will look at interfaces, external systems, system capacity etc. and try to do everything to understand the problem & recreate the scenario.

Deep down we always hope that it is NOT our code that has caused the issue and try to find other reasons for the failure. We think since we have followed all the processes in making the code ready, it cannot be our fault and we hesitate to look at our code to find the issue.

I can empathize with the above scenario but do not agree with it. If there is an issue, then we need to always believe that it is caused by our code. If we believe that the issue is caused by us then it is much easier to find the cause of the issue. We will first look at our code to find mistakes & will be able to resolve the issue more quickly!

Tags: ,

Do you want a Virus?

January 7, 2010 5 comments

Last week I saw a movie, 3 Idiots which I enjoyed a lot. In the movie, it is shown that the college students have affectionately named their dictatorial Professor Viru Sahastrabudhhe as Virus. This got me thinking into the title of my next blog post.

No, this blog is not about student and professor relationship. I am writing on actual computer virus. So, what is a Computer Virus? There are various definition available on the net but what I mean to ask is that has anybody seen a source code of a computer virus? No? OK… here it is…


This is the real source code of a virus. If you do not believe me then copy / paste the code in a text file and save it as a .com file on your PC… on second thoughts, please do not do it. Alarm bells will start ringing and your manager will catch my neck. 😉


These kinds of Virus source codes are published to provide a standardized process for testing anti-virus programs across different vendors. Basically, this virus does not harm your PC but is just flagged by the anti-virus program. If it does NOT then your anti-virus program is not so good and it is time for an upgrade!

Tags: ,

LOL Code

December 7, 2009 1 comment

Recently, I was surfing and found a new programming language LOL Code. As per wiki, LOL Code is an estoric programming language designed as a Joke by Adam Lindsay. It is really a funny language.


Here is the sample code for Hello World.


Translation: Hi, Can I have the stdio file (This is with reference too the famous #include “stdio.h”). Make “Hi World” Visible. Ok Thanks Bye…

Here is another sample.


Translation: Hi, Can I have the stdio file. I have a variable. I am in a loop. Up variable by 1. Is variable bigger than 10? Yes – Ok Thanks Bye. Make variable visible. I am out of the loop.

This kind of language makes coding interesting. Do you think incorporating this kind of language will help programmers code better & more efficiently?


Coding Horror

November 29, 2009 Leave a comment

Before I post any further, I would like to give acknowledgement to the blog which inspired me to start this blog. The blog is Coding Horror. The author of this blog is Jeff Atwood and he is the blogging guru that I had mentioned in my first post. Also, my second post was inspired by one of his recent post.

I have been following his post for more than 3 years and it has been a very intreseting journey for me. Most of his posts are very thought provoking and are based on latest trends. If like me you are interested in technology then I would highly recommend you to subscribe to his blog.

Tags: ,

Hello World

November 20, 2009 2 comments

I think many of us have started our programming lessons with writing the first code as “Hello World”.  Since this is my first post on my first blog, I would like to start with saying “Hello World”. 🙂

int main()
  printf("Hello World");
  return 0;

As the title suggest, I would like this blog to be about coding & coding & coding & nothing else… ;-). As one of my blogging gurus had suggested that if you need to start blogging then the only thing you need to do, is to decide a blogging schedule… and stick to it!! So, I am committing to write 1 post about coding every week.

Tags: ,