<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"
>

<channel>
	<title>xyzzy xyzzy...</title>
	<atom:link href="http://xyzzyxyzzy.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://xyzzyxyzzy.net</link>
	<description>...you are in a grid of twisty, little links, all alike. there's a teleport gate here.</description>
	<lastBuildDate>Fri, 15 Jan 2010 15:49:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>using maven to generate your project&#8217;s scala classpath</title>
		<link>http://xyzzyxyzzy.net/2010/01/15/using-maven-to-generate-your-projects-scala-classpath/</link>
		<comments>http://xyzzyxyzzy.net/2010/01/15/using-maven-to-generate-your-projects-scala-classpath/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 15:49:20 +0000</pubDate>
		<dc:creator>DrScofield</dc:creator>
				<category><![CDATA[hacking]]></category>
		<category><![CDATA[classpath]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[interpreter]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[scala]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://xyzzyxyzzy.net/?p=398</guid>
		<description><![CDATA[one thing i quite like about scala is that ability to run it in
&#8220;interpreted&#8221; mode via the scala command. that allows me &#8212;
similiar to python or ipython &#8212; to experiment and quickly try things
out or even test my classes and objects.

what was a bit of a pain was getting the proper classpath constructed
so that not [...]]]></description>
			<content:encoded><![CDATA[<p>one thing i quite like about scala is that ability to run it in
&#8220;interpreted&#8221; mode via the <code>scala</code> command. that allows me &#8212;
similiar to python or ipython &#8212; to experiment and quickly try things
out or even test my classes and objects.</p>

<p>what was a bit of a pain was getting the proper classpath constructed
so that not only <code>target/classes</code> was picked up but also all the
required dependencies. poking a bit around in <a href="http://maven.apache.org/plugins/index.html">maven&#8217;s plugin
documentation</a> i came across the <a href="http://maven.apache.org/plugins/maven-dependency-plugin/usage.html">dependency plugin</a> and in particular
the <a href="http://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html">dependency:build-classpath mojo</a>, armed with that information i
came up with the following rather useful shell script:</p>

<div>
<pre class="brush: bash;">
#!/bin/bash
top=$(pwd)
cwd=$(pwd)
while  [ &quot;$top&quot; != &quot;/&quot; -a ! -e &quot;$top/pom.xml&quot; ] ; do
    cd ..
    top=$(pwd)
done
cd $cwd

if [ -e &quot;$top/pom.xml&quot; ] ; then
    cd $top

    echo &quot;generating scala classpath based on maven pom.xml&quot;
    mvn dependency:build-classpath -Dmdep.outputFile=.classpath-scala

    echo &quot;starting scala&quot;
    scala -cp target/classes:$(cat .classpath-scala)

else

    echo &quot;cannot find top level pom.xml! must have taken a wrong turn somewhere. sorry.&quot;
    exit 1

fi
</pre>
</div>

<p>save under a convenient name, stir, and enjoy: call this script
instead of calling scala directly.</p>
]]></content:encoded>
			<wfw:commentRss>http://xyzzyxyzzy.net/2010/01/15/using-maven-to-generate-your-projects-scala-classpath/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point featurename="goldach">47.473497 9.466443</georss:point>
	</item>
		<item>
		<title>deploy a maven package locally</title>
		<link>http://xyzzyxyzzy.net/2010/01/13/deploy-a-maven-package-locally/</link>
		<comments>http://xyzzyxyzzy.net/2010/01/13/deploy-a-maven-package-locally/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 15:55:01 +0000</pubDate>
		<dc:creator>DrScofield</dc:creator>
				<category><![CDATA[hacking]]></category>
		<category><![CDATA[brain extension]]></category>
		<category><![CDATA[deploy]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[package]]></category>

		<guid isPermaLink="false">http://xyzzyxyzzy.net/?p=394</guid>
		<description><![CDATA[note to self: maven differentiates between installing and
deploying a package (which might have been built via a mvn
package):


install &#8212; just installs the JAR file and the POM file, if the
-DcreateChecksum=true flag is provided it will create the SHA1 for
the JAR only
deploy &#8212; install JAR and POM and all necessary meta data along
with SHA1s


to install a [...]]]></description>
			<content:encoded><![CDATA[<p>note to self: maven differentiates between <em>installing</em> and
<em>deploying</em> a package (which might have been built via a <code>mvn
package</code>):</p>

<ul>
<li>install &#8212; just installs the JAR file and the POM file, if the
<code>-DcreateChecksum=true</code> flag is provided it will create the SHA1 for
the JAR <em>only</em></li>
<li>deploy &#8212; install JAR and POM and all necessary meta data along
with SHA1s</li>
</ul>

<p>to install a package to a shared repository a <em>deploy</em> is to be
preferred over an <em>install</em> as with an <em>install</em> we&#8217;ll get <code>missing
checksum</code> errors later in life.</p>

<p>so, this works like this (using the <code>lift-ldap</code> package as an example):</p>

<p><pre class="brush: bash;">
$ mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift-ldap -Dversion=1.0.0 -Dpackaging=jar -Dfile=target/lift-ldap-1.0.0.jar -DcreateChecksum=true  -Durl=scp://eyeteadee.zurich.ibm.com/var/www/eyeteadee.zurich.ibm.com/maven
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://xyzzyxyzzy.net/2010/01/13/deploy-a-maven-package-locally/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point featurename="[47.308883299155255, 8.544209003448486]">47.308883299155255 8.544209003448486</georss:point>
	</item>
		<item>
		<title>OpenSim Zurich Lunch (r6)</title>
		<link>http://xyzzyxyzzy.net/2010/01/13/opensim-zurich-lunch-r6/</link>
		<comments>http://xyzzyxyzzy.net/2010/01/13/opensim-zurich-lunch-r6/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 12:39:32 +0000</pubDate>
		<dc:creator>DrScofield</dc:creator>
				<category><![CDATA[from the grid]]></category>
		<category><![CDATA[lunch]]></category>
		<category><![CDATA[meetup]]></category>
		<category><![CDATA[opensim]]></category>
		<category><![CDATA[switzerland]]></category>
		<category><![CDATA[zurich]]></category>

		<guid isPermaLink="false">http://xyzzyxyzzy.net/?p=389</guid>
		<description><![CDATA[for over a year we&#8217;ve been meeting more or less once a month or two  over lunch
to discuss and chat about all things OpenSim &#8212; very creatively
volker gässler and i called them OpenSim Zurich Lunches back then
when. for the past year we&#8217;ve been having lunch at the cafeteria of
the IBM Research &#8212; Zurich lab, [...]]]></description>
			<content:encoded><![CDATA[<p>for over a year we&#8217;ve been meeting more or less once a month or two  over lunch
to discuss and chat about all things <a href="http://opensimulator.org/">OpenSim</a> &#8212; very creatively
volker gässler and i called them <em>OpenSim Zurich Lunches</em> back then
when. for the past year we&#8217;ve been having lunch at the cafeteria of
the <a href="http://www.zurich.ibm.com/index.html">IBM Research &#8212; Zurich lab</a>, this month&#8217;s OpenSim Zurich Lunch
will be the first time we meet closer to the downtown zurich area:</p>

<ul>
<li><strong>monday, january 25th, 12:30h &#8212; 14:00h (approx)</strong></li>
<li><strong><a href="http://maps.google.ch/maps?f=q&amp;source=s_q&amp;hl=de&amp;geocode=&amp;q=Freyastrasse+3,+8004+Z%C3%BCrich&amp;sll=47.37156,8.524562&amp;sspn=0.006932,0.01929&amp;gl=ch&amp;ie=UTF8&amp;hq=&amp;hnear=Freyastrasse+3,+8004+Z%C3%BCrich&amp;t=h&amp;z=16">king&#8217;s kurry, freyastrasse 3, zürich</a> (close to the train station wiedikon)</strong></li>
</ul>

<p>so, if you are around, have time to spare, and are interested to meet
up with fellow OpenSim-ers, let volker know by dropping him an email
&#8212; fe11 at gmx.ch &#8212; so that we can reserve enough seats at <em>king&#8217;s
kurry</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://xyzzyxyzzy.net/2010/01/13/opensim-zurich-lunch-r6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point featurename="[47.308883299155255, 8.544209003448486]">47.308883299155255 8.544209003448486</georss:point>
	</item>
		<item>
		<title>maven resource filtering: dealing with path names on linux &amp; windows</title>
		<link>http://xyzzyxyzzy.net/2010/01/12/maven-resource-filtering-dealing-with-path-names-on-linux-windows/</link>
		<comments>http://xyzzyxyzzy.net/2010/01/12/maven-resource-filtering-dealing-with-path-names-on-linux-windows/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 12:48:11 +0000</pubDate>
		<dc:creator>DrScofield</dc:creator>
				<category><![CDATA[hacking]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[path name]]></category>
		<category><![CDATA[resource filtering]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://xyzzyxyzzy.net/?p=384</guid>
		<description><![CDATA[in one of our projects we are using maven to build our web
application. part of our build process involves maven resource
filtering, in particular, we need to insert
path names into resources controlling the build process. since our
team uses both linux and windows, we need to be able to generate file:
URLs that work irrespective of the underlying [...]]]></description>
			<content:encoded><![CDATA[<p>in one of our projects we are using <a href="http://maven.apache.org/index.html">maven</a> to build our web
application. part of our build process involves <a href="http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html">maven resource
filtering</a>, in particular, we need to insert
path names into resources controlling the build process. since our
team uses both linux and windows, we need to be able to generate <code>file:</code>
URLs that work irrespective of the underlying platform.</p>

<p>using a construct like</p>

<pre><code>file://${project.build.directory}/path/to/stuff
</code></pre>

<p>didn&#8217;t really work: on linux the resulting <code>file:</code> URL was usable, on
windows it was not: there was a <code>/</code> missing plus all <code>\</code> occurences
had been escaped.</p>

<p>after trying a couple of variations, i came across the <a href="http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Available_Variables"><em>available
variables</em> section</a> of the maven documentation which
listed <code>project.baseUri</code> &#8212; which seemed just the ticket!</p>

<p>alas, it turns out that maven&#8217;s <a href="http://jira.codehaus.org/browse/MRESOURCES-99">resource plugin currently does not
know about <code>${project.baseUri}</code></a> &#8212; doh. yet, not
all hope is lost: by adding the following property definition to the
project&#8217;s <code>pom.xml</code> file did the trick:</p>

<p><pre class="brush: xml;">
    &lt;properties&gt;
      ...
      &lt;projectBaseUri&gt;${project.baseUri}&lt;/projectBaseUri&gt;
      ...
    &lt;/properties&gt;
</pre></p>

<p>instead of <code>${project.baseUri}</code> we use <code>${projectBaseUri}</code> in the
resource file, which gets translated to the desired <code>file:</code>
URL. bingo.</p>
]]></content:encoded>
			<wfw:commentRss>http://xyzzyxyzzy.net/2010/01/12/maven-resource-filtering-dealing-with-path-names-on-linux-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<georss:point featurename="[47.308883299155255, 8.544209003448486]">47.308883299155255 8.544209003448486</georss:point>
	</item>
		<item>
		<title>debianized rezzme</title>
		<link>http://xyzzyxyzzy.net/2010/01/05/debianized-rezzme/</link>
		<comments>http://xyzzyxyzzy.net/2010/01/05/debianized-rezzme/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 10:50:03 +0000</pubDate>
		<dc:creator>DrScofield</dc:creator>
				<category><![CDATA[from the grid]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[opensim]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rezzme]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://xyzzyxyzzy.net/?p=381</guid>
		<description><![CDATA[the latest rezzme now contains the necessary code to build debian/ubuntu dpkgs &#8212; making it as easy to install rezzme packages on the latest debian/ubuntu systems as it already is for windows and mac OSX machines as the dpkg format allows me to explicitly specify the prerequisites (such as PyQt4).

while working on the dpkg support [...]]]></description>
			<content:encoded><![CDATA[<p>the <a href="http://github.com/drscofield/rezzme">latest rezzme</a> now contains the necessary code to build debian/ubuntu dpkgs &#8212; making it as easy to install rezzme packages on the latest debian/ubuntu systems as it already is for windows and mac OSX machines as the dpkg format allows me to explicitly specify the prerequisites (such as PyQt4).</p>

<p>while working on the dpkg support i also found out that debian/ubuntu has the very useful <code>/etc/firefox-3.0</code>, <code>/etc/firefox-3.5</code>, and <code>/etc/thunderbird</code> directories that allow me to provide package specific javascript to, for example, add a protocol handler for the <code>rezzme:</code> URI scheme. that along with gnome&#8217;s gconf tool gives us the same seamless rezzme user experience as on windows or mac OSX &#8212; unfortunately, it seems that nothing comparable exists for redhat/fedora based systems.<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup></p>

<p>also the windows build code has been cleaned up and the no longer required dependency on setuptools removed.</p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>at least i couldn&#8217;t find anything comparable; if you know how to do this &#8212; independent of minor version upgrades of firefox and thunderbird &#8212; i&#8217;d appreciate it very much to learn about that.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xyzzyxyzzy.net/2010/01/05/debianized-rezzme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point featurename="[47.131074826701266, 8.747992515563965]">47.131074826701266 8.747992515563965</georss:point>
	</item>
		<item>
		<title>using F19/F20 to switch tabs in thunderbird 3</title>
		<link>http://xyzzyxyzzy.net/2009/12/09/using-f19f20-to-switch-tabs-in-thunderbird-3/</link>
		<comments>http://xyzzyxyzzy.net/2009/12/09/using-f19f20-to-switch-tabs-in-thunderbird-3/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 17:14:18 +0000</pubDate>
		<dc:creator>DrScofield</dc:creator>
				<category><![CDATA[hacking]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[keyconfig]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[tabbed UI]]></category>
		<category><![CDATA[tabmail]]></category>
		<category><![CDATA[TB3]]></category>
		<category><![CDATA[thunderbird 3]]></category>

		<guid isPermaLink="false">http://xyzzyxyzzy.net/?p=375</guid>
		<description><![CDATA[i just switched over from thunderbird 2 to the new sparkly thunderbird 3 &#8212; and i like it very much. particularly the tabbed user interface is quite nice but also lightning 1.0 seems to cope much better with those lotus notes generated calender invites  

what did bother me was that i couldn&#8217;t find an [...]]]></description>
			<content:encoded><![CDATA[<p>i just switched over from thunderbird 2 to the new sparkly thunderbird 3 &#8212; and i like it very much. particularly the tabbed user interface is quite nice but also lightning 1.0 seems to cope much better with those lotus notes generated calender invites <img src='http://xyzzyxyzzy.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

<p>what did bother me was that i couldn&#8217;t find an easy to use function for <a href="http://forums.mozillazine.org/viewtopic.php?f=48&amp;t=72994">keyconfig</a> to bind the <em>page left</em> and <em>page right</em> keys (aka F19 and F20) of my X200 keyboard to &#8220;previous tab&#8221; and &#8220;next tab&#8221;. after some digging i stumbled across the mozilla thunderbird 3 <a href="http://mxr.mozilla.org/comm-central/source/mail/base/content/tabmail.xml">tabmail</a> page which then allowed me to figure out how to create the code for keyconfig:</p>

<p><pre class="brush: jscript;">
// next tab
var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].
    getService(Components.interfaces.nsIWindowMediator);
var winId = windowManager.getMostRecentWindow(&quot;mail:3pane&quot;);
var tabmail = winId.document.getElementById('tabmail')
tabmail.switchToTab((tabmail.tabContainer.selectedIndex + 1) % tabmail.tabInfo.length)
</pre>
and
<pre class="brush: jscript;">
// previous tab
var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].
    getService(Components.interfaces.nsIWindowMediator);
var winId = windowManager.getMostRecentWindow(&quot;mail:3pane&quot;);
var tabmail = winId.document.getElementById('tabmail')
tabmail.switchToTab((tabmail.tabContainer.selectedIndex + tabmail.tabInfo.length - 1) % tabmail.tabInfo.length)
</pre></p>

<p>copy &amp; paste the code snippets and use <a href="http://forums.mozillazine.org/viewtopic.php?f=48&amp;t=72994">keyconfig&#8217;s</a> &#8220;add key&#8221; feature to bind the code to whatever key you&#8217;d like to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://xyzzyxyzzy.net/2009/12/09/using-f19f20-to-switch-tabs-in-thunderbird-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<georss:point featurename="[47.131074826701266, 8.747992515563965]">47.131074826701266 8.747992515563965</georss:point>
	</item>
		<item>
		<title>fixing ugly {emacs, firefox} fonts on (x)ubuntu karmic</title>
		<link>http://xyzzyxyzzy.net/2009/11/23/fixing-ugly-emacs-firefox-fonts-on-xubuntu-karmic/</link>
		<comments>http://xyzzyxyzzy.net/2009/11/23/fixing-ugly-emacs-firefox-fonts-on-xubuntu-karmic/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 15:52:50 +0000</pubDate>
		<dc:creator>DrScofield</dc:creator>
				<category><![CDATA[hacking]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[fontconfig]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[KDE 4]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[ugly fonts]]></category>
		<category><![CDATA[XFCE]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://xyzzyxyzzy.net/?p=371</guid>
		<description><![CDATA[i recently switched all my systems from running kubuntu hardy heron
08.04.02 to xubuntu karmic koala 09.101 &#8212; a rather pleasant
switch over. the only thing that was bothering me was the really
crappy fonts in firefox and emacs. in firefox, no matter what i
configured in firefox itself or in the appearance settings dialog of
xubuntu (tried both gnome-control-center [...]]]></description>
			<content:encoded><![CDATA[<p>i recently switched all my systems from running kubuntu hardy heron
08.04.02 to <em>xubuntu karmic koala 09.10</em><sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup> &#8212; a rather pleasant
switch over. the only thing that was bothering me was the really
crappy fonts in firefox and emacs. in firefox, no matter what i
configured in firefox itself or in the appearance settings dialog of
xubuntu (tried both gnome-control-center and XFCE&#8217;s appearance dialog)
the fonts would still be blurry and below a certain size unreadable
almost. in emacs i was suffering from the blurriness plus humongous
menu fonts (i am getting older, i know, but so far i don&#8217;t need that
large a print, really).</p>

<p>after a lot of research i finally managed to track it down to the following:</p>

<ol>
<li>firefox doesn&#8217;t seem to be really interested in what the user&#8217;s
desktop settings say, the only guy it will listen to is fontconfig
configured via <code>/etc/fonts/conf.d</code>! </li>
<li>to get rid of the blurry fonts i needed to drop the
<code>10-hinting-{full,medium,slight}.conf</code> from fontconfig&#8217;s
<code>/etc/fonts.conf.d</code> directory</li>
</ol>

<p>that fixed the blurry fonts in firefox and emacs.</p>

<p>to get emacs menu&#8217;s back to a more sensible size i had to edit
<code>$HOME/.emacs.d/gtkrc</code> &#8212; changing the default face via <code>M-x
customize-face</code> only affected the buffer and modeline fonts but not
the menu itself. i&#8217;m using the DejaVu Sans fonts, so my <code>gktrc</code> file
looks like this:</p>

<pre><code>style "user-font"
{
    font_name="DejaVu Sans 8"
}
widget_class "*" style "user-font"
gtk-font-name="DejaVu Sans 8"

style "default"
{
    font_name="DejaVu Sans 8"
    bg[NORMAL] = { 1.0, 1.0, 1.0 }
}
</code></pre>

<p>that one fixed emacs.</p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>yes, i did try kubuntu 09.10 in the hopes that the KDE 4 gang
  had gotten their act together and had produced by now something
  as usuable (as opposed to blinky, flashy, sparkly) as KDE 3.5
  &#8212; alas, that hope was in vain: a lot of the features that i&#8217;d
  valued in KDE 3.5 were still missing, usability was still not on
  par with KDE 3.5&#8217;s usability &#8212; but, hey, it&#8217;s blinky, flashy,
  sparkly, surely that counts for something? no, not really. i&#8217;m
  less interested in being an onlooker in the continuing
  GUI-blinky, flashy, sparkly pissing contest with windows/mac
  osx, and rather interested in a desktop that i can adapt to my
  needs <strong>without</strong> having to go on an archaeological expedition
  into the innards of KDE 4. sorry about that.</p>

<p>and, also, yes, i know about the KDE 3.5 repo for karmic &#8212;
  tried that, in fact, it mostly works, but with <CTRL-ALT-DEL>
  producing &#8220;cannot contact session manager&#8221; (no matter which
  session manager i tried) that was no longer usable
  either. really sorry.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xyzzyxyzzy.net/2009/11/23/fixing-ugly-emacs-firefox-fonts-on-xubuntu-karmic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point featurename="[48.04114700748514, 10.723342895507812]">48.04114700748514 10.723342895507812</georss:point>
	</item>
		<item>
		<title>iDon&#8217;t</title>
		<link>http://xyzzyxyzzy.net/2009/10/19/idont/</link>
		<comments>http://xyzzyxyzzy.net/2009/10/19/idont/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 11:59:23 +0000</pubDate>
		<dc:creator>DrScofield</dc:creator>
				<category><![CDATA[void]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[android iphone]]></category>

		<guid isPermaLink="false">http://xyzzyxyzzy.net/?p=365</guid>
		<description><![CDATA[sean dague forwarded me this youtube vid:



lol&#8230;

&#8230;and actually fits quite well to this register story about android going to overtake iDon&#8217;t, err, iPhone in 2012.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://dague.net/sean/">sean dague</a> forwarded me this youtube vid:</p>

<p><object class="youtube" width="425" height="344"><param name="movie" value="http://www.youtube.com/v/dPYM-XTqcec&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/dPYM-XTqcec&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>

<p>lol&#8230;</p>

<p>&#8230;and actually fits quite well to <a href="http://www.reghardware.co.uk/2009/10/09/android_2012_gartner/">this register story</a> about android going to overtake <del>iDon&#8217;t</del>, err, iPhone in 2012.</p>
]]></content:encoded>
			<wfw:commentRss>http://xyzzyxyzzy.net/2009/10/19/idont/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>japanese language support for OpenSim</title>
		<link>http://xyzzyxyzzy.net/2009/09/01/japanese-language-support-for-opensim/</link>
		<comments>http://xyzzyxyzzy.net/2009/09/01/japanese-language-support-for-opensim/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 14:07:57 +0000</pubDate>
		<dc:creator>DrScofield</dc:creator>
				<category><![CDATA[from the grid]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[japanese]]></category>
		<category><![CDATA[kochi mincho]]></category>
		<category><![CDATA[opensim]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://xyzzyxyzzy.net/?p=353</guid>
		<description><![CDATA[a colleague of mine in japan contacted us asking whether our in-world
collaboration tools could be extended to support japanese characters
&#8212; he had tried our internal, public sametime 3d servers and had
noticed that while in-world chat and instant messaging worked just
fine, our flipcharts, brain storming boards, calendar, and voting
tools did just display rather boring little rectangles [...]]]></description>
			<content:encoded><![CDATA[<p>a colleague of mine in japan contacted us asking whether our in-world
collaboration tools could be extended to support japanese characters
&#8212; he had tried our internal, public <em>sametime 3d</em> servers and had
noticed that while in-world chat and instant messaging worked just
fine, our flipcharts, brain storming boards, calendar, and voting
tools did just display rather boring little rectangles <img src='http://xyzzyxyzzy.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>

<p>not good. even worse when it means lost leads. so i set out to
investigate. since OpenSim <strong>is</strong> being used in japan, it was a fair
assumption that we might have a font problem here. this was confirmed
by <a href="http://twitter.com/AdamFrisby/status/3555720286">a twitter from
adamfrisby</a>:</p>

<blockquote>
  <p>@DrScofield so it should load fine.Only issue you need to be aware
  of is fonts &#8211; you need to use a font with the correct charset
  availible.</p>
</blockquote>

<p>so, first port of call: how are we specifying the font to use for text
rendering? digging through the OpenSim source i ended up in the
<code>VectorRenderModule</code>:</p>

<p><pre class="brush: csharp;">
    private void GDIDraw(string data, Graphics graph, char dataDelim)
    {
        Point startPoint = new Point(0, 0);
        Point endPoint = new Point(0, 0);
        Pen drawPen = new Pen(Color.Black, 7);
        string fontName = &quot;Arial&quot;;
        float fontSize = 14;
        Font myFont = new Font(fontName, fontSize);
        SolidBrush myBrush = new SolidBrush(Color.Black);
        ...
</pre></p>

<p>gulp: we&#8217;ve got it <em>hard coded</em> <img src='http://xyzzyxyzzy.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>

<p>so, next question: can we change it dynamically? looking through the
code, it seems like we might:</p>

<p><pre class="brush: csharp;">
    ...
    else if (nextLine.StartsWith(&quot;FontName&quot;))
    {
        nextLine = nextLine.Remove(0, 8);
        fontName = nextLine.Trim();
        myFont = new Font(fontName, fontSize);
    }
    ...
</pre></p>

<p>except, hmph, there is no <code>osSetFontName()</code> OSSL function <img src='http://xyzzyxyzzy.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>

<p>a couple of <a href="http://en.wikipedia.org/wiki/SMOP">SMOP</a>s later, we had <code>osSetFontName()</code> and could also
configure the default font name in <code>OpenSim.ini</code>, good. now to figure
out which linux font would do the trick.</p>

<p>i tried:<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup></p>

<ul>
<li><em>Arial</em> &#8212; no good: doesn&#8217;t have japanese script support</li>
<li><em>DejaVu Sans/Serif</em> &#8212; again, no good, no japanese script support</li>
<li><em>Kochi Mincho</em> &#8212; works!</li>
</ul>

<p>&#8212; the configuration for that one is:</p>

<p><pre class="brush: plain;">
[VectorRender]
    font_name = &quot;Kochi Mincho&quot;
</pre></p>

<p>my next quest was to see whether i could find a font that would
support the whole range: european scripts as well as japanese and also
chinese.</p>

<p>&#8230;unfortunately, while windows users have <em>Arial Unicode MS</em> there is
no such complete beast available to linux users &#8212; yes, there are
fonts such as <em>bitstream cybit</em>, but their license conditions either
don&#8217;t allow commercial use or only for a single user. so, if you are
running under linux you need to localize your OpenSim installation via
<code>OpenSim.ini</code>.</p>

<p>but! at least we figured out how to get japanese character sets
supported in OpenSim on linux and can now configure one of our
<em>sametime 3d</em> servers to support japanese OpenSim users properly! <img src='http://xyzzyxyzzy.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>lest you get the wrong impression: i know <strong>no</strong> japanese,
  instead i&#8217;m using <a href="http://translate.google.com/translate_t#en|ja|OpenSim%20rocks!">google translate</a> to produce suchs gems as
  &#8220;OpenSimは岩！&#8221;<sup id="fnref:2"><a href="#fn:2" rel="footnote">2</a></sup>&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

<li id="fn:2">
<p>and hoping that the good folks at google don&#8217;t do a &#8220;<a href="http://www.imdb.com/title/tt0259446/quotes">Έχω τρεις
  όρχεις</a>&#8221; on me&#8230;&#160;<a href="#fnref:2" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xyzzyxyzzy.net/2009/09/01/japanese-language-support-for-opensim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point featurename="[47.308883299155255, 8.544209003448486]">47.308883299155255 8.544209003448486</georss:point>
	</item>
		<item>
		<title>vidcasts on htc hero</title>
		<link>http://xyzzyxyzzy.net/2009/08/25/vidcasts-on-htc-hero/</link>
		<comments>http://xyzzyxyzzy.net/2009/08/25/vidcasts-on-htc-hero/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 20:42:03 +0000</pubDate>
		<dc:creator>DrScofield</dc:creator>
				<category><![CDATA[hacking]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[htc hero]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[itouch]]></category>
		<category><![CDATA[m4v]]></category>

		<guid isPermaLink="false">http://xyzzyxyzzy.net/?p=349</guid>
		<description><![CDATA[for almost 10 days i&#8217;ve been the proud owner of a new mobile phone, the htc hero, an android and, thus, linux based mobile phone! over the past year or so i had become increasingly fed up with my apple ipod touch &#8212; yes, i had jail-broken it, yes, i had amarok synchronizing via ssh [...]]]></description>
			<content:encoded><![CDATA[<p>for almost 10 days i&#8217;ve been the proud owner of a new mobile phone, the <a href="http://en.wikipedia.org/wiki/Htc_hero">htc hero</a>, an <a href="http://en.wikipedia.org/wiki/Android_%28mobile_device_platform%29">android</a> and, thus, linux based mobile phone! over the past year or so i had become increasingly fed up with my <a href="http://en.wikipedia.org/wiki/Itouch">apple ipod touch</a> &#8212; yes, i had jail-broken it, yes, i had <a href="http://en.wikipedia.org/wiki/Amarok_%28software%29">amarok</a> synchronizing via <a href="http://en.wikipedia.org/wiki/Ssh">ssh</a> with it, but at what &#8220;speed!&#8221; ridiculous!<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup></p>

<p>when my trusted nokia n95 started acting up and started crying for power more and more often the writing on the wall was quite legible: &#8220;get a new phone&#8221; &#8212; so i did <img src='http://xyzzyxyzzy.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>

<p>after a bit of research &#8212; the palm pre looked sexy but is not
available on the continent for some time to come and also lacks the
standard API set of the android platform &#8212; i settled on the android
based <a href="http://en.wikipedia.org/wiki/Htc_hero">htc hero</a>.</p>

<p>copying music over, sync-ing those podcasts i love to listen to &#8212;
it&#8217;s all just a matter of plugging in the USB data cable to the htc
hero and my thinkpad, telling the hero to offer the SD card as a USB
drive to linux and we are in business: gone are the hour long transfer
times for those <a href="http://radiotatort.ard.de/">ARD radio tatort radioplays</a> or the swiss <a href="http://www.sf.tv/podcasts/feed.php?docid=dok">SF TV
dok vidcasts</a> &#8212; it all happens in a flash now, sweet <img src='http://xyzzyxyzzy.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

<p>the only thing i was missing: vidcasts <img src='http://xyzzyxyzzy.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  turns out the hero can play
those, but you need to
 &#8211; install the <em>video player</em> application via the <em>android market</em>,
   and
 &#8211; &#8220;hack&#8221; amarok&#8217;s config file so that amarok would be cool with
   sending <code>.m4v</code> vidcasts to the hero</p>

<p>for the latter you need to locate the line that reads</p>

<pre><code>supportedFiletypes=mp3
</code></pre>

<p>in your <code>.kde/share/config/amarokrc</code> file and change it to read:</p>

<pre><code>supportedFiletypes=mp3, m4v
</code></pre>

<p>voila! amarok will now transfer those vidcasts to the hero and the
<em>video player</em> application will play them <img src='http://xyzzyxyzzy.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>don&#8217;t get me wrong: i like the user interface of the ipods and iphones. what i don&#8217;t get, though, is the early-1990s mindset of apple: a locked platform??? why on earth would you try to exclude customers from your platform? oh, never mind&#8230;&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xyzzyxyzzy.net/2009/08/25/vidcasts-on-htc-hero/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point featurename="[47.131074826701266, 8.747992515563965]">47.131074826701266 8.747992515563965</georss:point>
	</item>
	</channel>
</rss>
