<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" xml:lang="en" xml:base="http://fransdejonge.com/wp-atom.php">
	<title type="text">The One with the Thoughts of Frans</title>
	<subtitle type="text">Just a personal blog, sharing anecdotes, drawings, photos, tips about Linux, CSS, HTML, and other things that interest me.</subtitle>

	<updated>2012-04-27T19:45:03Z</updated>

	<link rel="alternate" type="text/html" href="http://fransdejonge.com" />
	<id>http://fransdejonge.com/feed/atom/</id>
	

	<generator uri="http://wordpress.org/" version="3.3.2">WordPress</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/theonewiththethoughtsoffrans" /><feedburner:info uri="theonewiththethoughtsoffrans" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[I Joined the Dark Side]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/kYbvlInw6HA/" />
		<id>http://fransdejonge.com/?p=1812</id>
		<updated>2012-04-27T19:45:03Z</updated>
		<published>2012-04-22T15:55:09Z</published>
		<category scheme="http://fransdejonge.com" term="Android" />		<summary type="html"><![CDATA[Android has a new convert — until I need to buy a new phone again in hopefully no sooner than four years.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2012/04/i-joined-the-dark-side/">&lt;p&gt;Back in 2010 I was really looking forward to the upcoming MeeGo phones by Nokia, but alas, it was not to be. My five-year-old phone started dropping its connection now and then for no apparent reason, so it was time to upgrade. Unfortunately all the phones out there seemed to be either mini-tablets or otherwise not living up to my requirements, but a few weeks after I&amp;#8217;d stopped looking I almost accidentally came across the Sony Ericsson xPeria ray. It combined two features very important to me: it is not a small tablet and it has a nice resolution, resulting in nigh 300 PPI. Can I get the latter on desktop monitors please, instead of that paltry 1080p HD that seems to be popular right now?&lt;/p&gt;
&lt;p&gt;I intend to document some of the apps I&amp;#8217;ve installed and why, and perhaps also why I quickly uninstalled some others. To that extent it&amp;#8217;s more of a public note to self, but who knows — it might just help to someone else.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=factory.widgets.SenseClock"&gt;Sense Analog Clock Widget&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Because none of the other clock widgets were big enough. Call me old-fashioned, but I like a big clock to be the first thing I see. The weather, system info and configurable click actions are a nice touch.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.fsck.k9"&gt;K-9 Mail&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;The default e-mail client was alright, but not really any better than what my old SE s500i gave me over half a decade ago. Besides, it&amp;#8217;s mostly just the default client with some bells and whistles.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=ms.jung.android.k9icon"&gt;K9 Mail Unread Count Icon&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Unlike the default e-mail client, K-9 Mail doesn&amp;#8217;t display the number of unread messages in its icon. This widget takes care of that.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.moo.android.inputmethod.latin.free"&gt;Keyboard from Android 2.3&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;I like the default Android 2.3 keyboard better than the one Sony Ericsson included. You can choose your preferred keyboard by long-pressing on a text-input field. Among the advantages are that it&amp;#8217;s easier to type symbols and you can change languages by a simple swipe on the space bar. Besides, it has a speech recognition button built-in so you don&amp;#8217;t necessarily have to type on the screen.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=lysesoft.andftp"&gt;AndFTP&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;I tried a few FTP programs. Most were lacking in the SFTP department. However, I think it may not ask before it overwrites files.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.dropbox.android"&gt;Dropbox&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Heck, it&amp;#8217;s useful. Besides, they give you 500MB of extra free storage.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=org.ais.archidroid"&gt;ArchiDroid&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;I need to extract files sometimes. Duh.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=org.openintents.filemanager"&gt;OI File Manager&lt;/a&gt; and &lt;a href="https://play.google.com/store/apps/details?id=com.nexes.manager"&gt;Open Manager&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;I haven&amp;#8217;t decided which one I like better, but it&amp;#8217;s preposterous that something like this wasn&amp;#8217;t included by default. Did I mention my feature phone came with a basic file manager?&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.google.zxing.client.android"&gt;Barcode Scanner&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Very straightforward. It scans those funky QR code blocks without any fluff.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="http://code.google.com/p/qrbookmarklet/"&gt;QR Bookmarklet&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;This one actually isn&amp;#8217;t for my phone, but for my regular browse. I saved it among my bookmarklets and gave it the nickname &amp;#8220;qr&amp;#8221;. Now if I want to open any page on my phone, I can just type &amp;#8220;qr&amp;#8221; and use Barcode Scanner.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.opera.browser"&gt;Opera Mobile&lt;/a&gt; and &lt;a href="https://play.google.com/store/apps/details?id=com.opera.mini.android"&gt;Opera Mini&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Are any other browsers even in the same league? Mobile for Wi-Fi, Turbo for when a real browser might be required on the go, and Mini for true data saving. Also consider &lt;a href="https://play.google.com/store/apps/details?id=org.mozilla.firefox"&gt;Firefox&lt;/a&gt;. The default Webkit browser is bearable, but basically awful. Note that while Opera Mobile supports options like site preferences, adding them is a bit of a pain due to the lack of a simple interface.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.elvison.batterywidget"&gt;Battery Widget&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;I like a big battery indicator — and the little one it adds to the notification bar has an actual number so you know what&amp;#8217;s going on.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.keyes.screebl.beta"&gt;Screebl Beta&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;The best argument for those motion sensors yet. It disables or holds back the screen timeout while the phone is in your hand and can speed it up when you lay it down.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.alfray.timeriffic"&gt;Timeriffic&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Again, it seems like this should be included by default. Set your phone up to stfu at night and whenever else you don&amp;#8217;t want it to ring. You can also change some other settings if you want, but for me it makes more sense to turn e.g. Wi-Fi on manually.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=at.tomtasche.reader"&gt;OpenOffice Document Reader&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;LibreOffice is my preferred office application after HTML + CSS rendered to PDF with Prince. I may want to look up something in one of my documents on the go.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=net.an_shin.autosync.auto"&gt;wifi AutoSyncAutoToggle widget&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;I don&amp;#8217;t really want my phone wasting CPU or data on syncing unless I&amp;#8217;m on WLAN. This takes care of that. Don&amp;#8217;t forget to tell your applications to obey this setting. Other applications, most notably Google Play Store, don&amp;#8217;t necessarily live by this setting, but sport options like &amp;#8220;update or sync over Wi-Fi only.&amp;#8221;&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=ales.veluscek.sdtools"&gt;SD Tools&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;I don&amp;#8217;t know if I&amp;#8217;d recommend installing it per se, but benchmarking the speed might interesting for comparison.&lt;/dd&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.mapswithme.maps"&gt;Maps With Me&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;It&amp;#8217;s a lot like Google Maps, except it&amp;#8217;s based on OpenStreetMaps and offline. There are more OSM apps out there, but most I&amp;#8217;ve tried seem to be less fluid, uglier, or default to turning the GPS on. I&amp;#8217;m just looking at having a decent 2D map just in case — I&amp;#8217;ve got an actual GPS with a bigger screen (albeit sadly with a much lower PPI value) for driving. Surprisingly, although I also gave a few commercial applications a try, their 2D maps didn&amp;#8217;t seem nearly as usable as the Google Maps or Maps With Me varieties. The commercial apps have loads of POIs though, which might sometimes be useful.&lt;/dd&gt;
&lt;p&gt;&lt;ins datetime="2012-04-27T19:32:51+00:00"&gt;
&lt;dt&gt;&lt;a href="https://play.google.com/store/apps/details?id=aarddict.android"&gt;Aard Dictionary&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;In a similar vein, I&amp;#8217;ve now got The Collaborative International Dictionary of English and the entirety of Wikipedia on my phone. It&amp;#8217;s not only useful for when you don&amp;#8217;t want to use data: it&amp;#8217;s actually really, really fast. There are &lt;a href="http://aarddict.org/dictionaries/"&gt;more dictionaries&lt;/a&gt; available, or you can make your own. The only downside I can think of is that SVGs (which presumably shouldn&amp;#8217;t take too much extra space) are missing from the files.&lt;/dd&gt;
&lt;p&gt;&lt;/ins&gt;&lt;/p&gt;
&lt;/dl&gt;
&lt;p&gt;Android is certainly usable, but ultimately it&amp;#8217;s too Apple-ish for my tastes. It&amp;#8217;s also a bit annoying that by default everything&amp;#8217;s set up to use data all the time. I understand that connectivity is a big factor of the device, but it&amp;#8217;s no wonder people complain about low battery life if their phones are synchronizing all kinds of things every few minutes. If I&amp;#8217;m on the go I can live with checking for new e-mail manually to conserve both data usage and battery life. Ultimately, while I&amp;#8217;m happy with my new phone, I hope real GNU/Linux will be available before I have to buy a new one again.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/kYbvlInw6HA" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2012/04/i-joined-the-dark-side/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2012/04/i-joined-the-dark-side/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2012/04/i-joined-the-dark-side/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Using WordPress Excerpts in Meta Description]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/2IWkaqNcfC4/" />
		<id>http://fransdejonge.com/?p=1810</id>
		<updated>2012-04-09T08:58:27Z</updated>
		<published>2012-04-06T11:40:20Z</published>
		<category scheme="http://fransdejonge.com" term="Scripting" /><category scheme="http://fransdejonge.com" term="Wordpress" />		<summary type="html"><![CDATA[Almost all posts on this subject out there aren't very good: this one's less bad.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2012/04/using-wordpress-excerpts-in-meta-description/">&lt;p&gt;For a long time I&amp;#8217;ve been aware of the fact that few, if any, WordPress themes seemed to do anything with the &lt;code&gt;META&lt;/code&gt; element&amp;#8217;s description feature. I never bothered to look into a solution, especially since I never used to add excerpts to my posts half a decade ago. However, I&amp;#8217;ve bothered to do so ever since I &lt;a href="/2010/01/updates-on-twitter/"&gt;started notifying people about updates on Twitter&lt;/a&gt;. It already makes the search results much more readable if you&amp;#8217;re looking for something in the archives of this site, and I figured I should do the same for search engines.&lt;/p&gt;
&lt;p&gt;Some uneventful searching later I found &lt;a href="http://codegrad.hub.ph/wordpress-meta-description-using-post-excerpt-category-description-and-post-id/"&gt;what I was looking for&lt;/a&gt;, but it definitely wasn&amp;#8217;t right for me: I&amp;#8217;ve got a huge volume of posts without any excerpts, so printing empty descriptions no matter what would be silly at best, and besides there are more descriptions out there than merely those of posts. After all, categories and even my site itself have a description as well. The comment by &lt;a href="http://www.slyman.org/"&gt;Matthew Slyman&lt;/a&gt; was much more to my liking, which I then customized as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?php
$desc;
if ( is_single() ) {
	$desc = get_the_excerpt();
}
elseif ( is_page() ) {
	$desc = get_the_excerpt();
}
elseif ( is_category() ) {
	$desc = category_description();
}
elseif ( is_home() ) {
	$desc = get_bloginfo('description');
}
$desc = trim(strip_tags($desc));
if (!empty($desc)) {
	echo '&amp;lt;meta name="description" content="';
	echo $desc;
	echo '"/&amp;gt;';
}
?&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Add the whole thing anywhere in your &lt;code&gt;HEAD&lt;/code&gt; element in &lt;code&gt;header.php&lt;/code&gt;. If excerpts seem to be missing from pages, there&amp;#8217;s &lt;a href="http://wordpress.mfields.org/2010/excerpts-for-pages-in-wordpress-3-0/"&gt;a simple solution&lt;/a&gt;. If you want to reuse the code above for some reason, wrap some sort of function around it and stick it in &lt;code&gt;functions.php&lt;/code&gt;. Enjoy.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/2IWkaqNcfC4" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2012/04/using-wordpress-excerpts-in-meta-description/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2012/04/using-wordpress-excerpts-in-meta-description/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2012/04/using-wordpress-excerpts-in-meta-description/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[OCR Text in PDF with Tesseract]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/L2zxu-nCaHA/" />
		<id>http://fransdejonge.com/?p=1809</id>
		<updated>2012-04-02T10:27:59Z</updated>
		<published>2012-04-01T22:13:45Z</published>
		<category scheme="http://fransdejonge.com" term="Linux" />		<summary type="html"><![CDATA[A simple shell script to automatically convert PDFs to TIFs for use with Tesseract.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2012/04/ocr-text-in-pdf-with-tesseract/">&lt;p&gt;Since I had some scanned PDFs which I wanted to change into plain text, I looked into OCR solutions for Linux: as it turns out there &lt;a href="https://help.ubuntu.com/community/OCR"&gt;are some pretty good options&lt;/a&gt;. I decided to go with Tesseract; you&amp;#8217;ll need to install one or more language packs along with it. Unfortunately it only handles TIF files as input, so I needed a simple shell script to automatically convert PDFs to TIFs. This is what you&amp;#8217;ll need to install:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;aptitude install tesseract-ocr tesseract-ocr-eng tesseract-ocr-nld imagemagick&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You might notice ImageMagick in there, which is just useful to have. Heck, even if you&amp;#8217;re not interested in OCR you should install it right now and read the manual. In any case, it&amp;#8217;s used in the shell script I wrote to assist my OCR-ing. I picked up &lt;a href="http://ubuntuforums.org/showthread.php?t=880471"&gt;a script from the Ubuntu Forums&lt;/a&gt;, but for some reason it was wasting CPU cycles and disk space with useless conversions to an intermediary format: ImageMagick can convert PDF straight to TIF.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#!/bin/bash
#ocrpdftotext
# Simplified implementation of http://ubuntuforums.org/showthread.php?t=880471

# Might consider doing something with getopts here, see http://wiki.bash-hackers.org/howto/getopts_tutorial
DPI=300
TESS_LANG=nld

FILENAME=${@%.pdf}
SCRIPT_NAME=`basename "$0" .sh`
TMP_DIR=${SCRIPT_NAME}-tmp
OUTPUT_FILENAME=${FILENAME}-output@DPI${DPI}

mkdir ${TMP_DIR}
cp ${@} ${TMP_DIR}
cd ${TMP_DIR}

convert -density ${DPI} -depth 8 ${@} "${FILENAME}.tif"
tesseract "${FILENAME}.tif" "${OUTPUT_FILENAME}" -l ${TESS_LANG}

mv ${OUTPUT_FILENAME}.txt ..
rm *
cd ..
rmdir ${TMP_DIR}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This may not suit your needs, but I think as a starting point it&amp;#8217;s a step up from what the Ubuntu forums gave me.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/L2zxu-nCaHA" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2012/04/ocr-text-in-pdf-with-tesseract/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2012/04/ocr-text-in-pdf-with-tesseract/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2012/04/ocr-text-in-pdf-with-tesseract/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Word Count]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/dSR6dCwtz7k/" />
		<id>http://fransdejonge.com/?p=1806</id>
		<updated>2012-04-02T13:26:37Z</updated>
		<published>2012-03-19T17:04:39Z</published>
		<category scheme="http://fransdejonge.com" term="Scripting" />		<summary type="html"><![CDATA[A simple word counter that doesn't count words between parentheses.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2012/03/word-count/">&lt;p&gt;Since I wanted to know the actual number of words in a paper in near-MLA format and couldn&amp;#8217;t find my previous (simple) PHP script, I reimplemented an equally simplistic &lt;a href="/test/2012/word-count.html"&gt;word counter in Javascript&lt;/a&gt;. It strips out citations between parentheses. Suggestions welcome and use at your own risk.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/dSR6dCwtz7k" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2012/03/word-count/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2012/03/word-count/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2012/03/word-count/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Multiple Monitors: Enabling And Disabling With the Aid of nvidia-glx]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/j2u-c3Td884/" />
		<id>http://fransdejonge.com/?p=1808</id>
		<updated>2012-03-09T15:36:26Z</updated>
		<published>2012-03-09T15:36:26Z</published>
		<category scheme="http://fransdejonge.com" term="Linux" />		<summary type="html"><![CDATA[As I wrote last year, I wish to &#8220;automatically output whatever video I&#8217;m playing in fullscreen on another monitor.&#8221; Because the other monitor isn&#8217;t next to my main monitor, most of the time the output doesn&#8217;t have any practical purposes. That isn&#8217;t the biggest problem, although you might want to consider Mouse Jail. However, I [...]]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2012/03/multiple-monitors-enabling-and-disabling-with-the-aid-of-nvidia-glx/">&lt;p&gt;As I wrote &lt;a href="/2011/04/vlc-control-clone-window-with-devilspie/"&gt;last year&lt;/a&gt;, I wish to &amp;#8220;automatically output whatever video I&amp;#8217;m playing in fullscreen on another monitor.&amp;#8221; Because the other monitor isn&amp;#8217;t next to my main monitor, most of the time the output doesn&amp;#8217;t have any practical purposes. That isn&amp;#8217;t the biggest problem, although you might want to consider &lt;a href="/2011/04/mouse-jail/"&gt;Mouse Jail&lt;/a&gt;. However, I recently changed from Nouveau, the open-source nVidia drivers, to nvidia-glx, the proprietary nVidia drivers that offer all the latest and greatest OpenGL acceleration: I wanted to play &lt;a href="http://www.achrongame.com/"&gt;Achron&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After extracting the Achron archive, it turned out that the game wanted to spread across the entire virtual space available, i.e., across both of my monitors. Disabling one monitor is easy enough, but it would have to be automated. Besides, figuring out how to automate this would be a fun exercise in itself.&lt;/p&gt;
&lt;p&gt;First of all, there were some issues with xorg.conf. nvidia-settings can generate one, but it&amp;#8217;s not the greatest and requires some manual modification, if only to make sure your own mouse remaps and what not aren&amp;#8217;t left behind. What we&amp;#8217;re interested in is the section where it talks about metamodes. I thought I&amp;#8217;d need two of them to enable easy switching: one with the second monitor enabled and one where it was disabled. Since I only actually use the second monitor for VLC video output, it should be disabled by default and enabled only for VLC: &lt;code&gt;Option		 "metamodes" "DFP: nvidia-auto-select +0+0, CRT: NULL; DFP: nvidia-auto-select +0+0, CRT: nvidia-auto-select +1280+0"&lt;/code&gt;. Alas, if only it were this simple. As it turns out, now the graphics driver creates a gigantic virtual display space in order to accommodate the largest resolution metamode, allowing you to pan around in it. New plan: we disable the second monitor on boot and dynamically add a metamode when starting VLC. The line in xorg.conf now looks only like this: &lt;code&gt;Option		 "metamodes" "DFP: nvidia-auto-select +0+0, CRT: NULL"&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;So, how to add metamodes on the fly? Well, the nvidia-glx driver comes with this nice little utility called nv-control-dpy. Based on that I wrote the following shell script to start VLC:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#!/bin/bash

# Check if the desired resolution is available and if not, add it. The check isn't really necessary for proper operation but it keeps down error output.
[[ "`nv-control-dpy --print-metamodes`" !=  *@1920x1200* ]] &amp;#038;&amp;#038; nv-control-dpy --add-metamode "DFP-0: nvidia-auto-select @1280x1024 +0+0, CRT-1: nvidia-auto-select @1920x1200 +1280+0"
xrandr -r 51.0 -s 3200x1200

# See http://www.andymillar.co.uk/blog/2010/03/17/limiting-vlc-memory-usage/
source /etc/profile
ulimit -v 1048576

/usr/bin/vlc $@

# Check if there's still an instance of VLC running.
# $$ is the process's own PID; testing the exit code of pgrep vlc for success wouldn't work 'cause this script itself would still cause that to test positive. Incidentally, see how to check for exit codes at &lt;a href="http://linuxcommando.blogspot.com/2008/03/how-to-check-exit-status-code.html"&gt;http://linuxcommando.blogspot.com/2008/03/how-to-check-exit-status-code.html&lt;/a&gt; (Yes, this comment is all based on me testing something and wondering for a minute or so why my script wasn't working correctly.)
# To check that you can try
#somecommand  argument1 argument2
#RETVAL=$?
#[ $RETVAL -eq 0 ] &amp;#038;&amp;#038; echo Success
#[ $RETVAL -ne 0 ] &amp;#038;&amp;#038; echo Failure
[ "`pgrep vlc`" == $$ ] &amp;#038;&amp;#038; xrandr -r 50.0 -s 1280x1024&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The nVidia driver plays a little trick on X11 by pretending the different metamodes have different refresh rates. In some future update this should no longer be necessary, but for now that&amp;#8217;s how you can easily switch between them with xrandr. The script is named vlc and added to my PATH in such a manner that it overrides the default link to the VLC binary. I think that should be enough information to adjust this to your own personal needs.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/j2u-c3Td884" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2012/03/multiple-monitors-enabling-and-disabling-with-the-aid-of-nvidia-glx/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2012/03/multiple-monitors-enabling-and-disabling-with-the-aid-of-nvidia-glx/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2012/03/multiple-monitors-enabling-and-disabling-with-the-aid-of-nvidia-glx/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Behind the Scenes]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/7b5ZWJTS168/" />
		<id>http://fransdejonge.com/?p=1793</id>
		<updated>2012-03-08T18:17:25Z</updated>
		<published>2012-03-08T18:17:25Z</published>
		<category scheme="http://fransdejonge.com" term="Site" />		<summary type="html"><![CDATA[A long overdue design update notice.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2012/03/behind-the-scenes/">&lt;p&gt;&lt;a href="/2011/08/some-practical-extremely-simple-algebra/"&gt;Half a year ago&amp;#8217;s post&lt;/a&gt;, about why we decided to buy a washing machine two years ago, was actually written back in September or October of 2009. I didn&amp;#8217;t post it at the time because it made me aware I had no table styling. I then proceeded to make a testcase for table styling, which I presumably finished before October 2009 was over.&lt;/p&gt;
&lt;p&gt;Sadly for the post, however, I then forgot about it till last year, when I found my table styles testcase during my switch from NTFS to ext4. This had the side-effect that I started incorporating various stylesheet upgrades I&amp;#8217;d written over the past two or three years, giving you a different default width and fancy schmancy transition effects today — or actually already back in May 2011 because that&amp;#8217;s how long it took me to actually publish this. I really do need to stop putting things in drafts for potential revision without ever picking them up again.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/7b5ZWJTS168" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2012/03/behind-the-scenes/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2012/03/behind-the-scenes/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2012/03/behind-the-scenes/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Uw Kinderen — Your Children]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/H_0l71RB9NY/" />
		<id>http://fransdejonge.com/?p=1802</id>
		<updated>2012-02-06T19:37:43Z</updated>
		<published>2012-02-06T19:37:43Z</published>
		<category scheme="http://fransdejonge.com" term="Thoughts" />		<summary type="html"><![CDATA[An impromptu translation of a poem by Annie M.G. Schmidt.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2012/02/uw-kinderen-your-children/">&lt;p&gt;I thought this poem by Annie M.G. Schmidt was quite amusing; it also nicely characterizes the prose texts in the bundle from which I took it. The poem’s short, so you’ve got no excuse not to read it — assuming you speak Dutch, of course.&lt;/p&gt;
&lt;pre lang="nl" class="poetry"&gt;
Een sprookje voor het slapen gaan
over de bijtjes en de maan,
over de elfjes teer en fijn,
die Artistiek Verantwoord zijn,
en over ’t zoete bloemenfeetje…
uw kind vindt het wel mooi, een beetje…
maar gooit de elfjes grif terzijde
voor strips met nare blote meiden.
Een kind is al zo gauw tevree:
een overval — een moord of twee.

Kind, huil maar niet, wees maar bedaard:
ik gooi Rie Cramer in de haard.
Hier is de strip, met stromen bloed.
Beng, weer een lijk. Dus wees maar zoet.
&lt;/pre&gt;
&lt;p&gt;From &lt;cite&gt;Voeden, verschonen en in de wieg mikken&lt;/cite&gt;. 2009, Querido.&lt;/p&gt;
&lt;p&gt;For the speakers of English among us, I hereby offer you an impromptu translation:&lt;/p&gt;
&lt;pre class="poetry"&gt;
A fairy tale for sleeping soon
about little bees and the moon,
about little elves frail and fine,
of artistically sound design,
and about the sweet flower fairy…
your child thinks it's nice, not very…
but promptly the elves aside it whirls
for comics with nasty naked girls.
A child is easy to entertain:
a robbery — a murder or twain.

Child, don’t cry, just be as if in a daze:
I'll throw Rie Cramer&lt;sup&gt;1&lt;/sup&gt; in the fireplace.
Here's the comic, with streams of blood.
Bang, again a corpse. So be good.
&lt;/pre&gt;
&lt;hr/&gt;
&lt;p&gt;1. Rie Cramer is a Dutch author and illustrator of books aimed at little children.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/H_0l71RB9NY" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2012/02/uw-kinderen-your-children/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2012/02/uw-kinderen-your-children/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2012/02/uw-kinderen-your-children/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Debian: International Fonts]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/6JL7KrWqmQs/" />
		<id>http://fransdejonge.com/?p=1803</id>
		<updated>2012-02-02T20:52:47Z</updated>
		<published>2012-02-02T20:52:47Z</published>
		<category scheme="http://fransdejonge.com" term="Language" /><category scheme="http://fransdejonge.com" term="Linux" />		<summary type="html"><![CDATA[An easy apt-get install line for East Asian and Indic fonts.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2012/02/debian-international-fonts/">&lt;p&gt;Ubuntu comes with a large swath of international fonts installed by default, but Debian requires a little more attention. Although I can&amp;#8217;t read the languages, I can recognize which script is which. Besides, boxes are just ugly.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;East Asian: &lt;code&gt;apt-get install ttf-arphic-uming ttf-wqy-zenhei ttf-sazanami-mincho ttf-sazanami-gothic ttf-unfonts-core&lt;/code&gt; (&lt;a href="http://en.wikipedia.org/wiki/Help:Multilingual_support_(East_Asian)"&gt;source&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Indic: &lt;code&gt;apt-get install ttf-indic-fonts&lt;/code&gt; (&lt;a href="http://en.wikipedia.org/wiki/Help:Multilingual_support_(Indic)"&gt;source&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;All together: &lt;code&gt;apt-get install ttf-arphic-uming ttf-wqy-zenhei ttf-sazanami-mincho ttf-sazanami-gothic ttf-unfonts-core ttf-indic-fonts&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These are merely the ones that I missed the most. I may update this post in the future.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/6JL7KrWqmQs" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2012/02/debian-international-fonts/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2012/02/debian-international-fonts/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2012/02/debian-international-fonts/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Mounting filesystems with fstab]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/TFwFThDSEzs/" />
		<id>http://fransdejonge.com/?p=1773</id>
		<updated>2011-12-23T21:56:24Z</updated>
		<published>2011-12-23T21:56:24Z</published>
		<category scheme="http://fransdejonge.com" term="Linux" />		<summary type="html"><![CDATA[If you&#8217;re just switching from Windows and you don’t like to enter passwords every time you want to access your disks, fstab is what you need. Of course it also applies to e.g. ext4 partitions that you didn&#8217;t assign a mount point during the installation of your OS, but when you&#8217;ve come that far along [...]]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2011/12/mounting-filesystems-with-fstab/">&lt;p&gt;If you&amp;#8217;re just switching from Windows and you don’t like to enter passwords every time you want to access your disks, fstab is what you need. Of course it also applies to e.g. ext4 partitions that you didn&amp;#8217;t assign a mount point during the installation of your OS, but when you&amp;#8217;ve come that far along you probably already know this.&lt;/p&gt;
&lt;p&gt;By far the best explanation of fstab I&amp;#8217;ve found was on &lt;a href="https://wiki.archlinux.org/index.php/Fstab"&gt;ArchWiki&lt;/a&gt;, so I won’t waste my time reiterating what is stated there. I’ll merely try to further clarify a few things that were less immediately obvious to myself and needed a little experimentation.&lt;/p&gt;
&lt;p&gt;In many ways fstab is what I always wanted in Windows. For a long, long time I&amp;#8217;ve maintained a C partition (dedicated Windows, so I could wipe it without really affecting anything), a D partition (my primary data container), and later, as I added more HDDs, I think I got up to G. There are some hacks available, like &lt;a href="http://en.wikipedia.org/wiki/NTFS_junction_point"&gt;NTFS junction points&lt;/a&gt;, but they don&amp;#8217;t really protect against the fundamental flaw of drive letter assignment compared to the much more sensible mechanism of mount points.&lt;/p&gt;
&lt;p&gt;When you mount a partition manually through your GUI, by clicking on it and entering your password, it creates a temporary entry in /etc/mtab; this entry can be used to &lt;a href="http://stateless.geek.nz/2005/10/26/bind-mount-in-fstab/"&gt;as a starting point for fstab entries&lt;/a&gt;. However, for more reliable partition mounting you need to use &lt;abbr title="Universally unique identifier"&gt;UUID&lt;/abbr&gt;s. You can obtain this using &lt;code&gt;blkid /mnt/sda1&lt;/code&gt;, where /mnt/sda1 should be replaced with whatever partition you want to print a &lt;abbr title="Universally unique identifier"&gt;UUID&lt;/abbr&gt; for. This command needs to be run as root, i.e. with &lt;code&gt;su&lt;/code&gt; or &lt;code&gt;sudo&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you prefer to use a GUI, there are some options, but I haven&amp;#8217;t tried any of them. &lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;Disk Manager&lt;/dt&gt;
&lt;dd&gt;&lt;a href="http://flomertens.free.fr/disk-manager/"&gt;http://flomertens.free.fr/disk-manager/&lt;/a&gt;&lt;/dd&gt;
&lt;dt&gt;PySDM&lt;/dt&gt;
&lt;dd&gt;&lt;a href="http://pysdm.sourceforge.net/"&gt;http://pysdm.sourceforge.net/&lt;/a&gt;&lt;/dd&gt;
&lt;dt&gt;fwfstab&lt;/dt&gt;
&lt;dd&gt;&lt;a href="http://www.diffingo.com/oss/fwfstab"&gt;http://www.diffingo.com/oss/fwfstab&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/TFwFThDSEzs" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2011/12/mounting-filesystems-with-fstab/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2011/12/mounting-filesystems-with-fstab/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2011/12/mounting-filesystems-with-fstab/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Why Opera&#8217;s XHTML Error Handling Is Superior]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/7jkdGLaPG0w/" />
		<id>http://frans.lowter.us/?p=1159</id>
		<updated>2011-12-08T10:58:54Z</updated>
		<published>2011-11-24T18:44:33Z</published>
		<category scheme="http://fransdejonge.com" term="Browsers" /><category scheme="http://fransdejonge.com" term="Opera" />		<summary type="html"><![CDATA[A quick outline of the pros and cons of various types of feedback.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2011/11/why-operas-xhtml-error-handling-is-superior/">&lt;p&gt;I found this old, unfinished post in my drafts. I&amp;#8217;m not quite sure when I originally wrote it, but it was over a year ago. Rather than updating the content I decided to publish it as is, as I&amp;#8217;m not sure why I didn&amp;#8217;t, with a small addendum at the end.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I made a little &lt;a href="http://i49.tinypic.com/2qwmz28.png"&gt;compilation&lt;/a&gt; of the various error messages displayed by browsers upon encountering an XML syntax error. Firefox (Gecko) has the unfriendly looking error on top, Chromium (Webkit) renders the page up to the error, but shows a large error message (albeit not at all useful like in Opera &amp;amp; Fx), and for Opera I included 10.10 and the latest 10.50 pre-alpha build. Note that it’s just the styles behind the error message that changed a bit: the content and helpfulness of the error message is still the same. I&amp;#8217;ll run it down a bit more:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Firefox displays an error message that&amp;#8217;s only useful if you already know sufficiently much about X(HT)ML, whereas Opera&amp;#8217;s error message not only highlights more clearly where parsing failed — although ultimately this difference might just be one of preference. More important, its error message might just helpfully link you precisely where you need to go to learn how to avoid it. When I first started messing about with XHTML back in &amp;#8217;03 or so, I probably would&amp;#8217;ve appreciated it if Opera had done that. At the time Opera behaved the same as Fx does now.&lt;/li&gt;
&lt;li&gt;Chromium displays an error message that doesn&amp;#8217;t even manage to clearly indicate what&amp;#8217;s the problem. This compares negatively to Fx and Opera highlighting the &amp;amp;.&lt;/li&gt;
&lt;li&gt;Chromium renders the page up to the problem, which may result in a get out of jail free card. The error message doesn’t seem very annoying, but if the error is in the middle of the page it’ll still be in the way. In my sample page it’s at the end, however. (My example page is basically a standard installation of phpGraphy on which I decided to switch to application/xml+xhtml because it claims to be more or less XHTML compliant now — I had to fix all the unclosed meta and link tags first.)&lt;/li&gt;
&lt;li&gt;Despite rendering the page, you won&amp;#8217;t be able to see the page fully in Chromium. You will with Opera&amp;#8217;s reparse as HTML function.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I hope that clarifies why I think Opera&amp;#8217;s handling is best, both as a user and as an author.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;This blog post is &lt;a href="http://my.opera.com/ODIN/blog/2011/09/28/no-more-xml-parsing-failed-errors"&gt;now outdated&lt;/a&gt;. You can return to the behavior I hailed by disabling the &lt;a href="opera:config#UserPrefs|AutomaticallyreparseXHTMLwithparsingerrorsasHTML"&gt;opera:config#UserPrefs|AutomaticallyreparseXHTMLwithparsingerrorsasHTML&lt;/a&gt; option.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/7jkdGLaPG0w" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2011/11/why-operas-xhtml-error-handling-is-superior/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2011/11/why-operas-xhtml-error-handling-is-superior/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2011/11/why-operas-xhtml-error-handling-is-superior/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Multiple Nationalities]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/BfFkmOGvqFY/" />
		<id>http://fransdejonge.com/?p=1801</id>
		<updated>2011-11-21T19:36:36Z</updated>
		<published>2011-11-21T19:36:36Z</published>
		<category scheme="http://fransdejonge.com" term="Thoughts" />		<summary type="html"><![CDATA[Nobody will apply for multiple nationalities just for the heck of it.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2011/11/multiple-nationalities/">&lt;p&gt;I seem to have missed Donner&amp;#8217;s latest brilliant idea for a new law. It seems that the Dutch government is looking to limit the number of people with multiple nationalities to a minimum. In today&amp;#8217;s &lt;cite&gt;NRC Handelsblad&lt;/cite&gt; Ulli d&amp;#8217;Oliveira wrote a great opinion piece about the matter on page 14. Some highlights:&lt;/p&gt;
&lt;blockquote lang="nl"&gt;&lt;p&gt;De rabiate weerzin in delen van het politieke spectrum tegen het verschijnsel van de meervoudige nationaliteit heeft een gevolg dat pas laat aan het licht kwam &amp;#8211; dezelfde beperkingen aan het behouden van de oorspronkelijke nationaliteit die aan buitenlandse aspirant-Nederlanders worden opgelegd, gelden voor Nederlanders die een buitenlandse nationaliteit willen aannemen. Een petitie met meer dan vijftienduizend handtekeningen van mensen in het buitenland keert zich tegen deze &lt;em&gt;collateral damage&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&amp;#8230;&lt;/p&gt;
&lt;p&gt;In het nationaliteitsrecht is het nuttig om &lt;em&gt;politics of identity&lt;/em&gt; te onderscheiden van &lt;em&gt;politics of interests&lt;/em&gt;. De laatste jaren wordt het Nederlandse nationaliteitsrecht gedomineerd door de vurige wens om aan buitenlanders die Nederlander willen worden eerst de eis te stellen dat ze ideaaltypische Nederlanders zijn geworden. Ze zijn ingeburgerd, spreken de taal, participeren in de samenleving, verdienen behoorlijk, hebben hun startkwalificatie op zak, hebben geen strafblad en zo meer &amp;#8211; alsof Nederlandse losers niet bestaan. Deze Nederlandse identiteit mag niet worden bezoedeld door vreemde smetten, zoals een buitenlandse nationaliteit. De identiteit van de would-be-Nederlander moet exclusief Nederlands zijn.&lt;/p&gt;
&lt;p&gt;&amp;#8230;&lt;/p&gt;
&lt;p&gt;Het wetsontwerp houdt geen rekening met burgers. De argumenten van expats zijn verstandig en invoelbaar. Mensen willen settelen in den vreemde zonder hun Nederlanderschap te verloochenen. Om praktische, zakelijke overwegingen nemen ze een vreemde nationaliteit aan, zonder dat ze erover piekeren hun Nederlandse identiteit weg te snijden. Het zijn dezelfde overwegingen die buitenlanders ertoe brengen om Nederlander te willen worden.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Quick, messy, summarizing translation: the dislike in some parts of the political spectrum against multiple nationalities has an unexpected result: the same limitations that apply to aspiring Dutch apply to Dutch people who wish to assume another nationality.&lt;/p&gt;
&lt;p&gt;In recent years Dutch politics has been dominated by demanding that foreigners become idealized Dutch people, part of which is being exclusively Dutch. &lt;/p&gt;
&lt;p&gt;The law design doesn&amp;#8217;t take citizens into account. The arguments made by expatriates are reasonable and can be empathized with. People want to settle in a foreign country without renouncing their Dutch nationality. For practical reasons they assume a foreign nationality without considering cutting off their Dutch identify. These are the same considerations that make foreigners want to assume the Dutch nationality.&lt;/p&gt;
&lt;hr/&gt;
I have little to add to that. The whole shebang about multiple nationalities is ludicrous. Perhaps the Dutch municipalities should stop automatically submitting babies born of Moroccan-Dutch parents for Moroccan nationality if it&amp;#8217;s truly a problem of such massive scale — although they might&amp;#8217;ve stopped it by now, since I think a some Moroccan-Dutch parents sued Amsterdam over this gross misconduct. Nobody will apply for multiple nationalities just for the heck of it.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/BfFkmOGvqFY" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2011/11/multiple-nationalities/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2011/11/multiple-nationalities/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2011/11/multiple-nationalities/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Mental Conversations]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/r0BDY4Q5PXU/" />
		<id>http://fransdejonge.com/?p=1798</id>
		<updated>2011-11-13T19:08:21Z</updated>
		<published>2011-11-13T19:07:38Z</published>
		<category scheme="http://fransdejonge.com" term="Thoughts" />		<summary type="html"><![CDATA[A passage from Stephen King's Lisey's Story.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2011/11/mental-conversations/">&lt;blockquote&gt;&lt;p&gt;She remembered the day a furniture van from Portland had shown up with a two-thousand-dollar sectional sofa. Scott had been in his study, writing with the music cranked to its usual deafening levels — she could faintly hear Steve Earle singing &amp;#8220;Guitar Town&amp;#8221; in the house even with the soundproofing — and interrupting him was apt to do another two thousand dollars&amp;#8217; worth of damage to her ears, in Lisey&amp;#8217;s opinion. The furniture guys said &amp;#8220;the mister&amp;#8221; told them she&amp;#8217;d let them know where to put the new piece of furniture. Lisey had briskly directed them to carry the current sofa — the perfectly good current sofa — out to the barn, and place the new sectional where it had been. The color was at least a fair match for the room, and that was a relief. &lt;strong&gt;She knew she and Scott had never discussed a new sofa, sectional or otherwise, just as she knew Scott would declare — oh yes, most vehemently — that they had. She was sure he&amp;#8217;d discussed it with her in his head; he just sometimes forgot to vocalize those discussions. Forgetting was a skill he had honed&lt;/strong&gt; (emphasis mine).&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;From &lt;cite&gt;Lisey&amp;#8217;s Story&lt;/cite&gt; by Stephen King (p.148 of the 2006 Scribner hardcover).&lt;/p&gt;
&lt;p&gt;My wife alleges I do just that.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/r0BDY4Q5PXU" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2011/11/mental-conversations/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2011/11/mental-conversations/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2011/11/mental-conversations/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Skype Call Recorder]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/eUKJrcmXujY/" />
		<id>http://fransdejonge.com/?p=1797</id>
		<updated>2011-11-11T15:02:13Z</updated>
		<published>2011-11-11T15:02:13Z</published>
		<category scheme="http://fransdejonge.com" term="Linux" />		<summary type="html"><![CDATA[Skype Call Recorder delivers on the promise of its name. It records calls, with the participants split into two separate channels if you want — which you do if you want the option of raising or lowering the volume of one participant.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2011/11/skype-call-recorder/">&lt;p&gt;&lt;a href="http://atdot.ch/scr/"&gt;Skype Call Recorder&lt;/a&gt; delivers on the promise of its name. It records calls, with the participants split into two separate channels if you want — which you do if you want the option of raising or lowering the volume of one participant. &lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/eUKJrcmXujY" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2011/11/skype-call-recorder/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2011/11/skype-call-recorder/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2011/11/skype-call-recorder/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[On Critical Thinking]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/9mGaEtJAcOQ/" />
		<id>http://fransdejonge.com/?p=1794</id>
		<updated>2011-09-19T10:19:31Z</updated>
		<published>2011-09-19T10:19:31Z</published>
		<category scheme="http://fransdejonge.com" term="Thoughts" />		<summary type="html"><![CDATA[Critical thinking cannot be a slave to political convictions. ]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2011/09/on-critical-thinking/">&lt;p&gt;Written in response to someone talking about thinking critically &amp;#8220;against the powers that be.&amp;#8221;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Given your phrasing, it&amp;#8217;s highly improbable that you&amp;#8217;re actually talking about critical thinking. One does not think critically &lt;em&gt;against&lt;/em&gt; anything. You think critically, &lt;em&gt;period&lt;/em&gt;, about &lt;em&gt;everything&lt;/em&gt;. Perhaps most important, this includes yourself and your own notions. If you only think critically about (let alone against) others, you&amp;#8217;re not thinking critically at all. If you think critically &lt;em&gt;against&lt;/em&gt; someone or something, rather than &lt;em&gt;about&lt;/em&gt;, you&amp;#8217;re just out to find flaws so you can justify your own preconceived notions.&lt;/p&gt;&lt;/blockquote&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/9mGaEtJAcOQ" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2011/09/on-critical-thinking/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2011/09/on-critical-thinking/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2011/09/on-critical-thinking/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Some Practical, (Extremely) Simple Algebra]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/6KzQ6bSFN2w/" />
		<id>http://fransdejonge.com/?p=1733</id>
		<updated>2011-08-30T21:01:27Z</updated>
		<published>2011-08-30T21:01:27Z</published>
		<category scheme="http://fransdejonge.com" term="Thoughts" />		<summary type="html"><![CDATA[I suppose this proves that I was and am a geek.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2011/08/some-practical-extremely-simple-algebra/">&lt;p&gt;Early in secondary school, many of my classmates used to be exasperated by the perceived lack of practical application of the mathematics we had to learn at the time. I never really understood why, because it had clear practical applications, though I admit I also simply thought it was fun. Later on, things like statistics were really boring, but I figured I&amp;#8217;d share how the simplest of elementary algebra can help you make financial choices.&lt;/p&gt;
&lt;p&gt;Having just moved, we had to decide whether or not to buy a washing machine. Washing machines start at about €400 — they can be obtained used for much less, but last time I picked up a used washing machine for €40 it broke within about a year and it&amp;#8217;s just so much trouble trying to fix it or getting yet another used replacement — while laundromats cost about €3-4 per load (+20 cents for detergent). Admittedly the load sizes are slightly larger at the laundromat, but I don&amp;#8217;t see that as a good thing: it just makes it harder to carry and dry the laundry.&lt;/p&gt;
&lt;table&gt;
&lt;caption&gt;Washing costs per load for various temperatures in € &lt;a href="http://www.nibud.nl/uitgaven/wat-kost/was-douche-en-bad.html"&gt;according to Nibud&lt;/a&gt;&lt;/caption&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th scope="col"&gt;temperature/ type of costs&lt;/th&gt;
&lt;th scope="col"&gt;90°C&lt;/th&gt;
&lt;th scope="col"&gt;60°C&lt;/th&gt;
&lt;th scope="col"&gt;40°C&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;electricity&lt;/td&gt;
&lt;td&gt;0.48&lt;/td&gt;
&lt;td&gt;0.25&lt;/td&gt;
&lt;td&gt;0.15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;water&lt;/td&gt;
&lt;td&gt;0.10&lt;/td&gt;
&lt;td&gt;0.08&lt;/td&gt;
&lt;td&gt;0.08&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;washing powder&lt;/td&gt;
&lt;td&gt;0.19&lt;/td&gt;
&lt;td&gt;0.19&lt;/td&gt;
&lt;td&gt;0.19&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;depreciation / maintenance&lt;/td&gt;
&lt;td&gt;0.48&lt;/td&gt;
&lt;td&gt;0.48&lt;/td&gt;
&lt;td&gt;0.48&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;total&lt;/td&gt;
&lt;td&gt;1.25&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;0.90&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;total without depreciation&lt;/td&gt;
&lt;td&gt;0.77&lt;/td&gt;
&lt;td&gt;0.52&lt;/td&gt;
&lt;td&gt;0.42&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;We usually wash on 30 degrees and have an otherwise energy and water efficient washing machine, but I&amp;#8217;ll just run with the price for a single wash without depreciation value. I&amp;#8217;m not interested in depreciation of the value of the washing machine, since the point is how many times you have to wash to break even compared to the laundromat. Of course a depreciation value could be used for this so that ax = bx should yield a useful conclusion, but that&amp;#8217;d be a bit of a roundabout way.&lt;/p&gt;
&lt;p&gt;I devised the following simple formula: &lt;strong&gt;ax = bx + c&lt;/strong&gt;, where &lt;strong&gt;a&lt;/strong&gt; is the cost of one load at the laundromat, &lt;strong&gt;b&lt;/strong&gt; is the cost of one load in a self-owned washing machine, and &lt;strong&gt;c&lt;/strong&gt; is the price of a washing machine. &lt;strong&gt;x&lt;/strong&gt; is the break even point of the number of washes required to make it worth your while to buy a washing machine as opposed to utilizing a laundromat.&lt;/p&gt;
&lt;pre&gt;3.20x = .42x+480 (-.42x)
2.78x = 480
x=480/2.78=173&lt;/pre&gt;
&lt;p&gt;I haven&amp;#8217;t counted the number of times we&amp;#8217;ve washed, but if we haven&amp;#8217;t surpassed it yet, I bet we&amp;#8217;re quite close. We&amp;#8217;ve had it for nearly two years and we wash slightly more than once a week on average.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/6KzQ6bSFN2w" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2011/08/some-practical-extremely-simple-algebra/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2011/08/some-practical-extremely-simple-algebra/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2011/08/some-practical-extremely-simple-algebra/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Liberty]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/yv9FrioFScc/" />
		<id>http://fransdejonge.com/?p=1790</id>
		<updated>2011-07-09T10:23:53Z</updated>
		<published>2011-07-09T10:15:13Z</published>
		<category scheme="http://fransdejonge.com" term="Thoughts" /><category scheme="http://fransdejonge.com" term="quotation" />		<summary type="html"><![CDATA["What is politics, after all, but the compulsion to preside over property and make other people's decisions for them?"]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2011/07/liberty/">&lt;blockquote&gt;&lt;p&gt;Lost now to family, buddies, girlfriend, rabbit hound, society, and himself, this poor young sailor had fallen—not very many miles from Jerusalem—understanding virtually nothing of the situation in the Middle East. He probably believed it involved a struggle between right and wrong, good and evil, freedom and oppression. That was his second mistake. His third mistake was in trusting that even if he didn&amp;#8217;t understand the situation, his leaders did. His first—and worst—mistake was blindly doing what he was told to do. Without questioning their methods or their motives, he allowed politicians to make the decisions that led to his early demise.&lt;/p&gt;
&lt;p&gt;What is politics, after all, but the compulsion to preside over property and make other people&amp;#8217;s decisions for them? Liberty, the very opposite of ownership and control, cannot, then, result from political action, either at the polls or the barricades, but rather evolves out of attitude. If it results from anything, it may be levity.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;From &lt;cite&gt;Skinny Legs And All&lt;/cite&gt; by Tom Robbins (p.118 of the May 2003 Bantam trade paperback reissue).&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/yv9FrioFScc" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2011/07/liberty/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2011/07/liberty/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2011/07/liberty/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Switching µTorrent from Windows to Linux]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/DH8Mvrz7rwM/" />
		<id>http://fransdejonge.com/?p=1775</id>
		<updated>2011-06-30T13:16:38Z</updated>
		<published>2011-06-30T13:16:38Z</published>
		<category scheme="http://fransdejonge.com" term="Linux" />		<summary type="html"><![CDATA[How to adjust the various µTorrent .dat files to switch over hundreds of torrents with little effort.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2011/06/switching-%c2%b5torrent-from-windows-to-linux/">&lt;p&gt;A while ago, I wrote about using Wine in order to switch completely to Linux &lt;em&gt;a lot quicker&lt;/em&gt; than would be possible if you had to figure out replacements for various pieces of peripheral software. In the case of µTorrent this meant that I could keep on seeding all the torrents I&amp;#8217;ve downloaded over the years and not having to set up my RSS feeds and other preferences once more, but it&amp;#8217;s not all sunshine. Aside from minor bugs in Wine, it simply uses a lot more memory and sometimes CPU. As an unscientific guestimate, it seems about 5 times as memory hungry as on Windows.&lt;/p&gt;
&lt;aside&gt;The rtorrent-dependent rutorrent web interface should offer roughly the same functionality as µTorrent Server if you&amp;#8217;re starting from scratch, which may or may not be preferable if you were starting more or less from scratch, but this is specifically not about that. I have years worth of files, albeit I acknowledge that I can probably safely delete and stop sharing older versions of e.g. Ubuntu and foobar2000.&lt;/aside&gt;
&lt;p&gt; In the not too distant past, fixing this would&amp;#8217;ve required a switch to e.g. qBittorrent, but an alpha version of &lt;a href="http://www.utorrent.com/downloads/linux"&gt;µTorrent Server&lt;/a&gt; is now available for Linux.  It can do everything normal µTorrent can, but not everything is necessarily available through its default WebUI. Luckily an &lt;a href="http://forum.utorrent.com/viewtopic.php?id=58156"&gt;alternative WebUI&lt;/a&gt; is available and I&amp;#8217;d highly recommend it over what comes with the µTorrent Server by default. It enables RSS feeds and filters, among other things. I think it&amp;#8217;s probably no more than a newer version, so perhaps you can ignore this part of this post if you&amp;#8217;re reading this in a few months time.&lt;/p&gt;
&lt;p&gt;One thing that doesn&amp;#8217;t seem to be mentioned in the documentation anywhere is that you can access the WebUI through &lt;a href="http://localhost:8080/gui/"&gt;http://localhost:8080/gui/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Now for switching over the data and configuration files. Luckily µTorrent for Linux uses the same data files, so you can easily copy over rss.dat (feeds configuration) and resume.dat (locations of torrents). Of course that won&amp;#8217;t fix the problem that directory structures are slightly different on the respective platforms, and I don&amp;#8217;t think you can make symbolic links to drive letters except in Wine. That&amp;#8217;s where BEncode Editor comes in, as described in &lt;a href="http://filesharefreak.com/2008/11/02/utorrent-move-all-your-downloaded-files-keep-seeding/"&gt;an article about moving your µTorrent files&lt;/a&gt;. I couldn&amp;#8217;t find a similar utility for Linux, but no matter, it works quite well in — drum roll — Wine. I &lt;a href="http://sites.google.com/site/ultimasites/bencode-editor"&gt;downloaded&lt;/a&gt; version 0.7.1.0, the latest at the time of writing.&lt;/p&gt;
&lt;p&gt;You should read through the guide I linked, but of course some slight adjustments will have to be made. In my case I did some reorganizing of my HDDs after I hadn&amp;#8217;t booted into Windows for a month, but the differences for my torrents weren&amp;#8217;t that big. I replaced &lt;code&gt;D:\downloads\torrents\&lt;/code&gt; globally with &lt;code&gt;/media/downloads/torrents/&lt;/code&gt; as outlined in the text. I repeated similar commands for my &lt;code&gt;E:\&lt;/code&gt; and &lt;code&gt;I:\&lt;/code&gt;, but of course the specifics will be different for everyone. To finish it off you can replace all instances of &lt;code&gt;\&lt;/code&gt; with &lt;code&gt;/&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Something similar can be done for rss.dat, but I had already adjusted all my filters manually in the µTorrent WebUI.&lt;/p&gt;
&lt;p&gt;Assuming you run this command in the directory where you put the µTorrent Server executable, you can run &lt;code&gt;cp /somewhere/uTorrent-for-Windows-folder/*.torrent&lt;/code&gt; to copy over all the relevant *.torrent files.&lt;/p&gt;
&lt;p&gt;There are some slight inconveniences. For example, you can&amp;#8217;t open in folder directly, but you have to navigate there manually or copy the location from the WebUI. However, if you were using Wine you&amp;#8217;d already given up on proper integration regardless. I think it&amp;#8217;s easier to copy the proper Linux path from the WebUI than to mentally line up Wine drives and directories with real ones.&lt;/p&gt;
&lt;p&gt;As one final caveat this method didn&amp;#8217;t seem to remember proper times when downloads finished and instead &amp;#8220;downloaded&amp;#8221; all my torrents at that point in time. I&amp;#8217;m sure that could be avoided somehow (perhaps by copying over settings.dat?) but for my purposes it didn&amp;#8217;t matter. &lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/DH8Mvrz7rwM" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2011/06/switching-%c2%b5torrent-from-windows-to-linux/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2011/06/switching-%c2%b5torrent-from-windows-to-linux/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2011/06/switching-%c2%b5torrent-from-windows-to-linux/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[More Fun with Screen and SSH with Byobu: Automatic Reattaching]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/2X-3isl5hy0/" />
		<id>http://fransdejonge.com/?p=1779</id>
		<updated>2011-05-31T15:36:57Z</updated>
		<published>2011-06-02T17:35:14Z</published>
		<category scheme="http://fransdejonge.com" term="Linux" />		<summary type="html"><![CDATA[Byobu is screen on crack and with some minor modification of .bashrc it can rock your (SSH) world.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2011/06/more-fun-with-screen-and-ssh-with-byobu-automatic-reattaching/">&lt;p&gt;A while ago &lt;a href="/2010/12/18/screen/"&gt;I wrote about screen&lt;/a&gt;, which makes your SSH experience more satisfying. There are some enhancements you can make to screen with &lt;code&gt;.screenrc&lt;/code&gt;, but &lt;a href="https://launchpad.net/byobu"&gt;Byobu&lt;/a&gt; does more by default than I ever could be bothered to figure out. It seems to come pre-installed on Ubuntu, while &lt;code&gt;aptitude install byubo&lt;/code&gt; suffices for Debian.&lt;/p&gt;
&lt;p&gt;I thought it&amp;#8217;d be even better if &lt;a href="http://tlug.dnho.net/node/239"&gt;screen automatically attached itself when logging in through SSH&lt;/a&gt;, and clearly I wasn&amp;#8217;t alone in that thought. I made a slight adjustment to the code I found so that Byobu is utilized when available and otherwise regular screen will load. Screen is often installed by default, unlike Byobu, so that way I won&amp;#8217;t have to install or compile Byobu to reap the benefits of my custom &lt;code&gt;.bashrc&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# From http://tlug.dnho.net/node/239
# "The following code when added to your .bashrc file will, after logging in via ssh, look for any unattached screen sessions and automatically attach to the first one found. If only attached sessions are found then a list of these will be outputted to std out. Finally, If there are no screen sessions running at all then a new screen session will be created."
if [ $SSH_TTY ] &amp;#038;&amp;#038; [ ! $WINDOW ]; then
	SCREENLIST=`screen -ls | grep 'Attached'`
	if [ $? -eq "0" ]; then
		echo -e "Screen is already running and attached:\n ${SCREENLIST}"
	else
		type -P byobu &amp;#038;&gt;/dev/null &amp;#038;&amp;#038; byobu -U -R || screen -U -R
	fi
fi
# Optionally adding the following will alter your prompt to let you easily know which window within a screen session you are currently in.
if [ $TERM = "screen" ]; then
	PS1='window ${WINDOW} '$PS1
fi&lt;/code&gt;&lt;/pre&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/2X-3isl5hy0" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2011/06/more-fun-with-screen-and-ssh-with-byobu-automatic-reattaching/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2011/06/more-fun-with-screen-and-ssh-with-byobu-automatic-reattaching/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2011/06/more-fun-with-screen-and-ssh-with-byobu-automatic-reattaching/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Time Synchronization: NTP]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/Pto-ZwSEkKU/" />
		<id>http://fransdejonge.com/?p=1782</id>
		<updated>2011-05-28T07:46:16Z</updated>
		<published>2011-05-27T08:53:58Z</published>
		<category scheme="http://fransdejonge.com" term="Linux" />		<summary type="html"><![CDATA[Debian doesn't synchronize time with a time server by default. That's very easy to fix.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2011/05/time-synchronization-ntp/">&lt;p&gt;Today I noticed that my computer clock was running fast, meaning that Debian doesn&amp;#8217;t come with some kind of time synchronization enabled by default. Ubuntu doesn&amp;#8217;t exactly either, but &lt;a href="https://help.ubuntu.com/community/UbuntuTime"&gt;setting your location seems to take care of it in Ubuntu&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There&amp;#8217;s really nothing much to tell here. Debian Wiki &lt;a href="http://wiki.debian.org/NTP"&gt;has all the instructions lined up already&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote cite="http://wiki.debian.org/NTP"&gt;
&lt;ul&gt;
&lt;li&gt;Type date to see current date and time
&lt;pre&gt;date&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Install NTP
&lt;pre&gt;aptitude install ntp&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Done.
&lt;li&gt;Type &lt;code&gt;ntpq -p&lt;/code&gt; to see servers you are syncing with.&lt;/li&gt;
&lt;li&gt;Type &lt;code&gt;date&lt;/code&gt; again to see if the time changed. You time should be synced in a next minute.&lt;/li&gt;
&lt;li&gt;Done.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;There&amp;#8217;s nothing more to do, though I often like to take a peek at the configuration files and the man pages — the latter is typically a bit too dense unless you already know what you&amp;#8217;re looking for. In this case, that would mean &lt;code&gt;man ntpd&lt;/code&gt;, &lt;code&gt;man ntp.conf&lt;/code&gt;, and, most important, &lt;code&gt;nano /etc/ntp.conf&lt;/code&gt; (or whatever your favorite text editor is). It doesn&amp;#8217;t look like there&amp;#8217;s anything of particular interest, but you might want to replace some of those default Debian server pools with ones geographically closer to you. The easiest way is to check on &lt;a href="http://www.pool.ntp.org/en/"&gt;www.pool.ntp.org&lt;/a&gt;, but if e.g. your ISP offers such a service it might be a good idea to use it.&lt;/p&gt;
&lt;p&gt;In my case, Belgium didn&amp;#8217;t have too many servers, so I made up my own mix of Belgium, the Netherlands, and Europe.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#server 0.debian.pool.ntp.org iburst
#server 1.debian.pool.ntp.org iburst
#server 2.debian.pool.ntp.org iburst
#server 3.debian.pool.ntp.org iburst

server 0.be.pool.ntp.org
server 1.nl.pool.ntp.org
server 2.nl.pool.ntp.org
server 3.europe.pool.ntp.org&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also see &lt;a href="http://okomestudio.net/biboroku/?p=1582"&gt;how to disable the daemon on battery power&lt;/a&gt;. I don&amp;#8217;t know how much of a difference that would actually make, but as the Dutch idiom goes, all small bits help.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/Pto-ZwSEkKU" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2011/05/time-synchronization-ntp/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2011/05/time-synchronization-ntp/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2011/05/time-synchronization-ntp/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Frans</name>
						<uri>http://fransdejonge.com</uri>
					</author>
		<title type="html"><![CDATA[Unmount Flash Drives &amp; Memory Cards]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/theonewiththethoughtsoffrans/~3/eaNozNTGn1o/" />
		<id>http://fransdejonge.com/?p=1770</id>
		<updated>2011-05-21T11:27:44Z</updated>
		<published>2011-05-21T11:27:44Z</published>
		<category scheme="http://fransdejonge.com" term="Linux" />		<summary type="html"><![CDATA[Perhaps Gnome isn't better than Windows, but Linux sure is.]]></summary>
		<content type="html" xml:base="http://fransdejonge.com/2011/05/unmount-flash-drives-memory-cards/">&lt;p&gt;It seems that Gnome&amp;#8217;s &lt;em&gt;safely remove drive&lt;/em&gt; feature works just like the equivalent in Windows: not at all. It even displays the exact same useless error message, almost word for word: &lt;em&gt;this device cannot be stopped&lt;/em&gt;. Not the slightest hint about why this might be the case.&lt;/p&gt;
&lt;p&gt;Following this scenario, on Windows you&amp;#8217;d pretty much be stuck shutting down your computer to be sure that no data loss will occur (although workarounds like &lt;a href="http://fransdejonge.com/2006/12/17/unlocker/"&gt;Unlocker&lt;/a&gt; exist, or you can use Process Explorer to figure out the culprit manually). Luckily, on Linux the workaround is a lot easier. Use &lt;code&gt;mount&lt;/code&gt; to display information about all currently mounted file systems and &lt;code&gt;umount&lt;/code&gt; to, you guessed it, unmount the file system of your choice. &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ mount
[…]
/dev/sde1 on /media/888E-E0E0 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)
$ umount /dev/sde1&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;PS I just found out that I&amp;#8217;m mistaken, but I already wrote the post and besides, the point that you&amp;#8217;re able to do things like this &lt;em&gt;if you want&lt;/em&gt;, whereas you&amp;#8217;d be stuck in Windows, still stands. It seems that the way Gnome devs envisioned unmounting is not while you&amp;#8217;re viewing it in Nautilus by right-clicking, but by right-clicking on the icon on the desktop.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/theonewiththethoughtsoffrans/~4/eaNozNTGn1o" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://fransdejonge.com/2011/05/unmount-flash-drives-memory-cards/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://fransdejonge.com/2011/05/unmount-flash-drives-memory-cards/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://fransdejonge.com/2011/05/unmount-flash-drives-memory-cards/</feedburner:origLink></entry>
	</feed><!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->

