<?xml version="1.0"?>
<rss xmlns:blogChannel="http://backend.userland.com/blogChannelModule" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:blog="http://bitflux.org/doctypes/blog" xmlns:php="http://php.net/xsl" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:georss="http://www.georss.org/georss" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>Placeholder title</title><link>http://blog.venefyxatu.be/blog/</link><description>This space intentionally left blank.</description><generator>Flux CMS - http://www.flux-cms.org</generator><lastBuildDate>Thu, 01 Jan 1970 01:00:00 +0100</lastBuildDate><item><title>WebOS development in vim</title><link>http://blog.venefyxatu.be/blog/archive/2010/07/13/webos-development-in-vim.html</link><guid isPermaLink="false">http://blog.venefyxatu.be/blog/archive/id/545/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">&lt;p&gt;After getting frustrated with Aptana +&#xA0;Eclipse I decided to start using vim for my WebOS&#xA0;development needs. One of the more interesting features of the WebOS Eclipse plugin is the ability to generate a new scene without having to manually call palm-generate.&lt;/p&gt;
&lt;p&gt;So I made a vim command (put this in your ~/.vimrc):&lt;/p&gt;
&lt;div style="border-style: solid; border-width: 1px; font-family: Monospace; background-color: #dde7e9;"
    &gt;let basedir = "/DATA/projects"
&lt;p/&gt;
function GenerateScene(basedir, project, name)&lt;br/&gt;
&#xA0;&#xA0;&#xA0; exe '!palm-generate -t new_scene -p "name=' . a:name . '" ' . basedir . '/' . a:project&lt;br/&gt;
endfunction&lt;br/&gt;
&lt;br/&gt;
command -nargs=+ Newscene call GenerateScene(basedir, &amp;lt;f-args&amp;gt;)&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;Now whenever I call :Newscene &amp;lt;project&amp;gt;&#xA0;&amp;lt;scene-name&amp;gt; a new scene  called scene-name will be created in /DATA/projects/project&lt;/p&gt;
&lt;p&gt;Switching projects?&lt;/p&gt;
&lt;div style="border-style: solid; border-width: 1px; font-family: Monospace; background-color: #dde7e9;"
    &gt;:let basedir="/path/to/new/project"&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;Of course, after doing some development I&#xA0;want to do a testrun as well. You'll need to make sure both novacomd and the emulator are running.&lt;/p&gt;
&lt;p&gt;The command for packaging, installing and launching the app on the emulator:&lt;/p&gt;
&lt;div style="border-style: solid; border-width: 1px; font-family: Monospace; background-color: #dde7e9;"
    &gt;:Testrun &amp;lt;project&amp;gt;&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;And for cleaning up (uninstall and remove the ipk file):&lt;/p&gt;
&lt;div style="border-style: solid; border-width: 1px; font-family: Monospace; background-color: #dde7e9;"
    &gt;:Cleanup &amp;lt;project&amp;gt;&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;Here's the code for your ~/.vimrc file:&lt;/p&gt;
&lt;div style="border-style: solid; border-width: 1px; font-family: Monospace; background-color: #dde7e9;"
    &gt;
