<?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>piXca.net</title>
	<atom:link href="http://www.pixca.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixca.net</link>
	<description>Not just another WordPress site</description>
	<lastBuildDate>Thu, 25 Aug 2011 06:18:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Bootsplash patcher for ASUS Transformer TF101</title>
		<link>http://www.pixca.net/bits-and-bytes/bootsplash-patcher-for-asus-transformer-tf101/</link>
		<comments>http://www.pixca.net/bits-and-bytes/bootsplash-patcher-for-asus-transformer-tf101/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 09:51:49 +0000</pubDate>
		<dc:creator>MaEl</dc:creator>
				<category><![CDATA[Bits-and-Bytes]]></category>
		<category><![CDATA[Mobility-Gadget]]></category>
		<category><![CDATA[asus transformer]]></category>
		<category><![CDATA[tf101]]></category>

		<guid isPermaLink="false">http://www.pixca.net/?p=488</guid>
		<description><![CDATA[I&#8217;m releasing a tool for changing the splash image inside the bootloader. About: This tool is written in Python and using pygame library as the image manipulator. Sorry, there&#8217;s no mouse button to click, use keyboard to input command. Sometimes the open file popup window become out of focus,use ALT + TAB to reselect the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m releasing a tool for changing the splash image inside the bootloader.</p>
<p><strong>About:</strong><br />
This tool is written in Python and using pygame library as the image manipulator.<br />
Sorry, there&#8217;s no mouse button to click, use keyboard to input command.<br />
Sometimes the open file popup window become out of focus,use ALT + TAB to reselect the window.</p>
<p><span id="more-488"></span></p>
<p><strong>Features:</strong></p>
<ul>
<li>GUI : Only for windows</li>
<li>Replace eeepad, asus, nvidia logo</li>
<li>Can load any version of bootloader (build 8.6.5.9 tested)</li>
<li>Extract image from bootloader</li>
<li>Save as blob</li>
</ul>
<p><strong>Screenshot:</strong><br />
<img src="http://www.pixca.net/wp-content/uploads/2011/08/patcher.jpg" alt="" title="patcher" width="500" height="391" class="alignnone size-full wp-image-491" /></p>
<p><strong>Download:</strong><br />
1.<a href="http://www.pixca.net/wp-content/plugins/filedownload/download.php?path=http://www.pixca.net/wp-content/uploads/filedownload/patcher.zip&type=&referer=/feed/"><span>patcher v1.0.1 (GUI/Windows)</span></a><br />
<span>-Downloaded : 144</span></a></p>
<p>2.<a href="http://www.pixca.net/wp-content/plugins/filedownload/download.php?path=http://www.pixca.net/wp-content/uploads/filedownload/cmd_patcher.tar.gz&type=&referer=/feed/"><span>patcher v1.0 (cmd line)</span></a><br />
<span>-Downloaded : 71</span></a></p>
<p><strong>Disclaimer:</strong></p>
<blockquote><p>This tool is intended for advanced user/themer. USE AT YOUR OWN RISK!!<br />
REMEMBER : There&#8217;s always a chance for a messed up bootloader.Please test the bootloader before proceeding to flash the blob.<br />
I&#8217;m not liable for any problem arising such as bricked,loosed data..etc.</p></blockquote>
<p><strong>Quick guide:</strong><br />
1. Load the bootloader<br />
2. Load the image you want to change.<br />
3. Save the bootloader, and test it via nvflash<br />
4. Save the blob, flash to your device via dd</p>
<p>nvflash test command:<br />
<code>nvflash.exe --bct transformer.bct --setbct --configfile flash.cfg --bl patched_bl.bin --odmdata 0x300d8011 --sbk 0x1682CCD8 0x8A1A43EA 0xA532EEB6 0xECFE1D98 --go</code></p>
<p>dd flash command:<br />
<code>dd if=blob of=/dev/block/mmcblk0p4</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixca.net/bits-and-bytes/bootsplash-patcher-for-asus-transformer-tf101/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Caching WordPress on Google AppEngine</title>
		<link>http://www.pixca.net/bits-and-bytes/caching-wordpress-on-google-appengine/</link>
		<comments>http://www.pixca.net/bits-and-bytes/caching-wordpress-on-google-appengine/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 09:31:05 +0000</pubDate>
		<dc:creator>MaEl</dc:creator>
				<category><![CDATA[Bits-and-Bytes]]></category>
		<category><![CDATA[appengine]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.pixca.net/?p=485</guid>
		<description><![CDATA[I got this idea from distractable.net : Beefing Up Self-Hosted WordPress with Google AppEngine]]></description>
			<content:encoded><![CDATA[<p>I got this idea from <a href="http://www.distractable.net/coding/beefing-up-self-hosted-wordpress-with-google-appengine/">distractable.net : Beefing Up Self-Hosted WordPress with Google AppEngine</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixca.net/bits-and-bytes/caching-wordpress-on-google-appengine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://www.pixca.net/uncategorized/hello-world/</link>
		<comments>http://www.pixca.net/uncategorized/hello-world/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 12:36:34 +0000</pubDate>
		<dc:creator>MaEl</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.pixca.net/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixca.net/uncategorized/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CentOs &#8212; how to install mod geo_ip from maxmind</title>
		<link>http://www.pixca.net/bits-and-bytes/centos-how-to-install-mod-geo_ip-from-maxmind/</link>
		<comments>http://www.pixca.net/bits-and-bytes/centos-how-to-install-mod-geo_ip-from-maxmind/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 03:41:58 +0000</pubDate>
		<dc:creator>MaEl</dc:creator>
				<category><![CDATA[Bits-and-Bytes]]></category>
		<category><![CDATA[geo ip]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://www.pixca.net/uncategorized/centos-how-to-install-mod-geo_ip-from-maxmind/</guid>
		<description><![CDATA[yum install GeoIP wget http://yum.jardiknas.org/centos/extras/5/i386/mod_geoip-1.1.8-2.el5.i386.rpm rpm -i mod_geoip-1.1.8-2.el5.i386.rpm wget -N -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz gzip -d GeoLiteCity.dat.gz mkdir /usr/share/GeoIP/ mv GeoLiteCity.dat /usr/share/GeoIP/ nano /etc/httpd/conf.d/mod_geoip.conf #change GeoIP.dat to GeoLiteCity.dat]]></description>
			<content:encoded><![CDATA[<p><code>yum install GeoIP<br />
wget http://yum.jardiknas.org/centos/extras/5/i386/mod_geoip-1.1.8-2.el5.i386.rpm<br />
rpm -i mod_geoip-1.1.8-2.el5.i386.rpm<br />
wget -N -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz<br />
gzip -d GeoLiteCity.dat.gz<br />
mkdir /usr/share/GeoIP/<br />
mv GeoLiteCity.dat /usr/share/GeoIP/<br />
nano /etc/httpd/conf.d/mod_geoip.conf<br />
#change GeoIP.dat to GeoLiteCity.dat<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixca.net/bits-and-bytes/centos-how-to-install-mod-geo_ip-from-maxmind/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to protect linux from ddos attack</title>
		<link>http://www.pixca.net/bits-and-bytes/how-to-protect-linux-from-ddos-attack/</link>
		<comments>http://www.pixca.net/bits-and-bytes/how-to-protect-linux-from-ddos-attack/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 11:01:42 +0000</pubDate>
		<dc:creator>MaEl</dc:creator>
				<category><![CDATA[Bits-and-Bytes]]></category>
		<category><![CDATA[ddos prevent deflate]]></category>

		<guid isPermaLink="false">http://www.pixca.net/uncategorized/protect-linux-from-ddos-aattack/</guid>
		<description><![CDATA[Some script to automatically blocked an ip with more than 150 connection. wget http://www.inetbase.com/scripts/ddos/install.sh chmod 0700 install.sh ./install.sh refrence : http://deflate.medialayer.com/]]></description>
			<content:encoded><![CDATA[<p>Some script to automatically blocked an ip with more than 150 connection.</p>
<p><code><br />
wget http://www.inetbase.com/scripts/ddos/install.sh<br />
chmod 0700 install.sh<br />
./install.sh</code></p>
<p><span id="more-468"></span></p>
<p>refrence : http://deflate.medialayer.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixca.net/bits-and-bytes/how-to-protect-linux-from-ddos-attack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VPS &#8211; how to manual install lxadmin</title>
		<link>http://www.pixca.net/bits-and-bytes/vps-how-to-manual-install-lxadmin/</link>
		<comments>http://www.pixca.net/bits-and-bytes/vps-how-to-manual-install-lxadmin/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 04:29:06 +0000</pubDate>
		<dc:creator>MaEl</dc:creator>
				<category><![CDATA[Bits-and-Bytes]]></category>
		<category><![CDATA[cheap vps]]></category>
		<category><![CDATA[lxadmin]]></category>

		<guid isPermaLink="false">http://www.pixca.net/?p=466</guid>
		<description><![CDATA[For those who buy a vps without a control panel, you can install lxadmin. wget http://download.lxlabs.com/download/lxadmin/production/lxadmin-install-master.sh sh ./lxadmin-install-master.sh Done]]></description>
			<content:encoded><![CDATA[<p>For those who buy a vps without a control panel, you can install lxadmin.</p>
<p><code>wget http://download.lxlabs.com/download/lxadmin/production/lxadmin-install-master.sh<br />
sh ./lxadmin-install-master.sh<br />
</code></p>
<p><span id="more-466"></span></p>
<p>Done</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixca.net/bits-and-bytes/vps-how-to-manual-install-lxadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; how to remove subdomain from url</title>
		<link>http://www.pixca.net/bits-and-bytes/php-remove-subdomain-from-url/</link>
		<comments>http://www.pixca.net/bits-and-bytes/php-remove-subdomain-from-url/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 12:47:39 +0000</pubDate>
		<dc:creator>MaEl</dc:creator>
				<category><![CDATA[Bits-and-Bytes]]></category>

		<guid isPermaLink="false">http://www.pixca.net/?p=449</guid>
		<description><![CDATA[$doms = array('http://yahoo.co.uk','http://www.yahoo.co.uk','http://www.yahoo.com','http://yahoo.com','http://www.mail.yahoo.com','http://www.mail.yahoo.co.uk'); foreach ($doms as $dom) { $matches = explode('//',$dom); $matches = explode('.',$matches[1]); //http://yahoo.com if (count($matches) == 2) { echo $matches[0] . '.' . $matches[1]; } elseif (count($matches) == 3) { //http://yahoo.co.uk if (strlen($matches[2]) == 2) { echo $matches[0] . '.' . $matches[1] . '.' . $matches[2]; //http://www.yahoo.com } else { echo $matches[1] . [...]]]></description>
			<content:encoded><![CDATA[<p><code>$doms = array('http://yahoo.co.uk','http://www.yahoo.co.uk','http://www.yahoo.com','http://yahoo.com','http://www.mail.yahoo.com','http://www.mail.yahoo.co.uk');<br />
<br />
foreach ($doms as $dom) {<br />
  $matches = explode('//',$dom);<br />
  $matches = explode('.',$matches[1]);<br />
<br />
//http://yahoo.com<br />
  if (count($matches) == 2) {<br />
    echo $matches[0] . '.' . $matches[1];<br />
  } elseif (count($matches) == 3) {<br />
<br />
//http://yahoo.co.uk<br />
    if (strlen($matches[2]) == 2) {<br />
      echo $matches[0] . '.' . $matches[1] . '.' . $matches[2];<br />
<br />
//http://www.yahoo.com<br />
    } else {<br />
      echo $matches[1] . '.' . $matches[2];<br />
    }<br />
  } elseif (count($matches) == 4) {<br />
<br />
//http://www.yahoo.co.uk<br />
    if (strlen($matches[3]) == 2) {<br />
      echo $matches[1] . '.' . $matches[2] . '.' . $matches[3];<br />
<br />
//http://www.mail.yahoo.com<br />
    } else {<br />
      echo $matches[2] . '.' . $matches[3];<br />
   }<br />
  } elseif (count($matches) == 5) {<br />
<br />
//http://www.mail.yahoo.co.uk<br />
    if (strlen($matches[3]) == 2) {<br />
      echo $matches[2] . '.' . $matches[3] . '.' . $matches[4];<br />
    }<br />
  }<br />
}<br />
</code><br />
this should output<br />
<code><br />
http://<strong>yahoo.co.uk </strong>=> <strong>yahoo.co.uk</strong><br />
http://www.<strong>yahoo.co.uk </strong>=> <strong>yahoo.co.uk</strong><br />
http://www.<strong>yahoo.com</strong> => <strong>yahoo.com</strong><br />
http://<strong>yahoo.com</strong> => <strong>yahoo.com</strong><br />
http://www.mail.<strong>yahoo.com</strong> => <strong>yahoo.com</strong><br />
http://www.mail.<strong>yahoo.co.uk</strong> => <strong>yahoo.co.uk</strong><br />
</code></p>
<p><span id="more-449"></span></p>
<p>rather lame method to do it.. should have learn regex&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixca.net/bits-and-bytes/php-remove-subdomain-from-url/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>decryt ssl key</title>
		<link>http://www.pixca.net/bits-and-bytes/decryt-ssl-key/</link>
		<comments>http://www.pixca.net/bits-and-bytes/decryt-ssl-key/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 04:47:59 +0000</pubDate>
		<dc:creator>MaEl</dc:creator>
				<category><![CDATA[Bits-and-Bytes]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.pixca.net/?p=444</guid>
		<description><![CDATA[Simple and easy! openssl rsa -in ssl.key -out ssl.key I just buy ssl from godady.com only $12.99 per yr here&#8217;s the promo code cjcssl12t2]]></description>
			<content:encoded><![CDATA[<p>Simple and easy!<br />
<code>openssl rsa -in ssl.key -out ssl.key</code></p>
<p>I just buy ssl from godady.com only  $12.99 per yr<br />
here&#8217;s the promo code  <code>cjcssl12t2</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixca.net/bits-and-bytes/decryt-ssl-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rewrite www to no-www</title>
		<link>http://www.pixca.net/bits-and-bytes/rewrite-www-to-no-www/</link>
		<comments>http://www.pixca.net/bits-and-bytes/rewrite-www-to-no-www/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 17:38:59 +0000</pubDate>
		<dc:creator>MaEl</dc:creator>
				<category><![CDATA[Bits-and-Bytes]]></category>

		<guid isPermaLink="false">http://www.pixca.net/?p=440</guid>
		<description><![CDATA[Redirection via webserver Most of popular webserver support redirection. The flow of redirection using this method is Browser -> Web Server Below is configuration for popular web server Apache Redirection in Apache requires the mod_rewrite module. Put this in .htaccess file RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] RewriteRule ^(.*) http://%1/$1 [R=301,L] Alternative, RewriteEngine on RewriteCond [...]]]></description>
			<content:encoded><![CDATA[<h1>Redirection via webserver</h1>
<p>Most of popular webserver support redirection. The flow of redirection using this method is</p>
<p><span id="more-440"></span></p>
<p><strong>Browser -> Web Server</strong></p>
<p>Below is configuration for popular web server</p>
<h2>Apache</h2>
<p>Redirection in Apache requires the mod_rewrite module.<br />
Put this in .htaccess file<br />
<code>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]<br />
RewriteRule ^(.*) http://%1/$1 [R=301,L]<br />
</code><br />
Alternative,<br />
<code>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^www. [NC]<br />
RewriteRule ^(.*)$ %{HTTP_HOST}/$1 [C]<br />
RewriteRule ^www.(.*)$ http://$1 [L,R=301]<br />
</code></p>
<h2>Nginx</h2>
<p>Nginx doesn&#8217;t support .htaccess file.<br />
Redirection can easily be configured in the configuration file. But you need the access to nginx configuration file. Don&#8217;t forget to reload nginx after finished.<br />
<code>server {<br />
    server_name www.domain.tld;<br />
    rewrite ^/(.*) http://domain.tld/$1 permanent;<br />
}<br />
</code><br />
permanent means 301 redirect. without the permanent keyword, nginx send a 302 redirect.</p>
<h2>Lighthttpd</h2>
<p>Like nginx, lighthttpd also doesn&#8217;t support .htaccess file.<br />
Rewrite requires mod_redirect module. Put this in configuration file, then reload.<br />
<code>$HTTP["host"] =~ "^www\.(.*)$" {<br />
  url.redirect = ( "^/(.*)" => "http://%1/$1" )<br />
}<br />
</code></p>
<h1>Redirection via script(dynamic)</h1>
<p>This method requires a dynamic scripting language on the server side. Using this method, the flow is a bit longer.</p>
<p><strong>Browser -> Web Server -> Dynamic Script</strong></p>
<h2>PHP</h2>
<p>Put this code on top of your php script.<br />
<code>&lt;?php<br />
if (strpos($_SERVER['HTTP_HOST'], 'www.') === 0) {<br />
header('HTTP/1.1 301 Moved Permanently');<br />
header('Location: http://'.substr($_SERVER['HTTP_HOST'],4).$_SERVER['REQUEST_URI']);<br />
exit();<br />
}<br />
?></code><br />
Alternative,<br />
<code>&lt;?php<br />
if (!preg_match("/^www./i",$_SERVER['HTTP_HOST'])){<br />
    header('HTTP/1.1 301 Moved Permanently');<br />
    header('Location: http://'.substr($_SERVER['HTTP_HOST'],4).$_SERVER['REQUEST_URI']);<br />
    exit();<br />
}<br />
?></code></p>
<h2>ASP</h2>
]]></content:encoded>
			<wfw:commentRss>http://www.pixca.net/bits-and-bytes/rewrite-www-to-no-www/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>google bug? False &#8220;This site may harm your computer&#8221;</title>
		<link>http://www.pixca.net/bits-and-bytes/google-bug-false-this-site-may-harm-your-computer/</link>
		<comments>http://www.pixca.net/bits-and-bytes/google-bug-false-this-site-may-harm-your-computer/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 15:09:27 +0000</pubDate>
		<dc:creator>MaEl</dc:creator>
				<category><![CDATA[Bits-and-Bytes]]></category>

		<guid isPermaLink="false">http://www.pixca.net/?p=432</guid>
		<description><![CDATA[Feb 1, around 12am(GMT+9) : all google search result is tagged as harmful. Even google.com is harm.. who could you trust these day.. Updated: Search result back to normal 10min later.. Updated: Google says it was human error. Read here for more Rumors says that it was the first time in Google history. Glad I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img src="http://www.pixca.net/wp-content/uploads/2009/02/this-site-is-hum.jpg" alt="google.com" width="510" height="319" class="attachment wp-att-436 centered" /></p>
<p><span id="more-432"></span></p>
<p>Feb 1, around 12am(GMT+9) : all google search result is tagged as harmful.<br />
Even google.com is harm.. who could you trust these day..</p>
<p>Updated: Search result back to normal 10min later..<br />
Updated: Google says it was human error. <a href="http://googleblog.blogspot.com/2009/01/this-site-may-harm-your-computer-on.html">Read here for more </a></p>
<p>Rumors says that it was the first time in Google history.<br />
Glad I&#8217;m lucky enough to capture this moment.. Maybe It&#8217;s more like seeing an unpredictable comet passing by..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixca.net/bits-and-bytes/google-bug-false-this-site-may-harm-your-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

