<?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>sven.buschbeck &#187; code</title>
	<atom:link href="http://svenbuschbeck.net/wordpress/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://svenbuschbeck.net/wordpress</link>
	<description>. . . .portfolio.blog. . . .human-computer-interaction. .semantic-web. .computer-science. .communication-design. . . . . . . . . . . . . . . . . . . . . . . . .</description>
	<lastBuildDate>Wed, 25 Aug 2010 15:00:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>First GWT Steps</title>
		<link>http://svenbuschbeck.net/wordpress/2010/08/first-gwt-steps/</link>
		<comments>http://svenbuschbeck.net/wordpress/2010/08/first-gwt-steps/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 09:41:44 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[jobs]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[GWT]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=855</guid>
		<description><![CDATA[Just started to work with GWT – a pretty interesting approach for web development compared to PHP or JSF. The whole Application engine is quite impressive especially allowing you to quickly test your applications locally by supporting automatic hot deployment after each code update. One thing that took me a while was one of that [...]]]></description>
			<content:encoded><![CDATA[<p>Just started to work with GWT – a pretty interesting approach for web development compared to PHP or JSF. The whole Application engine is quite impressive especially allowing you to quickly test your applications locally by supporting automatic hot deployment after each code update.<br />
One thing that took me a while was one of that &#8220;[ERROR] Unable to find &#8217;[some-file].xml&#8217; on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?&#8221; errors. If you are sure the file is in place I found restarting the App Engine or Eclipse mostly solves that problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2010/08/first-gwt-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make Jquerymenu for Drupal Keeping its State on Page Reload</title>
		<link>http://svenbuschbeck.net/wordpress/2010/02/how-to-make-jquerymenu-for-drupal-keeping-its-state-on-page-reload/</link>
		<comments>http://svenbuschbeck.net/wordpress/2010/02/how-to-make-jquerymenu-for-drupal-keeping-its-state-on-page-reload/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 18:13:32 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=804</guid>
		<description><![CDATA[While setting up the website for my new project &#8220;Glocal&#8221; www.glocal-project.eu), I came across the problem of finding a proper menu module. Something easy to use, stable and efficient in the same time for the complex intranet structure (therefore, sorry, but you will not be able to see my solution there unless you are a [...]]]></description>
			<content:encoded><![CDATA[<p>While setting up the website for my new project &#8220;Glocal&#8221; <a title="See project website" href="http://www.glocal-project.eu" target="_blank">www.glocal-project.eu</a>), I came across the problem of finding a proper menu module. Something easy to use, stable and efficient in the same time for the complex intranet structure (therefore, sorry, but you will not be able to see my solution there unless you are a project member). Something with a high usability in the end. <a title="Go to Activemenu project page" href="http://drupal.org/project/activemenu" target="_blank">Activemenu</a> is still quite buggy and <a title="Go to DHTML Menu project page" href="http://drupal.org/project/dhtml_menu" target="_blank">DHTML Menue</a> requires a double click to actually open a page — unbearable in a non-doulbe-click environment like the Internet — who is supposed to guess, that this menu requires a double click?? Leaving me with <a title="Go to Activemenu project page" href="http://drupal.org/project/jquerymenu" target="_blank">JQuerymenu</a>.</p>
<p>First impression: perfect! Open and close branches by clicking (+) or (-) — view page by clicking menu item label. Even the few styling issues could be fixed easily by using CSS. But as soon, as someone clicks a label, the menu collapses to its default status. It does not remember its last status after loading a different page with the same menu.</p>
<p>Is this it? All module have critical downsides like this? I was quite disappointed! <img src='http://svenbuschbeck.net/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>But I taught JQuerymenu to remember!</p>
<p>As it is quite some code, I will not post it here directly, but added it to the <a title="See tracker page" href="http://drupal.org/node/373273" target="_blank">tracker page for this &#8220;feature request&#8221;</a> or you can download the two updated files (<a title="Right click to save file to your disk" href="/media/drupal/jquerymenu.js" target="_blank">jquerymenu.js</a> and <a title="Right click to save file to your disk" href="/media/drupal/jquerymenu.module" target="_blank">jquerymenu.module</a>) here and replace the once in your /sites/all/modules/jquerymenu folder.</p>
<p>But please be careful, it should be considered an alpha version, there are quite some weaknesses (see tracker page). <em>Any feedback or suggestions are very welcome!<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2010/02/how-to-make-jquerymenu-for-drupal-keeping-its-state-on-page-reload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple redirection using PHP and HTML meta tag</title>
		<link>http://svenbuschbeck.net/wordpress/2009/08/simple-redirection-using-php-and-html-meta-tag/</link>
		<comments>http://svenbuschbeck.net/wordpress/2009/08/simple-redirection-using-php-and-html-meta-tag/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 12:12:49 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=756</guid>
		<description><![CDATA[Something everyone needs once in a while&#8230; maybe you moved a file on your server or you did not install wordpress in the root folder of your webserver &#8211; like I did neither &#8211; a redirection or forwarding can be an easy answer. The script is rather simple &#8211; it redirects in three ways to [...]]]></description>
			<content:encoded><![CDATA[<p>Something everyone needs once in a while&#8230; maybe you moved a file on your server or you did not install wordpress in the root folder of your webserver &#8211; like I did neither <img src='http://svenbuschbeck.net/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  &#8211; a redirection or forwarding can be an easy answer.</p>
<p>The script is rather simple &#8211; it redirects in three ways to provide a reasonable fall back if any of the automatic redirecting fails. To use it on your server, just enter the URL/address/file name/folder you would like the user to be redirected to in the second line of the page/script.</p>
<div>Put the whole code and markup in a file with file extension &#8220;.php&#8221;.</div>
<div>In my case, every user ending up at &#8220;www.svenbuschbeck.net&#8221; should to be forwarded to &#8220;www.svenbuschbeck.net/wordpress/home&#8221;. So I adjusted the script below like &#8220;$url = &#8216;wordpress/home&#8217;&#8221;, named the file &#8220;index.php&#8221; and put it in the root folder. Done <img src='http://svenbuschbeck.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</div>
<pre>&lt;?php
$url = 'put your URL between the parenthesis';
header("Location: $url");
?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/&gt;
&lt;meta http-equiv="refresh" content="0;url=&lt;?php echo $url; ?&gt;"/&gt;
&lt;title&gt;You will be redirected... &lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
If you are not redirected automatically, please click &lt;a href="&lt;?php echo $url; ?&gt;"&gt;here&lt;/a&gt;.
&lt;/body&gt;
&lt;/html&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2009/08/simple-redirection-using-php-and-html-meta-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fixing flex VideoDisplay CuePointManager</title>
		<link>http://svenbuschbeck.net/wordpress/2009/06/fixing-flex-videodisplay-cuepointmanager/</link>
		<comments>http://svenbuschbeck.net/wordpress/2009/06/fixing-flex-videodisplay-cuepointmanager/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 14:03:31 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[jobs]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=732</guid>
		<description><![CDATA[I was creating a Flex application to show slides and a presentation video of previously recorded presentations. Accordingly, each slide should appear at a certain point of time in the video &#8211; calls for cue points! As all slides and there appearance are stored in a text file in my case, I started adding cue [...]]]></description>
			<content:encoded><![CDATA[<p>I was creating a Flex application to show slides and a presentation video of previously recorded presentations. Accordingly, each slide should appear at a certain point of time in the video &#8211; calls for cue points!</p>
<p>As all slides and there appearance are stored in a text file in my case, I started adding cue points with ActionScript. But as soon as the video can be controlled with a slider, allowing to shift for- and backwards, the event handler &#8220;cuePoint&#8221; was not triggered any more. Thus, the slides where not changed correctly as the user jumps ahead, as the cue points between the previous and the new position did not cause and cue point event.</p>
<p>Finally I wrote <a title="AdvCuePointManager class (GPL)" href="/media/flex/AdvCuePointManager.as" mce_href="/media/flex/AdvCuePointManager.as" target="_blank">AdvCuePointManager</a>, inheriting from  CuePointManager, but which can deal with jumping back- and forward.</p>
<p>Copy it to &#8220;&lt;your source folder&gt;/net/svenbuschbeck/flex/video&#8221; and use it as follows:</p>
<pre>&lt;mx:VideoDisplay cuePointManagerClass="net.svenbuschbeck.flex.video.AdvCuePointManager" /&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2009/06/fixing-flex-videodisplay-cuepointmanager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to install memchached 1.2.2 from source</title>
		<link>http://svenbuschbeck.net/wordpress/2009/04/how-to-install-memchached-starting-from-scratch/</link>
		<comments>http://svenbuschbeck.net/wordpress/2009/04/how-to-install-memchached-starting-from-scratch/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 16:46:49 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[jobs]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=713</guid>
		<description><![CDATA[I have installed an instance of memchached version 1.2.2 on one of our servers (Debian etch) today and to keep you from spending a whole afternoon, see my everything-step-by-step instruction below. Memchached is a distributed hash map, which can be used for example to speed up any kind of web application, see website for details. [...]]]></description>
			<content:encoded><![CDATA[<p>I have installed an instance of memchached version 1.2.2 on one of our servers (Debian etch) today and to keep you from spending a whole afternoon, see my everything-step-by-step instruction below.</p>
<p><a title="Memchached website." href="http://www.danga.com/memcached/" target="_blank">Memchached</a> is a distributed hash map, which can be used for example to speed up any kind of web application, see website for details. In our case, we want to use it as temporary data store. I will report about the experiences in a latter post.</p>
<h3>introduction</h3>
<p>Always refer to <a title="Nice tutorial, but I needed to add some steps." href="http://www.lullabot.com/articles/how_install_memcache_debian_etch" target="_blank">this page</a> for details, but I created a version with less text but including steps to really start from scratch.</p>
<p>All lines starting with # are command lines, i.e. you need to type into a linux shell.<br />
Output of any kind is always surrounded by &#8221; even if it is multiline output.</p>
<h3>content</h3>
<p><strong>a</strong>. get libevent (needed to install memcached)<br />
<strong>b</strong>. get memcached and verify installation<br />
<strong>c. </strong>use and test memcached within Java with junit/ant</p>
<h3>a. installing libevent 1.3</h3>
<h4>a.1. check for current version of libevent</h4>
<h5>a.1a.</h5>
<p>Log in as root or get super user rights by calling su</p>
<p># updatedb<br />
# locate libevent</p>
<p>If there is output including &#8220;libevent1&#8243; and/or &#8220;libevent-1&#8243; (ignore package files like *.deb) -&gt; a.1b, otherwise a.2</p>
<h5>a.1b. removing old libevent version</h5>
<p># apt-get remove &#8211;purge libevent1<br />
# Y</p>
<p># updatedb<br />
# locate libevent<br />
Should now return nothing or package files only, i.e. you are ready for installation</p>
<h4>a.2. installing libevent 1.3</h4>
<h5>a.2a downloading and unpacking</h5>
<p># cd /usr/local/src<br />
# wget http://monkey.org/~provos/libevent-1.3b.tar.gz<br />
# tar zxvf libevent-1.3b.tar.gz<br />
# cd libevent-1.3b</p>
<h5>a.2b. configuring</h5>
<p># ./configure<br />
check the output, if it contains something like &#8220;configure: error: no acceptable C compiler found in $PATH&#8221; -&gt; a.2c. otherwise a.2d.</p>
<h5>a.2c. compiling</h5>
<p># apt-get install gcc</p>
<p>Redo a.2b.<br />
I got output like &#8220;C compiler cannot create executables&#8221;, reading file &#8216;config.log&#8217; did not help me at all. Googling finally did, as I found a forum entry, pointing out a missing lib.<br />
So try this:</p>
<p># apt-get install libc-dev</p>
<p>Redo a.2b.<br />
If that did  not solve it&#8230; sorry &#8230; google on, there is no sense in going on without solving this issue. :-/</p>
<h5>a.2d. make it!</h5>
<p># make &amp;&amp; make install</p>
<p>If you get something like &#8220;-bash: make: command not found&#8221; -&gt; A.2e, otherwise A.3.</p>
<h5>a.2e.</h5>
<p># apt-get install make</p>
<p>Redo a.2d.</p>
<h4>a.3. configuration</h4>
<p>Press the Esc key as you read [esc] in the commands below.</p>
<p># vim /etc/ld.so.conf.d/libevent-i386.conf<br />
# i/usr/local/lib/[esc]:wq<br />
# ldconfig</p>
<h3>b. install memchached and verify installation</h3>
<h4>b.1. download, unpack and install memchached</h4>
<p># cd /usr/local/src<br />
# wget http://danga.com/memcached/dist/memcached-1.2.2.tar.gz<br />
# tar zxvf memcached-1.2.2.tar.gz<br />
# cd memcached-1.2.2<br />
# ./configure<br />
# make &amp;&amp; make install</p>
<p>After installing gcc and libc-dev in section a, this one went easily for me &#8211; if you skipped section a and run in problems here, please install gcc and libc-dev (see a.2c).</p>
<h4>b.2. verify installation of memchached</h4>
<h5>b.2a. start memchached server</h5>
<p># memcached -u www-data -vv</p>
<p>Output should end with line &#8220;&lt;3 server listening&#8221;. Perfect! <img src='http://svenbuschbeck.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h5>b.2b test server</h5>
<p>I will refer to this shell in front of you as server shell below. Now, open another shell on the same machine, I will refer to it a client shell.</p>
<p># telnet localhost 11211</p>
<p>You should see something like &#8220;&lt;7 new client connection&#8221; on the server shell, switch back to client shell.</p>
<p># set test1 1 10000 1<br />
# a</p>
<p>You should see &#8220;STORED&#8221; on client shell and the two following lines on server shell<br />
&#8220;&lt;7 set test1 1 10000 1<br />
&gt;7 STORED&#8221;</p>
<p><strong>Perfect!<br />
You did it, your memcached is up and running <img src='http://svenbuschbeck.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong></p>
<h3>c. memcached and Java</h3>
<p>I wrote a little test package using a Java client library for memcached from <a href="http://code.google.com/p/spymemcached">here</a>, together with junit and ant. You can <a title="See how to use memcached with in Java and verify your installation with an automated test" href="/media/memcached/memcached-test.zip" target="_blank">download it</a> to have a look how simple using memcache is and to verify your installation with an included  junit test, automated with an ant build file.<strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2009/04/how-to-install-memchached-starting-from-scratch/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
