<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Zubair</title>
	
	<link>http://zubair.info</link>
	<description>Web and Desktop Development</description>
	<lastBuildDate>Thu, 22 Oct 2009 15:35:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Zubair" /><feedburner:info uri="zubair" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Wateen Connector v2 – For Wateen Telecom Consumers</title>
		<link>http://feedproxy.google.com/~r/Zubair/~3/HeSf3VMw4bk/wateen-connector-v2-for-wateen-telecom-consumers.html</link>
		<comments>http://zubair.info/2009/08/04/wateen-connector-v2-for-wateen-telecom-consumers.html#comments</comments>
		<pubDate>Tue, 04 Aug 2009 10:45:54 +0000</pubDate>
		<dc:creator>Zubair</dc:creator>
				<category><![CDATA[Pakistan]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[free softwares]]></category>
		<category><![CDATA[internet service provider]]></category>
		<category><![CDATA[isp]]></category>
		<category><![CDATA[softwares]]></category>
		<category><![CDATA[telecom]]></category>
		<category><![CDATA[VB.net]]></category>
		<category><![CDATA[warid]]></category>
		<category><![CDATA[Wateen]]></category>
		<category><![CDATA[Wimax]]></category>

		<guid isPermaLink="false">http://zubair.info/?p=25</guid>
		<description><![CDATA[Wateen Connector lets you log into your Wateen Services as you usually do. The extra features that you get is that Wateen Connector allows you to Monitor your internet connection and if it goes down it will let you know about it, And will ask if you like to keep monitoring it. If you set monitoring on you will be notified as soon as you disconnect or get connected - Wateen Connector also has a Auto-Login feature that logs you into your Wateen Account easily and effortlessly!.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fzubair.info%2F2009%2F08%2F04%2Fwateen-connector-v2-for-wateen-telecom-consumers.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fzubair.info%2F2009%2F08%2F04%2Fwateen-connector-v2-for-wateen-telecom-consumers.html&amp;source=zubair11&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p style="text-align: left;"><a href="http://www.cyberpk.net/wateen-connector/"><img class="alignnone" title="Wateen Connector for Pakistans Wateen Telecom Consumers" src="http://img233.imageshack.us/img233/4050/snyql0.gif" alt="" width="155" height="44" /></a></p>
<p style="text-align: left;"><strong>Wateen Connector</strong> is one of my projects that got me interested in Visual Studio .NET &#8211; some of the team members of CyberPK helped and contributed to this small utility.</p>
<p>I actually made this on a request from a CyberPK’s Loyal and Regular user, i didn’t thought that other users would be experiencing the same problem like him, Until i recently fell into it myself.</p>
<p>It sure is annoying, having to keep logging in to your Wateen WiMAX account – so Wateen Connector was created. Wateen Connector is Exclusively made for Wateen WiMAX users.</p>
<h3><span><strong>About Pakistan&#8217;s Wateen Telcom</strong></span></h3>
<h3><span> </span></h3>
<p style="text-align: left;"><span> <a rel="nofollow" href="http://www.wateen.com/" target="_blank">Wateen Telecom</a> is 					a Internet Service Provider in Pakistan, its a new venture of Warid Telcom &#8211; <strong>Wateen Telecom</strong> established one of the largest country-wide WiMAX Network in the world. </span></p>
<p style="text-align: left;"><a href="http://www.cyberpk.net/wateen-connector/"><img class="aligncenter" title="Wateen Connector for Wateen Telecom Users" src="http://img401.imageshack.us/img401/7084/wateenconnectorsnap1.png" alt="" width="351" height="288" /></a></p>
<p style="text-align: left;"><strong>Wateen Connector</strong> lets you log into your Wateen Services as you usually do. The extra 					features that you get is that Wateen Connector allows you to Monitor your internet connection 					and if it goes down it will let you know about it, And will ask if you like to keep 					monitoring it. If you set monitoring on you will be notified as soon as you disconnect 					or get connected &#8211; Wateen Connector also has a Auto-Login feature that logs you into your 					Wateen Account easily and effort-lessly!.</p>
<p style="text-align: left;">Wateen Connector now lets you chat with other Wateen users using 					the <span style="position: static; text-decoration: underline;">chat services</span> implemented on our website. One of the useful features 					that we added was the ability to view your bandwidth usage from the application.</p>
<p style="text-align: left;">For complete detail and information visit <a title="Wateen Connector" href="http://www.cyberpk.net/wateen-connector/" target="_blank">Wateen Connector&#8217;s Homepage</a>.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fzubair.info%2F2009%2F08%2F04%2Fwateen-connector-v2-for-wateen-telecom-consumers.html&amp;linkname=Wateen%20Connector%20v2%20%26%238211%3B%20For%20Wateen%20Telecom%20Consumers"><img src="http://zubair.info/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/Zubair/~4/HeSf3VMw4bk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://zubair.info/2009/08/04/wateen-connector-v2-for-wateen-telecom-consumers.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://zubair.info/2009/08/04/wateen-connector-v2-for-wateen-telecom-consumers.html</feedburner:origLink></item>
		<item>
		<title>Upload Class For PHP</title>
		<link>http://feedproxy.google.com/~r/Zubair/~3/XNaS_VYB63E/upload-class-for-php.html</link>
		<comments>http://zubair.info/2009/02/05/upload-class-for-php.html#comments</comments>
		<pubDate>Thu, 05 Feb 2009 18:41:00 +0000</pubDate>
		<dc:creator>Zubair</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[file upload]]></category>
		<category><![CDATA[php class]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[upload script]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://zubair.info/?p=21</guid>
		<description><![CDATA[
			
				
			
		
class.upload.php &#8211; Free PHP Upload Class
This PHP script uploads files and manipulates images very easily. The perfect script to generate thumbnails or create a photo gallery! It can convert, resize and work on uploaded images in many ways, add labels, watermarks and reflections and other image editing features. You can use it for files uploaded [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fzubair.info%2F2009%2F02%2F05%2Fupload-class-for-php.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fzubair.info%2F2009%2F02%2F05%2Fupload-class-for-php.html&amp;source=zubair11&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<h2>class.upload.php &#8211; Free PHP Upload Class</h2>
<p>This PHP script uploads files and manipulates images very easily. The perfect script to generate thumbnails or create a photo gallery! It can convert, resize and work on uploaded images in many ways, add labels, watermarks and reflections and other image editing features. You can use it for files uploaded through an HTML form, a Flash uploader, or on local files. It uses the <strong>GD library</strong>.</p>
<p>This script is released under the <a href="http://opensource.org/licenses/gpl-license.php" target="_blank">GPL Version 2</a>. If your project is not GPL, <a href="http://www.verot.net/php_class_upload_license.htm" target="_blank">commercial licenses</a> are available.</p>
<p><strong>Look at the example below:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$foo</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Upload<span style="color: #009900;">&#40;</span><span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'form_field'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>uploaded<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #666666; font-style: italic;">// save uploaded image with no changes</span>
  <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>Process<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/home/user/files/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>processed<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'original image copied'</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'error : '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>error<span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #666666; font-style: italic;">// save uploaded image with a new name</span>
  <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>file_new_name_body <span style="color: #339933;">=</span> <span style="color: #0000ff;">'foo'</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>Process<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/home/user/files/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>processed<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'image renamed &quot;foo&quot; copied'</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'error : '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>error<span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #666666; font-style: italic;">// save uploaded image with a new name,</span>
  <span style="color: #666666; font-style: italic;">// resized to 100px wide</span>
  <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>file_new_name_body <span style="color: #339933;">=</span> <span style="color: #0000ff;">'image_resized'</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>image_resize <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>image_convert <span style="color: #339933;">=</span> gif<span style="color: #339933;">;</span>
  <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>image_x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>image_ratio_y <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>Process<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/home/user/files/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>processed<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'image renamed, resized x=100
          and converted to GIF'</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>Clean<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'error : '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$foo</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>error<span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><span id="more-21"></span></p>
<h3>What does it actually do in this example?</h3>
<p>This example uses a file uploaded via a form. With this single file, it will :</p>
<ul>
<li>copy the file without any modification</li>
<li>copy the file after having changed its name to &#8216;foo&#8217;</li>
<li>copy the file, resizing it to x=100, y=auto, converting it to GIF</li>
</ul>
<h3>Why use this class?</h3>
<ul>
<li>with one uploaded file, you can do as many copies, convertions, resizing you want.</li>
<li>you can resize each image dimension, or both, keeping the image ratio or not.</li>
<li>you can choose to resize an image only if it is bigger -or smaller- than the wanted sizes</li>
<li>you can manipulate the image in many ways, play with colors, add borders, labels and watermarks&#8230;</li>
<li>its use is simplistic but powerful</li>
<li>you can work on uploaded files or local files, useful for batch processing</li>
<li>Flash uploaders are fully supported</li>
<li>MIME type detection is very comprehensive</li>
<li>more than 60 documented configuration settings</li>
<li>a lot of variables are set up during the process. You can retrieve all these values after a process.</li>
<li>error messages are understandable, and a variable log allows you to see what the class does.</li>
<li>it is already widely used on Internet</li>
<li>it is free <img src='http://zubair.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p>If you like this script and are looking for some thing just like this than grab this script by going on to its website at : <strong><a title="PHP Upload Script" href="http://www.verot.net/php_class_upload.htm" target="_blank">Class.upload.php Website</a></strong></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fzubair.info%2F2009%2F02%2F05%2Fupload-class-for-php.html&amp;linkname=Upload%20Class%20For%20PHP"><img src="http://zubair.info/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/Zubair/~4/XNaS_VYB63E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://zubair.info/2009/02/05/upload-class-for-php.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://zubair.info/2009/02/05/upload-class-for-php.html</feedburner:origLink></item>
		<item>
		<title>VB.net – How to check if you are connected to internet using VB 2005</title>
		<link>http://feedproxy.google.com/~r/Zubair/~3/BuhdDRauCEE/vbnet-how-to-check-if-you-are-connected-to-internet-using-vb-2005.html</link>
		<comments>http://zubair.info/2008/10/29/vbnet-how-to-check-if-you-are-connected-to-internet-using-vb-2005.html#comments</comments>
		<pubDate>Wed, 29 Oct 2008 00:38:06 +0000</pubDate>
		<dc:creator>Zubair</dc:creator>
				<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[codes]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[vb]]></category>
		<category><![CDATA[VB.net]]></category>

		<guid isPermaLink="false">http://zubair.info/?p=18</guid>
		<description><![CDATA[
			
				
			
		
Determining if you or your application is connected to the internet may sound like an easy task &#8211; But it really wasn&#8217;t as easy as it sounds for me when i was trying to figure a way out to find a way to know if my computer is connected to the internet using VB.net / Visual [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fzubair.info%2F2008%2F10%2F29%2Fvbnet-how-to-check-if-you-are-connected-to-internet-using-vb-2005.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fzubair.info%2F2008%2F10%2F29%2Fvbnet-how-to-check-if-you-are-connected-to-internet-using-vb-2005.html&amp;source=zubair11&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Determining if you or your application is connected to the internet may sound like an easy task &#8211; But it really wasn&#8217;t as easy as it sounds for me when i was trying to figure a way out to find a way to know if my computer is connected to the internet using VB.net / Visual Basic 2005.</p>
<p>I have done quite a search on this…</p>
<p>In my search results, I have only seen people praising to use the <strong>wininet.dll</strong> API, I do not know why people even bothered to post useless code like that, it really does not work!</p>
<p><span id="more-18"></span></p>
<p>However, I think I may be wrong &#8211; people with different types of internet connection might see different results, so it is completely up to you &#8211; If you have not tried that out already you should do so now.</p>
<p>You never know, maybe it might help in your situation – but from what I have been hearing that the <strong>wininet.dll</strong> API is not that reliable.</p>
<p><strong>The two working solutions I found so far:</strong><br />
The <strong>first method</strong> is to ping a host (which is the most common):</p>

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;">    <span style="color: #0600FF;">Function</span> IsConnected<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Boolean</span>
        <span style="color: #FF8000;">Return</span> My.<span style="color: #0000FF;">Computer</span>.<span style="color: #0000FF;">Network</span>.<span style="color: #0000FF;">Ping</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;72.14.207.99&quot;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Function</span></pre></div></div>

<p>I recommend using IP Address (127.0.0.1) instead of a hostname (like <a href="http://www.google.com">www.google.com</a>).</p>
<p>When you do use this method you have to be sure that the IP/Host you ping is active and online all the time – for instance (www.google.com) or (<a title="Offical Website for Microsoft" href="http://www.microsoft.com">www.microsoft.com</a>) is very less likely to go down.</p>
<p>The <strong>second method</strong> is my personal, which I thought was more reliable atleast in my case.</p>

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;">	<span style="color: #0600FF;">Function</span> IsConnected<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Boolean</span>
	<span style="color: #0600FF;">Try</span>
		My.<span style="color: #0000FF;">Computer</span>.<span style="color: #0000FF;">Network</span>.<span style="color: #0000FF;">DownloadFile</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;http://www.google.com.pk/abc.txt&quot;</span>, <span style="color: #808080;">&quot;app_tool.dll&quot;</span>, <span style="color: #808080;">&quot;&quot;</span>, <span style="color: #808080;">&quot;&quot;</span>, <span style="color: #0600FF;">True</span>, <span style="color: #FF0000;">100</span>, <span style="color: #0600FF;">True</span><span style="color: #000000;">&#41;</span>
&nbsp;
		<span style="color: #0600FF;">If</span> My.<span style="color: #0000FF;">Computer</span>.<span style="color: #0000FF;">FileSystem</span>.<span style="color: #0000FF;">GetFileInfo</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;app_tool.dll&quot;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">Length</span> <span style="color: #008000;">&amp;</span>gt; <span style="color: #FF0000;">1</span> <span style="color: #FF8000;">Then</span>
			<span style="color: #FF8000;">Return</span> <span style="color: #0600FF;">True</span>
		<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">If</span>
	<span style="color: #0600FF;">Catch</span>
		<span style="color: #FF8000;">Return</span> <span style="color: #0600FF;">False</span>
	<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Try</span>
	<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Function</span></pre></div></div>

<p>This function downloads a file from a reliable source that is always online like (<a href="http://www.google.com">www.google.com</a>) and (<a href="http://www.microsoft.com">www.microsoft.com</a>) – if the download is successful we go further and check the length.</p>
<p>We use <strong>My.Computer.Network.DownloadFile</strong> to download the file, we pass some special parameters to it like the complete URL to the file we want to download and then the filename we want to give it after its copied to our hard-drive. We can also pass values such as a username and password (I have these set to an empty string like this <strong>&#8220;&#8221;</strong> with two double quotes). One of the useful parameter is if or not we want to show the end user a UI (User Interface) showing that a file is being downloaded to their computer, This is a boolean value True or False.</p>
<p>Then there is the second last parameter Timeout which takes an integar as a value (Timeout is set to 100 seconds by default) and last but not least is the overwrite parameter which to tell weather or not we want to overwrite the file, we can set that to true or false.</p>
<p>There is another method but I wont be discussing about that since it didn’t work quite correctly but I have been seeing people post messages alot that it is the best method – which is using a <strong>System.Net.WebRequest</strong>, But before you go let me also tell you that this method is also alot slower than the above.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fzubair.info%2F2008%2F10%2F29%2Fvbnet-how-to-check-if-you-are-connected-to-internet-using-vb-2005.html&amp;linkname=VB.net%20%26%238211%3B%20How%20to%20check%20if%20you%20are%20connected%20to%20internet%20using%20VB%202005"><img src="http://zubair.info/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/Zubair/~4/BuhdDRauCEE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://zubair.info/2008/10/29/vbnet-how-to-check-if-you-are-connected-to-internet-using-vb-2005.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://zubair.info/2008/10/29/vbnet-how-to-check-if-you-are-connected-to-internet-using-vb-2005.html</feedburner:origLink></item>
		<item>
		<title>Visual Basic .NET – using Microsoft Visual Studio 2005</title>
		<link>http://feedproxy.google.com/~r/Zubair/~3/ODtKzUAQNzk/visual-basic-net-using-microsoft-visual-studio-2005.html</link>
		<comments>http://zubair.info/2008/10/12/visual-basic-net-using-microsoft-visual-studio-2005.html#comments</comments>
		<pubDate>Sun, 12 Oct 2008 02:09:41 +0000</pubDate>
		<dc:creator>Zubair</dc:creator>
				<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[VB.net]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://zubair.info/?p=8</guid>
		<description><![CDATA[
			
				
			
		

I just start programming in the .NET Environment recently &#8211; i have used Visual Basic 6 before, but the .NET Environment was new for me but still it was not so tough after all. I&#8217;m not an old VB 6 guru either  
I just used to make stuff on it for fun &#8211; the only i [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fzubair.info%2F2008%2F10%2F12%2Fvisual-basic-net-using-microsoft-visual-studio-2005.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fzubair.info%2F2008%2F10%2F12%2Fvisual-basic-net-using-microsoft-visual-studio-2005.html&amp;source=zubair11&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.microsoft.com/Express/"><img class="alignnone" title="Microsoft Visual Studio" src="http://i34.tinypic.com/hv2j9i.jpg" alt="" width="168" height="97" /></a></p>
<p>I just start programming in the .NET Environment recently &#8211; i have used Visual Basic 6 before, but the .NET Environment was new for me but still it was not so tough after all. I&#8217;m not an old VB 6 guru either <img src='http://zubair.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>I just used to make stuff on it for fun &#8211; the only i remember that i ever made on it was a Web Browser <img src='http://zubair.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211; which i think all the new VB programmers try to make <img src='http://zubair.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  and another app i made was for MSN Messenger which was to check if a certain user doesn&#8217;t have you on their contact list or has blocked you.</p>
<p>This was done along time ago back in the days when we used to use MSN Messenger 7.5 &#8211; now i trying to get deeper into .NET programming. I recently started and felt very comfortable programming in it; The first application i made was a small application which i personally made for one of our site users and myself.</p>
<p>Now, i&#8217;m currently working on another application its a System Cleaner quite similar to <a href="http://www.cCleaner.com">www.cCleaner.com</a>.</p>
<p>I am using Microsoft&#8217;s Visual Studio 2005 right now, i will soon switch to Visual Studio 2008 - I have both installed, but only using VB 2005 for development; Microsoft Visual Studio 2005 and 2008 both are available Free of charge from <a title="Microsoft Visual Studio" href="http://www.microsoft.com/Express/">Microsoft Website</a>.</p>
<p>I&#8217;ll be writting useful snippets and functions that i have found to be very useful along my learning experience.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fzubair.info%2F2008%2F10%2F12%2Fvisual-basic-net-using-microsoft-visual-studio-2005.html&amp;linkname=Visual%20Basic%20.NET%20%26%238211%3B%20using%20Microsoft%20Visual%20Studio%202005"><img src="http://zubair.info/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/Zubair/~4/ODtKzUAQNzk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://zubair.info/2008/10/12/visual-basic-net-using-microsoft-visual-studio-2005.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://zubair.info/2008/10/12/visual-basic-net-using-microsoft-visual-studio-2005.html</feedburner:origLink></item>
		<item>
		<title>Using Wordpress 2.6.2</title>
		<link>http://feedproxy.google.com/~r/Zubair/~3/gGrXlGarjuk/using-wordpress-262.html</link>
		<comments>http://zubair.info/2008/09/27/using-wordpress-262.html#comments</comments>
		<pubDate>Fri, 26 Sep 2008 20:57:28 +0000</pubDate>
		<dc:creator>Zubair</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://zubair.info/?p=6</guid>
		<description><![CDATA[This site will be using Wordpress now, i decided to use this amazing blogging platform to host our site - which will surely make it much easier for us to maintain.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fzubair.info%2F2008%2F09%2F27%2Fusing-wordpress-262.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fzubair.info%2F2008%2F09%2F27%2Fusing-wordpress-262.html&amp;source=zubair11&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignnone" title="Wordpress Blog" src="http://i29.tinypic.com/nda3iv.jpg" alt="" width="430" height="70" /></p>
<p>This site will now be running under wordpress &#8211; Wordpress is no  doubt the simplest solution to your biggest problems.</p>
<p>I installed wordpress 2.6.2 as this is the latest release right now, Wordpress 2.7 is in development but i just couldn&#8217;t wait that long. I had free time in my hands so i thought why not setup a blog here &#8211; It&#8217;ll be taking me time to make my portfolio.</p>
<p>I&#8217;ll try my best to keep this place Alive <img src='http://zubair.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  - One important reason i am using wordpress here is that i think it should be much easier for me to maintain snippets and tutorials that i will be posting here &#8211; and i really like the new wordpress admin user interface that is given to us to right our post <img src='http://zubair.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for taking the time to read this boring post <img src='http://zubair.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fzubair.info%2F2008%2F09%2F27%2Fusing-wordpress-262.html&amp;linkname=Using%20Wordpress%202.6.2"><img src="http://zubair.info/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/Zubair/~4/gGrXlGarjuk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://zubair.info/2008/09/27/using-wordpress-262.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://zubair.info/2008/09/27/using-wordpress-262.html</feedburner:origLink></item>
	</channel>
</rss>
