Quote

Whether we wake or we sleep,

Whether we carol or weep,

The Sun with his Planets in chime,

Marketh the going of Time.

~Edward Fitzgerald

Add comment June 10, 2009

Creating Microsoft Office Outlook 2007 Signatures when New Signature option is disabled.

The place where I work , we have company default signature for all the Outlook Messages we create.
I always wanted to add more information to that signature or create another project specific signature for my mails.

But the Tools->Options->Mail Format->Signatures->New Option is disabled in my Outlook.

Following is a workaround that I found to create/edit new/existing signature in Outlook 2007.

Additional tools that I used is Microsoft Office Word 2007 .

Create new Signature
——————————
Open MS Word and create a good looking signature of your choice with all the formatting , pictures , colours that you need.

Create a folder in your desktop ( eg: “My Signature” ) and save your newly created Word document to that folder.

Save the Word document in three formats from MS Word. Select File -> Save As

Save as -> Web Page
Save as -> Rich Text Format
Save as -> Plain Text [When asked for Text Encoding : select default , ie Windows ( Default )]

Save the file with same name ( eg: MySignature.txt , MySignature.rtf, MySignature.htm ).
Microsoft Word will create an addictional  folder when you save a document as Web Page for pictures and the styles for that page. Which will be  <your file name>_files folder.

So now you have three files with same name and a folder with you. Copy these files and folders ( not the directory you created , just the files and folders ) to

C:\Documents and Settings\<your login name>\Application Data\Microsoft\Signatures

This is the place where Outlook keeps its signatures.

Edit existing Signature
———————————

C:\Documents and Settings\<your login name>\Application Data\Microsoft\Signatures

Browse to the folder specified above , right click on the file ( will be same as your Signature name ) and select Edit. If you have Microsoft Office installed in your machine the document should open up in Microsoft Word. Do edit all the three formats of your signature , ie txt,rtf and htm which is available inside the Signatures folder.

Now you should be able to see your new signature listed for selection in your Outlook.  Good Luck!

1 comment April 17, 2009

Checkbox selection logic

This js restricts the selection from a group of checkboxes to four. If a fifth one is selected , then the first one whichever was selected will be unchecked.

A combination of js and jQuery.

 

// Restricting the vehicle selection to FOUR – Start
var vehList=new Array();
vehList[0]=””;
vehList[1]=””;
vehList[2]=””;
vehList[3]=””;

var vehObjList = new Array();
vehObjList[0]=””;
vehObjList[1]=””;
vehObjList[2]=””;
vehObjList[3]=””;

function restrictVeh(obj,name){
  var selVin = name;
  var remVeh = “”;
  var remObj;
  if($(obj).attr(’checked’)){
    for(var incr=0;incr <= 3 ; incr++){
      if(vehList[incr]==””){
      vehList[incr]=selVin;
      vehObjList[incr]=obj;
      break;
       }
       if(incr==3){
        remVeh = vehList[0];
        remObj = vehObjList[0];
        $(remObj).attr(’checked’,false);
        for(var cnt=0;cnt<3;cnt++){
       vehList[cnt]=vehList[cnt+1];
       vehObjList[cnt]= vehObjList[cnt+1];
        }
        vehList[3]=selVin;
        vehObjList[3]=obj;
       }
     }
  }else{
    for(var incr=0;incr <= 3 ; incr++){
      if(vehList[incr]==selVin){
      vehList[incr]=””;
      vehObjList[incr]=””;
      for(var cnt=incr;cnt<3;cnt++){
       vehList[cnt]=vehList[cnt+1];
       vehObjList[cnt]=vehObjList[cnt+1]
      }
      vehList[3]=””;
      vehObjList[3]=””;
       }
  
    }  
  }
/* for(var incr=0;incr <= 3 ; incr++){
   alert(vehList[incr]);
  }  */
}
// Restricting the vehicle selection to FOUR – End

Add comment November 30, 2008

