<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8386092</id><updated>2011-12-18T01:28:24.754-08:00</updated><title type='text'>Random Junk</title><subtitle type='html'>This is not really a blog, I just paste some random stuffs like , my common coding errors, LaTeX tips I come across etc etc .</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8386092.post-4080671848511832291</id><published>2011-08-14T23:12:00.000-07:00</published><updated>2011-08-14T23:14:13.660-07:00</updated><title type='text'>No such signal ! (QT)</title><content type='html'>if in QT the slot and signals do not seem to work and you get errors like &lt;br /&gt;&lt;br /&gt;Object::connect: No such signal QTableWidget::cellChanged&lt;br /&gt;&lt;br /&gt;in the stderr , most likely it can be fixed by &lt;br /&gt;&lt;br /&gt;removing the variable names from the call to connect &lt;br /&gt;&lt;br /&gt;e.g &lt;br /&gt;&lt;br /&gt;SIGNAL(cellChanged(int ,int ))&lt;br /&gt;&lt;br /&gt;instead of &lt;br /&gt;&lt;br /&gt;SIGNAL(cellChanged(int r,int c ))&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-4080671848511832291?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/4080671848511832291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=4080671848511832291' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/4080671848511832291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/4080671848511832291'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2011/08/no-such-signal-qt.html' title='No such signal ! (QT)'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-295952477895917664</id><published>2010-05-05T23:48:00.001-07:00</published><updated>2010-05-05T23:49:38.989-07:00</updated><title type='text'>pdfcreator not working with google chrome or srware iron</title><content type='html'>It seems pdfcreator does not work directly with google chrome or srware iron &lt;br /&gt;the following work around should fix it &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;- Go to your printers (Start - Settings - Printers) &lt;br /&gt;- Right-Click PDFCreator -&gt; Properties -&gt; Configure Port &lt;br /&gt;- Check "Run as User" (it must be selected)&lt;br /&gt;- OK&lt;br /&gt;- Close&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-295952477895917664?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/295952477895917664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=295952477895917664' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/295952477895917664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/295952477895917664'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2010/05/pdfcreator-not-working-with-google.html' title='pdfcreator not working with google chrome or srware iron'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-2874668789970135142</id><published>2010-01-04T00:28:00.001-08:00</published><updated>2010-01-04T00:28:41.100-08:00</updated><title type='text'>sideways scrolling in links (browser)</title><content type='html'>the [ and ] keys let you scroll left and right.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-2874668789970135142?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/2874668789970135142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=2874668789970135142' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/2874668789970135142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/2874668789970135142'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2010/01/sideways-scrolling-in-links-browser.html' title='sideways scrolling in links (browser)'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-6260922148217776061</id><published>2009-11-02T18:30:00.000-08:00</published><updated>2009-11-02T18:34:35.540-08:00</updated><title type='text'>Not using Andnav2 anymore</title><content type='html'>In my previous post I was explaining how to create map tiles for andnav2. But I have since stopped andnav2. The main problem being, I was kind of lost and wanted to use it and guess what, I get a message saying my version of andnav2 has expired and I must download a new version. Indeed when I am lost that is the perfect time for me to upgrade.&lt;br /&gt;I am looking for alternatives, feel free to help me find a better one.&lt;br /&gt;I tried &lt;a href="http://wiki.navit-project.org/index.php/Navit_on_Android"&gt;navit&lt;/a&gt; but as of now still unable to get it to work on my G1.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-6260922148217776061?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/6260922148217776061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=6260922148217776061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/6260922148217776061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/6260922148217776061'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2009/11/not-using-andnav2-anymore.html' title='Not using Andnav2 anymore'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-3502062933078392193</id><published>2009-06-17T20:00:00.000-07:00</published><updated>2009-06-18T02:29:15.573-07:00</updated><title type='text'>Offline maps for G1/ HTC Dream/ android phone</title><content type='html'>So I got the HTC dream, which is excellent except for the fact that whenever I used the maps app, it started to download the maps using my 3G connection and without any plan ( I use prepaid card) it was surely costimg me a lot. &lt;br /&gt;Solutoin : AndNav http://www.andnav.org/&lt;br /&gt;&lt;br /&gt;Install andnav2 from the site using the instructions provided therein. Basically install "apps installer" app from google market. download the latest .apk file and install. &lt;br /&gt;&lt;br /&gt;now for the maps: for some luckly places on earth, someone has already made the map tiles and those can be downloaded and you need to unpack them in the andnav2\tiles\mapnik folder on your sdcard ..and you will have a bunch of files in hierarchy like &lt;br /&gt;0/0/0.png.andnav&lt;br /&gt;&lt;br /&gt;for rest of us unlucky ones:&lt;br /&gt;you need to use trekbuddy to create your own map tiles using the instructions available &lt;a href="http://www.andnav.org/index.php/en/component/content/article/37-about-andnav2/129-maptile-packs-creator-treckbuddy-derivate"&gt;here&lt;/a&gt;&lt;br /&gt;only one caveat :&lt;br /&gt;&lt;br /&gt;all the instructions are fine and it should work as mentioned on the site. but in case you dont get the directory hierarchy in the atlases folder like 0/0 as it should be, even if you follow the instruction to the doit.&lt;br /&gt;If so  just before you click on "create the tile package", make sure you click on "clear " and then "add selection" in the tile content package box. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;after that simply copy all the files to your sd card and you are good to go !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;======================&lt;br /&gt;added later &lt;br /&gt;I have made a small one minute video of the tile creation.&lt;br /&gt;&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/RJ23FJjUeZA&amp;hl=en&amp;fs=1&amp;"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/RJ23FJjUeZA&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-3502062933078392193?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/3502062933078392193/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=3502062933078392193' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/3502062933078392193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/3502062933078392193'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2009/06/offline-maps-for-g1-htc-dream-android.html' title='Offline maps for G1/ HTC Dream/ android phone'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-2923620422642205235</id><published>2009-06-04T19:51:00.000-07:00</published><updated>2009-06-04T19:52:48.660-07:00</updated><title type='text'>Bhaat Kerela</title><content type='html'>For ages I have been wondering whats the english word for "bhaat kerela"&lt;br /&gt;so here finally I have the answer &lt;br /&gt;&lt;br /&gt;http://en.wikipedia.org/wiki/Momordica_dioica&lt;br /&gt;&lt;br /&gt;Momordica dioica, commonly known as Teasle Gourd&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-2923620422642205235?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/2923620422642205235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=2923620422642205235' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/2923620422642205235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/2923620422642205235'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2009/06/bhaat-kerela.html' title='Bhaat Kerela'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-4902152524302205946</id><published>2009-01-22T03:20:00.000-08:00</published><updated>2009-01-22T03:25:16.286-08:00</updated><title type='text'>mounting iso files in linux</title><content type='html'>&lt;blockquote&gt;mount -t iso9660 -o loop foo.iso foodir&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;on archlinux you may get the following error &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;mount: could not find any device /dev/loop#&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;so overcome that you need to do a&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;modprobe loop&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-4902152524302205946?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/4902152524302205946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=4902152524302205946' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/4902152524302205946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/4902152524302205946'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2009/01/mounting-iso-files-in-linux.html' title='mounting iso files in linux'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-9031697209003446326</id><published>2008-12-15T23:33:00.000-08:00</published><updated>2008-12-15T23:35:42.568-08:00</updated><title type='text'>append newline at end of files</title><content type='html'>Frequently when you download source code off the internet and try to compile, you end up getting a bunch of "warning: no newline at end of file" . to append a newline at the end of each *.c and *.h files use the following one liner. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt; find ./ \( -name "*.h" -o -name "*.cpp" \)  -exec perl -i.bak -lpe 'print "\n" if eof' {} \;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;ps: the space between the '{}' and '\;' at the end is required and there is no space in between "\;". else the follwing error occurs&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;find: missing argument to `-exec'&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-9031697209003446326?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/9031697209003446326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=9031697209003446326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/9031697209003446326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/9031697209003446326'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2008/12/append-newline-at-end-of-files.html' title='append newline at end of files'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-5539439602512379191</id><published>2008-12-08T04:04:00.000-08:00</published><updated>2008-12-08T04:07:50.951-08:00</updated><title type='text'>Sunglass</title><content type='html'>While this place has mostly computer related stuff, this time I just want to say if you are running a marathon and it is expected to be sunny, a sunglass helps a LOT. Not that I am a great runner or anything. But this time I was wearing one and in between at around 34 km or so, I took them off and boy the sun looked horrible and I can easily imagine it would be far more depressing without the sunglass. FWIW I shaved 1 hr and few minutes off my last years 7 hrs 15 mins time and I am sure the sunglass made some difference.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-5539439602512379191?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/5539439602512379191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=5539439602512379191' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/5539439602512379191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/5539439602512379191'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2008/12/sunglass.html' title='Sunglass'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-8363973030938477368</id><published>2008-12-01T23:17:00.000-08:00</published><updated>2008-12-01T23:18:41.620-08:00</updated><title type='text'>Resize an image using Imagemagick</title><content type='html'>you can just use convert to resize an image. Infact you can convert and resize in one go &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;convert infile.jpg  -resize 10% outfile.png&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-8363973030938477368?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/8363973030938477368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=8363973030938477368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/8363973030938477368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/8363973030938477368'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2008/12/resize-image-using-imagemagick.html' title='Resize an image using Imagemagick'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-488320323623835417</id><published>2008-11-10T01:55:00.000-08:00</published><updated>2008-11-10T01:58:29.742-08:00</updated><title type='text'>"identify as" in opera</title><content type='html'>People who have used opera for some time know the usefullness of the "identify as" option. In the new versions it hard to find where its located , so here's how&lt;br /&gt;&lt;br /&gt;right click on the webpage -&gt;edit site preferences -&gt; network &lt;br /&gt;&lt;br /&gt;so basically it lets you set the preferences per website , which seems to be a useful feature , except for the fact that its hard to find.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-488320323623835417?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/488320323623835417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=488320323623835417' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/488320323623835417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/488320323623835417'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2008/11/identify-as-in-opera.html' title='&quot;identify as&quot; in opera'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-4903620372557811193</id><published>2008-11-03T17:49:00.000-08:00</published><updated>2008-11-03T18:12:45.913-08:00</updated><title type='text'>Latex solution : IEEE etc requiring all fonts to be embedded</title><content type='html'>Here's an ugly solution which worked for me &lt;br /&gt;( this is from &lt;a href="http://osdir.com/ml/editors.lyx.general/2004-06/msg00124.html"&gt;here&lt;/a&gt;  just copying it here again in case the original post get lost in an internet purge ) &lt;br /&gt;&lt;br /&gt;modify file&lt;br /&gt;/usr/share/gs-afpl/8.14/lib/gs_pdfwr.ps&lt;br /&gt;and change lines&lt;br /&gt;&lt;br /&gt;/.standardfonts [&lt;br /&gt;/Courier /Courier-Bold /Courier-Oblique /Courier-BoldOblique&lt;br /&gt;/Helvetica /Helvetica-Bold /Helvetica-Oblique /Helvetica-BoldOblique&lt;br /&gt;/Times-Roman /Times-Bold /Times-Italic /Times-BoldItalic&lt;br /&gt;/Symbol /ZapfDingbats&lt;br /&gt;] readonly def&lt;br /&gt;&lt;br /&gt;into&lt;br /&gt;&lt;br /&gt;/.standardfonts [&lt;br /&gt;% /Courier /Courier-Bold /Courier-Oblique /Courier-BoldOblique&lt;br /&gt;% /Helvetica /Helvetica-Bold /Helvetica-Oblique /Helvetica-BoldOblique&lt;br /&gt;% /Times-Roman /Times-Bold /Times-Italic /Times-BoldItalic&lt;br /&gt;% /Symbol /ZapfDingbats&lt;br /&gt;] readonly def&lt;br /&gt;&lt;br /&gt;=========&lt;br /&gt;the command pdffonts shows the different fonts and whether they are embedded&lt;br /&gt;sample output &lt;br /&gt; pdffonts apdffile.pdf &lt;br /&gt;name                                 type              emb sub uni object ID&lt;br /&gt;------------------------------------ ----------------- --- --- --- ---------&lt;br /&gt;Arial-BoldMT                         TrueType          no  no  no    2295  0&lt;br /&gt;Arial-ItalicMT                       TrueType          no  no  no    2296  0&lt;br /&gt;ArialMT                              TrueType          no  no  no    2299  0&lt;br /&gt;KGDDMC+Wingdings-Regular             CID TrueType      yes yes no     296  0&lt;br /&gt;KGDEMN+SymbolMT                      CID TrueType      yes yes yes    301  0&lt;br /&gt;Arial-BoldItalicMT                   TrueType          no  no  no     306  0&lt;br /&gt;KGDPPM+TimesNewRomanPS-BoldMT        TrueType          yes yes no     307  0&lt;br /&gt;KGECBC+TimesNewRomanPSMT             TrueType          yes yes no     310  0&lt;br /&gt;KGECDD+BookmanOldStyle-Bold          TrueType          yes yes no     312  0&lt;br /&gt;TimesNewRomanPS-BoldItalicMT         TrueType          no  no  no     314  0&lt;br /&gt;TimesNewRomanPS-ItalicMT             TrueType          no  no  no     318  0&lt;br /&gt;KGECAB+TimesNewRomanPSMT             CID TrueType      yes yes yes    320  0&lt;br /&gt;KGDPOM+TimesNewRomanPS-BoldMT        CID TrueType      yes yes yes    327  0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-4903620372557811193?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/4903620372557811193/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=4903620372557811193' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/4903620372557811193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/4903620372557811193'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2008/11/latex-solution-ieee-etc-requiring-all.html' title='Latex solution : IEEE etc requiring all fonts to be embedded'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-8889459849602989322</id><published>2008-05-08T20:09:00.000-07:00</published><updated>2008-05-08T20:10:31.916-07:00</updated><title type='text'>no page number in latex documents</title><content type='html'>The nopageno package provides a simple way to remove page numbers from both the opening pages and the normal pages of all classes of LaTeX documents. Other than  adding the package to your document, no action is necessary. No package options are available.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-8889459849602989322?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/8889459849602989322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=8889459849602989322' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/8889459849602989322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/8889459849602989322'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2008/05/no-page-number-in-latex-documents.html' title='no page number in latex documents'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-1006314921116307296</id><published>2007-08-16T20:07:00.000-07:00</published><updated>2007-08-16T20:20:16.827-07:00</updated><title type='text'>perl -  modify numbers on each line</title><content type='html'>Recently had the expression &lt;br /&gt;&lt;br /&gt;((a1 * b2 * c3) - (a1 * b3 * c2) - (a2 * b1 * c3) + (a3 * b1 * c2) + (a2 * b3 * c1) - (a3 * b2 * c1))&lt;br /&gt;&lt;br /&gt;in which i needed to changed all a1, b2 etc to a[0], b[1] .. i.e to arrays and with subscripts starting from 0&lt;br /&gt;&lt;br /&gt;the following did the trick&lt;br /&gt;echo "the expression here" |  perl -lpe 's/(\d)/$1-1/ge; s/(\d)/\[$1\]/g'&lt;br /&gt;&lt;br /&gt;the two s/// are required cos first one with /ge the right hand side is evaluated as an expression and hence cannot put chars like '[' inside it&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-1006314921116307296?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/1006314921116307296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=1006314921116307296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/1006314921116307296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/1006314921116307296'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2007/08/perl-modify-numbers-on-each-line.html' title='perl -  modify numbers on each line'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-115942887179000160</id><published>2006-09-28T00:30:00.000-07:00</published><updated>2006-09-28T00:34:31.800-07:00</updated><title type='text'>rectangular emacs</title><content type='html'>Just now had the occasion to use the rectangular select/cut /paste &lt;br /&gt;&lt;br /&gt;C-x r  *   where * is k for kill , y for yank(paste)&lt;br /&gt;&lt;br /&gt;to select the rectangle you have to mark(C-space) one corner of the rectangle and then take the cursor to the opposite corner).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-115942887179000160?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/115942887179000160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=115942887179000160' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/115942887179000160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/115942887179000160'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2006/09/rectangular-emacs.html' title='rectangular emacs'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-115139053159837066</id><published>2006-06-26T23:39:00.000-07:00</published><updated>2006-06-26T23:42:11.606-07:00</updated><title type='text'>cross-compiler hell</title><content type='html'>cross-compiler are a pain in the ass .&lt;br /&gt;&lt;br /&gt;kegel.com/crosstool is helpful in such cases&lt;br /&gt;&lt;br /&gt;anyway if you ever build powerpc-eabi cross compiler and you get the error&lt;br /&gt;&lt;br /&gt;powerpc-eabi-gcc hello.c -static&lt;br /&gt;hello.c:(.text+0x24): undefined reference to `printf'&lt;br /&gt;/opt/ppcsim/lib/gcc-lib/powerpc-eabi/3.2.1/libgcc.a(eabi.o): In function `__eabi':&lt;br /&gt;&lt;br /&gt;use the -msim switch when compiling&lt;br /&gt;&lt;br /&gt;dont ask me the logic behind it ..but I got it from &lt;br /&gt;http://sources.redhat.com/ml/crossgcc/2002-09/msg00096.html&lt;br /&gt;and it worked for me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-115139053159837066?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/115139053159837066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=115139053159837066' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/115139053159837066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/115139053159837066'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2006/06/cross-compiler-hell.html' title='cross-compiler hell'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-114895703976797028</id><published>2006-05-29T19:41:00.000-07:00</published><updated>2006-05-29T19:45:40.986-07:00</updated><title type='text'>wrapped text in tables</title><content type='html'>use package tabulary for wrapped text in tables&lt;br /&gt;&lt;br /&gt;\begin{table}&lt;br /&gt;\caption{capshon}&lt;br /&gt;\begin{tabulary}{\textwidth}{lL}...&lt;br /&gt;\hline&lt;br /&gt;\hline&lt;br /&gt;  A &amp; B \\hline&lt;br /&gt; A &amp; bbbbbbbbbbbbbbbbbbb\ X &amp; ccccccccccccccccccccc\&lt;br /&gt;\hline&lt;br /&gt;\end{tabulary}...&lt;br /&gt;\label{label}&lt;br /&gt;\end{table}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;for some odd reason, the label has to be where it is, when i triedto move it up below the caption i ended up with more than 100 errors&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-114895703976797028?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/114895703976797028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=114895703976797028' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114895703976797028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114895703976797028'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2006/05/wrapped-text-in-tables.html' title='wrapped text in tables'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-114895688251458856</id><published>2006-05-29T19:39:00.000-07:00</published><updated>2006-05-29T19:41:22.526-07:00</updated><title type='text'>install new latex package</title><content type='html'>1.Download&lt;br /&gt;2. move .sty file to ..textmf/tex/latex/package-name/&lt;br /&gt;3. if no .sty file .run latex on the .ins file&lt;br /&gt;4. type  texhash&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-114895688251458856?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/114895688251458856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=114895688251458856' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114895688251458856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114895688251458856'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2006/05/install-new-latex-package.html' title='install new latex package'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-114888682210527809</id><published>2006-05-29T00:12:00.000-07:00</published><updated>2006-05-29T00:13:42.113-07:00</updated><title type='text'>longtable</title><content type='html'>For tables of size more than one page , use package longtable&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-114888682210527809?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/114888682210527809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=114888682210527809' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114888682210527809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114888682210527809'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2006/05/longtable.html' title='longtable'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-114887081750481402</id><published>2006-05-28T19:46:00.000-07:00</published><updated>2006-05-28T19:47:38.816-07:00</updated><title type='text'>rar</title><content type='html'>To extract with rar with full path use the 'x' switch&lt;br /&gt;else extract using 'e'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-114887081750481402?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/114887081750481402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=114887081750481402' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114887081750481402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114887081750481402'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2006/05/rar.html' title='rar'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-114235361927582853</id><published>2006-03-14T08:25:00.000-08:00</published><updated>2006-03-14T08:26:59.286-08:00</updated><title type='text'>hyperref warnings : LaTeX</title><content type='html'>Package hyperref Warning: Token not allowed in a PDFDocEncoded string,&lt;br /&gt;(hyperref)                removing `\&lt;def&gt;-command' on input line 46.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;\texorpdfstring{LATEX text}{PDF text}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;can be used to vary the text, depending on whether it is to be processed by LATEX or whether it will appear in the PDF bookmark. The above section heading could then be changed to&lt;br /&gt;&lt;br /&gt;\subsubsection{An Example Heading\texorpdfstring{: $a^2+b^2=c^2$}{}}&lt;br /&gt;&lt;br /&gt;In this case, the equation will be printed in the section heading within the document, but will not appear in the bookmark.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-114235361927582853?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/114235361927582853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=114235361927582853' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114235361927582853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114235361927582853'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2006/03/hyperref-warnings-latex.html' title='hyperref warnings : LaTeX'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-114180474051273674</id><published>2006-03-07T23:52:00.000-08:00</published><updated>2006-03-07T23:59:00.523-08:00</updated><title type='text'>Reset $. at EOF</title><content type='html'>When using perl $. variables, you may need to reset $. for each new file.&lt;br /&gt;&lt;br /&gt;for example to add #!/usr/bin/perl to each .pl in the current dir do &lt;br /&gt;&lt;br /&gt;perl -i -lpe 'print "#!/usr/bin/perl\n" if $. ==1 ; close ARGV if eof' *.pl&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-114180474051273674?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/114180474051273674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=114180474051273674' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114180474051273674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114180474051273674'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2006/03/reset-at-eof.html' title='Reset $. at EOF'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-114171264578803030</id><published>2006-03-06T22:22:00.000-08:00</published><updated>2006-10-05T09:26:19.670-07:00</updated><title type='text'>mget/mput with ftp</title><content type='html'>While uploading/downloading multiple files using mput and mget in ftp, you prolly have to type 'y' for each file transfer. If you find it annoying you can toggle it off/on by the 'prompt' command.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-114171264578803030?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/114171264578803030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=114171264578803030' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114171264578803030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/114171264578803030'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2006/03/mgetmput-with-ftp.html' title='mget/mput with ftp'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-113276155404523606</id><published>2005-11-23T07:58:00.000-08:00</published><updated>2006-03-06T22:25:24.106-08:00</updated><title type='text'>Adding to table of contents ( LaTeX)</title><content type='html'>&lt;p&gt; Starred versions of the sectioning commands are not added to the table of contents by default, but they can be added using:  &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;div align="center"&gt; &lt;/div&gt;  &lt;table width="100%"&gt;  &lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;tt&gt;\addcontentsline&lt;/tt&gt;&lt;a name="2577"&gt;&lt;/a&gt;{&lt;i&gt;&lt;i&gt;file&lt;/i&gt;&lt;/i&gt;}{&lt;i&gt;&lt;i&gt;type&lt;/i&gt;&lt;/i&gt;}{&lt;i&gt;&lt;i&gt;text&lt;/i&gt;&lt;/i&gt;}&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;  &lt;div align="center"&gt; &lt;/div&gt; &lt;dl&gt; &lt;dt&gt;&lt;strong&gt;&lt;i&gt;&lt;i&gt;file&lt;/i&gt;&lt;/i&gt;&lt;/strong&gt;&lt;/dt&gt;&lt;dd&gt;This should be the extension of the file where the contents are written. So this will be &lt;tt&gt;toc&lt;/tt&gt;&lt;a name="2584"&gt;&lt;/a&gt; for the table of contents, &lt;tt&gt;lof&lt;/tt&gt;&lt;a name="2587"&gt;&lt;/a&gt; for the list of figures and &lt;tt&gt;lot&lt;/tt&gt;&lt;a name="2590"&gt;&lt;/a&gt; for the list of tables.  &lt;p&gt;  &lt;/p&gt;&lt;/dd&gt;&lt;dt&gt;&lt;strong&gt;&lt;i&gt;&lt;i&gt;type&lt;/i&gt;&lt;/i&gt;&lt;/strong&gt;&lt;/dt&gt;&lt;dd&gt;This is the type of object you are adding to the contents. e.g. chapter, section, figure.  &lt;p&gt;  &lt;/p&gt;&lt;/dd&gt;&lt;dt&gt;&lt;strong&gt;&lt;i&gt;&lt;i&gt;text&lt;/i&gt;&lt;/i&gt;&lt;/strong&gt;&lt;/dt&gt;&lt;dd&gt;This is the text that should go in the contents. &lt;/dd&gt; &lt;/dl&gt;   &lt;p&gt; For example, the bibliography is generated using a starred version of the &lt;tt&gt;\chapter&lt;/tt&gt;&lt;a name="2595"&gt;&lt;/a&gt; command, so it doesn't get added to the table of contents. To add it to the table of contents, you can do &lt;/p&gt; &lt;pre&gt;\addcontentsline{toc}{chapter}{\bibname}&lt;br /&gt;&lt;/pre&gt;   &lt;p&gt; The counter &lt;tt&gt;tocdepth&lt;/tt&gt;&lt;a name="2598"&gt;&lt;/a&gt; controls the section level depth in the table of contents.   &lt;/p&gt; &lt;p&gt; The &lt;tt&gt;report&lt;/tt&gt;&lt;a name="2601"&gt;&lt;/a&gt; class file sets &lt;tt&gt;tocdepth&lt;/tt&gt;&lt;a name="2605"&gt;&lt;/a&gt; to 2, which means  that only the parts, chapters, sections and subsections will be entered into the table of contents.  You can use &lt;tt&gt;\setcounter&lt;/tt&gt;&lt;a name="2608"&gt;&lt;/a&gt; to change the value of &lt;tt&gt;tocdepth&lt;/tt&gt;&lt;a name="2611"&gt;&lt;/a&gt;.  For example, to also include the subsubsections, paragraphs and subparagraphs, do: &lt;/p&gt; &lt;pre&gt;\setocounter{tocdepth}{5}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-113276155404523606?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/113276155404523606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=113276155404523606' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/113276155404523606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/113276155404523606'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/11/adding-to-table-of-contents-latex.html' title='Adding to table of contents ( LaTeX)'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-112796803208066799</id><published>2005-09-28T21:25:00.000-07:00</published><updated>2005-11-23T08:04:30.183-08:00</updated><title type='text'>perl special variables ..ARGV</title><content type='html'>just had a reason to use $ARGV in a perl one liner&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ARGV    The special filehandle that iterates over command-line file-filenames&lt;br /&gt;        names in @ARGV. Usually written as the null filehandle in the&lt;br /&gt;        angle operator "&lt;&gt;". Note that currently "ARGV" only has its&lt;br /&gt;        magical effect within the "&lt;&gt;" operator; elsewhere it is just a&lt;br /&gt;        plain filehandle corresponding to the last file opened by "&lt;&gt;".&lt;br /&gt;        In particular, passing "\*ARGV" as a parameter to a function&lt;br /&gt;        that expects a filehandle may not cause your function to&lt;br /&gt;    automatically read the contents of all the files in @ARGV.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;more perl special variables can be found in the perlvar manpage&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-112796803208066799?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/112796803208066799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=112796803208066799' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/112796803208066799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/112796803208066799'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/09/perl-special-variables-argv.html' title='perl special variables ..ARGV'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-112487393469810428</id><published>2005-08-24T01:52:00.000-07:00</published><updated>2005-08-24T01:58:54.703-07:00</updated><title type='text'>Float spanning columns  in LaTeX</title><content type='html'>Use  figure* and table* to produce floats which spans across both the columns in a two column article&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-112487393469810428?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/112487393469810428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=112487393469810428' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/112487393469810428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/112487393469810428'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/08/float-spanning-columns-in-latex.html' title='Float spanning columns  in LaTeX'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-112349120339513369</id><published>2005-08-08T01:49:00.000-07:00</published><updated>2005-08-08T01:53:23.403-07:00</updated><title type='text'>diff/patch</title><content type='html'>copied from http://kegel.com/academy/opensource.html&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&lt;a name="patches.making"&gt;Making Patches&lt;/a&gt;&lt;/h3&gt;  To create a patch, you run a program called &lt;tt&gt;diff&lt;/tt&gt;, and save its output to a file.  For instance, if the original source tree is in directory "foobar.old", and your new sources are in directory "foobar.new", the command &lt;pre&gt;diff -Naur foobar.old foobar.new &gt; blarg.patch&lt;/pre&gt;  will create the file 'blarg.patch' containing your changes in 'unified context diff' format.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&lt;a name="patches.using"&gt;Using Patches&lt;/a&gt;&lt;/h3&gt;  To use a patch -- that is, to automatically carry out the changes described in a patch file -- you run a program called &lt;tt&gt;patch&lt;/tt&gt;.  For instance,  if you're trying to apply the patch 'blarg.patch' to a package called foobar-0.17, you might say &lt;pre&gt;cd foobar-0.17; patch -p1 &lt; ../blarg.patch&lt;/pre&gt;  That would merge the changes from blarg.patch into your source tree. (The -p1 tells patch to ignore the first directory in filenames in the patch; that way a patch generated against the directory foobar-0.11 will still apply properly.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-112349120339513369?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/112349120339513369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=112349120339513369' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/112349120339513369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/112349120339513369'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/08/diffpatch.html' title='diff/patch'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-112314188111316711</id><published>2005-08-04T00:48:00.000-07:00</published><updated>2005-08-04T00:51:21.120-07:00</updated><title type='text'>indentations</title><content type='html'>&lt;pre&gt;So, you can either get rid of GNU emacs, or change it to use saner&lt;br /&gt;values.  To do the latter, you can stick the following in your .emacs file:&lt;br /&gt;&lt;br /&gt;(defun linux-c-mode ()&lt;br /&gt; "C mode with adjusted defaults for use with the Linux kernel."&lt;br /&gt; (interactive)&lt;br /&gt; (c-mode)&lt;br /&gt; (c-set-style "K&amp;R")&lt;br /&gt; (setq c-basic-offset 8))&lt;/pre&gt;&lt;br /&gt;use -kr and -i8 options with indent&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;(stands for "K&amp;amp;R, 8 character indents"). &lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-112314188111316711?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/112314188111316711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=112314188111316711' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/112314188111316711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/112314188111316711'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/08/indentations.html' title='indentations'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-112313961990850661</id><published>2005-08-04T00:12:00.000-07:00</published><updated>2005-08-04T00:13:39.916-07:00</updated><title type='text'>Spacing in Math Mode (LaTeX)</title><content type='html'>&lt;p&gt;n a math environment,  LaTeX ignores  the spaces you type and puts in  the spacing that it thinks is best.  LaTeX formats mathematics the way  it's done in mathematics  texts.  If you want different spacing, LaTeX  provides the following four commands for use in math mode: &lt;/p&gt; &lt;p&gt;   1.  &lt;tt&gt;\;&lt;/tt&gt; - a thick space &lt;/p&gt; &lt;p&gt;   2.  &lt;tt&gt;\:&lt;/tt&gt;  - a medium space &lt;/p&gt; &lt;p&gt;   3.  &lt;tt&gt;\,&lt;/tt&gt; - a thin space &lt;/p&gt; &lt;p&gt;   4.  &lt;tt&gt;\!&lt;/tt&gt;  - a negative thin space &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-112313961990850661?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/112313961990850661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=112313961990850661' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/112313961990850661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/112313961990850661'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/08/spacing-in-math-mode-latex.html' title='Spacing in Math Mode (LaTeX)'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-112192520574092553</id><published>2005-07-20T22:52:00.000-07:00</published><updated>2005-11-23T08:01:05.956-08:00</updated><title type='text'>calculating average using perl</title><content type='html'>perl -lan -e  'BEGIN{$sum=0;$num = 0}' -e '$sum += $F[0]; $num++; END{$avg=$sum/$num;print "avg:$avg"}'   data.dat&lt;br /&gt;&lt;br /&gt;to find the average of the first column in a file&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-112192520574092553?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/112192520574092553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=112192520574092553' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/112192520574092553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/112192520574092553'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/07/calculating-average-using-perl.html' title='calculating average using perl'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-111933445962712927</id><published>2005-06-20T23:13:00.000-07:00</published><updated>2005-06-20T23:16:11.696-07:00</updated><title type='text'>search in Emacs [ word under the cursor]</title><content type='html'>C-s C-w , appends the rest of the word under the cursor to the search pattern.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-111933445962712927?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/111933445962712927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=111933445962712927' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111933445962712927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111933445962712927'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/06/search-in-emacs-word-under-cursor.html' title='search in Emacs [ word under the cursor]'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-111881547070408194</id><published>2005-06-14T23:02:00.000-07:00</published><updated>2005-06-14T23:04:30.706-07:00</updated><title type='text'>\[ or $$ instead of  displaymath</title><content type='html'>You can use \[ math formula \] or $$math formula$$ instead of&lt;br /&gt;\begin{displaymath}&lt;br /&gt;math formula&lt;br /&gt;\end{display math}&lt;br /&gt;&lt;br /&gt;this is particularlty useful if you dont want to write small formula and don't want to break the paragraph to type it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-111881547070408194?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/111881547070408194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=111881547070408194' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111881547070408194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111881547070408194'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/06/or-instead-of-displaymath.html' title='\[ or $$ instead of  displaymath'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-111864722475513435</id><published>2005-06-13T00:15:00.000-07:00</published><updated>2005-06-13T05:22:15.883-07:00</updated><title type='text'>Redirections in Bash</title><content type='html'>command &gt; filename 2&gt;&amp;1&lt;br /&gt;directs both standard output and standard error to the file filename&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;command 2&gt;&amp;amp;1 &gt; filename&lt;br /&gt;directs only the standard output to file, filename because the standard error was duplicated as standard output before the standard output was redirected&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-111864722475513435?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/111864722475513435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=111864722475513435' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111864722475513435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111864722475513435'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/06/redirections-in-bash.html' title='Redirections in Bash'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-111864537624303397</id><published>2005-06-12T23:45:00.000-07:00</published><updated>2005-06-12T23:49:36.250-07:00</updated><title type='text'>setting page ranges while printing</title><content type='html'>`lp` allows you to give the page ranges to print ,&lt;br /&gt;&lt;br /&gt;-P page-list&lt;br /&gt;            Specifies which pages to print in the document. The list can contain a list of numbers and ranges (#-#) separated by commas (e.g. 1,3-5,16).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-111864537624303397?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/111864537624303397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=111864537624303397' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111864537624303397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111864537624303397'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/06/setting-page-ranges-while-printing.html' title='setting page ranges while printing'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-111588465998240772</id><published>2005-05-12T00:56:00.000-07:00</published><updated>2005-05-12T00:57:39.986-07:00</updated><title type='text'>latex fullpage</title><content type='html'>\usepackage{fullpage} for efficient use of paper realestate&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-111588465998240772?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/111588465998240772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=111588465998240772' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111588465998240772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111588465998240772'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/05/latex-fullpage.html' title='latex fullpage'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-111510092400793863</id><published>2005-05-02T23:13:00.000-07:00</published><updated>2005-05-02T23:15:24.006-07:00</updated><title type='text'>rectangle select in Emacs</title><content type='html'>&lt;h2&gt;Working with rows &amp;amp; columns (rectangles)&lt;/h2&gt;   &lt;p&gt; A "rectangle" is one or more columns of text in one or more rows.  Commands are available to delete rectangles, fill  them with spaces, or cut and paste them.   &lt;/p&gt; &lt;p&gt; To delineate a rectangle for a command to work on,  set a mark in the first row to the left of the first column  (i.e., the top left of the rectangle). &lt;/p&gt; &lt;p&gt; Move the cursor to the last row, then to the right of the last column  (i.e. the bottom right of the rectangle). &lt;/p&gt; &lt;p&gt; To delete the rectangle, type &lt;tt&gt;Esc-x delete-rectangle&lt;/tt&gt; &lt;/p&gt; &lt;p&gt; To cut a rectangle, type &lt;tt&gt;Esc-x kill-rectangle&lt;/tt&gt; &lt;/p&gt; &lt;p&gt; To paste a killed rectangle in a new location,  move the cursor to wherever the rectangle is to go and type  &lt;tt&gt;Esc-x yank-rectangle&lt;/tt&gt;  &lt;/p&gt; &lt;p&gt; To replace the contents of a rectangle with spaces, type    &lt;tt&gt;Esc-x clear-rectangle&lt;/tt&gt; &lt;/p&gt; &lt;p&gt; To fill the area of the rectangle with spaces and push the original rectangle right,  type &lt;tt&gt;Esc-x open-rectangle&lt;/tt&gt;             &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-111510092400793863?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/111510092400793863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=111510092400793863' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111510092400793863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111510092400793863'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/05/rectangle-select-in-emacs.html' title='rectangle select in Emacs'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-111467637992249430</id><published>2005-04-28T01:15:00.000-07:00</published><updated>2005-04-28T01:19:39.923-07:00</updated><title type='text'>script command</title><content type='html'>The script command is helpful to get a transcript of the commands you enter and the output displayed on the terminal.&lt;br /&gt;You start by typing script filename ( in the absence of filename the default filename is typescript)&lt;br /&gt;&lt;br /&gt;The script command ends when you exit the forked shell by typing control-d.&lt;br /&gt;more info on man script ofcourse ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-111467637992249430?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/111467637992249430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=111467637992249430' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111467637992249430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111467637992249430'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/04/script-command.html' title='script command'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-111337731202345099</id><published>2005-04-13T00:17:00.000-07:00</published><updated>2005-04-13T00:28:32.023-07:00</updated><title type='text'>commandline arguments in perl</title><content type='html'>unlike C , in perl the first command line argument is ARGV[0] and not ARGV[1]&lt;br /&gt;$#ARGV is the subscript of the last element of the @ARGV array&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-111337731202345099?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/111337731202345099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=111337731202345099' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111337731202345099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111337731202345099'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/04/commandline-arguments-in-perl.html' title='commandline arguments in perl'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-111323087988633431</id><published>2005-04-11T07:47:00.000-07:00</published><updated>2005-04-11T07:47:59.886-07:00</updated><title type='text'>latex row height in tabular</title><content type='html'>&lt;pre&gt;&lt;span style="color:red;"&gt;\renewcommand\arraystretch{MyValue}% (MyValue=1.0 is for standard spacing)&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-111323087988633431?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/111323087988633431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=111323087988633431' title='35 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111323087988633431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111323087988633431'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/04/latex-row-height-in-tabular.html' title='latex row height in tabular'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>35</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-111111687318783271</id><published>2005-03-17T19:32:00.000-08:00</published><updated>2006-02-21T15:47:54.060-08:00</updated><title type='text'>Common C++ error</title><content type='html'>error:ISO C++ forbids defining types within return type&lt;br /&gt;error:return type specification for constructor invalid&lt;br /&gt;&lt;br /&gt;This mainly happens when you forget to end the class declaration with a ';'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-111111687318783271?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/111111687318783271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=111111687318783271' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111111687318783271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/111111687318783271'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2005/03/common-c-error.html' title='Common C++ error'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-110266133092982656</id><published>2004-12-09T22:45:00.000-08:00</published><updated>2004-12-09T22:48:50.930-08:00</updated><title type='text'>gengetopt</title><content type='html'>http://www.gnu.org/software/gengetopt/gengetopt.html&lt;br /&gt;If an option is given multiple times&lt;br /&gt;&lt;br /&gt;If an option is specified as &lt;tt&gt;multiple&lt;/tt&gt;, then it can be specified multiple times at command line.  In this case, say the option is called &lt;span style="font-family: monospace;"&gt;foo&lt;/span&gt;, the generated &lt;tt&gt;foo_given&lt;/tt&gt; field in the args structure contains the number of times it was specified and the generated field &lt;tt&gt;foo_arg&lt;/tt&gt; is an array containing all the values that were specified for this option.&lt;br /&gt;&lt;br /&gt; Notice that if a default value is specified for a multiple option, that value is assigned to the option only if no other value is specified on the command line (and the corresponding &lt;span style="font-family: monospace;"&gt;_given&lt;/span&gt; field will be set to 1), i.e., a default value IS NOT always part of the values of a multiple option.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;tt&gt;&lt;b&gt;&lt;span style="color:#0000ff;"&gt;for&lt;/span&gt;&lt;/b&gt; &lt;span style="color:#990000;"&gt;(&lt;/span&gt;i &lt;span style="color:#990000;"&gt;=&lt;/span&gt; &lt;span style="color:#993399;"&gt;0&lt;/span&gt;&lt;span style="color:#990000;"&gt;;&lt;/span&gt; i &lt;span style="color:#990000;"&gt;&lt;&lt;/span&gt; args_info&lt;span style="color:#990000;"&gt;.&lt;/span&gt;string_given&lt;span style="color:#990000;"&gt;;&lt;/span&gt; &lt;span style="color:#990000;"&gt;+&lt;/span&gt;&lt;span style="color:#990000;"&gt;+&lt;/span&gt;i&lt;span style="color:#990000;"&gt;)&lt;/span&gt;&lt;br /&gt;   &lt;b&gt;&lt;span style="color:#000000;"&gt;printf&lt;/span&gt;&lt;/b&gt; &lt;span style="color:#990000;"&gt;(&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;"passed string: %s\n"&lt;/span&gt;&lt;span style="color:#990000;"&gt;,&lt;/span&gt; args_info&lt;span style="color:#990000;"&gt;.&lt;/span&gt;string_arg&lt;span style="color:#990000;"&gt;[&lt;/span&gt;i&lt;span style="color:#990000;"&gt;]&lt;/span&gt;&lt;span style="color:#990000;"&gt;)&lt;/span&gt;&lt;span style="color:#990000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/tt&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-110266133092982656?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/110266133092982656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=110266133092982656' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/110266133092982656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/110266133092982656'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2004/12/gengetopt.html' title='gengetopt'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-110231112312942855</id><published>2004-12-05T21:27:00.000-08:00</published><updated>2004-12-05T21:32:03.130-08:00</updated><title type='text'>C++ </title><content type='html'>http://www.stanford.edu/class/cs106b/winterhandouts/H06%20C++%20streams.pdf&lt;br /&gt;&lt;br /&gt;fs.open(filename.c_str());&lt;br /&gt;&lt;br /&gt; The above line attempts to open the file with the given filename (searching in the current directory). Note that open member function takes in a char* argument and not a C++-style string, so you must use c_str to convert it. (Sigh, this is just a weird artifact of the stream libraries being completed before the string library). Opening the file may or may not succeed (depending on whether the named file exists, what permissions it has, etc.), so before you proceed, you should check the state of the stream.&lt;br /&gt;&lt;br /&gt;if (fs.fail()) return;&lt;br /&gt;&lt;br /&gt; The call to fail checks if the state of the stream is unhappy, in this case, it will determine if the file was properly opened. This is essential before we start trying to output to the stream (in the same way that we check if a FILE* is NULL in C).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-110231112312942855?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/110231112312942855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=110231112312942855' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/110231112312942855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/110231112312942855'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2004/12/c.html' title='C++ '/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-110204574533671325</id><published>2004-12-02T19:31:00.000-08:00</published><updated>2004-12-16T19:31:44.526-08:00</updated><title type='text'>Emacs </title><content type='html'>a few emacs shortcuts&lt;br /&gt;&lt;br /&gt;M-/   autocompletion. It's based on the tokens in the currently open buffers.&lt;br /&gt;&lt;br /&gt;ESC-u  change a word into uppercase&lt;br /&gt;ESC-c   capitalise a word&lt;br /&gt;C-x C-u  upcase region&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-110204574533671325?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/110204574533671325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=110204574533671325' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/110204574533671325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/110204574533671325'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2004/12/emacs.html' title='Emacs '/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-110170635756441563</id><published>2004-11-28T21:21:00.000-08:00</published><updated>2004-11-28T22:52:55.096-08:00</updated><title type='text'>GNU Build system</title><content type='html'>The top directory should atleast have Makefile.am and configure.in&lt;br /&gt;&lt;br /&gt;Makefile.am in the top directory should have the subdirs where Makefiles need to be created.&lt;br /&gt;e.g Makefile.am for toplevel&lt;br /&gt;+++++&lt;br /&gt;SUBDIRS = src&lt;br /&gt;+++++&lt;br /&gt;&lt;br /&gt;and in the directory "src" you can possibly have the following Makefile.am&lt;br /&gt;++++++++++++++++&lt;br /&gt;bin_PROGRAMS = hello&lt;br /&gt;hello_SOURCES  = hello.cpp&lt;br /&gt;&lt;br /&gt;++++++++++++++++++&lt;br /&gt;&lt;br /&gt;Next you need to have a configure.in in your toplevel directory&lt;br /&gt;following is just a template , read and understand on your own , i have no explanations&lt;br /&gt;++++++++++++++++++&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;AC_INIT(src/hello.cpp)&lt;br /&gt;AM_CONFIG_HEADER(config.h)&lt;br /&gt;AM_INIT_AUTOMAKE(hello, 0.1)&lt;br /&gt;   AC_PROG_CXX&lt;br /&gt;AC_PROG_INSTALL&lt;br /&gt;   AC_OUTPUT(Makefile src/Makefile)&lt;/code&gt;&lt;br /&gt;++++++++++++++++&lt;br /&gt;you are pretty much done with the files at this stage ,&lt;br /&gt;&lt;br /&gt;$aclocal&lt;code&gt; &lt;/code&gt;&lt;br /&gt;$autoconf&lt;br /&gt;$touch AUTHORS NEWS README ChangeLog&lt;br /&gt;$autoheader&lt;br /&gt;$automake --add-missing&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-110170635756441563?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/110170635756441563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=110170635756441563' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/110170635756441563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/110170635756441563'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2004/11/gnu-build-system.html' title='GNU Build system'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-109903078766968503</id><published>2004-10-28T23:17:00.000-07:00</published><updated>2004-10-28T23:19:47.670-07:00</updated><title type='text'>Installing perl modules </title><content type='html'>from http://www.brandonhutchinson.com/installing_perl_modules.html&lt;br /&gt;&lt;br /&gt;&lt;p align="left"&gt;&lt;span style="font-weight: bold;"&gt;perl    -MCPAN -e shell&lt;/span&gt; (to get an interactive CPAN shell)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;perl -MCPAN    -e 'install Time::JulianDay'&lt;/span&gt; (if you know the name of the module, you can install it directly without interacting with the CPAN shell)&lt;/p&gt;  &lt;p align="left"&gt; Within    the CPAN shell:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;i /expression/&lt;/span&gt; will search for a Perl module containing &lt;span style="font-style: italic;"&gt;expression&lt;/span&gt;, and&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;install &lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;module&lt;/span&gt; will install the module.&lt;/p&gt;  &lt;p align="left"&gt;Example:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;perl -MCPAN -e shell&lt;/span&gt;&lt;br /&gt; &lt;span style="font-weight: bold;"&gt; i /JulianDay/&lt;/span&gt;&lt;br /&gt; &lt;span style="font-weight: bold;"&gt; install Time::JulianDay&lt;/span&gt;&lt;big&gt;&lt;span style="font-size:-1;"&gt;&lt;big&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/big&gt;&lt;/span&gt;&lt;span style="font-size:-1;"&gt;&lt;big&gt; &lt;/big&gt;&lt;/span&gt;&lt;/big&gt;&lt;/p&gt;  &lt;p align="left"&gt;Note: if you are behind a firewall, you may wish to use passive FTP with Perl's Net::FTP module. Set the environment variable &lt;span style="font-weight: bold;"&gt;FTP_PASSIVE 1&lt;/span&gt; (or any non-zero value) to use passive FTP when downloading Perl modules through CPAN.&lt;br /&gt;&lt;/p&gt;  &lt;p align="left"&gt;&lt;big&gt;&lt;span style="font-size:-1;"&gt;&lt;big&gt;&lt;br /&gt;To manually install a Perl module:&lt;/big&gt;&lt;/span&gt;&lt;/big&gt;&lt;/p&gt;  &lt;p align="left"&gt;1.    Download the Perl module from &lt;a href="http://www.cpan.org/"&gt;CPAN&lt;/a&gt; or other    site.&lt;br /&gt;2. Extract the tarball.&lt;br /&gt;3. Run &lt;span style="font-weight: bold;"&gt;perl Makefile.PL&lt;/span&gt;&lt;br /&gt;4. Run &lt;span style="font-weight: bold;"&gt;make&lt;/span&gt;&lt;br /&gt;5. Run &lt;span style="font-weight: bold;"&gt;make test&lt;/span&gt;&lt;br /&gt;6. Run &lt;span style="font-weight: bold;"&gt;make install&lt;/span&gt;&lt;/p&gt;  Note: you should use the same compiler to build Perl modules that you used to build Perl. For example, if you are building Perl modules with &lt;span style="font-style: italic;"&gt;gcc &lt;/span&gt;and are using a version of Perl that was supplied with your distribution (ex. Solaris 8 includes Perl 5.005_03), you may run into errors.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-109903078766968503?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/109903078766968503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=109903078766968503' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109903078766968503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109903078766968503'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2004/10/installing-perl-modules.html' title='Installing perl modules '/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-109703858226817102</id><published>2004-10-05T21:55:00.000-07:00</published><updated>2004-10-05T21:56:22.266-07:00</updated><title type='text'>fflush(stdin)</title><content type='html'>from http://www.eskimo.com/~scs/C-faq/q12.26.html&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How can I flush pending input so that a user's typeahead isn't read at the next prompt? Will &lt;/span&gt;&lt;tt style="font-weight: bold;"&gt;fflush(stdin)&lt;/tt&gt; &lt;span style="font-weight: bold;"&gt;work&lt;/span&gt;?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;tt&gt;fflush&lt;/tt&gt; is defined only for output streams. Since its definition of ``flush'' is to complete the writing of buffered characters (not to discard them), discarding unread input would not be an analogous meaning for &lt;tt&gt;fflush&lt;/tt&gt; on input streams. &lt;/p&gt; &lt;p&gt;There is no standard way to discard unread characters from a stdio input stream, nor would such a way be sufficient unread characters can also accumulate in other, OS-level input buffers. &lt;/p&gt;   &lt;p&gt;References:  ANSI Sec. 4.9.5.2&lt;br /&gt;ISO Sec. 7.9.5.2&lt;br /&gt;H&amp;amp;S Sec. 15.2 &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-109703858226817102?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/109703858226817102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=109703858226817102' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109703858226817102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109703858226817102'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2004/10/fflushstdin.html' title='fflush(stdin)'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-109703839431068959</id><published>2004-10-05T21:50:00.000-07:00</published><updated>2004-10-05T21:53:14.310-07:00</updated><title type='text'>dired to open new directories in same buffer</title><content type='html'>From http://list-archive.xemacs.org/xemacs-beta/200006/msg00277.html&lt;br /&gt;&lt;br /&gt;Pasting the entire mail&lt;br /&gt;&lt;ul&gt; &lt;li&gt;&lt;strong&gt;To&lt;/strong&gt;: &lt;strong&gt;&lt;a href="mailto:xemacs-beta@xemacs.org"&gt;X@XXXXXX.XXX&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Subject&lt;/strong&gt;: &lt;strong&gt;reusing dired buffer&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;From&lt;/strong&gt;: &lt;strong&gt;samuel padgett &lt;&lt;a href="mailto:res00ajf@gte.net"&gt;XXXXXXX@XXX.XXX&lt;/a&gt;&gt;&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Date: Thu, 29 Jun 2000 01:34:58 -0400&lt;/li&gt;&lt;li&gt;Message-ID: &lt;&lt;a href="http://list-archive.xemacs.org/xemacs-beta/200006/msg00277.html"&gt;20000629013458.B2915@durham4-099.dsl.gtei.net&lt;/a&gt;&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;!--X-Head-of-Message-End--&gt; &lt;!--X-Head-Body-Sep-Begin--&gt; &lt;hr /&gt; &lt;!--X-Head-Body-Sep-End--&gt; &lt;!--X-Body-of-Message--&gt; &lt;pre&gt;Recently, there was some discussion in the comp.emacs newsgroup&lt;br /&gt;regarding dired and the way `dired-find-file' handles directories.&lt;br /&gt;`dired-find-file' will always create a new buffer for each directory.&lt;br /&gt;If you work in many directories, these dired buffers can accumulate&lt;br /&gt;and quickly become unwieldy.&lt;br /&gt;&lt;br /&gt;The original post asked for a way to reuse the same dired buffer when&lt;br /&gt;changing directories.  Someone suggested using 'i',&lt;br /&gt;`dired-maybe-insert-subdir', instead of 'RET'.  This isn't ideal,&lt;br /&gt;however, because it simply inserts the contents of the subdirectory&lt;br /&gt;into the current dired buffer and doesn't remove the old directory's&lt;br /&gt;contents.  It also forces users to use two different keys to navigate&lt;br /&gt;through directories and select files, 'i' and 'RET', instead of just&lt;br /&gt;being able to use 'RET'.&lt;br /&gt;&lt;br /&gt;I would really like to have the new directory contents replace the old&lt;br /&gt;in a dired buffer.  If my cursor is positioned over a file, however, I&lt;br /&gt;want dired to do the normal thing: open the file in a new buffer.&lt;br /&gt;This seems to me like the most intuitive behavior.  I hacked out some&lt;br /&gt;lisp code that does this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(defun dired-follow-file ()&lt;br /&gt; "In dired, visit the file or directory on this line.&lt;br /&gt;If a directory is on the current line, replace the current&lt;br /&gt;dired buffer with one containing the contents of the directory.&lt;br /&gt;Otherwise, invoke `dired-find-file' on the file."&lt;br /&gt; (interactive)&lt;br /&gt; (let ((filename (dired-get-filename)))&lt;br /&gt;   ;; if the file is a directory, replace the buffer with the&lt;br /&gt;   ;;  directory's contents&lt;br /&gt;   (if (file-directory-p filename)&lt;br /&gt;       (find-alternate-file filename)&lt;br /&gt;     ;; otherwise simply perform a normal `dired-find-file'&lt;br /&gt;     (dired-find-file))))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, I simply need to remap the dired keys&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(add-hook&lt;br /&gt;'dired-mode-hook&lt;br /&gt;(lambda ()&lt;br /&gt;  (local-set-key "\C-m" 'dired-follow-file)&lt;br /&gt;  (local-set-key "e" 'dired-follow-file)&lt;br /&gt;  (local-set-key "f" 'dired-follow-file)))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and (abracadabra) dired replaces the old directory with the new one in&lt;br /&gt;the same buffer when I press 'RET'.  (Note that it's always easy to&lt;br /&gt;get back to the parent directory because you can just select '..' in&lt;br /&gt;the new directory listing.)&lt;br /&gt;&lt;br /&gt;I posted this lisp snippet to comp.emacs and was asked to also send it&lt;br /&gt;to &lt;bug-gnu-emacs@gnu.org&gt; and &lt;xemacs-beta@xemacs.org&gt;.  Here it&lt;br /&gt;is.  I hope this is helpful.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Samuel Padgett&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-109703839431068959?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/109703839431068959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=109703839431068959' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109703839431068959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109703839431068959'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2004/10/dired-to-open-new-directories-in-same.html' title='dired to open new directories in same buffer'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-109608092597940247</id><published>2004-09-24T19:55:00.000-07:00</published><updated>2004-09-24T19:55:25.980-07:00</updated><title type='text'>ssh</title><content type='html'>&lt;p&gt; To setup &lt;a href="http://www.openssh.org/"&gt;OpenSSH&lt;/a&gt;'s sshd, you must first set up the keys used:  &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;dl&gt; &lt;dd&gt; &lt;div align="left"&gt; &lt;tt&gt;  cd /etc/ssh&lt;br /&gt;ssh-keygen -b 1024 -f ssh_host_key -t rsa1 -N ''&lt;br /&gt;ssh-keygen -b 1024 -f ssh_host_rsa_key -t rsa -N ''&lt;br /&gt;ssh-keygen -b 1024 -f ssh_host_dsa_key -t dsa -N ''&lt;br /&gt;&lt;/tt&gt; &lt;/div&gt; &lt;/dd&gt; &lt;/dl&gt;   &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-109608092597940247?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/109608092597940247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=109608092597940247' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109608092597940247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109608092597940247'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2004/09/ssh.html' title='ssh'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-109600441010521556</id><published>2004-09-23T22:39:00.000-07:00</published><updated>2004-09-23T22:40:10.106-07:00</updated><title type='text'>common perl mistakes -1</title><content type='html'>$var2 = chomp($var1);&lt;br /&gt;&lt;br /&gt;isn't going to put the chomped $var1 in $var2&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-109600441010521556?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/109600441010521556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=109600441010521556' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109600441010521556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109600441010521556'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2004/09/common-perl-mistakes-1.html' title='common perl mistakes -1'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-109599846366801373</id><published>2004-09-23T20:57:00.001-07:00</published><updated>2004-09-24T20:20:07.753-07:00</updated><title type='text'>perl error</title><content type='html'>&lt;span style="font-size:100%;"&gt;Reference found where even-sized list expected at ./test.pl line 39.&lt;br /&gt;&lt;br /&gt;-- you get this error when you try to initialize a hash like below&lt;br /&gt;&lt;br /&gt;%hash_name = {};&lt;br /&gt;&lt;br /&gt;from http://linux.about.com/library/cmd/blcmdl1_perl5005delta.htm&lt;br /&gt;&lt;br /&gt;Reference found where even-sized list expected&lt;br /&gt;    You gave a single reference where Perl was expecting a list with an&lt;br /&gt;even number of elements (for assignment to a hash). This usually means&lt;br /&gt;that you used the anon hash constructor when you meant to use parens.&lt;br /&gt;In any case, a hash requires key/value pairs.&lt;br /&gt;&lt;br /&gt;  %hash = { one =&gt; 1, two =&gt; 2, };   # WRONG&lt;br /&gt;  %hash = [ qw/ an anon array / ];   # WRONG&lt;br /&gt;  %hash = ( one =&gt; 1, two =&gt; 2, );   # right&lt;br /&gt;  %hash = qw( one 1 two 2 );                 # also fine&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Curly brackets are used to construct anonymous hashes. Their result is&lt;br /&gt;a reference to that hash. So with %f = {} you're trying to assign a&lt;br /&gt;reference (one item) to a hash. However, hashes are initialized with&lt;br /&gt;lists which must have an even number of elements. Hence the warning.&lt;br /&gt;The proper way to initialize an empty hash is with an empty list, which&lt;br /&gt;is why %f = () works.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-109599846366801373?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/109599846366801373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=109599846366801373' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109599846366801373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109599846366801373'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2004/09/perl-error.html' title='perl error'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-109575060995372833</id><published>2004-09-21T01:09:00.000-07:00</published><updated>2004-09-21T00:10:09.953-07:00</updated><title type='text'>scanf</title><content type='html'>&lt;span class="wctext"&gt;&lt;span class="highlight"&gt;&lt;b&gt;From: http://webcourse.cs.technion.ac.il/234117/Spring2004/ar/faq_Homework.html&lt;br /&gt;&lt;br /&gt;&gt;&gt;I'm having a problem using scanf. After I enter the username, the following scanf reads the "enter" I clicked. What should I do?&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="wctext"&gt;Instead of writing scanf("%c") you can write scanf(" %c") (with a space before %c), and it should work better. The space before the "%c" will read all white spaces (newline, tab and space) and the first non-white space will be read into the "%c". Using the scanf this way will prevent the scanf from reading the "ente&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-109575060995372833?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/109575060995372833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=109575060995372833' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109575060995372833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109575060995372833'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2004/09/scanf.html' title='scanf'/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8386092.post-109558844200389459</id><published>2004-09-19T03:06:00.000-07:00</published><updated>2004-09-24T20:20:43.850-07:00</updated><title type='text'></title><content type='html'>find /tmp -type f -name "*.gz" -exec tar -xvzf '{}'  ';'&lt;br /&gt;find ./ -name "*.gz" -exec tar -xvzf {} \;&lt;br /&gt;&lt;br /&gt;#### to exclude files in directory results&lt;br /&gt;find .  -name results -prune -o  -type f -name "*.bc"&lt;br /&gt;&lt;br /&gt;ls -lai | grep -v imp_file | xargs rm -f&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8386092-109558844200389459?l=avizit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://avizit.blogspot.com/feeds/109558844200389459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8386092&amp;postID=109558844200389459' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109558844200389459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8386092/posts/default/109558844200389459'/><link rel='alternate' type='text/html' href='http://avizit.blogspot.com/2004/09/find-tmp-type-f-name.html' title=''/><author><name>Naradmuni</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