&lt;p&gt;let domain = "be.venefyxatu.palm."&lt;br/&gt;
let appversion = "1.0.0"&lt;br/&gt;
&lt;br/&gt;
function GenerateScene(basedir, project, name)&lt;br/&gt;
&#xA0;&#xA0;&#xA0; exe '!palm-generate -t new_scene -p "name=' . a:name . '" ' . a:basedir . '/' . a:project&lt;br/&gt;
endfunction&lt;br/&gt;
&lt;br/&gt;
command -nargs=+ Newscene call GenerateScene(basedir, &amp;lt;f-args&amp;gt;)&lt;br/&gt;
&lt;br/&gt;
function Testrun(basedir, domain, appversion, project)&lt;br/&gt;
&#xA0;&#xA0;&#xA0; call PackageApp(a:basedir, a:project)&lt;br/&gt;
&#xA0;&#xA0;&#xA0; call InstallApp(a:domain, a:project, a:appversion)&lt;br/&gt;
&#xA0;&#xA0;&#xA0; call LaunchApp(a:domain, a:project)&lt;br/&gt;
endfunction&lt;br/&gt;
&lt;br/&gt;
function PackageApp(basedir, project)&lt;br/&gt;
&#xA0;&#xA0;&#xA0; silent exe '!palm-package ' . a:basedir . '/' . a:project &lt;br/&gt;
endfunction&lt;br/&gt;
&lt;br/&gt;
function InstallApp(domain, project, appversion)&lt;br/&gt;
&#xA0;&#xA0;&#xA0; silent exe '!palm-install ' . a:domain . a:project . '_' . a:appversion . '_all.ipk' &lt;br/&gt;
endfunction&lt;br/&gt;
&lt;br/&gt;
function LaunchApp(domain, project)&lt;br/&gt;
&#xA0;&#xA0;&#xA0; silent exe '!palm-launch ' . a:domain . a:project &lt;br/&gt;
endfunction&lt;br/&gt;
&lt;br/&gt;
function RemoveApp(basedir, domain, appversion, project)&lt;br/&gt;
&#xA0;&#xA0;&#xA0; silent exe '!palm-install -r ' . a:domain . a:project&lt;br/&gt;
&#xA0;&#xA0;&#xA0; silent exe '!rm -f ' . a:basedir . '/' . a:project . '/' . a:domain . a:project . '_' . a:appversion . '_all.ipk'&lt;br/&gt;
endfunction&lt;br/&gt;
&lt;br/&gt;
command -nargs=1 Testrun call Testrun(basedir, domain, appversion, &amp;lt;f-args&amp;gt;)&lt;br/&gt;
command -nargs=1 Cleanup call RemoveApp(basedir, domain, appversion, &amp;lt;f-args&amp;gt;)&lt;/p&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;Yes, there is probably a way to get the domain and version from the appinfo.json file, but I can't really be bothered :-)&lt;/p&gt;
&lt;p&gt;This might be interesting as a vim extension as well ... but once again I can't really be bothered :-)&lt;/p&gt;</content:encoded><dc:subject>vim tricks</dc:subject><dc:subject>Palm</dc:subject><dc:creator>Erik</dc:creator><dc:date>2010-07-13T12:42:41Z</dc:date></item><item><title>Project 365</title><link>http://blog.venefyxatu.be/blog/archive/2010/06/02/projec-365.html</link><guid isPermaLink="false">http://blog.venefyxatu.be/blog/archive/id/543/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">&lt;p&gt;OK, I'll admit:&#xA0;I&#xA0;gave up. When I realised that I had been skipping my daily picture for a week or two I&#xA0;decided not to pick it up again - I'd rather end it cleanly than have a gap in the series, followed inevitably by another gap later on and so on.&lt;/p&gt;
&lt;p&gt;It was, however, fun while it lasted.&lt;/p&gt;</content:encoded><dc:creator>Erik</dc:creator><dc:date>2010-06-02T08:36:57Z</dc:date></item><item><title>Project 365</title><link>http://blog.venefyxatu.be/blog/archive/2010/03/31/project-365-2.html</link><guid isPermaLink="false">http://blog.venefyxatu.be/blog/archive/id/523/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">&lt;p&gt;After three months I'm almost surprised to say that I still didn't give up my project 365. Today's picture: I read a short &lt;a href="http://tinyurl.com/ylh7s3q"
    &gt;article&lt;/a&gt; on macro photography with a point &amp;amp; shoot digital camera and decided to give it a try. &lt;a href="http://blog.venefyxatu.be/gallery/project3652010/march/2010-03-31.jpg"
    &gt;It worked&lt;/a&gt; :-)&lt;/p&gt;</content:encoded><dc:subject>Pictures</dc:subject><dc:subject>photography</dc:subject><dc:subject>project365</dc:subject><dc:creator>Erik</dc:creator><dc:date>2010-03-31T20:49:54Z</dc:date></item><item><title>Pictures</title><link>http://blog.venefyxatu.be/blog/archive/2010/03/09/pictures-2.html</link><guid isPermaLink="false">http://blog.venefyxatu.be/blog/archive/id/491/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">&lt;p&gt;&#xA0;When taking the bus to the train station after work today I decided to get off a few stops early go go and check out a local graveyard. I'm rather pleased with some of the pictures I made there, so I put them in a &lt;a href="http://blog.venefyxatu.be/gallery/photography/miscellaneous/churchyard/index.html?p=1"
    &gt;gallery&lt;/a&gt;...&lt;/p&gt;</content:encoded><dc:creator>Erik</dc:creator><dc:date>2010-03-09T20:18:38Z</dc:date></item><item><title>Palm Pre in Belgium with Mobile Vikings</title><link>http://blog.venefyxatu.be/blog/archive/2010/02/19/palm-pre-in-belgium-with-mobile-vikings.html</link><guid isPermaLink="false">http://blog.venefyxatu.be/blog/archive/id/465/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">&lt;p&gt;First of all: all credit for this trick goes to Andreas at TreoCentral. &lt;a href="http://discussion.treocentral.com/gsm-pre/218087-i-really-want-my-gsm-palm-pre-work.html"
    &gt;Here&lt;/a&gt; is the exact thread where I found it.&lt;/p&gt;
