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

<channel>
	<title>Ask Your Question &#187; Software</title>
	<atom:link href="http://askbahar.com/category/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://askbahar.com</link>
	<description>Lets Talk</description>
	<lastBuildDate>Fri, 30 Jul 2010 04:34:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>What is the difference between this &amp; this(), super &amp; super()</title>
		<link>http://askbahar.com/2010/07/30/difference-this-super/</link>
		<comments>http://askbahar.com/2010/07/30/difference-this-super/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 04:34:41 +0000</pubDate>
		<dc:creator>Habib Ullah Bahar</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Object Oriented Programming]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[object oriented programming]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[super]]></category>
		<category><![CDATA[this]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://askbahar.com/?p=73</guid>
		<description><![CDATA[Well the topic is a basic in OOP, when I first learned my first OO language (C++ back in 2004), I have learned the basic. Few days ago some one asked the question, suddenly I become confused, so I made a quick research, and decided to post this and super both are object. this() and]]></description>
			<content:encoded><![CDATA[<p>Well the topic is a basic in OOP, when I first learned my first OO language (C++ back in 2004), I have learned the basic. Few days ago some one asked the question, suddenly I become confused, so I made a quick research, and decided to post <img src='http://askbahar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>this </strong>and <strong>super </strong>both are object. <strong>this() </strong>and <strong>super() </strong>both are constructors.</p>
<p><strong>this </strong>is the object of current class.</p>
<p><strong>this() </strong>is the constructor of current class.</p>
<p><strong>super </strong>is the object of parent class.</p>
<p><strong>super()</strong> is the constructor of parent class.</p>
<p><strong>Example (</strong><em>in java) </em>please check out this nice example provided in <a title="Java Constructors" href="http://leepoint.net/notes-java/oop/constructors/constructor.html" target="_self">this link</a></p>
<p>I hope this will save someone&#8217;s day <img src='http://askbahar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://askbahar.com/2010/07/30/difference-this-super/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>World City locations database</title>
		<link>http://askbahar.com/2010/07/02/world-city-locations-database/</link>
		<comments>http://askbahar.com/2010/07/02/world-city-locations-database/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 05:39:06 +0000</pubDate>
		<dc:creator>Habib Ullah Bahar</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[world altitude]]></category>
		<category><![CDATA[world cities]]></category>
		<category><![CDATA[world countries]]></category>
		<category><![CDATA[world latitude]]></category>
		<category><![CDATA[world locations]]></category>
		<category><![CDATA[world longitude]]></category>

		<guid isPermaLink="false">http://askbahar.com/?p=61</guid>
		<description><![CDATA[For one of my projects, I need the geographical location (latitude, longitude, altitude) of all main cities of the world. It was a adobe air project to determine worldwide salat timetable automatically. I couldn&#8217;t find a complete list. Then I found this site, Aneki World Cities. Then I designed a scrapper using PHP, and scrapped]]></description>
			<content:encoded><![CDATA[<p>For one of my projects, I need the geographical location (latitude, longitude, altitude) of all main cities of the world. It was a <a title="Waqt Al Salat Desktop (beta version)" href="http://d.mobilewaqt.com/">adobe air project</a> to determine worldwide salat timetable automatically.</p>
<p>I couldn&#8217;t find a complete list. Then I found this site, <a title="World Cities" href="http://www.aneki.com/cities.html" target="_self"><em>Aneki World Cities.</em></a> Then I designed a scrapper using PHP, and scrapped all the countries first, then their respective cities list, then respective geographical location. Then end result was a table in the database with all countries, respective cities and locations <img src='http://askbahar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-61"></span></p>
<p>As I have only compiled the database, the information aren&#8217;t mine, so I have decided to make the table publicly available. You can download the zip file here: <a title="World Cities Locations" href="http://dl.dropbox.com/u/2495616/World_Cities_Location_table.zip" target="_self">World Cities Locations</a> <em>(The zip file contains 4 types of file for same content. SQL, CSV, CSV for MS EXCEL, MS EXCEL 2000. All of them are exported from MySQL using phpMyAdmin)</em></p>
<p>The sql file contains the schema to reproduce the <em><strong>location </strong></em>table in your designated database (assuming you are using mysql database engine. If you aren&#8217;t, you can easily convert the sql schema <img src='http://askbahar.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ).</p>
<p>The table has in 10,567 rows (means 10,567 unique cities, their locations and 170 countries).</p>
<p>The table has 5 fields, <strong><em>id, country, city, latitude, longitude, altitude</em></strong>. From their name, I hope you can understand their significance.</p>
<p>The table can be used in different ways:</p>
<ul>
<li>Getting all countries of the world (170 countries):<code class="syntax sql"> SELECT DISTINCT(country) FROM location</code></li>
<li>Getting all cities of a country:<code class="syntax sql"> SELECT city FROM location WHERE country = 'YOUR_COUNTRY_NAME_HERE'</code></li>
<li>Getting the location of a specific city of a specific country:<br />
<code class="syntax sql">SELECT latitude,longitude,altitude FROM location WHERE country='COUNTRY_NAME' AND city = 'CITY_NAME'</code></li>
</ul>
<p>I hope this small contribution to the open world helps all. You can use the content in location based applications, finding a city easily in map services etc.<em> </em></p>
<p><em> </em></p>
]]></content:encoded>
			<wfw:commentRss>http://askbahar.com/2010/07/02/world-city-locations-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to setup latex environment in Windows</title>
		<link>http://askbahar.com/2008/10/14/setup-latex-environment-in-windows/</link>
		<comments>http://askbahar.com/2008/10/14/setup-latex-environment-in-windows/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 15:52:39 +0000</pubDate>
		<dc:creator>Habib Ullah Bahar</dc:creator>
				<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[miktext]]></category>
		<category><![CDATA[thesis writing]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://askbahar.wordpress.com/?p=36</guid>
		<description><![CDATA[Must read notice: Geekish Post&#8230;.Only for geeks Do you need to write your first thesis paper or do you want your publication published in a famous journal? So LaTeX is for you. LaTeX is a document preparation system for high-quality typesetting based on Donald E. Knuth&#8217;s TeX typesetting language or certain extensions. It is most]]></description>
			<content:encoded><![CDATA[<p>Must read notice: Geekish Post&#8230;.Only for geeks <img src='http://askbahar.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Do you need to write your first thesis paper or do you want your publication published in a famous journal?</p>
<p>So <a title="LaTeX – A document preparation system " href="http://www.latex-project.org/" target="_blank">LaTeX</a> is for you. LaTeX is a document preparation system for high-quality typesetting based on Donald E. Knuth&#8217;s <em>TeX</em> typesetting language or      certain extensions. It is most often used for medium-to-large technical or scientific documents but it can be used for almost any form of publishing.</p>
<p>Well, definitely *NIX systems have built-in latex support, but in windows you need to set it up for yourself. As few monthes ago I have started writting my first thesis paper using latex and for some reason I have used windows system, I need to setup latex environment in windows. Definitely a annoying, time consuming task, So I have decided to share it <img src='http://askbahar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I am going to describe it step by step, please follow these steps as described, its important. I am assuming you have <a title="Windows XP" href="http://www.microsoft.com/windows/windows-xp/" target="_blank">Windows XP</a> or later versions and you have administrative privilege.</p>
<p><span id="more-36"></span></p>
<p>Step 1:: Setting Up Environment</p>
<blockquote>
<ul>
<li>Right-click on the &#8220;My computer&#8221;       icon and choose Properties. Select the &#8220;Advanced&#8221; tab.Then click on &#8220;Environment Variables&#8221;.</li>
<li>Create a &#8220;user variable&#8221; called &#8220;<strong>DICTDIR</strong>&#8221; with value &#8220;<strong>c:\usr\local\lib</strong>&#8220;. [ To create a new user variable, just hit "New" under "User variables for &lt;System User Name&gt; or to edit an existing one just hit Edit ]</li>
<li>Create a &#8220;user variable&#8221; called &#8220;<strong>HOME</strong>&#8221; with value &#8220;<strong>c:\</strong>&#8220;</li>
<li>Create a &#8220;System variable&#8221; under &#8220;System variables&#8221; called &#8220;<strong>Path</strong>&#8221; with the value <strong>c:\program files\emacs\bin;c:\program files\MiKTeX 2.7\miktex\bin;c:\program files\ghostgum\ghostview\gsview\;c:\usr\local\bin;c:\program files\ghostgum\gs\gs8.51\lib;c:\program files\ghostgum\gs\gs8.51\bin</strong> [<em>There is a huge possibility that this variable is already there. In that case, just append the value</em>]</li>
<li>A restart of your system may be required.</li>
<li>Run command prompt and type &#8220;<strong>set</strong>&#8221; to check if all these variables with their required values are set.</li>
</ul>
</blockquote>
<p>Step 2:: Required Software</p>
<blockquote>
<ul>
<li>Download latest version of <a href="http://www.gnu.org/software/emacs/" target="_blank"><strong>Emacs</strong></a>from <a title="Emacs for Windows download" href="http://http://ftp.gnu.org/pub/gnu/emacs/windows" target="_blank">here</a>. Direct link: <a href="http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-22.3-bin-i386.zip" target="_self">emacs-22.3-bin-i386.zip</a></li>
<li>Download latest version of <a href="http://www.miktex.org" target="_blank"><strong>MikTeX</strong></a>from <a title="MikTeX for Windows download" href="http://www.miktex.org/2.7/Setup.aspx" target="_blank">here</a>. Direct link: <a href="http://mirror.lums.edu.pk/ctan/systems/win32/miktex/setup/basic-miktex-2.7.3164.exe" target="_self">basic-miktex-2.7.3164.exe</a></li>
<li>Download latest version of <a href="http://pages.cs.wisc.edu/~ghost/" target="_blank">Ghostscript</a> from <a title="Ghostscript for Windows download" href="http://sourceforge.net/project/showfiles.php?group_id=1897&amp;package_id=108733&amp;release_id=617197" target="_blank">here</a>. Direct link: <a href="http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-22.3-bin-i386.zip" target="_self">gs863w32.exe</a></li>
<li>Download latest version of <a href="http://pages.cs.wisc.edu/~ghost/" target="_blank">GSview</a> from <a title="GSview for Windows download" href="http://pages.cs.wisc.edu/~ghost/gsview/get49.htm" target="_blank">here</a>. Direct link: <a href="http://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/gsv49w32.exe" target="_self">gsv49w32.exe</a></li>
<li>Download latest version of <a href="http://www.gnu.org/software/auctex/" target="_blank">AUCTeX</a> from <a title="AUCTeX for Windows download" href="http://www.gnu.org/software/auctex/download-for-windows.html" target="_blank">here</a>. Direct link: <a href="http://ftp.gnu.org/pub/gnu/auctex/auctex-11.85-e22.3-msw.zip" target="_self">auctex-11.85-e22.3-msw.zip</a></li>
<li>Download <strong>.emacs</strong> from <a title=".emacs - unzip it after download" href="http://www.box.net/shared/q11me3u57v" target="_blank">here</a></li>
</ul>
</blockquote>
<p>Step 3::Installation</p>
<blockquote>
<ul>
<li>Put the .emacs file [you will get it after unzipping emacs.zip file] in <strong>C:</strong> [or your predefined HOME]</li>
<li>As Local TexMF Tree, create a directory named &#8220;<strong>Local TeX Files</strong>&#8221; in <strong>C:</strong> [or your predefined HOME]</li>
<li>Unzip emacs-22.3-bin-i386.zip to <strong>c:\program files\ </strong>. Rename the       <strong>c:\program files\emacs-22.3</strong> directory to <strong>c:\program files\emac</strong>. Run the file <strong> c:\program files\emacs\bin\addpm.exe</strong>.</li>
<li>Unzip auctex-11.85-e22.3-msw.zip to <strong>c:\program files\emacs\site-lisp</strong>.  Rename <strong>c:\program files\emacs\site-lisp\auctex-11.85-e22</strong> to       <strong>c:\program files\emacs\site-lisp\auctex</strong>.</li>
<li>Run gs863w32.exe. Choose <strong>c:\program files\ghostgum\gs</strong> as installation directory. Accept everything else.</li>
<li>Run gsv49w32.exe. Choose <strong>c:\program files\ghostgum\ghostview</strong> as installation directory. Accept everything else.</li>
<li>Run basic-miktex-2.7.3164.exe. When prompted for &#8220;Path to installation folder&#8221;, choose <strong>c:\Program Files\MiKTeX 2.7</strong>. When prompted for &#8220;Create local TEXMF tree&#8221;, choose <strong>c:\Local TeX       Files</strong> as &#8220;Path to root folder&#8221;. Accept everything else.</li>
</ul>
</blockquote>
<p>Step 4:: Opening Emacs in Latex Mode</p>
<blockquote>
<ul>
<li>Type <strong>M-x latex-mode</strong>. As soon as you hit &#8220;<strong>Enter</strong>&#8221; after writing the command, you will notice &#8220;Command&#8221; and &#8220;LaTeX&#8221; menus.</li>
</ul>
</blockquote>
<p>Step 5:: Compiling Latex Files in Emacs</p>
<blockquote>
<ul>
<li>Press C-c C-c       &lt;Return&gt;  to run latex.</li>
<li>Press C-c C-l to view       results of the compilation</li>
<li>Press C-c C-c &lt;Return&gt;       to run latex again</li>
<li>Press C-c C-c &lt;Return&gt;       to run latex again, again</li>
<li>Press C-c C-c &lt;Return&gt;       to run View. It will take a while to create fonts etc. the first time.</li>
<li>Press C-c C-c FILE       &lt;Return&gt; &lt;Return&gt; to run dvips (Note that the command is FILE       and not Dvips as one might expect)</li>
<li>Press C-c C-c Print       &lt;Return&gt; &lt;Return&gt; to run GSview (Also somewhat       misleading name)</li>
<li>If you want to print the document, do it from GSview.</li>
</ul>
</blockquote>
<p>A million dollar secret, when you asked to do the following, use your brain <img src='http://askbahar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li>C-c C-c = Hold CTRL while pressing c twice</li>
<li>C-c C-l = Hold CTRL while pressing c, release c, While holding CTRL, press l (&#8220;ell&#8221;), release both</li>
<li>M-x = Hold ALT while pressing x</li>
<li></li>
</ul>
<p>And last but not the least, download <a href="http://askbahar.files.wordpress.com/2008/10/learntex.pdf">Basic Latex Commands</a>. This pdf file will help you to learn basic latex commands.</p>
<p>So start writting your thesis <img src='http://askbahar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://askbahar.com/2008/10/14/setup-latex-environment-in-windows/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Firefox 3.0 RC1 is out..grab it</title>
		<link>http://askbahar.com/2008/05/17/firefox-30rc1-is-out/</link>
		<comments>http://askbahar.com/2008/05/17/firefox-30rc1-is-out/#comments</comments>
		<pubDate>Sat, 17 May 2008 10:53:00 +0000</pubDate>
		<dc:creator>Habib Ullah Bahar</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://askbahar.wordpress.com/?p=30</guid>
		<description><![CDATA[Firefox 3.0 RC1 has been released yesterday [16 May, 2008]. It is different from Firefox 2.0 in many ways. More secured More personal Easier to use Improved performance Read the full list of features here. Download it from FTP or HTTP mirror, or directly from here.]]></description>
			<content:encoded><![CDATA[<p>Firefox 3.0 RC1 has been released yesterday [16 May, 2008]. It is different from Firefox 2.0 in many ways.</p>
<ul>
<li>More secured</li>
<li>More personal</li>
<li>Easier to use</li>
<li>Improved performance</li>
</ul>
<p>Read the full list of features <a title="Firefox 3.0 features" href="http://en-us.www.mozilla.com/en-US/firefox/3.0rc1/releasenotes/#whatsnew" target="_blank">here</a>. Download it from <a title="Firefox 3.0 RC1 FTP download" href="ftp://releases.mozilla.org/pub/mozilla.org/firefox/releases/" target="_blank">FTP</a> or <a title="Firefox 3.0 RC1 HTTP download" href="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/" target="_blank">HTTP</a> mirror, or directly from <a href="http://en-us.www.mozilla.com/en-US/firefox/all-rc.html" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://askbahar.com/2008/05/17/firefox-30rc1-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to print a massive list of files maintaining directory hierarchy</title>
		<link>http://askbahar.com/2008/05/09/print-a-massive-list-of-files/</link>
		<comments>http://askbahar.com/2008/05/09/print-a-massive-list-of-files/#comments</comments>
		<pubDate>Fri, 09 May 2008 06:42:37 +0000</pubDate>
		<dc:creator>Habib Ullah Bahar</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[directory print]]></category>
		<category><![CDATA[free stuffs]]></category>
		<category><![CDATA[utility]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://askbahar.wordpress.com/?p=16</guid>
		<description><![CDATA[Few days ago, in windows, I need to list all the file names in one of drive having about 1200+ songs. They were in different directory in the drive. You know, If I ware a fool, I would write all the files one after one in a text file. But I am smart as well]]></description>
			<content:encoded><![CDATA[<p>Few days ago, in windows, I need to list all the file names in one of drive having about 1200+ songs. They were in different directory in the drive. You know, If I ware a fool, I would write all the files one after one in a text file. But I am smart as well as you are. So I Google for a suitable tool and found out an amazing free tool.</p>
<p><span id="more-16"></span></p>
<p>It was <a title="Karen's Directory Printer" href="http://www.karenware.com/powertools/ptdirprn.asp" target="_blank"><strong>Directory Printer</strong></a>. This is what they have told about the tool on their site:</p>
<blockquote><p>No more fumbling with My Computer or Windows Explorer,  wishing you could print information about all your files.  Karen&#8217;s Directory Printer can print the name of every file  on a drive, along with the file&#8217;s size, date and time of last  modification, and attributes (Read-Only, Hidden, System and Archive)!  And now, the list of files can be sorted by name, size, date created,  date last modified, or date of last access.</p></blockquote>
<p>And I found out every bits are true. Using it was really easy and over all its FREE!</p>
<p>This is the screen shot of the main window of Karen&#8217;s Directory Print -</p>
<p><a href="http://askbahar.files.wordpress.com/2008/05/ptdirprn.gif"><img class="aligncenter size-medium wp-image-17" src="http://askbahar.files.wordpress.com/2008/05/ptdirprn.gif?w=300" alt="Directory Printer" width="300" height="232" /></a></p>
<p>You may visit their site to download the tool. The direct link to download is <a title="Download Directory Print" href="http://www.karenware.com/progs/ptdirprn-setup.exe" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://askbahar.com/2008/05/09/print-a-massive-list-of-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
