<?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>Ask me Questions and get Answers !</title>
	<atom:link href="http://askmetoo.com/feed" rel="self" type="application/rss+xml" />
	<link>http://askmetoo.com</link>
	<description>Ask Questions and get Answers About everything for free!</description>
	<lastBuildDate>Wed, 21 Dec 2011 08:04:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>gz unzip gz file from php</title>
		<link>http://askmetoo.com/gz-unzip-gz-file-from-php.htm</link>
		<comments>http://askmetoo.com/gz-unzip-gz-file-from-php.htm#comments</comments>
		<pubDate>Wed, 21 Dec 2011 08:03:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=245</guid>
		<description><![CDATA[php example code 1 2 3 4 5 6 7 8 9 10 11 12 &#60;?php function uncompress&#40;$srcName, $dstName&#41; &#123; $sfp = gzopen&#40;$srcName, &#34;rb&#34;&#41;; $fp = fopen&#40;$dstName, &#34;w&#34;&#41;; &#160; while &#40;$string = gzread&#40;$sfp, 4096&#41;&#41; &#123; fwrite&#40;$fp, $string, strlen&#40;$string&#41;&#41;; &#125; gzclose&#40;$sfp&#41;; fclose&#40;$fp&#41;; &#125; uncompress&#40;'codhacks.sql.gz','codhacks.sql'&#41;;echo 1;exit;]]></description>
			<content:encoded><![CDATA[<p>php example code<br />
<span id="more-245"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> uncompress<span style="color: #009900;">&#40;</span><span style="color: #000088;">$srcName</span><span style="color: #339933;">,</span> <span style="color: #000088;">$dstName</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$sfp</span> <span style="color: #339933;">=</span> <span style="color: #990000;">gzopen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$srcName</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;rb&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$fp</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dstName</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;w&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$string</span> <span style="color: #339933;">=</span> <span style="color: #990000;">gzread</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sfp</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4096</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #990000;">fwrite</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #000088;">$string</span><span style="color: #339933;">,</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #990000;">gzclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sfp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
uncompress<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'codhacks.sql.gz'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'codhacks.sql'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>echo <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>exit<span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/gz-unzip-gz-file-from-php.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Analyse Logging commands for debian linux</title>
		<link>http://askmetoo.com/analyse-logging-commands-for-debian-linux.htm</link>
		<comments>http://askmetoo.com/analyse-logging-commands-for-debian-linux.htm#comments</comments>
		<pubDate>Fri, 23 Sep 2011 18:27:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian 5]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[Unix-Linux]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=241</guid>
		<description><![CDATA[http://stackoverflow.com/questions/473998/tool-or-language-to-count-occurrances-of-errors-in-a-log-file http://www.thinkplexx.com/learn/article/webperf/baslog/statwithbashandawk awk &#8216;{print $1}&#8217; access.log&#124;sort -u awk &#8216;{print $2}&#8217; access.log&#124;sort -u awk &#8216;{print $3}&#8217; access.log&#124;sort -u The awk filters out all IP addresses, the sort then removes duplicates. To find out all accesses to a URL, I do grep URL access.log]]></description>
			<content:encoded><![CDATA[<p>http://stackoverflow.com/questions/473998/tool-or-language-to-count-occurrances-of-errors-in-a-log-file</p>
<p><span id="more-241"></span></p>
<p>http://www.thinkplexx.com/learn/article/webperf/baslog/statwithbashandawk</p>
<p>awk &#8216;{print $1}&#8217; access.log|sort -u<br />
awk &#8216;{print $2}&#8217; access.log|sort -u<br />
awk &#8216;{print $3}&#8217; access.log|sort -u</p>
<p>The awk filters out all IP addresses, the sort then removes duplicates.</p>
<p>To find out all accesses to a URL, I do</p>
<p>grep URL access.log</p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/analyse-logging-commands-for-debian-linux.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache2ctl configtest debian apache</title>
		<link>http://askmetoo.com/apache2ctl-configtest-debian-apache.htm</link>
		<comments>http://askmetoo.com/apache2ctl-configtest-debian-apache.htm#comments</comments>
		<pubDate>Sun, 04 Sep 2011 17:31:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian 5]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=239</guid>
		<description><![CDATA[How to test debian config in apache ? in debian ? mnake /usr/sbin/apache2ctl configtest]]></description>
			<content:encoded><![CDATA[<p>How to test debian config in apache ? in debian ?<br />
mnake <span id="more-239"></span><br />
/usr/sbin/apache2ctl configtest</p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/apache2ctl-configtest-debian-apache.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>find files of some user (linux)</title>
		<link>http://askmetoo.com/find-files-of-some-user-linux.htm</link>
		<comments>http://askmetoo.com/find-files-of-some-user-linux.htm#comments</comments>
		<pubDate>Fri, 12 Aug 2011 07:57:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian 5]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=236</guid>
		<description><![CDATA[find / -user forumcv]]></description>
			<content:encoded><![CDATA[<p>find / -user forumcv</p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/find-files-of-some-user-linux.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starting PostgreSQL 8.3 database server: mainThe PostgreSQL server failed to start.</title>
		<link>http://askmetoo.com/starting-postgresql-8-3-database-server-mainthe-postgresql-server-failed-to-start.htm</link>
		<comments>http://askmetoo.com/starting-postgresql-8-3-database-server-mainthe-postgresql-server-failed-to-start.htm#comments</comments>
		<pubDate>Thu, 21 Jul 2011 15:41:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian 5]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=233</guid>
		<description><![CDATA[Starting PostgreSQL 8.3 database server: mainThe PostgreSQL server failed to start. Please check the log output: 2011-07-21 18:34:55 EEST FATAL: unsafe permissions on private key file &#8220;server.key&#8221; 2011-07-21 18:34:55 EEST DETAIL: File must be owned by the database user or root, must have no write permission for &#8220;group&#8221;, and must have no permissions for &#8220;other&#8221;. [...]]]></description>
			<content:encoded><![CDATA[<p>Starting PostgreSQL 8.3 database server: mainThe PostgreSQL server failed to start. Please check the log output: 2011-07-21 18:34:55 EEST FATAL: unsafe permissions on private key file &#8220;server.key&#8221; 2011-07-21 18:34:55 EEST DETAIL: File must be owned by the database user or root, must have no write permission for &#8220;group&#8221;, and must have no permissions for &#8220;other&#8221;. failed!<br />
 failed!<span id="more-233"></span></p>
<p>HOw to fix ?<br />
easy</p>
<p>Work Around:</p>
<p>1) Enter the relevant directory (use> locate server.key)<br />
2) Back up old server.key link.<br />
3) Copy ssl-cert-snakeoil.key to server.key<br />
4-5) Change its owner &#038; group to postgres<br />
6) Ensure the permissions are 700 or 740 (as requested by error message)</p>
<p>Recipe for my   w/ postgresql-8.3 (beware of typos):</p>
<p> cd /var/lib/postgresql/8.3/main/<br />
mv server.key server.key-0<br />
 cp /etc/ssl/private/ssl-cert-snakeoil.key server.key<br />
chown postgres server.key<br />
 chgrp postgres server.key<br />
 chmod 740 server.key<br />
 /etc/init.d/postgresql-8.3 start</p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/starting-postgresql-8-3-database-server-mainthe-postgresql-server-failed-to-start.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>auto replace text in files</title>
		<link>http://askmetoo.com/auto-replace-text-in-files.htm</link>
		<comments>http://askmetoo.com/auto-replace-text-in-files.htm#comments</comments>
		<pubDate>Mon, 04 Jul 2011 09:36:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian 5]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=231</guid>
		<description><![CDATA[sed -i 's/\$HTTP_\(.*\)_VARS/\$_\1/g' filename.php]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bach" style="font-family:monospace;">sed -i 's/\$HTTP_\(.*\)_VARS/\$_\1/g' filename.php</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/auto-replace-text-in-files.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7 CSS Hacks</title>
		<link>http://askmetoo.com/ie7-css-hacks.htm</link>
		<comments>http://askmetoo.com/ie7-css-hacks.htm#comments</comments>
		<pubDate>Mon, 20 Jun 2011 09:45:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=229</guid>
		<description><![CDATA[#mm .rollOver { height: 165px; /* IE 6 &#038; bellow */ } html>body #mm .rollOver { height: 163px; /* FF &#038; Others */ } *:first-child+html #mm .rollOver { height: 165px !important; /* #%@#%(! IE 7 */ } p.style { color:red; } /* IE7 */ * html p.style { color:blue; } /* Other IE */ *&#124;html [...]]]></description>
			<content:encoded><![CDATA[<p>#mm .rollOver {<br />
   height: 165px; /* IE 6 &#038; bellow */<br />
}<br />
html>body #mm .rollOver {<br />
   height: 163px; /* FF &#038; Others */<br />
}<br />
*:first-child+html #mm .rollOver {<br />
   height: 165px !important; /* #%@#%(! IE 7 */<br />
}<br />
p.style { color:red; } /* IE7 */<br />
* html p.style { color:blue; } /* Other IE */<br />
*|html p.style { color:pink; } /* FF, Opera, Konqueror, Safari */</p>
<p>#ie7-hook-id div[class^="target-class"] { background: #ff0000; }<br />
div#ie7-hook-id .target-class { background: #0000ff; }</p>
<p>* div[class^="ie7-target-class"] { background: #ff0000; }<br />
body .ie7-target-class { background: #0000ff; }</p>
<p>Valid CSS Selectors</p>
<p>* html {} /* IE 6 and below */<br />
*:first-child+html {} * html {} /* IE 7 and below */<br />
*:first-child+html {} /* IE 7 only */<br />
html>body {} /* IE 7 and modern browsers only */<br />
html>/**/body {} /* Modern browsers only (not IE 7) */<br />
html:first-child {} /* Recent Opera versions 9 and below */</p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/ie7-css-hacks.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian autoreboot after kernel.panic /etc/sysctl.conf</title>
		<link>http://askmetoo.com/debian-autoreboot-after-kernel-panic-etcsysctl-conf.htm</link>
		<comments>http://askmetoo.com/debian-autoreboot-after-kernel-panic-etcsysctl-conf.htm#comments</comments>
		<pubDate>Sat, 11 Jun 2011 10:38:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=227</guid>
		<description><![CDATA[echo &#8216;kernel.panic = 20&#8242; >> /etc/sysctl.conf sysctl -p or echo 10 > /proc/sys/kernel/panic or echo &#8220;10&#8243; > /proc/sys/kernel/panic so if kernel.panic happents, system will reboot automaticaly in 10 sec]]></description>
			<content:encoded><![CDATA[<p>echo &#8216;kernel.panic = 20&#8242; >> /etc/sysctl.conf<br />
sysctl -p</p>
<p>or<br />
echo 10 > /proc/sys/kernel/panic</p>
<p>or</p>
<p>echo &#8220;10&#8243; > /proc/sys/kernel/panic </p>
<p>so if kernel.panic happents, system will reboot automaticaly in 10 sec </p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/debian-autoreboot-after-kernel-panic-etcsysctl-conf.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx alias-location  for phpmyadmin</title>
		<link>http://askmetoo.com/nginx-alias-phpmyadmin.htm</link>
		<comments>http://askmetoo.com/nginx-alias-phpmyadmin.htm#comments</comments>
		<pubDate>Tue, 26 Apr 2011 12:23:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=224</guid>
		<description><![CDATA[location ^~ /phpmyadmin/ { root /usr/local/www; }]]></description>
			<content:encoded><![CDATA[<p><span id="more-224"></span><br />
location ^~ /phpmyadmin/ {<br />
root /usr/local/www;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/nginx-alias-phpmyadmin.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install truecript in debain</title>
		<link>http://askmetoo.com/install-truecript-in-debain.htm</link>
		<comments>http://askmetoo.com/install-truecript-in-debain.htm#comments</comments>
		<pubDate>Fri, 22 Apr 2011 12:27:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian 5]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=221</guid>
		<description><![CDATA[cd /tmp wget http://www.truecrypt.org/download/truecrypt-7.0a-linux-x86.tar.gz tar-xvf truecryp* ./truecrypt-* /usr/bin/truecryp]]></description>
			<content:encoded><![CDATA[<p>cd /tmp<span id="more-221"></span><br />
wget http://www.truecrypt.org/download/truecrypt-7.0a-linux-x86.tar.gz<br />
tar-xvf truecryp*<br />
./truecrypt-*</p>
<p>/usr/bin/truecryp</p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/install-truecript-in-debain.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

