<?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>Ninetynine.be</title>
	<atom:link href="http://ninetynine.be/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://ninetynine.be/blog</link>
	<description>Just another blog with no usefull content on it at all.</description>
	<lastBuildDate>Fri, 21 May 2010 19:57:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Quick workaround for missing &#8220;switch-display&#8221;-key or &#8220;lcd/crt&#8221;-key on Ubuntu</title>
		<link>http://ninetynine.be/blog/2010/05/quick-workaround-for-missing-switch-display-key-or-lcdcrt-key-on-ubuntu/</link>
		<comments>http://ninetynine.be/blog/2010/05/quick-workaround-for-missing-switch-display-key-or-lcdcrt-key-on-ubuntu/#comments</comments>
		<pubDate>Fri, 21 May 2010 19:53:52 +0000</pubDate>
		<dc:creator>ruben</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[switch displays]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=599</guid>
		<description><![CDATA[What a wonderful day it is, sir
It&#8217;s been a while since I wrote something, but I liked to share this with you all. I bought a new Dell Studio 1558 and all the fn-keys were working except the one to switch the displays&#8230;
I enjoy switching between dual-screen, using only my external 22&#8243; or using only [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ninetynine.be/blog/wp-content/uploads/2010/05/Schermafdruk-Sneltoetsen.png" title="gnome-keybinding-properties" rel="lightbox[599]"><img class="size-medium wp-image-603 alignright" title="gnome-keybinding-properties" src="http://ninetynine.be/blog/wp-content/uploads/2010/05/Schermafdruk-Sneltoetsen-300x141.png" alt="gnome-keybinding-properties" width="300" height="141" /></a><strong>What a wonderful day it is, sir</strong></p>
<p>It&#8217;s been a while since I wrote something, but I liked to share this with you all. I bought a new Dell Studio 1558 and all the fn-keys were working except the one to switch the displays&#8230;</p>
<p>I enjoy switching between dual-screen, using only my external 22&#8243; or using only my laptop, when I&#8217;m on the road. So I was looking for a workaround.</p>
<p>This laptop, is my first machine with Ubuntu that uses an ATI graphics chip, so this was all quite new to me. But I have to say; I&#8217;m very very pleased with it.</p>
<p>Ok, so what do you have to do to get things working?</p>
<p><strong>1. Create the script</strong><br />
Create the script, I called it toggleDisplay.sh and this is how it looks in my case:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># Script to toggle display configuration on Dell Studio 1558</span>
<span style="color: #666666; font-style: italic;"># author: Ruben Verhack</span>
&nbsp;
<span style="color: #007800;">config</span>=<span style="color: #ff0000;">&quot;/tmp/display.conf&quot;</span>
<span style="color: #007800;">current</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$config</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Check if config exists</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-a</span> <span style="color: #007800;">$config</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
   <span style="color: #666666; font-style: italic;"># Empty file executes default</span>
   <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #007800;">$config</span>;
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Check if CRT2 is connected</span>
<span style="color: #000000; font-weight: bold;">if</span> xrandr <span style="color: #660033;">-q</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;CRT2 connected&quot;</span>
<span style="color: #000000; font-weight: bold;">then</span>
   <span style="color: #666666; font-style: italic;"># Toggle between states</span>
   <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$current</span>&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
   <span style="color: #ff0000;">''</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
      <span style="color: #666666; font-style: italic;"># default</span>
      xrandr <span style="color: #660033;">--output</span> LVDS <span style="color: #660033;">--auto</span> <span style="color: #660033;">--output</span> CRT2 <span style="color: #660033;">--left-of</span> LVDS <span style="color: #660033;">--output</span> CRT2 <span style="color: #660033;">--auto</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;dual&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$config</span>
      <span style="color: #000000; font-weight: bold;">;;</span>
   <span style="color: #ff0000;">'dual'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
      <span style="color: #666666; font-style: italic;"># was dual, now external only</span>
      xrandr <span style="color: #660033;">--output</span> LVDS <span style="color: #660033;">--off</span> <span style="color: #660033;">--output</span> CRT2 <span style="color: #660033;">--auto</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;external&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$config</span>
      <span style="color: #000000; font-weight: bold;">;;</span>
   <span style="color: #ff0000;">'external'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
      <span style="color: #666666; font-style: italic;"># was external, now laptop only</span>
      xrandr <span style="color: #660033;">--output</span> LVDS <span style="color: #660033;">--auto</span> <span style="color: #660033;">--output</span> CRT2 <span style="color: #660033;">--off</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;laptop&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$config</span>
      <span style="color: #000000; font-weight: bold;">;;</span>
   <span style="color: #ff0000;">'laptop'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
      <span style="color: #666666; font-style: italic;"># was laptop, now both</span>
      xrandr <span style="color: #660033;">--output</span> LVDS <span style="color: #660033;">--auto</span> <span style="color: #660033;">--output</span> CRT2 <span style="color: #660033;">--left-of</span> LVDS <span style="color: #660033;">--output</span> CRT2 <span style="color: #660033;">--auto</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;dual&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$config</span>
      <span style="color: #000000; font-weight: bold;">;;</span>
   <span style="color: #000000; font-weight: bold;">esac</span>
<span style="color: #000000; font-weight: bold;">else</span>
   xrandr <span style="color: #660033;">--output</span> LVDS <span style="color: #660033;">--auto</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>This toggles your displays from dual screen to external only to laptop only, and from there to dual screen again. Note that my monitors were called LVDS and CRT2, you can easily check how your monitors are called by executing:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xrandr <span style="color: #660033;">-q</span></pre></div></div>

<p><span id="more-599"></span><br />
It&#8217;s pretty easy, huh?</p>
<p><strong>2. Bind the key to the script</strong><br />
Make sure you given the script rights to be executed, let&#8217;s assume you&#8217;ve put the shell script in your home-folder.<br />
<code>chmod +x ~/toggleDisplay.sh</code></p>
<p>Next launch Gnome Keybinding by launching System &gt; Preferences &gt; Keybindings .</p>
<p>Add a custom action:<br />
- Name: Toggle Displays<br />
- Action: sh ~/toggleDisplay.sh</p>
<p>Select it, click on the shortcut and press the key you want to bind to this action and presto!</p>
<p>I hope this helped someone!</p>
]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2010/05/quick-workaround-for-missing-switch-display-key-or-lcdcrt-key-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Doc? v3.0 BETA released</title>
		<link>http://ninetynine.be/blog/2009/12/doc-v3-0-beta-released/</link>
		<comments>http://ninetynine.be/blog/2009/12/doc-v3-0-beta-released/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 10:43:21 +0000</pubDate>
		<dc:creator>michiel</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Doc?]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=585</guid>
		<description><![CDATA[Yesterday we&#8217;ve released a public beta from the new Doc? (v3.0)
Go and check it out at www.airdoc.be!

Here are some of the most important new features :

 	&#9679;	 Minimize/Close to tray (WINDOWS)
 	&#9679;	 Local Books
 	&#9679;	 Online Books Download
 	&#9679;	 Inline Search
 	&#9679;	 Performance Upgrade (SQLITE)
 	&#9679;	 Custom tree icons
 	&#9679;	 Complete design makeover

Take a look [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday we&#8217;ve released a public beta from the new Doc? (v3.0)<br />
Go and check it out at <a href="http://www.airdoc.be/">www.airdoc.be</a>!</p>
<p><a href="http://www.airdoc.be/"><img src="http://ninetynine.be/blog/wp-content/uploads/2009/12/feature_doc.png" alt="Doc? Air Local Livedocs" title="Doc? Air Local Livedocs" width="515" height="340" class="aligncenter size-full wp-image-586" /></a></p>
<p>Here are some of the most important new features :</p>
<ul style="list-style-type: square;">
<li> 	&#9679;	 Minimize/Close to tray (WINDOWS)</li>
<li> 	&#9679;	 Local Books</li>
<li> 	&#9679;	 Online Books Download</li>
<li> 	&#9679;	 Inline Search</li>
<li> 	&#9679;	 Performance Upgrade (SQLITE)</li>
<li> 	&#9679;	 Custom tree icons</li>
<li> 	&#9679;	 Complete design makeover</li>
</ul>
<p>Take a look on our website to learn more &#8230;</p>
<p><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/12/doc-v3-0-beta-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex: TabNavigator Label Jump (Quick Fix)</title>
		<link>http://ninetynine.be/blog/2009/12/flex-tabnavigator-label-jump-quick-fix/</link>
		<comments>http://ninetynine.be/blog/2009/12/flex-tabnavigator-label-jump-quick-fix/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 11:38:03 +0000</pubDate>
		<dc:creator>michiel</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=543</guid>
		<description><![CDATA[Hey,
Somethings been bugging me while skinning a flex application :
The label from the selected tab from the TabNavigator component is 1px lower than the other tabs. As you can see in the example.
(It has something to to with the bottom border I&#8217;m guessing).
 This can help as a visual support you are on a different [...]]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>Somethings been bugging me while skinning a flex application :</p>
<p>The label from the selected tab from the <a href="http://livedocs.adobe.com/flex/3/langref/mx/containers/TabNavigator.html">TabNavigator</a> component is 1px lower than the other tabs. As you can see in the example.<br />
(It has something to to with the bottom border I&#8217;m guessing).</p>
<p> This can help as a visual support you are on a different tab, but I found it rather annoying, so here is my fix for it.<br />
A quick fix by changing the &#8220;<em>paddingTop</em>&#8221; property.</p>
<p><br/><br />
View source is enabled so can download the example there.<br />
<a href="http://ninetynine.be/blog/wp-content/uploads/2009/12/srcview/index.html">http://ninetynine.be/blog/wp-content/uploads/2009/12/srcview/index.html</a><br />

<object width="500" height="100">
<param name="movie" value="http://ninetynine.be/blog/wp-content/uploads/2009/12/TabNavFix.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<embed type="application/x-shockwave-flash" width="500" height="100" src="http://ninetynine.be/blog/wp-content/uploads/2009/12/TabNavFix.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
<br />
Code after the jump.<br/><br/></p>
<p><span id="more-543"></span><br/></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
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">IndexChangedEvent</span>;
<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">FlexEvent</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">/*
*	@author: Michiel Vancoillie
*	http://www.ninetynine.be
*/</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">//fix the first selected tab</span>
	fixedTabNav.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ADDED_TO_STAGE</span>,onTabNavCreated<span style="color: #66cc66;">&#41;</span>;
	<span style="color: #808080; font-style: italic;">//fix the newly selected tab</span>
	fixedTabNav.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>IndexChangedEvent.<span style="color: #006600;">CHANGE</span>,onTabNavChanged<span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #808080; font-style: italic;">//JUST ADD THE SAME EVENTLISTENERS TO ALL TABNAVIGATORS YOU WANT FIXED</span>
	<span style="color: #808080; font-style: italic;">//notfixedTabNav.addEventListener(Event.ADDED_TO_STAGE,onTabNavCreated);</span>
	<span style="color: #808080; font-style: italic;">//notfixedTabNav.addEventListener(IndexChangedEvent.CHANGE,onTabNavChanged);</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onTabNavCreated<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> tabNav:TabNavigator = <span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">target</span> as TabNavigator;
	tabNav.<span style="color: #006600;">getTabAt</span><span style="color: #66cc66;">&#40;</span>tabNav.<span style="color: #006600;">selectedIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'paddingTop'</span>,-<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onTabNavChanged<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:IndexChangedEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> tabNav:TabNavigator = <span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">target</span> as TabNavigator;
	<span style="color: #808080; font-style: italic;">//reset the old tab</span>
	tabNav.<span style="color: #006600;">getTabAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">oldIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'paddingTop'</span>,<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #808080; font-style: italic;">//fix the new tab</span>
	tabNav.<span style="color: #006600;">getTabAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">newIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'paddingTop'</span>,-<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/12/flex-tabnavigator-label-jump-quick-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>shAirUp : FTP Screenshot Uploader in AIR</title>
		<link>http://ninetynine.be/blog/2009/10/shairup-ftp-screenshot-uploader-in-air/</link>
		<comments>http://ninetynine.be/blog/2009/10/shairup-ftp-screenshot-uploader-in-air/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 20:26:50 +0000</pubDate>
		<dc:creator>michiel</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=533</guid>
		<description><![CDATA[Hey all, released v 1.0 from shAirUp today, I&#8217;ve dedicated a page to it. Check it out what it does and how to use it :
http://ninetynine.be/blog/shairup/
]]></description>
			<content:encoded><![CDATA[<p><img src="http://ninetynine.be/blog/wp-content/uploads/2009/10/icon_48x48.png" alt="icon_48x48" title="shAirUp" width="48" height="48" class="alignleft size-full wp-image-330" />Hey all, released v 1.0 from shAirUp today, I&#8217;ve dedicated a page to it. Check it out what it does and how to use it :<br />
<a href="http://ninetynine.be/blog/shairup/">http://ninetynine.be/blog/shairup/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/10/shairup-ftp-screenshot-uploader-in-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MamppControl : Xampp/Mampp Tray Launcher</title>
		<link>http://ninetynine.be/blog/2009/05/mamppcontrol-xampp-tray-launcher/</link>
		<comments>http://ninetynine.be/blog/2009/05/mamppcontrol-xampp-tray-launcher/#comments</comments>
		<pubDate>Sun, 24 May 2009 14:21:42 +0000</pubDate>
		<dc:creator>michiel</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Xampp]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=207</guid>
		<description><![CDATA[
Hey,
Yesterday I had some spare time, so I decided to take a look at the Cocoa collection of frameworks, APIs, and accompanying runtimes that make up the development layer of Mac OS X.
I&#8217;ve created this first application with XCode in Objective-C and named it MamppControl. 
It allows you to start, stop, reload Mampp from the [...]]]></description>
			<content:encoded><![CDATA[<p><br/><div id="attachment_218" class="wp-caption aligncenter" style="width: 560px"><img src="http://ninetynine.be/blog/wp-content/uploads/2009/05/mamppcontrol.jpg" alt="MamppControl" title="MamppControl" width="550" height="165" class="size-full wp-image-218" /><p class="wp-caption-text">MamppControl</p></div><br/></p>
<p>Hey,</p>
<p>Yesterday I had some spare time, so I decided to take a look at the <a href="http://developer.apple.com/cocoa/">Cocoa</a> collection of frameworks, APIs, and accompanying runtimes that make up the development layer of Mac OS X.<br />
I&#8217;ve created this first application with XCode in <a href="http://nl.wikipedia.org/wiki/Objective_C">Objective-C</a> and named it MamppControl. </p>
<p>It allows you to start, stop, reload Mampp from the tray, with a handy tray icon &amp; menu.<br />
Mampp is the other name for Xampp on Mac. </p>
<blockquote><p>XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use &#8211; just download, extract and start.</p></blockquote>
<p>More information about Xampp <a href="http://www.apachefriends.org/en/xampp.html">here</a>.</p>
<p>I know that there is a launcher includes in the xampp package, but it has no tray icon and stay&#8217;s visible in the dock.</p>
<p><br/><span id="more-207"></span></p>
<p><div id="attachment_227" class="wp-caption aligncenter" style="width: 560px"><img src="http://ninetynine.be/blog/wp-content/uploads/2009/05/xampp-control-panel.jpg" alt="Default Xampp Control Panel" title="Xampp Control Panel" width="550" height="500" class="size-full wp-image-227" /><p class="wp-caption-text">Default Xampp Control Panel</p></div><br />
<br/><br />
<strong>Notes</strong><br />
<br/></p>
<p>At the moment Mampp supports only the basic commands (start, stop, reload). If there is need for the other start/stop settings, contact me through the contact page on this blog or shout it here in the comments. </p>
<p>Mampp needs root access to start the xampp, that&#8217;s why you get the security login at start.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>xampp<span style="color: #000000; font-weight: bold;">/</span>xamppfiles<span style="color: #000000; font-weight: bold;">/</span>mampp start</pre></td></tr></table></div>

<p>You only have to do this once for the lifetime of the process. And when you change the path setting.</p>
<p>Also keep in mind that there could be some delay when starting or stopping Xampp, since ProFTPD usually takes a few seconds to launch (at least on my laptop it does <img src='http://ninetynine.be/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).</p>
<p>MamppControl checks if Xampp is already running on startup, and behaves appropriately with that knowledge &#8230; </p>
<p><br/><br />
<strong>Screenshots</strong></p>
<p><a rel="lightbox[MamppControl]" href="http://ninetynine.be/blog/wp-content/uploads/2009/05/mamppcontrol-quicksilver.jpg"><div id="attachment_213" class="wp-caption alignleft" style="width: 110px">&nbsp;<img src="http://ninetynine.be/blog/wp-content/uploads/2009/05/mamppcontrol-quicksilver-thumb.jpg" alt="MamppControl Quicksilver" title="MamppControl Quicksilver Thumb" width="100" height="100" class="size-full wp-image-213" /><p class="wp-caption-text">&nbsp;Quicksilver</p></div></a><a href="http://ninetynine.be/blog/wp-content/uploads/2009/05/mamppcontrol-security.jpg" rel="lightbox[MamppControl]"><div id="attachment_215" class="wp-caption alignleft" style="width: 110px">&nbsp;<img src="http://ninetynine.be/blog/wp-content/uploads/2009/05/mamppcontrol-security-thumb.jpg" alt="MamppControl Security" title="MamppControl Security Thumb" width="100" height="100" class="size-full wp-image-215" /><p class="wp-caption-text">&nbsp;Security&nbsp;login</p></div></a><a rel="lightbox[MamppControl]" href="http://ninetynine.be/blog/wp-content/uploads/2009/05/mamppcontrol-icon.jpg"><div id="attachment_209" class="wp-caption alignleft" style="width: 110px">&nbsp;<img src="http://ninetynine.be/blog/wp-content/uploads/2009/05/mamppcontrol-icon-thumb.jpg" alt="MamppControl Icon" title="MamppControl Icon Thumb" width="100" height="100" class="size-full wp-image-209" /><p class="wp-caption-text">&nbsp;Tray&nbsp;Icon</p></div></a><a href="http://ninetynine.be/blog/wp-content/uploads/2009/05/mamppcontrol-menu.jpg" rel="lightbox[MamppControl]"><div id="attachment_211" class="wp-caption alignleft" style="width: 110px">&nbsp;<img src="http://ninetynine.be/blog/wp-content/uploads/2009/05/mamppcontrol-menu-thumb.jpg" alt="MamppControl Menu" title="MamppControl Menu Thumb" width="100" height="100" class="size-medium wp-image-211" /><p class="wp-caption-text">&nbsp;Tray&nbsp;Menu</p></div></a></p>
<p><br style="clear:left;"/><br />
<strong>Download</strong></p>
<p>MamppControl is licensed under the MIT license.</p>
<blockquote><p>Copyright (c) 2009 Ninetynine.be</p>
<p>Permission is hereby granted, free of charge, to any person<br />
obtaining a copy of this software and associated documentation<br />
files (the &#8220;Software&#8221;), to deal in the Software without<br />
restriction, including without limitation the rights to use,<br />
copy, modify, merge, publish, distribute, sublicense, and/or sell<br />
copies of the Software, and to permit persons to whom the<br />
Software is furnished to do so, subject to the following<br />
conditions:</p>
<p>The above copyright notice and this permission notice shall be<br />
included in all copies or substantial portions of the Software.</p>
<p>THE SOFTWARE IS PROVIDED &#8220;AS IS&#8221;, WITHOUT WARRANTY OF ANY KIND,<br />
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES<br />
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND<br />
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT<br />
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,<br />
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING<br />
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR<br />
OTHER DEALINGS IN THE SOFTWARE.
</p></blockquote>
<p><br/><br />
<b>Download : </b><a href="http://ninetynine.be/blog/wp-content/plugins/download-monitor/download.php?id=1" title="Download MamppControl">MamppControl</a> - 116.76 KB<br />
<br/><br />
Current version: 2.0<br />
Requirements:<br/><br />
&nbsp;&nbsp;&nbsp;&#8226; Mac OS X 10.5 or higher.<br />
&nbsp;&nbsp;&nbsp;&#8226; Xampp installation @( /Applications/xampp/xamppfiles/mampp )</p>
<p><br/><br />
<b>Version History</b> </p>
<p><em>v1.0</em></p>
<ul>
<li>First public release</li>
</ul>
<p><em>v2.0</em></p>
<ul>
<li>Added support for latest Xampp for Mac OSX (1.0.1)</li>
<li>Added option to choose path to &#8220;xampp&#8221; executable</li>
<li>Added complete events for starting &#038; stopping &#038; reloading</li>
<li>Some minor changes internally</li>
</ul>
<p><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/05/mamppcontrol-xampp-tray-launcher/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Use CodeIgniter on localhost with Ubuntu Jaunty</title>
		<link>http://ninetynine.be/blog/2009/05/use-codeigniter-on-localhost-with-ubuntu-jaunty/</link>
		<comments>http://ninetynine.be/blog/2009/05/use-codeigniter-on-localhost-with-ubuntu-jaunty/#comments</comments>
		<pubDate>Sat, 02 May 2009 11:22:55 +0000</pubDate>
		<dc:creator>ruben</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xampp]]></category>
		<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=195</guid>
		<description><![CDATA[Hi,
As a PHP developer it comes in handy to run your websites without having to upload them to your server. You can run them on your own computer if you want to, there isn&#8217;t much to it. I also like using the CodeIgniter framework for my projects, this is a really speeds up the whole [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>As a PHP developer it comes in handy to run your websites without having to upload them to your server. You can run them on your own computer if you want to, there isn&#8217;t much to it. I also like using the <a href="http://www.codeigniter.com">CodeIgniter framework</a> for my projects, this is a really speeds up the whole process!</p>
<p>I will take you through the basic steps to set up your localhost to get CodeIgniter running.<br />
<strong><br />
1) Use Synaptic package manager to install &#8220;apache2&#8243;, &#8220;php5&#8243; and &#8220;mysql-server&#8221;.</strong></p>
<p>During the installation you will be asked to enter the password for the root user for your mysql-server.</p>
<p><strong>2) Create a symbolic link, so that when you go to localhost in your browser, you get the website you want.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-r</span> www<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>website www</pre></div></div>

<p>Always look before you delete something with &#8220;rm -r&#8221;, normally there should only be a index.html file in your www/ folder.</p>
<p>I prefer creating a link to my website that I put somewhere in my home directory, as this is being back-upped frequently, and is on another partition.<br />
<br/><span id="more-195"></span><br />
<strong><br />
3) Install the package &#8220;phpmyadmin&#8221; through synaptic.</strong></p>
<p>It is important that you wait to install phpmyadmin until you have installed the other packages and created the symbolic link. Otherwise it can be a mess to get things running.</p>
<p><strong>4) To allow mod-rewrite, to get the clean CodeIgniter URL&#8217;s, you need to do the following.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod rewrite
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-available<span style="color: #000000; font-weight: bold;">/</span>default</pre></div></div>

<p>You will see something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">        DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/&gt;</span>
                Options FollowSymLinks
                AllowOverride None
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/&gt;</span>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Change the AllowOverride&#8217;s to All.</p>
<p><strong>5) Restart Apache</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

<p>This wasn&#8217;t so hard, and it really makes life easier!</p>
<p>Note: You can&#8217;t use the function mail() or CodeIgniter&#8217;s mail-class without further configuration. I won&#8217;t go into details about this.</p>
<p>Also note that there are many ways to tackle this, this is only one easy suggestion. If you need to switch a lot between different websites, then changing the symbolic link each time is too much work. You can check out <a href="http://www.debian-administration.org/articles/412">this article here</a>.</p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/05/use-codeigniter-on-localhost-with-ubuntu-jaunty/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Photoshop CS4 on Ubuntu 9.04</title>
		<link>http://ninetynine.be/blog/2009/04/photoshop-cs4-on-ubuntu-904/</link>
		<comments>http://ninetynine.be/blog/2009/04/photoshop-cs4-on-ubuntu-904/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 20:08:07 +0000</pubDate>
		<dc:creator>ruben</dc:creator>
				<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=181</guid>
		<description><![CDATA[Yes, it is possible! To my own suprise, I was able to install Photoshop CS4 on Ubuntu.
I did it on a fresh install of Ubuntu 9.04 RC. It has known to work on Ubuntu 8.10, but it gave me a segmentation fault, probably because I had been messing around  . I tested it with [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ninetynine.be/blog/wp-content/uploads/2009/04/pscs4ubuntu9042-300x177.png" alt="Photoshop 9.04 on Ubuntu" title="Photoshop 9.04 on Ubuntu" width="300" height="177" class="alignleft size-medium wp-image-193" />Yes, it is possible! To my own suprise, I was able to install Photoshop CS4 on Ubuntu.</p>
<p>I did it on a fresh install of Ubuntu 9.04 RC. It has known to work on Ubuntu 8.10, but it gave me a segmentation fault, probably because I had been messing around <img src='http://ninetynine.be/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . I tested it with the trial version downloaded from <a href="http://adobe.com">adobe.com</a>.</p>
<p>To do so, you need <a href="http://www.winehq.org/">Wine</a>. I will take you through the steps that I&#8217;ve taken:<br />
<br/><span id="more-181"></span></p>
<p>1. If you have used wine before, please start of with a clean .wine folder. Or bottle you Photoshop by doing every action with a specific wineprefix.<br />
2. Install Wine 1.1.16 from <a href="http://wine.budgetdedicated.com/archive/index.html">here</a>.<br />
3. Download winetricks and install necessary libraries. Also make sure you have a decent driver for your graphics card installed.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.kegel.com<span style="color: #000000; font-weight: bold;">/</span>wine<span style="color: #000000; font-weight: bold;">/</span>winetricks
<span style="color: #c20cb9; font-weight: bold;">sh</span> winetricks msxml6 gdiplus gecko vcrun2005
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> msttcorefonts</pre></div></div>

<p>3. If you have a non-english Ubuntu installed please put LANG=C before the following command like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">LANG</span>=C wine Setup.exe</pre></div></div>

<p>4. Install Wine 1.1.19 from <a href="http://wine.budgetdedicated.com/archive/index.html">here</a>, to fix the menu bar bug.<br />
5. To fix the text-layer bug, put atmlib.dll in &#8220;~/.wine/drive_c/windows/system 32&#8243;. You can download it from several places if you search it on google.<br />
6. Run it!</p>
<p>It was tested on an amd64 and i386.</p>
<p>The reason why you have to set the &#8220;LANG&#8221; variable, is that Photoshop searches for files in &#8220;Program files&#8221;, if you don&#8217;t set it, wine installs it into a local translation of Program files.</p>
<p>Very happy that Wine made such a big progress over the last years. But there are a lot of regressions in the last versions. That is the reason you sometimes have to try other versions of wine for the installer. But 1.1.16 and 1.1.19 are not stable versions, so I forgive them. Last version that was declared stable till today was 1.0.1.</p>
<p>I also got Ableton 7 and MS Office Excel, Word and Powerpoint 2007 working with wine!</p>
<p>Big thanks to Quitte for helping me out.</p>
]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/04/photoshop-cs4-on-ubuntu-904/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Flex: Runtime font embedding using compiled CSS with loader</title>
		<link>http://ninetynine.be/blog/2009/04/flex-runtime-font-embedding-using-compiled-css-with-loader/</link>
		<comments>http://ninetynine.be/blog/2009/04/flex-runtime-font-embedding-using-compiled-css-with-loader/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 19:57:52 +0000</pubDate>
		<dc:creator>michiel</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=118</guid>
		<description><![CDATA[A missing feature in Flex is the ability to load fonts at runtime. 
&#8216;Why is this useful?&#8217;, you could ask. Well one situation is you&#8217;re creating an online rich text editor, and you want to add a font
to the font list. You would only have to edit the css and upload the new swf instead [...]]]></description>
			<content:encoded><![CDATA[<p>A missing feature in Flex is the ability to load fonts at runtime. </p>
<p>&#8216;Why is this useful?&#8217;, you could ask. Well one situation is you&#8217;re creating an online rich text editor, and you want to add a font<br />
to the font list. You would only have to edit the css and upload the new swf instead of the whole application. Or you want a client<br />
to be able to add fonts without him having the source code from the application.</p>
<p><br/>Luckily it&#8217;s possible in Flex to load runtime CSS compiled as an SWF with the StyleManager class.<br />
<a href="http://livedocs.adobe.com/flex/gumbo/langref/mx/styles/StyleManager.html">StyleManager on LiveDocs</a></p>
<p>Fonts.css Example :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@font-face {</span>
    src<span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;fonts/Arial.ttf&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
    fontFamily<span style="color: #00AA00;">:</span><span style="color: #ff0000;">&quot;Arial&quot;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><strong>How to compile the CSS to SWF?</strong><br/><br />
<span id="more-118"></span><br />
<img src="http://ninetynine.be/blog/wp-content/uploads/2009/04/compile-css-to-swf.png" alt="Flex Builder Compile CSS to SWF" title="Flex Builder Compile CSS to SWF" width="216" height="59" class="alignleft size-full wp-image-131"   style="border:1px solid #C0C0C0"/><br />
In Flex Builder you can right click any CSS inside your source and check the &#8220;compile CSS to SWF&#8221; option.<br />
<br/><br />
An alternative way to compile the CSS to SWF is using the command line :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">mxmlc Fonts.css</pre></td></tr></table></div>

<p><br/><br />
<strong>Loading the compiled stylesheet</strong></p>
<p>For the example where we just compiled the Fonts.css to Fonts.swf</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">styles</span>.<span style="color: #006600;">StyleManager</span>;
&nbsp;
StyleManager.<span style="color: #006600;">loadStyleDeclarations</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Fonts.swf&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>It&#8217;s as simple as that&#8230;  you can now start using the font.<br />
The nice thing about this is you can now load your fonts visually using an intermediate loader or animation.<br />
<br/><br />
<strong>Loading the stylesheet visually with intermediate loader</strong></p>
<p>First thing we do is create a custom titlewindow with a preloader in it to show the loading.<br />
We can catch the <strong>StyleEvent.COMPLETE</strong> with an <strong>IEventDispatcher</strong>.<br />
Right click the example for the source code.</p>
<p>
<object width="500" height="100">
<param name="movie" value="http://ninetynine.be/blog/wp-content/uploads/2009/04/fontEmbedding.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<embed type="application/x-shockwave-flash" width="500" height="100" src="http://ninetynine.be/blog/wp-content/uploads/2009/04/fontEmbedding.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
<p><br/><br />
You can use this to &#8216;preload&#8217; any stylesheet.</p>
<p>Compiling CSS to SWF and loading it runtime is also used for application with theme support.<br />
You can read more about that and view an example here : <a href="http://onflash.org/ted/2007/01/flex-201-understand-runtime-css.php">Understanding runtime CSS</a><br />
<br/></p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/04/flex-runtime-font-embedding-using-compiled-css-with-loader/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fix random crashes Firefox, Thunderbird and Evolution on Ubuntu 8.10</title>
		<link>http://ninetynine.be/blog/2009/04/fix-random-crashes-firefox-thunderbird-and-evolution-on-ubuntu-810/</link>
		<comments>http://ninetynine.be/blog/2009/04/fix-random-crashes-firefox-thunderbird-and-evolution-on-ubuntu-810/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 13:22:38 +0000</pubDate>
		<dc:creator>ruben</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[Evolution]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=104</guid>
		<description><![CDATA[What do you expect of a decent modern OS? A great browsing experience and a decent mail client. Since I upgraded to Ubuntu 8.10 I had troubles with random crashes of Firefox when loading pages, and entirely random crashes of Evolution mail client.
So I switched to Thunderbird. But then same symptoms started showing. Giving me [...]]]></description>
			<content:encoded><![CDATA[<p>What do you expect of a decent modern OS? A great browsing experience and a decent mail client. Since I upgraded to Ubuntu 8.10 I had troubles with random crashes of Firefox when loading pages, and entirely random crashes of Evolution mail client.</p>
<p>So I switched to Thunderbird. But then same symptoms started showing. Giving me 5-10 crashes of Thunderbird a day, and serious troubles on heavy browsing.</p>
<p>The first things to do when getting crashes of Mozilla products are:</p>
<ol>
<li> 1. Make sure you don&#8217;t have a lethal combination of add-ons</li>
<li> 2. Check if Flash isn&#8217;t the evil spirit haunting your browser, try the<a href="https://addons.mozilla.org/en/firefox/addon/433"> Flashblock add-on</a></li>
<li> 3. Make a new profile for Firefox and Thunderbird, by renaming your old configuration. You can find the configuration folders in your home. Mostly ~/.mozilla for Firefox, and ~/.mozilla-thunderbird for Thunderbird.</li>
<li>4. Completely remove Firefox (make a backup of your configuration) and reïnstall it</li>
</ol>
<p>I tried every possible thing I could do to fix Thunderbird or Firefox. But then again, why was Evolution suffering as well? Well the deal was that I had <a href="http://www.webopedia.com/TERM/W/WINS.html">WINS resolution</a> enabled in <a href="http://en.wikipedia.org/wiki/Samba_(software)">Samba</a>. Found it in this <a href="https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/282287/comments/11">bug report</a>.</p>
<p>When upgrading to 8.10, Samba was upgraded too. This bug has been reported and hopefully will be solved in Ubuntu 9.04, launching 23rd of April.</p>
<p>So how do we fix this?</p>
<p><span id="more-104"></span><br />
Enter this in your console:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nsswitch.conf</pre></div></div>

<p>And look for a line like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">hosts:          files mdns4_minimal <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">NOTFOUND</span>=<span style="color: #7a0874; font-weight: bold;">return</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> wins dns mdns4</pre></div></div>

<p>Change it into</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">hosts:          files mdns4_minimal <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">NOTFOUND</span>=<span style="color: #7a0874; font-weight: bold;">return</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> dns mdns4</pre></div></div>

<p>and everything should go back to normal.</p>
<p>However the WINS resolution is a good tool in Samba. I don&#8217;t really need it, because I don&#8217;t have the need to use a local network with Windows computers, but I can imagine it&#8217;s not that pleasant for people who do. Downgrading your Samba (or Ubuntu) is another option.</p>
<p><a href="http://www.webopedia.com/TERM/W/WINS.html">WINS resolution</a> is used to communicate to Windows computers using their computer name, rather than their IP.</p>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/04/fix-random-crashes-firefox-thunderbird-and-evolution-on-ubuntu-810/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Growl messages with AIR</title>
		<link>http://ninetynine.be/blog/2009/03/growl-messages-with-air/</link>
		<comments>http://ninetynine.be/blog/2009/03/growl-messages-with-air/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 20:21:40 +0000</pubDate>
		<dc:creator>michiel</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[notification]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=46</guid>
		<description><![CDATA[For an AIR application that I&#8217;m creating (more about that later), I needed some way to show the users some event happened while the application was running in the background. So what&#8217;s better on Mac OS than showing growl notifications   ?



Adobe has worked together with the Growl team to add support for AIR [...]]]></description>
			<content:encoded><![CDATA[<p>For an AIR application that I&#8217;m creating (more about that later), I needed some way to show the users some event happened while the application was running in the background. So what&#8217;s better on Mac OS than showing <a href="http://www.growl.info">growl</a> notifications <img src='http://ninetynine.be/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ?<br />
<br/><br />
<img class="alignnone size-full wp-image-54" title="Growl message with as3" src="http://ninetynine.be/blog/wp-content/uploads/2009/03/growl-with-as3.png" alt="Growl message with as3" width="341" height="121" /><br />
<br/><br />
Adobe has worked together with the Growl team to add support for AIR and flash applications.<br />
<a href="http://www.mikechambers.com/blog/">Mike Chambers</a> has put together an open source project named <a href="http://code.google.com/p/as3growl/">as3growl</a> which provides an API to work with the new Growl build.<br />
<br/><br />
<span id="more-46"></span></p>
<blockquote><p>The as3growl library is an ActionScript library that leverages new TCP socket communication functionality within the Growl notification framework to allow Adobe AIR and Flash applications to register with, send notifications, and receive events from the Growl service.</p></blockquote>
<p>You can grab the latest as3growl <a href="http://code.google.com/p/as3growl/downloads/list">here</a> or with the svn :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> checkout http:<span style="color: #000000; font-weight: bold;">//</span>as3growl.googlecode.com<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>trunk<span style="color: #000000; font-weight: bold;">/</span> as3growl-read-only</pre></td></tr></table></div>

<p><br/>The support for AIR and flash is not yet in the release version, so the first step is download the nightly build from growl :</p>
<p><a href="http://bitbucket.org/evands/growl/changeset/eb9d3e4d9fa3/">http://bitbucket.org/evands/growl/changeset/eb9d3e4d9fa3/</a></p>
<blockquote>
<ol>
<li>Unzip</li>
<li>Open Growl.xcodeproj in Xcode 3.1</li>
<li>Set target to &#8220;Deployment&#8221;</li>
<li>Build</li>
<li>Double click the &#8220;Build/Deployment/Growl.prefPane&#8221; file to install the compiled Growl. </li>
</ol>
</blockquote>
<p>To start using the as3growl API, you can check out the example on the wiki:<br />
<a href="To start using the as3growl API, you can check out the wiki: http://code.google.com/p/as3growl/wiki/UsingTheLibrary">http://code.google.com/p/as3growl/wiki/UsingTheLibrary</a></p>
<p>I&#8217;ll probably post a little tutorial later!</p>
]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/03/growl-messages-with-air/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