Pagination

 <!– Pagination code starts here –>
    <%
     String numResults = (String)request.getAttribute(“usedVehicleCount”);
     String index = request.getParameter(“startIndex”);
     int pages = 1 ;
     int numResultsPerPage = 12;
     int remain = 0;
     int total = 0;
     int resultIndex = 0;

     String showStart = “”;
     String showEnd   = “”;
     String offsetVal = “”;
     
     if(numResults!=null){
     pages = Integer.parseInt(numResults)/numResultsPerPage;
     remain = Integer.parseInt(numResults)%numResultsPerPage;
     total = Integer.parseInt(numResults);
     }
     if(index==null){
     resultIndex = 0 ;
     }else{
     resultIndex = Integer.parseInt(index);
     }

     if(remain!=0&&(total>numResultsPerPage)){
     pages = pages + 1;
     }
     // Start value to display
     if(index == null){
     showStart = “1″;
     }else{
     showStart = String.valueOf(Integer.parseInt(index)+1);
     }

     // End value to display

     if(total<=numResultsPerPage||((resultIndex+numResultsPerPage)>total)){
     showEnd = numResults;
     }else {
     showEnd = String.valueOf(resultIndex+numResultsPerPage);
     }

     //Offset value
     offsetVal = String.valueOf(resultIndex);
    %>
    <!– Pagination code ends here –>

——————————————————————

 <%if(resultIndex != 0) {%>
        <a href=”javascript:frameURL(<%=resultIndex-numResultsPerPage%>)” title=”Previous”>Previous</a>  
        <%}%>
        <a href=”#” ><% out.println(“Showing  “+ showStart + ” – ” + showEnd +” of ” + numResults); %></a>  
        <%if(Integer.parseInt(showEnd)<total){%>
        <a href=”javascript:frameURL(<%=resultIndex+numResultsPerPage%>)” title=”Next”>Next</a>
        <%}%>

—————————————-

 

<logic:iterate id=”usedVehicle” name=”usedVehicleList” type=”java.util.Properties” offset=”<%=offsetVal %>” length=”12″>

Add comment November 21, 2008

Pagination

<!– Pagination code starts here –>
    <%
     String numResults = (String)request.getAttribute(“usedVehicleCount”);
     String index = request.getParameter(“startIndex”);
     int pages = 1 ;
     int numResultsPerPage = 12;
     int remain = 0;
     int total = 0;
     int resultIndex = 0;

     String showStart = “”;
     String showEnd   = “”;
     String offsetVal = “”;
     
     if(numResults!=null){
     pages = Integer.parseInt(numResults)/numResultsPerPage;
     remain = Integer.parseInt(numResults)%numResultsPerPage;
     total = Integer.parseInt(numResults);
     }
     if(index==null){
     resultIndex = 0 ;
     }else{
     resultIndex = Integer.parseInt(index);
     }

     if(remain!=0&&(total>numResultsPerPage)){
     pages = pages + 1;
     }
     // Start value to display
     if(index == null){
     showStart = “1″;
     }else{
     showStart = String.valueOf(Integer.parseInt(index)+1);
     }

     // End value to display

     if(total<=numResultsPerPage||((resultIndex+numResultsPerPage)>total)){
     showEnd = numResults;
     }else {
     showEnd = String.valueOf(resultIndex+numResultsPerPage);
     }

     //Offset value
     offsetVal = String.valueOf(resultIndex);
    %>
    <!– Pagination code ends here –>

———————————————————————-

<%if(resultIndex != 0) {%>
        <a href=”javascript:frameURL(<%=resultIndex-numResultsPerPage%>)” title=”Previous”>Previous</a>  
        <%}%>
        <a href=”#” ><% out.println(“Showing  “+ showStart + ” – ” + showEnd +” of ” + numResults); %></a>  
        <%if(Integer.parseInt(showEnd)<total){%>
        <a href=”javascript:frameURL(<%=resultIndex+numResultsPerPage%>)” title=”Next”>Next</a>
        <%}%>

—————————————————————————

<logic:iterate id=”usedVehicle” name=”usedVehicleList” type=”java.util.Properties” offset=”<%=offsetVal %>” length=”12″>

Add comment November 21, 2008

Get filenames inside a folder

A simple command to get the list of file names in a directory to a text file.

