<?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</title>
	<atom:link href="http://askbahar.com/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>How to generate getter/setter in PHP easily</title>
		<link>http://askbahar.com/2010/07/14/generate-getter-setter-in-php-easily/</link>
		<comments>http://askbahar.com/2010/07/14/generate-getter-setter-in-php-easily/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 04:21:16 +0000</pubDate>
		<dc:creator>Habib Ullah Bahar</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[get-set]]></category>

		<guid isPermaLink="false">http://askbahar.com/?p=70</guid>
		<description><![CDATA[For one of my current project I need to write getter/setter functions for 20+ variables. You know, how annoying it is! Well, I can use magic quotes, but I don&#8217;t like it. More over getter setter will help you later to use the class when your IDE (in my case Netbeans) supports auto complete suggestion.]]></description>
			<content:encoded><![CDATA[<p>For one of my current project I need to write getter/setter functions for 20+ variables. You know, how annoying it is! Well, I can use magic quotes, but I don&#8217;t like it. More over getter setter will help you later to use the class when your IDE (in my case <a title="Netbeans IDE" href="http://netbeans.org" target="_self">Netbeans</a>) supports <em>auto complete suggestion</em>. Though all Java development environments allow to generate getter and  setter code automatically.<br />
Then I started coding a php script for generating getter/setter for supplied variables, but I was lucky as suddenly I thought &#8220;why don&#8217;t I look for something like this online&#8221; <img src='http://askbahar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And here is the link I got, its quite good. <a title="PHP Getter Setter Generator" href="http://www.icurtain.co.uk/getset.php" target="_blank">http://www.icurtain.co.uk/getset.php</a>, It saved my time.</p>
]]></content:encoded>
			<wfw:commentRss>http://askbahar.com/2010/07/14/generate-getter-setter-in-php-easily/feed/</wfw:commentRss>
		<slash:comments>0</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 enable Apache HTTP Authentication using PHP</title>
		<link>http://askbahar.com/2009/11/11/enable-apache-http-authentication-using-php/</link>
		<comments>http://askbahar.com/2009/11/11/enable-apache-http-authentication-using-php/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 09:24:39 +0000</pubDate>
		<dc:creator>Habib Ullah Bahar</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Authentication]]></category>

		<guid isPermaLink="false">http://askbahar.com/?p=48</guid>
		<description><![CDATA[The easiest way to password-protect a site is to use HTTP Authentication, where if a browser’s request for a protected page is not accompanied by the correct username and password, the Web server replies with an HTTP 401 error – which means “Unauthorized Access” – and an invitation for the browser to re-submit the request]]></description>
			<content:encoded><![CDATA[<p>The easiest way to password-protect a site is to use HTTP Authentication, where if a browser’s request for a protected page is not accompanied by the correct username and password, the Web server replies with an HTTP 401 error – which means “Unauthorized Access” – and an invitation for the browser to re-submit the request with a proper username and password. From the user’s point of view, most of this dialogue is hidden. Following that first failed request, the browser prompts the user (in a dialog box) for a username and password, and then re-submits the request, this time with the authentication information attached. Assuming the username/password combo is on the list of allowed users, the Web server then sends the page requested. The Web browser will likewise continue to send that username/password with all subsequent requests.</p>
<p>Look at the following code:<br />
<span id="more-48"></span></p>
<pre>
<code>
<?php
/*
    Document   : auth
    Created on : Nov 11, 2009, 9:08:32 AM
    @author    : Bahar
    Email      : bahar@progmaatic.com
    Copyright  : http://progmaatic.com

    Description: Authenticate user
*/

require_once 'settings.php';

$failure_msg = " <HTML>
 <HEAD><TITLE>Authorization Failed</TITLE></HEAD>
 <BODY>
 <H1>Authorization Failed</H1>
 <P>Without a valid username and password,
    access to this page cannot be granted.
    Please click 'reload' and enter a
    username and password when prompted.
 </P>
 </BODY>
 </HTML>";

if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER']!==$site_user || $_SERVER['PHP_AUTH_PW']!==$site_pass)
   {
       header("WWW-Authenticate: Basic realm=\"Protected Page: Enter your username and password for access.\"");
       header("HTTP/1.0 401 Unauthorized");
       exit($failure_msg);
   }

?>
</code>
</pre>
<p>For each page, you want to authenticate user, each page must have the above code. You can save this code to a script (for example <em>auth.php</em>) and include <em>auth.php</em> to any page, hence save yourself from rewriting the code for each page.</p>
]]></content:encoded>
			<wfw:commentRss>http://askbahar.com/2009/11/11/enable-apache-http-authentication-using-php/feed/</wfw:commentRss>
		<slash:comments>4</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>How to overcome download time limit</title>
		<link>http://askbahar.com/2008/05/25/how-to-overcome-download-time-limit/</link>
		<comments>http://askbahar.com/2008/05/25/how-to-overcome-download-time-limit/#comments</comments>
		<pubDate>Sun, 25 May 2008 02:03:29 +0000</pubDate>
		<dc:creator>Habib Ullah Bahar</dc:creator>
				<category><![CDATA[Download Manager]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[download limit]]></category>
		<category><![CDATA[download time limit]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://askbahar.wordpress.com/?p=34</guid>
		<description><![CDATA[Some file storage sites give you a download link which use to expire after a definite time , like 1 hour or 24 hour. MiHD.net is one like them. They allow you to download files hosted on their server without any limitations, but the download link will be functional for 6 hours or other certain]]></description>
			<content:encoded><![CDATA[<p>Some file storage sites give you a download link which use to expire after a definite time , like 1 hour or 24 hour. <a title="MiHD.net" href="http://mihd.net/" target="_blank">MiHD.net</a> is one like them. They allow you to download files hosted on their server without any limitations, but the download link will be functional for 6 hours or other certain time. Not only these file hosting servers, often many sites from where you can download movie or songs, impose this kind of time limitation to balancing load.</p>
<p>But surely you can overcome this limitation.</p>
<p><span id="more-34"></span></p>
<p>When you download something from internet you get two links, one for the content you are going to download which we will call &#8216;URL&#8217; or &#8216;download link&#8217; and the other one is the &#8216;referrer link&#8217; which is often the origin of requesting the file. Now for a definite page on a definite site, the referrer link is always same, but the download link changes based the download method the site uses.</p>
<p>To overcome the download limit, you have to use any download manager. A good choice would be <a title="Free Download Manager" href="http://www.freedownloadmanager.org" target="_blank">Free Download Manage</a>r or <a title="Flashget - English" href="http://www.flashget.com/index_en.htm" target="_blank">Flashget</a>. Both of them are free, easy to use and full of features.</p>
<p>First browse to the page from where you wish to download a file which is imposed a download time limitation. start downloading the file as you do in all cases. Now when the time is about exceed its limit, then browse the page once again. Save the URL of the page, it is your referrer link. Now click on the file link or start download icon or what ever you get in your case. When the download start, save the download link. <em>If you have installed Free download manager or Flashget and their integration is enabled in your browser, a ADD URL dialoag box will open. from thet box just save the URL or download link.</em></p>
<p>Now back to the old download link again. If you are downloading the file, pause it. open the download item&#8217;s properties, you will get a dialogue box. Replace both the later saved URL and download link with the existing one. Click OK and resume download again.</p>
<p>I am using this trick successfully with flashget and free download manager. But I think, this method will work for all download managers and those sites allow downloading using download manager.</p>
<blockquote><p>The reason behind the success of this trick is nothing but download managers normally work in append mode. When they download something, they search for a pre-existing complete / incomplete file. If the previous [assuming the file already exists and incomplete] and current file&#8217;s referrer links are the same, they assume them as same file and instead of opening a new file, they just start downloading from the last of the previous file and append the download content to the previous file.</p></blockquote>
<p>Thanks to Rakib, my extra-ordinary genious classmate, who first brought this issue to my mind.</p>
]]></content:encoded>
			<wfw:commentRss>http://askbahar.com/2008/05/25/how-to-overcome-download-time-limit/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>8 easy steps to play with Google efficiently</title>
		<link>http://askbahar.com/2008/05/24/8-easy-steps-to-play-with-google-efficiently/</link>
		<comments>http://askbahar.com/2008/05/24/8-easy-steps-to-play-with-google-efficiently/#comments</comments>
		<pubDate>Sat, 24 May 2008 15:52:25 +0000</pubDate>
		<dc:creator>Habib Ullah Bahar</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[effective search]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[search techniques]]></category>

		<guid isPermaLink="false">http://askbahar.wordpress.com/?p=32</guid>
		<description><![CDATA[When you don&#8217;t find anything or don&#8217;t know where to find, the only probable answer you may get &#8220;Google it!&#8221;. But finding your desired result is really a hard job unless you search for the keyword &#8220;Google&#8221;, &#8220;Microsoft&#8221;, &#8220;Facebook&#8221; or something like that!. But surely you are not going to search them. You may want]]></description>
			<content:encoded><![CDATA[<p>When you don&#8217;t find anything or don&#8217;t know where to find, the only probable answer you may get &#8220;<a title="Google" href="http://www.google.com" target="_blank">Google</a> it!&#8221;. But finding your desired result is really a hard job unless you search for the keyword &#8220;Google&#8221;, &#8220;Microsoft&#8221;, &#8220;Facebook&#8221; or something like that!. But surely you are not going to search them. You may want to find where your favorite song or movie or e-book can be downloaded or a specific note about a specific person.</p>
<p>To make easier the job, you may wish to follow the following steps..<br />
<span id="more-32"></span></p>
<p><strong>Step 1:: AND:</strong> With AND google tries to find all the words listed. By default google uses AND. So searching with</p>
<pre style="border:1px inset;overflow:auto;width:440px;height:55px;text-align:left;margin:0;padding:6px;">ask bahar your question<em>    </em>
or<em>
</em>ask AND bahar AND your AND question</pre>
<p>will yield the same result.</p>
<p><strong>Step 2::OR:</strong> With OR google will search for either of the terms/keywords. you may use &#8216;<strong>|</strong>&#8216;<strong> </strong>sign as OR instead of using the word &#8220;OR&#8221;. So if you search</p>
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">blogspot | wordpress</pre>
<p>you will get results on both blogspot and wordpress in the first page. If you are sure you want to include one term but also want to include a choice of other terms, you can group your search. For example, searching</p>
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">Dhaka city (college | corporation)</pre>
<p>will yield better result than searching the following.</p>
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">Dhaka city | college | corporation</pre>
<p><strong>Step3::Minus: </strong>The minus will exclude terms from your search. For example, if you want to search the free download able music sites, try</p>
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">download music -paid</pre>
<p>which will show you only the free sites.</p>
<p><strong>Step 4::</strong><strong>&#8221; &#8221; (Quotation Marks): </strong> if you want to search for an exact phrase [may be the title of a song] such as</p>
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">"What Silence Said"</pre>
<p>would show you the result about famous song of <a title="Biography of Susheela Raman" href="http://www.susheelaraman.com" target="_blank">Susheela Raman</a>.</p>
<p><strong>Step 5::</strong><strong>* Wildcard Search: </strong>You can use the * wildcard to replace any specific words you might have forgotten. For example assume that you were searching for one of Napoleon Bonaparte&#8217;s famous quotes &#8220;Never interrupt your enemy when he is making a mistake.&#8221; What if you couldn&#8217;t remember all the words? Just search for</p>
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">Never <strong>*</strong> your enemy when he is <strong>*</strong> a mistake</pre>
<p>So without remembering anything, you can find everything!</p>
<p><strong>Step 6::Search Free MP3:</strong> People leave music files in unprotected directories all of the time. Here&#8217;s how to get to them. If you properly query google, you can find open indexes of music files easily. Here are some hints to get you started.</p>
<div style="margin:5px 20px 20px;">
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">-inurl:htm -inurl:html intitle:"index of" "Last modified" mp3</pre>
</div>
<p>Using this string we are using the &#8220;index of&#8221; and the inurl commands to attempt to isolate directories only. The mp3 tag on the end tells google to look for mp3s in these open directories. You can change this to wma or ogg if you wish.<br />
You can add additional search criteria to focus your search more.</p>
<div style="margin:5px 20px 20px;">
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">-inurl:htm -inurl:html intitle:"index of" mp3 "System of Down"</pre>
</div>
<p>This command will find open directories with mp3 files with System of Down. Obviously you can change the band name or file type to better define your search.</p>
<p>People upload songs to their private space, FTP space. You can have them by</p>
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">What Silence Said public ftp</pre>
<p>You can use other song title or singer name instead of What Silence Said</p>
<p><strong>Step 7::Search Free Movies</strong>: Find those hidden directories just full of video files. This will search for avi, mpg, and wmv files. We&#8217;ll use the same trick to find open directories. This should find open directories full of video files.</p>
<div style="margin:5px 20px 20px;">
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">-inurl:htm -inurl:html -inurl:asp intitle:"index of"
+(wmv|mpg|avi)</pre>
</div>
<p>Just add additional search terms on the end if you want to focus your search. Say you wanted to find some Broune trilogy clips:</p>
<div style="margin:5px 20px 20px;">
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">-inurl:htm -inurl:html -inurl:asp intitle:"index of"
+(wmv|mpg|avi) +bourne</pre>
</div>
<p>If you want to focus your search further you can even add more and more search terms to limit it to directories:</p>
<div style="margin:5px 20px 20px;">
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">-inurl:htm -inurl:html -inurl:asp intitle:"index of" +
(wmv|mpg|avi) +"parent directory"</pre>
</div>
<p><strong>Step8:: Search Free Ebooks:</strong> Google will easily show you all those ebooks that are hanging out there for free! Want some ebooks? Try this:</p>
<div style="margin:5px 20px 20px;">
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">-inurl:htm -inurl:html intitle:"index of"
+("/ebooks"|"/book") +(chm|pdf|zip)</pre>
</div>
<p>Here were are telling google to look for book or ebook directories&#8230; and we have listed several common ebook formats (zip, pdf, chf).<br />
If you would like to look for a particular author or title just tack it to the end of your search.</p>
<div style="margin:5px 20px 20px;">
<pre style="border:1px inset;overflow:auto;width:440px;height:34px;text-align:left;margin:0;padding:6px;">-inurl:htm -inurl:html intitle:"index of" +
("/ebooks"|"/book") +(chm|pdf|zip) +"o'reilly"</pre>
</div>
<p>This uses the same idea but attempts to focus on directories that contain O&#8217;Reilly stuff, which may give you some potential results.</p>
<blockquote><p><em>Special Note: What does all of this mean? The -inurl htm and -inul html is attempting to get rid of regular webpages and show just index pages. Looking for index of in the title is doing the same. Using the pipe ( | ) tells google to look for something OR something else. </em></p></blockquote>
<p>So I hope, using these easy steps you can easily find your content on Google. Surely there are other effective ways. Please Comment them out using the comment form. I will update this post taking the relevant and effective comments to make the post more effective.</p>
]]></content:encoded>
			<wfw:commentRss>http://askbahar.com/2008/05/24/8-easy-steps-to-play-with-google-efficiently/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is &#039;www&#039; necessary?</title>
		<link>http://askbahar.com/2008/05/18/is-www-necessary/</link>
		<comments>http://askbahar.com/2008/05/18/is-www-necessary/#comments</comments>
		<pubDate>Sun, 18 May 2008 02:49:52 +0000</pubDate>
		<dc:creator>Habib Ullah Bahar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[apache redirection]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[no-www]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://askbahar.wordpress.com/?p=31</guid>
		<description><![CDATA[Have you checked this? write www.google.com and google.com in your browser&#8217;s address bar, then hit Enter. Both will work. same as true for Yahoo!, WordPress.com and other leading sites. Again there are some sites which won&#8217;t work without &#8216;www&#8216;, like www.buet.ac.bd will work but buet.ac.bd won&#8217;t work. So what&#8217;s the reason behind this? WWW [short]]></description>
			<content:encoded><![CDATA[<p>Have you checked this? write<strong><em> <a href="http://www.oogle.com" target="_blank">www.google.com</a></em></strong><em> </em>and <a href="http://google.com" target="_blank"><em><strong>google.com</strong></em> </a> in your browser&#8217;s address bar, then hit Enter. Both will work. same as true for <a href="http://www.yahoo.com" target="_blank">Yahoo!</a>, <a href="http://wordpress.com" target="_blank">WordPress.com</a> and other leading sites. Again there are some sites which won&#8217;t work without &#8216;<a title="World Wide Web" href="http://en.wikipedia.org/wiki/World_Wide_Web" target="_blank"><strong>www</strong></a>&#8216;, like <a href="http://www.buet.ac.bd" target="_blank">www.buet.ac.bd</a> will work but <a title="This will not work" href="http://buet.ac.bd" target="_blank">buet.ac.bd</a> won&#8217;t work.</p>
<p>So what&#8217;s the reason behind this?</p>
<p><span id="more-31"></span></p>
<p>WWW [short form of <a href="http://dictionary.reference.com/search?q=world%20wide%20web" target="_blank">World Wide Web</a>] is not really a useful thing on internet. It work like a subdomain, where all your documents, HTML and other files reside which will be publicly viewable. This is what <a href="http://en.wikipedia.org/wiki/World_Wide_Web#WWW_prefix_in_Web_addresses" target="_blank">Wikipedia says</a> about it..</p>
<blockquote><p>The letters &#8220;www&#8221; are commonly found at the beginning of <a class="mw-redirect" title="Web address" href="http://en.wikipedia.org/wiki/Web_address">Web addresses</a> because of the long-standing practice of naming Internet hosts (servers) according to the services they provide. So for example, the host name for a <a title="Web server" href="http://en.wikipedia.org/wiki/Web_server">Web server</a> is often &#8220;www&#8221;; for an <a class="mw-redirect" title="FTP server" href="http://en.wikipedia.org/wiki/FTP_server">FTP server</a>, &#8220;ftp&#8221;; and for a <a class="mw-redirect" title="USENET" href="http://en.wikipedia.org/wiki/USENET">USENET</a> <a title="News server" href="http://en.wikipedia.org/wiki/News_server">news server</a>, &#8220;news&#8221; or &#8220;nntp&#8221; (after the news protocol <a class="mw-redirect" title="NNTP" href="http://en.wikipedia.org/wiki/NNTP">NNTP</a>). These host names appear as <a class="mw-redirect" title="Domain name system" href="http://en.wikipedia.org/wiki/Domain_name_system">DNS</a> <a title="Subdomain" href="http://en.wikipedia.org/wiki/Subdomain">subdomain</a> names, as in &#8220;www.example.com&#8221;.</p></blockquote>
<p>As a matter of fact, use of the www subdomain is redundant and time consuming to communicate.  The internet,    media, and society are all better off without it.</p>
<p>So the current web administrators are practicing the no www thing. But as people are used to use the www, so they keep the both settings in their server. Some of the admins redirect all the traffic to <em>www.example-domain.com</em> like Google do when some of them redirect every thing to <em>example-domain.com</em>. I will go with the later one, it should be the standard. Even Google crawlers like the no-www address.</p>
<p>So if you want to make your default address <em>example-domain.com</em> and want to redirect <em>www.example-domain.com</em> to <em>example-domain.com</em>, so that you can catch everyone&#8217;s traffic when they hit on your site, just open <a title="Apache htaccess tutorial" href="http://httpd.apache.org/docs/2.2/howto/htaccess.html" target="_self">.htaccess</a> file in your root directory [assuming you are using apache httpd] and write following lines.</p>
<blockquote><p><span>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} ^www\.<span class="red">domain\.com</span>$ [NC]<br />
RewriteRule ^(.*)$ http://<span class="red">domain.com</span>/$1 [R=301,L] </span></p></blockquote>
<p>There is an organisation named <a title="No-www.org" href="http://no-www.org" target="_blank"><strong>No-www.org</strong></a> working on making internet www free <img src='http://askbahar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Check them.</p>
<p>To validate your domain if it supports no-www, please use this link : <a href="http://no-www.org/verify.php" target="_blank">http://no-www.org/verify.php</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://askbahar.com/2008/05/18/is-www-necessary/feed/</wfw:commentRss>
		<slash:comments>2</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 verify an ISO image in linux before burning</title>
		<link>http://askbahar.com/2008/05/17/verify-iso-image-in-linux-before-burning/</link>
		<comments>http://askbahar.com/2008/05/17/verify-iso-image-in-linux-before-burning/#comments</comments>
		<pubDate>Sat, 17 May 2008 10:24:19 +0000</pubDate>
		<dc:creator>Habib Ullah Bahar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[vmware player]]></category>

		<guid isPermaLink="false">http://askbahar.wordpress.com/?p=29</guid>
		<description><![CDATA[There is no nice or 100% effective fast way to verify an ISO image of any OS [normally *INX based OS] without installing. But there are several ways one can test the ISO image. If the test(s) are successful, there is a high (to me which is almost 100% ) probability, that the ISO is]]></description>
			<content:encoded><![CDATA[<p>There is no nice or 100% effective fast way to verify an <a title="ISO image in Wikipedia" href="http://en.wikipedia.org/wiki/Iso_image" target="_blank">ISO image</a> of any OS [normally *INX based OS] without installing. But there are several ways one can test the ISO image. If the test(s) are successful, there is a high (to me which is almost 100% <img src='http://askbahar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) probability, that the ISO is perfect to be burned in a CD or DVD which one is desirable.</p>
<p><span id="more-29"></span></p>
<ul>
<li>After downlaoding an ISO from any source, you must validate the SH1SUM or MD5SUM which one is required in your case to verify the security and integrity of your ISO.</li>
<li>You can manually mount the ISO image to check its content when you are in Linux using the code
<pre>su -c 'mount -o loop -t iso9660 &lt;isofilename&gt; &lt;mountpoint&gt;</pre>
</li>
<li>You can use <a href="https://www.vmware.com/products/player/" target="_blank">VMware Player</a> to boot your ISO image, even you can install it as a virtual OS in Linux. With this free software, you can not only verify the image but you can also test the installation without changing your current installation of Linux. Download it from <a title="Download VMware Player" href="https://www.vmware.com/download/player/" target="_blank">here</a>.</li>
</ul>
<p>Some useful links about the topic:</p>
<ul>
<li><a href="http://fedoraproject.org/en/verify" target="_self">http://fedoraproject.org/en/verify</a></li>
<li><a href="http://www.ubuntugeek.com/how-to-install-ubuntu-linux-from-usb-stick.html" target="_self">http://www.ubuntugeek.com/how-to-install-ubuntu-linux-from-usb-stick.html</a></li>
<li><a href="http://en.opensuse.org/Download_Help" target="_self">http://en.opensuse.org/Download_Help</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://askbahar.com/2008/05/17/verify-iso-image-in-linux-before-burning/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
