<?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>The _khAttAm_ blog &#187; Windows</title>
	<atom:link href="http://www.khattam.info/category/desktop/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.khattam.info</link>
	<description>Sharing views and experiences</description>
	<lastBuildDate>Sat, 22 Oct 2011 06:18:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>[HOWTO] Install M2Crypto for Python 2.7 on Windows</title>
		<link>http://www.khattam.info/howto-install-m2crypto-for-python-2-7-on-windows-2011-09-30.html</link>
		<comments>http://www.khattam.info/howto-install-m2crypto-for-python-2-7-on-windows-2011-09-30.html#comments</comments>
		<pubDate>Fri, 30 Sep 2011 09:57:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1973</guid>
		<description><![CDATA[I am using Windows 7 Home Premium 64-bit and had to setup M2Crypto required for a Python program that I am writing in Python 2.7 (32-bit). After hours of trying and searching, I finally managed to get it installed and working. Here are some of the things that I tried, please move on to &#8220;How [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I am using Windows 7 Home Premium 64-bit and had to setup M2Crypto required for a Python program that I am writing in Python 2.7 (32-bit). After hours of trying and searching, I finally managed to get it installed and working.</p>
<p><span id="more-1973"></span></p>
<p>Here are some of the things that I tried, please move on to &#8220;<strong>How I managed to get it to work</strong>&#8221; if you don&#8217;t want to go through boring &#8220;<strong>What I tried</strong>&#8221; stuff.</p>
<p><strong>What I tried:</strong><br />
First of all, I tried to install M2Crypto via pip. I got an error saying that swig.exe was not found, so I downloaded copy of swigwin and extracted it, then added the directory to system PATH. I installed easy_install (setuptools), opened the terminal and changed dir to Python27\Scripts and installed pip (easy_install pip). Then, I tried to install M2Crypto using pip:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pip <span style="color: #c20cb9; font-weight: bold;">install</span> M2Crypto</pre></div></div>

<p>Unfortunately, I got the following error:</p>
<blockquote><p>
SWIG\_m2crypto.i(31) : Error: Unable to find &#8216;openssl\opensslv.h&#8217;</p>
<p>SWIG\_m2crypto.i(45) : Error: Unable to find &#8216;openssl\safestack.h&#8217;</p>
<p>SWIG\_evp.i(12) : Error: Unable to find &#8216;openssl\opensslconf.h&#8217;</p>
<p>SWIG\_ec.i(7) : Error: Unable to find &#8216;openssl\opensslconf.h&#8217;</p>
<p>error: command &#8216;swig.exe&#8217; failed with exit status 1
</p></blockquote>
<p>So, I downloaded openssl source files and copied the include directory to swig_dir/lib, then I got errors that from swig. I also tried giving build_dist parameter to setup.py but in vain. I was thinking of compiling openssl myself, but I figured that I would require Visual Studio (which I do not have). I thought of using MingW, but turns out you need to compile Python with MingW for it to work. I almost gave up on this, but I found that some developers had contributed build of OpenSSL and M2Crypto, so that I could just install them. Move on to next section to do it yourself.</p>
<p><strong>How I managed to get it to work</strong><br />
I downloaded pre-built binaries of M2Crypto built against OpenSSL 1.0 from <a href="http://chandlerproject.org/Projects/MeTooCrypto#Contributed%20Builds" onclick="pageTracker._trackPageview('/outgoing/chandlerproject.org/Projects/MeTooCrypto_Contributed_20Builds?referer=');">M2Crypto Wiki</a>. The one that I downloaded is M2Crypto-0.21.1.win32-py2.7.msi. Then, I set it up. It detected my Python installation and installed the package. However, when I ran the Python script, I got the following error:</p>
<blockquote><p>import __m2crypto<br />
ImportError: DLL load failed</p></blockquote>
<p>I don&#8217;t know if it was because I did not restart my computer after installation or if OpenSSL dlls were missing, in either case, you may want to install <a href="http://www.slproweb.com/products/Win32OpenSSL.html" onclick="pageTracker._trackPageview('/outgoing/www.slproweb.com/products/Win32OpenSSL.html?referer=');">Win32 OpenSSL V1 Light</a> and install it and it should work.</p>
<p>Hope this helps.</p>
<div class="shr-publisher-1973"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/howto-install-m2crypto-for-python-2-7-on-windows-2011-09-30.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[HOWTO] Install easy_install and pip in Python 3 (Windows)</title>
		<link>http://www.khattam.info/howto-install-easy_install-and-pip-in-python-3-windows-2011-09-27.html</link>
		<comments>http://www.khattam.info/howto-install-easy_install-and-pip-in-python-3-windows-2011-09-27.html#comments</comments>
		<pubDate>Tue, 27 Sep 2011 04:16:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[easy_install]]></category>
		<category><![CDATA[pip]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python3]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1970</guid>
		<description><![CDATA[I am just starting with Python 3 on Windows and I wanted to install easy_install and/or pip for installing other available packages easily. However, I found that setuptools setup for Python 3.3.2 (the version I am using) is not available. I discovered distribute, a fork of setuptools, which provides easy_install. I downloaded source from Python [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I am just starting with Python 3 on Windows and I wanted to install easy_install and/or pip for installing other available packages easily. However, I found that setuptools setup for Python 3.3.2 (the version I am using) is not available.</p>
<p><span id="more-1970"></span></p>
<p>I discovered distribute, a fork of setuptools, which provides easy_install. I downloaded source from <a href="http://pypi.python.org/pypi/distribute#downloads" onclick="pageTracker._trackPageview('/outgoing/pypi.python.org/pypi/distribute_downloads?referer=');">Python Package page for distribute</a> and extracted it. In the elevated command prompt (cmd->Run as Administrator), I changed to extracted directory and then ran distribute_setup.py. Then, easy_install was successfully installed in Python_Directory\Scripts. Then, I could install pip by changing directory to Scripts and running the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">easy_install pip</pre></div></div>

<p>Hope this helps.</p>
<div class="shr-publisher-1970"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/howto-install-easy_install-and-pip-in-python-3-windows-2011-09-27.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[HOWTO] Make Street Bike Fury run in Windows 7</title>
		<link>http://www.khattam.info/howto-make-street-bike-fury-run-in-windows-7-2011-06-08.html</link>
		<comments>http://www.khattam.info/howto-make-street-bike-fury-run-in-windows-7-2011-06-08.html#comments</comments>
		<pubDate>Wed, 08 Jun 2011 11:08:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[game maker]]></category>
		<category><![CDATA[sbf]]></category>
		<category><![CDATA[street bike fury]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows vista]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1807</guid>
		<description><![CDATA[I had played a great indie game a few years back. It was called Street Bike Fury from S64 Games. The game is no longer being developed because of death of the developer. I had tried to make this game run earlier but failed. However, I have found a way now and I would like [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I had played a great indie game a few years back. It was called Street Bike Fury from S64 Games. The game is no longer being developed because of death of the developer. I had tried to make this game run earlier but failed. However, I have found a way now and I would like to share that.</p>
<p><span id="more-1807"></span></p>
<p>After some research, I found that the game was developed using Game Maker 6. The programs made in this only run in Windows XP and not in Windows 7 and Windows Vista. However, in YoYoGames Wiki, there is a software that can fix this. First download and setup <a href="http://shawn64.com/sbf.php" onclick="pageTracker._trackPageview('/outgoing/shawn64.com/sbf.php?referer=');">Street Bike Fury</a> from <a href="http://shawn64.com/sbf.php" onclick="pageTracker._trackPageview('/outgoing/shawn64.com/sbf.php?referer=');">official download page</a>. Then, download the Game Maker Conversion Program from <a href="http://wiki.yoyogames.com/images/7/77/GM_Convert_Game.zip" onclick="pageTracker._trackPageview('/outgoing/wiki.yoyogames.com/images/7/77/GM_Convert_Game.zip?referer=');">here</a>. Then setup the game but don&#8217;t launch it. Use the GM_Convert_Game and patch the exe. Then you will be able to run it.</p>
<p>Hope this helps.</p>
<div class="shr-publisher-1807"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/howto-make-street-bike-fury-run-in-windows-7-2011-06-08.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[SOLVED] Error: 0x800F0A12 while installing Windows 7 Service Pack 1</title>
		<link>http://www.khattam.info/solved-error-0x800f0a12-while-installing-windows-7-service-pack-1-2011-06-01.html</link>
		<comments>http://www.khattam.info/solved-error-0x800f0a12-while-installing-windows-7-service-pack-1-2011-06-01.html#comments</comments>
		<pubDate>Wed, 01 Jun 2011 06:34:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[disk management]]></category>
		<category><![CDATA[diskmgmt.msc]]></category>
		<category><![CDATA[grub]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1785</guid>
		<description><![CDATA[When trying to update Windows 7 Ultimate to Service Pack 1 using Windows Update, I got error: 0x800F0A12. I have two hard disks of which one has Fedora 15 and the other has Windows 7, the one with Fedora 15 had Grub installed. I disconnected the other hard disk and tried it again and the [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>When trying to update Windows 7 Ultimate to Service Pack 1 using Windows Update, I got error: 0x800F0A12. I have two hard disks of which one has Fedora 15 and the other has Windows 7, the one with Fedora 15 had Grub installed. I disconnected the other hard disk and tried it again and the issue was resolved. If you have single hard disk with some other OS installed, you may face similar error which is a little more difficult to solve. Before performing this, make sure to back up your important data and have recovery tools handy. Please proceed at your own risk. </p>
<p><span id="more-1785"></span></p>
<p>To solve the issue, you have to set the partition with Windows 7 as active using Disk Management (Win+R: diskmgmt.msc) by right clicking the partition and selecting &#8220;Mark Partition as Active&#8221;. After the update has been installed, make sure to set your other partition which has the boot loader as active.</p>
<div class="shr-publisher-1785"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/solved-error-0x800f0a12-while-installing-windows-7-service-pack-1-2011-06-01.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[HOWTO] Firebug on Firefox 6</title>
		<link>http://www.khattam.info/howto-firebug-on-firefox-6-2011-05-17.html</link>
		<comments>http://www.khattam.info/howto-firebug-on-firefox-6-2011-05-17.html#comments</comments>
		<pubDate>Tue, 17 May 2011 02:20:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox 6]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1731</guid>
		<description><![CDATA[Firebug is not officially compatible with Firefox 6 since as of this writing, Firefox 6 is on early alphas. However, forcing compatibility works with it. For that, just install Nightly Tester Tools addon and in Tools>Nightly Tester Tools, check &#8220;Force Addon Compatibility&#8221; and restart Firefox. Now, you will be able to install and use Firebug.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Firebug is not officially compatible with Firefox 6 since as of this writing, Firefox 6 is on early alphas. However, forcing compatibility works with it. For that, just install <a href="https://addons.mozilla.org/en-US/firefox/addon/nightly-tester-tools/" onclick="pageTracker._trackPageview('/outgoing/addons.mozilla.org/en-US/firefox/addon/nightly-tester-tools/?referer=');">Nightly Tester Tools addon</a> and in Tools>Nightly Tester Tools, check &#8220;Force Addon Compatibility&#8221; and restart Firefox. Now, you will be able to install and use Firebug.</p>
<div class="shr-publisher-1731"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/howto-firebug-on-firefox-6-2011-05-17.html/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>[HOWTO] Setup step debugging PHP in Netbeans on Windows with XAMPP</title>
		<link>http://www.khattam.info/howto-setup-step-debugging-php-in-netbeans-on-windows-with-xampp-2011-04-26.html</link>
		<comments>http://www.khattam.info/howto-setup-step-debugging-php-in-netbeans-on-windows-with-xampp-2011-04-26.html#comments</comments>
		<pubDate>Tue, 26 Apr 2011 16:24:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php_xdebug.dll]]></category>
		<category><![CDATA[xampp]]></category>
		<category><![CDATA[xdebug]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1721</guid>
		<description><![CDATA[I am using Netbeans 6.9.1 on Windows 7 with XAMPP 1.7.4 installed. I wanted to enable step debugging for PHP like I do in my PC with Fedora (see here for Netbeans PHP step debugging for Fedora). To do that, I had to follow the following steps: Edit the php.ini file (xampp\php\php.ini) in a text [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I am using Netbeans 6.9.1 on Windows 7 with XAMPP 1.7.4 installed. I wanted to enable step debugging for PHP like I do in my PC with Fedora (see here for <a href="http://www.khattam.info/howto-configure-netbeans-6-9-to-debug-php-files-using-xdebug-in-fedora-14-2011-02-21.html">Netbeans PHP step debugging for Fedora</a>). To do that, I had to follow the following steps:</p>
<p><span id="more-1721"></span></p>
<p>Edit the php.ini file (xampp\php\php.ini) in a text editor to uncomment (remove leading semicolon <img src='http://www.khattam.info/wp-includes/images/smilies/icon_wink.gif' alt="icon wink [HOWTO] Setup step debugging PHP in Netbeans on Windows with XAMPP" class='wp-smiley' title="[HOWTO] Setup step debugging PHP in Netbeans on Windows with XAMPP" />  the following lines:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">zend_extension = &quot;D:\xampp\php\ext\php_xdebug.dll&quot;
xdebug.remote_handler = &quot;dbgp&quot;
xdebug.remote_host = &quot;localhost&quot;
xdebug.remote_port = 9000</pre></div></div>

<p>Also, search for the line containing &#8220;xdebug.remote_enable&#8221; and change it to:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">xdebug.remote_enable = On</pre></div></div>

<p>Then restart apache service.</p>
<p>Now, open the file Program Files\NetBeans 6.9.1\etc\netbeans.conf and find the line containing &#8220;netbeans_default_options&#8221;. Add the text &#8220;-J-Dorg.netbeans.modules.php.dbgp.level=400&#8243; at the end of the line so that it looks like the following:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">netbeans_default_options=&quot;-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true&quot; -J-Dorg.netbeans.modules.php.dbgp.level=400</pre></div></div>

<p>Now, restart Netbeans and select Debug>Debug Project. However, I have experienced it is very slow on Windows compared to the installation on Fedora. </p>
<p>Hope this helps.</p>
<div class="shr-publisher-1721"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/howto-setup-step-debugging-php-in-netbeans-on-windows-with-xampp-2011-04-26.html/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[SOLVED] Warning: imagettftext() [function.imagettftext]: Invalid font filename in path\to\php\file.php on line NN</title>
		<link>http://www.khattam.info/solved-warning-imagettftext-function-imagettftext-invalid-font-filename-in-pathtophpfile-php-on-line-nn-2011-04-23.html</link>
		<comments>http://www.khattam.info/solved-warning-imagettftext-function-imagettftext-invalid-font-filename-in-pathtophpfile-php-on-line-nn-2011-04-23.html#comments</comments>
		<pubDate>Sat, 23 Apr 2011 04:14:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[gd]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wamp]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1715</guid>
		<description><![CDATA[I am running XAMPP 1.7.4 with PHP 5.3.5 on Windows 7. When using any text related GD library functions such as imagettftext(), I get the following error: [SOLVED] Warning: imagettftext() [function.imagettftext]: Invalid font filename in path/to/php/file.php on line NN Normally, this happens when the font is missing in GDFONTPATH and can usually be resolved by [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I am running XAMPP 1.7.4 with PHP 5.3.5 on Windows 7. When using any text related GD library functions such as imagettftext(), I get the following error:<span id="more-1715"></span></p>
<blockquote><p>[SOLVED] Warning: imagettftext() [function.imagettftext]: Invalid font filename in path/to/php/file.php on line NN</p></blockquote>
<p>Normally, this happens when the font is missing in GDFONTPATH and can usually be resolved by using correct font folder, using correct font file and naming it properly in the PHP file. However, in this particular case, I&#8217;ve figured that this is the problem with GD Library or PHP because I am still getting the error even though I have done everything right. I tried WAMP but still in vain. When I tried the same in my Linux machine, everything was fine.</p>
<p>Here is what I did as a workaround. I removed the putenv line and referred to fonts by relative path. For example, the following sample code is the one that does not work</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">putenv</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'GDFONTPATH='</span> <span style="color: #339933;">.</span> <span style="color: #990000;">realPath</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'fonts'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$font</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ariali&quot;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">imagettftext</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image</span><span style="color: #339933;">,</span> <span style="color: #000088;">$size</span><span style="color: #339933;">,</span> <span style="color: #000088;">$angle</span><span style="color: #339933;">,</span> <span style="color: #000088;">$xcordinate</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ycordinate</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text_color</span><span style="color: #339933;">,</span> <span style="color: #000088;">$font</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>I have assumed that the fonts folder contains a file ariali.ttf and in that case, the code must have worked. However, it does not, so the workaround is to do the following:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//putenv('GDFONTPATH=' . realPath('fonts')); remove this line</span>
<span style="color: #000088;">$font</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;fonts/ariali.ttf&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//use relative path here instead</span>
<span style="color: #990000;">imagettftext</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image</span><span style="color: #339933;">,</span> <span style="color: #000088;">$size</span><span style="color: #339933;">,</span> <span style="color: #000088;">$angle</span><span style="color: #339933;">,</span> <span style="color: #000088;">$xcordinate</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ycordinate</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text_color</span><span style="color: #339933;">,</span> <span style="color: #000088;">$font</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The above code works and I guess this is how I will have to use fonts in PHP from now on.</p>
<div class="shr-publisher-1715"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/solved-warning-imagettftext-function-imagettftext-invalid-font-filename-in-pathtophpfile-php-on-line-nn-2011-04-23.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[SOLVED] &#8220;[ERROR] Fatal error: Can&#8217;t open and lock privilege tables: Incorrect key file for table &#8216;user&#8217;; try to repair it&#8221;</title>
		<link>http://www.khattam.info/solved-error-fatal-error-cant-open-and-lock-privilege-tables-incorrect-key-file-for-table-user-try-to-repair-it-2011-04-15.html</link>
		<comments>http://www.khattam.info/solved-error-fatal-error-cant-open-and-lock-privilege-tables-incorrect-key-file-for-table-user-try-to-repair-it-2011-04-15.html#comments</comments>
		<pubDate>Fri, 15 Apr 2011 15:08:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1704</guid>
		<description><![CDATA[I am working on a computer with XAMPP installed on Windows 7. When I upgraded XAMPP to fix the earlier problem with WinMySQLAdmin, a new problem with mysql was introduced. The error log (mysql_error.log) showed the following entry at the end: [ERROR] Fatal error: Can&#8217;t open and lock privilege tables: Incorrect key file for table [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I am working on a computer with XAMPP installed on Windows 7. When I upgraded XAMPP to fix the earlier <a href="http://www.khattam.info/solved-winmysqladmin-1-4-access-violation-at-address-xxxxxx-in-module-libmysql-dll-read-of-address-00000000-2011-04-15.html">problem with WinMySQLAdmin</a>, a new problem with mysql was introduced. The error log (mysql_error.log) showed the following entry at the end:<span id="more-1704"></span></p>
<blockquote><p>[ERROR] Fatal error: Can&#8217;t open and lock privilege tables: Incorrect key file for table &#8216;user&#8217;; try to repair it</p></blockquote>
<p>To fix, I downgraded to earlier version of XAMPP, exported the database and removed the mysql data directory, and reinstalled the latest version of XAMPP. Now, MySQL could start without problems. Then, I imported the data back and all was well.</p>
<div class="shr-publisher-1704"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/solved-error-fatal-error-cant-open-and-lock-privilege-tables-incorrect-key-file-for-table-user-try-to-repair-it-2011-04-15.html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[SOLVED] WinMySQLAdmin 1.4 : Access violation at address xxxxxx in module &#8216;LIBMYSQL.dll&#8217;. Read of address 00000000</title>
		<link>http://www.khattam.info/solved-winmysqladmin-1-4-access-violation-at-address-xxxxxx-in-module-libmysql-dll-read-of-address-00000000-2011-04-15.html</link>
		<comments>http://www.khattam.info/solved-winmysqladmin-1-4-access-violation-at-address-xxxxxx-in-module-libmysql-dll-read-of-address-00000000-2011-04-15.html#comments</comments>
		<pubDate>Fri, 15 Apr 2011 14:49:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[libmysql.dll]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1705</guid>
		<description><![CDATA[I am working on a project on a Windows 7 machine with XAMPP installed. The version installed was 1.7.0 and it was showing dialog boxes with the following error: Access violation at address xxxxxx in module &#8216;LIBMYSQL.dll&#8217;. Read of address 00000000 Here is one: I tried reinstalling, but reinstallation failed because apparently mysql\bin folder was [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I am working on a project on a Windows 7 machine with XAMPP installed. The version installed was 1.7.0 and it was showing dialog boxes with the following error:<span id="more-1705"></span></p>
<blockquote><p>Access violation at address xxxxxx in module &#8216;LIBMYSQL.dll&#8217;. Read of address 00000000</p></blockquote>
<p>Here is one:<br />
<a href="http://www.khattam.info/wp-content/uploads/access-violation.png"><img src="http://www.khattam.info/wp-content/uploads/access-violation.png" alt="access violation [SOLVED] WinMySQLAdmin 1.4 : Access violation at address xxxxxx in module LIBMYSQL.dll. Read of address 00000000" title="access violation XAMPP" width="491" height="171" class="alignnone size-full wp-image-1706" /></a></p>
<p>I tried reinstalling, but reinstallation failed because apparently mysql\bin folder was not remove during the uninstallation. So, I stopped the winmysqladmin.exe from the task manager and removed the bin folder and reinstalled again.</p>
<p>Then, I was able to install XAMPP. The new version of WinMySQLAdmin does not seem to have the same problem.</p>
<div class="shr-publisher-1705"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/solved-winmysqladmin-1-4-access-violation-at-address-xxxxxx-in-module-libmysql-dll-read-of-address-00000000-2011-04-15.html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[SOLVED] Windows Installer: The installation package cannot be installed by the Windows Installer service.</title>
		<link>http://www.khattam.info/solved-windows-installer-the-installation-package-cannot-be-installed-by-the-windows-installer-service-2011-04-09.html</link>
		<comments>http://www.khattam.info/solved-windows-installer-the-installation-package-cannot-be-installed-by-the-windows-installer-service-2011-04-09.html#comments</comments>
		<pubDate>Sat, 09 Apr 2011 13:41:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[msinet]]></category>
		<category><![CDATA[windows installer]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1693</guid>
		<description><![CDATA[I ran into a computer with Windows XP and I got the following error while trying to install a new Windows application: Windows Installer This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service. I did not [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I ran into a computer with Windows XP and I got the following error while trying to install a new Windows application:</p>
<p><span id="more-1693"></span></p>
<blockquote><p><strong>Windows Installer</strong><br />
This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.</p></blockquote>
<p>I did not have time to install all automatic updates or install the whole service pack, so I downloaded a Windows hotfix from <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4&#038;displaylang=en" onclick="pageTracker._trackPageview('/outgoing/www.microsoft.com/downloads/en/details.aspx?FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4_038_displaylang=en&amp;referer=');">here</a>. The file is named WindowsXP-KB942288-v3-x86.exe. I installed it and the program could be installed without problems.</p>
<div class="shr-publisher-1693"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/solved-windows-installer-the-installation-package-cannot-be-installed-by-the-windows-installer-service-2011-04-09.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

