<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8907397279131668867</id><updated>2012-02-13T03:48:04.015+01:00</updated><category term='mail'/><category term='movies'/><category term='piracy'/><category term='pseudoscience'/><category term='privacy'/><category term='glögg'/><category term='gnu'/><category term='ports'/><category term='photos'/><category term='P990i FreeBSD'/><category term='audio'/><category term='gateway'/><category term='filesystems'/><category term='python'/><category term='spring'/><category term='family'/><category term='openvpn'/><category term='windows'/><category term='studying'/><category term='freebsd'/><category term='physics'/><category term='code'/><category term='raid'/><category term='teaching'/><category term='hardware'/><category term='swedish'/><category term='scripting'/><category term='commercials'/><category term='math'/><category term='hdd'/><category term='openbsd'/><category term='guide'/><category term='kinnarps'/><category term='dvorak'/><category term='java'/><category term='photography'/><category term='security'/><category term='politics'/><category term='justice'/><category term='humour'/><category term='language'/><category term='philosophy'/><category term='xmodmap'/><category term='life'/><category term='stallman'/><category term='photo'/><category term='ikea'/><category term='kth'/><category term='software'/><category term='unix'/><category term='*nix'/><category term='tunnel'/><category term='religion'/><category term='server'/><category term='sweden'/><category term='flowers'/><category term='journalism'/><category term='crypto'/><title type='text'>ninjin's weblog (because blog sounds terrible)</title><subtitle type='html'>Computer science, Security, Philosophy, Math,  Programming, Science,
The life of a Swedish CS student.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>64</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-8913746609194099834</id><published>2009-03-09T14:00:00.003+01:00</published><updated>2009-03-09T14:14:12.054+01:00</updated><title type='text'>Detecting endianness when making a FreeBSD port makefile</title><content type='html'>The title really says it all, my porting foo and Google foo was insufficent when I was working on a port for the IMS Corpus Workbench this weekend. I had to turn to the good people at #bsdports@EFnet and to aid me was @stass. He supplied me with what I at time suspected to be the only way, to use a regexp to extract the information from endian.h (yuck!). Here are the two options he provided.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;LITTLE_ENDIAN!= ${EGREP} \&lt;br /&gt;'^#define[[:space:]]+_BYTE_ORDER[[:space:]]+[^[:space:]]+$' \&lt;br /&gt;/usr/include/machine/endian.h | ${AWK} '{if ($3 == \&lt;br /&gt;"_LITTLE_ENDIAN") print 1;}'&lt;br /&gt;&lt;br /&gt;LITTLE_ENDIAN!= ${AWK} \&lt;br /&gt;'/^#define[[:space:]]+_BYTE_ORDER[[:space:]]+[^[:space:]]+$/&lt;br /&gt;{if ($3 == "_LITTLE_ENDIAN") print 1;}' \&lt;br /&gt;/usr/include/machine/endian.h&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;These work just fine for an ordinary shell but the same thing in a makefile needs some small adjustments. I prefered the purely AWK one, so here it is.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;LITTLE_ENDIAN= ${AWK} \&lt;br /&gt;'/^\#define[[:space:]]+_BYTE_ORDER[[:space:]]+[^[:space:]]+$$/ ' + \&lt;br /&gt;'{if ($$3 == "_LITTLE_ENDIAN") print 1;}' /usr/include/machine/endian.h&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Now hopefully the Google Bot will crawl over this and allow the next porter to find what I could not. Once again, thank you @stass. =)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-8913746609194099834?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/8913746609194099834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=8913746609194099834' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/8913746609194099834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/8913746609194099834'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2009/03/detecting-endianness-when-making.html' title='Detecting endianness when making a FreeBSD port makefile'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-9024523388508673224</id><published>2009-01-05T03:25:00.008+01:00</published><updated>2009-01-05T04:18:58.561+01:00</updated><title type='text'>Njorak isn't dead (yet (now lives on a lone E6400))</title><content type='html'>Yes, I admit it! I am still a Dvorak typer. I tried going back recently when learning Vim using my new Vim book, but I just can't. Something about Qwerty makes me squirm when trying it. Perhaps it's just that I have become accustomed to the strangeness of Dvorak but in general I don't see any reason to switch back. Sure, I am not that quick when I get in front of someone's Qwerty laptop, but I'll manage.&lt;br /&gt;&lt;br /&gt;Now with my new Dell E6400 it's time for yet another njorak layout. Since Swedish characters are too precious to miss out on, but not precious enough to get rid of all the good things about pure and clean Dvorak (hmm, I does sound like a fanatic don't I?). Here it is, the all magical njorak for Dell Latitude E6400 using the Windows key to access Swedish characters.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;! njorak, not-quite-dvorak. Version 1.2&lt;br /&gt;! By Pontus Stenetorp&lt;br /&gt;! Derived from us dvorak, accesses Swedish characters through&lt;br /&gt;! altgr or similar combos. Also swaps caps and esc.&lt;br /&gt;! Apply it to an ordinary dvorak keymap using xmodmap.&lt;br /&gt;! Dell Latitude E6400 version&lt;br /&gt;! still dedicated to spatrik&lt;br /&gt;&lt;br /&gt;! Set up Swedish special characters&lt;br /&gt;keycode 43 = d D aring&lt;br /&gt;keycode 44 = h H adiaeresis&lt;br /&gt;keycode 45 = t T odiaeresis&lt;br /&gt;&lt;br /&gt;! Windows key on a Dell Latitude E6400&lt;br /&gt;keycode 115 = Mode_switch&lt;br /&gt;&lt;br /&gt;! Swap escape and caps lock&lt;br /&gt;remove Lock = Caps_Lock&lt;br /&gt;remove Control = Escape&lt;br /&gt;keycode 66 = Escape&lt;br /&gt;keycode 9 = Caps_Lock&lt;br /&gt;add Lock = Caps_Lock&lt;br /&gt;add Control = Escape&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I have also added a Caps-lock Escape switch to this version. The reason, there is never a good reason not to remove caps-lock. The only I reason I can come up with is that it's not expected behaviour for anyone who is new to your layout. But being a Vim user (and a Dvorak user, which makes most people perplexed when trying out my keyboard) and also having taken a couple of seconds to ponder on which key I use the most, the switch really is a sane thing to do.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-9024523388508673224?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/9024523388508673224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=9024523388508673224' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/9024523388508673224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/9024523388508673224'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2009/01/njorak-isnt-dead-yet-now-lives-on-lone.html' title='Njorak isn&apos;t dead (yet (now lives on a lone E6400))'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-4556726412662431003</id><published>2009-01-04T02:00:00.012+01:00</published><updated>2009-01-05T03:47:20.344+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ports'/><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><title type='text'>Portssearch alias and portmaster</title><content type='html'>In order to manage FreeBSD ports I have used portupgrade for some time. It provides neat facilites such as the command portinstall and portupgrade, I am sure that the use of these commands is pretty straight forward. The standard way to install a port is the following.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt; &gt; cd /usr/ports/category/portname&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &gt; make install clean&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Instead portupgrade allows you to do.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; &gt; portinstall portname&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Or&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; &gt; portinstall category/portname&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One problem with portupgrade is that it's written in Ruby. One might argue that this is not really a problem, but when you have a fresh FreeBSD install you don't want to drag in Ruby as your first package. This takes time and you would rather focus on something else.&lt;br /&gt;&lt;br /&gt;Luckily there is an alternative that I quite recently stumbled upon. portmaster supports pretty much the same set of operations but is written in shell script. It's quick to install and you are ready to go in a jiffy. It also handles fetching and port configuration first and then starts building and installing.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt; &gt; portmaster category/portname&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The only problem is that it enforces the use of category/portname as arguments. This is most likely to avoid conflicts since the portname might conflict with other portnames. To resolve this portupgrade presents all "likely" matches and asks you to choose from them, portmaster just dismisses your arguments as invalid. I have considered adding this functionality in some way. Perhaps printing "likely" matches and/or conflicts and then terminating would be a good option?&lt;br /&gt;&lt;br /&gt;So, now we have a tool to handle port installation with ease. Then we need a way to search for ports when we don't know the actual name or category. There are of course several such tools but out of the box ports supplies the following way.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt; &gt; cd /usr/ports&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &gt; make search name=searchstring&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Or if you want to search in dependencies etc. you can always use key instead of name. But this usually give you far too many hits to browse through. But the output even from name is usually a bit too much, listing dependencies, web addresses and maintainers. For example.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt; &gt; cd /usr/ports&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &gt; make search name=hugs98&lt;br /&gt;  Port:   hugs98-200609_2&lt;br /&gt;  Path:   /usr/ports/lang/hugs&lt;br /&gt;  Info:   An interpreter for the functional programming language Haskell 98&lt;br /&gt;  Maint:  haskell@FreeBSD.org&lt;br /&gt;  B-deps: bash-3.2.39_1 bison-2.3_4,1 damageproto-1.1.0_2 fixesproto-4.0 gettext-0.17_1 gmake-3.81_3 inputproto-1.4.2.1 kbproto-1.0.3 libGL-7.0.3 libGLU-7.0.3 libICE-1.0.4_1,1 libSM-1.0.3_1,1 libX11-1.1.3_1,1 libXau-1.0.3_2 libXdamage-1.1.1 libXdmcp-1.0.2_1 libXext-1.0.3,1 libXfixes-4.0.3_1 libXi-1.1.3,1 libXmu-1.0.3,1 libXt-1.0.5_1 libXxf86vm-1.0.1 libdrm-2.3.1 libglut-7.0.3 libiconv-1.11_1 m4-1.4.11,1 pkg-config-0.23_1 xextproto-7.0.2 xf86vidmodeproto-2.2.2 xproto-7.0.10_1&lt;br /&gt;  R-deps: damageproto-1.1.0_2 fixesproto-4.0 inputproto-1.4.2.1 kbproto-1.0.3 libGL-7.0.3 libGLU-7.0.3 libICE-1.0.4_1,1 libSM-1.0.3_1,1 libX11-1.1.3_1,1 libXau-1.0.3_2 libXdamage-1.1.1 libXdmcp-1.0.2_1 libXext-1.0.3,1 libXfixes-4.0.3_1 libXi-1.1.3,1 libXmu-1.0.3,1 libXt-1.0.5_1 libXxf86vm-1.0.1 libdrm-2.3.1 libglut-7.0.3 pkg-config-0.23_1 xextproto-7.0.2 xf86vidmodeproto-2.2.2 xproto-7.0.10_1&lt;br /&gt;  WWW:    http://www.haskell.org/hugs/&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Usually I remedy this using grep, but perhaps I could do better with some scripting?  I quickly hacked together an alias to add to my cshrc that would allow to simply type.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; &gt; portssearch searchstring&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For example.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt; &gt; portssearch hugs&lt;br /&gt;  Port:   hugs98-200609_2&lt;br /&gt;  Path:   /usr/ports/lang/hugs&lt;br /&gt;  Info:   An interpreter for the functional programming language Haskell 98&lt;br /&gt;&lt;br /&gt;  Port:   ohugs-0.5_5&lt;br /&gt;  Path:   /usr/ports/lang/ohugs&lt;br /&gt;  Info:   Interpreter for Haskell with object-oriented features&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;All this with just two lines, an extra line to work around some difficulties with escaping strings.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; set AWKSTR='{ if ( $0 ~ /^Info:/ ) { print $0; print ""; } else { print $0; } }'&lt;br /&gt;alias portssearch "make -C /usr/ports search name=\!:1 | grep -E '^(Port|Path|In&lt;br /&gt;fo):' | awk '$AWKSTR'"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The only problem I have encountered so far is when a port lacks a comment in it's Makefile and Info: is left out you end up with some ugly output. Like this.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Port:   japanese/diclookup-emacs20&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Port:   japanese/navi2ch-emacs20&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Port:   textproc/dictum-emacs22&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But it's usually a non-issue. For now, I am happy with portmaster and my little portssearch alias.&lt;br /&gt;&lt;br /&gt;For more information on portmaster see &lt;a href="http://dougbarton.us/portmaster.html"&gt;http://dougbarton.us/portmaster.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-4556726412662431003?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/4556726412662431003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=4556726412662431003' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/4556726412662431003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/4556726412662431003'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2009/01/portssearch-alias-and-portmaster.html' title='Portssearch alias and portmaster'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5678037015208378585</id><published>2008-12-24T07:41:00.007+01:00</published><updated>2008-12-24T08:06:13.824+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='philosophy'/><category scheme='http://www.blogger.com/atom/ns#' term='religion'/><title type='text'>Philosophy of change</title><content type='html'>Recently I involuntary got involved in a religious debate (yes, again). My observation of how my counterpart argued became apparent pretty quickly. Change, is bad. Now, we should further define change in this particular context. Change, as in changes made to laid down principles or things considered to be facts.&lt;br /&gt;&lt;br /&gt;If you become a part of a doctrine, a book that rigidly defines good and bad, your habits and your afterlife. You get the feeling of certainness, at least when it comes to these things. Certainness feels good, doesn't it? You can stop worrying about these specific issues, because they have been taken care of. This observation upon religion is not new, but what are the consequences?&lt;br /&gt;&lt;br /&gt;Any change made to these principles or any element that might cause your principles to change is now causing you to feel less certain. Can god exist if we have evolved from microbes? Can my morale be justified if we are not created? Asking those questions hurt, I know, I have been there. You are faced with what seems to be two options, to abandon your principles and become a "devil", someone with no morale or certainty or to shut your eyes, perhaps even work against these "forces". For these "forces" must truly be "evil" if they tempt you to doubt? Even though they make no such claims.&lt;br /&gt;&lt;br /&gt;But I see it in another light. I see change as good. My opponent brings up things such as Einstein proving that the ether is not a necessity. That it is indeed possible that science is wrong and that it _will_ change.  I agree, I wholeheartedly agree that science will change and I think that most likely science is wrong. Wrong of course means not in perfect harmony with the physical world. Theories will change in accordance to future observations.&lt;br /&gt;&lt;br /&gt;But my opponent and I don't agree upon change. I think that change is good, I don't think that the claims of science are rigid and forever true. Instead, they will change, but most likely for the better. You proved me wrong, thank you, thank you for allowing me to discard what was faulty and move on. To me, change is good, change is the very essence of living. I strive to pass something on, not what I learnt from those before me, but what I learnt, verified and tried to take further. This goes both regarding morale and knowledge. For how else can my children be wiser than me? I am the rope, humanity is the rope dancer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5678037015208378585?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5678037015208378585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5678037015208378585' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5678037015208378585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5678037015208378585'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2008/12/philosophy-of-change.html' title='Philosophy of change'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5714612793352345213</id><published>2008-12-21T23:56:00.006+01:00</published><updated>2008-12-24T08:10:47.145+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mail'/><title type='text'>Sorting all the mail</title><content type='html'>I am subscribed to numerous mailing lists, ranging from FreeBSD to Python. As a result, I get a couple of hundreds of mail every day. Most of my mail boxes, such as the one I got from my school can't withstand such a bombardment for very long. Within matter of days the inbox will be full.&lt;br /&gt;&lt;br /&gt;My old solution was to use Thunderbird on my workstation to filter out all the mails into a directory structure on my disk. That way the mails were pulled from the server and stored at a place where storage space was plenty. It worked, but it was a bit ugly. As soon as the machine was turned off or my connection went down I would have my inbox filled until a got home and started the workstation again. Now, not being at home and not having a workstation things needed to change. But how?&lt;br /&gt;&lt;br /&gt;GMail is kind of neat, and free. You get a couple of gigabytes of storage and Google gets to index your mail and give you relevant ads. The only thing that really bothers me is that GMail sometimes uses a different terminology which clashes with ordinary email terminology. You use "labels", which really are folders on the IMAP server (took me a couple of seconds to understand what it meant to "tag" an email and to "archive it"). Sure, GMail is to date _the_ best and most intuitive way to display mails, but it is a bit confusing at times. Would I make a similar user-interface definitely, there's a lot of thought put into it.&lt;br /&gt;&lt;br /&gt;Anyway, on to the point. I unsubscribed my old email, signed up for a GMail account and subscribed my new email to about 75 lists. Then used the GMail UI to "label" all my incoming mails from the mailing lists, mails from Python/Dev are now labeled as python/dev and are thus stored in the //INBOX/python/dev directory. It's tedious, I got there. I then added my GMail account to my mail client of choice (Thunderbird) and I could read them just like in the old days, but being accessible from any computer and not having to worry about filling my inbox.&lt;br /&gt;&lt;br /&gt;Now, everything could have been just fine. But Thunderbird was not playing along. As a default Thunderbird won't check other boxes than the inbox. This is most likely due to the fact that it takes quite some time to check all the directories. But I just won't find it comfortable to click every single folder every time I want to check for mail. You can force Thunderbird to check every single one of them, but doing so requires you to edit the properties for all your directories (no, you can't change more than one at the time). This, is tedious, _very_ tedious.&lt;br /&gt;&lt;br /&gt;To make matters worse, for my ordinary inbox I sort mails by date. This is really good for simple conversations but for a mailing list like FreeBSD/Current, it just becomes a huge mess. For these cases you want to sort by threads, as in, a conversation becomes a tree, the first mail is the root, all mails are leaves and an edge is established to the mail which the mail replied to. This also requires you to change the properties on a per-directory basis. I have three operating systems and a workstation at work. I don't want to reboot to check my mail, so setting it up would force me to make about 200 clicks per client. This is not acceptable, so I turned to Google.&lt;br /&gt;&lt;br /&gt;I found the following. There is a configuration editor and there is a way to achieve this without grinding your teeth for all too long.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Check all IMAP folders for new mail&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.mozilla.org/support/thunderbird/tips#beh_downloadstartup"&gt;http://www.mozilla.org/support/thunderbird/tips#beh_downloadstartup&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Sort order for mail/news not configurable by default&lt;/span&gt;&lt;br /&gt;&lt;a href="https://bugzilla.mozilla.org/show_bug.cgi?id=86845#c74"&gt;https://bugzilla.mozilla.org/show_bug.cgi?id=86845#c74&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Just remember that you need to delete the old directories information files in order to rebuild them with the new defaults (in my case, threaded sorting). Why not use a one-liner? Remember to shut down Thunderbird before applying it and then start Thunderbirds afterwards and you are all done.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; find &lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;${PATH_TO_GMAIL_INBOX}&lt;/span&gt;&lt;span style="font-style: italic;"&gt; -name '*.msf' | xargs rm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I hope you enjoy the "easier way to do it" (tm) as much as I did.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5714612793352345213?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5714612793352345213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5714612793352345213' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5714612793352345213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5714612793352345213'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2008/12/sorting-all-mail.html' title='Sorting all the mail'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-2533184976889198490</id><published>2008-12-21T09:03:00.008+01:00</published><updated>2008-12-24T08:09:51.309+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>SSSB and automation</title><content type='html'>Recently I began reading up a bit on this whole web thing (yes, I lost my interest in coding HTML and web pages back in grade school). Things have changed and I better learn a bit since it will be beneficial for my work on my thesis. I wanted to try out authentication and HTML forms. Here's the story.&lt;br /&gt;&lt;br /&gt;SSSB is a company that rents out flats to students in Stockholm. Back in the good old days (see 2005) you registered and for every day you got a day in line. These days could be traded in for a flat when you needed one, the more days, the better the flat. But, those things changed, the rules of the game are basically the same but you need to log in now and then to show that you are active enough. This of course, is tedious, most other non-student flat renting companies in Stockholm either don't bother or charge a fee. Already back in 2005 this annoyed me a bit but now being in the US and all it's a gun to my head. If I forget I will not have anywhere to live when I get back, or worse, I may loose three years of days. This seemed like an excellent task for a small hack.&lt;br /&gt;&lt;br /&gt;The script I created has been tested a bit, but as always, use it at your own risk and take into consideration any moral implications. I will most likely not deploy it, but at least it might prove useful to someone.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#!/usr/bin/env python&lt;br /&gt;&lt;br /&gt;'''&lt;br /&gt;Author: Pontus Stenetorp&lt;br /&gt;Version: $Id: sssb.py,v 1.2 2008/12/21 08:07:04 ninjin Exp $&lt;br /&gt;&lt;br /&gt;Simple script to keep logging on the SSSB website to keep your days in line&lt;br /&gt;for a flat in Stockholm. Meant to be executed by cron now and then.&lt;br /&gt;&lt;br /&gt;This does not violate the agreement on sssb.se but the morality of automating&lt;br /&gt;this is somewhat questionable. *sigh* I remember the good old days before this&lt;br /&gt;log in every 'n' days silliness.&lt;br /&gt;'''&lt;br /&gt;&lt;br /&gt;import os&lt;br /&gt;import random&lt;br /&gt;import sys&lt;br /&gt;import time&lt;br /&gt;import urllib&lt;br /&gt;import urllib2&lt;br /&gt;&lt;br /&gt;### Constants&lt;br /&gt;## User settings&lt;br /&gt;USERNAME = '1234567890'&lt;br /&gt;PASSWORD = '1234'&lt;br /&gt;&lt;br /&gt;# The maximum amount of days to wait between logins, this value should be&lt;br /&gt;# lower than the actual required amount of days (90)&lt;br /&gt;WAIT_MAX = 90/2&lt;br /&gt;&lt;br /&gt;# The minimum amount of days to wait between logins, this is to not log in&lt;br /&gt;# all too often&lt;br /&gt;WAIT_MIN = 14&lt;br /&gt;&lt;br /&gt;# Faking is _not_ nice, but it is sometimes the only option&lt;br /&gt;FAKE_USERAGENT = True&lt;br /&gt;&lt;br /&gt;# If you want to fake, you may choose from the list below and give the index&lt;br /&gt;# here. If set to negative the script will choose one at random and note it&lt;br /&gt;# in the data file for future logins.&lt;br /&gt;FAKE_USERAGENT_INDEX = -1&lt;br /&gt;&lt;br /&gt;## Web page specifics&lt;br /&gt;SSSB_URL = 'http://www.sssb.se/index.php?page=login'&lt;br /&gt;VALUES = {'m6input_username': USERNAME, 'm6input_password': PASSWORD,&lt;br /&gt;      'mact': 'FrontEndUsers,m6,do_login,1', 'm6returnid': '794',&lt;br /&gt;      'page': '794'}&lt;br /&gt;&lt;br /&gt;## Script internals&lt;br /&gt;DATA_FILE_PATH = os.path.expanduser('~/.sssb_data')&lt;br /&gt;&lt;br /&gt;# Look for this to confirm a successful login&lt;br /&gt;LOGGED_IN_MATCH = 'Du %sr inloggad som:' % ''.join(['&amp;amp;', 'auml;'])&lt;br /&gt;&lt;br /&gt;SECONDS_PER_DAY = 60 * 60 * 24&lt;br /&gt;&lt;br /&gt;# If you are honest you will show that you are actually running a script&lt;br /&gt;REAL_USERAGENT = 'SSSB login Python script 1.0'&lt;br /&gt;&lt;br /&gt;# Thank you http://www.zytrax.com/tech/web/browser_ids.htm for the user-agents&lt;br /&gt;# A mix of user agents to choose from, ranging from MSIE to Opera on several&lt;br /&gt;# operating systems.&lt;br /&gt;FAKE_USERAGENTS = [&lt;br /&gt;      'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; SLCC1; ' +&lt;br /&gt;      '.NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; .NET ' +&lt;br /&gt;      'CLR 1.1.4322)',&lt;br /&gt;      'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SU 3.1; SLCC1; ' +&lt;br /&gt;      '.NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; Tablet ' +&lt;br /&gt;      'PC 2.0; .NET CLR 3.5.21022)',&lt;br /&gt;      'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8pre) ' +&lt;br /&gt;      'Gecko/20071019 Firefox/2.0.0.8 Navigator/9.0.0.1',&lt;br /&gt;      'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) ' +&lt;br /&gt;      'Gecko/20050519 Netscape/8.0.1',&lt;br /&gt;      'Opera/9.60 (X11; Linux i686; U; en) Presto/2.1.1, Opera/9.02 ' +&lt;br /&gt;      '(Windows NT 5.0; U; en)',&lt;br /&gt;      'Mozilla/5.0 (Windows NT 5.1; U; en) Opera 8.00',&lt;br /&gt;      'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 ' +&lt;br /&gt;      '(KHTML, like Gecko) Version/3.1.2 Safari/525.21']&lt;br /&gt;###&lt;br /&gt;&lt;br /&gt;def main(argv=None):&lt;br /&gt;&lt;br /&gt;  def read_data_file():&lt;br /&gt;      data_file = open(DATA_FILE_PATH, 'r')&lt;br /&gt;      last_login, next_login, user_agent = [line.strip() for line&lt;br /&gt;              in data_file]&lt;br /&gt;      data_file.close()&lt;br /&gt;      return int(last_login), int(next_login), user_agent&lt;br /&gt;&lt;br /&gt;  def write_data_file(last_login, next_login, user_agent):&lt;br /&gt;      if os.path.isfile(DATA_FILE_PATH):&lt;br /&gt;          os.remove(DATA_FILE_PATH)&lt;br /&gt;      data_file = open(DATA_FILE_PATH, 'w')&lt;br /&gt;      data_file.write(str(last_login) + '\n')&lt;br /&gt;      data_file.write(str(next_login) + '\n')&lt;br /&gt;      data_file.write(user_agent + '\n')&lt;br /&gt;      data_file.close()&lt;br /&gt;      return&lt;br /&gt;&lt;br /&gt;  if not os.path.isfile(DATA_FILE_PATH):&lt;br /&gt;      if not FAKE_USERAGENT:&lt;br /&gt;          user_agent = REAL_USERAGENT&lt;br /&gt;      elif FAKE_USERAGENT_INDEX &lt; user_agent =" random.choice(FAKE_USERAGENTS)" user_agent =" FAKE_USERAGENTS[FAKE_USERAGENT_INDEX]" next_login =" 0," user_agent =" read_data_file()" current_time =" int(time.time())"&gt;= next_login:&lt;br /&gt;      opener = urllib2.build_opener(urllib2.HTTPCookieProcessor())&lt;br /&gt;      data = urllib.urlencode(VALUES)&lt;br /&gt;      request = urllib2.Request(SSSB_URL, data)&lt;br /&gt;      request.add_header('User-agent', user_agent)&lt;br /&gt;      response = opener.open(request)&lt;br /&gt;    &lt;br /&gt;      logged_in_line = [line for line in response if&lt;br /&gt;              LOGGED_IN_MATCH in line]&lt;br /&gt;&lt;br /&gt;      if not logged_in_line:&lt;br /&gt;          print 'FATAL: Log-in failed'&lt;br /&gt;          return -1&lt;br /&gt;&lt;br /&gt;      next_login = random.randint(&lt;br /&gt;              current_time + WAIT_MIN * SECONDS_PER_DAY,&lt;br /&gt;              current_time +  WAIT_MAX * SECONDS_PER_DAY)&lt;br /&gt;      last_login = current_time&lt;br /&gt;      write_data_file(last_login, next_login, user_agent)&lt;br /&gt;  return 0&lt;br /&gt;&lt;br /&gt;if __name__ == '__main__':&lt;br /&gt;&lt;br /&gt;  sys.exit(main(argv=sys.argv))&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;At line #53 you may notice a strange ''.join(), Blogger finds it a good idea to translate my escaped Swedish characters. This is a remedy, so enjoy the special Blogger version which is slightly uglier than my own version.&lt;br /&gt;&lt;br /&gt;EDIT:&lt;br /&gt;Blogger is really _terrible_ at displaying code, one almost weeps when you take a look at it. All the 80 width formatting killed by static width. *sigh* Paste it into an editor and take it away from this awful place.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-2533184976889198490?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/2533184976889198490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=2533184976889198490' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2533184976889198490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2533184976889198490'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2008/12/sssb-and-automation.html' title='SSSB and automation'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-2789951970309494712</id><published>2008-06-21T12:40:00.003+02:00</published><updated>2008-06-21T12:56:09.995+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='P990i FreeBSD'/><title type='text'>P990i USB issues</title><content type='html'>Recently I got a new cell phone, my old one being 9 years old it was quite a change. I wanted one that played music, had WiFi (since I spend most of my time at school and then I could check things up without using my laptop) etc. I found a used Sony Ericsson P990i for 1000 SEK which was quite reasonable.&lt;br /&gt;&lt;br /&gt;It all worked fine until I transfered some music to it and the sound was all choppy and made my ears bleed. I phoned SE and they said that they never had heard of such an error. I was puzzled, what could cause this?&lt;br /&gt;&lt;br /&gt;I tried analyzing the encoding of the files, nothing strange about it. But when I transfered a song that I considered to be more likely not to contain errors it played flawlessly. How come? It was encoded in the same way. I even checked using SE encoding and transfer tool.&lt;br /&gt;&lt;br /&gt;Then I got it, when I played the song transfered from the phone to the computer it was still choppy. What must have happened is that SE tries to make the P990i act like a USB utility but somehow does not do it accurately (I find this likely, the phone needs a bundle of drivers), or that FreeBSD has some sort of bug in the USB handling (I find this unlikely). The first file was transfered using FreeBSD, ending up corrupted, and the second one using Windows, working just fine. This is not a pleasant surprise but now I can finally use my SE head phones.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-2789951970309494712?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/2789951970309494712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=2789951970309494712' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2789951970309494712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2789951970309494712'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2008/06/p990i-usb-issues.html' title='P990i USB issues'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-6667969951770124072</id><published>2008-03-05T23:14:00.004+01:00</published><updated>2008-12-10T07:41:02.331+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='photography'/><title type='text'>The curse of being an amateur photographer</title><content type='html'>The biggest curse of being an amateur  photographer, is that you never ever get a picture of yourself. I still don't have a picture of myself where I don't look like a complete fool.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_-gH-YN7HxPM/R88bgTZUNkI/AAAAAAAAAGo/v9gIDA8GbsU/s1600-h/IMG_1611b.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_-gH-YN7HxPM/R88bgTZUNkI/AAAAAAAAAGo/v9gIDA8GbsU/s320/IMG_1611b.jpg" alt="" id="BLOGGER_PHOTO_ID_5174384738648208962" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Last Tuesday I brought my camera to school (to take photos for KTH), a friend snatched it and tried it out and took a picture of an unsuspecting me. It's alright I suppose, but the focus is all off and I look far too serious. If it was me, I'd take another set but... that's impossible. Thanks &lt;a href="http://www.d.kth.se/%7Eauno"&gt;Auno&lt;/a&gt; for taking it, being your first shot it's really decent ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-6667969951770124072?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/6667969951770124072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=6667969951770124072' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6667969951770124072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6667969951770124072'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2008/03/curse-of-being-amateur-photographer.html' title='The curse of being an amateur photographer'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_-gH-YN7HxPM/R88bgTZUNkI/AAAAAAAAAGo/v9gIDA8GbsU/s72-c/IMG_1611b.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-580437548063548197</id><published>2008-03-03T22:46:00.011+01:00</published><updated>2008-12-10T07:41:03.508+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gnu'/><category scheme='http://www.blogger.com/atom/ns#' term='*nix'/><category scheme='http://www.blogger.com/atom/ns#' term='stallman'/><category scheme='http://www.blogger.com/atom/ns#' term='philosophy'/><category scheme='http://www.blogger.com/atom/ns#' term='religion'/><category scheme='http://www.blogger.com/atom/ns#' term='photos'/><category scheme='http://www.blogger.com/atom/ns#' term='kth'/><title type='text'>Stallman, the return</title><content type='html'>This is going to be a long one, bring a cup of tea and get reading.&lt;br /&gt;&lt;br /&gt;Richard M Stallman (I will refer to him as Stallman from now on) visited KTH back in 1986 and held a famous &lt;a href="http://www.gnu.org/philosophy/stallman-kth.html"&gt;lecture&lt;/a&gt;. At that time he and FSF also received a considerable amount of money from KTH as a thank for producing useful software for the university, 5000 USD I believe.&lt;br /&gt;&lt;br /&gt;Last Tuesday he was back, this time it was not due to the computer club (in which I am a member) but by the union "Unionen" (it means "The union" in Swedish. Yes, I know, it's a terrible name).&lt;br /&gt;&lt;br /&gt;Now, how does yours truly get into this mess of free software gurus, unions and university staff? You see, back in 1996 Stallman received an honorary doctors title from KTH, but he didn't attend the ceremony. I know one of our elder professors (he's a nice chap and I have helped him out in the past, I also look up to him as a teacher, but don't tell him ;) ).&lt;br /&gt;&lt;br /&gt;The day before Stallman arrived I didn't know if I was to attend the lecture or not, after all, I pretty much know Stallmans opinions on software and I had a deadline that Wednesday. Then, out of nowhere comes an email and I am asked if I can help out with some things just before Stallman arrives and during the lecture. The next morning when my friends woke up I asked whether or not it was alright for me to take three hours off and help out at the lecture. They said that it was alright and I informed my friend the professor that I could help him with what he wanted and bring my camera in-case KTH wanted pictures. I also asked for three of the posters KTH had made for the event, you will learn more about those later.&lt;br /&gt;&lt;br /&gt;Now, before we proceed you should know the following. When being awarded an honorary doctors title you receive a hat, it's a symbolic thing really. Because you don't really get to keep the hat.&lt;br /&gt;&lt;br /&gt;FSFE (FSF in Europe) was to bring Stallman to KTH at roughly 17:15, so I was there at 16:30. F1 which is the largest lecture hall at KTH had half it's seats taken at 17:00 and we counted an approximate of 700 people (probably more) when the doors closed. It was packed, people in the stairs, I have not seen that many people in a lecture hall before. At ~17:00 Stallman arrived.  Meeting him was a strange feeling, he looks like a hacker, talks like a hacker and certainly behaves like a hacker. He's very very frank, no "excuse me" just "I don't hear a word what you are saying." if you didn't speak up well enough. It took a while for yours truly to adapt from his usual very humble and nervous self. I should mention that I did not greet him or anything, picture me as the man in the background waiting for something to do, like bring this or that. My dear professor took care of all the official business.&lt;br /&gt;&lt;br /&gt;Stallman wanted to prepare before the lecture (and plug in his laptop), so he was lead into a lecture room near F1. Unfortunately there was to be a lecture in German, so he had to leave in a hurry and was lead into the lecture hall before the huge crowd. He just relaxed, plugged in his laptop and a water boiler and waited for the clock to turn 17:30. I took the opportunity to take some photos, as you can see below. I also managed to talk to the photographer from Computer Sweden, he pointed out something about "Well, I prefer to use natural light sources, when he noticed my flash". I thought "Well, why not?" and switched from my normal zoom to my much more light sensitive 50mm lens and tossed my flash into the bag.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/R8x4w2MYweI/AAAAAAAAAF8/1MHXWelvj8E/s1600-h/IMG_1661.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/R8x4w2MYweI/AAAAAAAAAF8/1MHXWelvj8E/s400/IMG_1661.jpg" alt="" id="BLOGGER_PHOTO_ID_5173642852518380002" border="0" /&gt;&lt;/a&gt;After being introduced by a representative from Unionen, Henrik Eriksson (the professor I mentioned earlier) took the stage.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/R8x5M2MYwfI/AAAAAAAAAGE/-NwxGfxq3ig/s1600-h/IMG_1725.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/R8x5M2MYwfI/AAAAAAAAAGE/-NwxGfxq3ig/s400/IMG_1725.jpg" alt="" id="BLOGGER_PHOTO_ID_5173643333554717170" border="0" /&gt;&lt;/a&gt;Ironically, the best shot I got is probably the shot of him. Not one of the ones I took of Stallman, well well, I am still an amateur photographer. First Henrik asked how many that were present back in 1986, I spotted two people raising their hands, there couldn't have been more than 10. Henrik then explained how all went well that day back in 1996, cannon shots were fired (Stallman pointed out "But they missed me!" and grinned) at the doctors ceremony but no Stallman was there. After reading the text which explained why Stallman received the title of honorary doctor at KTH another professor approached him and placed the hat on his head.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_-gH-YN7HxPM/R8x6OGMYwgI/AAAAAAAAAGM/6UllolCNdIo/s1600-h/IMG_1735.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_-gH-YN7HxPM/R8x6OGMYwgI/AAAAAAAAAGM/6UllolCNdIo/s400/IMG_1735.jpg" alt="" id="BLOGGER_PHOTO_ID_5173644454541181442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now, that's a picture that you won't see every day.  For more images see my &lt;a href="http://dront.deviantart.com/"&gt;dA account&lt;/a&gt;, since this blog post is supposed to be more of a story, not a set of images.&lt;br /&gt;&lt;br /&gt;Henrik then reclaimed the hat, he also mentioned that it quite looked like a magicians hat and that there probably were rabbits in it. Stallman the made a quick sprint, grabbed the hat and mimicked petting a rabbit, the crowd burst out in laughter.&lt;br /&gt;&lt;br /&gt;Now, the main event. Stallman was to speak for roughly an hour and half. For those who don't know Stallman, he's about as radical as you get when it comes to software. You don't think software is politics? That software isn't closely related to the state of our society? Well, Stallman does, and he will tell you.&lt;br /&gt;&lt;br /&gt;The speech was exactly what I expected from Stallman, he presented his view on how all software was to guarantee four freedoms for it's users. He made jokes now and then about software vendors and Bush. The only thing that surprised me was that he often pointed out that "Just because mentioned Microsoft as an example, don't think that this just applies to Microsoft, all proprietary software vendors are capable of doing this and many do".  He also made an interesting remark about piracy, "When people ask me what I think about piracy, I say, burning ships is very bad", this made the crowd burst out into laughter once more.&lt;br /&gt;&lt;br /&gt;To be honest, you can find a ton of better sources than me on Stallmans views so just read &lt;a href="http://www.gnu.org/philosophy/"&gt;one of those instead of my interpretation&lt;/a&gt;. Instead I will present some points he made.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/R8x_I2MYwhI/AAAAAAAAAGU/tYBr84fIG3M/s1600-h/IMG_1776.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/R8x_I2MYwhI/AAAAAAAAAGU/tYBr84fIG3M/s400/IMG_1776.jpg" alt="" id="BLOGGER_PHOTO_ID_5173649861905007122" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;*Four freedoms of software and how the GPL guarantees them.&lt;br /&gt;*How freedom of software guarantee a free society without unjust control.&lt;br /&gt;*The GNU project and how it was like back in the good old days.&lt;br /&gt;*How GNU/Linux is split into separate camps due to all the distros and this potentially stops what he wants to achieve with free software. He want users to care about what they are using, not just to go for "Well this works"&lt;br /&gt;*How attitudes like Linus Torvalds hurts the movement since he won't side with the philosophy of the GPL.&lt;br /&gt;*And more...&lt;br /&gt;&lt;br /&gt;Personally, I agree with him on some of his views, for example that free and open source software might benefit our society in many ways. But in just as many ways I disagree with his views. I am happy for what he has done, but I won't stand beside him. His views are in many ways a religion, good and bad, it's all there.&lt;br /&gt;&lt;br /&gt;The aftermath is Swedish papers has been very much about Stallman being paranoid. He mentioned a lot of things about cellphones being able to track you, programs spying on you, credit cards etc. etc. I agree that it might sound like he is all afraid of being tracked, but I think the answer is much more reasonable. Stallman is a freedom fighter, a radical one. He wants people to have, in a way, an ultimate power over their devices. He wants them to be able to choose whether or not they want someone to know anything about them. It's a philosophical stand, not a statement of some paranoia. I was once told that you should never rush to the conclusion that someone is stupid if there is a more rational conclusion, and although I am not a Stallman expert this very much seems to be the case here.&lt;br /&gt;&lt;br /&gt;Afterwards, Stallman stayed and wrote autographs in exchange for a 30 SEK donation to the FSF. I got one for free on one of the posters which I handed to another Stacken member. He promised to put it on the wall in the computer club room. What ever you say about Stallman, he has been influential and probably will be for the years to come. For good or for bad? I guess we won't know for sure for at least another 20 years.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-580437548063548197?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/580437548063548197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=580437548063548197' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/580437548063548197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/580437548063548197'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2008/03/stallman-return.html' title='Stallman, the return'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_-gH-YN7HxPM/R8x4w2MYweI/AAAAAAAAAF8/1MHXWelvj8E/s72-c/IMG_1661.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-3262852215576349084</id><published>2008-02-17T13:07:00.004+01:00</published><updated>2008-12-10T07:41:03.759+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>Observations on my way home</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_-gH-YN7HxPM/R7glw7bu-4I/AAAAAAAAAF0/hwLXw0gfkFI/s1600-h/usvideo.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_-gH-YN7HxPM/R7glw7bu-4I/AAAAAAAAAF0/hwLXw0gfkFI/s320/usvideo.jpg" alt="" id="BLOGGER_PHOTO_ID_5167922094925609858" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;When walking home this Friday I noticed something peculiar. Usually when a pedestrian enter a store he moves in an arch, much like my sketch to the right. He also maintains roughly the same speed as before entering the arch until he reaches the door to the store where he slows down slightly, opens the door and enters the store.&lt;br /&gt;&lt;br /&gt;But one store is different, here, people enter the store in a radically different way. They maintain normal walking speed and keep their eyes fixed straight forward, unlike when entering other stores where they always look around observing other stores and pedestrians. Then, when they have passed the point when at other stores they would begin their approach in an arch, they suddenly turn at a sharp angle and increase their speed substantially. They maintain this increased speed pushing the door open with force and does not appear to slow down until inside.&lt;br /&gt;&lt;br /&gt;The reason might be, that the store is the most well known adult video store in Stockholm.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-3262852215576349084?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/3262852215576349084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=3262852215576349084' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3262852215576349084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3262852215576349084'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2008/02/observations-on-my-way-home.html' title='Observations on my way home'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_-gH-YN7HxPM/R7glw7bu-4I/AAAAAAAAAF0/hwLXw0gfkFI/s72-c/usvideo.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-3337580430377515561</id><published>2008-01-05T13:14:00.000+01:00</published><updated>2008-01-05T13:51:12.103+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='piracy'/><category scheme='http://www.blogger.com/atom/ns#' term='politics'/><title type='text'>Swedish Anti-Piracy Commercial</title><content type='html'>Now and then Swedish anti-piracy agencies and the Swedish movie and music industry makes a commercial in order to tell us, the people of Sweden, how morally wrong piracy is. If you just cut the crap and don't argue whether piracy is wrong in the first place, the latest movie, and all other movies they have ever made, has a pattern. Let's describe the latest one.&lt;br /&gt;&lt;br /&gt;A person walks up to a public toilet and pays the fee of roughly 5 SEK (about 1 USD). Just as he enters the booth, another person forces his way into the booth with him. He is then forced to pee along with a stranger although he paid for the booth himself and the stranger does various embarrassing things and is not the least embarrassed about "stealing" his spot.&lt;br /&gt;&lt;br /&gt;Something like this is usually the theme, previously we have seen people borrowing movies from rental shops without paying.&lt;br /&gt;&lt;br /&gt;Now, what is the problem with this? It portrays the person conducting piracy as someone who is stealing from a customer or a store. Is this really the case? I certainly don't think so, a person conducting piracy don't steal anything. They certainly do some economic damage, but they don't steal. By portraying them as simple thieves, the industry leaves an open goal, their opponents laugh at them and most Swedes just think that they are silly. They look stupid, and won't get paid.&lt;br /&gt;&lt;br /&gt;What should the industry show instead? You don't have to be a genius to come up with an honest and probably better commercial. So, here you are STIM, APB, SF and so on, here's my suggestion, all for free. Instead of portraying the person who you so clearly, don't want to continue copying your material, as a thief, which he is not and will never associate himself with and therefore will continue copying your material and you have run down your many million SEK commercial down the drain. Why not show him what he actually does, show him how a movie is made, show him how money spent on a movie get people paid for their hard job, show him the set of actors and so on, showing numbers and faces. Don't go all silly and show sentimental letters, just facts, "When you condone piracy, all these people get nothing and to you, they give you the very best of their efforts". This will work, this is honest, this is what piracy is all about and how you might actually win. Stop acting like idiots with a multi-million SEK budget who are unable to send a message but able to make great movies, albums, etc. It ain't that hard, all you need is the ability to reason.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-3337580430377515561?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/3337580430377515561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=3337580430377515561' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3337580430377515561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3337580430377515561'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2008/01/swedish-anti-piracy-commercial.html' title='Swedish Anti-Piracy Commercial'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5028749497599256762</id><published>2007-12-06T23:00:00.000+01:00</published><updated>2008-12-10T07:41:03.882+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='glögg'/><title type='text'>Glögg review 2: Tillmans Glögg av Svarta Vinbär</title><content type='html'>I have had the luck of finding a really strange bottle of glögg. Tillman, which is a small rather local brand, makes glögg using black currants instead of red wine. It's also completely alcohol free, let's see how good it gets.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/R1hyo2NsNfI/AAAAAAAAAFM/TF4koZCWl5k/s1600-h/tillmansgloggsmall.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/R1hyo2NsNfI/AAAAAAAAAFM/TF4koZCWl5k/s400/tillmansgloggsmall.jpg" alt="" id="BLOGGER_PHOTO_ID_5140985020716692978" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The smell is stronger than usual, it reminds me of some glögg sweets that I stumbled upon last summer in a small candy shop. It doesn't smell like glögg usually does, but it still is rather pleasing. I suspect the smell is because of the black currants, because after the initial aroma of spices it's something like a strong cup of black currant tea.&lt;br /&gt;&lt;br /&gt;The taste is a little less punchy than one would expect from a sip of glögg, there is a lot of taste from the berries and it's not even remotely as sweet as one would fear. But, you miss the wine, the taste just won't last as long and be as deep as wine. But it is not a bad substitute for red wine, unlike most mixes of grape juice and other juices that makes glögg taste terrible you do enjoy drinking the strange mixture of black currants and glögg seasoning. I would certainly recommend it, perhaps not for a big party, but certainly as a pleasant and refreshing Christmas beverage for yourself or in the company of a friend or two.&lt;br /&gt;&lt;br /&gt;Tillmans Glögg av Svarta Vinbär&lt;br /&gt;3/5&lt;br /&gt;Price: ~40SEK per bottle of 750ml&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5028749497599256762?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5028749497599256762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5028749497599256762' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5028749497599256762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5028749497599256762'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/12/glgg-review-2-tillmans-glgg-av-svarta.html' title='Glögg review 2: Tillmans Glögg av Svarta Vinbär'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_-gH-YN7HxPM/R1hyo2NsNfI/AAAAAAAAAFM/TF4koZCWl5k/s72-c/tillmansgloggsmall.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-1489057280727801894</id><published>2007-11-18T21:12:00.000+01:00</published><updated>2008-12-10T07:41:03.995+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='glögg'/><title type='text'>Glögg review 1: Blossa lättglögg</title><content type='html'>As you have seen in my profile, I like glögg. Glögg is rather typical for northern europe and is served hot with raisins and almond during the winter season. It's most of all associated with Christmas, but some (like me) enjoy it from mid November to mid January. Glögg is made from wine, traditionally red but nowadays also white. It's seasoned, which gives it a unique sweet and rich taste. Do note that during my test sessions, I do not add almond, raisins or eat ginger snaps. It's only the glögg and nothing else that I will test.&lt;br /&gt;&lt;br /&gt;Since a lot of people never hear of this excellent beverage I thought that I'd make a set of reviews of different kinds of glögg with low-alcohol content. There are plenty of brands and flavours to chose from when it comes to high-alcohol content, but for low-alcohol there are about eight kinds to chose from. But I will try to find more.&lt;br /&gt;&lt;br /&gt;First out is the true classic "Blossa lättglögg". When you think of glögg, this is the brand that first springs to mind. It's sweet and has a rather spicy taste. You can clearly make out the traces red wine somewhere amidst all the other tastes.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/R0CftcVu3_I/AAAAAAAAAFE/m42t3IU5eyU/s1600-h/blossalattgloggsmall.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/R0CftcVu3_I/AAAAAAAAAFE/m42t3IU5eyU/s400/blossalattgloggsmall.jpg" alt="" id="BLOGGER_PHOTO_ID_5134279178252640242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Currently, this is my personal favourite. But it's rather plain, most Swedes ought to be used to this taste, so it's really nothing special about it. You just see it as what defines glögg. Therefore, I can't give it five out of five. Since, you can't stop thinking that perhaps there is another glögg out there, one that is richer, leaner and will taste even better with your ginger snaps. I therefore give it four out of five, it's good, really good. But still, there is nothing special about it.&lt;br /&gt;&lt;br /&gt;Blossa lättglögg&lt;br /&gt;4/5&lt;br /&gt;Price: ~25SEK per bottle of 750ml&lt;br /&gt;&lt;br /&gt;Those who want to know more about glögg should take a look at the &lt;a href="http://en.wikipedia.org/wiki/Mulled_wine"&gt;Wikipedia article&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-1489057280727801894?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/1489057280727801894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=1489057280727801894' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/1489057280727801894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/1489057280727801894'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/11/glgg-review-1-blossa-lttglgg.html' title='Glögg review 1: Blossa lättglögg'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_-gH-YN7HxPM/R0CftcVu3_I/AAAAAAAAAFE/m42t3IU5eyU/s72-c/blossalattgloggsmall.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-2676482985192041914</id><published>2007-11-17T01:21:00.000+01:00</published><updated>2008-12-10T07:41:04.103+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='physics'/><title type='text'>Friday night, is physics and Python night</title><content type='html'>It's Friday night, you don't have anything to do. Well, you could of course work. But after working hard for more than a week and not even having a weekend last weekend you don't want to do that. Besides, your studies and your employer must let you have some fun.&lt;br /&gt;&lt;br /&gt;What I did was dig up &lt;a href="http://www.python.org"&gt;Python&lt;/a&gt;, some upper secondary school physics and my &lt;a href="http://en.wikipedia.org/wiki/Fundamentals_of_Physics"&gt;Fundamentals of Physics&lt;/a&gt; (as I am a CS student I have only taken one course in physics at university level) and started to hack some code. Planetary orbits and gravity, I thought, could look rather nice when simulated. So a few hours later I have constructed a small program that simulates the effects of gravity.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_-gH-YN7HxPM/Rz402MVu3-I/AAAAAAAAAE8/o8jkNIxKHW0/s1600-h/firstsolarsim.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_-gH-YN7HxPM/Rz402MVu3-I/AAAAAAAAAE8/o8jkNIxKHW0/s400/firstsolarsim.png" alt="" id="BLOGGER_PHOTO_ID_5133598730878902242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;What you see is a "sun", well, it's really just a much bigger astral body (just like a sun) and some smaller planets moving in orbits around it. The lines represent gravity vectors, speed vectors, acceleration vectors and so on. They are just there to help me debug the whole thing.&lt;br /&gt;&lt;br /&gt;It has been a rather nice Friday night in my opinion. Perhaps I should hack a little more on the concept, who knows. Now I will get some sleep and tomorrow it's all school work and work again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-2676482985192041914?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/2676482985192041914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=2676482985192041914' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2676482985192041914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2676482985192041914'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/11/friday-night-is-physics-and-python.html' title='Friday night, is physics and Python night'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_-gH-YN7HxPM/Rz402MVu3-I/AAAAAAAAAE8/o8jkNIxKHW0/s72-c/firstsolarsim.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-2368396093116607462</id><published>2007-11-15T10:29:00.000+01:00</published><updated>2007-11-15T11:42:28.350+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='philosophy'/><category scheme='http://www.blogger.com/atom/ns#' term='religion'/><title type='text'>Is God dead?</title><content type='html'>Idling in the web I read the following about a Norwegian trying to prove that God doesn't exist.&lt;br /&gt;&lt;br /&gt;-"Our project is nothing less than proving that God doesn't exist. In each program I will commit a deadly sin in a new country. ... If God doesn't react by the end of the series he is declared dead."&lt;br /&gt;&lt;br /&gt;Well, I wouldn't care if God was dead. But this Norwegian clearly know nothing about how to prove that God doesn't exist. Any believer might just as well say "He chose not to act". In order to falsify the existance of God you need God to be &lt;a href="http://en.wikipedia.org/wiki/Falsifiability"&gt;falsifiable&lt;/a&gt;. Otherwise it's like beating someone capable of changing the rules of the game while playing.&lt;br /&gt;&lt;br /&gt;An example of this. Say that I have constructed a device that can detect with 100% accuracy if God is within a 25m radius. I start the device and it says that God is not within 25m. I claim that this is a proof that God doesn't exist. How ever, any &lt;span style="display: block;" id="formatbar_Buttons"&gt;&lt;span class="" style="display: block;" id="formatbar_CreateLink" title="Link" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 8);ButtonMouseDown(this);"&gt;&lt;/span&gt;&lt;/span&gt;believer might simply say "You can't detect God if he doesn't want to be detected." or "He wasn't there at the time, since he doesn't want to proved, he wants to be believed.". Thus, any godly being can't be proven to not exist. Any attempts at doing this are futile and therefore should be ignored. It's better to spend our time at tasks that may lead to results that benefit us, rather than to chase ghosts.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.svd.se/kulturnoje/nyheter/artikel_595119.svd"&gt;Article in SvD (In Swedish)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-2368396093116607462?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/2368396093116607462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=2368396093116607462' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2368396093116607462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2368396093116607462'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/11/is-god-dead.html' title='Is God dead?'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-3822874897627882777</id><published>2007-11-08T09:49:00.000+01:00</published><updated>2007-11-08T10:04:24.079+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='journalism'/><title type='text'>Misuse of statistics?</title><content type='html'>DN has published an article by &lt;span class="artavrad"&gt;&lt;span class="vinjett"&gt;Pressens Mediaservice, some news agency (I haven't looked into it very much). The article is about the failure of Radiohead's latest CD release which was available for free, on line. You could chose to pay if you wanted to. The article deems this as a failure, since 62 percent chose not to pay.&lt;br /&gt;&lt;br /&gt;Now, 62 percent is a lot, but it's not even close to what we would need to know in order to deem it a failure. How many downloaded it? How much did they earn? How much do they usually earn? How much does an old-fashioned way of distributing a CD cost? Perhaps knowing this and probably even more, we will have knowledge enough to judge whether it was a success or not. As it is now, the company who carried out the analysis (&lt;/span&gt;&lt;/span&gt;&lt;span class="text"&gt;&lt;a href="http://en.wikipedia.org/wiki/Comscore"&gt;Comscore&lt;/a&gt;, and if they judged it a failure based on only these numbers it's time to give a free and mandatory course in statistics to each and every employee)&lt;/span&gt; or a journalist at &lt;span class="artavrad"&gt;&lt;span class="vinjett"&gt;Pressens Mediaservice have taken misuse of statistics to a whole new level. Statistics is a powerful tool, but one is not to take only so much that it provides a point of view that you want to present or that you feel comfortable with. Stay true to the data, at all costs, data never lies, people do.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="artavrad"&gt;&lt;span class="vinjett"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dn.se/DNet/jsp/polopoly.jsp?d=2374&amp;amp;a=713143"&gt;Link to the article in DN (Swedish).&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-3822874897627882777?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/3822874897627882777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=3822874897627882777' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3822874897627882777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3822874897627882777'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/11/misuse-of-statistics.html' title='Misuse of statistics?'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5656203142056389356</id><published>2007-10-10T09:09:00.000+02:00</published><updated>2007-10-10T09:32:41.012+02:00</updated><title type='text'>Visions of the future</title><content type='html'>This morning I began pondering upon how we envision the future. Given a rather vague description in a text will most certainly result in an envisioned picture of your imagination that is very real indeed. You will "see" much more than the author originally intended and this of course is a good thing. The text and story should be more likely to suit your taste.&lt;br /&gt;&lt;br /&gt;Now, through this argument rises an interesting question. How different would that inner picture be? It would be very interesting to give the text below to several subjects. Shall we say five families and that the experiment is carried out at the age of twenty for five generations? This of course will risk the older family members to pass on their visions, so perhaps a choice at random among the population currently 20 years of age is more appropriate? But then instead we risk not to have a similar social context instead, which could affect the result. Considering both options above, I'd say that determining several social attributes and then choosing randomly within several combinations at each experiment. The same combination for each experiment, so there would be several lines of pictures. This is likely to yield better results than the first two options.&lt;br /&gt;&lt;br /&gt;Now to the text, I imagine something like. "When he got home from work later that day, the stars were already visible. As he reached the doorstep, he stood still for a moment and looked up at the serene sky." How different could that image be? Perhaps this is the very reason that some books never feel old, unlike films which age very quickly. Does our imagination aid us when reading, turning the authors hints about a world into our very own creation?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5656203142056389356?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5656203142056389356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5656203142056389356' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5656203142056389356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5656203142056389356'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/10/visions-of-future.html' title='Visions of the future'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-3688097630623195096</id><published>2007-09-09T12:13:00.000+02:00</published><updated>2007-09-09T12:53:04.259+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='swedish'/><category scheme='http://www.blogger.com/atom/ns#' term='language'/><title type='text'>Learn Swedish online?</title><content type='html'>For some reason, a bunch of people in Japan want to learn Swedish. ^^ It's a bit charming actually, but are there any language resources out there? I set out on a small quest to find some.&lt;br /&gt;&lt;br /&gt;Since I work and study at the Computer Science department at KTH, the first thing I thought of was &lt;a href="http://lexin.nada.kth.se/lexin-en.html"&gt;Lexin&lt;/a&gt;, Stava and Granska.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://lexin.nada.kth.se/lexin-en.html"&gt;Lexin&lt;/a&gt; is a Swedish to many-languages dictionary, it's a good tool both for us Swedes who sometimes need to check our spelling twice, or when translating Swedish. Give it a try, it's the best Swedish dictionary that is available for free.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://lexin.nada.kth.se/lexin-en.html"&gt;Lexin&lt;/a&gt; also offers a &lt;a href="http://lexin.nada.kth.se/bildteman.html"&gt;set of images&lt;/a&gt;, marked with the Swedish names for the things in the picture. Like the ones you get in elementary school books. The text is in Swedish, but try out the 33 image sets.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.nada.kth.se/%7Eviggo/stava/"&gt;Stava&lt;/a&gt; is a spelling tool and also some grammar checking is done. I think one of the creators hinted me that it did beat Microsoft Word's Swedish grammar checking in a scientific test. So although it looks simple, it's far superior to anything I have found on the web. The only drawback is that it is in Swedish, but it's fairly easy to make out which buttons to press and how it suggests change of spelling.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.csc.kth.se/tcs/projects/granska/index-en.html"&gt;Granska&lt;/a&gt; is a grammar checking tool, it's fairly new compared to the previous two tools. And to be honest, I only know that it has proven to be very good at detecting a grammatic mistake called "särskrivning" in Swedish. For example, unlike English, Swedish is very liberal when it comes to forming new words by using two words and turning them into a single word. "Get" goat, "Ryggsäck" rucksack and "Tillverkare" maker can be turned into "Getryggsäckstillverkare" Goat rucksack maker. This is a perfectly legal word, although rather strange. The language group at the CS department is responsible for this and it aims to aid non-native speakers of Swedish.&lt;br /&gt;&lt;br /&gt;I think this is all the CS department has to offer at the moment. So I set out onto the world wild web for more resources.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.hhs.se/"&gt;Stockholm School of Economics&lt;/a&gt; has a good &lt;a href="http://www2.hhs.se/isa/swedish/default.htm"&gt;40 page introduction&lt;/a&gt; to Swedish. It's free and basic.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.lysator.liu.se/%7Eleif/"&gt;Leif Stensson&lt;/a&gt; has made a &lt;a href="http://www.lysator.liu.se/language/Languages/Swedish/Grammar.html"&gt;quick guide&lt;/a&gt; to Swedish grammar, although not finished it gives some insight into Swedish grammar.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.fsi-language-courses.com/"&gt;FSI&lt;/a&gt; has a rather large collection of &lt;a href="http://www.fsi-language-courses.com/Swedish.aspx"&gt;audio files&lt;/a&gt; for practising pronunciation, I checked out the first one and it was quite al right. This is in fact the only good audio resources I did find.&lt;br /&gt;&lt;a href="http://www.transparent.com/"&gt;&lt;br /&gt;Transparent Language&lt;/a&gt; has a &lt;a href="http://www.transparent.com/tlquiz/proftest/swedish/tlswetest.htm"&gt;Swedish Proficiency Test&lt;/a&gt; on line, it's not very extensive but might give you a hint. It's not easy though, so study for a while before looking at it.&lt;br /&gt;&lt;br /&gt;I hope you get some help using these links, and good luck on your Swedish studies. Att lära sig Svenska är en utmaning, men en utmaning som i slutänden troligen ger dig en hel del glädje.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-3688097630623195096?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/3688097630623195096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=3688097630623195096' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3688097630623195096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3688097630623195096'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/09/learn-swedish-online.html' title='Learn Swedish online?'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-3360634171008409026</id><published>2007-09-02T12:26:00.000+02:00</published><updated>2008-12-10T07:41:04.332+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>Unix Party pin?</title><content type='html'>Yesterday I watched the movie &lt;a href="http://www.imdb.com/title/tt0118884/"&gt;Contact,&lt;/a&gt; based on a &lt;a href="http://en.wikipedia.org/wiki/Contact_%28novel%29"&gt;novel&lt;/a&gt; by &lt;a href="http://en.wikipedia.org/wiki/Carl_Sagan"&gt;Carl Sagan&lt;/a&gt;. I found it rather interesting, but that's not why I am making this post. On one of the computer monitors at the antenna array in New Mexico, there is a pin. Saying "Unix Party". I am not American, but I think it resembles to a political party pin, used during US elections. I have done some research about it, but I haven't found anything. Does anyone know anything about this? I would be happy to know more about this little novelty.&lt;br /&gt;&lt;br /&gt;I took a photo of the screen. It's a bit blurry, but you can clearly make out "Unix Party".&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/RtqTsS40PDI/AAAAAAAAAE0/BhmgBzjkJAU/s1600-h/unixpartysmaller.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/RtqTsS40PDI/AAAAAAAAAE0/BhmgBzjkJAU/s400/unixpartysmaller.jpg" alt="" id="BLOGGER_PHOTO_ID_5105555516771548210" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-3360634171008409026?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/3360634171008409026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=3360634171008409026' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3360634171008409026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3360634171008409026'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/09/unix-party-pin.html' title='Unix Party pin?'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_-gH-YN7HxPM/RtqTsS40PDI/AAAAAAAAAE0/BhmgBzjkJAU/s72-c/unixpartysmaller.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-1955545853569033862</id><published>2007-08-31T23:10:00.000+02:00</published><updated>2007-08-31T23:45:30.608+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='religion'/><title type='text'>Respecting and understanding differences</title><content type='html'>Lars Vilks has recently become rather famous. I have never cared much for his art, it's a bit too strange for my taste. How ever, lately, conservative Muslims have reacted with anger to his latest work. Apparently, Vilks thought that it would be a good piece of art to make a statue of the prophet Muhammed. Swedish law allows you to publish, make, etc. all sorts of things. We call it freedom of speech, basically you are allowed to do most things if the intent is not to offend. Vilks intent can be discussed, but most likely he is trying to get some attention along with creating a debate on whether or not you can mock anything. To be honest, the statue is rather silly and deserve little attention.&lt;br /&gt;&lt;br /&gt;Personally, I think you have the right to make fun of anything. As long as the sole intent is not to offend or humiliate a living person or group of individuals. In a democratic society you can make blows and take blows. Making something holy and making it taboo is not the way of an open society.  If I was Vilks I'd make a piece of art mocking most religions. That way, I'd think it was more fair. And perhaps there would be some debate among believers (concerning why some burn flags and others ignore it as a silly piece of art) instead of focusing on a single religion.&lt;br /&gt;&lt;br /&gt;As I mentioned earlier, it really deserves little attention. The right thing to do is to protest peacefully at the publisher and criticise those who you do not agree with. An excellent example is the &lt;a href="http://www.dn.se/DNet/jsp/polopoly.jsp?d=147&amp;a=687125"&gt;protest in Örebro&lt;/a&gt;, they were aimed at the paper and Vilks. I don't agree with them on whether or not it should be published, but it was nicely done and they showed their point of view.&lt;br /&gt;&lt;br /&gt;As with all things, there is also the wrong thing to do. For example, if you would go and &lt;a href="http://www.dn.se/DNet/jsp/polopoly.jsp?d=147&amp;amp;a=687292"&gt;burn&lt;/a&gt; &lt;a href="http://www.svd.se/dynamiskt/inrikes/did_16964496.asp"&gt;flags&lt;/a&gt;. You are no longer criticising Vilks and the paper that published his works. You are instead blaming a group of people, who most of them don't give a damn about Vilks, of being the source of your discontent. Doing so is no longer a protest, but an attack on an open society. You could also proceed to &lt;a href="http://www.dn.se/DNet/jsp/polopoly.jsp?d=147&amp;amp;a=687249"&gt;threatening the artist&lt;/a&gt; and thus placing you and your beliefs above Swedish law, thereby eliminating all doubts that you are not a citizen who believes in freedom of speech (apart from your own freedom to do and say what ever you like of course). Why not &lt;a href="http://www.svd.se/dynamiskt/inrikes/did_16964942.asp"&gt;burn a doll&lt;/a&gt; of a man who had nothing to do with the whole thing, apart from being the same nationality as the artist.&lt;br /&gt;&lt;br /&gt;Why can't fanatics act rationally? Why are they so blinded that they can't see how they should show their point of view (without being considered to be mental cases that are better off locked away from society)? Well, I guess that's what makes them fanatics.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-1955545853569033862?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/1955545853569033862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=1955545853569033862' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/1955545853569033862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/1955545853569033862'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/08/respecting-and-understanding.html' title='Respecting and understanding differences'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5638582426560152600</id><published>2007-07-29T13:47:00.000+02:00</published><updated>2008-12-10T07:41:04.513+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='philosophy'/><title type='text'>Pro-life?</title><content type='html'>I just can't understand how you can be Pro-life and debate that life is sacred and all. Then go home and just eat a piece of meat and don't think about how you just choose to kill a living being. A living being, very well capable of more "living" than a foetus.&lt;br /&gt;&lt;br /&gt;All lives are not equal, that's just the way it is. We don't value strangers as much as friends. We'd rather see the entire Nazi party hanged in 1933 than to let them live and cause the killing of millions of innocents. Not considering everyone and everything equal is not a sin, it's natural, and human. Do the quiz below (the parents agree in the case of foetus abortion below, so the choice is entirely yours, which is more sinful?), don't tell me that you have a hard time deciding on which lives to spare. If you do, you are the one who is having a problem with your ethics, not me.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_-gH-YN7HxPM/RqyAMxsrP4I/AAAAAAAAAEs/Btd-JCyxb78/s1600-h/abort.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_-gH-YN7HxPM/RqyAMxsrP4I/AAAAAAAAAEs/Btd-JCyxb78/s400/abort.png" alt="" id="BLOGGER_PHOTO_ID_5092586235636694914" border="0" /&gt;&lt;/a&gt;Note:&lt;br /&gt;I should have included, a man and a man as number six, but I was busy trying to draw something that vaguely resembled the text. I am not an artist in any way.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5638582426560152600?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5638582426560152600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5638582426560152600' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5638582426560152600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5638582426560152600'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/07/pro-life.html' title='Pro-life?'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_-gH-YN7HxPM/RqyAMxsrP4I/AAAAAAAAAEs/Btd-JCyxb78/s72-c/abort.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-8770175263517515788</id><published>2007-07-23T22:26:00.000+02:00</published><updated>2008-12-10T07:41:04.937+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='photo'/><title type='text'>Panorama of the view from the "Math tower"</title><content type='html'>The mathematics department resides in the clock tower at KTH. Therefore it's is called the "Math tower" by the students. You have access to a balcony just above the clock and I have been planning on taking a panorama from there. The outcome was not perfect, there are some ugly seams.  But they are not that bad. I want a sunny clear day, perhaps in the winter. That might be perfect for a view of Stockholm.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_-gH-YN7HxPM/RqUQChsrP1I/AAAAAAAAAEU/I9VKK9kM0mM/s1600-h/globentoend.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_-gH-YN7HxPM/RqUQChsrP1I/AAAAAAAAAEU/I9VKK9kM0mM/s400/globentoend.jpg" alt="" id="BLOGGER_PHOTO_ID_5090492589403750226" border="0" /&gt;&lt;/a&gt;&lt;a href="http://cjg.mine.nu/%7Eninjin/globentoend.jpg"&gt;Link to a the larger version (even though you can spot the seams easier).&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_-gH-YN7HxPM/RqUQShsrP3I/AAAAAAAAAEk/HcKLKXgVtVY/s1600-h/statuepantotheright.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_-gH-YN7HxPM/RqUQShsrP3I/AAAAAAAAAEk/HcKLKXgVtVY/s400/statuepantotheright.jpg" alt="" id="BLOGGER_PHOTO_ID_5090492864281657202" border="0" /&gt;&lt;/a&gt;&lt;a href="http://cjg.mine.nu/%7Eninjin/statuepantotheright.jpg"&gt;Link to the larger version.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-8770175263517515788?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/8770175263517515788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=8770175263517515788' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/8770175263517515788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/8770175263517515788'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/07/panorama-of-view-from-math-tower.html' title='Panorama of the view from the &quot;Math tower&quot;'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_-gH-YN7HxPM/RqUQChsrP1I/AAAAAAAAAEU/I9VKK9kM0mM/s72-c/globentoend.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-3867746248333112160</id><published>2007-07-20T12:49:00.000+02:00</published><updated>2008-12-10T07:41:05.308+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='photo'/><title type='text'>Panorama of Rynningeviken</title><content type='html'>Yesterday I took myself time to process one of the panoramas from my trip to Örebro and Lindesberg back in early June. I have gotten a lot better but I still have a lot to learn. I am not at all pleased with the look of a 220 degree panorama.  I really should read up on more general info on panoramas before processing the other two panoramas I have from that trip. The outcome is linked below.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_-gH-YN7HxPM/RqCUbP4p6oI/AAAAAAAAAEM/LdUif9Y9BKU/s1600-h/naturreservatpanorama.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_-gH-YN7HxPM/RqCUbP4p6oI/AAAAAAAAAEM/LdUif9Y9BKU/s400/naturreservatpanorama.jpg" alt="" id="BLOGGER_PHOTO_ID_5089230774770199170" border="0" /&gt;&lt;/a&gt;&lt;a href="http://cjg.mine.nu/%7Eninjin/naturreservatpanorama.jpg"&gt;&lt;br /&gt;(As usual Google won't allow me to upload obscenely large images, so here is a link to the real deal)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-3867746248333112160?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/3867746248333112160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=3867746248333112160' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3867746248333112160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3867746248333112160'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/07/panorama-of-rynningeviken.html' title='Panorama of Rynningeviken'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_-gH-YN7HxPM/RqCUbP4p6oI/AAAAAAAAAEM/LdUif9Y9BKU/s72-c/naturreservatpanorama.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-6014301766732473693</id><published>2007-07-12T17:09:00.000+02:00</published><updated>2008-12-10T07:41:05.560+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='journalism'/><category scheme='http://www.blogger.com/atom/ns#' term='pseudoscience'/><title type='text'>SvD on science or when journalism goes bad</title><content type='html'>Today, three scientist posted an article in Göteborgs-Posten, a fairly large Swedish paper where they claim that a rather new Swedish anti-hangover pill Revigör has no effects on hangovers what so ever. I will translate some parts of the article, trying to shorten it down.&lt;br /&gt;&lt;br /&gt;"Worried about a hangover? No problem, now Swedish doctors have developed an effective medicine that makes you feel well the day after! This is the message brought to you by Revigör advertisement."&lt;br /&gt;&lt;br /&gt;"Revigör comes at a price of 50 SEK and each box contains three pills which ingredients are vitamins, sugar, salt and coffein. But there are no proofs of living up to it's claims."&lt;br /&gt;&lt;br /&gt;These are the main things the scientists point out.&lt;br /&gt;&lt;br /&gt;First, to have been developed by a Doctor Haglund, yet this person has not published any scientific articles or papers regarding the effect of alcohol. Although Revigör claims that he "has dedicated his life" to the effects of alcohol.&lt;br /&gt;&lt;br /&gt;Secondly, Revigör claims to be "a result of Swedish research" and "to have been tested and shown good results in a double-blind placecontrolled study done by doctors from Karolinska Institutet and Uppsala University".  Yet, no such study has ever been published. The scientists contacted the owner of the company that produces Revigör and asked for the study. He replied that it was a company secret and that they only share it with business partners. All that are familiar with how science in all forms in conducted, know that you can never make any claims related to an unpublished study. You can't just say "I have proof, but I won't show it". The scientists then point out that it's of economic interest to the company whether or not the study is correct and that one therefore could doubt their motives on keeping it secret.&lt;br /&gt;&lt;br /&gt;The scientists the proceed to explaining how it is possible to sell a product that has scientific claims of medical effect and no proofs, in Sweden. This is due to the company labeling their product as vitamins and nutritions instead of medicine. Thus bypassing the Swedish laws and regulations on medicinal products.&lt;br /&gt;&lt;br /&gt;Lastly the scientists implies that a people taking medication against hang-overs might be more likely to drink more. They supply no proof of this, but argues that this is not something of good. Especially since Revigör can be sold to people already drunk and that Revigör states "Revigör should not be used to increace alcohol consumption".&lt;br /&gt;&lt;br /&gt;It all seems rather well, until Svenska Dagbladet decides to make an article regarding this. They choose "Scientists warns about hangover medicine" as a headline, the original headline was "Hangover medicine is a scam". Thus doing the classic "Scientists warn of X", which is rather popular in the Swedish press. The article mainly focuses on a very poor statement made by Fredrik Spak, one of the scientists. He says "To fool consumers into believing that they can drink any amount of alcohol without the effects of a hangover can in the end lead to addiction", this part, I can't understand. This is not at all what is claimed in the original article, no mention of addiction is made.  Either Spak is out of his league and making claims he can not back up or the journlist at SvD has screwed up totally when quoting him (which judging by the rest of the article is not entirely unlikely).&lt;br /&gt;&lt;br /&gt;This, however spurred a couple of angry comments by readers and several bloggers have commented on "The evil scientists, who think drinking is bad". All this because of one statement and the fact that SvD switches the focus from the "medicine" being a scam to it being harmful. I have never experienced such a poorly written article. The original article consists to about 80% on debunking the claims of Revigör and about 10% to any possible effects a false medicine might have. Then why does the SvD article consist of the opposite proportions? Also, why does the readers immediately  think that the scientists are against them drinking? At no point does any of them say that they shouldn't drink, the only comment is the one of Spark which is totally irrational. I believe that this big mess is partially SvD's fault. Do they have a science part of the paper? Did they even read the first article made by the scientists? I don't have a job for this summer and if SvD needs someone to help them establist some basic understanding on how to write articles about science and even more important, how to keep true to an original article. I am free, and not that expensive.&lt;br /&gt;&lt;br /&gt;Now, due to bad journalism the only scientific fact is lost. Revigör makes scientific claims, yet cannot support them. Thus making it a perfect example of pseudoscience. And yet... why is neither the journalists at SvD or the Swedish bloggers upset about being lied to?&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/RpZbbP4p6nI/AAAAAAAAAEE/3xOe27_Dtow/s1600-h/revig%C3%B6r.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/RpZbbP4p6nI/AAAAAAAAAEE/3xOe27_Dtow/s400/revig%C3%B6r.jpg" alt="" id="BLOGGER_PHOTO_ID_5086353352840309362" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Links:&lt;br /&gt;&lt;a href="http://www.gp.se/gp/jsp/Crosslink.jsp?d=114&amp;amp;a=357363"&gt;The original article in GP (in Swedish)&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.svd.se/dynamiskt/inrikes/did_16180553.asp"&gt;The article made on the subject by SvD (in Swedish)&lt;br /&gt;&lt;/a&gt;&lt;a href="http://www.revigor.se/"&gt;Revigörs homepage (in Swedish)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-6014301766732473693?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/6014301766732473693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=6014301766732473693' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6014301766732473693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6014301766732473693'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/07/svd-or-when-journalism-goes-bad.html' title='SvD on science or when journalism goes bad'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_-gH-YN7HxPM/RpZbbP4p6nI/AAAAAAAAAEE/3xOe27_Dtow/s72-c/revig%C3%B6r.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-6734396351732430093</id><published>2007-07-04T11:25:00.000+02:00</published><updated>2007-07-04T22:31:14.332+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='politics'/><title type='text'>SvD and the war terrorism</title><content type='html'>It has been quite some time since I felt the need to comment on a newspaper article but I can't let a thing like this pass uncriticized. SvD writes today as a part of an article on terrorism (translated from Swedish).&lt;br /&gt;&lt;br /&gt;"Yesterday in the papers pop singer Dilba was complaining about how she was treated after making a "joke" about blowing up airplanes at Arlanda airport. She had been treated "like a terrorist" and been told that she was not allowed to board her aircraft to the US. Instead she should be thankful that society is taking terrorism seriously. The anti terrorist measures she is complaining about is working."&lt;br /&gt;&lt;br /&gt;Then the article proceeds to other matters. Let me first say, what a load of complete crap!  Does anyone believe that following up on every clue no matter how trivial, will make us safer? Terrorists are not likely to go up to security guards and tell them that they are carrying a bomb. Let us look at the two parties in this story. Why does Dilba joke about blowing up airplane? She is clearly sarcastic about it. This is probably since she as a customer is annoyed to be searched and thinks that the whole procedure is ridiculous. She is therefore "complaining" in her own way, although it's is a stupid move. The staff on the other hand are acting all jumpy, they hear the word bomb and goes nuts. They know what they are looking for and better safe than sorry right? But acting like this is &lt;span style="font-weight: bold;"&gt;not&lt;/span&gt; to take the threats seriously. It's to take things out of proportion and go paranoid. The companies clearly don't mind security at all, they only care about looking secure. So that they can point out that in fact they are doing something. Real security would involve calm and reasonable employees who upon Dilbas remark says "Really? Well, cut the crap. What are you really going to do on your stay in the US? Did we check her bag?". We should praise real work to prevent terrorism, not silly security acts. Real terrorists are smarter than Dilba and therefore the security staff should be smarter as well.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.svd.se/dynamiskt/ledare/did_16069454.asp"&gt;Link to the article (in Swedish).&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.dn.se/DNet/jsp/polopoly.jsp?d=2374&amp;amp;a=667380"&gt;Link to the article about Dilba (in Swedish).&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-6734396351732430093?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/6734396351732430093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=6734396351732430093' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6734396351732430093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6734396351732430093'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/07/svd-and-war-terrorism.html' title='SvD and the war terrorism'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-7523189364931150592</id><published>2007-07-02T11:29:00.000+02:00</published><updated>2007-07-02T11:54:50.321+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><title type='text'>Making a Multi column JList</title><content type='html'>I have a small project going on that involves making a Swing GUI. Swing has all the elements I need, apart from a multi column JList. I did some browsing and found an example that worked. But I thought that it was rather static and decided to make a quick hack which was dynamic and in my opinion easier to understand. It should also be fairly easy to change the code into whatever you want it to render. For example in my project I will make it render even and odd indexes differently.&lt;br /&gt;&lt;br /&gt;The license basically says, "Do what ever you want with it, just don't claim that you made it and don't try to endorse your product using my name in case you use it in your product.".  I hope someone finds it useful.&lt;br /&gt;&lt;br /&gt;HINT: Blogger is not that good at displaying code. Here is a &lt;a href="http://www.d.kth.se/%7Eninjin/code/MultiColumnExample.java"&gt;link to a source file&lt;/a&gt; containing the code.&lt;br /&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;&lt;code&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;/**&lt;br /&gt;* Copyright (c) 2007, Pontus Stenetorp&lt;br /&gt;* All rights reserved.&lt;br /&gt;*&lt;br /&gt;* Redistribution and use in source and binary forms, with or without&lt;br /&gt;* modification, are permitted provided that the following conditions are met:&lt;br /&gt;*&lt;br /&gt;* * Redistributions of source code must retain the above copyright notice, this&lt;br /&gt;*   list of conditions and the following disclaimer.&lt;br /&gt;* * Redistributions in binary form must reproduce the above copyright notice,&lt;br /&gt;*   this list of conditions and the following disclaimer in the documentation&lt;br /&gt;*   and/or other materials provided with the distribution.&lt;br /&gt;* * Neither the name of the author nor the names of any contributors may be&lt;br /&gt;*   used to endorse or promote products derived from this software without&lt;br /&gt;*   specific prior written permission.&lt;br /&gt;*&lt;br /&gt;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"&lt;br /&gt;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE&lt;br /&gt;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE&lt;br /&gt;* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE&lt;br /&gt;* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR&lt;br /&gt;* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF&lt;br /&gt;* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS&lt;br /&gt;* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN&lt;br /&gt;* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)&lt;br /&gt;* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE&lt;br /&gt;* POSSIBILITY OF SUCH DAMAGE.&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;import java.awt.*;&lt;br /&gt;import java.util.*;&lt;br /&gt;import javax.swing.*;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* An example using a ListCellRender capable of rendering columns to render&lt;br /&gt;* a Multi-Column JList into a JFrame. The example should be fairly easy to&lt;br /&gt;* follow, if you are mainly interested in how to make a ListCellRenderer and&lt;br /&gt;* how to modify it after your own taste, just skip everything but the&lt;br /&gt;* MultiColumnCellRenderer class.&lt;br /&gt;*&lt;br /&gt;* @author Pontus Stenetorp&lt;br /&gt;* @version 2007-07-02&lt;br /&gt;*/&lt;br /&gt;public class MultiColumnExample extends JFrame {&lt;br /&gt;   // See Serialization for more info, this is to remove a warning.&lt;br /&gt;   private static final long serialVersionUID = 1L;&lt;br /&gt;  &lt;br /&gt;   private static final int ROWS = 17;&lt;br /&gt;   private static final int COLUMNS = 7;&lt;br /&gt;   private static final int ELEMENTLENGTH = 7; // The length of the element Strings.&lt;br /&gt;   private static final String TITLE = "MultiColumnJListExample";&lt;br /&gt;  &lt;br /&gt;   private ArrayList&lt;string[]&gt; data;&lt;br /&gt;   private JList list;&lt;br /&gt;   private MultiColumnCellRenderer cellrenderer;&lt;br /&gt;  &lt;br /&gt;   private MultiColumnExample() {&lt;br /&gt; // Set up the JFrame&lt;br /&gt; super(TITLE);&lt;br /&gt; this.setResizable(false);&lt;br /&gt; this.setBackground(Color.LIGHT_GRAY);&lt;br /&gt; this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt; this.setLocation(800/2 - COLUMNS * ELEMENTLENGTH * 5, 0);&lt;br /&gt; &lt;br /&gt; // Create the JList&lt;br /&gt; data = new ArrayList&lt;string[]&gt;();&lt;br /&gt; this.addExampleData(data);&lt;br /&gt; list = new JList(data.toArray());&lt;br /&gt; cellrenderer = new MultiColumnCellRenderer(COLUMNS);&lt;br /&gt; list.setCellRenderer(cellrenderer);&lt;br /&gt; &lt;br /&gt; // Play around with the colours and rendering settings.&lt;br /&gt; list.setSelectionForeground(Color.WHITE);&lt;br /&gt; list.setSelectionBackground(Color.BLACK);&lt;br /&gt; int column = 1;&lt;br /&gt; cellrenderer.setFGColour(column, Color.WHITE);&lt;br /&gt; cellrenderer.setBGColour(column, Color.BLACK);&lt;br /&gt; cellrenderer.setSFGColour(column, Color.BLACK);&lt;br /&gt; cellrenderer.setSBGColour(column, Color.WHITE);&lt;br /&gt; &lt;br /&gt; // Add the JList to the JFrame and display it.&lt;br /&gt; this.getContentPane().add(list);&lt;br /&gt; this.pack();&lt;br /&gt; this.setVisible(true);&lt;br /&gt;   }&lt;br /&gt;  &lt;br /&gt;   /**&lt;br /&gt;    * Adds some example data to a given ArrayList.&lt;br /&gt;    * @param arraylist The ArrayList to add data to.&lt;br /&gt;    */&lt;br /&gt;   private void addExampleData(ArrayList&lt;string[]&gt; arraylist) {&lt;br /&gt; Random rand = new Random();&lt;br /&gt; final int MAXVALUE = (int) Math.pow(10,ELEMENTLENGTH);&lt;br /&gt; for(int i = 0; i &lt; ROWS; i++) {&lt;br /&gt;     String[] datacolumn = new String[COLUMNS];&lt;br /&gt;     for(int j = 0; j &lt; COLUMNS; j++) {&lt;br /&gt;  // Let's have a String if it's even.&lt;br /&gt;  if(j % 2 == 0) {&lt;br /&gt;      // If you don't understand this bit, search the web for ASCIITABLE&lt;br /&gt;      char[] tobestring = new char[ELEMENTLENGTH];&lt;br /&gt;      for(int u = 0; u &lt; ELEMENTLENGTH; u++) {&lt;br /&gt;   tobestring[u] = (char) ('a' + rand.nextInt((int)('z' - 'a')));&lt;br /&gt;      }&lt;br /&gt;      tobestring[0] -= 'a' - 'A'; // Uppercase the first letter&lt;br /&gt;      datacolumn[j] = new String(tobestring);&lt;br /&gt;  }&lt;br /&gt;  // And some funky integers if odd.&lt;br /&gt;  else {&lt;br /&gt;      datacolumn[j] = String.valueOf(rand.nextInt(MAXVALUE));&lt;br /&gt;  }&lt;br /&gt;     }&lt;br /&gt;     arraylist.add(datacolumn);&lt;br /&gt; }&lt;br /&gt;   }&lt;br /&gt;  &lt;br /&gt;   /**&lt;br /&gt;    * A simple example of a ListCellRenderer capable of rendering several columns.&lt;br /&gt;    * The ListCellRenderer is also capable of manipulation of the colour of&lt;br /&gt;    * specific columns. You can of course add more functionallity with ease just&lt;br /&gt;    * by adding say different colours depending whether or not the index is odd&lt;br /&gt;    * or even using %. Feel free to use it and play around with it.&lt;br /&gt;    *&lt;br /&gt;    * @author Pontus Stenetorp&lt;br /&gt;    * @version 2007-07-02&lt;br /&gt;    */&lt;br /&gt;   private class MultiColumnCellRenderer extends JPanel&lt;br /&gt; implements ListCellRenderer {&lt;br /&gt; // See Serialization for more info, this is to remove a warning.&lt;br /&gt; private static final long serialVersionUID = 1L;&lt;br /&gt;&lt;br /&gt; private JLabel[] labels;&lt;br /&gt; private Color[] fgs; // Stores the foreground colours for each column.&lt;br /&gt; private Color[] bgs; // Stores the background colours for each column.&lt;br /&gt; private Color[] sfgs; // Stores the foreground colours for each column when selected.&lt;br /&gt; private Color[] sbgs; // Stores the background colours for each column when selected.&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * The JList has to hold objects of type and length String[columns].&lt;br /&gt;  * If no Color has been set to a column it will use the default&lt;br /&gt;  * colours of the JList.&lt;br /&gt;  *&lt;br /&gt;  * @param columns The amount of columns that the JList stores.&lt;br /&gt;  */&lt;br /&gt; public MultiColumnCellRenderer(int columns) {&lt;br /&gt;     setLayout(new GridLayout(1, columns));&lt;br /&gt;     labels = new JLabel[columns];&lt;br /&gt;     fgs = new Color[columns];&lt;br /&gt;     bgs = new Color[columns];&lt;br /&gt;     sfgs = new Color[columns];&lt;br /&gt;     sbgs = new Color[columns];&lt;br /&gt;&lt;br /&gt;     for(int i = 0; i &lt; columns; i++) {&lt;br /&gt;  labels[i] = new JLabel();&lt;br /&gt;  labels[i].setOpaque(true);&lt;br /&gt;  add(labels[i]);&lt;br /&gt;     }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * @param column The column you wish to set the foreground of.&lt;br /&gt;  * @param colour The Color to render the column foreground with.&lt;br /&gt;  */&lt;br /&gt; public void setFGColour(int column, Color colour) {&lt;br /&gt;     fgs[column] = colour;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * @param column The column you wish to set the background of.&lt;br /&gt;  * @param colour The Color to render the column background with.&lt;br /&gt;  */&lt;br /&gt; public void setBGColour(int column, Color colour) {&lt;br /&gt;     bgs[column] = colour;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * @param column The column you wish to set the selection foreground of.&lt;br /&gt;  * @param colour The Color to render the column foreground with.&lt;br /&gt;  */&lt;br /&gt; public void setSFGColour(int column, Color colour) {&lt;br /&gt;     sfgs[column] = colour;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * @param column The column you wish to set the selection background of.&lt;br /&gt;  * @param colour The Color to render the column background with.&lt;br /&gt;  */&lt;br /&gt; public void setSBGColour(int column, Color colour) {&lt;br /&gt;     sbgs[column] = colour;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; public Component getListCellRendererComponent(JList list, Object value,&lt;br /&gt;     int index, boolean isSelected, boolean cellHasFocus) {&lt;br /&gt;     // You might want to change this line in case you don't use String[]'s.&lt;br /&gt;     String[] celldata = (String[])value;&lt;br /&gt;&lt;br /&gt;     for(int i = 0; i &lt; celldata.length; i++) {&lt;br /&gt;  labels[i].setText(celldata[i]);&lt;br /&gt;&lt;br /&gt;  // Colour logic, highly configurable.&lt;br /&gt;  if(isSelected) {&lt;br /&gt;      if(sbgs[i] != null) {&lt;br /&gt;   this.labels[i].setBackground(sbgs[i]);&lt;br /&gt;      }&lt;br /&gt;      else {&lt;br /&gt;   this.labels[i].setBackground(list.getSelectionBackground());&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      if(sfgs[i] != null) {&lt;br /&gt;   this.labels[i].setForeground(sfgs[i]);&lt;br /&gt;      }&lt;br /&gt;      else {&lt;br /&gt;   this.labels[i].setForeground(list.getSelectionForeground());&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;  else {&lt;br /&gt;      if(bgs[i] != null) {&lt;br /&gt;   this.labels[i].setBackground(bgs[i]);&lt;br /&gt;      }&lt;br /&gt;      else {&lt;br /&gt;   this.labels[i].setBackground(list.getBackground());&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      if(fgs[i] != null) {&lt;br /&gt;   this.labels[i].setForeground(fgs[i]);&lt;br /&gt;      }&lt;br /&gt;      else {&lt;br /&gt;   this.labels[i].setForeground(list.getForeground());&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;     }&lt;br /&gt;&lt;br /&gt;     super.setEnabled(list.isEnabled());&lt;br /&gt;     super.setFont(list.getFont());&lt;br /&gt;     return this;&lt;br /&gt; }&lt;br /&gt;   }&lt;br /&gt;  &lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt; MultiColumnExample mce = new MultiColumnExample();&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;string[]&gt;&lt;string[]&gt;&lt;string[]&gt;&lt;/string[]&gt;&lt;/string[]&gt;&lt;/string[]&gt;&lt;/code&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;code&gt;&lt;string[]&gt;&lt;string[]&gt;&lt;string[]&gt;&lt;/string[]&gt;&lt;/string[]&gt;&lt;/string[]&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;Links:&lt;br /&gt;&lt;a href="http://www.d.kth.se/%7Eninjin/code/MultiColumnExample.java"&gt;Link to a source file containing the above code.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.tech-recipes.com/java_programming_tips1221.html"&gt;This was the code that I found and decided to make my own example.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://eli.thegreenplace.net/2006/03/20/posting-source-code-to-blogger/"&gt;Thanks to Eli Bendersky, without your post I wouldn't have figured out how to post my code.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-7523189364931150592?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/7523189364931150592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=7523189364931150592' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/7523189364931150592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/7523189364931150592'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/07/making-multi-column-jlist.html' title='Making a Multi column JList'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-2319437686341376195</id><published>2007-06-05T17:12:00.000+02:00</published><updated>2007-06-05T18:18:10.165+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><title type='text'>Wiimote under FreeBSD using bsdmoted</title><content type='html'>I have recently acquired a Wii and the Wiimote is an interesting creation indeed. Some attempts to reverse engineer it has been made and I found that FreeBSD has a driver. Sadly though, it lacks good documentation so I thought that I would walk through what I made in order to make it work.&lt;br /&gt;&lt;br /&gt;First of all, we need to enable Bluetooth device support by loading the ng_ubt Bluetooth module into the kernel.&lt;br /&gt;&lt;br /&gt;If you want it to load upon boot add the following line to /etc/loader.conf&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/loader.conf&lt;/span&gt;&lt;br /&gt;   &lt;span style="font-weight: bold;"&gt;ng_ubt_load="YES"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And load the module immediately in order to detect any Bluetooth devices. Afterwards check dmesg in order to check if any device was detected. In my case I had to remove the BT USB stick and then insert it again for it to work properly. Somehow it seems that the O/S won't detect it properly if ng_ubg wasn't loaded when the device was first detected.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# kldload ng_ubt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then we need to make config for the Bluetooth daemon, the default conf will do just fine.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# cp /usr/share/examples/netgraph/bluetooth/rc.bluetooth /etc/rc.bluetooth&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# chmod +x /etc/rc.bluetooth&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# /etc/rc.bluetooth start ubt0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now we are on to starting the bthid daemon. First let's use the default conf. If you are unable to start bthid due to some load command (yes, I admit that I have forgot which command it was AND lost the link to the solution). Then you need to upgrade to the latest STABLE RELENG_6, where the problem has been solved.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# cp /usr/src/usr.sbin/bluetooth/bthidd/bthidd.conf.sample /etc/bluetooth/bthidd.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# /etc/rc.d/bthid start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now on to getting your Wiimote's BD_ADDR. You will probably have a bundle of BT devices nearby if you live in an apartment. I detected "Willy's mobile" for example. Press 1 and 2 simultaneously on the Wiimote and it will enter a detectable mode. Then execute a following command and note down all BD_ADDR of the devices that responds.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# hccontrol -n ubt0hci inquiry&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[a list of devices]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When you request the name of the device (the Wiimote should still be blinking on happily in 1 + 2 detectable mode) it should respond accordingly. It will of course use another BD_ADDR.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# hccontrol -n ubt0hci remote_name_request 12:34:56:78:9A:BC&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;BD_ADDR: 12:34:56:78:9A:BC&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Name: Nintendo RVL-CNT-01&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now you need to fetch the bsdmoted source. Get the latest version from.&lt;a href="http://sourceforge.net/projects/bsdmoted/"&gt; http://sourceforge.net/projects/bsdmoted/&lt;/a&gt;&lt;br /&gt;Extract it somewhere and cd into the directory.  Then clean, compile, install clean.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# make clean&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# make install&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# make clean&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You now need to configure bsdmoted with some info from the Wiimote. Execute the following command to do this.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;# bthidcontrol -a  12:34:56:78:9A:BC query &gt;&gt; /usr/local/etc/bsdmoted.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now you only need to start the bsdmoted daemon.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# bsdmoted&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The binds are the following:&lt;br /&gt;A is the left mouse button.&lt;br /&gt;B is the right mouse button.&lt;br /&gt;+ and - are used to calibrate the sensitivity .&lt;br /&gt;Use 1 and 2 to switch between IR-mode and tilting mode.&lt;br /&gt;&lt;br /&gt;I did not get the IR-mode working, but perhaps you do. Enjoy!&lt;br /&gt;&lt;br /&gt;Recommended reading:&lt;br /&gt;&lt;a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-bluetooth.html"&gt;The FreeBSD handbook on Bluetooth.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;bsdmoted links:&lt;br /&gt;&lt;a href="http://sourceforge.net/projects/bsdmoted"&gt;The bsdmoted Sourceforge page.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.csie.ntu.edu.tw/%7Echshou/bsdmoted/"&gt;Chuan-Heng Hsiao's bsdmoted page (videos showing that it actually works).&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-2319437686341376195?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/2319437686341376195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=2319437686341376195' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2319437686341376195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2319437686341376195'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/06/wiimote-under-freebsd-using-bsdmoted.html' title='Wiimote under FreeBSD using bsdmoted'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-6187317037201995351</id><published>2007-06-05T00:08:00.000+02:00</published><updated>2008-12-10T07:41:08.828+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><category scheme='http://www.blogger.com/atom/ns#' term='photos'/><title type='text'>Going home... well... sort of</title><content type='html'>Returning to where you grew up brings you a certain feeling. A feeling of things that have been lost forever. You feel old, happy and sad. And for some reason, you want to return home, to where you currently live. Meeting friends and family is nice, but it stirs up a lot of emotions. It's exhausting.&lt;br /&gt;&lt;br /&gt;I had the chance to take a lot of photos, wandering around Örebro and Lindesberg. Here are some of them. I will process a few panorama photos that needs to be stitched in the days to come (or tonight if I'll take a cup of tea in order to stay awake).&lt;br /&gt;&lt;br /&gt;Let's begin with some flowers.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_-gH-YN7HxPM/RmSVAsyWYRI/AAAAAAAAADs/O-uUkeDpw_w/s1600-h/treebouqet.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_-gH-YN7HxPM/RmSVAsyWYRI/AAAAAAAAADs/O-uUkeDpw_w/s400/treebouqet.jpg" alt="" id="BLOGGER_PHOTO_ID_5072342919580901650" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_-gH-YN7HxPM/RmSVK8yWYSI/AAAAAAAAAD0/uW_GNyf8V8A/s1600-h/treebouqetwhite.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_-gH-YN7HxPM/RmSVK8yWYSI/AAAAAAAAAD0/uW_GNyf8V8A/s400/treebouqetwhite.jpg" alt="" id="BLOGGER_PHOTO_ID_5072343095674560802" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/RmSUXcyWYLI/AAAAAAAAAC8/xI1nWLqcRxs/s1600-h/nyponros.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/RmSUXcyWYLI/AAAAAAAAAC8/xI1nWLqcRxs/s400/nyponros.jpg" alt="" id="BLOGGER_PHOTO_ID_5072342210911297714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_-gH-YN7HxPM/RmSUcMyWYMI/AAAAAAAAADE/Qa4oWcEc0VM/s1600-h/peeoner.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_-gH-YN7HxPM/RmSUcMyWYMI/AAAAAAAAADE/Qa4oWcEc0VM/s400/peeoner.jpg" alt="" id="BLOGGER_PHOTO_ID_5072342292515676354" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/RmSSzcyWYJI/AAAAAAAAACs/gCGWkokIKsc/s1600-h/dalsko.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/RmSSzcyWYJI/AAAAAAAAACs/gCGWkokIKsc/s400/dalsko.jpg" alt="" id="BLOGGER_PHOTO_ID_5072340492924379282" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Then some flowers and bees.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_-gH-YN7HxPM/RmSSh8yWYHI/AAAAAAAAACc/mERyyBtFoBw/s1600-h/bee.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_-gH-YN7HxPM/RmSSh8yWYHI/AAAAAAAAACc/mERyyBtFoBw/s400/bee.jpg" alt="" id="BLOGGER_PHOTO_ID_5072340192276668530" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_-gH-YN7HxPM/RmSSu8yWYII/AAAAAAAAACk/VIZ1T7GghUA/s1600-h/bumblebee.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_-gH-YN7HxPM/RmSSu8yWYII/AAAAAAAAACk/VIZ1T7GghUA/s400/bumblebee.jpg" alt="" id="BLOGGER_PHOTO_ID_5072340415614967938" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Then some animals.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_-gH-YN7HxPM/RmSU2MyWYPI/AAAAAAAAADc/9huDgoxC2CE/s1600-h/skaggdopping.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_-gH-YN7HxPM/RmSU2MyWYPI/AAAAAAAAADc/9huDgoxC2CE/s400/skaggdopping.jpg" alt="" id="BLOGGER_PHOTO_ID_5072342739192275186" border="0" /&gt;&lt;/a&gt;A "Skäggdopping" or Great crested grebe in English.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_-gH-YN7HxPM/RmSUt8yWYOI/AAAAAAAAADU/NbxLeK4cVDY/s1600-h/sadsparv.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_-gH-YN7HxPM/RmSUt8yWYOI/AAAAAAAAADU/NbxLeK4cVDY/s400/sadsparv.jpg" alt="" id="BLOGGER_PHOTO_ID_5072342597458354402" border="0" /&gt;&lt;/a&gt;I am not sure which bird this was, I guess I should ask my mother to remind me on what was told about it.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/RmSUPcyWYKI/AAAAAAAAAC0/616GrRCpI-Q/s1600-h/grasand.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/RmSUPcyWYKI/AAAAAAAAAC0/616GrRCpI-Q/s400/grasand.jpg" alt="" id="BLOGGER_PHOTO_ID_5072342073472344226" border="0" /&gt;&lt;/a&gt;A "Gräsand" or a Mallard I believe it's called in English.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/RmSUkcyWYNI/AAAAAAAAADM/ipQxnshMaI0/s1600-h/pump.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/RmSUkcyWYNI/AAAAAAAAADM/ipQxnshMaI0/s400/pump.jpg" alt="" id="BLOGGER_PHOTO_ID_5072342434249597138" border="0" /&gt;&lt;/a&gt;In my hometown Lindesberg this relic has been left standing near the railway station. It's a pump for filling up the water tank of steam engines.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_-gH-YN7HxPM/RmSSWMyWYGI/AAAAAAAAACU/_Y5B20DIQK0/s1600-h/antiduva.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_-gH-YN7HxPM/RmSSWMyWYGI/AAAAAAAAACU/_Y5B20DIQK0/s400/antiduva.jpg" alt="" id="BLOGGER_PHOTO_ID_5072339990413205602" border="0" /&gt;&lt;/a&gt;It seems that the railway company has taken actions against birds deciding to rest too close to the electric lines.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_-gH-YN7HxPM/RmSU68yWYQI/AAAAAAAAADk/ov-SWn6Wrfs/s1600-h/skylt.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_-gH-YN7HxPM/RmSU68yWYQI/AAAAAAAAADk/ov-SWn6Wrfs/s400/skylt.jpg" alt="" id="BLOGGER_PHOTO_ID_5072342820796653826" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;In Örebro I found this old sign on a door to a house from the early 20th century. Roughly translated into English it reads "Begging and the sale of merchandise within this property is strictly forbidden".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-6187317037201995351?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/6187317037201995351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=6187317037201995351' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6187317037201995351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6187317037201995351'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/06/going-home-well-sort-of.html' title='Going home... well... sort of'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_-gH-YN7HxPM/RmSVAsyWYRI/AAAAAAAAADs/O-uUkeDpw_w/s72-c/treebouqet.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-557366210158939823</id><published>2007-06-02T02:06:00.000+02:00</published><updated>2008-12-10T07:41:09.131+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='photo'/><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>In health... and a panorama</title><content type='html'>Today I felt better, I managed to get some work done and ship a patch to a customer. I also remembered that &lt;a href="http://cjg.mine.nu/"&gt;cjg&lt;/a&gt; and I tried to make a 360 degree panorama photo from the KTH clock tower last summer. Eager to try it myself this time with my rather new camera I set off to the tower. It was closed, so I wandered around campus for roughly 2h and the sun was setting. Finally when I walked through one of the computer halls I found a view. The result can be seen below, it's a rather huge picture so I recommend opening it in a separate window. The only editing done, apart from making it a panorama from several smaller pictures, is removing some flaws made by my camera.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_-gH-YN7HxPM/RmC12BnRD7I/AAAAAAAAACM/MzDi3faMjfc/s1600-h/finalskypanorama.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_-gH-YN7HxPM/RmC12BnRD7I/AAAAAAAAACM/MzDi3faMjfc/s400/finalskypanorama.jpg" alt="" id="BLOGGER_PHOTO_ID_5071253120169873330" border="0" /&gt;&lt;/a&gt;&lt;a href="http://cjg.mine.nu/%7Eninjin/finalskypanorama.jpg"&gt;(singe Google don't want to host the whole image, here is a link to the real thing)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;What you see is, starting from the lower left corner is the &lt;a href="http://www.svenskakyrkan.se/engelbrekt/engelbrektskyrkan.htm"&gt;Engelbrekt church&lt;/a&gt;, the flag of the KTH &lt;a href="http://www.ths.kth.se/index.html"&gt;student union&lt;/a&gt; beneath the flag is the one of KTH;s administrative buildings, the tall distant building is &lt;a href="http://www.sssb.se/index.php?page=areainfo_522"&gt;"Nyponet"&lt;/a&gt; a 21 story building with student apartments, next with a rather tall chimney is what I believe to be an on-campus heating plant and finally the tower of the KTH library (&lt;a href="http://www.lib.kth.se/main/default.asp"&gt;KTHB&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://exolucere.ca/articles/create-panorama"&gt;A tutorial on how to make panorama pictures.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-557366210158939823?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/557366210158939823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=557366210158939823' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/557366210158939823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/557366210158939823'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/06/in-health-and-panorama.html' title='In health... and a panorama'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_-gH-YN7HxPM/RmC12BnRD7I/AAAAAAAAACM/MzDi3faMjfc/s72-c/finalskypanorama.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-7753115074140081580</id><published>2007-05-31T11:59:00.000+02:00</published><updated>2008-12-10T07:41:09.993+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><category scheme='http://www.blogger.com/atom/ns#' term='photos'/><title type='text'>In sickness... and strawberries</title><content type='html'>Last Monday I wrote my final exam for this semester. As it usually happens, I got sick the same day. I have caught a rather bad cold and has been more or less down and out since then.&lt;br /&gt;&lt;br /&gt;Yesterday I bought some Swedish strawberries to cheer me up (and get some vitamins, minerals and all other things I know are good for me). They were not cheap. For those of you who doesn't know, strawberries is the most exotic thing that grows in Sweden. Most fruits are imported and thus not tasting as good as they would in more southern countries. So, strawberries is a special thing for many of us Swedes. I serve them in a bowl, with milk, some cream and sugar. For a moment it actually felt like summer, but the weather says otherwise. I also took some photos, since I think strawberries are rather beautiful.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_-gH-YN7HxPM/Rl6eaxnRD4I/AAAAAAAAAB0/mn8GA4dxnvQ/s1600-h/bowl.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_-gH-YN7HxPM/Rl6eaxnRD4I/AAAAAAAAAB0/mn8GA4dxnvQ/s400/bowl.jpg" alt="" id="BLOGGER_PHOTO_ID_5070664413297577858" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/Rl6epBnRD5I/AAAAAAAAAB8/yTdohuUiqyU/s1600-h/jordgubbe.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/Rl6epBnRD5I/AAAAAAAAAB8/yTdohuUiqyU/s400/jordgubbe.jpg" alt="" id="BLOGGER_PHOTO_ID_5070664658110713746" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_-gH-YN7HxPM/Rl6exRnRD6I/AAAAAAAAACE/o0PtOL6e8Uc/s1600-h/halva.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_-gH-YN7HxPM/Rl6exRnRD6I/AAAAAAAAACE/o0PtOL6e8Uc/s400/halva.jpg" alt="" id="BLOGGER_PHOTO_ID_5070664799844634530" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;This summer I will study three courses in physics. I trust most of them to be very interesting, but I will provide further comments on this as the courses begin next week.&lt;br /&gt;&lt;br /&gt;Lastly, in the news. DN writes about the right-wing Swedish government looking over routines for state television and radio. In Sweden we have two television channels run by the state and four radio channels. They mostly provide music and programs which they commercial channels are not interested in. Debates, classical music and so on. They also has to provide it for a large majority of the Swedish citizens. Where I used to live we didn't have any commercial radio channels since the population was only about 10'000, lately one or two commercial channels have become available (and only playing horrible popular music anyway). To finance all this, the state claims ~4 SEK a day from everyone who owns a television. We even have people employed to check in on you if you are paying. Sadly, our government seems to like this solution. I think it's an old (and bad) idea, that was a good idea back in the middle of the 20th century. Back then some people didn't own a TV and would probably not like paying for channels they couldn't watch. Now, things are different. Most people own a television and it takes money to check whether or not someone owns a television and to administrate it all. Why not let it be a part of the tax instead? Thus making the system more efficient and making it impossible to avoid paying for your TV. The increase in tax will be unnoticeable and people will not complain about such a marginal increase. I just can't stand bad solutions to simple problems...&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dn.se/DNet/jsp/polopoly.jsp?d=1058&amp;a=656037"&gt;Link to the article (in Swedish).&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.dn.se/DNet/jsp/polopoly.jsp?d=1058&amp;amp;a=656183"&gt;Link to more comments made by the Swedish minister of culture (in Swedish).&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.svd.se/dynamiskt/brannpunkt/did_15609849.asp"&gt;Link to the first statement made by the Swedish minister of culture in SvD (in Swedish).&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-7753115074140081580?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/7753115074140081580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=7753115074140081580' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/7753115074140081580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/7753115074140081580'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/05/in-sickness-and-strawberries.html' title='In sickness... and strawberries'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_-gH-YN7HxPM/Rl6eaxnRD4I/AAAAAAAAAB0/mn8GA4dxnvQ/s72-c/bowl.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-4419419498238824883</id><published>2007-05-17T12:37:00.000+02:00</published><updated>2008-12-10T07:41:10.594+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><category scheme='http://www.blogger.com/atom/ns#' term='photos'/><title type='text'>Thoughts and photos of a salt crystal</title><content type='html'>I have taken three out of five exams for this semester now. The next one up is discrete mathematics, it scares me a bit but I guess I'll do fine as usual. I will just get a cup of tea and read through the chapters once again this afternoon and then focus on getting it all to work in practice. After the math exam it's just a silly course in economics that is more or less a walk in the park.&lt;br /&gt;&lt;br /&gt;I have applied for three courses at KTH for this summer and two courses at another university. I have received letters of acceptance from the second university but I'd rather study at KTH. I hope to take courses mainly in physics with some connection to computer science or a field related to computer science so that I can apply my knowledge in courses to come.&lt;br /&gt;&lt;br /&gt;Instead of going on about bad things I thought that today I would just mention some news that made me happy. S. Korea and N. Korea seems to be getting along better. &lt;a href="http://www.svd.se/dynamiskt/utrikes/did_15476497.asp"&gt;SvD&lt;/a&gt; (in Swedish) writes that regular communications between the countries might be resumed, hopefully this will result in Koreans being able to see their relatives and exchange knowledge, goods and so on. Thus leading to less tension in the area.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dn.se/DNet/jsp/polopoly.jsp?d=678&amp;a=651059"&gt;DN&lt;/a&gt; (in Swedish) says that Amazon is apparently going to sell non-DRM-damaged music. Finally! A company that realises that damaging a product makes it useless. Now I don't have to buy CD;s and rip them in order to play them on my computer.&lt;br /&gt;&lt;br /&gt;Lastly, a couple of months ago I visited my mother and she had bought some kind of sea salt. The package also contained larger crystals which I sought out and brought one of them home. The photos didn't end up that well, but I really like the shapes.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_-gH-YN7HxPM/RkwxwxnRD3I/AAAAAAAAABs/qeu75LEQa8I/s1600-h/side1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_-gH-YN7HxPM/RkwxwxnRD3I/AAAAAAAAABs/qeu75LEQa8I/s400/side1.jpg" alt="" id="BLOGGER_PHOTO_ID_5065478394906480498" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_-gH-YN7HxPM/RkwxnxnRD2I/AAAAAAAAABk/smbDFBVzDZ0/s1600-h/above.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_-gH-YN7HxPM/RkwxnxnRD2I/AAAAAAAAABk/smbDFBVzDZ0/s400/above.jpg" alt="" id="BLOGGER_PHOTO_ID_5065478240287657826" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/RkwxdhnRD1I/AAAAAAAAABc/9-V4njLBf8w/s1600-h/side2.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/RkwxdhnRD1I/AAAAAAAAABc/9-V4njLBf8w/s400/side2.jpg" alt="" id="BLOGGER_PHOTO_ID_5065478064193998674" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-4419419498238824883?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/4419419498238824883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=4419419498238824883' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/4419419498238824883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/4419419498238824883'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/05/thoughts-and-photos-of-salt-crystal.html' title='Thoughts and photos of a salt crystal'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_-gH-YN7HxPM/RkwxwxnRD3I/AAAAAAAAABs/qeu75LEQa8I/s72-c/side1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5921482205342051395</id><published>2007-05-06T17:23:00.000+02:00</published><updated>2008-12-10T07:41:11.275+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='spring'/><category scheme='http://www.blogger.com/atom/ns#' term='life'/><category scheme='http://www.blogger.com/atom/ns#' term='photos'/><title type='text'>Photos of a deep pink flower</title><content type='html'>There is a tree just outside my window. Last year it bloomed beautifully and since I bought a camera after Christmas I have waited for it to bloom. Then when it burst into bloom I waited for the sun to reach it. The building next to mine cast a huge shadow over the tree. But today, when writing one of my home-exams I finally got the chance.&lt;br /&gt;&lt;br /&gt;I took the first two using a chair and raising the camera over my head. That tree is pretty tall. For the other two I just used a chair.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_-gH-YN7HxPM/Rj30q2Sc6zI/AAAAAAAAABU/kMKhRnqNuXs/s1600-h/flowerfromabove1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_-gH-YN7HxPM/Rj30q2Sc6zI/AAAAAAAAABU/kMKhRnqNuXs/s400/flowerfromabove1.jpg" alt="" id="BLOGGER_PHOTO_ID_5061470573198895922" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_-gH-YN7HxPM/Rj30l2Sc6yI/AAAAAAAAABM/X8xl_71szuI/s1600-h/flowerfromabove2.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_-gH-YN7HxPM/Rj30l2Sc6yI/AAAAAAAAABM/X8xl_71szuI/s400/flowerfromabove2.jpg" alt="" id="BLOGGER_PHOTO_ID_5061470487299549986" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-gH-YN7HxPM/Rj30hmSc6xI/AAAAAAAAABE/JeNj-XAFDGQ/s1600-h/flowerfrombelow1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_-gH-YN7HxPM/Rj30hmSc6xI/AAAAAAAAABE/JeNj-XAFDGQ/s400/flowerfrombelow1.jpg" alt="" id="BLOGGER_PHOTO_ID_5061470414285105938" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_-gH-YN7HxPM/Rj30cWSc6wI/AAAAAAAAAA8/f9qFOBPTs-4/s1600-h/flowerfrombelow2.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_-gH-YN7HxPM/Rj30cWSc6wI/AAAAAAAAAA8/f9qFOBPTs-4/s400/flowerfrombelow2.jpg" alt="" id="BLOGGER_PHOTO_ID_5061470324090792706" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5921482205342051395?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5921482205342051395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5921482205342051395' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5921482205342051395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5921482205342051395'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/05/photos-of-deep-pink-flower.html' title='Photos of a deep pink flower'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_-gH-YN7HxPM/Rj30q2Sc6zI/AAAAAAAAABU/kMKhRnqNuXs/s72-c/flowerfromabove1.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5118873497013013414</id><published>2007-05-06T11:40:00.000+02:00</published><updated>2007-05-06T12:19:31.435+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='humour'/><category scheme='http://www.blogger.com/atom/ns#' term='teaching'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><title type='text'>Teaching mathematics</title><content type='html'>The following text is a translated version of a post at &lt;a href="http://www.tjuvlyssnat.se/"&gt;tjuvlyssnat.se&lt;/a&gt; which publish overheard conversations which are considered funny. Pay them a visit if you can read Swedish, some are quite amusing.&lt;br /&gt;&lt;br /&gt;\begin{translation}&lt;span style="font-size:130%;"&gt;&lt;br /&gt;One might wonder whether or not it sounded worse this time...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;On a train from Linköping to Norrköping.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Two girls about 23 years old and probably teacher students are discussing teaching.&lt;/span&gt;&lt;br /&gt;Girl 1: It was so embarrassing, last week when I went with Lisa...&lt;br /&gt;Girl 2: Umm?&lt;br /&gt;Girl 1: Yes, we were discussing whether or not we could "fill in" during a math lesson. And there was a guy opposite of us, he was clearly listening to our conversation.&lt;br /&gt;Girl 2: Mmm...&lt;br /&gt;Girl 1: Well, we came to talk about how to divide by zero. Three divided by zero has to be three, five divided by zero must be five.&lt;br /&gt;Girl 2: Mmm...&lt;br /&gt;Girl 1: Then we notice that the guy barely can keep himself from laughing. Oh, we must have seemed so stupid... Three divided by zero must of course be zero.&lt;br /&gt;Girl 2: Yes, it has to be, haha!&lt;br /&gt;Girl 1: We felt so embarrassed!&lt;br /&gt;\end&lt;br /&gt;&lt;br /&gt;I really hope that all teacher students who are to teach mathematics are not like this. I have had math teachers that barely can cope with math at a middle school level. The class was at a virtual stand-still for a week when he filled in. Math, like any other subject needs motivated and well educated teachers... otherwise we end up with people in their twenties who still don't know the basic rules of division *shivers*.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.tjuvlyssnat.se/mellersta-sverige/fragan-ar-om-det-lat-varre-an-den-har-gangen"&gt;Link to the Swedish version.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5118873497013013414?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5118873497013013414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5118873497013013414' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5118873497013013414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5118873497013013414'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/05/teaching-mathematics.html' title='Teaching mathematics'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-4257118482462472207</id><published>2007-05-03T22:51:00.000+02:00</published><updated>2007-05-04T00:05:21.893+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='scripting'/><title type='text'>Converting several textfiles between Unix and Windows linebreak using Perl</title><content type='html'>I have a bunch of text files and I want to move them to Windows (which as usually only follows one standard (it's own) and is unable to properly interpret Unix line breaks (unlike most Unix text-tools that can manage both standards)). If I just move them they will look horrible and my client will complain. So, what to do. Time to deploy a friendly Perl hacker (&lt;a href="http://www.thinkaside.com/"&gt;fadern&lt;/a&gt;), which I happen to know. Tinker a bit and soon you will have a one-liner that solves your problem.&lt;br /&gt;&lt;br /&gt;Unix -&gt; Windows&lt;br /&gt;&gt; perl -pi'.bak' -e 's/\012/\015\012/g' *.suffix&lt;br /&gt;&lt;br /&gt;Windows -&gt; Unix&lt;br /&gt;&gt; perl -pi'.bak' -e 's/\015\012/\012/g' *.suffix&lt;br /&gt;&lt;br /&gt;These commands will create backups of the changed files with a .bak suffix. If you feel that you don't need that just remove '.bak' from the command. Just remember that if you screw up it's permanent.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-4257118482462472207?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/4257118482462472207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=4257118482462472207' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/4257118482462472207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/4257118482462472207'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/05/converting-several-textfiles-between.html' title='Converting several textfiles between Unix and Windows linebreak using Perl'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-6047306741918649600</id><published>2007-05-03T18:04:00.000+02:00</published><updated>2007-08-31T23:46:17.481+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='philosophy'/><category scheme='http://www.blogger.com/atom/ns#' term='religion'/><title type='text'>Bibles in hotel rooms</title><content type='html'>Scandic hotels in Sweden decided to remove the bible from all their hotel rooms about a month ago. This caused the Swedish church along with several smaller churches to call a boycott against Scandic. The reason for removing the bibles was, according to Scandic, the lack of drawers. Instead they were to offer bibles, Korans and other holy books in the lobby. That you might bring to your room.&lt;br /&gt;&lt;br /&gt;The whole thing led a hectic debate between those who were happy about the decision (see Swedish Humanist association) and the ones who thought that the bible ought to be there (see the Swedish church, other Christian groups in Sweden, but no non-Christian groups) due to tradition and the spiritual need of those who end up in the hotel rooms. Some even claimed that it's was terrible of Scandic to keep the porn available but not the bible.&lt;br /&gt;&lt;br /&gt;I am a member of the Swedish Humanist association so what I write is probably not to the liking of members of any church, but I want to reflect upon the matter. I have no interest in whether or not the bible is the word of god but try instead to focus on whether or not you can (from my point of view) morally justify bibles in hotel rooms. Now, on to my analysis.&lt;br /&gt;&lt;br /&gt;First of all, Sweden today has several cultural minorities represented, Muslims, Buddhists and so on. Why should Christians have the right to push their holy book into the living room of others? I have tried to justify this, but the only fact that  is slightly relevant is that Sweden has been a Christian nation is not an argument in favour of keeping them. History is important, but why should we not take into account the changes in recent years? Why did not any Muslims complain? One might wonder.&lt;br /&gt;&lt;br /&gt;Secondly, why should a chain of hotels force a bible into the bedroom of their customers? Are the customers not capable of bringing their own holy books? Do Scandic want their customers to read the bible? Should we force ideals and laws upon people and not leave it up to them to decide what to read for leisure? I would certainly feel uncomfortable to find Mein Kampf in my drawer when I checked into a hotel. Hell, I want the Communist Manifesto, the Koran and all other holy books in a private library in my hotel room! That would at least be fair. Or perhaps... why not let people go down to the lobby and make an active choice on what to read?&lt;br /&gt;&lt;br /&gt;Lastly, I was rather annoyed by the claims of the porn offered on the TV to be a problem. There is an important difference between the porn and the bible. I choose to bring the porn into my room, if I want to see it, I order it. The bible is there whether I want it to or not. If you don't want to watch any porn, fine... just go down to the lobby and bring a bible instead? Perhaps they will even care to bring it to your room for a small charge? Or watch God channel for that matter.&lt;br /&gt;&lt;br /&gt;Today, I found that Scandic will keep the bibles. A pity, I liked the way things were going. Now a bunch of fundamentalists have once again proven to prevent people from making active choices when it comes to their view on life and all that it brings.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.svd.se/dynamiskt/inrikes/did_15347276.asp"&gt;Link to the latest SvD article (in Swedish).&lt;/a&gt; You can find links to the older articles in the series from the list inside the article.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-6047306741918649600?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/6047306741918649600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=6047306741918649600' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6047306741918649600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6047306741918649600'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/05/bibles-in-hotel-rooms.html' title='Bibles in hotel rooms'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5117657575756143623</id><published>2007-05-01T22:21:00.000+02:00</published><updated>2007-05-01T22:25:45.716+02:00</updated><title type='text'>njorak for IBM Thinkpad X41</title><content type='html'>Stuck on my laptop I still need to do email correspondence. Doing email correspondence means that I need to write in Swedish. Writing in Swedish means that I need Swedish special characters. So I just quickly hacked together a IBM Thinkpad X41 version of njorak. I hope you don't mind loosing the Caps Lock key, something had to go. Most likely I will rework this version and then scrap it. But for now it's a quick fix.&lt;br /&gt;&lt;br /&gt;! njorak, not-quite-dvorak. Version 1.1&lt;br /&gt;! By Pontus Stenetorp&lt;br /&gt;! Derived from us dvorak, accesses Swedish characters through&lt;br /&gt;! altgr combos.&lt;br /&gt;! Apply it to an ordinary dvorak keymap using xmodmap.&lt;br /&gt;! IBM Thinkpad X41 version&lt;br /&gt;! dedicated to spatrik&lt;br /&gt;&lt;br /&gt;keycode 43 = d D aring&lt;br /&gt;keycode 44 = h H adiaeresis&lt;br /&gt;keycode 45 = t T odiaeresis&lt;br /&gt;&lt;br /&gt;! Caps Lock key on the IBM Thinkpad X41&lt;br /&gt;keycode 66 = Mode_switch&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5117657575756143623?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5117657575756143623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5117657575756143623' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5117657575756143623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5117657575756143623'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/05/njorak-for-ibm-thinkpad-x41.html' title='njorak for IBM Thinkpad X41'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5314244548737089035</id><published>2007-04-30T16:38:00.000+02:00</published><updated>2007-04-30T19:26:37.398+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Crimes commited using public computers</title><content type='html'>Earlier today the Swedish newspaper Svenska Dagbladet, SvD for short. Published an article about cyber crimes being committed using public computers at libraries and internet cafes. The police, of course, are not happy about this, most libraries in Sweden don't have user accounts but simply lend their computers to anyone. There are how ever good examples of libraries that enforce user accounts. Most crimes commited are related to personal affairs, such as slander, insults and threats. It seems that our youth has understood the importance of covering your tracks. This I consider to be a good thing, because when they grow up they will not offer access to anybody without ensuring that they will be able to trace him or her later on. In a best case scenario this will lead to all libraries having user accounts, and in a worst case scenario the libraries ending up logging everything, which is unnecessary and will only invade on the users privacy. All the necessary logs are kept (or at least should be kept) by the accessed host.&lt;br /&gt;&lt;br /&gt;But what about all other points of access? Cafes? WiFi? Schools? Especially in the WiFi case I doubt that the police will have much to go on. We could of course charge the owner, but if a Swedish court rules in favor of full responsibility for your internet connection people will get afraid and WiFi sales plummet. Since this is not clear from a juridical point of view, this is the very reason that I will not use WiFi at home. I simply don't want anyone breaching security and possibly leaving me responsible with what ever crime they want to commit.&lt;br /&gt;&lt;br /&gt;I am looking forward to seeing how our courts will handle this and how our laws will change.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.svd.se/dynamiskt/stockholm24/did_15311012.asp"&gt;Article number one in SvD (In Swedish)&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.svd.se/dynamiskt/stockholm24/did_15316102.asp"&gt;Article number two in SvD, a response from the public library of Stockholm (In Swedish)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5314244548737089035?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5314244548737089035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5314244548737089035' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5314244548737089035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5314244548737089035'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/04/crimes-commited-at-public-computers.html' title='Crimes commited using public computers'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-8095099165694290805</id><published>2007-04-30T16:11:00.000+02:00</published><updated>2007-04-30T16:28:08.228+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Passwords</title><content type='html'>E24 has published an &lt;a href="http://www.e24.se/dynamiskt/it_telekom/did_15308421.asp"&gt;article&lt;/a&gt; about common passwords, in Swedish of course and in my opinion it's not really worth reading. It contains barely no substance and no analysis at all. Passwords that are simple to crack is nothing new and it's a fact that most users don't even bother thinking twice before selecting "carla" as a password. After all, how can the attacker know that I fancy that girl? If you have read a bit about password security however you realize that an attacker won't make any guesses but will fire an arsenal of dictionary words. Against this, poor carla won't stand a chance.&lt;br /&gt;&lt;br /&gt;Administrators such as myself try to force the users to use decent passwords, such as enforcing policies of mixed case, alphanumerical mixing and so on. Does this work? Not really, users usually just make a quick workaround and we are back at square one. Some good reading on the subject is Schneiers &lt;a href="http://www.schneier.com/essay-144.html"&gt;analysis&lt;/a&gt; of the cracked MySpace passwords.&lt;br /&gt;&lt;br /&gt;For more critical services such as SSH the best option is likely to be to abandon passwords altogether, they do more harm than good. A good alternative are cryptographic keys, they will allow you easy and secure access. At the cost of slightly more trouble when setting them up. I guess that rules them out as an option for everyday users at MySpace though...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-8095099165694290805?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/8095099165694290805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=8095099165694290805' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/8095099165694290805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/8095099165694290805'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/04/passwords.html' title='Passwords'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5009134315066384777</id><published>2007-04-30T00:15:00.000+02:00</published><updated>2007-04-30T00:24:18.950+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ports'/><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><title type='text'>Ports maintainer</title><content type='html'>Some time ago &lt;a href="http://cjg.mine.nu/"&gt;cjg&lt;/a&gt; and I decided to try porting some software. Since we both code some Python now and had some interest in coding audio we took upon ourselves to port two modules for Python that involved audio. cjg was done within an hour, I was not. He is a far better FreeBSD user than me (and coder for that matter) and after a few hours of sweat and blood I managed to succeed in my porting aswell. This of course took a lot of help from cjg, so I claim that he deserves atleast &gt;= 50% of the credits for "my" port aswell. Of course, I forgot to blog about it but porting software can be a lot of fun and is great training for ones patience. Perhaps this is one step closer to becoming more involved in my O/S, who knows. Atleast I hope so.&lt;br /&gt;&lt;a href="http://www.freshports.org/audio/py-fastaudio/"&gt;&lt;br /&gt;Link to "my" port.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5009134315066384777?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5009134315066384777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5009134315066384777' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5009134315066384777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5009134315066384777'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/04/ports-maintainer.html' title='Ports maintainer'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5994958431619156635</id><published>2007-04-28T22:54:00.000+02:00</published><updated>2008-12-10T07:41:11.850+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='humour'/><category scheme='http://www.blogger.com/atom/ns#' term='commercials'/><category scheme='http://www.blogger.com/atom/ns#' term='pseudoscience'/><category scheme='http://www.blogger.com/atom/ns#' term='photos'/><title type='text'>"Good" commercials</title><content type='html'>Yesterday I discovered a poster in the subway that made me smile. They are rather nasty towards new age, belief and psycho dynamic therapy but what the hell. I don't mind giving any of those fields a kick in the but now and then. They all claim to help people but are unable to prove it unlike other means that are scientifically proven to be both effective and harmless. Since they are Swedish I will supply a translation. Alvedon is a brand of painkillers made by AstraZeneca.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_-gH-YN7HxPM/RjO0z2Sc6tI/AAAAAAAAAAk/Q3Ud-Drs0sA/s1600-h/alvedonHealSmall.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_-gH-YN7HxPM/RjO0z2Sc6tI/AAAAAAAAAAk/Q3Ud-Drs0sA/s400/alvedonHealSmall.jpg" alt="" id="BLOGGER_PHOTO_ID_5058585609306434258" border="0" /&gt;&lt;/a&gt;"Heahache? Try a pair of healing hands.&lt;br /&gt;Or trust in Alvedon"&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_-gH-YN7HxPM/RjO07WSc6uI/AAAAAAAAAAs/fwNyPkJZVQc/s1600-h/alvedonHypnoSmall.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_-gH-YN7HxPM/RjO07WSc6uI/AAAAAAAAAAs/fwNyPkJZVQc/s400/alvedonHypnoSmall.jpg" alt="" id="BLOGGER_PHOTO_ID_5058585738155453154" border="0" /&gt;&lt;/a&gt;"Headache? Try self hypnosis, stare at the sign for ten minutes. Or trust in Alvedon"&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_-gH-YN7HxPM/RjO0_WSc6vI/AAAAAAAAAA0/DR2n8X-dtUM/s1600-h/alvedonSairaSmall.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_-gH-YN7HxPM/RjO0_WSc6vI/AAAAAAAAAA0/DR2n8X-dtUM/s400/alvedonSairaSmall.jpg" alt="" id="BLOGGER_PHOTO_ID_5058585806874929906" border="0" /&gt;&lt;/a&gt;"Headache? Call Saira Solskens&lt;span title="Lön"&gt;öga, 08-50 52 22 05.&lt;br /&gt;Or trust in Alvedon"&lt;br /&gt;&lt;br /&gt;Translators note: &lt;/span&gt;Solskens&lt;span title="Lön"&gt;öga is literally "Sunshine eye" and is refering to a "typical" name of a fortune teller.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5994958431619156635?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5994958431619156635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5994958431619156635' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5994958431619156635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5994958431619156635'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/04/good-commercials.html' title='&quot;Good&quot; commercials'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_-gH-YN7HxPM/RjO0z2Sc6tI/AAAAAAAAAAk/Q3Ud-Drs0sA/s72-c/alvedonHealSmall.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-6306734046347398611</id><published>2007-04-27T00:04:00.000+02:00</published><updated>2008-12-10T07:41:12.694+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sweden'/><category scheme='http://www.blogger.com/atom/ns#' term='spring'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><category scheme='http://www.blogger.com/atom/ns#' term='flowers'/><title type='text'>More computer woes and spring</title><content type='html'>Two days ago my workstation died, I won't even get a signal upon boot. If only I had the time to look into it, but exams and all. I simply have to use my laptop for now.&lt;br /&gt;&lt;br /&gt;I am planning on starting my own company, in order to make it easier for my clients (currently only one) to pay me for the work I do for them. Now, I only need a good name. I will also get paid for some work and I do think that I will get through the summer, work is scarce when you lack business contacts and don't like doing web pages.&lt;br /&gt;&lt;br /&gt;It's spring in Sweden and when walking across campus I have noted that we have some lovely trees blooming. I promised myself to take photos a week ago and now I finally took myself a 30 minute break and did it. I like the outcome, the flowers sure are pretty.&lt;br /&gt;&lt;br /&gt;The tree is right outside my dormitory (on campus) and the weather was just right. Clear blue sky and a warming sun.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_-gH-YN7HxPM/RjEjg2Sc6rI/AAAAAAAAAAU/dWgBTcf6DwU/s1600-h/twigandairplanetrace.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_-gH-YN7HxPM/RjEjg2Sc6rI/AAAAAAAAAAU/dWgBTcf6DwU/s400/twigandairplanetrace.jpg" alt="" id="BLOGGER_PHOTO_ID_5057862903749470898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_-gH-YN7HxPM/RjEjWWSc6qI/AAAAAAAAAAM/QtNLnVjRdsU/s1600-h/flowerandbluesky.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_-gH-YN7HxPM/RjEjWWSc6qI/AAAAAAAAAAM/QtNLnVjRdsU/s400/flowerandbluesky.jpg" alt="" id="BLOGGER_PHOTO_ID_5057862723360844450" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_-gH-YN7HxPM/RjEjoGSc6sI/AAAAAAAAAAc/Aipnz-mbDms/s1600-h/beeandflower.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_-gH-YN7HxPM/RjEjoGSc6sI/AAAAAAAAAAc/Aipnz-mbDms/s400/beeandflower.jpg" alt="" id="BLOGGER_PHOTO_ID_5057863028303522498" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-6306734046347398611?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/6306734046347398611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=6306734046347398611' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6306734046347398611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6306734046347398611'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/04/more-computer-woes-and-spring.html' title='More computer woes and spring'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_-gH-YN7HxPM/RjEjg2Sc6rI/AAAAAAAAAAU/dWgBTcf6DwU/s72-c/twigandairplanetrace.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-8797550484870457399</id><published>2007-04-10T17:10:00.000+02:00</published><updated>2007-04-30T00:07:22.014+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><category scheme='http://www.blogger.com/atom/ns#' term='hdd'/><title type='text'>HDD issues</title><content type='html'>During the last three weeks I have had several HDD;s failing. What it might be that makes HDD;s cause DMA errors, I do not know. R/W on specific sectors on one of my workstation disks caused a core dump. The same thing happened to my old reliable Pentium 3 last Wednesday. I have lost some minor data, but recovering it is tedious. And now a pretty old 8.1Gb drive in another computer has begun to cause DMA errors. Nothing serious yet but taking last weeks errors into account I am worried. I am running dangerously low on HDD;s and I have promised to set up a CVS server for a bunch of students. *sigh* I might have to purchase a new one, less food, more hardware.&lt;br /&gt;&lt;br /&gt;And this is what happens to HDD;s that don't behave...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.d.kth.se/%7Eninjin/images/hddMobil.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://www.d.kth.se/%7Eninjin/images/hddMobil.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-8797550484870457399?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/8797550484870457399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=8797550484870457399' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/8797550484870457399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/8797550484870457399'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/04/hdd-issues.html' title='HDD issues'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-6275596156279649681</id><published>2007-04-06T23:51:00.000+02:00</published><updated>2007-04-30T00:07:30.696+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='raid'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><title type='text'>Highpoint RocketRaid 2210 under FreeBSD 6.2-RELEASE</title><content type='html'>Today I have fiddled with raid, it has been a pleasant ride. Highpoint has supplied good documentation and most problems has been related to my old hardware. When you get hardware for free, there is bound to be trouble. Only one minor flaw from Highpoint's side, you have to change the configuration file for the raid management tools in order for it to even detect the raid controller. This is mentioned once in the FreeBSD specific installation guide for the driver but not in the CLI-tool guide. The configuration file should look like this.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/hptcfg&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;rr2210&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;hptmv.status&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;rr2210 should be replaced with your driver name. I named my driver rr2210.ko as you can see. After doing this, simply start or restart the daemon using.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/usr/local/etc/rc.d/hptdaemon.sh&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;And you should now detect your controller.&lt;br /&gt;&lt;br /&gt;One last thing, why did Highpoint comment out&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;echo "The daemon is running. Please stop it first."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the rc-script? I enabled it again anyhow, things like that can lead to headaches just being given exit 1.&lt;br /&gt;&lt;br /&gt;Now, back to using that lovely raid card.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-6275596156279649681?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/6275596156279649681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=6275596156279649681' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6275596156279649681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6275596156279649681'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/04/highpoint-rocketraid-2210-under-freebsd.html' title='Highpoint RocketRaid 2210 under FreeBSD 6.2-RELEASE'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-6302274820595779980</id><published>2007-04-02T23:08:00.000+02:00</published><updated>2007-04-30T00:07:37.388+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='photo'/><category scheme='http://www.blogger.com/atom/ns#' term='humour'/><category scheme='http://www.blogger.com/atom/ns#' term='sweden'/><title type='text'>A wonderful "Swedish" thing?</title><content type='html'>I was in town today and bought some things. One of the things I bought was this.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.d.kth.se/%7Eninjin/images/anon.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://www.d.kth.se/%7Eninjin/images/anon.jpg" alt="" border="0" /&gt;&lt;/a&gt;Now, ask yourself. What is it?&lt;br /&gt;&lt;br /&gt;The answer is hidden here: &lt;span style="color: rgb(255, 255, 255);"&gt;It's a multi-purpose pump from France! &lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;And YES, I did think twice before purchasing it. cjg pointed out that the designer must have had previous work experience elsewhere, I have no idea what he is implying.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-6302274820595779980?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/6302274820595779980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=6302274820595779980' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6302274820595779980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6302274820595779980'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/04/wonderful-swedish-thing.html' title='A wonderful &quot;Swedish&quot; thing?'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-3916155039331354287</id><published>2007-03-30T14:45:00.000+02:00</published><updated>2007-04-30T00:07:41.805+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='humour'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><title type='text'>Transform into infinity</title><content type='html'>I guess eight has a secret identity...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.d.kth.se/%7Eninjin/images/infinity.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://www.d.kth.se/%7Eninjin/images/infinity.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I thought about this some time ago and bet I am not the first one to think of this. Yesterday my lecturer made a similar joke on turning 8 into infinity by twisting it. Inspired by xkcd's (&lt;a href="http://www.xkcd.com/c184.html"&gt;http://www.xkcd.com/c184.html&lt;/a&gt;), great comic.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-3916155039331354287?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/3916155039331354287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=3916155039331354287' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3916155039331354287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3916155039331354287'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/03/transform-into-infinity.html' title='Transform into infinity'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5051944700122469025</id><published>2007-03-30T09:18:00.000+02:00</published><updated>2007-04-30T00:07:46.659+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='teaching'/><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>Nominated</title><content type='html'>Last September I began my "career" as a teachers assistant. I have had a lot of fun teaching, preparing for lessons, doing overtime since some students won't finish their Python labs on time (in particular I remember a 2 1/2 h session of debugging and explaining, but in the end she got that program working as it should and hopefully she learned a lot) and answering odd questions by e-mail and IRC during weekends. If my memory doesn't fail me, I have mentioned that I love this. But some things are worth mentioning twice.&lt;br /&gt;&lt;br /&gt;Recently CSC announced this years winner of the Gerd Eriksson price for best teachers assistant of the year. I didn't win, but that doesn't matter. What does matter to me was that I was nominated, someone or some persons took the time to write a letter about what I did well. That brings you warm feeling and once again it makes me want to become even better. I got some blackboard chalk from Gerd herself (she is a teacher at CSC), I believe that my handwriting might improve using a thick kind of chalk and I think my handwriting is terrible. Perhaps I should also practice on blackboard disposition? *ponders* It's a bit like being on stage but I am less nervous about it. What should I do to become a better teacher?&lt;br /&gt;&lt;br /&gt;Why does seeing their smiling faces when they reach understanding make me smile? Am I gifted? I just can't believe that I am. Practice makes perfect I hope, both for teachers and students. For now, I will enjoy the moment and be truly happy about it.&lt;br /&gt;&lt;br /&gt;"Charming"? I must say that no one has ever called me charming before *continues to ponder*.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5051944700122469025?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5051944700122469025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5051944700122469025' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5051944700122469025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5051944700122469025'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/03/nominated.html' title='Nominated'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-4551948043299368782</id><published>2007-03-21T17:39:00.000+01:00</published><updated>2007-04-30T00:08:16.929+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='*nix'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='xmodmap'/><category scheme='http://www.blogger.com/atom/ns#' term='dvorak'/><title type='text'>New "cleaner" njorak version</title><content type='html'>I made a few minor adjustments, this one is not quite as forgiving as the last version. Since you still need to use Shift + Mode_switch + key in order to get capital letters I figured that I could just clean it up a little. Also, I removed the option to use App on EZ-Reach 2030 since... well... I did mention that it was less forgiving.&lt;br /&gt;&lt;br /&gt;! njorak, not-quite-dvorak. Version 1.1&lt;br /&gt;! By Pontus Stenetorp&lt;br /&gt;! Derived from us dvorak, accesses Swedish characters through&lt;br /&gt;! altgr combos.&lt;br /&gt;! Apply it to an ordinary dvorak keymap using xmodmap.&lt;br /&gt;! EZ-Reach 2030 version&lt;br /&gt;! dedicated to spatrik&lt;br /&gt;&lt;br /&gt;keycode  43 = d D aring&lt;br /&gt;keycode  44 = h H adiaeresis&lt;br /&gt;keycode  45 = t T odiaeresis&lt;br /&gt;&lt;br /&gt;! Start button on EZ-reach 2030&lt;br /&gt;keycode 115 = Mode_switch&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-4551948043299368782?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/4551948043299368782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=4551948043299368782' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/4551948043299368782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/4551948043299368782'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/03/new-cleaner-njorak-version.html' title='New &quot;cleaner&quot; njorak version'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-3432661669451869382</id><published>2007-02-21T23:06:00.000+01:00</published><updated>2007-04-30T00:08:24.870+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='photo'/><category scheme='http://www.blogger.com/atom/ns#' term='ikea'/><category scheme='http://www.blogger.com/atom/ns#' term='kinnarps'/><title type='text'>New chair</title><content type='html'>I have spent some of the money I have earned, I usually save money since I don't know what to spend it on. But a chair, I did need a new one. My old chair was a chair from IKEA which cost about 500 SEK and was more than broken. It  made noises and the seat had stopping pouring out. Since I spend a lot of time in front of my computer I decided that this time I would get a decent chair.&lt;br /&gt;&lt;br /&gt;A good chair costs money, a lot of money. In Sweden we have a company called Kinnarps, they make chairs for large companies and they make good chairs. Very good chairs. The problem is that they are expensive, about 5'000 SEK and more. Especially if you want one with seat and back moving independently and many other neat features that makes your back go "AHHH!". After trying out a few chairs at their store in Stockholm I ordered one and today I received it. It cost a lot, but it was worth it, well worth it. My back hasn't felt this good for quite some time and I hope for it to last for at least ten years. I recommend Kinnarps, although I think that it was a little bit of trouble ordering, since I don't own a company. If you are looking for money well spent so that your back will survive all that coding, you do want a decent chair.&lt;br /&gt;&lt;br /&gt;Now, I have to get back to studying. I have a lot to do, but at least now my back won't hurt after 8h sessions.&lt;br /&gt;&lt;br /&gt;An image of it:&lt;br /&gt;&lt;a href="http://www.d.kth.se/%7Eninjin/images/chair.jpg"&gt;http://www.d.kth.se/~ninjin/images/chair.jpg&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-3432661669451869382?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/3432661669451869382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=3432661669451869382' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3432661669451869382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3432661669451869382'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/02/new-chair.html' title='New chair'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-2322393963884947177</id><published>2007-02-13T00:29:00.000+01:00</published><updated>2007-04-30T00:08:40.761+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='studying'/><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>A lot of things...</title><content type='html'>To do that is. I have many things on my mind and especially on my to-do-list. This isn't really the best feeling in the world but at least it keeps my mind off feeling down because there is nothing to do. My main concern right now is my Japanese, since I only have learned two languages properly. Swedish and English that is, I have pretty much lost myself on how it feels to study languages. I was fluent in English back in eight grade and since then I have barely bothered about grammar, making new sentences and so on. Instead I have just been exposed to and used every day English. The problem is... I have grown to respect languages.&lt;br /&gt;&lt;br /&gt;I respect them so deeply that I feel insecure when it comes to even making a single sentence. Now, this might seem like a good thing but at this stage in Japanese I should play and make tons of mistakes. I just have to use the darn thing and by doing that I will most likely learn more words, more grammar and in the end I might even be able to talk it without sounding like a complete fool. The only problem is, how do I convince myself that I can do this? How do I expose myself to more Japanese? I do seriously doubt that watching Anime is a good idea, it's a bit too fast. Perhaps reading? Manga? Books? I better ask my teacher, because I am not going to let myself get a bad grade or possibly fail a course because I am too set in my ways... One ought to be able to change I suppose.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-2322393963884947177?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/2322393963884947177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=2322393963884947177' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2322393963884947177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2322393963884947177'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/02/lot-of-things.html' title='A lot of things...'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-2418150722397495550</id><published>2007-01-26T23:45:00.000+01:00</published><updated>2007-04-30T00:08:46.482+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='teaching'/><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>What makes a lecturer happy</title><content type='html'>I know, I know... it was only a few moments since the last post but I am in the mood of writing things down. I guess I am a bit emotional right now.&lt;br /&gt;&lt;br /&gt;I hold lectures in a course concerning Introduction to Computer Science, this mostly involves general programming practice but also some algorithms. I hold practice lectures for smaller groups around ten people. I now have about four months of experience and I hope that I am getting better and better by the day.&lt;br /&gt;&lt;br /&gt;This term I have been forced to move my group from the morning to the afternoon. I have lectures an Algorithms Data structures and Complexity, *sigh* if only it wouldn't have been a lecture I would have skipped it. Along with this a few other lecturers have quit for this term, since they didn't have time to teach. This lead to two small groups splitting up and having to spread out among the other groups and my old group having to switch to my new afternoon group. A bit chaotic yes, and a bit hard to see my point but we'll get there.&lt;br /&gt;&lt;br /&gt;A lot of the members of my old group was not happy about me leaving, they seemed to like me. Although, in my view I am confused, has a terrible handwriting, sometimes has a hard time to get to the point, gets lost in my own sentences, etc etc. That made me happy, but I expected most of them to still take the morning lecture to avoid having a two hour schedule gap. Seven of them still attended this Thursday... that really touched my heart. It makes you feel all warm inside and motivates you even more to see if you might even be able to make further improvements. They are a nice bunch, really good CS students over all.&lt;br /&gt;&lt;br /&gt;Now, as if this wasn't enough later that evening I was asked if I could take in even more members. I had one of the groups that lost their lecturer for one lesson back in October. And now about six of them wanted to join my group... MY group?! I couldn't believe this at first, I mean... I deeply respect the other lecturers and consider most of them to be far better than me... and they asked ME?! My world spun once or twice. They even told me why they prefer me, I was shocked to say the least. I will not mention why and who they prefer me to... but I just couldn't believe it and I still can't quite grip it. This is a great responsibility, I know that I can improve and perhaps I then can teach them even more. I truly am one happy lecturer at this point, perhaps I have found something that I am good at... maybe *smiles*.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-2418150722397495550?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/2418150722397495550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=2418150722397495550' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2418150722397495550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2418150722397495550'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/01/what-makes-lecturer-happy.html' title='What makes a lecturer happy'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-5890016122412038228</id><published>2007-01-26T23:36:00.000+01:00</published><updated>2007-04-30T00:08:52.780+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='studying'/><category scheme='http://www.blogger.com/atom/ns#' term='life'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><title type='text'>Discrete math</title><content type='html'>This term I have a course in Discrete mathematics, I don't know why but I somehow feel all exited about it. The first lectures has really been a lot of fun, a part from some proofs which can sometimes be horrible (when it comes to graphs). Somehow I like graphs...&lt;br /&gt;&lt;br /&gt;Last Friday I hacked together a small program for graphs, this was quite amusing. I implemented some algorithms and played around. I did have comments regarding my mental health how ever, since I spent Friday night with an open math book next to me. Perhaps I can actually be good at this field of mathematics... or is it yet another field where I find a lot of fascination but still can't really grasp the whole thing? As it was with logic. One thing is for sure though, the old math fear from high school is gone since I started at KTH. At least that is a good thing ^^&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-5890016122412038228?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/5890016122412038228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=5890016122412038228' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5890016122412038228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/5890016122412038228'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/01/discrete-math.html' title='Discrete math'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-2785959320232604912</id><published>2007-01-14T20:58:00.000+01:00</published><updated>2007-04-30T00:09:00.210+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='*nix'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='xmodmap'/><category scheme='http://www.blogger.com/atom/ns#' term='dvorak'/><title type='text'>njorak</title><content type='html'>I have been a Dvorak (&lt;a href="http://www2.blogger.com/img/gl.link.gif"&gt;http://en.wikipedia.org/wiki/Dvorak_Simplified_Keyboard&lt;/a&gt;) user for almost two years now. Since I am a Swede and I also require some Swedish special characters in order to write proper Swedish, such as å, ä and ö. At the time I started using Dvorak I typed 90%+ English, so I didn't really consider it a problem to not have these characters.&lt;br /&gt;&lt;br /&gt;How ever, things change. When I started at KTH I began writing a lot more in Swedish. Nowadays I'd say I write about 50% Swedish and people started complaining about me lacking certain characters =( Well, one person in particular. I had plans on somehow integrating Swedish special characters into the Dvorak layout, but unlike Svorak (&lt;a href="http://www2.blogger.com/www.aoeu.info"&gt;www.aoeu.info&lt;/a&gt;) I didn't want to change anything to the default layout. Now, XKB isn't really the nicest and most intuitive thing to play with. So my attempts mostly ended in a lot of frustration and nothing done.&lt;br /&gt;&lt;br /&gt;Today, I started out looking at XKB again. It all ended with me not being able to understand why it did what it did. And for the first time ever I tried xmodmap instead. Now, xmodmap was entirely different. I quickly managed to get it the way I wanted to but now I faced another issue. My EZ-Reach 2030 keyboard (&lt;a href="http://www.typematrix.com/ezr2030/"&gt;http://www.typematrix.com/ezr2030/&lt;/a&gt;) lacks an altgr key. Which I needed to place the Swedish characters where I wanted to. I asked a couple of friends to run xev and hand me which keycode altgr was using, I got ISO_Level3_Shift from both of them. Happily I entered it as the key for a spare key on my keyboard, but, nothing happened. This of course, being unwanted and unexpected was soon cast aside by some web browsing. I found that I should use Mode_switch. The result can be found below. This is just a first draft, but should make "someone" ;) happy.&lt;br /&gt;&lt;br /&gt;The name njorak derives from the Swedish sound "njo", which is a sound you make when you somehow agree and disagree at the same time. Since I probably would answer the question "Is this really Dvorak?" with "njo".&lt;br /&gt;&lt;br /&gt;! njorak, not-quite-dvorak.&lt;br /&gt;! By Pontus Stenetorp &lt;ninjin&gt; kth &lt;/ninjin&gt; se&gt;&lt;br /&gt;! Derived from us dvorak, includes Swedish characters&lt;br /&gt;! altgr combos.&lt;br /&gt;! Apply it to an ordinary dvorak keymap using xmodmap.&lt;br /&gt;! EZ-Reach 2030 version&lt;br /&gt;! dedicated to spatrik&lt;br /&gt;&lt;br /&gt;keycode  29 = f F aring&lt;br /&gt;keycode  30 = g G adiaeresis&lt;br /&gt;keycode  31 = c C odiaeresis&lt;br /&gt;keycode  32 = r R Aring&lt;br /&gt;keycode  33 = l L Adiaeresis&lt;br /&gt;keycode  34 = slash question Odiaeresis&lt;br /&gt;! Start button on EZ-reach 2030&lt;br /&gt;keycode 115 = Mode_switch&lt;br /&gt;! App button on EZ-reach 2030&lt;br /&gt;keycode 117 = Mode_switch&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-2785959320232604912?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/2785959320232604912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=2785959320232604912' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2785959320232604912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2785959320232604912'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/01/njorak.html' title='njorak'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-2453817425316645957</id><published>2007-01-11T12:17:00.000+01:00</published><updated>2007-04-30T00:09:05.659+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Enforcing the use of more secure passwords under FreeBSD</title><content type='html'>Usually I am a very nice guy when it comes to handing out shell accounts, but when it comes to users using dictionary words as passwords I draw a line. In order to at least  force them to do some thinking before choosing "password" as a password I do the following.&lt;br /&gt;&lt;br /&gt;Add these two lines to your /etc/login.conf&lt;br /&gt;&lt;br /&gt;:mixpasswordcase:\&lt;br /&gt;:minpasswordlen=8:\&lt;br /&gt;&lt;br /&gt;This will enforce a minimum length of eight characters and force them to mix case. And don't forget to rebuild the database, in case you didn't notice the comment in login.conf.&lt;br /&gt;&lt;br /&gt;# cap_mkdb /etc/login.conf&lt;br /&gt;&lt;br /&gt;Now, you have a standard for passwords. Even though it's fairly weak, it's better than nothing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-2453817425316645957?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/2453817425316645957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=2453817425316645957' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2453817425316645957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2453817425316645957'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/01/enforcing-use-of-more-secure-passwords.html' title='Enforcing the use of more secure passwords under FreeBSD'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-3658514698045961176</id><published>2007-01-05T16:36:00.000+01:00</published><updated>2007-04-30T00:10:28.754+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='filesystems'/><category scheme='http://www.blogger.com/atom/ns#' term='guide'/><title type='text'>Mounting remote directories using sshfs under FreeBSD</title><content type='html'>Another tutorial, this time on the usage of sshfs. cjg (&lt;a href="http://cjg.mine.nu/"&gt;http://cjg.mine.nu/&lt;/a&gt;) told me about it a few weeks ago and it really is one neat way to mount directories remotely.&lt;br /&gt;&lt;br /&gt;As usual it's optimized for 80 char width so here is the link.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.d.kth.se/%7Eninjin/texts/cs/sshfsfreebsd.txt"&gt;http://www.d.kth.se/~ninjin/texts/cs/sshfsfreebsd.txt&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-3658514698045961176?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/3658514698045961176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=3658514698045961176' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3658514698045961176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/3658514698045961176'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/01/mounting-remote-directories-using-sshfs.html' title='Mounting remote directories using sshfs under FreeBSD'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-2354208068979371866</id><published>2007-01-03T12:51:00.000+01:00</published><updated>2007-04-30T00:11:11.693+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='crypto'/><category scheme='http://www.blogger.com/atom/ns#' term='tunnel'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='openbsd'/><category scheme='http://www.blogger.com/atom/ns#' term='privacy'/><category scheme='http://www.blogger.com/atom/ns#' term='openvpn'/><title type='text'>Setting up a OpenVPN client with bridging using OpenBSD</title><content type='html'>Here's my first try at writing a how-to, I set up OpenVPN under OpenBSD recently and it was quite a challenge since there were close to no guides on the subject. Therefore I decided to write my own, since it's optimized for 80 chars width I will post a link to the file.&lt;br /&gt;&lt;br /&gt;I hope it helps you in some way.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.d.kth.se/%7Eninjin/texts/cs/obsdvpntut.txt"&gt;http://www.d.kth.se/~ninjin/texts/cs/obsdvpntut.txt&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-2354208068979371866?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/2354208068979371866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=2354208068979371866' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2354208068979371866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/2354208068979371866'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2007/01/setting-openvpn-client-with-bridging.html' title='Setting up a OpenVPN client with bridging using OpenBSD'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-871348794906098537</id><published>2006-12-31T13:32:00.000+01:00</published><updated>2007-04-30T00:11:40.067+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ports'/><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='audio'/><title type='text'>Installing Python Snack module under FreeBSD</title><content type='html'>Apparently Snack (&lt;a href="http://www.speech.kth.se/snack/"&gt;http://www.speech.kth.se/snack/&lt;/a&gt;) in ports doesn't want to play with Python and I am eager to play and don't want to look into it. So if you have no patience ;) just install the Python module manually.&lt;br /&gt;&lt;br /&gt;Get Snack using ports&lt;br /&gt;# portinstall snack&lt;br /&gt;&lt;br /&gt;Fetch the source code&lt;br /&gt;# fetch http://www.speech.kth.se/snack/dist/snack2.2.10.tar.gz&lt;br /&gt;&lt;br /&gt;Untar it&lt;br /&gt;# tar xvf snack2.2.10.tar.gz&lt;br /&gt;&lt;br /&gt;Copy the file that we are interested in to the Python module directory&lt;br /&gt;# cp snack2.2.10/python/tkSnack.py /usr/local/lib/python2.4/site-packages/&lt;br /&gt;&lt;br /&gt;Clean up the thrash (keep in mind that there is some useful example code in the demos directory)&lt;br /&gt;# rm snack2.2.10.tar.gz &amp;&amp;amp; rm -rf snack2.2.10/&lt;br /&gt;&lt;br /&gt;And then start playing with Snack.&lt;br /&gt;&lt;br /&gt;EDIT 05/01/07:&lt;br /&gt;(Added it as a text-file aswell. &lt;a href="http://www.d.kth.se/%7Eninjin/texts/cs/snackfreebsd.txt"&gt;http://www.d.kth.se/~ninjin/texts/cs/snackfreebsd.txt&lt;/a&gt;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-871348794906098537?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/871348794906098537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=871348794906098537' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/871348794906098537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/871348794906098537'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2006/12/installing-python-snack-module-under.html' title='Installing Python Snack module under FreeBSD'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-6842940946921704702</id><published>2006-12-30T11:59:00.000+01:00</published><updated>2007-04-30T00:12:04.217+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='philosophy'/><category scheme='http://www.blogger.com/atom/ns#' term='justice'/><category scheme='http://www.blogger.com/atom/ns#' term='politics'/><title type='text'>The execution of Saddam</title><content type='html'>I'll try to make this short, I do in no way claim to know the answer to "how do we please those that the bastard made to suffer?".&lt;br /&gt;&lt;br /&gt;How do you best bring justice to a man whom has done so much "bad" that all punishments are insufficient? What is it that such a man fear the most? Death? I seriously doubt that Saddam had any real "fear" of death. It would be a quick end for him, and he'd leave a ton of conspiracies and legends for his fanatics to breed on. Killing that man serves his own ends, especially if you make the executioners wear black hoods and look like a bunch of thugs. Is that the look of a just deed?&lt;br /&gt;&lt;br /&gt;Now, let's instead focus on what would have been a proper punishment? In my opinion he should be kept locked up, so tight that he couldn't lead any outside movement, face all charges. For who has dealt justice for the Curds? For the people of Iran? The people of Kuwait? And so on. Would you like a serial killer to skip the trials of his later victims? I say not. We should not only have sought to kill Saddam in his physical form, but also the myths surrounding him. So that we made sure that the truth of his reign and his deeds were known and available to his followers and enemies. His black print placed properly and truthfully in history. Since now, they live on. And what better way to punish a man than to face his own deeds? For if there is no god, who will make him face his own deeds but we mortals?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-6842940946921704702?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/6842940946921704702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=6842940946921704702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6842940946921704702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6842940946921704702'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2006/12/execution-of-saddam.html' title='The execution of Saddam'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-4908613255161595812</id><published>2006-12-29T14:33:00.000+01:00</published><updated>2007-04-30T00:12:26.656+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='*nix'/><category scheme='http://www.blogger.com/atom/ns#' term='gateway'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><title type='text'>Gateway mayhem</title><content type='html'>At approximately  3:30 AM when I decided to reboot my gateway for some testing the HDD decided to go evil on me. For unknown reasons reading from the HDD would cause the whole system to get stuck in a ide-not-ready loop &gt;.&lt;&gt; /etc/fstab.new&lt;br /&gt;&lt;br /&gt;I'll be damned ;P I saved myself from using ed. Now I just might need to get a new HDD *sigh*, but at least I have my net back up.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-4908613255161595812?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/4908613255161595812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=4908613255161595812' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/4908613255161595812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/4908613255161595812'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2006/12/gateway-mayhem.html' title='Gateway mayhem'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-1837246815648395974</id><published>2006-12-26T20:39:00.000+01:00</published><updated>2007-04-30T00:12:40.369+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><category scheme='http://www.blogger.com/atom/ns#' term='family'/><title type='text'>Christmas presents</title><content type='html'>And it all came to an end... visiting relatives, eating...&lt;br /&gt;&lt;br /&gt;Christmas has it's downsides, presents. Don't get me wrong, I love that my relatives/family thinks about me and buys me presents. But I don't have room for all this stuff and my back is killing me after traveling with ten times the load I traveled to them with. What's so wrong with cash?&lt;br /&gt;&lt;br /&gt;It's not all their fault, I should have seen to it that they got my wish list but they would still give me a ton of stuff. They don't like to give money, since they think it doesn't show that they care about me. But what I need is not a ton of gibberish that sure looks nice but I don't have room for it, I don't have a villa like them, I have 20sqm!&lt;br /&gt;&lt;br /&gt;I would have been all jolly if I got the 1000 SEK which all this stuff would cost, then I could save room and buy things that I actually need. Like a freezer and a new chair.&lt;br /&gt;&lt;br /&gt;For my birthday next month I will mail a simple list to them and beg them to give me either a specific book (I will supply the ISBN) from a list or cash. I do love them... I truly hope that they don't get me wrong.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-1837246815648395974?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/1837246815648395974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=1837246815648395974' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/1837246815648395974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/1837246815648395974'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2006/12/christmas-presents.html' title='Christmas presents'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-6821687222973207751</id><published>2006-12-22T10:52:00.000+01:00</published><updated>2007-04-30T00:13:31.077+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='movies'/><category scheme='http://www.blogger.com/atom/ns#' term='philosophy'/><title type='text'>Hogfather</title><content type='html'>I took the time to see Terry Pratchet's Hogfather, now that I am on holiday. I must say that it was far beyond my expectations. Having seen just about enough of  the cartoon version of Soul Music, I expected Hogfather to be just as bad. Transferring Pratchet's books to the screen seemed to me an impossible task, you can't have that many jokes, puns, comic reliefs etc. etc. in a movie... not unless you change it, without ruining the whole thing. I thought it to be impossible, I was wrong.&lt;br /&gt;&lt;br /&gt;Hogfather is a dark story. Well, just as dark as it the book I guess, the Discworld is not known to be a nice place after all. I must say that I was impressed by the screen work and the special effects that made it all the darker. But in all this darkness are the characters, Pratchet newer fails when it comes to creating peculiar characters and bizarre settings. Seeing the wizards, death and all the others on the screen was not horrible. I very much enjoyed it, nicely woven into the dark fabric and a just as cryptic plot as always when it comes to Pratchet, it kept me etched to the screen for 3 hours.&lt;br /&gt;&lt;br /&gt;And the ending... wow... I will only mention that I didn't expect that much "good" philosophy. At least it was among the things I least expected. All in all, not the best I have seen this year, but well worth watching. But skip the end of part 1 where they spoil half the fun of part 2 by showing what to come, I wish I had.&lt;br /&gt;&lt;br /&gt;Hogfather was aired on Sky one, if you can't see it on air, you ought to get it by other means.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-6821687222973207751?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/6821687222973207751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=6821687222973207751' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6821687222973207751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6821687222973207751'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2006/12/hogfather.html' title='Hogfather'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-6459819888544582725</id><published>2006-12-20T16:20:00.000+01:00</published><updated>2007-04-30T00:13:48.668+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='studying'/><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>Holiday</title><content type='html'>I wrote my last exam for this term today, feels as if the one who wrote the exam knew all my weak spots. I hope for a degree of four and doubt that I did well enough for a five. *sigh* I had hoped for a great ending but I didn't deserve a five anyway, I don't know my laser physics that well.&lt;br /&gt;&lt;br /&gt;Now I should try to enjoy my first holiday since last Christmas. I spent the easter holiday coding on a project for school and summer taking classes in law. I feel somewhat empty... hollow... all the stress and pressure is gone. Perhaps I am well on my way to becoming a workaholic? But I don't really care, I want something to every day, to somehow feel a purpose and have goals set. Besides, I have never had so much fun studying as here at KTH.&lt;br /&gt;&lt;br /&gt;Now I just ponder on what I should do next, I have a few coding projects of my own, but where to start? I wonder if they offer courses over Christmas? Perhaps 5p of philosophy, that would be both fun and rewarding.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-6459819888544582725?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/6459819888544582725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=6459819888544582725' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6459819888544582725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6459819888544582725'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2006/12/holiday.html' title='Holiday'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-4576202904523613166</id><published>2006-12-18T10:18:00.000+01:00</published><updated>2007-04-30T00:14:02.141+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><category scheme='http://www.blogger.com/atom/ns#' term='language'/><title type='text'>My (poor) English</title><content type='html'>*sigh* It seems that not actively using English for over a year has it's downsides. I make a lot more grammatical mistakes and misspell a lot more words than I used to. Back then I chatted away and talked English almost every day, now I just talk English when I meet an exchange student and only write in English when I really have to. I really should try to regain what I have lost, one can't have a CAE certificate and talk/write English like an average Swede.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-4576202904523613166?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/4576202904523613166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=4576202904523613166' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/4576202904523613166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/4576202904523613166'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2006/12/my-poor-english.html' title='My (poor) English'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-6456026583618164844</id><published>2006-12-17T21:18:00.000+01:00</published><updated>2007-04-30T00:14:40.588+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='philosophy'/><title type='text'>Am I Evil?</title><content type='html'>People with faith seem to have a need to point out if something is evil or not. For example, Hitler was evil, Mother Theresa was kind hearted and so on. This of course requires the need of an absolute moral values that exists without the need of individuals to decide whether or not a given action is evil or not. Why is that?&lt;br /&gt;&lt;br /&gt;I have a hard time understanding how such a construction would be possible, impossible if there is no god of course. Then he would simply say alakhazam and there would be some link between every action and a set of specified values. But let us assume that there are no values, no good or evil. What would be the consequences?&lt;br /&gt;&lt;br /&gt;Some people with faith claim that in such a case all of man would fight among themselves in an endless turmoil, making nothing but carnage and that all good things in life come from the all mighty god and his values passed on to man. I don't think that this is the case, I would rather say mankind is very much capable of taking a set morals at any given time given a number of circumstances. How do people with faith explain all the evil in the world today? Are the people who do "bad" doing it conscientiously? Do they strive towards doing wrong because they are "evil"?&lt;br /&gt;&lt;br /&gt;I'd rather explain it by simply stepping beyond good and evil, they do "bad" because we see what they do and compare it to our morals and say that it is bad because we don't share their opinions and views. Hitler was just as human as any believer or disbeliever for that matter, given the circumstances that surrounded him I am convinced that any of us would have made similar reasonings and taken similar actions.&lt;br /&gt;&lt;br /&gt;We are no better than any of those we see as "evil", but we have the chance to understand how they became "evil" and by doing so we might even learn what it really means to be human.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-6456026583618164844?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/6456026583618164844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=6456026583618164844' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6456026583618164844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/6456026583618164844'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2006/12/am-i-evil.html' title='Am I Evil?'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8907397279131668867.post-885360154693240078</id><published>2006-12-17T20:45:00.000+01:00</published><updated>2007-04-30T00:14:50.018+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>It's alive!</title><content type='html'>For some reason everyone need to dump a load of thoughts and opinions  at the web. This phenomena is generally called a blog (short for web log I reckon). Apparently I feel the same need to give Output as well  as Input... thus making I/O instead of I.&lt;br /&gt;&lt;br /&gt;I would want to host this at my own homepage but since I am lazy and doing end term exams I think Google can handle this for me and ease my burden (at least for now). You can find a lot about me and what I do at www.d.kth.se/~ninjin/ I'll spare you my introduction and hope that you will read it in case you wonder what kind of being I am.&lt;br /&gt;&lt;br /&gt;Well, on to dumping random thoughts, rants, anger etc etc on the web.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8907397279131668867-885360154693240078?l=ninjin-weblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ninjin-weblog.blogspot.com/feeds/885360154693240078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8907397279131668867&amp;postID=885360154693240078' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/885360154693240078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8907397279131668867/posts/default/885360154693240078'/><link rel='alternate' type='text/html' href='http://ninjin-weblog.blogspot.com/2006/12/its-alive.html' title='It&apos;s alive!'/><author><name>ninjin</name><uri>http://www.blogger.com/profile/00736953877752294796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp2.blogger.com/_-gH-YN7HxPM/R88aVTZUNjI/AAAAAAAAAGg/TJrVyyYxqk8/S220/IMG_1611b.jpg'/></author><thr:total>0</thr:total></entry></feed>
