<?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 &#187; Tutorials</title>
	<atom:link href="http://ninetynine.be/blog/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://ninetynine.be/blog</link>
	<description>Just another blog with no useful content on it at all.</description>
	<lastBuildDate>Sun, 08 Jan 2012 10:39:54 +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>Setting up OpenCV 2.3.1 and Netbeans 7.1 on Ubuntu Oneiric 11.10</title>
		<link>http://ninetynine.be/blog/2012/01/setting-up-opencv-2-3-1-and-netbeans-7-1-on-ubuntu-oneiric-11-10/</link>
		<comments>http://ninetynine.be/blog/2012/01/setting-up-opencv-2-3-1-and-netbeans-7-1-on-ubuntu-oneiric-11-10/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 22:05:25 +0000</pubDate>
		<dc:creator>ruben</dc:creator>
				<category><![CDATA[Netbeans]]></category>
		<category><![CDATA[OpenCV]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=839</guid>
		<description><![CDATA[A tutorial for installing OpenCV 2.3.1 on Ubuntu 11.10 using Gijs Molenaar (Gijzelaar) PPA. The tutorial shows how to configure Netbeans 7.1 and show a small example in C++.]]></description>
			<content:encoded><![CDATA[<p>Hi there,</p>
<blockquote><p><em>This is a follow-up of my previous post: <a href="http://ninetynine.be/blog/2011/11/setting-up-opencv-2-3-and-netbeans-7-0-on-ubuntu-oneiric-11-10/" title="Setting up OpenCV 2.3 and Netbeans 7.0 on Ubuntu Oneiric 11.10" target="_blank">Setting up OpenCV 2.3 and Netbeans 7.0 on Ubuntu Oneiric 11.10</a>. A couple of days ago Gijzelaar&#8217;s PPA for OpenCV has updated from 2.3 to version 2.3.1. So I thought I&#8217;d share this with you guys. I also think this is a slightly better approach</em></p>
<p>OpenCV (Open Source Computer Vision Library) is a library of programming functions mainly aimed at real time computer vision, developed by Intel and now supported by Willow Garage. It is free for use under the open source BSD license. The library is cross-platform. It focuses mainly on real-time image processing. (<a href="http://en.wikipedia.org/wiki/OpenCV" title="Wikipedia" target="_blank">Wikipedia</a>)</p></blockquote>
<p>The upgrade did leave my machine with some broken packages, so be cautious! I managed to fix the broken packages, but that&#8217;s another story and it probably was a rare case.</p>
<p>Okay, so here is a quick guide:</p>
<h2>1. Installation of OpenCV 2.3.1</h2>
<p>Launch a terminal and execute these commands. This adds the PPA of our friend <a href="https://launchpad.net/~gijzelaar/+archive/opencv2.3" title="Gijzelaar PPA" target="_blank">Gijs Molenaar</a>, which now contains OpenCV 2.3.1.</p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="default" style="font-family:monospace;">$ sudo add-apt-repository ppa:gijzelaar/cuda
$ sudo add-apt-repository ppa:gijzelaar/opencv2.3
$ sudo apt-get update
$ sudo apt-get install libopencv-dev</pre></div></div>

<p></code></p>
<h2>2. Installation of Netbeans 7.1</h2>
<p>Ubuntu 11.10 also comes with Netbeans 6.9, just download the Netbeans 7.1 from the <a href="http://netbeans.org" title="Netbeans Homepage" target="_blank">Netbeans Homepage</a> and you’re all set. Be sure you download the version with C/C++ support.</p>
<p><span id="more-839"></span></p>
<h2>3. Set the project properties</h2>
<p>Create a new C/C++ project in Netbeans 7.1. First, set the project properties correctly. These settings worked for me.</p>
<p>In the <em>C++ Compiler dialog</em> add “/usr/locale/opencv2″ to the “Include Directories” field. </p>
<p>In the <em>Linker Dialog</em>, Click on the &#8220;&#8230;&#8221; button for <em>Libraries</em>, a new Dialog appears, choose &#8220;Add PkgConfig Library&#8230;&#8221;. Search for &#8220;opencv&#8221; and add it.</p>
<p>This should add the following library expression <code></p>

<div class="wp_syntax"><div class="code"><pre class="default" style="font-family:monospace;">`pkg-config --libs opencv`</pre></div></div>

<p></code> (Note that this is a better solution than in my previous post)</p>

<a href='http://ninetynine.be/blog/2012/01/setting-up-opencv-2-3-1-and-netbeans-7-1-on-ubuntu-oneiric-11-10/compiler_dialog/' title='compiler_dialog'><img width="150" height="150" src="http://ninetynine.be/blog/wp-content/uploads/2012/01/compiler_dialog-150x150.png" class="attachment-thumbnail" alt="compiler_dialog" title="compiler_dialog" /></a>
<a href='http://ninetynine.be/blog/2012/01/setting-up-opencv-2-3-1-and-netbeans-7-1-on-ubuntu-oneiric-11-10/linker_dialog/' title='linker_dialog'><img width="150" height="150" src="http://ninetynine.be/blog/wp-content/uploads/2012/01/linker_dialog-150x150.png" class="attachment-thumbnail" alt="linker_dialog" title="linker_dialog" /></a>

<h2>4. Set the includes</h2>
<p>Note: this has also changed since my previous post!</p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="default" style="font-family:monospace;">#include &quot;opencv2/highgui/highgui.hpp&quot;
#include &quot;opencv2/core/core.hpp&quot; 
#include &quot;opencv2/imgproc/imgproc.hpp&quot;</pre></div></div>

<p></code></p>
<p>I find it easy to work with the cv and std namespace by default, so I don’t have to type “cv::” before every function.</p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="default" style="font-family:monospace;">using namespace cv;
using namespace std;</pre></div></div>

<p></code></p>
<p>And if we re-use our previous example (yea, I&#8217;m lazy), a little program that shows an image, you have something like this:</p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="default" style="font-family:monospace;">#include &quot;opencv2/highgui/highgui.hpp&quot;
#include &quot;opencv2/core/core.hpp&quot; 
#include &quot;opencv2/imgproc/imgproc.hpp&quot;
#include &lt;iostream&gt;
using namespace cv;
using namespace std;
&nbsp;
int main(int argc, char *argv[]) {
&nbsp;
    Mat image;
    image = imread(argv[1], CV_LOAD_IMAGE_COLOR);
&nbsp;
    if (!image.data) // Check for invalid input
    {
        cout &lt;&lt; &quot;Could not open or find the image&quot; &lt;&lt; endl;
        return -1;
    }
&nbsp;
    namedWindow(&quot;Display window&quot;, CV_WINDOW_AUTOSIZE); // Create a window for display.
    imshow(&quot;Display window&quot;, image);
&nbsp;
    return 0;
}</pre></div></div>

<p></code></p>
<p>OpenCV has really poor/decentralized documentation, which makes these simple things over-complicated. I hope this helps some people struggling with getting OpenCV to work. Let me know if it works!</p>
<p>Cheers!<br />
Ruben Verhack</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2012/01/setting-up-opencv-2-3-1-and-netbeans-7-1-on-ubuntu-oneiric-11-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up OpenCV 2.3 and Netbeans 7.0 on Ubuntu Oneiric 11.10</title>
		<link>http://ninetynine.be/blog/2011/11/setting-up-opencv-2-3-and-netbeans-7-0-on-ubuntu-oneiric-11-10/</link>
		<comments>http://ninetynine.be/blog/2011/11/setting-up-opencv-2-3-and-netbeans-7-0-on-ubuntu-oneiric-11-10/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 11:47:18 +0000</pubDate>
		<dc:creator>ruben</dc:creator>
				<category><![CDATA[Netbeans]]></category>
		<category><![CDATA[OpenCV]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=795</guid>
		<description><![CDATA[I don&#8217;t like Eclipse. There, I said it. However, in the past Netbeans and C/C++ didn&#8217;t play along. Since I upgraded to Ubuntu 11.10, I decided to give it another go, and the results are pleasing! As there was no install guide available online for my situation, I decided to summarize the steps I used in order [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ninetynine.be/blog/wp-content/uploads/2011/11/netbeans-logo.png" rel="lightbox[795]" title="netbeans-logo"><img src="http://ninetynine.be/blog/wp-content/uploads/2011/11/netbeans-logo.png" alt="" title="netbeans-logo" width="224" height="224" class="alignleft size-full wp-image-835" /></a><br />
<address>I don&#8217;t like Eclipse. There, I said it. However, in the past Netbeans and C/C++ didn&#8217;t play along. Since I upgraded to Ubuntu 11.10, I decided to give it another go, and the results are pleasing! As there was no install guide available online for my situation, I decided to summarize the steps I used in order to get things running.</address>
<address> </address>
<p>OpenCV (Open Source Computer Vision Library) is a library of programming functions mainly aimed at real time computer vision, developed by Intel and now supported by Willow Garage. It is free for use under the open source BSD license. The library is cross-platform. It focuses mainly on real-time image processing.</p>
<p>&nbsp;</p>
<h2>1. Installation of OpenCV 2.3</h2>
<p>First of all, Ubuntu 11.10 comes with OpenCV 2.1, and I wanted 2.3. Luckely our friend <a href="https://launchpad.net/~gijzelaar/+archive/opencv2.3">Gijs Molenaar provides us with a PPA for OpenCV 2.3</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="default" style="font-family:monospace;">$ sudo add-apt-repository ppa:gijzelaar/cuda
$ sudo add-apt-repository ppa:gijzelaar/opencv2.3
$ sudo apt-get update
$ sudo apt-get install libopencv-dev</pre></div></div>

<p>(Little notice: the package that comes with Ubuntu 11.10 is called libcv-dev, however in the PPA of Gijs the package is called libopencv-dev)</p>
<p>You might also want to install other packages related to OpenCV, just search for them in the Ubuntu Software Center. However, libopencv-dev will do.</p>
<h2>2. Installation of Netbeans 7.0</h2>
<p>Ubuntu 11.10 also comes with Netbeans 6.9, just download the new version from <a href="http://netbeans.org">http://netbeans.org</a> and you&#8217;re all set. Be sure you download the version with C/C++ support.</p>
<h2>3. Set the project properties</h2>
<p>Then create a new C/C++ project in Netbeans 7.0. First, set the project properties correctly. These settings worked for me.</p>
<p>In the C++ Compiler dialog add &#8220;/usr/locale/opencv2&#8243; to the &#8220;Include Directories&#8221; field, also do this in the Linker dialog. In the Linker Dialog, also add the libraries opencv_core and opencv_highgui. You can find these libraries directly under &#8220;/usr/lib/&#8221;.</p>

<a href='http://ninetynine.be/blog/2011/11/setting-up-opencv-2-3-and-netbeans-7-0-on-ubuntu-oneiric-11-10/schermafdruk-op-2011-11-26-120551/' title='C++ Compiler Config'><img width="150" height="150" src="http://ninetynine.be/blog/wp-content/uploads/2011/11/Schermafdruk-op-2011-11-26-120551-150x150.png" class="attachment-thumbnail" alt="C++ Compiler Config" title="C++ Compiler Config" /></a>
<a href='http://ninetynine.be/blog/2011/11/setting-up-opencv-2-3-and-netbeans-7-0-on-ubuntu-oneiric-11-10/schermafdruk-op-2011-11-26-120533/' title='Linker Config'><img width="150" height="150" src="http://ninetynine.be/blog/wp-content/uploads/2011/11/Schermafdruk-op-2011-11-26-120533-150x150.png" class="attachment-thumbnail" alt="Linker Config" title="Linker Config" /></a>
<a href='http://ninetynine.be/blog/2011/11/setting-up-opencv-2-3-and-netbeans-7-0-on-ubuntu-oneiric-11-10/netbeans-logo/' title='netbeans-logo'><img width="150" height="150" src="http://ninetynine.be/blog/wp-content/uploads/2011/11/netbeans-logo-150x150.png" class="attachment-thumbnail" alt="netbeans-logo" title="netbeans-logo" /></a>

<h2>4. Set the includes</h2>

<div class="wp_syntax"><div class="code"><pre class="default" style="font-family:monospace;">#include &lt;opencv2/core/core.hpp&gt;
#include &lt;opencv2/highgui/highgui.hpp&gt;</pre></div></div>

<p>I find it easy to work with the cv and std namespace by default, so I don&#8217;t have to type &#8220;cv::&#8221; before every function.</p>

<div class="wp_syntax"><div class="code"><pre class="default" style="font-family:monospace;">using namespace cv;
using namespace std;</pre></div></div>

<p>And if we put this all together in to a little program that shows an image, you have something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="default" style="font-family:monospace;">#include &lt;opencv2/core/core.hpp&gt;
#include &lt;opencv2/highgui/highgui.hpp&gt;
#include &lt;iostream&gt;
using namespace cv;
using namespace std;
&nbsp;
int main(int argc, char *argv[]) {
&nbsp;
    Mat image;
    image = imread(argv[1], CV_LOAD_IMAGE_COLOR);
&nbsp;
    if (!image.data) // Check for invalid input
    {
        cout &amp;lt;&amp;lt; &quot;Could not open or find the image&quot; &amp;lt;&amp;lt; endl;
        return -1;
    }
&nbsp;
    namedWindow(&quot;Display window&quot;, CV_WINDOW_AUTOSIZE); // Create a window for display.
    imshow(&quot;Display window&quot;, image);
&nbsp;
    return 0;
}</pre></div></div>

<p>There we go: Our first OpenCV program in Netbeans! I hope this will work for you too <img src='http://ninetynine.be/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2011/11/setting-up-opencv-2-3-and-netbeans-7-0-on-ubuntu-oneiric-11-10/feed/</wfw:commentRss>
		<slash:comments>3</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 [...]]]></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" title="MamppControl Quicksilver Thumb"><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]" title="MamppControl Security Thumb"><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" title="MamppControl Icon Thumb"><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]" title="MamppControl Menu Thumb" ><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>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/05/mamppcontrol-xampp-tray-launcher/feed/</wfw:commentRss>
		<slash:comments>0</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 [...]]]></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>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/05/use-codeigniter-on-localhost-with-ubuntu-jaunty/feed/</wfw:commentRss>
		<slash:comments>2</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 [...]]]></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>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/04/flex-runtime-font-embedding-using-compiled-css-with-loader/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