&lt;p/&gt;
&lt;p&gt;I've bought an unlocked Palm Pre in the Netherlands. Unfortunately, before it becomes usable, it needs to activate itself through your provider's data network. As it happens, I just switched to Mobile Vikings, a provider which the Pre doesn't know.&lt;/p&gt;
&lt;p&gt;Oops.&lt;/p&gt;
&lt;p/&gt;
&lt;div style="background-color: rgb(255, 255, 255); font-size: 13px; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; color: rgb(54, 63, 71); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "
    &gt;
&lt;p&gt;Internet to the rescue!&lt;/p&gt;
&lt;p&gt;It is said that WebOS 1.3 offers the possibility to enter custom data settings in the activation wizard. Let's upgrade this baby!&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;First of all: my device is originally German (the QWERTZ keyboard is a dead giveaway ;-) ), so I've &lt;a href="http://ws.palm.com/SupportDownload/app?service=external/Home&amp;sp=47&amp;cc=de&amp;lc=de"
    &gt;downloaded&lt;/a&gt; the German WebOS Doctor.&lt;/li&gt;
    &lt;li&gt;To put the Pre in WebOS Doctor mode:
    &lt;ul&gt;
        &lt;li&gt;Turn it off completely&lt;/li&gt;
        &lt;li&gt;Put the wall charger into an outlet and connect the mini USB connector to the Pre. &lt;strong&gt;Do not connect the USB port to the wall charger yet!&lt;/strong&gt;&lt;/li&gt;
        &lt;li&gt;While connecting the USB port to the wall charger, keep the "volume up" key pressed. You'll see a USB logo appear on the Pre.&lt;/li&gt;
        &lt;li&gt;Disconnect the USB port on the wall charger and plug the Pre into your computer.&lt;/li&gt;
        &lt;li&gt;Launch WebOS Doctor and follow the instructions in the wizard (I chose German just to make sure - don't know how important it is). It will recognize your Pre and start upgrading.&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;When the upgrade is done, your Pre will restart and relaunch the setup wizard. When it gets to the point where account creation fails, you will be given the option to enter custom data profile settings. Enter your provider's settings et voila, one working Palm Pre.&lt;/li&gt;
&lt;/ul&gt;
&lt;p/&gt;
&lt;/div&gt;
&lt;p/&gt;</content:encoded><dc:creator>Erik</dc:creator><dc:date>2010-02-19T23:04:03Z</dc:date></item><item><title>Back!</title><link>http://blog.venefyxatu.be/blog/archive/2010/02/05/back.html</link><guid isPermaLink="false">http://blog.venefyxatu.be/blog/archive/id/448/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">&lt;p&gt;&#xA0;And that's that. The people at &lt;a href="http://freeflux.net"
    &gt;FreeFlux&lt;/a&gt; were kind enough to provide me with an export of both the database and the files of my account there, I got my domain names sorted out, managed to get the import done properly et voila, I'm personally hosting my blog.&#xA0;&lt;/p&gt;
&lt;p&gt;w00t!&lt;/p&gt;
&lt;p&gt;Also, I caught up with posting my &lt;a href="http://blog.venefyxatu.be/gallery/project3652010/february/"
    &gt;project365&lt;/a&gt; pictures. Go me!&lt;/p&gt;</content:encoded><dc:subject>General</dc:subject><dc:subject>Pictures</dc:subject><dc:creator>Erik</dc:creator><dc:date>2010-02-05T21:23:50Z</dc:date></item><item><title>Project 365</title><link>http://blog.venefyxatu.be/blog/archive/2010/01/21/project-365.html</link><guid isPermaLink="false">http://blog.venefyxatu.be/blog/archive/id/421/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">&lt;p&gt;Oops ... hadn't taken into account that pictures take up diskspace. And that my diskspace on this account is running towards "full". I'm going to see what I can do about that (either host it myself, or work something out with the Freeflux people), but in the meantime I'll stop uploading pictures. I&#xA0;&lt;strong&gt;will&lt;/strong&gt;&#xA0;keep making them, however!&lt;/p&gt;</content:encoded><dc:subject>General</dc:subject><dc:subject>Pictures</dc:subject><dc:creator>Erik</dc:creator><dc:date>2010-01-21T12:31:44Z</dc:date></item><item><title>PageUp to irssi in Terminal (OSX)</title><link>http://blog.venefyxatu.be/blog/archive/2009/12/29/pageup-to-irssi-in-terminal-osx.html</link><guid isPermaLink="false">http://blog.venefyxatu.be/blog/archive/id/380/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">&lt;p&gt;&#xA0;Note to self: sending a PageUp to irssi running in an SSH session in Terminal on OSX Snow Leopard (as opposed to sending it to Terminal itself) is done via &lt;strong&gt;fn+shift+up&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;That is all.&lt;/p&gt;</content:encoded><dc:subject>Computers</dc:subject><dc:subject>OSX</dc:subject><dc:creator>Erik</dc:creator><dc:date>2009-12-29T14:17:38Z</dc:date></item><item><title>GPGMail on OS X Snow Leopard</title><link>http://blog.venefyxatu.be/blog/archive/2009/12/15/gpgmail-on-os-x-snow-leopard.html</link><guid isPermaLink="false">http://blog.venefyxatu.be/blog/archive/id/371/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">&lt;p/&gt;
&lt;p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"
    &gt;With the upgrade from Leopard to Snow Leopard, and the included update for AppleMail, GPGMail was broken due to it using an undocumented API which has, of course, changed.&lt;/p&gt;
&lt;p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"
    &gt;Fortunately, people more knowledgeable than I have fixed this by now, making it relatively easy to get things going again.&lt;/p&gt;
&lt;p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"
    &gt;First of all, close AppleMail.&lt;/p&gt;
&lt;p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"
    &gt;The next thing to do is to get gpg up and running again. There is an excellent explanation right here (http://macgpg.sourceforge.net/docs/howto-build-gpg-osx.txt.asc), which will allow you to copy/paste your way through the whole thing. It's your basic ./configure; make; make install; except that on Snow Leopard, you need to specify that you want to compile it for 32bit mode, like so :&#xA0;&lt;/p&gt;
&lt;p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"
    &gt;./configure CC="gcc -arch i386"&lt;/p&gt;
&lt;p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"
    &gt;Next, download this GPGMail.bundle: &lt;a href="http://dl.getdropbox.com/u/20215/GPGMail-1.2.1.mailbundle.zip"
    &gt;http://dl.getdropbox.com/u/20215/GPGMail-1.2.1.mailbundle.zip&lt;/a&gt; (see the &lt;a href="http://discussions.apple.com/thread.jspa?threadID=2136007"
    &gt;discussion thread&lt;/a&gt;, there is probably a newer one by now), unzip it and place the result in ~/Library/Mail/Bundles/&#xA0;&lt;/p&gt;
&lt;p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"
    &gt;In my case, I had to open the bundle (Ctrl-click, "Show Package Contents") and edit Contents -&amp;gt; Info.plist (using Property List Editor). It was missing two GUIDs, which I found like so:&lt;/p&gt;
&lt;pre&gt;
venefyxatu@Succubus$ grep -A 1 UUID /Applications/Mail.app/Contents/Info.plist 
&lt;span class="Apple-tab-span"
     style="white-space:pre"
    &gt; &lt;/span&gt;&amp;lt;key&amp;gt;PluginCompatibilityUUID&amp;lt;/key&amp;gt;
&lt;span class="Apple-tab-span"
     style="white-space:pre"
    &gt; &lt;/span&gt;&amp;lt;string&amp;gt;2F0CF6F9-35BA-4812-9CB2-155C0FDB9B0F&amp;lt;/string&amp;gt;

venefyxatu@Succubus$ grep -A1 UUID /System/Library/Frameworks/\
Message.framework/Resources/Info.plist 
&lt;span class="Apple-tab-span"
     style="white-space:pre"
    &gt; &lt;/span&gt;&amp;lt;key&amp;gt;PluginCompatibilityUUID&amp;lt;/key&amp;gt;
&lt;span class="Apple-tab-span"
     style="white-space:pre"
    &gt; &lt;/span&gt;&amp;lt;string&amp;gt;0CB5F2A0-A173-4809-86E3-9317261F1745&amp;lt;/string&amp;gt;&lt;/pre&gt;
&lt;p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"
    &gt;For each of those, copy the GUID (the bit in the &amp;lt;string&amp;gt; tag) and add it as a child to SupportedPluginCompatibilityUUID.&lt;/p&gt;
&lt;p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"
    &gt;That's it. Start AppleMail and it should load the plugin, once again giving you access to the GPG settings.&lt;/p&gt;
&lt;p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"
    /&gt;</content:encoded><dc:subject>GPG</dc:subject><dc:subject>OSX</dc:subject><dc:creator>Erik</dc:creator><dc:date>2009-12-15T19:02:11Z</dc:date></item><item><title>TweetDeck on Gentoo with Awesome</title><link>http://blog.venefyxatu.be/blog/archive/2009/12/10/tweetdeck-on-gentoo-with-awesome.html</link><guid isPermaLink="false">http://blog.venefyxatu.be/blog/archive/id/354/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">&lt;p&gt;After seeing it in action I&#xA0;wanted to give TweetDeck a try so, optimist that I&#xA0;am, I tried their installer. It didn't work, complaining about a corrupt .air file. So I figured I'd install the AIR framework first and then see where that would get me. All the way to this error message :&#xA0;&lt;/p&gt;
&lt;p&gt;Adobe AIR could not be installed because this is not a supported Linux distribution. Only RPM- and Debian-based Linux distributions are supported.&lt;/p&gt;
&lt;p&gt;Gentoo?&#xA0;Source-based distros?&#xA0;Get lost! Fortunately, flashman already ran into the problem and figured out a way to get AIR applications running on his distro and &lt;a href="http://www.flashinthepan.ca/computer-tips/linux-computer-tips/adobe-air-on-gentoo-linux"
    &gt;documented it&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;One more problem :&#xA0;I don't use &lt;a href="http://www.gnome.org"
    &gt;Gnome&lt;/a&gt;. I don't use &lt;a href="http://www.kde.org"
    &gt;KDE&lt;/a&gt;. I'm an &lt;a href="http://awesome.naquadah.org"
    &gt;Awesome&lt;/a&gt; fan. AIR doesn't &lt;em&gt;like&lt;/em&gt; it when people don't use Gnome or KDE&#xA0;on linux. It requires gnome-keyring or KWallet and it gets confused rather easily.&#xA0;According to the &lt;a href="http://kb2.adobe.com/cps/492/cpsid_49267.html"
    &gt;Adobe troubleshooting page&lt;/a&gt;, you can set it straight by exporting a variable.&lt;/p&gt;
&lt;p&gt;For gnome-keyring:&lt;/p&gt;
&lt;pre&gt;
$ export GNOME_DESKTOP_SESSION_ID=1&lt;/pre&gt;
&lt;p&gt;For KWallet:&lt;/p&gt;
&lt;pre&gt;
$ export KDE_FULL_SESSION=1&lt;/pre&gt;
&lt;p&gt;If you've got a KDE4 based KWallet, you also want to do:&lt;/p&gt;
&lt;pre&gt;
$ export KDE_SESSION_VERSION=4&lt;/pre&gt;
&lt;p&gt;Ka-boom!&#xA0;TweetDeck on Awesome on Gentoo. And I&#xA0;can start it with Winkey-F10 as well, like so :&#xA0;&lt;/p&gt;
&lt;p/&gt;
&lt;pre&gt;
awful.key({ modkey }, "F10",
    function ()
        awful.util.spawn_with_shell("export GNOME_DESKTOP_SESSION_ID=1; 
        /opt/air-sdk/bin/adl -nodebug \
        /opt/air-apps/TweetDeck/META-INF/AIR/application.xml \
        /opt/air-apps/TweetDeck")
    end),
&lt;/pre&gt;</content:encoded><dc:subject>Issues</dc:subject><dc:subject>Gentoo</dc:subject><dc:creator>Erik</dc:creator><dc:date>2009-12-10T11:26:06Z</dc:date></item></channel></rss>
