<?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>Martijn's C# Programming Blog &#187; Web</title>
	<atom:link href="http://www.dijksterhuis.org/category/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dijksterhuis.org</link>
	<description>Information, news about programming in C#</description>
	<lastBuildDate>Fri, 07 Aug 2009 21:26:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using the Moonlight plugin to watch a little Silverlight</title>
		<link>http://www.dijksterhuis.org/moonlight-plugin-watch-silverlight/</link>
		<comments>http://www.dijksterhuis.org/moonlight-plugin-watch-silverlight/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 05:14:17 +0000</pubDate>
		<dc:creator>Martijn</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[moonlight]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://www.dijksterhuis.org/?p=471</guid>
		<description><![CDATA[
In early December 2008 Moonlight 1.0 beta was released by the Mono team, making it possible to run  basic Silverlight 1.0 applications from your Linux Firefox installation. If you are like me mostly working on a Linux workstation, then its likely that you have seen little so far of the Microsoft Silverlight platform. The best [...]<p>This is a post from <a href="http://www.dijksterhuis.org">Martijn's C# Coding Blog</a>. </p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-475" title="Using Moonlight to watch Silverlight" src="http://www.dijksterhuis.org/wp-content/uploads/2009/01/moon.png" alt="Using Moonlight to watch Silverlight" width="500" height="324" /></p>
<p><em>In early December 2008 <a id="qiy-" title="Moonlight 1.0 beta was released by the Mono team" href="http://tirania.org/blog/archive/2008/Dec-02-1.html">Moonlight 1.0 beta was released by the Mono team</a>, making it possible to run  basic Silverlight 1.0 applications from your Linux Firefox installation. </em><em>If you are like me mostly working on a Linux workstation, then its likely that you have seen little so far of the Microsoft Silverlight platform. The best way to think of Silverlight 1.0 is as Flash, but then by Microsoft. Similar to Flash, Silverlight installs as a web browser plugin and provides animation, graphics and audio/video. The next generation (Silverlight 2.0) includes support for running C# managed code from the plugin which should make things quite interesting.</em></p>
<p><span id="more-471"></span><br />
<strong>What is Moonlight?</strong></p>
<p>Moonlight is an Open Source implementation by Novell and the Mono team of  Microsoft Silverlight. It was born out of a 21 day hacking session by the Mono team in early 2007. This was  possible as much code needed for building Moonlight was already implemented by the Mono team for their C# libraries. Cleaning things up took them a little longer and the first beta was released in December 2008.</p>
<p>Currently Moonlight implements Silverlight 1.0, but work on Silverlight 2.0 has already been started. The <a id="xln7" title="Moonlight roadmap shows" href="http://www.mono-project.com/MoonlightRoadmap">Moonlight roadmap shows</a> that we will have to wait a little longer for that though, the first alpha is not planned until April 2009.  Moonlight 2.0 is where things will become really interesting as it will contain a mono implementation allowing you to execute C# or Dynamic Language Runtime based languages.</p>
<p><strong>Installing Moonlight</strong><em><br />
</em></p>
<ol>
<li>You can install Moonlight 1.0 for Firefox from <a id="q4_e" title="http://www.go-mono.com/moonlight/" href="http://www.go-mono.com/moonlight/">http://www.go-mono.com/moonlight/</a></li>
<li>If you come across a website that requires video codecs, Moonlight will offer to install the Microsoft codecs for playback.</li>
</ol>
<p><strong>Testing if things work</strong></p>
<p>Enough dry stuff &#8212; I am not expecting miracles from a beta release, but it would of course be nice if somethings do actually work. For some examples have a look at the Moonlight status page of scripts that they have tested their plug-in against:</p>
<ul>
<li><a id="f0vx" title="http://go-mono.com/moonlight/MoonlightStatus.aspx" href="http://go-mono.com/moonlight/MoonlightStatus.aspx">http://go-mono.com/moonlight/MoonlightStatus.aspx</a></li>
</ul>
<p><strong>Troubleshooting</strong></p>
<p>Not all websites detect Silverlight 1.0 properly, so if you come across a website saying &#8220;Silverlight 1.0 not found&#8221; you migth need a bit of work. A little GreaseMonkey script can help out here as explained on the <a id="luer" title="MoonLight Quirks page" href="http://mono-project.com/MoonlightQuirks#GreaseMonkey">MoonLight Quirks page</a>.</p>
<p><strong>Video codecs and legal issues</strong></p>
<p>Through an agreement between Novell and Microsoft it is possible to legally use the Microsoft Codecs for decoding audio and video streams, but only if you download the Moonlight beta&#8217;s directly from Novell. As an alternative it should  be possible to compile the Moonlight from source against the open source FFMPEG libraries as <a id="exh0" title="mentioned by Miguel de Icaza on his blog" href="http://tirania.org/blog/archive/2007/Sep-05.html">mentioned by Miguel de Icaza on his blog</a>: &#8220;<em>Currently Moonlight video support has been prototyped using the fabulous and LGPLed ffmpeg engine for video and audio. We are unable to redistribute this code commercially due to licensing conflicts. Update: This means that individuals that want to use a 100% pure free software setup can do so. We are unable to redistribute this edition though. &#8220;</em></p>
<p><em>Image credit: Moonlight by <a rel="nofollow" href="http://www.flickr.com/photos/jamesjordan/">James Jordan</a></em></p>
<p>This is a post from <a href="http://www.dijksterhuis.org">Martijn's C# Coding Blog</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dijksterhuis.org/moonlight-plugin-watch-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Ubuntu for Web development</title>
		<link>http://www.dijksterhuis.org/setting-up-ubuntu-for-web-development/</link>
		<comments>http://www.dijksterhuis.org/setting-up-ubuntu-for-web-development/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 02:56:22 +0000</pubDate>
		<dc:creator>Martijn</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[eacellerator]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.dijksterhuis.org/?p=308</guid>
		<description><![CDATA[One of the pleasures of setting up a new machine for development is always the feeling of having a “clean” machine without a myriad of test projects and things under development laying around the place. This article is distilled from my notes as I installed Apache2, MySQL &#038; PHP5 on my new machine. And of [...]<p>This is a post from <a href="http://www.dijksterhuis.org">Martijn's C# Coding Blog</a>. </p>
]]></description>
			<content:encoded><![CDATA[<p><em>One of the pleasures of setting up a new machine for development is always the feeling of having a “clean” machine without a myriad of test projects and things under development laying around the place. This article is distilled from my notes as I installed Apache2, MySQL &#038; PHP5 on my new machine. And of course I tuned PHP5 by compiling and installing eaccelerator.</em></p>
<p><strong>Installing Apache2 , MySQL Server and PHP5</strong></p>
<p>The above has become so easy under Ubuntu that its quite unbelievable. With just a few lines of typing you too can have a full LAMP (Linux, Apache, MySQL &#038; PHP) system. There is no need for the hours previously spend on hunting for dependencies to download and compile. </p>
<blockquote><p>sudo apt-get install apache2<br />
sudo apt-get install mysql-server<br />
sudo apt-get install php5 php5-mysql php5-cli php5-dev<br />
php -v</p></blockquote>
<p>As a bonus: I also installed my favorite HTML editor:  BlueFish</p>
<blockquote><p>sudo apt-get install bluefish</p></blockquote>
<p>And that is it really &#8212; everything works from here on. If you would like to get a bit more juice out of PHP5 you can also add the following: </p>
<p><strong>Configure PHP5 with eaccelerator</strong></p>
<p>PHP is a great language for building websites but it can be quite slow at times. Each time a script is run PHP needs to compile it and then execute it. You can gain speed by using a cache such as eaccelerator. This stores the compiled scripts in both memory and on disk so that frequently called scripts run much faster. </p>
<p>The following steps compile and install eacelerator 0.9.5.3, you can check for a newer version on the <a href="http://eaccelerator.net/">eacellerator website</a>.</p>
<blockquote><p>
sudo apt-get install build-essential<br />
cd /tmp<br />
wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2<br />
bzip2 -cd eaccelerator-0.9.5.3.tar.bz2 | tar xf -<br />
 cd eaccelerator-0.9.5.3<br />
/usr/bin/phpize<br />
./configure<br />
make<br />
sudo make install
</p></blockquote>
<p>After the above you should now have a file named eaccelerator.so in  directory/usr/lib/php5/20060613+lfs/  (or whatever directory was printed when you did ‘make install’).</p>
<p>Now you need to configure php to include the eacelerator module on startup by editing the relevant php.ini file: </p>
<blockquote><p>sudo gedit /etc/php5/apache2/php.ini</p></blockquote>
<p>Add the following lines to the php.ini file: </p>
<blockquote><p>
; Installing the ZEND extension<br />
zend_extension=&#8221;/usr/lib/php5/20060613+lfs/eaccelerator.so&#8221;<br />
eaccelerator.shm_size=&#8221;0&#8243;<br />
eaccelerator.cache_dir=&#8221;/var/local/eaccelerator&#8221;<br />
eaccelerator.enable=&#8221;1&#8243;<br />
eaccelerator.optimizer=&#8221;1&#8243;<br />
eaccelerator.check_mtime=&#8221;1&#8243;<br />
eaccelerator.debug=&#8221;0&#8243;<br />
eaccelerator.shm_only=&#8221;0&#8243;<br />
eaccelerator.compress=&#8221;1&#8243;<br />
eaccelerator.compress_level=&#8221;9&#8243;<br />
eaccelerator.allowed_admin_path=&#8221;/var/www/apache2-default/control.php&#8221;</p></blockquote>
<p>Finally we need to create the cache directory used by eaccelerator to store the compiled scripts: </p>
<blockquote><p>cd /var/local<br />
sudo mkdir eaccelerator<br />
sudo chown root:www-data /var/local/eaccelerator/<br />
sudo chmod u=rwx,g=rwx,o= /var/local/eaccelerator/
</p></blockquote>
<p>Restart Apache2 and see if it loads correctly:</p>
<blockquote><p>sudo apache2ctl configtest<br />
sudo apache2ctl graceful </p></blockquote>
<p><strong>Test the PHP5 installation</strong></p>
<p>Create a small file in “/var/www/” to test your PHP5 installation</p>
<blockquote><p>sudo gedit /var/www/php5.php </p></blockquote>
<p>And add the following in this file: </p>
<blockquote><p><?php phpinfo(); ?></p></blockquote>
<p>Now load http://localhost/php5.html to see if your system is correctly configured. If eaccelerator is properly configured it should also be listed here. </p>
<p>This is a post from <a href="http://www.dijksterhuis.org">Martijn's C# Coding Blog</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dijksterhuis.org/setting-up-ubuntu-for-web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Chrome Advertising in Taipei</title>
		<link>http://www.dijksterhuis.org/google-chrome-advertising-in-taipei/</link>
		<comments>http://www.dijksterhuis.org/google-chrome-advertising-in-taipei/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 02:00:34 +0000</pubDate>
		<dc:creator>Martijn</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[google chrome]]></category>

		<guid isPermaLink="false">http://www.dijksterhuis.org/?p=40</guid>
		<description><![CDATA[Google obviously wasn&#8217;t waiting for community generated &#8220;buzz&#8221; for launching their Chrome web browser. On a busy corner of ChungHsiao E Rd in Taipei they put up a massive billboard promoting it. The TV is doing a visual demo of Google products such as Google Earth.

This is a post from Martijn's C# Coding Blog. 
<p>This is a post from <a href="http://www.dijksterhuis.org">Martijn's C# Coding Blog</a>. </p>
]]></description>
			<content:encoded><![CDATA[<p>Google obviously wasn&#8217;t waiting for community generated &#8220;buzz&#8221; for launching their Chrome web browser. On a busy corner of ChungHsiao E Rd in Taipei they put up a massive billboard promoting it. The TV is doing a visual demo of Google products such as Google Earth.</p>
<p><a href="http://www.dijksterhuis.org/wp-content/uploads/2008/09/googlechrome.jpg"><img class="alignnone size-medium wp-image-41" title="Google Chrome Brower Advertising in Taipei" src="http://www.dijksterhuis.org/wp-content/uploads/2008/09/googlechrome-247x300.jpg" alt="" width="247" height="300" /></a></p>
<p>This is a post from <a href="http://www.dijksterhuis.org">Martijn's C# Coding Blog</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dijksterhuis.org/google-chrome-advertising-in-taipei/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
