<?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>Symbol Engine &#187; GNU/linux</title>
	<atom:link href="http://www.symbolengine.com/index.php/category/gnu_linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.symbolengine.com</link>
	<description>Jim Qode&#039;s sporadically updated geeky blog</description>
	<lastBuildDate>Thu, 14 Jul 2011 00:27:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Swap partition on a flash drive, is it really that bad?</title>
		<link>http://www.symbolengine.com/index.php/2011/01/10/swap-partition-on-a-flash-drive-is-it-really-that-bad/</link>
		<comments>http://www.symbolengine.com/index.php/2011/01/10/swap-partition-on-a-flash-drive-is-it-really-that-bad/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 14:46:30 +0000</pubDate>
		<dc:creator>jimqode</dc:creator>
				<category><![CDATA[GNU/linux]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sd]]></category>
		<category><![CDATA[swap]]></category>

		<guid isPermaLink="false">http://www.symbolengine.com/?p=73</guid>
		<description><![CDATA[There are comments all over the web giving negative advice to people who would like to try running a linux box with swap partition on a flash drive. Write cycles are limited in flash drives. A memory cell can usually be written to about 100,000 times but nearly all flash memory devices have specialized circuitry [...]]]></description>
			<content:encoded><![CDATA[<p>There are comments all over the web giving negative advice to people who would like to try running a linux box with swap partition on a flash drive.</p>
<p>Write cycles are limited in flash drives. A memory cell can usually be written to about 100,000 times but nearly all flash memory devices have specialized circuitry to write to different locations each time the memory is access to even out the wear on all cells. So in theory you can write 200 TB of data on a 2 GB sd card before it fails. This may not be so in practice, but let&#8217;s halve it to 100 TB. How much time do you think your computer is gonna take to wear out your card completely? Well that depends on your computers swappiness, but I seriously think it is going to take about a year.</p>
<p>Another protest against the flash swap is the speed of flash devices. While flash devices are much slower than hard drives, think about this scenario: Your computer is playing back a high definition video file and using all its ram, and your hard drive just can keep up with reading the media from the drive. What happens when a cron job executes and needs some memory? Some pages need to be swapped to your hard drive which is on the same device but on a different partition. Your drive head will jump there to write the page, and jump back immediately to reading the media potentially skipping frames on decoding. Using another harddrive to hold the swap file would fix this problem but what if you can&#8217;t? What if you are a cheapskates like me? Using a flash memory device for swap would free your hard drive, and even though it is slower, the fact that it uses another media to read from and another bus to move the data makes for shorter I/O queues on devices and faster access times.</p>
<p>So while it may not be as good as upgrading your RAM, putting in a second hard drive for swap or buying a faster hard drive; it still makes a difference in systems where hard drive I/O is the bottleneck. If this applies to you, go on and make a swap partition on that old flash drive (just make sure it is not USB 1.1). It is a very cheap performance upgrade you can use for a year. And who knows what you will be using one year from now anyway?</p>
<img src="http://www.symbolengine.com/?ak_action=api_record_view&id=73&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.symbolengine.com/index.php/2011/01/10/swap-partition-on-a-flash-drive-is-it-really-that-bad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Useful scripts for wmii on laptops</title>
		<link>http://www.symbolengine.com/index.php/2008/03/22/useful-scripts-for-wmii-on-laptops/</link>
		<comments>http://www.symbolengine.com/index.php/2008/03/22/useful-scripts-for-wmii-on-laptops/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 23:18:01 +0000</pubDate>
		<dc:creator>jimqode</dc:creator>
				<category><![CDATA[GNU/linux]]></category>

		<guid isPermaLink="false">http://www.symbolengine.com/index.php/2008/03/22/useful-scripts-for-wmii-on-laptops/</guid>
		<description><![CDATA[wmii has been the my window manager of choice ever since I first saw it. I recently got a shiny Dell M1330 and as anyone can guess Vista did not live longer than 2 hours on it. I had never used wmii on a laptop before and I saw that the default scripts are were [...]]]></description>
			<content:encoded><![CDATA[<p>wmii has been the my window manager of choice ever since I first saw it. I recently got a shiny Dell M1330 and as anyone can guess Vista did not live longer than 2 hours on it. I had never used wmii on a laptop before and I saw that the default scripts are were obviously coded with desktop user in mind. </p>
<ul>
<li>There is no battery indicator</li>
<li>You can&#39;t watch the CPU temperature</li>
<li>and you can&#39;t set the CPU frequency governor</li>
</ul>
<p><span id="more-41"></span><br />
Of course you can use gkrellm for the first two but it does not play nicely with dynamic window managers like wmii. If I wanted to drag windows around I&#39;d use Gnome, thank you. It is much nicer to change the right side of the status bar to show current temperature and battery status.&nbsp;</p>
<p>Beware! This change is for the sh script version of wmiirc. If you are using the other version this may not work.
<p>In file: ~/.wmii-3.5/wmiirc change the part that says </p>
<div class='code_parent'>
<div class='code_title'>Code:</div>
<div class='code_child'><code>
<div class='pre_container'>
<pre># Status Bar Info
status() {
        echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date)
}</pre>
</div>
<p></code></div>
</div>
<p>to</p>
<div class='code_parent'>
<div class='code_title'>Code:</div>
<div class='code_child'><code>
<div class='pre_container'>
<pre># Status Bar Info
status() {
	BAT=`acpi -b`
	LEFT=`echo $BAT | cut -d ',' -f 2`
	TEMP=`acpi -t -B -c | cut -d ',' -f 2 | cut -d "." -f 1`
	LOAD=$(uptime | sed 's/.*://; s/,//g')
	DATE=`date +"%d/%m/%y %R:%S"`
	echo -n T: $TEMP '|' B: $LEFT '|' $LOAD '|' $DATE
}</pre>
</div>
<p></code></div>
</div>
<p>You can of course keep the longer date format by changing &quot;$DATE&quot; to $(date) but I like it shorter.</p>
<p>Now on to the Frequency Governor! You can download the script below and put it in ~/.wmii-3.5 . Don&#39;t forget to make it executable. </p>
<p><a href="http://www.symbolengine.com/download-manager.php?id=11">cpufreq @ SymbolEngine</a></p>
<p>Now when you run the cpufreq action you will be asked for your password. This is because CPU governor can only be changed by root user. After that you&#39;ll get a nice dmenu on top of the screen to choose a governor. </p>
<p>I hope you find these scripts useful. </p>
<img src="http://www.symbolengine.com/?ak_action=api_record_view&id=41&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.symbolengine.com/index.php/2008/03/22/useful-scripts-for-wmii-on-laptops/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Setting up a usb network with GP2X and what you can do with it</title>
		<link>http://www.symbolengine.com/index.php/2007/05/06/setting-up-a-usb-network-with-gp2x-and-what-you-can-do-with-it/</link>
		<comments>http://www.symbolengine.com/index.php/2007/05/06/setting-up-a-usb-network-with-gp2x-and-what-you-can-do-with-it/#comments</comments>
		<pubDate>Sun, 06 May 2007 19:33:06 +0000</pubDate>
		<dc:creator>jimqode</dc:creator>
				<category><![CDATA[GNU/linux]]></category>
		<category><![CDATA[GP2x]]></category>

		<guid isPermaLink="false">http://www.symbolengine.com/index.php/2007/05/06/setting-up-a-usb-network-with-gp2x-and-what-you-can-do-with-it/</guid>
		<description><![CDATA[GP2x is a wonderful device for its portability, power consumption and price tag.&#160; You can do pretty amazing stuff with an out of the box unit. Here is a slice of that: Go to settings/system menu on your GP2x Make sure the IP Address is 10.1.0.1 Turn on telnet, ftp, samba and web servers (You [...]]]></description>
			<content:encoded><![CDATA[<p>GP2x is a wonderful device for its portability, power consumption and price tag.&nbsp; You can do pretty amazing stuff with an out of the box unit. Here is a slice of that:</p>
<ol>
<li>Go to settings/system menu on your GP2x</li>
<li>Make sure the IP Address is 10.1.0.1</li>
<li>Turn on telnet, ftp, samba and web servers (You wont need samba if you are using a real operating system)</li>
</ol>
<p> <span id="more-35"></span>
<p>If you are running Linux:</p>
<ol>
<li>ifconfig usb0 up 10.1.0.2</li>
<li>now you should be able to ping the device with:<br />ping 10.1.0.1 </li>
</ol>
<p>If you are running m$ windows (Who said windows is easier to manage?):</p>
<ol>
<li>You will probably need USB Gadget driver for windows. Most flavors come without it. Download and install:<a href="http://www.microsoft.com/whdc/device/network/NDIS/rndis.mspx" title="USB Gadget Driver"><br />Download USB Gadget Driver for Windows @ M$</a></li>
<li>Turn on your GP2x. A baloon will pop up (don&#39;t you hate them?) to say connection is established.&nbsp; </li>
<li>Go to Control Panel -&gt; Network Connections.</li>
<li>Open TCP/IP properties of &quot;Linux USB Ethernet / RNDIS</li>
<li>Manually configure it with an IP of &quot;10.1.0.2&quot; and a subnet mask of &quot;255.0.0.0&quot;</li>
<li>You should be now able ping your device from command shell with:<br />ping 10.1.0.1 </li>
</ol>
<p>Now you can also telnet to your GP2x, transfer files with samba (means: windows file sharing) or ftp.</p>
<p>There is also a pretty complete web server with even PHP installed running there. PHP I tell ya! Have fun! </p>
<img src="http://www.symbolengine.com/?ak_action=api_record_view&id=35&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.symbolengine.com/index.php/2007/05/06/setting-up-a-usb-network-with-gp2x-and-what-you-can-do-with-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

