<?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>Khalil Majdalawi&#039;s Blog &#187; Khalil Majdalawi</title>
	<atom:link href="http://dev3k.com/blog/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev3k.com/blog</link>
	<description>Web development,Technology,Games and more...</description>
	<lastBuildDate>Mon, 30 Jan 2012 09:57:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>an error occurred while processing this directive</title>
		<link>http://dev3k.com/blog/2012/01/an-error-occurred-while-processing-this-directive/</link>
		<comments>http://dev3k.com/blog/2012/01/an-error-occurred-while-processing-this-directive/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 09:57:35 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[justhost]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=412</guid>
		<description><![CDATA[today i faced this problem "an error occurred while processing this directive" after uploading new drupal website using justhost.com hosting company, it turns out just a permission issue with files, i changed it to 755 and error disappeared]]></description>
			<content:encoded><![CDATA[<p>today i faced this problem "<strong>an error occurred while processing this directive</strong>" after uploading new drupal website using justhost.com hosting company, it turns out just a permission issue with files, i changed it to 755 and error disappeared</p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2012/01/an-error-occurred-while-processing-this-directive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Black Screen on Ubuntu</title>
		<link>http://dev3k.com/blog/2011/11/black-screen-on-ubuntu/</link>
		<comments>http://dev3k.com/blog/2011/11/black-screen-on-ubuntu/#comments</comments>
		<pubDate>Sun, 27 Nov 2011 21:12:05 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[HP pavilion g6]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=401</guid>
		<description><![CDATA[Today i tried to install Ubuntu 11.10 on HP Pavilion g6 laptop and i faced a strange problem a black screen during installation!!! so i tried connecting it to another monitor and it did work but after installation and installing latest update and drivers the problem still exist on the main monitor :S so after [...]]]></description>
			<content:encoded><![CDATA[<p>Today i tried to install Ubuntu 11.10 on <strong>HP Pavilion g6</strong> laptop and i faced a strange problem a black screen during installation!!!</p>
<p>so i tried connecting it to another monitor and it did work but after installation and installing latest update and drivers the problem still exist on the main monitor :S</p>
<p>so after some googleing and trying deferent solutions i found out that the problem in screen brightness level,  for laptop monitor the level is  0 or less "total black"  which is weird,  and the fn key is working in wrong way "inversed" WTH!! ,</p>
<p>to adjust the level you need to hit f3 without fn key :S , or find the solution the hard way  by setting it in this file /etc/rc.local by adding the following line before exit 0</p>
<blockquote><p>echo 5 &gt; /sys/class/backlight/acpi_video0/brightness<br />
exit 0</p></blockquote>
<p>Where 5 is the brightness level from 0 to 10</p>
<p><a href="http://askubuntu.com/questions/79983/screen-brightness-resets-to-minimum-after-every-reboot" target="_blank">source </a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2011/11/black-screen-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding Dynamic Subdomains in Godaddy</title>
		<link>http://dev3k.com/blog/2011/10/adding-dynamic-subdomains-in-godaddy/</link>
		<comments>http://dev3k.com/blog/2011/10/adding-dynamic-subdomains-in-godaddy/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 09:12:21 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[godaddy]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=395</guid>
		<description><![CDATA[Just go to your domain zone file editor and add * and your server IP into A(Host) records]]></description>
			<content:encoded><![CDATA[<p>Just go to your domain zone file editor and add * and your server IP into A(Host) records<br />
<a href="http://dev3k.com/blog/wp-content/uploads/2011/10/Screenshot-1.png"><img class="aligncenter size-large wp-image-396" title="Screenshot-1" src="http://dev3k.com/blog/wp-content/uploads/2011/10/Screenshot-1-1024x392.png" alt="" width="550" height="210" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2011/10/adding-dynamic-subdomains-in-godaddy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Excel Reader</title>
		<link>http://dev3k.com/blog/2010/10/php-excel-reader/</link>
		<comments>http://dev3k.com/blog/2010/10/php-excel-reader/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 07:28:03 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Excel]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=372</guid>
		<description><![CDATA[Excel Reader opens an Excel spreadsheet using ODBC given a previously defined DSN (data source name) pointing to an existing Excel spreadsheet file. Queries can be executed to retrieve the list of sheets in a spreadsheet, the names of columns of each sheet or the data in the cells as an array. Download: phpkode.com phpclasses.org]]></description>
			<content:encoded><![CDATA[<p>Excel Reader opens an Excel spreadsheet using ODBC given a previously defined DSN (data source name) pointing to an existing Excel spreadsheet file.</p>
<p>Queries can be executed to retrieve the list of sheets in a spreadsheet, the names of columns of each sheet or the data in the cells as an array.</p>
<p>Download:<br />
<a href="http://www.phpkode.com/scripts/item/excel-reader/ ">phpkode.com</a><br />
<a href="http://www.phpclasses.org/package/3797-PHP-Access-Excel-spreadsheets-as-databases-using-ODBC.html">phpclasses.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2010/10/php-excel-reader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix the Ubuntu GPG Error BADSIG</title>
		<link>http://dev3k.com/blog/2010/06/how-to-fix-the-ubuntu-gpg-error-badsig/</link>
		<comments>http://dev3k.com/blog/2010/06/how-to-fix-the-ubuntu-gpg-error-badsig/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 10:07:09 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=368</guid>
		<description><![CDATA[If you are seeing Ubuntu GPG Error BADSIG use the one of the following methods to fix Error Message: W: GPG error: http://archive.canonical.com intrepid Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key Try to run the following commands from terminal sudo -i apt-get clean cd /var/lib/apt mv lists lists.old mkdir [...]]]></description>
			<content:encoded><![CDATA[<p>If you are seeing Ubuntu GPG Error BADSIG use the one of the following methods to fix</p>
<p>Error Message:<br />
W: GPG error: http://archive.canonical.com intrepid Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key </p>
<p>Try to run the following commands from terminal</p>
<pre>
<code>sudo -i
apt-get clean
cd /var/lib/apt
mv lists lists.old
mkdir -p lists/partial
apt-get clean
apt-get update</code>
</pre>
<p><a href="http://www.ubuntugeek.com/how-to-fix-the-ubuntu-gpg-error-badsig.html">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2010/06/how-to-fix-the-ubuntu-gpg-error-badsig/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dante&#8217;s Inferno</title>
		<link>http://dev3k.com/blog/2010/04/dante-inferno/</link>
		<comments>http://dev3k.com/blog/2010/04/dante-inferno/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 18:22:55 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[Electronic Games]]></category>
		<category><![CDATA[games]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=348</guid>
		<description><![CDATA[Just finished playing this game , check this awesome ending EA refused to sell it in ME , after playing it i think they did right decision , cuz if they did they will face more than such acts but overall this game rocks , i will start playing GOW and will see which is [...]]]></description>
			<content:encoded><![CDATA[<p>Just finished playing this game , check this awesome ending<br />
<br />
<center><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/9J7_ObHk5bY&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/9J7_ObHk5bY&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></center></p>
<p>EA refused to sell it in ME , after playing it i think they did right decision , cuz if they did they will face more than such acts<br />
<a href="http://dev3k.com/blog/wp-content/uploads/2010/04/e3protestors.jpg"><img src="http://dev3k.com/blog/wp-content/uploads/2010/04/e3protestors.jpg" alt="" title="e3protestors" width="425" height="319" class="aligncenter size-full wp-image-351" /></a><br />
<br/><br />
<a href="http://dev3k.com/blog/wp-content/uploads/2010/04/3592308839_3677e25007.jpg"><img src="http://dev3k.com/blog/wp-content/uploads/2010/04/3592308839_3677e25007.jpg" alt="" title="3592308839_3677e25007" width="500" height="333" class="aligncenter size-full wp-image-350" /></a></p>
<p>but overall this game rocks , i will start playing GOW and will see which is better ,</p>
<p>Update: thanks to friend and google it appears that the protest above just an EA publicity stunt , well they have balls to do such thing <a href="http://www.joystiq.com/2009/06/05/ea-confirms-dantes-inferno-protest-was-staged/">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2010/04/dante-inferno/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How restore a MySQL .dump file</title>
		<link>http://dev3k.com/blog/2009/12/how-restore-a-mysql-dump-file/</link>
		<comments>http://dev3k.com/blog/2009/12/how-restore-a-mysql-dump-file/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 09:28:18 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=339</guid>
		<description><![CDATA[i always forget how to do it so here it is to remember mysql -u&#60;user&#62; -p&#60;pass&#62; databasename &#60; db_backup.dump]]></description>
			<content:encoded><![CDATA[<p>i always forget how to do it so here it is to remember <img src='http://dev3k.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre>
<code>mysql -u&lt;user&gt; -p&lt;pass&gt; databasename &lt; db_backup.dump</code>
</pre>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2009/12/how-restore-a-mysql-dump-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete .svn folders recursively using command line</title>
		<link>http://dev3k.com/blog/2009/10/delete-svn-folders-recursively-using-command-line/</link>
		<comments>http://dev3k.com/blog/2009/10/delete-svn-folders-recursively-using-command-line/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 08:42:27 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=321</guid>
		<description><![CDATA[some times i work on small projects with friends and we use Subversion to track and store code changes, collaborate, and share project files so once we finish we usually upload it somewhere by copying the whole project folder so i face that subversion makes folder inside each folder in the project called ".svn" and [...]]]></description>
			<content:encoded><![CDATA[<p>some times i work on small projects with friends and we use <a href="http://en.wikipedia.org/wiki/Subversion_%28software%29">Subversion</a> to track and store code changes, collaborate, and share project files so once we finish we usually upload it somewhere by copying the whole project folder so i face that subversion makes folder inside each folder in the project called ".svn" and that take time to remove manually and unnecessary size to upload<br />
so i run a <a href="http://en.wikipedia.org/wiki/Unix_shell">command</a> inside the project folder to remove that folders recursively before upload.</p>
<p>Run this:</p>
<pre><code>find . -name .svn -exec rm -rf {} \;</code></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2009/10/delete-svn-folders-recursively-using-command-line/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to get client MAC address in PHP</title>
		<link>http://dev3k.com/blog/2009/07/mac-address-in-php/</link>
		<comments>http://dev3k.com/blog/2009/07/mac-address-in-php/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 14:30:53 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=308</guid>
		<description><![CDATA[&#60;?php exec('arp '.$_SERVER['REMOTE_ADDR'],$user_mac); echo substr($user_mac[1],strpos($user_mac[1],':')-2, '17'); ?&#62; Note : this technique only works on local area networks with linux based server and its impossible to get mac address in php over internet]]></description>
			<content:encoded><![CDATA[<pre>
<code type="php">&lt;?php
exec('arp '.$_SERVER['REMOTE_ADDR'],$user_mac);
echo substr($user_mac[1],strpos($user_mac[1],':')-2, '17');
?&gt;</code>
</pre>
<p>Note : this technique only works on local area networks with linux based server and its impossible to get mac address in php over internet  </p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2009/07/mac-address-in-php/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>windows 98 still alive</title>
		<link>http://dev3k.com/blog/2009/07/windows-98-still-alive/</link>
		<comments>http://dev3k.com/blog/2009/07/windows-98-still-alive/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 06:54:30 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[operating systems]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=309</guid>
		<description><![CDATA[today i was shocked as my daily blog check, i noticed someone or "something" is actually still use windows 98 &#038; IE5 WTF ?! this person "zombie" should be jailed of illegal use of internet or send him back to hell . i wonder if there any version of firefox for windows 98 he could [...]]]></description>
			<content:encoded><![CDATA[<p>today i was shocked as my daily blog check, i noticed someone or "something" is actually still use windows 98 &#038; IE5  WTF ?! this person "zombie" should be jailed of illegal use of internet or send him back to hell .<br />
<br/><br />
<center><a href="http://dev3k.com/blog/wp-content/uploads/2009/07/traffic_from_win98.jpg"><img src="http://dev3k.com/blog/wp-content/uploads/2009/07/traffic_from_win98.jpg" alt="traffic_from_win98" title="traffic_from_win98" width="379" height="189" class="aligncenter size-full wp-image-310" /></a></center><br />
<br />
 i wonder if there any version of firefox for windows 98 he could use?!<br /></p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2009/07/windows-98-still-alive/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

