<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Amusements</title>
	<atom:link href="http://english.usvishakh.net/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://english.usvishakh.net/blog</link>
	<description>Things that amuse me...</description>
	<pubDate>Thu, 05 Apr 2007 00:04:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>The Mommy Test</title>
		<link>http://english.usvishakh.net/blog/archives/30</link>
		<comments>http://english.usvishakh.net/blog/archives/30#comments</comments>
		<pubDate>Thu, 05 Apr 2007 00:03:55 +0000</pubDate>
		<dc:creator>Umesh</dc:creator>
		
		<category><![CDATA[Fun]]></category>

		<category><![CDATA[Jokes]]></category>

		<guid isPermaLink="false">http://english.usvishakh.net/blog/?p=30</guid>
		<description><![CDATA[(From a forwarded e-mail)
I was out walking with my 4 year old daughter. She picked up something off the ground and started to put it in her mouth. I took the item away from her and I asked her not to do that. 
&#8220;Why?&#8221; my daughter asked. 
&#8220;Because it&#8217;s been on the ground, you don&#8217;t [...]]]></description>
		<wfw:commentRss>http://english.usvishakh.net/blog/archives/30/feed</wfw:commentRss>
		</item>
		<item>
		<title>\caption and \label for a LaTeX table</title>
		<link>http://english.usvishakh.net/blog/archives/29</link>
		<comments>http://english.usvishakh.net/blog/archives/29#comments</comments>
		<pubDate>Wed, 28 Mar 2007 23:44:28 +0000</pubDate>
		<dc:creator>Umesh</dc:creator>
		
		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://english.usvishakh.net/blog/?p=29</guid>
		<description><![CDATA[When using both \caption and \label for a LaTeX table, always put \caption before \label; otherwise the labels may not refere the right thing.
For example, use

&#92;begin{table}
  &#92;begin{tabular}{lll}
   ...
  &#92;end{tabular}
  &#92;caption{Table of maxima and minima}
  &#92;label{tab:MaxMinTable}
&#92;end{table}

and not

&#92;begin{table}
  &#92;begin{tabular}{lll}
   ...
  &#92;end{tabular}
  &#92;label{tab:MaxMinTable}
  &#92;caption{Table of maxima [...]]]></description>
		<wfw:commentRss>http://english.usvishakh.net/blog/archives/29/feed</wfw:commentRss>
		</item>
		<item>
		<title>Getting umask</title>
		<link>http://english.usvishakh.net/blog/archives/28</link>
		<comments>http://english.usvishakh.net/blog/archives/28#comments</comments>
		<pubDate>Wed, 28 Mar 2007 23:33:07 +0000</pubDate>
		<dc:creator>Umesh</dc:creator>
		
		<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://english.usvishakh.net/blog/?p=28</guid>
		<description><![CDATA[In unix/linux, the system call umask() sets a umask value and returns the old one.  So, in order to get the current umask value without changing it, one can do

#include &#60;sys/types.h>
#include &#60;sys/stat.h>

mode_t get_umask()
{
   mode_t mask = umask(0);
   umask(mask);
   return mask;
}

]]></description>
		<wfw:commentRss>http://english.usvishakh.net/blog/archives/28/feed</wfw:commentRss>
		</item>
		<item>
		<title>Unicode in web passwords</title>
		<link>http://english.usvishakh.net/blog/archives/25</link>
		<comments>http://english.usvishakh.net/blog/archives/25#comments</comments>
		<pubDate>Tue, 27 Feb 2007 22:38:26 +0000</pubDate>
		<dc:creator>Umesh</dc:creator>
		
		<category><![CDATA[Unicode]]></category>

		<guid isPermaLink="false">http://english.usvishakh.net/blog/?p=25</guid>
		<description><![CDATA[When we enter passwords, the text fields only show stars or some other character that corresponds to the number of characters.  If I use an input method that produces unicode (especially Indian languages), I notice that this number varies in a different pattern (sometimes the number reduces) than the characters entered. A careful inspection [...]]]></description>
		<wfw:commentRss>http://english.usvishakh.net/blog/archives/25/feed</wfw:commentRss>
		</item>
		<item>
		<title>Conversion between codepoints and UTF</title>
		<link>http://english.usvishakh.net/blog/archives/21</link>
		<comments>http://english.usvishakh.net/blog/archives/21#comments</comments>
		<pubDate>Thu, 22 Feb 2007 16:52:34 +0000</pubDate>
		<dc:creator>Umesh</dc:creator>
		
		<category><![CDATA[C/C++]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Unicode]]></category>

		<guid isPermaLink="false">http://english.usvishakh.net/blog/?p=21</guid>
		<description><![CDATA[I was browsing Wikipedia for information on UTF-16 and UTF-8 this morning, and from the specifications, I wrote some C++ routines to convert from a codepoint to UTF-8 and UTF-16 and back.  These are not perfect, but works for the test data I tried.
Code:

/*
 * utf.cxx
 *
 * (Some basic conversion routines for UTF-8 [...]]]></description>
		<wfw:commentRss>http://english.usvishakh.net/blog/archives/21/feed</wfw:commentRss>
		</item>
		<item>
		<title>Calculating number of combinations</title>
		<link>http://english.usvishakh.net/blog/archives/20</link>
		<comments>http://english.usvishakh.net/blog/archives/20#comments</comments>
		<pubDate>Thu, 22 Feb 2007 01:19:08 +0000</pubDate>
		<dc:creator>Umesh</dc:creator>
		
		<category><![CDATA[C/C++]]></category>

		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://english.usvishakh.net/blog/?p=20</guid>
		<description><![CDATA[The well-known formula for calculating the number of combinations of n objects with r objects taken a t a time is

but this requires calculating three factorials which may be expensive and may cause overflow. A better way is to use the other definition

and doing multiplication and division alternatively. An example is the C++ code below:

int [...]]]></description>
		<wfw:commentRss>http://english.usvishakh.net/blog/archives/20/feed</wfw:commentRss>
		</item>
		<item>
		<title>Surviving with Emacs/VM mail client where everybody else uses MS Outlook</title>
		<link>http://english.usvishakh.net/blog/archives/24</link>
		<comments>http://english.usvishakh.net/blog/archives/24#comments</comments>
		<pubDate>Fri, 02 Feb 2007 01:15:36 +0000</pubDate>
		<dc:creator>Umesh</dc:creator>
		
		<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://english.usvishakh.net/blog/?p=24</guid>
		<description><![CDATA[Using Emacs and VM for e-mail in a company that has a lot of MS Outlook employees can be a difficult task.  Microsoft Outlook handles e-mails in a non-standard way in many cases.  Reading e-mails properly and making your e-mails properly read by others can be tough tasks.  This post addresses some [...]]]></description>
		<wfw:commentRss>http://english.usvishakh.net/blog/archives/24/feed</wfw:commentRss>
		</item>
		<item>
		<title>Emacs: Comment and duplicate</title>
		<link>http://english.usvishakh.net/blog/archives/22</link>
		<comments>http://english.usvishakh.net/blog/archives/22#comments</comments>
		<pubDate>Mon, 22 Jan 2007 00:37:26 +0000</pubDate>
		<dc:creator>Umesh</dc:creator>
		
		<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://english.usvishakh.net/blog/?p=22</guid>
		<description><![CDATA[The following Emacs Lisp function duplicates the current line and comments the first line (using the prefix for the current mode) .

(defun upn-comment-and-duplicate ()
  "Comments current line after duplicating."
  (interactive)
  (let (
        (beg (line-beginning-position))
        (end (+ 1 (line-end-position))))
 [...]]]></description>
		<wfw:commentRss>http://english.usvishakh.net/blog/archives/22/feed</wfw:commentRss>
		</item>
		<item>
		<title>Emacs: Extended point-to-register and jump-to-register</title>
		<link>http://english.usvishakh.net/blog/archives/23</link>
		<comments>http://english.usvishakh.net/blog/archives/23#comments</comments>
		<pubDate>Wed, 17 Jan 2007 00:49:12 +0000</pubDate>
		<dc:creator>Umesh</dc:creator>
		
		<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://english.usvishakh.net/blog/?p=23</guid>
		<description><![CDATA[When working in Emacs, we may need to temporarily &#8220;bookmark&#8221; some places so that we can later jump to that line in the same session.  For example, you want to search for something, but after done with that, you want to come back to the place you were initially.   These routines allow [...]]]></description>
		<wfw:commentRss>http://english.usvishakh.net/blog/archives/23/feed</wfw:commentRss>
		</item>
		<item>
		<title>Emulate vi&#8217;s dot (.) command in Emacs</title>
		<link>http://english.usvishakh.net/blog/archives/26</link>
		<comments>http://english.usvishakh.net/blog/archives/26#comments</comments>
		<pubDate>Wed, 13 Dec 2006 07:02:21 +0000</pubDate>
		<dc:creator>Umesh</dc:creator>
		
		<category><![CDATA[Emacs]]></category>

		<category><![CDATA[vi/vim]]></category>

		<guid isPermaLink="false">http://english.usvishakh.net/blog/?p=26</guid>
		<description><![CDATA[One of the most powerful commands vi has that emacs doesn&#8217;t have is the dot (.) command that repeats the previous command.  If you use emacs what will you do if you are addicted to vi&#8217;s dot command?
There is no adequate answer.  Some answers are

Use the key sequence C-x z if you have [...]]]></description>
		<wfw:commentRss>http://english.usvishakh.net/blog/archives/26/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
