<?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>KADIMI [Web Dev, SEO, Linux...]</title>
	<atom:link href="http://www.kadimi.com/en/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kadimi.com/en</link>
	<description>Blog &#38; Free Tech Support</description>
	<lastBuildDate>Mon, 28 Jun 2010 22:54:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>HowTo: Connect to Hostmonster&#8217;s SSH with a private key</title>
		<link>http://www.kadimi.com/en/howto-connect-hostmonsters-ssh-private-key-586</link>
		<comments>http://www.kadimi.com/en/howto-connect-hostmonsters-ssh-private-key-586#comments</comments>
		<pubDate>Mon, 31 May 2010 02:32:22 +0000</pubDate>
		<dc:creator>Nabil</dc:creator>
				<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.kadimi.com/en/?p=586</guid>
		<description><![CDATA[Note: I use Hostmonster, I can&#8217;t test elsewhere, but I think these steps will work for Bluehost too. I don&#8217;t understand why most tutorials on hostmonster and bluehost are incomplete, they have one of the best shared hosting service, one of the best support teams&#8230; but there knowledge base is not that shiny. Well, this [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Note: I use Hostmonster, I can&#8217;t test elsewhere, but I think these steps will work for Bluehost too.</p></blockquote>
<p>I don&#8217;t understand why most tutorials on hostmonster and bluehost are incomplete, they have one of the best shared hosting service, one of the best support teams&#8230; but there knowledge base is not that shiny. Well, this <a href="http://helpdesk.hostmonster.com/index.php/kb/article/000555">detailed tutorial</a> from hostmonster helpdesk didn&#8217;t work for me, there is one step missing, so here it is again, how to connect to hostmonster SSH with a private ssh key using PuTTy&#8230; euh PuTty&#8230; euh&#8230; sorry&#8230; it&#8217;s PuTTY</p>
<h2>Generate Keys</h2>
<ol>
<li>Go to <strong>your CPanel -&gt; SSH/Shell Access -&gt; Manage SSH Keys</strong></li>
<li>Go to <strong>Generate a new key</strong> and fill in the fields,
<ul>
<li>leave the password empty (I couldn&#8217;t make it work with a password)</li>
<li>for added security set the <strong>Key Type</strong> to <strong>RSA</strong> and <strong>Key Size</strong> to <strong>4096</strong></li>
<li>Click <strong>Generate Key</strong>, then <strong>Go Back</strong></li>
</ul>
</li>
<li>On the table <strong>Public Keys</strong>, Click <strong>Manage Authorizations</strong> near the key you added a few moment ago, <strong>Authorize </strong>on the next page and then <strong>Go back</strong></li>
<li>On the table <strong>Private Keys</strong> click <strong>View/Download</strong></li>
<li>On the bottom of the page click <strong>Convert</strong> then <strong>Download Key</strong> on the next page, save it somewhere on your computer.</li>
</ol>
<h2>PuTTY</h2>
<p>From Hostmonster helpdesk:</p>
<blockquote><p>Configuring PuTTY:</p>
<ol>
<li>In PuTTY, under Session, enter your Host Name</li>
<li>Under SSH, choose 2 from Preferred SSH Protocol Version</li>
<li>Under SSH -&gt; Auth in PuTTY, you will need to specify where your  private key can be found. Remember this is where you saved the private  key on your local computer. Click Browse to locate the file on your  computer.</li>
<li>If you wish to have your username automatically sent to the server  when connecting, under Connection -&gt; Data in PuTTY, you will see a  field for &#8220;Auto-login username&#8221;. Type your account username there.</li>
<li>Save your settings to be used in future sessions &#8211; Under Sessions,  type a name (such as &#8220;my site&#8221;) in the Saved Sessions box and click  Save.</li>
</ol>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.kadimi.com/en/howto-connect-hostmonsters-ssh-private-key-586/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redmine and Git on shared hosting (Hostmonster)</title>
		<link>http://www.kadimi.com/en/hostmonster-redmine-git-577</link>
		<comments>http://www.kadimi.com/en/hostmonster-redmine-git-577#comments</comments>
		<pubDate>Sat, 29 May 2010 01:19:34 +0000</pubDate>
		<dc:creator>Nabil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Hosting]]></category>

		<guid isPermaLink="false">http://www.kadimi.com/en/redmine-and-git-on-shared-hosting-hostmonster-577</guid>
		<description><![CDATA[Not funny&#8230; I&#8217;m still working of the tutorial]]></description>
			<content:encoded><![CDATA[<p>Not funny&#8230; I&#8217;m still working of the tutorial</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kadimi.com/en/hostmonster-redmine-git-577/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress LTR/RTL</title>
		<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556</link>
		<comments>http://www.kadimi.com/en/wordpress-ltr-rtl-556#comments</comments>
		<pubDate>Wed, 05 May 2010 12:14:33 +0000</pubDate>
		<dc:creator>Nabil</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[arabic]]></category>
		<category><![CDATA[direction]]></category>
		<category><![CDATA[farsi]]></category>
		<category><![CDATA[persian]]></category>
		<category><![CDATA[RTL]]></category>

		<guid isPermaLink="false">http://www.kadimi.com/en/?p=556</guid>
		<description><![CDATA[<a href="http://www.kadimi.com/en/wordpress-ltr-rtl-556"><img align="left" hspace="5" width="150" height="134" src="http://www.kadimi.com/en/wp-content/uploads/rtl-150x134.png" class="alignleft tfe wp-post-image" alt="rtl" title="rtl" /></a>Hello, I found your website on a WordPress forum. Currently I am rebuilding a website in wordpress that is in English and Farsi. I am using the Qtranslate and a theme called suffusion which supports RTL. The theme does come a rtl.css which moves everything to the right which is great. The problem I am [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Hello,</p>
<p>I found your website on a WordPress forum. Currently I am rebuilding a website in wordpress that is in English and Farsi. I am using the Qtranslate and a theme called suffusion which supports RTL. The theme does come a rtl.css which moves everything to the right which is great. <strong>The problem I am having is switching from my LTR Style Sheet to RTL stylesheet when the language is switched.</strong> If you could be of any assistance on this it would be greatly appreciated.</p>
<p>Thank You &#8211; Chris</p></blockquote>
<p><span id="more-556"></span></p>
<p>First let&#8217;s assume that your language is xy_XY (replace with your real language like fr_FR, fa_IR, etc&#8230;)</p>
<p>The direction for the language is declared on a php file located on the same directory where your languages files reside, actually the folder <strong><code>/X/wp-content/languages/</code></strong> (where X is the path to the WP installation).</p>
<p>For each language there should be 3 files:</p>
<ul>
<li>xy_XY.mo [required]: compressed language file, all text strings are pulled from this file</li>
<li>xy_XY.po [not required]: Ignore it unless you want to modify the default WP text strings</li>
<li>xy_XY.php [not required]: Used for declaring the text direction for the xy_XY language, if not present LTR is assumed</li>
</ul>
<p><img class="alignnone size-full wp-image-563" title="rtl" src="http://www.kadimi.com/en/wp-content/uploads/rtl.png" alt="rtl" width="326" height="134" /></p>
<p>Don&#8217;t be surprised if you don&#8217;t find the php file xy_XY.php, your description suggests that it&#8217;s missing, so create it and add this line of code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$text_direction</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;rtl&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>This should fix your error and the direction will be set to RTL for your RTL language.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kadimi.com/en/wordpress-ltr-rtl-556/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PHP with IMAP on CentOS</title>
		<link>http://www.kadimi.com/en/centos-php-imap-506</link>
		<comments>http://www.kadimi.com/en/centos-php-imap-506#comments</comments>
		<pubDate>Mon, 15 Mar 2010 10:46:35 +0000</pubDate>
		<dc:creator>Nabil</dc:creator>
				<category><![CDATA[CentOs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[imap]]></category>

		<guid isPermaLink="false">http://www.kadimi.com/en/?p=506</guid>
		<description><![CDATA[I was playing with Drupal 6 and some UberCart ticket module when I came across an error message where Drupal told me that it needed the IMAP PHP extension to be installed. Because I&#8217;m a nice guy I will share this command with you: &#91;me@it ~&#93;# yum install php-imap Now it&#8217;s installed, proof: &#91;me@it ~&#93;# [...]]]></description>
			<content:encoded><![CDATA[<p>I was playing with Drupal 6 and some UberCart ticket module when I came across an error message where Drupal told me that it needed the IMAP PHP extension to be installed.</p>
<p>Because I&#8217;m a nice guy I will share this command with you:</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #000000;">&#91;</span>me<span style="color: pink;">@</span>it ~<span style="color: #000000;">&#93;</span><span style="color: #008000;"># yum install php-imap</span></pre></div></div>

<p>Now it&#8217;s installed, proof:</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #000000;">&#91;</span>me<span style="color: pink;">@</span>it ~<span style="color: #000000;">&#93;</span><span style="color: #008000;"># php --ri imap</span>
&nbsp;
imap
&nbsp;
IMAP c<span style="color: pink;">-</span>Client Version <span style="color: pink;">=&gt;</span> <span style="color: #000000;">2004</span>
SSL Support <span style="color: pink;">=&gt;</span> enabled
Kerberos Support <span style="color: pink;">=&gt;</span> enabled
<span style="color: #000000;">&#91;</span>me<span style="color: pink;">@</span>it ~<span style="color: #000000;">&#93;</span><span style="color: #008000;">#</span></pre></div></div>

<p>If it wasn&#8217;t installed it would have shown you:</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #000000;">&#91;</span>me<span style="color: pink;">@</span>it ~<span style="color: #000000;">&#93;</span><span style="color: #008000;"># php --ri imap</span>
Extension <span style="color: #800000;">'imap'</span> not present.</pre></div></div>

<p>But of course it isn&#8217;t working&#8230; yet, untill you restart the Apache server daemon</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #000000;">&#91;</span>me<span style="color: pink;">@</span>it ~<span style="color: #000000;">&#93;</span><span style="color: #008000;"># service httpd restart</span></pre></div></div>

<p>And because I&#8217;m a nice guy I will tell you where I found the first command before even you ask: <a href="http://www.php.net/manual/en/imap.setup.php">http://www.php.net/manual/en/imap.setup.php</a></p>
<p>The PHP manual is always a good place to start, oh&#8230; and don&#8217;t underestimate comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kadimi.com/en/centos-php-imap-506/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error writing the value&#8217;s new contents (Windows Registry Editor)</title>
		<link>http://www.kadimi.com/en/regedit-error-writing-the-values-new-contents-492</link>
		<comments>http://www.kadimi.com/en/regedit-error-writing-the-values-new-contents-492#comments</comments>
		<pubDate>Tue, 09 Mar 2010 13:03:31 +0000</pubDate>
		<dc:creator>Nabil</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.kadimi.com/en/?p=492</guid>
		<description><![CDATA[I got this error when trying to change some configuration settings for my anti-virus (TrendMicro WFBS on Windows Server 2003) &#8216;Cannot edit LocalServerPort: Error writing the value&#8217;s new contents&#8217; As usual, when something I don&#8217;t like happens on my computer or on other parts of my life, I ask my friend Google about it, the [...]]]></description>
			<content:encoded><![CDATA[<p>I got this error when trying to change some configuration settings for my anti-virus (TrendMicro WFBS on Windows Server 2003)</p>
<blockquote><p>&#8216;Cannot edit LocalServerPort:<br />
Error writing the value&#8217;s new contents&#8217;</p></blockquote>
<p>As usual, when something I don&#8217;t like happens on my computer or on other parts of my life, I ask my friend Google about it, the suggested solutions were :</p>
<ul>
<li>Open the Registry Editor using the command &#8220;Regedt32.exe&#8221;</li>
<li>Set or review permissions (Edit-&gt;Permissions&#8230;)</li>
</ul>
<p>Of course none of these worked for me, all I had to do is to close the anti-virus program, or to be more specific unload server/client security agent (lol).</p>
<p>I&#8217;m not much on Windows, so I can&#8217;t explain that behavior, if you know something about it, please share it on the comments section, I will be very pleased to add it here on this very same post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kadimi.com/en/regedit-error-writing-the-values-new-contents-492/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get current URL in PHP</title>
		<link>http://www.kadimi.com/en/get-current-url-function-486</link>
		<comments>http://www.kadimi.com/en/get-current-url-function-486#comments</comments>
		<pubDate>Mon, 08 Mar 2010 18:29:24 +0000</pubDate>
		<dc:creator>Nabil</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.kadimi.com/en/?p=486</guid>
		<description><![CDATA[Here is a function for getting the URL of the page being processed in PHP, the function accepts one optional parameter $ignore_port_80 (boolean) to tell it whether it should ignore the port part of the url if the port used is 80: 1 2 3 4 5 6 7 8 9 10 11 12 13 [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a function for getting the URL of the page being processed in PHP, the function accepts one optional parameter <code>$ignore_port_80</code> (boolean) to tell it whether it should ignore the port part of the url if the port used is 80:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Function
</span><span style="color: #000000; font-weight: bold;">function</span> get_current_url<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ignore_port_80</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$is_https</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTPS'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #0000ff;">'on'</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$show_port</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_PORT'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">'80'</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span><span style="color: #000088;">$ignore_port_80</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span>
    <span style="color: #339933;">.</span> <span style="color: #0000ff;">'http'</span>
    <span style="color: #339933;">.</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$is_https</span> ? <span style="color: #0000ff;">'s'</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span>
    <span style="color: #339933;">.</span> <span style="color: #0000ff;">'://'</span>
    <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_NAME'</span><span style="color: #009900;">&#93;</span>
    <span style="color: #339933;">.</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$show_port</span> ? <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">':'</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_PORT'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span>
    <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Examples
</span><span style="color: #b1b100;">echo</span> get_current_url<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>       <span style="color: #666666; font-style: italic;"># http://www.kadimi.com/en/some-title-123
</span><span style="color: #b1b100;">echo</span> get_current_url<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #666666; font-style: italic;"># same as above
</span><span style="color: #b1b100;">echo</span> get_current_url<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;"># http://www.kadimi.com:80/en/some-title-123</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kadimi.com/en/get-current-url-function-486/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vsftpd: 500 OOPS: unrecognised variable in config file</title>
		<link>http://www.kadimi.com/en/vsftpd-500-oops-unrecognised-variable-in-config-file-478</link>
		<comments>http://www.kadimi.com/en/vsftpd-500-oops-unrecognised-variable-in-config-file-478#comments</comments>
		<pubDate>Thu, 18 Feb 2010 21:10:57 +0000</pubDate>
		<dc:creator>Nabil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://www.kadimi.com/en/?p=478</guid>
		<description><![CDATA[Question When I start vsftpd on my CentOs machine I get this error: Starting vsftpd for vsftpd: 500 OOPS: unrecognised variable in config file:  anonymous_enable How can I fix it? Answer The option &#8220;anonymous_enable&#8221; is a valid vsftpd option, but as you can see on the error message, there is an extra white space before the [...]]]></description>
			<content:encoded><![CDATA[<h2>Question</h2>
<p>When I start vsftpd on my CentOs machine I get this error:</p>
<blockquote><p><code>Starting vsftpd for vsftpd: 500 OOPS: unrecognised variable in config file:  anonymous_enable</code></p></blockquote>
<p>How can I fix it?</p>
<h2>Answer</h2>
<p>The option &#8220;anonymous_enable&#8221; is a valid vsftpd option, but as you can see on the error message, there is an extra white space before the variable definition, I suspect that the line was there, commented, and that when you uncommented it you forgot to remove the white space after the &#8220;#&#8221;, check your vsftpd.conf file make sure that &#8220;anonymous_enable=YES&#8221; or &#8220;anonymous_enable=NO&#8221; stands on a single line without any preceding spaces then start vsftpd:</p>
<blockquote><p><code>service vsftpd start</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.kadimi.com/en/vsftpd-500-oops-unrecognised-variable-in-config-file-478/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL statement terminators</title>
		<link>http://www.kadimi.com/en/mysql-query-terminators-440</link>
		<comments>http://www.kadimi.com/en/mysql-query-terminators-440#comments</comments>
		<pubDate>Thu, 28 Jan 2010 01:15:32 +0000</pubDate>
		<dc:creator>Nabil</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.kadimi.com/en/?p=440</guid>
		<description><![CDATA[There is the semicolon &#8220;;&#8221; that every one knows, and &#8220;\g&#8221; which is just the same: mysql &#62; SELECT * FROM wp_links; mysql &#62; SELECT * FROM wp_links\g Those are exactly the same, and will produce the same result, here is an example: mysql&#62; select * from wp_links \g +---------+-----------------------+--------------+------------+-------------+---------------+------------------+--------------+------------+-------------+---------------------+----------+------------+-----------------------+ &#124; link_id &#124; link_url &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>There is the semicolon &#8220;;&#8221; that every one knows, and &#8220;\g&#8221; which is just the same:</p>
<blockquote><p><code>mysql &gt; SELECT * FROM wp_links;<br />
mysql &gt; SELECT * FROM wp_links\g</code></p></blockquote>
<p>Those are exactly the same, and will produce the same result, here is an example:</p>
<blockquote><p><code>mysql&gt; select * from wp_links \g<br />
<span style="color: #999999;">+---------+-----------------------+--------------+------------+-------------+---------------+------------------+--------------+------------+-------------+---------------------+----------+------------+-----------------------+<br />
| link_id | link_url              | link_name    | link_image | link_target | link_category | link_description | link_visible | link_owner | link_rating | link_updated        | link_rel | link_notes | link_rss              |<br />
+---------+-----------------------+--------------+------------+-------------+---------------+------------------+--------------+------------+-------------+---------------------+----------+------------+-----------------------+<br />
|       1 | http://www.ar-wp.com/ | WP arabic |            |             |             0 |                  | Y            |          1 |           0 | 0000-00-00 00:00:00 |          |            | http://www.ar-wp.com/ |<br />
+---------+-----------------------+--------------+------------+-------------+---------------+------------------+--------------+------------+-------------+---------------------+----------+------------+-----------------------+<br />
1 row in set (0.01 sec)</span><br />
</code></p></blockquote>
<p>\G is another valid statement terminator, it tells MySQL to produce vertical output, this comes in handy when the result has too much columns, here is the same statement again but with the \G terminator:</p>
<blockquote><p><code>mysql&gt; select * from wp_links\G<br />
<span style="color: #999999;">*************************** 1. row ***************************<br />
link_id: 1<br />
link_url: http://www.ar-wp.com/<br />
link_name: WP arabic<br />
link_image:<br />
link_target:<br />
link_category: 0<br />
link_description:<br />
link_visible: Y<br />
link_owner: 1<br />
link_rating: 0<br />
link_updated: 0000-00-00 00:00:00<br />
link_rel:<br />
link_notes:<br />
link_rss: http://www.ar-wp.com/<br />
1 row in set (0.00 sec)</span></code></p></blockquote>
<p>As you can see this is a more user friendly fashion for displaying data.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kadimi.com/en/mysql-query-terminators-440/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Symfony Without PEAR</title>
		<link>http://www.kadimi.com/en/symfony-428</link>
		<comments>http://www.kadimi.com/en/symfony-428#comments</comments>
		<pubDate>Wed, 27 Jan 2010 11:05:31 +0000</pubDate>
		<dc:creator>Nabil</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.kadimi.com/en/test-428</guid>
		<description><![CDATA[A lot of web hosts have limited or nonexistent support for PEAR, the pear command will throw errors on most commands or not work at all, in order to install Symfony on such hosts you will need to download the Symfony package, copy Symfony files to your home directory and make them easily accessible from [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of web hosts have limited or nonexistent support for PEAR, the pear command will throw errors on most commands or not work at all, in order to install Symfony on such hosts you will need to download the Symfony package, copy Symfony files to your home directory and make them easily accessible from PHP scripts by modifying the include_path directive setting.</p>
<p>In order to complete these steps faster, we will prefer using SSH to download or edit files and to create folder instead of using FTP, FTP will take a lot of time compared to SSH&#8230; Let&#8217;s start.</p>
<h2>1 &#8211; Download and Install Symfony</h2>
<p>Login to your account using SSH, if you are already logged in make sure your current working directory is your home directory (~), then create a &#8220;php&#8221; folder where you will download the symfony package, we will use the same directory structure used on the Symfony documentation, this will allow you to follow the documentation examples without changing directory names etc.</p>
<p>Before issuing the following commands, grab the link of the latest symfony version from Symfony website, for the purposes of this tutorial you will have to download the  source .tgz file, the text  written in red font will be different depending on the Symfony version:</p>
<blockquote><p><code>you@yourdomain.com [/tmp]# cd<br />
you@yourdomain.com [~]# mkdir php<br />
you@yourdomain.com [~]# mkdir php/lib<br />
you@yourdomain.com [~]# mkdir php/lib/vendor<br />
you@yourdomain.com [~]# cd php/lib/vendor<br />
you@yourdomain.com [~/vendor]# wget http://www.symfony-project.org/get/symfony-<span style="color: #ff0000;">1.4.1</span>.tgz<br />
<span style="color: #999999;"> --06:15:44--  http://www.symfony-project.org/get/symfony-1.4.1.tgz<br />
=&gt; `symfony-1.4.1.tgz.2'<br />
Resolving www.symfony-project.org... 217.174.222.79<br />
Connecting to www.symfony-project.org|217.174.222.79|:80... connected.<br />
HTTP request sent, awaiting response... 200 OK<br />
Length: 3,210,838 (3.1M) [application/x-gzip]100%[===================================================================&gt;] 3,210,838      1.34M/s<br />
06:15:48 (1.34 MB/s) - `symfony-1.4.1.tgz.2' saved [3210838/3210838]<br />
</span>you@yourdomain.com [~/vendor]#  tar zxpf symfony-<span style="color: #ff0000;">1.4.1</span>.tgz<br />
you@yourdomain.com [~/vendor]#  mv symfony-<span style="color: #ff0000;">1.4.1</span> symfony<br />
you@yourdomain.com [~/vendor]# rm -fr symfony-*<br />
</code></p></blockquote>
<h2>2 &#8211; Test your Symfony installation</h2>
<p>You can test your installation and display the symfony version:</p>
<blockquote><p><code>you@yourdomain.com [~]# php -q  php/lib/vendor/symfony/data/bin/symfony -V<br />
<span style="color: #999999;"> symfony version 1.4.1 (/home/you/php/lib/vendor/symfony/lib)</span></code></p></blockquote>
<h2>3 &#8211; Tell PHP where to find Symfony files</h2>
<p>Symfony files are now available in your server, but you still need to tell php where to find them easily. For that you need to modify your PHP include_path and add the &#8220;php&#8221; folder.</p>
<p>We need to know the php folder absolute path, for this we will &#8220;cd&#8221; to the &#8220;php&#8221; directory and issue the &#8220;pwd&#8221; command:</p>
<blockquote><p><code>you@yourdomain.com [~]# cd ~/php<br />
you@yourdomain.com [~]# pwd<br />
/home3/you/php<br />
</code></p></blockquote>
<p>-or-</p>
<blockquote><p><code>you@yourdomain.com [~]# find ~/php -name php<br />
/home3/you/php<br />
</code></p></blockquote>
<p>There are different solutions for altering your PHP include_path, you will choose the one that meets your needs.<br />
[See: How to modify PHP include_path]</p>
<p>In this tutorial, I will assume that you are relying on a global php.ini file .</p>
<p>Open you php.ini file for edit</p>
<blockquote><p><code>you@yourdomain.com [~]# nano /x/y/z/php.ini<br />
</code></p></blockquote>
<p>Look for the include_path directive setting, something like this:</p>
<blockquote><p><code>include_path = ".:/usr/lib/php:/usr/local/lib/php"<br />
</code></p></blockquote>
<p>you can find it easily by using nano&#8217;s search featrure:</p>
<ul>
<li>Press CTRL+W</li>
<li>Type the search string and press RETURN, we are interested in the string <strong>include_path</strong></li>
<li>Press CTRL+W then RETURN until you find something that resembles the code above.</li>
</ul>
<p>Add the php absolute path to your php include_path like this</p>
<p><code>include_path = ".:/usr/lib/php:/usr/local/lib/php<strong>:/home3/you/php</strong>"</code></p>
<h3><span style="text-decoration: underline;">Conclusion</span></h3>
<p>At this point you can use symphony almost as if you installed it using the PEAR pear command. You can use the same method to install other PEAR packages. One more thing you can do is to alter your (most likely) shell PATH to add the symfony command:</p>
<p>Open .bash_profile add the following line AT THE END OF THE FILE:</p>
<blockquote><p><code>PATH=$PATH:$HOME/php/lib/vendor/symfony/data/bin/<br />
export PATH</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.kadimi.com/en/symfony-428/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox crashes: How to detect bogus extensions</title>
		<link>http://www.kadimi.com/en/firefox-crashes-421</link>
		<comments>http://www.kadimi.com/en/firefox-crashes-421#comments</comments>
		<pubDate>Tue, 26 Jan 2010 20:42:56 +0000</pubDate>
		<dc:creator>Nabil</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.kadimi.com/en/?p=421</guid>
		<description><![CDATA[<a href="http://www.kadimi.com/en/firefox-crashes-421"><img align="left" hspace="5" width="150" height="150" src="http://www.kadimi.com/en/wp-content/uploads/Mozilla-crash-reporter-150x150.jpg" class="alignleft wp-post-image tfe" alt="Mozilla Crash Reporter" title="Mozilla Crash Reporter" /></a>Today, whenever I used the built in Firefox search function and as soon as I typed the first letter of my phrase, Firefox suddenly crashed and displayed the well known Mozilla Crash Reporter window (image below). Sending a crash report to complain about my issue won&#8217;t help me (specially), and won&#8217;t help Mozilla people too [...]]]></description>
			<content:encoded><![CDATA[<p>Today, whenever I used the built in Firefox search function and as soon as I typed the first letter of my phrase, Firefox suddenly crashed and displayed the well known Mozilla Crash Reporter window (image below).</p>
<p><img class="alignnone size-full wp-image-422" title="Mozilla Crash Reporter" src="http://www.kadimi.com/en/wp-content/uploads/Mozilla-crash-reporter.jpg" alt="Mozilla Crash Reporter" width="378" height="387" /></p>
<p>Sending a crash report to complain about my issue won&#8217;t help me (specially), and won&#8217;t help Mozilla people too much, unless they know more about my  system (OS, FF version, installed extensions, latest visited websites), so I&#8217;d better try to solve this issue by myself.</p>
<h4>1st try</h4>
<p>I restarted Firefox, it still crashes when i type the first letter of my search string&#8230;</p>
<h4>2nd try</h4>
<p>I rebooted my computer&#8230; I wasted 2 minutes for nothing.</p>
<h4>3rd try</h4>
<p>I scanned my computer using Avira Antivir Personal, nothing found as usual.</p>
<h4>4th try, what I should have done from the beginning</h4>
<p>I started firefox in safe mode and disabled all installed extensions (more than 15).<br />
By the way, the command for starting Firefox in safe mode is:</p>
<blockquote><p><code>firefox -safe-mode</code></p></blockquote>
<p>Guess what, it worked now, I can use the search function again, but all my extensions are disabled, I enabled them 3 or 4 at a time, restarted Firefox, and tested the search function at each time until I spotted the bogus extensions which was nothing but YSlow 2.0.5.</p>
<h3>So what?</h3>
<p>Now I can send a descent report to Mozilla and be helpful, I will have to wait until YSlow is updated again or I will install the extension Google Speed which is very similar and even better than YSlow IMO.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kadimi.com/en/firefox-crashes-421/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
