Shuva's blog
Why was I away from my blog? 
Thursday, March 27, 2008, 12:12 PM - Photography
Powered By ReadTheWords.com
It been quite some time(last post was on 12-Feb-08) since I wrote anything here. I haven't been getting any free time for my blog the last few weeks and the main reason is the onset of father hood. Yeah, me and my wife Lipika, was blessed with a lovely baby girl on Feb-16-08. In addition to that I had my project release dates also falling around the same week. Its been around 6 weeks now and I have a bit relaxed and I think I now have time to get back to making this blog active again.

For today, I am just posting a picture of my beautiful daughter, Tisha here when she was just 2 days old.



You can visit my photo blog for more pictures of Tisha.

Happy Reblogging.//
1 comment ( 86 views )   |  0 trackbacks   |  permalink   |   ( 2.9 / 45 )
Key strokes for finding the block ends(those curly braces) in your program 
Tuesday, February 12, 2008, 03:07 PM - Tips and Tricks
7:22 PM me: ????
14 minutes
7:36 PM Kishore: hey man
how'sit going
7:37 PM me: abbey
7:38 PM in Linux when you want to find out the corresponding pair for "{"
in a c program?
7:39 PM Kishore: hmm... does Cntrl +} wrk or shift
7:40 PM me: hold on
7:41 PM neither si working for me....I dont know whay
thats why I am asking you!
7:42 PM Kishore: can't recall...
but there's one more combination tht definitely wrks...
me: ok no probs, I will bank on my insticts to come back some day!
Kishore: ya...
me: kam kaisa chal raha hai?
--Stuff deleted --
7:47 PM did you try % while standing at the opened {
i tried tht and it works for me
7:48 PM me: Yahoooooooooooooooooooo!
7:49 PM Kishore: cool :)
me: Ctrl + } is for Windows and % for Linux...
Kishore: so that's a compatible solution to vi, vim and other unix eds
me: yes
Kishore: one more is there... it used to wrk for Solaris vi
not sure abt linux
me: what?
Kishore: ]}
7:50 PM me: thats a complicate keystroke ]}
Kishore: hmm... but for now even i'll remember the frnd "%"
;)
me: tahnsk!
7:51 PM Kishore: happy %-ing --Stuff deleted --


And just for my notes: In Emacs, its [Alt] + [Right Arrow] or [Left Arrow]

Happy Bracing.//
1 comment ( 158 views )   |  0 trackbacks   |  permalink   |   ( 2.8 / 69 )
The quick brown fox jumps over the lazy dog 
Friday, February 8, 2008, 04:34 AM - Tips and Tricks
You you are like minded person like me, you must have received some email or the other talking of the mystery of this phrase "The quick brown fox jumps over the lazy dog" which suddenly appears when you type the words =rand(6,6) in Microsoft word and press [Enter]. Some emails claimed that everybody in Microsoft including Billu is puzzled about this. Some claimed its a naughty trick left over by a smart developer and some even claimed that its a permanent virus in MS word.

Yesterday I received a newsletter from MS, which seem to give a very reasonable explanation to its existence. It says :

On a blank line in a Microsoft Office Word document, type =rand followed by (PC,SC)—where PC stands for paragraph count and SC stands for sentence count—and then press ENTER. For example, =rand(2,3) will create two paragraphs of three sentences each.

Word inserts some random text based on your specification. You can use this new text for testing form controls such as text boxes or paragraph alignments.


This does make a lot of sense. In Microsoft Word 2007, if you type "=rand(1,100)" and press enter you will get the text "On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks.". Localized version of Windows uses other phrases to test the local version.

But why this phrase?
If you observe this phrase carefully you will see that it is a phrase that uses all the letters of the alphabet.

Happy reading.//
1 comment ( 102 views )   |  0 trackbacks   |  permalink   |   ( 3 / 69 )
Microsoft comic series 
Thursday, February 7, 2008, 04:10 AM - News
The first thing I did today morning was add another RSS feed into my Google Reader. This one is unique as its not about "serious" technology or photography, but comics. Comics from Microsoft? Yes Microsoft launched the HHH comic series today.

Here is one that I like:



Go visit the HHH comic series now or get their RSS feed.

Happy reading.//
1 comment ( 111 views )   |  0 trackbacks   |  permalink   |   ( 3 / 70 )
Email : Forgot to mention a subject line or forgot an attachment? 
Tuesday, February 5, 2008, 01:15 PM - Tips and Tricks
Quite often while sending an email I forget to attach the file which I claim I have attached. It would be nice if Outlook was smart enough to find it out and gave me a warning message while I press the send button.

Below are the steps that will make your MS Outlook pop up a warning if you forgot to attach the file. It works by searching the existence of either of the words "attach" or "enclose" and checking if there is indeed any attachment. False positives are obvious, but its OK for me.

I never send an email without a subject, but still the steps below ensure that you would get a pop up warning, if you attempt to send am email with an empty subject line.

Below are the steps what I did on my MS-Outlook a few minutes back.(Somebody fwded me an email with the "subject-line-missing" script. I searched the net to find out the "attachment-missing-code". I got the code, it did not work, twisted it a bit and got both of them working together). Thought I would share it here:

1. Open your outlook
2. Press Alt+F11. This opens the Visual Basic editor and then Press Ctrl+R which in turn open Project-Project 1 (left side)
3. On the Left Pane, one can see "Microsoft Outlook Objects" or "Project1", expand this. Now one can see the "ThisOutLookSession".
4. Double click on "ThisOutLookSession". It will open up a code pane.
5. Copy and Paste the following code in the right pane. (Code Pane) and save it


Function SearchForAttachWords(ByVal s As String) As Boolean
Dim v As Variant
For Each v In Array("attach", "enclose")
If InStr(1, s, v, vbTextCompare) <> 0 Then
SearchForAttachWords = True
Exit Function
End If
Next
End Function


Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim strSubject As String
strSubject = Item.Subject
If Len(Trim(strSubject)) = 0 Then
Prompt$ = "Shuva!!!!! Are you sure you want to send this email without a subject?"
If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for Subject") = vbNo Then
Cancel = True
End If
End If


If Item.Attachments.Count > 0 Then Exit Sub
If Not SearchForAttachWords(Item.Subject & ":" & Item.Body) Then Exit Sub
Prompt$ = "Shuva!!!!! Are you sure you want to send this email without an attachment?"
If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for attachment") = vbNo Then
Cancel = True
End If

End Sub


Happy Emailing.//
2 comments ( 141 views )   |  0 trackbacks   |  permalink   |   ( 3 / 61 )

<<First <Back | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Next> Last>>