<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Christians Blog</title>
	<atom:link href="http://doktormadsen.dk/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://doktormadsen.dk/wp</link>
	<description>Stuff about stuff</description>
	<lastBuildDate>Fri, 20 Jan 2012 17:28:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Unicode table in EMACS</title>
		<link>http://doktormadsen.dk/wp/2012/01/unicode-table-in-emacs/</link>
		<comments>http://doktormadsen.dk/wp/2012/01/unicode-table-in-emacs/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 19:58:27 +0000</pubDate>
		<dc:creator>chr_madsen</dc:creator>
				<category><![CDATA[elisp]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://doktormadsen.dk/wp/?p=65</guid>
		<description><![CDATA[Motivation Often when writing, I need to insert the degrees sign &#8211; for instance 25.3°C. Since it is not on my keyboard, I used to look it up on wikipedia. Later I found some elisp code for dumping an ASCII table, but I still used valuable seconds looking for the sign. This made me discover [...]]]></description>
			<content:encoded><![CDATA[<h1>Motivation</h1>
<p>Often when writing, I need to insert the degrees sign &#8211; for instance 25.3°C. Since it is not on my keyboard, I used to look it up on wikipedia.</p>
<p>Later I found some elisp code for dumping an ASCII table, but I still used valuable seconds looking for the sign. This made me discover the <code class="codecolorer lisp default"><span class="lisp">get-char-code-property</span></code> function which adds a description. Now I could just do an I-search for &#8220;deg&#8221; and I would get to my invaluable degree-sign character.</p>
<p>But now I wanted the whole thing: the entire unicode table&#8230;</p>
<h1>To the Point</h1>
<div class="codecolorer-container lisp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="lisp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">;; show Unicode table</span><br />
<span style="color: #808080; font-style: italic;">;; inspired by http://www.chrislott.org/geek/emacs/dotemacs.html</span><br />
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> unicode-table <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; <span style="color: #ff0000;">&quot;Print the utf16 table. Based on a defun by Alex Schroeder &lt;asc@bsiag.com&gt;&quot;</span><br />
&nbsp; <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span><br />
&nbsp; <span style="color: #66cc66;">&#40;</span>switch-to-buffer <span style="color: #ff0000;">&quot;*Unicode Table*&quot;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; <span style="color: #66cc66;">&#40;</span>erase-buffer<span style="color: #66cc66;">&#41;</span><br />
&nbsp; <span style="color: #66cc66;">&#40;</span>insert <span style="color: #66cc66;">&#40;</span>format <span style="color: #ff0000;">&quot;Unicode characters:<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
<br />
&nbsp; <span style="color: #808080; font-style: italic;">;; Generate list of all unicode code points</span><br />
&nbsp; <span style="color: #808080; font-style: italic;">;; See http://en.wikipedia.org/wiki/Unicode_plane#Overview</span><br />
&nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> code-points <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">append</span> <span style="color: #66cc66;">&#40;</span>number-sequence &nbsp;?\x0000 &nbsp;?\xffff<span style="color: #66cc66;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span>number-sequence ?\x10000 ?\x1ffff<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span>number-sequence ?\x20000 ?\x2ffff<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span>number-sequence ?\xe0000 ?\xeffff<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
<br />
&nbsp; <span style="color: #808080; font-style: italic;">;; Iterate code points</span><br />
&nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">dolist</span> <span style="color: #66cc66;">&#40;</span>code-point code-points<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">;; Get description from emacs internals</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">let</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>description <span style="color: #66cc66;">&#40;</span>get-char-code-property code-point<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'<span style="color: #b1b100;">name</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">;; Insert code-point, character and description</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span>insert <span style="color: #66cc66;">&#40;</span>format <span style="color: #ff0000;">&quot;%4d 0x%02X %c %s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; code-point <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; code-point <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; code-point <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; <span style="color: #808080; font-style: italic;">;; Jump to beginning of buffer</span><br />
&nbsp; <span style="color: #66cc66;">&#40;</span>beginning-of-buffer<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></div>
<p>Calling this function with M-x unicode-table reveals</p>
<pre>Unicode characters:
 0 0x00 ^@ &lt;control&gt;
 1 0x01  &lt;control&gt;
 2 0x02  &lt;control&gt;
 3 0x03  &lt;control&gt;
 4 0x04  &lt;control&gt;
 5 0x05  &lt;control&gt;
 6 0x06  &lt;control&gt;
 7 0x07  &lt;control&gt;
 8 0x08  &lt;control&gt;
 9 0x09 &lt;control&gt;
 10 0x0A
 &lt;control&gt;
 11 0x0B  &lt;control&gt;
 12 0x0C  &lt;control&gt;</pre>
<p>&#8230;</p>
<p>I hope that this is useful. If you like it, feel free to leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://doktormadsen.dk/wp/2012/01/unicode-table-in-emacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linkstation on Linux</title>
		<link>http://doktormadsen.dk/wp/2010/06/linkstation-on-linux/</link>
		<comments>http://doktormadsen.dk/wp/2010/06/linkstation-on-linux/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 11:28:36 +0000</pubDate>
		<dc:creator>chr_madsen</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Home Network]]></category>

		<guid isPermaLink="false">http://doktormadsen.dk/wp/?p=48</guid>
		<description><![CDATA[A brief mini-HOWTO on how to mount Buffalo Linkstation on Ubuntu Linux.]]></description>
			<content:encoded><![CDATA[<p>I got myself a Buffalo Linkstation (NAS) and got some Linux experiences with it the tough way. Especially I&#8217;ve had my share of learning, man&#8217;ing when trying to mount this beast. So I hope that sharing this will help somebody getting an easy experience.</p>
<p><em>This is based on a live Ubuntu 10.04. Linux is not officially supported by Buffalo and what you do is on your own risk.<br />
</em></p>
<h2>Prerequisites</h2>
<p>To be able to mount, you need the smbfs package as it contains mount.cifs:<br />
<span style="background-color: #ff99cc"></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get install smbfs</div></div>
<p></span></p>
<h2>Mounting Linkstation</h2>
<p>We need to ensure that some important things are in place when mounting</p>
<p><span style="background-color: #ffff00"><strong>The IP address is 192.168.1.36 and the shared directory is &#8220;share&#8221;</strong></span></p>
<p>First argument is</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">//192.168.1.36/share</div></div>
<p>. Remember the leading double slash or it will fail.</p>
<p><strong><span style="background-color: #ffff00">We would like to mount at /media/linkstation</span></strong><br />
Second argument is</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/media/linkstation</div></div>
<p>. Remember to create the directory.</p>
<p><strong><span style="background-color: #ffff00">The charset must be correct. Otherwise, &#8220;Røde Mor&#8221; becomes &#8220;R├╕de Mor&#8221;</span></strong><br />
use options</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">iocharset=utf8,codepage=cp437</div></div>
<p>. Don&#8217;t ask me why, but I guess that it has something to do with the codepage that Windows uses</p>
<p><span style="background-color: #ffff00"><strong>The user/group must match be &#8220;ubuntu&#8221; (default is root)</strong></span><br />
use options</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">uid=999,gid=999</div></div>
<p>. &#8220;999&#8243; is looked up in</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/etc/passwd</div></div>
<p>.</p>
<p><strong><span style="background-color: #ffff00">Linkstation shall use the guest account and avoid password</span></strong><br />
option</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">guest</div></div>
<p>now, the full command line becomes</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;span style=&quot;background-color: #ff99cc&quot;&gt;sudo mount.cifs //192.168.1.36/share /media/linkstation -oguest,uid=999,gid=999,iocharset=utf8,codepage=cp437&lt;/span&gt;</div></div>
<p>Remember the -o or the options will be silently ignored :pinch:</p>
<p>Now, the Linkstation is nicely mounted and the file names are encoded correctly. To unmount, simply type</p>
<p><span style="background-color: #ff99cc"></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo unmount /media/linkstation</div></div>
<p></span></p>
<p><em>Happy Linkstation&#8217;ing!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://doktormadsen.dk/wp/2010/06/linkstation-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tykke Amerikanske Pandekager</title>
		<link>http://doktormadsen.dk/wp/2009/12/tykke-amerikanske-pandekager/</link>
		<comments>http://doktormadsen.dk/wp/2009/12/tykke-amerikanske-pandekager/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 21:00:30 +0000</pubDate>
		<dc:creator>chr_madsen</dc:creator>
				<category><![CDATA[Opskrifter]]></category>
		<category><![CDATA[Dansk]]></category>

		<guid isPermaLink="false">http://doktormadsen.dk/wp/?p=28</guid>
		<description><![CDATA[Der er intet så lækkert som tykke amerikanske pandekager. De er gode både til morgenmad og som dessert. Her er min opskrift som har lykkedes to gange indtil videre og vil blive brugt mange gange i fremtiden. Ingredienser (2 portioner) 2-4 æg 1 kop kærnemælk 2 spsk olie 1 kop hvedemel 1 spsk sukker ½ [...]]]></description>
			<content:encoded><![CDATA[<p>Der er intet så lækkert som tykke amerikanske pandekager. De er gode både til morgenmad og som dessert. Her er min opskrift som har lykkedes to gange indtil videre og vil blive brugt mange gange i fremtiden.</p>
<h2>Ingredienser</h2>
<p>(2 portioner)</p>
<p>2-4 æg</p>
<p>1 kop kærnemælk</p>
<p>2 spsk olie</p>
<p>1 kop hvedemel</p>
<p>1 spsk sukker</p>
<p>½ tsk salt</p>
<p>1½ tsk bagepulver</p>
<p>½-1 tsk kardemomme</p>
<h2>Fremgangsmåde</h2>
<p>De tørre ingredienser sigtes sammen. Æg, olie og kærnemælk blandes med håndmixer eller piskeris og resten tilsættes lidt efter lidt.</p>
<p>Bages på panden i den størrelse man foretrækker.</p>
<p>Det bliver ikke mere simpelt.</p>
<h2>Variationer</h2>
<p>Revede æbler, chokoladestykker eller guldkorn. Kun fantasien sætter grænser.</p>
<p>På denne side: <a title="Mr Breakfast" href="http://mrbreakfast.com/recipe_collection.asp?subcategoryid=4" target="_blank">http://mrbreakfast.com/recipe_collection.asp?subcategoryid=4</a>, flyder det med spændende pandekagevariationer bla. 7-up, kokos, bær og frugter, vegetar/veganer som jeg skal have prøvet de næste par måneder.</p>
]]></content:encoded>
			<wfw:commentRss>http://doktormadsen.dk/wp/2009/12/tykke-amerikanske-pandekager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subwoofer Project</title>
		<link>http://doktormadsen.dk/wp/2009/10/subwoofer-ideas/</link>
		<comments>http://doktormadsen.dk/wp/2009/10/subwoofer-ideas/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 20:29:30 +0000</pubDate>
		<dc:creator>chr_madsen</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[Felicia]]></category>
		<category><![CDATA[Subwoofer]]></category>
		<category><![CDATA[Subwoofer Amplifier]]></category>

		<guid isPermaLink="false">http://doktormadsen.dk/wp/2009/10/12/</guid>
		<description><![CDATA[This post will be updated as I decide on the different aspects. I&#8217;ve decided to build a subwoofer + amp for my old, rusty, trustworthy Felicia. This is how my brainstorm has ended up so far: TDA1562 based amp Like http://www.stardi.com/diy-12-volt-chip-amp-70-watts-car-power-amplifier/ Requires ~12V and provides 70W music power into 4Ω. I considered building a class [...]]]></description>
			<content:encoded><![CDATA[<p><em>This post will be updated as I decide on the different aspects.</em></p>
<p>I&#8217;ve decided to build a subwoofer + amp for my old, rusty, trustworthy Felicia. This is how my brainstorm has ended up so far:</p>
<p><strong>TDA1562 based amp</strong></p>
<p>Like <a href="http://www.stardi.com/diy-12-volt-chip-amp-70-watts-car-power-amplifier/">http://www.stardi.com/diy-12-volt-chip-amp-70-watts-car-power-amplifier/</a></p>
<p>Requires ~12V and provides 70W music power into 4Ω.</p>
<p>I considered building a class D amplifier, but learned that class D requires a switch mode power supply in order to provide mentionable power. During my research, I continously stumbled upon Phillips TDA1562 which operates as a combination of class-AB and class-H depending on temperature, allowing it to deliver up to 70W depending on supply voltage and die temperature.</p>
<p>The basic TDA1562 setup requires only a small number of passives: some capacitors for the power supply, two giant capacitors for the class-H operation and a couple of other passives.</p>
<h2>Speaker Unit(s)</h2>
<p>To be decided.</p>
<p>Should look mean, but sound good and be not-too-pricey.</p>
<h2>Speaker Box</h2>
<div><strong>Should be covered with.</strong></div>
<div>
<ul>
<li>Tweed and round headed nails + alu/metal dashboard (a&#8217;la 60&#8242;s guitar amp)</li>
<li>Cotton filling + fake leather + sofa buttons</li>
<li>Fake fur</li>
<li>Tartan</li>
<li>Hessian</li>
<li>Fake leopard</li>
<li>Latex</li>
<li>Varnish</li>
<li>Lace or cutwork</li>
<li>Wood laminate</li>
</ul>
</div>
<p><strong>Decoration/status LEDs (under cloth?)</strong></p>
<div>
<ul>
<li>Skull</li>
<li>Smiley</li>
<li>VU</li>
<li>Status/Clip</li>
<li>Foot tapping guy</li>
</ul>
<div><strong>Dimensions</strong></div>
<div>To be decided &#8211; depends on speaker</div>
<div><strong>Size</strong></div>
<div>To be decided- depends on speaker</div>
</div>
<p><strong>Shape/type</strong></p>
<p>To be decided- depends on speaker</p>
]]></content:encoded>
			<wfw:commentRss>http://doktormadsen.dk/wp/2009/10/subwoofer-ideas/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