In windows xp, go to command prompt : Click Start -> Run

then type cmd.

Go to the folder where the files are existing.

C:\>cd temp

then issue the command

C:\temp>dir /b > FileNames.txt.

The filenames will be available in the same folder within the text file “FileNames.txt”

Remember : the name “FileNames.txt” will also be available in the content.

Add comment October 3, 2008

Gmail Access Link

In my institution , acces to gmail is blocked. But somehow the secured SSL link works.

This link may come handy for many of you. Either copy paste or click the link provided below

https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=1k96igf4806cy&ltmpl=default&ltmplcache=2

or

Gmail Login Page

Add comment August 27, 2008

India – Olympics 2008

I am proud that I watched Abhinav shooting down the GOLD. The first ever for India in Olympics 112 years history!!!.Yes,I watched it live and was jumping around like a kid.

I am sure that he reached the pinnacle just because he walked away from the so called “SYSTEM” in India and tried on his own. He is lucky to have a wealthy father who stood behind him in attaining his goal.But nothing can hide the fact that he is a real talent and a hero. Kudos Abhinav, I salute you.

Last night, I  was so frustrated , not knowing the result of Akhil vs Sergey Vodopyanov. I called up my buddy to know the result. Just as am writing this Jitender too is through to the quarters.Hope they bring home gold.

Best wishes to both . I really hope India make a mark in Olympics this time.

Add comment August 16, 2008

rmvb subtitle

I was trying to run a chinese movie in rmvb format using media player 123 and was unable to see the english subtitles that was available in the same folder.

On some search, it turns out to be a simple trick to turn it on.

The movie name and the subtitle name should be the same

i.e for eg: your movie name is Punarjani.rmvb then your .srt file should also have the same name i.e Punarjani.srt

Thatz all , mine were different.

Cheers!!

Add comment July 30, 2008

That phone call..

Everything in my life is in a “Business Wait” mode now. My expected assignment, my search for a new job, my search for a new girlfriend.. everything. Since there is nothing much to do in the morning, my sleeping routine has also changed. Sleep late and wake up late is the trend for me these days.

As I was lying half asleep, ready to wakeup in my bed, my telephone rang. I checked the number to find it as a unknown local number. I picked up the call.

She: I am ….. calling from Airtel, is this Mr.Genius?

She had so sweet a voice and that very moment I fell in love with that voice.

Me:Ok Hi, it’s me.

She: We have this offer, blah blah and this is what it will cost you for an yearly package.

It was a bit large sum, and I couldn’t hide my surprise for that

Me:What??!! Can you repeat the amount please??

As a reply I could hear a whisper like giggle. That sounded sooo nice, that all my sleep just vanished in a second and boy , she made my day.

She: the amount is X…

We continued to talk about the package, but inside me there was a sudden and unavoidable urge to know her name. Finally I asked

Me: What did you say your name is?

She: Anu Preethi…

I could have continued the conversation and I wanted it so badly. Her voice was like a refreshingly cool breeze flowing over your face, kissing your closed eyes. Being a natural stupid, I said.

Me: Ok Anupreethi, I am not interested in the package now.

She: Ok that is alright, Have a nice day.

Normally I disconnect after this. But this time I went like.

Me: You too have a nice day ahead.

I couldn’t simply disconnect the call , I was so much excited by the voice. I continued to hold the line, like an idiot. To my surprise , she too didn’t disconnect, we kept the call like that for say 3 more seconds. Finally I disconnected the call. She was expecting me to say something I think, or is it their protocol?

Whatever be it, for some strange unknown reasons, I know, she too liked me.

Hmmmm…Life is so confusing .It never gives a direct signal. I really want her to call me again and I swear to God that I will let her know that, she got so lovable a voice.

I really like these (annoying for someone) calls from telemarketing people. To be more precise when it is from girls who got a good voice and good English. Somehow it refreshes me.

Oh yeah, stop looking at me like this, with that stupid smirk on your face. I know , it is time for me to find a girl!!

Add comment July 28, 2008

Previous Posts


Archives

 

November 2009
M T W T F S S
« Jun    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Pages