<?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>Demenzia &#187; Software</title>
	<atom:link href="http://demenzia.net/category/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://demenzia.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 16 Feb 2010 18:07:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using suspend to disk with eeeXubuntu on a eeePC</title>
		<link>http://demenzia.net/2008/02/22/using-suspend-to-disk-with-eeexubuntu-on-a-eeepc/</link>
		<comments>http://demenzia.net/2008/02/22/using-suspend-to-disk-with-eeexubuntu-on-a-eeepc/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 00:22:15 +0000</pubDate>
		<dc:creator>Reefab</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://demenzia.net/2008/02/22/using-suspend-to-disk-with-eeexubuntu-on-a-eeepc</guid>
		<description><![CDATA[I got a eeePC almost two months ago and I really enjoy using that tiny little thing. It&#8217;s small enough to fit into the front pocket in my photo bag and at less than 1 kg it&#8217;s barely noticeable. The default OS is not that good however, it&#8217;s decent for a basic use of internet [...]]]></description>
			<content:encoded><![CDATA[<p>I got a eeePC almost two months ago and I really enjoy using that tiny little thing. It&#8217;s small enough to fit into the front pocket in my photo bag and at less than 1 kg it&#8217;s barely noticeable. The default OS is not that good however, it&#8217;s decent for a basic use of internet applications but otherwise it feels somehow antiquated and for someone used to Ubuntu it&#8217;s just not very comfortable.That&#8217;s why I installed <a href="http://wiki.eeeuser.com/ubuntu:eeexubuntu:home">eeeXubuntu</a>, a custom Xubuntu made specially for the eee.</p>
<p>But I had an issue with the eeePC, the battery life during standby is atrocious: compared to the laptops I used before, putting the eeePC in standby will drain the battery in less than 24h. It&#8217;s not a software issue but an hardware one (that may be corrected in the future with a bios update). As I have a very on and off utilization of the eeePC, it wasn&#8217;t very practical to either shut it down if I didn&#8217;t plan on using it in the next few hours or letting the battery drain in my bag. There is a simple way to correct that: using suspend to disk (also called hibernate).</p>
<p>Under hibernation, the content of the RAM will be written to disk and restored upon wake up. The issue is that the default system for hibernation for the 2.6 linux kernel needs to have a swap partition that is bigger than the total RAM installed.On a system with a 4GB SSD, with the default install of eeeXubuntu already taking more than 2GB, I had some reticences repartitioning the SSD just for hibernation purposes.</p>
<p>As the swap space would not be used for swap anyways as it seems that using swap on a SSD is apparently not a good idea (there is an ongoing debate on whether modern SSD like the one used in the eee can take the abuse).Anyway that&#8217;s enough introduction, here is a simple way to use hibernation on the eee without having to create a swap partition. The only thing you need is to create a swap file that&#8217;s half the size of the installed RAM in the eeePC. It actually works better for me compared to suspend to ram as I had some issues with the graphic controller not waking up sometimes. Click below for the howto.</p>
<p><strong>UPDATE:</strong> a similar but more clever way of achieving the same goal: <a href="http://www.ubuntu-eee.com/index.php5?title=Fix:_hibernate">Hibernate fix</a> on the eee-ubuntu wiki.</p>
<p><span id="more-77"></span></p>
<p><a rel="lightbox" href="http://demenzia.net/Stuff/upload/dsc-2059.jpg"><img src="http://demenzia.net/Stuff/upload/dsc-2059.jpg" border="0" alt="DSC_2059.jpg" width="300" /></a></p>
<p><a rel="lightbox" href="http://demenzia.net/Stuff/upload/shot.png"><img src="http://demenzia.net/Stuff/upload/shot.png" border="0" alt="shot.png" width="300" /></a></p>
<p></p>
<h3>How-to</h3>
<p>First, create a swap file:</p>
<pre>dd if=/dev/zero of=/swap bs=1024k count=256mkswap /swap</pre>
<p>256MB for the 512MB eeePC.Add this to <code>/etc/fstab</code>:</p>
<pre>/swap	swap	swap	defaults	0	0</pre>
<p>Then, tell the kernel to not use the swap file for swapping:</p>
<pre>sysctl -w vm.swappiness=1</pre>
<p>Modify the last line of <code>/etc/sysctl.conf</code> so it sticks:</p>
<pre>vm.swappiness=1</pre>
<p>You can now activate the swap file:</p>
<pre>swapon /swap</pre>
<p>And now the magic ingredient: <a href="http://suspend.sourceforge.net/"> µswsusp</a>, an alternative suspend method for the linux kernel that can use swap file instead of swap partition and also support other neat features like compression and encryption.Install it:</p>
<pre>aptitude install uswsusp</pre>
<p>(don&#8217;t forget to enable memory compression).To test it:</p>
<pre>s2disk</pre>
<p>It will write the content of the RAM to the swap file and shutdown the eee.Press the power button on the eee to wake it up.To enable this method as the default system for hibernation, edit the following file: <code>/usr/lib/hal/linux/scripts/hal-system-power-hibernate</code>There is a bug in this script, it will look for s2disk in the wrong place, you&#8217;ll have to edit it so it looks like this:</p>
<pre>/sbin/s2disk</pre>
<p>As this script is part of the HAL package, it means that it WILL break if this package is updated, you&#8217;ll have to reedit the above file if hibernate doesn&#8217;t work after an update.</p>
<h3>Caveats</h3>
<p>The console is apparently completely fubared, not a big loss for me.</p>
<h3>References</h3>
<p><a href="http://blog.paulbetts.org/index.php/2007/02/11/fixing-software-suspend-hibernate-with-uswsusp-in-ubuntu-feisty-and-edgy/">Fixing software suspend / hibernate with uswsusp in Ubuntu Feisty (and Edgy)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://demenzia.net/2008/02/22/using-suspend-to-disk-with-eeexubuntu-on-a-eeepc/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Ubuntu Linux and Symfony on a PlayStation 3</title>
		<link>http://demenzia.net/2007/08/21/linux-and-symfony-on-a-ps3/</link>
		<comments>http://demenzia.net/2007/08/21/linux-and-symfony-on-a-ps3/#comments</comments>
		<pubDate>Tue, 21 Aug 2007 20:55:33 +0000</pubDate>
		<dc:creator>Reefab</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://demenzia.net/2007/07/29/linux-and-symfony-on-a-ps3/</guid>
		<description><![CDATA[As said previously on this blog, I now work at Splitgames.com, a company based in Paris, France providing services to gamers where I manage the development of our web projects. We use Symfony as a framework on which to base our projects. Of course, we play quite a bit of video games, have a few [...]]]></description>
			<content:encoded><![CDATA[
<a href="http://demenzia.net/wp-content/gallery/articles/ps3-ubuntu-symfony/_DSC0007.jpg" title="" class="shutterset_singlepic134" >
	<img class="ngg-singlepic" src="http://demenzia.net/wp-content/gallery/cache/134__320x240__DSC0007.jpg" alt="_DSC0007" title="_DSC0007" />
</a>
<br />
As said previously on this blog, I now work at <a href="http://www.splitgames.com">Splitgames.com</a>, a company based in Paris, France providing services to gamers where I manage the development of our web projects. We use <a href="http://www.symfony-project.com/">Symfony</a> as a framework on which to base our projects. Of course, we play quite a bit of video games, have a few console systems laying around and I was wondering about how to bridge this two interests. By the way, if you like video games and Symfony we do have a few openings in our office in Paris. Email me if you are interessed at <a href="mailto:%20jobs@splitgames.com">jobs@splitgames.com</a>.</p>
<p>On my right I had a Playstation 3, on my left I had Symfony, the missing link would prove to be Ubuntu Linux.</p>
<p>Note: Running linux on a playstation 3 is not a hack, it doesn&#8217;t require any hardware modification, won&#8217;t disable any feature on your Playstation 3 and is not difficult to do.</p>
<p><span id="more-60"></span></p>
<p>Sony officially support running linux on your ps3 with dedicated tools present in the XMB ( Cross-mediabar, the UI of the Playstation 3).</p>
<p><em>Caveat: for installing Linux, you will need to format your hard-drive thus losing all the data on it. Fortunately, Sony made a backup utility so you can backup your game&#8217;s save data, game demos and other files very simply.</em></p>
<h3>What&#8217;s needed ?</h3>
<ul>
<li>A CD-R ( or DVD-R, I used a DVR-RW ).</li>
<li>USB Keyboard and mouse.</li>
<li>USB drive or memory card if you want to backup your data beforehand.</li>
<li>Component or HDMI cable if you plan on using the linux GUI ( ie, not use your Playstation 3 as a headless server ).</li>
</ul>
<p>As you can see, the Playstation 3 doesn&#8217;t require any special hardware to use linux as the Playstation 2 did.</p>
<h3>Ubuntu Install</h3>
<p>First, you have to download an iso image of Ubuntu for your PS3.</p>
<p>You can get it there :<br />
<code>http://cdimage.ubuntu.com/custom/20070608-feisty-ps3/ubuntu-7.04-desktop-powerpc+ps3.iso</code></p>
<p>While it&#8217;s downloading, it&#8217;s now a good time to backup your data if you&#8217;d like to.<br />
Plug in a usb-hardrive or a memory card and:</p>
<p>In the XMB, go to Settings -&gt; System Settings -&gt; Backup Utility, follow the on-screen instructions.</p>
<p>Once the backup is done and the image has been burned on a CD/DVD, go back to the XMB, and then:</p>
<p>Settings &gt; System Settings &gt; Format Utility &gt; Format Hard Disk.</p>
<p>Choose Yes.<br />
Select &#8220;Custom partition setting&#8221;<br />
and then &#8220;Allot 10GB to the Other OS&#8221;<br />
followed by  &#8220;Perform a Quick Format.&#8221;<br />
Reboot the PS3 by pressing X on your controller.</p>
<p>You can now insert the Ubuntu CD on your Playstation 3</p>
<p>
<a href="http://demenzia.net/wp-content/gallery/articles/ps3-ubuntu-symfony/_DSC0012.jpg" title="" class="shutterset_singlepic135" >
	<img class="ngg-singlepic" src="http://demenzia.net/wp-content/gallery/cache/135__320x240__DSC0012.jpg" alt="_DSC0012" title="_DSC0012" />
</a>

<p>Settings &gt; System Settings &gt; Install Other OS</p>
<p>Hit X when prompted to start the installer.</p>
<p>This step actually install a bootloader on your system from the CD, it doesn&#8217;t install the other operating system.</p>
<p>Next, Settings &gt; System Settings &gt; Default System ,select &#8220;Other OS&#8221; and reboot.<br />
Don&#8217;t forget to plug in your keyboard and mouse.</p>
<p>You will then see a command prompt kboot: on the screen, just press enter to boot from the CD.</p>
<p>From now on, it&#8217;s a normal Ubuntu install, just click on the installer on the desktop, select the 10GB drive and wait, and then wait some more. The installation is quite slow, much slower than on a comparable computer ( I blame the blu-ray drive ).</p>
<p><em>Caveat: if you are not using the HDMI output on a HDCP compatible screen, the live CD is going to default to NTSC/PAL resolution. Basically, the screen resolution will be too low for the installer application to display all of its window. Just press the &#8220;ALT&#8221; key on your keyboard and drag the window with the mouse to access the buttons on the lower side of the window.</em></p>
<p>After the installation finished and I rebooted into my ubuntu system, I had to make some configuration modification to display a decent resolution over Component cables. See the Notes at the end for the solution to this issue.</p>
<h3>Installing Symfony</h3>

<a href="http://demenzia.net/wp-content/gallery/articles/ps3-ubuntu-symfony/Screenshot.png" title="" class="shutterset_singlepic133" >
	<img class="ngg-singlepic" src="http://demenzia.net/wp-content/gallery/cache/133__320x240_Screenshot.png" alt="Screenshot" title="Screenshot" />
</a>
<br />
Now that you have a fully functional Ubuntu installation, there is a few steps left to accomplish before installing your development environment.</p>
<p>First, launch a terminal and get Super-User privileges and install the essential packages</p>
<p><code>reefab@reefab-desktop:~$ sudo -s<br />
root@reefab-desktop:~# apt-get install php5 php5-cli php5-mysql php-pear</code><br />

<a href="http://demenzia.net/wp-content/gallery/articles/ps3-ubuntu-symfony/Screenshot-2.png" title="" class="shutterset_singlepic129" >
	<img class="ngg-singlepic" src="http://demenzia.net/wp-content/gallery/cache/129__320x240_Screenshot-2.png" alt="Screenshot-2" title="Screenshot-2" />
</a>
<br />
Next, install Symfony using Pear, ( the PHP package manager, the cleanest way in my opinion ).</p>
<p><code><br />
root@reefab-desktop:~# pear channel-discover pear.symfony-project.com<br />
root@reefab-desktop:~# pear install symfony/symfony<br />
</code><br />

<a href="http://demenzia.net/wp-content/gallery/articles/ps3-ubuntu-symfony/Screenshot-3.png" title="" class="shutterset_singlepic131" >
	<img class="ngg-singlepic" src="http://demenzia.net/wp-content/gallery/cache/131__320x240_Screenshot-3.png" alt="Screenshot-3" title="Screenshot-3" />
</a>
<br />
Now create a directory inside /var/www/ that will house your applications.</p>
<p><code><br />
root@reefab-desktop:/var/www# mkdir symfony-test<br />
</code></p>
<p>And create your project and one application.</p>
<p><code><br />
root@reefab-desktop:/var/www/symfony-test# symfony init-project test<br />
root@reefab-desktop:/var/www/symfony-test# symfony init-app frontend<br />
</code></p>
<p>We now need to make some configuration in Apache to enable this application.</p>
<p>Create a new file in the site-available/ directory of the apache configuration</p>
<p><code><br />
root@reefab-desktop:/var/www/symfony-test# vi /etc/apache2/sites-available/symfony-test<br />
</code></p>
<p><code><br />
&lt;VirtualHost *:80&gt;<br />
ServerName symfony-test<br />
DocumentRoot "/var/www/symfony-test/web"<br />
DirectoryIndex index.php<br />
Alias /sf /usr/share/php/data/symfony/web/sf<br />
&lt;Directory "/usr/share/php/data/symfony/web/sf/"&gt;<br />
AllowOverride All<br />
Allow from All<br />
&lt;/Directory&gt;<br />
&lt;Directory "/var/www/symfony-test/web"&gt;<br />
AllowOverride All<br />
Allow from All<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;<br />
</code></p>
<p>And enable this site:</p>
<p><code><br />
root@reefab-desktop:/var/www/symfony-test# a2ensite<br />
Which site would you like to enable?<br />
Your choices are: default symfony-test<br />
Site name? symfony-test<br />
Site symfony-test installed; run /etc/init.d/apache2 reload to enable.<br />
root@reefab-desktop:/var/www/symfony-test# /etc/init.d/apache2 reload<br />
</code></p>
<p>the &#8220;symfony-test&#8221; hostname doesn&#8217;t exists so you may have to edit your /etc/hosts file and add it at the end of the line 127.0.0.1 or the one that start with the ip address of your system.</p>
<p>Example:</p>
<p><code><br />
127.0.0.1       localhost symfony-test<br />
</code></p>
<p>Now point your browser to http://symfony-test/ and there you are, a fully functional symfony installation on your Playstation 3 !<br />

<a href="http://demenzia.net/wp-content/gallery/articles/ps3-ubuntu-symfony/Screenshot-4.png" title="" class="shutterset_singlepic132" >
	<img class="ngg-singlepic" src="http://demenzia.net/wp-content/gallery/cache/132__320x240_Screenshot-4.png" alt="Screenshot-4" title="Screenshot-4" />
</a>

<h3>Notes</h3>
<p>If you have a hdmi hdcp compatible display, you can just skip this part.</p>
<p>First, go to a system Console ( press CTRL-ALT-F1 for example ).<br />
You may have an issue with debug message scrolling on the screen and preventing you to actually see what you are typing.</p>
<p>So, you will have to login in and typing &#8220;dmesg -n 1&#8243; to stop the kernel message being displayed on the consoles.</p>
<p>Now, use sudo to gain super-user privileges:</p>
<p><code>sudo -s</code></p>
<p>I then used the &#8220;<code>ps3videomode</code>&#8221; utility, just run it once to get a list of all video mode supported.</p>
<p>Then, you&#8217;ll have to try some to get on that will works on your display, if the screen become garbled, just press the up arrow and change the number to the default mode. This can get tricky.</p>
<p>I used vidmode number 4: YUV60Hz &#8211; 1080i</p>
<p>Now you have to edit /etc/kboot.conf and edit the default entry so it reads:</p>
<p><code>linux='/boot/vmlinux-2.6.16 initrd=/boot/initrd.img video=ps3fb:mode:##'</code></p>
<p>with ## being the vidmode you found. Then edit your xorg to add the resolution.</p>
<p>Your system will now have the correct resolution.</p>
]]></content:encoded>
			<wfw:commentRss>http://demenzia.net/2007/08/21/linux-and-symfony-on-a-ps3/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Macirssi 0.8.0 for intel</title>
		<link>http://demenzia.net/2006/10/11/macirssi-080-for-intel/</link>
		<comments>http://demenzia.net/2006/10/11/macirssi-080-for-intel/#comments</comments>
		<pubDate>Wed, 11 Oct 2006 03:20:17 +0000</pubDate>
		<dc:creator>Reefab</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://demenzia.net/archives/53</guid>
		<description><![CDATA[UPDATE: there is a new version of Macirssi, 0.8.1 that is now an universal binary, you can donwload it here. The below unofficial port should not be used anymore.
On a side note, I recommend using Colloquy instead of MacIrssi as it is a more mature client. Don&#8217;t be fooled by the graphic intensive themes, I [...]]]></description>
			<content:encoded><![CDATA[<p><b>UPDATE:</b> <i>there is a new version of Macirssi, 0.8.1 that is now an universal binary, you can donwload it <a href="http://www.g1m0.se/macirssi/">here</a>. The below unofficial port should not be used anymore.</i></p>
<p><i>On a side note, I recommend using <a href="http://colloquy.info/">Colloquy</a> instead of MacIrssi as it is a more mature client. Don&#8217;t be fooled by the graphic intensive themes, I can be coerced in looking and feeling like a text client.</i></p>
<p>I&#8217;ve been looking for a long time for a native intel version of <a href="http://www.g1m0.se/macirssi/">Macirssi</a> 0.8.0, as the author didn&#8217;t update the software in now more than a year, I only managed to find the PPC version of 0.8.0 and an unofficial 0.7.0 intel build.</p>
<p>So after wrestling in the dark with Xcode, I managed to build an intel-only version of 0.8.0.</p>
<p>You can download it here: <a href="http://demenzia.net/Stuff/MacIrssi-0.8.0-intel.dmg">Unofficial MacIrssi 0.8.0 Intel only</a></p>
<p>Disclaimer: this is not an official build of MacIrssi, there is no warranty whatsoever and I&#8217;m not the author of MacIrssi.</p>
<p>On that note, I&#8217;m currently trying to make it works better with light backgrounds. Some of the text color preferences works strangely, the foreground color of the nick and channel list seems to be reset to white at each startup despite the color preferences being set differently. I&#8217;m trying to figure out where some of the colors are set between the irssi themes, the preferences and the source code, I already found out that the url color is hardcoded.</p>
]]></content:encoded>
			<wfw:commentRss>http://demenzia.net/2006/10/11/macirssi-080-for-intel/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
