<?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>Mohsin Sumar</title>
	<atom:link href="http://www.mohsinsumar.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mohsinsumar.com</link>
	<description>Zend Certified Engineer, PHP Professional, Designer &#38; Web Developer</description>
	<lastBuildDate>Thu, 22 Jul 2010 23:07:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP / MySQL eCards tutorial</title>
		<link>http://www.mohsinsumar.com/tutorials/php-mysql-ecards-tutorial/</link>
		<comments>http://www.mohsinsumar.com/tutorials/php-mysql-ecards-tutorial/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 23:04:46 +0000</pubDate>
		<dc:creator>Mohsin Sumar</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ecards]]></category>
		<category><![CDATA[ecards tutorial]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash ecards]]></category>
		<category><![CDATA[php ecards]]></category>
		<category><![CDATA[php mysql flash ecards]]></category>

		<guid isPermaLink="false">http://www.mohsinsumar.com/?p=109</guid>
		<description><![CDATA[How to build your own eCards service using PHP/MySQL]]></description>
			<content:encoded><![CDATA[<p>In 2003, I wrote a tutorial on how to build your own eCards service using PHP/MySQL. It was written and published on Flash-dB Forum. If you have any queries, please direct them to <a href="http://www.flash-db.com/Board/index.php?board=13.0" target="_blank">Flash dB - Flash eCards Forum</a>.</p>
<p>The bad news is that the tutorial went off-air and I am unable to find it. If you happen to have a copy, please email it to me and if I do manage to find it, I will make a point to update this post.</p>
<p>However, the good news is that I have the zip archive with the scripts. Click on the link below to download.</p>
<p><a href="http://www.mohsinsumar.com/downloads/ecards.zip" target="_blank">Download PHP / MySQL eCards Tutorial</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohsinsumar.com/tutorials/php-mysql-ecards-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You do not get great handwriting if you do not start scribbling</title>
		<link>http://www.mohsinsumar.com/words-of-wisdom/you-do-not-get-a-great-handwriting-if-you-do-not-start-scribbling/</link>
		<comments>http://www.mohsinsumar.com/words-of-wisdom/you-do-not-get-a-great-handwriting-if-you-do-not-start-scribbling/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 21:02:22 +0000</pubDate>
		<dc:creator>Mohsin Sumar</dc:creator>
				<category><![CDATA[Words of Wisdom]]></category>
		<category><![CDATA[handwriting]]></category>
		<category><![CDATA[scribbling]]></category>

		<guid isPermaLink="false">http://www.mohsinsumar.com/?p=104</guid>
		<description><![CDATA[You do not get a great handwriting if you don’t start scribbling - By Mohsin Sumar]]></description>
			<content:encoded><![CDATA[<p>I came up with my first original quote in one of my email correspondences today, and I would like to share it with you.</p>
<p><em>"You do not get great handwriting if you do not start scribbling"<br />
- By Mohsin Sumar</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohsinsumar.com/words-of-wisdom/you-do-not-get-a-great-handwriting-if-you-do-not-start-scribbling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sponsors of Veterani Sports Club &#8211; Gezaulole</title>
		<link>http://www.mohsinsumar.com/extreme-web-technologies/sponsors-of-veterani-sports-club-gezaulole/</link>
		<comments>http://www.mohsinsumar.com/extreme-web-technologies/sponsors-of-veterani-sports-club-gezaulole/#comments</comments>
		<pubDate>Sun, 30 May 2010 10:51:01 +0000</pubDate>
		<dc:creator>Mohsin Sumar</dc:creator>
				<category><![CDATA[Extreme Web Technologies]]></category>
		<category><![CDATA[sponsors]]></category>
		<category><![CDATA[veterani football club]]></category>

		<guid isPermaLink="false">http://www.mohsinsumar.com/?p=100</guid>
		<description><![CDATA[Extreme Web Technologies sponsored a local football club called Veterani Sports Club in Gezaulole, Kigamboni, Dar es Salaam with new jerseys, shirts, shorts, socks, goalkeepers gloves, referee uniforms, accessories and most important of all - footballs. ]]></description>
			<content:encoded><![CDATA[<div id="attachment_101" class="wp-caption alignright" style="width: 310px"><a href="http://www.facebook.com/album.php?aid=172288&amp;id=70766038874" target="_blank"><img class="size-medium wp-image-101" title="Mohsin handing T-Shirt of &quot;Extreme #1&quot; to Goalkeeper" src="http://www.mohsinsumar.com/wp-content/uploads/2010/05/31811_398891278874_70766038874_3996147_3776751_n-300x225.jpg" alt="Mohsin handing T-Shirt of &quot;Extreme #1&quot; to Goalkeeper" width="300" height="225" /></a><p class="wp-caption-text">Mohsin handing T-Shirt of &quot;Extreme #1&quot; to the Goalkeeper of Veterani Sports Club - Gezaulole, Kigamboni, Dar es Salaam on 21st May 2010.</p></div>
<p style="text-align: justify;">Earlier this month, on the 21st May 2010 - Extreme Web Technologies sponsored a local football club called Veterani Sports Club in Gezaulole, Kigamboni, Dar es Salaam.</p>
<p style="text-align: justify;">We sponsored new jerseys, shirts, shorts, socks, goalkeepers gloves, referee uniforms, accessories and most important of all - footballs.</p>
<p style="text-align: justify;">You can see me handing over T-Shirt of "<strong>EXTREME #1</strong>" in the photo on the right.</p>
<p style="text-align: justify;">Click here to see more photos of this event in <a href="http://www.facebook.com/album.php?aid=172288&amp;id=70766038874" target="_blank">Extreme Web Technologies Facebook Page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohsinsumar.com/extreme-web-technologies/sponsors-of-veterani-sports-club-gezaulole/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hibernate does not work anymore in Microsoft Vista</title>
		<link>http://www.mohsinsumar.com/general/hibernate-does-not-work-anymore-in-microsoft-vista/</link>
		<comments>http://www.mohsinsumar.com/general/hibernate-does-not-work-anymore-in-microsoft-vista/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 23:19:05 +0000</pubDate>
		<dc:creator>Mohsin Sumar</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[disk cleanup]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[hibernation file cleaner]]></category>
		<category><![CDATA[powercfg]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://www.mohsinsumar.com/?p=97</guid>
		<description><![CDATA[Hibernate stopped working in Microsoft Vista. Here is a simple fix that takes less than one minute. ]]></description>
			<content:encoded><![CDATA[<p>It's been a while since I blogged last, and even longer since I cleaned and free up some disk space on my laptop. While moving and deleting data last week, I used disk cleanup utility. I cleared couple of GBs using this utility, including Hibernation File Cleaner. Obviously, I had no idea what this would do to my laptops' power settings and realized it after a few days that my laptop doesn't hibernate any more and goes to sleep.</p>
<p>After quite sometime trying to fix this, I stumbled across the following knowledge base article on Microsoft Support site: <a href="http://support.microsoft.com/kb/929658" target="_blank">http://support.microsoft.com/kb/929658</a></p>
<p>The fix is really simple; all you need to do is log in as Administrator and run the following command:-</p>
<pre><span style="color: #993300;">powercfg /hibernate on</span></pre>
<p>You'll now be able to hibernate again. I'm going to do just that right now! <img src='http://www.mohsinsumar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohsinsumar.com/general/hibernate-does-not-work-anymore-in-microsoft-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securing PHP application from malicious scripts</title>
		<link>http://www.mohsinsumar.com/php/securing-php-application-from-malicious-scripts/</link>
		<comments>http://www.mohsinsumar.com/php/securing-php-application-from-malicious-scripts/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 22:35:48 +0000</pubDate>
		<dc:creator>Mohsin Sumar</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[.htaccess disable directory listing]]></category>
		<category><![CDATA[how is chmod 777 insecure]]></category>
		<category><![CDATA[options all -indexes]]></category>
		<category><![CDATA[php application security]]></category>
		<category><![CDATA[php upload security]]></category>
		<category><![CDATA[prevent malicious code execution]]></category>
		<category><![CDATA[Secure File Uploads]]></category>

		<guid isPermaLink="false">http://www.mohsinsumar.com/?p=91</guid>
		<description><![CDATA[If you've stumbled across this post, then you've recently become a victim of the most famous way of uploading a malicious script to a website - PHP file uploads. Read through this article to understand the problem and an easy solution to add an extra layer of security to your web application. ]]></description>
			<content:encoded><![CDATA[<p>If you've stumbled across this post, then you've recently become a victim of the most famous way of uploading a malicious script to a website - PHP file uploads.</p>
<p>Many websites and web applications that are developed using PHP &amp; MySQL allow users to upload files, photos and documents to the server. Normally, the upload script receives the files and moves (or writes) it to a directory (folder) with write permissions. If you are on Linux, then this would mean that your folder CHMOD value is 0777.</p>
<p><span style="text-decoration: underline;"><strong>The Problem</strong></span><br />
The changing of CHMOD value to 0777 practically allows anyone in the WORLD to write to your folder and is therefore not recommended. However, many a times we are left with no option but to do so - depending on the servers' environment.</p>
<p><span style="text-decoration: underline;"><strong>How can this be a problem?</strong></span><br />
This allows attackers to upload upload a malicious PHP script to your directory, which they will then execute by accessing it. This script could either be a mass-mailing script or a malicious script to gain access to your account (or web server).</p>
<p><span style="text-decoration: underline;"><strong>The Solution</strong></span><br />
It is said that prevention is better than cure - and therefore, it is important to prevent these scripts from being executed by the server. This can very simply be done by adding a few lines of code to your .htaccess file. If your directory is supposed to hold photo files only, then the following code is recommended to prevent scripts from being executed.</p>
<p>It is also important to disable directory listing on these folders.</p>
<pre><span style="color: #800000;"># Disable Directory Listing
Options All -Indexes</span>

<span style="color: #800000;"># Allow access to these file extensions only
</span><span style="color: #800000;">&lt;FilesMatch "\.(htaccess|htpasswd|ini|php|cgi|pl|phps|sh)$"&gt;
 Order Allow,Deny
 Deny from all
&lt;/FilesMatch&gt;</span><span style="color: #800000;">
</span></pre>
<p>The above will add an extra layer of security to your web application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohsinsumar.com/php/securing-php-application-from-malicious-scripts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How do I extract a tar file?</title>
		<link>http://www.mohsinsumar.com/ssh/how-do-i-extract-a-tar-file/</link>
		<comments>http://www.mohsinsumar.com/ssh/how-do-i-extract-a-tar-file/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 21:31:47 +0000</pubDate>
		<dc:creator>Mohsin Sumar</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[extract tar]]></category>

		<guid isPermaLink="false">http://www.mohsinsumar.com/?p=79</guid>
		<description><![CDATA[Using the following command in SSH, you will be able to extract files from your tar file.
tar -xf file.tar 
]]></description>
			<content:encoded><![CDATA[<p>Using the following command in SSH, you will be able to extract files from your tar file.</p>
<pre><span style="color: #800000;">tar -xf file.tar</span><tt> </tt></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mohsinsumar.com/ssh/how-do-i-extract-a-tar-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to tar a file using SSH?</title>
		<link>http://www.mohsinsumar.com/ssh/how-to-tar-a-file-using-ssh/</link>
		<comments>http://www.mohsinsumar.com/ssh/how-to-tar-a-file-using-ssh/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 17:23:13 +0000</pubDate>
		<dc:creator>Mohsin Sumar</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[compress tar]]></category>
		<category><![CDATA[create compressed tar]]></category>
		<category><![CDATA[tar file]]></category>

		<guid isPermaLink="false">http://www.mohsinsumar.com/?p=82</guid>
		<description><![CDATA[Use the following command if you want to create a tar and compress a file (or folder).
tar -czf /path/to/save/file.tar folder_or_file_name
The options used in the above command are outlined below for your understanding.
-c = create
-z = compress a file
-f = use the file mentioned instead of tape drive
]]></description>
			<content:encoded><![CDATA[<p>Use the following command if you want to create a tar and compress a file (or folder).</p>
<pre><span style="color: #800000;">tar -czf /path/to/save/file.tar folder_or_file_name</span></pre>
<p>The options used in the above command are outlined below for your understanding.</p>
<p>-c = create<br />
-z = compress a file<br />
-f = use the file mentioned instead of tape drive</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohsinsumar.com/ssh/how-to-tar-a-file-using-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A man should look for what is, and not for what he thinks should be.</title>
		<link>http://www.mohsinsumar.com/words-of-wisdom/a-man-should-look-for-what-is-and-not-for-what-he-thinks-should-be/</link>
		<comments>http://www.mohsinsumar.com/words-of-wisdom/a-man-should-look-for-what-is-and-not-for-what-he-thinks-should-be/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 21:32:44 +0000</pubDate>
		<dc:creator>Mohsin Sumar</dc:creator>
				<category><![CDATA[Words of Wisdom]]></category>

		<guid isPermaLink="false">http://www.mohsinsumar.com/?p=76</guid>
		<description><![CDATA["A man should look for what is, and not for what he thinks should be."
- Albert Einstein
]]></description>
			<content:encoded><![CDATA[<p>"A man should look for what is, and not for what he thinks should be."<br />
- Albert Einstein</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohsinsumar.com/words-of-wisdom/a-man-should-look-for-what-is-and-not-for-what-he-thinks-should-be/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH ls pagewise or limit long output</title>
		<link>http://www.mohsinsumar.com/ssh/ssh-ls-pagewise-output/</link>
		<comments>http://www.mohsinsumar.com/ssh/ssh-ls-pagewise-output/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 12:26:31 +0000</pubDate>
		<dc:creator>Mohsin Sumar</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[limit output]]></category>
		<category><![CDATA[ls]]></category>
		<category><![CDATA[ls -l]]></category>
		<category><![CDATA[ls | more]]></category>
		<category><![CDATA[pagewise output]]></category>

		<guid isPermaLink="false">http://www.mohsinsumar.com/?p=71</guid>
		<description><![CDATA[If your SSH ls command output is really long, and cannot be viewed on screen - you can use the following command to part of it with a more command to continue down the list.
ls [options here] &#124; more
Example:-
ls -l &#124; more
]]></description>
			<content:encoded><![CDATA[<p>If your SSH ls command output is really long, and cannot be viewed on screen - you can use the following command to part of it with a more command to continue down the list.</p>
<pre><span style="color: #800000;">ls [options here] | more</span></pre>
<p>Example:-</p>
<pre><span style="color: #800000;">ls -l | more</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mohsinsumar.com/ssh/ssh-ls-pagewise-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My 22nd Birthday</title>
		<link>http://www.mohsinsumar.com/general/my-22nd-birthday/</link>
		<comments>http://www.mohsinsumar.com/general/my-22nd-birthday/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 07:00:18 +0000</pubDate>
		<dc:creator>Mohsin Sumar</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.mohsinsumar.com/?p=74</guid>
		<description><![CDATA[I was born around this time around 22 years ago.
Thank you to everybody for your thoughtful birthday wishes via phone call, text message, email and facebook!
]]></description>
			<content:encoded><![CDATA[<p>I was born around this time around 22 years ago.</p>
<p>Thank you to everybody for your thoughtful birthday wishes via phone call, text message, email and facebook!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohsinsumar.com/general/my-22nd-birthday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
