<?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>twam.info &#187; Software</title>
	<atom:link href="http://www.twam.info/category/software/feed" rel="self" type="application/rss+xml" />
	<link>http://www.twam.info</link>
	<description>My computer, physics, electronics &#38; photography blog</description>
	<lastBuildDate>Wed, 25 Jan 2012 20:49:27 +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>Tune Terminal in OS X Lion</title>
		<link>http://www.twam.info/software/tune-terminal-in-os-x-lion</link>
		<comments>http://www.twam.info/software/tune-terminal-in-os-x-lion#comments</comments>
		<pubDate>Tue, 02 Aug 2011 20:05:00 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=2003</guid>
		<description><![CDATA[If your are using terminals on other operatings systems than OS X on a daily basis, you might have noticed that the Terminal App behaves a little bit different in some aspects. When I installed my iMac a year ago I needed some time to adopt everything to my needs. Yesterday, I received my new [...]]]></description>
			<content:encoded><![CDATA[<p>If your are using terminals on other operatings systems than OS X on a daily basis, you might have noticed that the Terminal App behaves a little bit different in some aspects. When I installed my <a href="http://www.apple.com/imac/">iMac</a> a year ago I needed some time to adopt everything to my needs. Yesterday, I received my new <a href="http://www.apple.com/macbookair/">MacBook Air</a> running <a href="http://www.apple.com/osx/lion">OS X Lion</a> and when I tried to get everything like on my iMac I found some things which changed in Lion. So I decided to write a small post about my Terminal tweaks.<span id="more-2003"></span></p>
<h3>Colors</h3>
<p><div id="attachment_2013" class="wp-caption alignright" style="width: 160px"><a href="http://www.twam.info/wp-content/uploads/2011/08/text.png"><img src="http://www.twam.info/wp-content/uploads/2011/08/text-150x135.png" alt="Text Panel" title="Text Panel" width="150" height="135" class="size-thumbnail wp-image-2013" /></a><p class="wp-caption-text">Text Panel</p></div> Black or White? Everybody has another opinion in which colors the terminal should appear. I&#8217;m used to the white font on black background version. To adjust this, select Preferences in Terminal menu (or press <span class="key">⌘</span> + <span class="key">,</span>). Go to the Settings tab and select the Basic profile in the left column. There are five panels in the right panel. In the Text panel set the Text and Bold Text to white and in the Window tab select a black background color. I recommend setting a transparency of about 90% for easy distinction of different overlapping terminal windows as they have no border as in other operating systems.</p>
<h3>Close Terminal when shell exits</h3>
<p><div id="attachment_2014" class="wp-caption alignright" style="width: 160px"><a href="http://www.twam.info/wp-content/uploads/2011/08/shell.png"><img src="http://www.twam.info/wp-content/uploads/2011/08/shell-150x135.png" alt="Shell panel" title="Shell panel" width="150" height="135" class="size-thumbnail wp-image-2014" /></a><p class="wp-caption-text">Shell panel</p></div> When type &#8220;exit&#8221; or &#8220;logout&#8221; or press <span class="key">ctrl</span> + <span class="key">D</span> to send <a href="http://en.wikipedia.org/wiki/End-of-file">EOF</a> to your <a href="http://en.wikipedia.org/wiki/Shell_(computing)">shell</a> the shell terminates. On Linux xterm or other Terminals programs close the active window when this happens but the Terminal App window stays open with a &#8220;[Process completed]&#8221; message. This is very annoying as you have to close the terminal by hand or pressing <span class="key">⌘</span> + <span class="key">W</span>. If you want the Terminal App to close the window when the shell exits, go to the Shell panel in the Preferences dialog (see Colors section how to get there) and set &#8220;When the shell exits:&#8221; to &#8220;Close if the shell exited cleanly&#8221;.</p>
<h3>Behavior of Page Up/Down, Home &#038; End</h3>
<p><div id="attachment_2015" class="wp-caption alignright" style="width: 160px"><a href="http://www.twam.info/wp-content/uploads/2011/08/keyboard.png"><img src="http://www.twam.info/wp-content/uploads/2011/08/keyboard-150x135.png" alt="Keyboard Panel" title="Keyboard Panel" width="150" height="135" class="size-thumbnail wp-image-2015" /></a><p class="wp-caption-text">Keyboard Panel</p></div> On Linux systems you can scroll the terminal window by Shift Page Up and Shift Page Down and navigate within the current command line with Home and End. The terminal mixes this up. To get the same behavior as on Linux<br />
you need to set</p>
<table>
<tr>
<th>Key</th>
<th>Action</th>
</tr>
<tr>
<td>control cursor left</td>
<td>\033[1~</td>
</tr>
<tr>
<td>control cursor right</td>
<td>\033[4~</td>
</tr>
<tr>
<td>end</td>
<td>\033[4~</td>
</tr>
<tr>
<td>home</td>
<td>\033[1~</td>
</tr>
<tr>
<td>page down</td>
<td>\033[6~</td>
</tr>
<tr>
<td>page up</td>
<td>\033[5~</td>
</tr>
<tr>
<td>shift page down</td>
<td>scroll to next page in buffer</td>
</tr>
<tr>
<td>shift page up</td>
<td>scroll to previous page in buffer</td>
</tr>
</table>
<p>in the Keyboard pane of the Preferences window. In addition this also set Ctrl Left and Ctrl Right to Home and End within the Terminal App as used in many other OS X applications. To get the \033 in the Action windows press <span class="key">esc</span>. The <a href="http://www.gnu.org/s/bash/">bash</a> shell understands most of this commands without extra configuration but to get e.g. the history search to work you should create an .inputrc file in your home directory with the following content:</p>
<pre>
# do not bell on tab-completion
set bell-style none
# enable 8bit input
set input-meta on
# disable stripping of 8bit characters
set convert-meta off
# enable 8bit output
set output-meta on
# show multiple possibilities on tab completion
set show-all-if-ambiguous on
# set file completion case-insensitive
set completion-ignore-case on
# completes names which are symbolic links to directories with slash appended
set mark-symlinked-directories on

"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
"\e[5C": forward-word
"\e[5D": backward-word
</pre>
<p>Besides of configure the correct key assignments this also sets some comfort features and 8bit support of the bash. Feel free to adopt it to your needs. You can find more information on the <a href="http://www.gnu.org/software/bash/manual/html_node/Readline-Init-File-Syntax.html">official manual page</a>.</p>
<h3>UTF8 support for remote SSH connections</h3>
<p>When you connect to other machines via the OS X ssh client you might notice that on some of them the UTF-8 support is broken. This is because OS X Lion enables the transmission of the LC_* environment settings by default. As some systems<br />
don't know the "UTF-8" <a href="http://www.gnu.org/s/hello/manual/libc/Locale-Categories.html">LC_CTYPE locale</a> some problems may occur. To avoid this edit the /etc/ssh_config file (Don't forget to sudo) and comment the line</p>
<pre>
   SendEnv LANG LC_*
</pre>
<p>by adding an #.</p>
<h3>Colored bash &#038; Terminal Window Title</h3>
<p>The standard OS X bash is black and white. To get a colored one I adopted my .profile from my <a href="http://www.gentoo.org/">Gentoo</a> system. Just create a .profile file in your home-directory with the following content</p>
<pre>
#!/bin/bash

# Change the window title of X terminals
case ${TERM} in
        xterm*|rxvt*|Eterm|aterm|kterm|gnome*|interix)
                PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007&#8243;&#8216;
                use_color=true
                ;;
        screen)
                PROMPT_COMMAND=&#8217;echo -ne &#8220;\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\&#8221;&#8216;
                use_color=true
                ;;
esac

if ${use_color} ; then
        # set color prompt
        if [[ ${EUID} == 0 ]] ; then
                PS1=&#8217;\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] &#8216;
        else
                PS1=&#8217;\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] &#8216;
        fi

        # enable ls colors
        alias ls=&#8217;ls -G&#8217;
        # enable grep color
        alias grep=&#8217;grep &#8211;colour=auto&#8217;
else
        if [[ ${EUID} == 0 ]] ; then
                # show root@ when we don&#8217;t have colors
                PS1=&#8217;\u@\h \W \$ &#8216;
        else
                PS1=&#8217;\u@\h \w \$ &#8216;
        fi
fi

# Try to keep environment pollution down
unset use_color
</pre>
<p>This sets a colored bash prompt and creates alias for ls and grep to use the colored version. Also the window title of the Terminal App is updated after each command with the current username and path.</p>
<h3>bash History</h3>
<p>When you're already editing your .profile file you could also add</p>
<pre>
# improve bash history
shopt -s histappend
PROMPT_COMMAND=$PROMPT_COMMAND';history -a'
# Store 10000 commands in bash history
export HISTFILESIZE=10000
export HISTSIZE=10000
# Don't put duplicate lines in the history
export HISTCONTROL=ignoredups
</pre>
<p>to the end of the file to increase the size of the bash History a little bit. <img src='http://www.twam.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>WordPress seems to change some of the quotes in the text to pretty quotes. To avoid problems you can download my complete <a href="http://www.twam.info/wp-content/uploads/2011/08/.profile">.profile File</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/software/tune-terminal-in-os-x-lion/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Read out Canon EOS 7D shutter count on OS X</title>
		<link>http://www.twam.info/software/read-out-canon-eos-7d-shuttercount-on-os-x</link>
		<comments>http://www.twam.info/software/read-out-canon-eos-7d-shuttercount-on-os-x#comments</comments>
		<pubDate>Sun, 06 Feb 2011 17:39:32 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Canon]]></category>
		<category><![CDATA[EOS 7D]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=1781</guid>
		<description><![CDATA[If you own a Digital single-lens reflex (DSLR) camera you might want to read out the shutter count. For my Canon EOS 7D this can be done very easily using gPhoto2. gPhoto2 is a free open-source tool which supports more than 1300 cameras. As it is written for Unix-like systems it can be compiled for [...]]]></description>
			<content:encoded><![CDATA[<p>If you own a <em>Digital single-lens reflex</em> (DSLR) camera you might want to read out the shutter count. For my Canon EOS 7D this can be done very easily using <a href="http://www.gphoto.org/">gPhoto2</a>. gPhoto2 is a free open-source tool which supports more than 1300 cameras. As it is written for Unix-like systems it can be compiled for OS X very easily. If you have <a href="http://mxcl.github.com/homebrew/">Homebrew</a> installed, you can install it easily via the terminal by running</p>
<pre>brew install gphoto2</pre>
<p>Homebrew will install some libraries and gphoto2. Now we can switch on the camera and connect it by USB. <span id="more-1781"></span>If we ask gPhoto2 to query all support config options by</p>
<pre>gphoto2 --list-config</pre>
<p>we might receive an error like</p>
<pre>An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (m). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
*** Error (-53: 'Could not claim the USB device') ***</pre>
<p>This is because OS X starts the <a href="http://en.wikipedia.org/wiki/Picture_Transfer_Protocol">Picture-Transfer-Protocol</a> daemon which occupies the device. We can quit the daemon by</p>
<pre>killall PTPCamera</pre>
<p>If we now try again to readout the support config options by</p>
<pre>gphoto2 --list-config</pre>
<p>we should receive a list like</p>
<pre>/main/actions/bulb
/main/actions/uilock
/main/actions/syncdatetime
/main/actions/autofocusdrive
/main/actions/manualfocusdrive
/main/actions/eoszoom
/main/actions/eoszoomposition
/main/actions/eosviewfinder
/main/settings/datetime
/main/settings/reviewtime
/main/settings/output
/main/settings/evfmode
/main/settings/ownername
/main/settings/artist
/main/settings/copyright
/main/settings/capturetarget
/main/settings/capture
/main/status/model
/main/status/ptpversion
/main/status/batterylevel
/main/status/lensname
/main/status/serialnumber
/main/status/shuttercounter
/main/status/availableshots
/main/imgsettings/imageformat
/main/imgsettings/imageformatcf
/main/imgsettings/imageformatexthd
/main/imgsettings/iso
/main/imgsettings/whitebalance
/main/imgsettings/whitebalanceadjusta
/main/imgsettings/whitebalanceadjustb
/main/imgsettings/whitebalancexa
/main/imgsettings/whitebalancexb
/main/capturesettings/exposurecompensation
/main/capturesettings/autoexposuremode
/main/capturesettings/drivemode
/main/capturesettings/picturestyle
/main/capturesettings/shutterspeed
/main/capturesettings/meteringmode
/main/capturesettings/bracketmode
/main/capturesettings/aeb
/main/other/d402
/main/other/d407
/main/other/d406
/main/other/d303</pre>
<p>Now, we can read out one of these config options, e.g. the shutter count, by running</p>
<pre>gphoto2 --get-config /main/status/shuttercounter</pre>
<p>which results in</p>
<pre>Label: Shutter Counter
Type: TEXT
Current: 4930</pre>
<p>The 4930 fits perfectly to the number of pictures I made with my Canon EOS 7D.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/software/read-out-canon-eos-7d-shuttercount-on-os-x/feed</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
		<item>
		<title>Git on twam.info</title>
		<link>http://www.twam.info/software/git-on-twam-info</link>
		<comments>http://www.twam.info/software/git-on-twam-info#comments</comments>
		<pubDate>Thu, 11 Jun 2009 19:54:36 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=537</guid>
		<description><![CDATA[Git is a fast version control system used for several open source projects. It was originally written for the linux kernel by Linus Torvalds. I installed a git server on git.twam.info to provide access to my open-source projects. There is a nice talk from Linus Torvalds about git on youtube which explains the idea of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.git-scm.com/"><a href="http://www.twam.info/wp-content/uploads/2009/06/git.png"><img class="alignright size-full wp-image-544" title="git logo" src="http://www.twam.info/wp-content/uploads/2009/06/git.png" alt="git logo" width="100" height="37" /></a>Git</a> is a fast version control system used for several open source projects. It was originally written for the <a href="http://www.kernel.org/">linux kernel</a> by <a href="http://en.wikipedia.org/wiki/Linus_Torvalds">Linus Torvalds</a>. I installed a git server on <a href="http://git.twam.info">git.twam.info</a> to provide access to my open-source projects.<span id="more-537"></span></p>
<p>There is a nice talk from Linus Torvalds about git on <a href="http://www.youtube.com/watch?v=4XpnKHJAok8">youtube</a> which explains the idea of git and differences to popular version control systems like CVS or subversion.</p>
<div style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/4XpnKHJAok8&amp;hl=de&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/4XpnKHJAok8&amp;hl=de&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<p>Update (2009-08-10): A few days ago, I moved my projects to <a href="http://github.com/twam">github</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/software/git-on-twam-info/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>v4l2grab Version 0.2</title>
		<link>http://www.twam.info/linux/v4l2grab-version-02</link>
		<comments>http://www.twam.info/linux/v4l2grab-version-02#comments</comments>
		<pubDate>Tue, 09 Jun 2009 17:33:28 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[twam.info]]></category>
		<category><![CDATA[V4L2]]></category>
		<category><![CDATA[WebCam]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=520</guid>
		<description><![CDATA[A few weeks ago, I published my v4l2grab program to grab JPEGs from V4l2 devices. Today I got an request by email to include support for integer conversion from YUV422 to RGB as descriped by Wikipedia. So I included it and did some style adjustments, too. You can download it here: v4l2grab Version 0.2 To use [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago, I published my <a href="http://www.twam.info/linux/v4l2grab-grabbing-jpegs-from-v4l2-devices">v4l2grab</a> program to grab JPEGs from V4l2 devices.</p>
<p>Today I got an request by email to include support for integer conversion from YUV422 to RGB as descriped by <a href="http://en.wikipedia.org/wiki/YUV#Converting_from_Y.27UV_to_RGB">Wikipedia</a>. So I included it and did some style adjustments, too.</p>
<p>You can download it here: <a href="http://www.twam.info/wp-content/uploads/2009/06/v4l2grab.c">v4l2grab Version 0.2<span id="more-520"></span></a></p>
<p>To use integer conversion you have to compile with an additional</p>
<pre>-DNTSC</pre>
<p>for NTSC like conversion or</p>
<pre>-DITU_R_INT</pre>
<p>for ITU-R integer conversion. Both standars are explained in the referenced wikipedia article. The use of</p>
<pre>-DITU_R_FLOAT</pre>
<p>uses the previous floating point version of ITU-R which is default if no compiling options are specified. More information about compilation can be found on the <a href="http://www.twam.info/linux/v4l2grab-grabbing-jpegs-from-v4l2-devices">original post</a>.</p>
<p><strong>The current version of V4L2grab can be found on <a href="http://github.com/twam/v4l2grab/tree/master">github</a>.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/linux/v4l2grab-version-02/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>v4l2grab &#8211; Grabbing JPEGs from V4L2 devices</title>
		<link>http://www.twam.info/linux/v4l2grab-grabbing-jpegs-from-v4l2-devices</link>
		<comments>http://www.twam.info/linux/v4l2grab-grabbing-jpegs-from-v4l2-devices#comments</comments>
		<pubDate>Thu, 23 Apr 2009 13:01:51 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[V4L2]]></category>
		<category><![CDATA[WebCam]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=276</guid>
		<description><![CDATA[A friend of mine, wanted to use a standard USB WebCam as an IPCam. He used an old Media-Receiver Box (T-Online S100) and installed Gentoo Linux on an CF Card. Since Kernel 2.6.27 most of the USB webcams are supported through the Linux UVC drivers, which provides an Video4Linux2 Interface to those cams. We found [...]]]></description>
			<content:encoded><![CDATA[<p>A friend of mine, wanted to use a standard USB WebCam as an IPCam. He used an old Media-Receiver Box (<a href="http://wiki.freifunk-hannover.de/T-Online_S_100">T-Online S100</a>) and installed Gentoo Linux on an CF Card.</p>
<p>Since Kernel 2.6.27 most of the USB webcams are supported through the Linux UVC drivers, which provides an Video4Linux2 Interface to those cams. We found some programs who claimed being able to grab JPEG images from V4L2 Cams, but most of them either didn&#8217;t compile, supported only V4L Version 1 or just brought up some other errors.</p>
<p>So I checked up the <a href="http://v4l2spec.bytesex.org/spec/">Video for Linux Two API Specification</a> and found there in Appendix B a small sample of howto communicate with the Cam. I adapted it to our needs and included an converter from <a href="http://en.wikipedia.org/wiki/YUV">YUV</a> colorspace to <a href="http://en.wikipedia.org/wiki/RGB">RGB</a>. Finally I added some code to support the export of JPEG images.<span id="more-276"></span></p>
<p>You can download it here: <a href="http://www.twam.info/wp-content/uploads/2009/04/v4l2grab.c">v4l2grab Version 0.1</a></p>
<p>The whole program is written in C and only needs <a href="http://www.ijg.org/">libjpeg</a> to compile. There are different ways to communicate with the camera, if you want to support all, you should go best with:</p>
<pre>gcc v4l2grab.c -o v4l2grab -Wall -ljpeg -DIO_READ -DIO_MMAP -DIO_USERPTR</pre>
<p>If you compiled the program, you can get some images with:</p>
<pre>./v4l2grab -o image.jpg</pre>
<p>With -W width -H height its possible to adjust the size of the image. If the camera doesn&#8217;t support the resolution the programs adjusts it automatically and prints an information on stderr.</p>
<p><strong>The current version of V4L2grab can be found on <a href="http://github.com/twam/v4l2grab/tree/master">github</a>.</strong> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/linux/v4l2grab-grabbing-jpegs-from-v4l2-devices/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>wget and IPv6</title>
		<link>http://www.twam.info/software/wget-and-ipv6</link>
		<comments>http://www.twam.info/software/wget-and-ipv6#comments</comments>
		<pubDate>Sat, 04 Apr 2009 22:34:10 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Network/Web]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Portage]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=226</guid>
		<description><![CDATA[wget is THE standard Linux tool to download files via http(s) or ftp on console and of course Gentoo&#8217;s emerge is using wget as well. But wget prefers IPv4 over IPv6, meaning if your download mirror supports IPv6, wget doesn&#8217;t use it by default. You can change this behavior by setting prefer-family = IPv6 either [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.gnu.org/software/wget/">wget</a> is THE standard Linux tool to download files via http(s) or ftp on console and of course Gentoo&#8217;s emerge is using wget as well.</p>
<p>But wget prefers IPv4 over IPv6, meaning if your download mirror supports IPv6, wget doesn&#8217;t use it by default. You can change this behavior by setting</p>
<pre>prefer-family = IPv6</pre>
<p>either in /etc/wgetrc for everybody or in $HOME/.wgetrc for a user only. </p>
<p>So enable it and tell portage to use an IPv6 enabled mirror, by setting GENTOO_MIRROR in /etc/make.conf. You&#8217;ll find a list of IPv6 capable mirrors on <a href="http://www.gentoo.org/main/en/mirrors2.xml">gentoo.org</a> (look for mirrors marked with *).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/software/wget-and-ipv6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mkcopyrightimg Script</title>
		<link>http://www.twam.info/software/mkcopyrightimg-script</link>
		<comments>http://www.twam.info/software/mkcopyrightimg-script#comments</comments>
		<pubDate>Fri, 03 Apr 2009 12:44:02 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Copyright]]></category>
		<category><![CDATA[LaTex]]></category>
		<category><![CDATA[PostScript]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=187</guid>
		<description><![CDATA[Wenn man Protokolle, Mitschriebe, Skripte oder ähnliches im Internet veröffentlich will, muss man aufpassen, dass man nicht Copyright geschützes Material verwendet hat. In Versuchsprotokollen kommen aber zum Beispiel immer wieder Abbildungen aus Lehrbüchern vor. Um meine Protokolle trotzdem veröffentlich zu können habe ich mir ein kleines Bash-Script geschrieben, welches eine Platzhaltergrafik im PostScript Format erzeugt, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.twam.info/wp-content/uploads/2009/04/mkcopyrightimg.png"><img class="alignright size-full wp-image-188" title="mkcopyrightimg Script Output" src="http://www.twam.info/wp-content/uploads/2009/04/mkcopyrightimg.png" alt="mkcopyrightimg Script Output" width="300" height="200" /></a>Wenn man Protokolle, Mitschriebe, Skripte oder ähnliches im Internet veröffentlich will, muss man aufpassen, dass man nicht Copyright geschützes Material verwendet hat. In Versuchsprotokollen kommen aber zum Beispiel immer wieder Abbildungen aus Lehrbüchern vor.</p>
<p>Um meine Protokolle trotzdem veröffentlich zu können habe ich mir ein kleines Bash-Script geschrieben, welches eine Platzhaltergrafik im PostScript Format erzeugt, die sich dann leicht in LaTex oder PdfTex (via epstopdf) einbinden läßt. Rechts ist eine Beispielausgabe zu sehen, welche ich mit</p>
<pre>mkcopyrightimg 300 200 20 "Removed due to copyright" "http://www.twam.info"</pre>
<p>erzeugt habe. Es gilt zu beachten das die 3 Größenangaben in der Einheit Punkt (entspricht 1/72 Zoll) gemacht werden müssen und in den beiden Textstrings #,(,) und \ mit \ escaped werden müssen.<a href="http://www.twam.info/wp-content/uploads/2009/04/mkcopyrightimg"> </a></p>
<p>Das Skript kann unter <a href="http://www.twam.info/wp-content/uploads/2009/04/mkcopyrightimg">mkcopyrightimg</a> runtergeladen werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/software/mkcopyrightimg-script/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ShowIP Plugin</title>
		<link>http://www.twam.info/software/showip-plugin</link>
		<comments>http://www.twam.info/software/showip-plugin#comments</comments>
		<pubDate>Thu, 02 Apr 2009 20:40:37 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Network/Web]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[IPv4]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=182</guid>
		<description><![CDATA[Um Websurfer auf IPv6 aufmerksam zu machen habe ich heute mein erstes WordPress Plugin geschrieben. Es zeigt Client-Informationen wie IP-Adresse, Ort, Browser und System an. Ich hab zwar ein paar wenige Plugins gefunden, die das schon machen, allerdings binden sie nur ein Bild von einem Server ein, der die ganze Ausgabe übernimmt und meist auch [...]]]></description>
			<content:encoded><![CDATA[<p>Um Websurfer auf IPv6 aufmerksam zu machen habe ich heute mein erstes WordPress Plugin geschrieben. Es zeigt Client-Informationen wie IP-Adresse, Ort, Browser und System an. Ich hab zwar ein paar wenige Plugins gefunden, die das schon machen, allerdings binden sie nur ein Bild von einem Server ein, der die ganze Ausgabe übernimmt und meist auch noch irgendwelche Powered-By Links einblendet.</p>
<p>Außer der reinen Darstellung der Information kann das Addon auch auf bestimmte Dinge reagieren. So kann es z.B. warnen falls der Browser nicht aktuell ist oder noch IPv4 verwendet wird. Bei was gewarnt werden soll und was überhaupt angezeigt werden soll, kann einfach im Administrationsbereich eingestellt werden.</p>
<p>Zur Bestimmung des Browser habe ich dazu <a href="http://code.google.com/p/phpbrowscap/">Browscap </a>verwendet. Die Bestimmung des Ortes aus der IP-Adresse übernimmt <a href="http://de.php.net/geoip">GeoIP</a>.</p>
<p>Das Plugin läßt sich rechts oben in Aktion sehen. Es warnt im Moment bei alten Browsern. Die IPv4 Warnung ist im Moment noch deaktiviert, solange die IPv6 Anbindung des Servers noch nicht vollständig ausgetestet ist.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/software/showip-plugin/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google over IPv6</title>
		<link>http://www.twam.info/software/google-over-ipv6</link>
		<comments>http://www.twam.info/software/google-over-ipv6#comments</comments>
		<pubDate>Thu, 02 Apr 2009 08:30:51 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Network/Web]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[SiXXs]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=174</guid>
		<description><![CDATA[Google&#8217;s Websuche ist bisher via ipv6.google.com auch über IPv6 zu erreichen. Alle anderen Services haben allerdings noch keinen AAAA Eintrag im DNS. Im Rahmen des Google over IPv6 Programms bietet Google aber größeren IPv6-Providern die Möglichkeit ihren DNS als &#8220;trusted tester&#8221; zu registrieren und dann für alle Google Services AAAA Records bereit zustellen. SiXXs bietet [...]]]></description>
			<content:encoded><![CDATA[<p>Google&#8217;s Websuche ist bisher via <a href="http://ipv6.google.com">ipv6.google.com</a> auch über IPv6 zu erreichen. Alle anderen Services haben allerdings noch keinen AAAA Eintrag im DNS.</p>
<p>Im Rahmen des <a href="http://www.google.com/intl/en/ipv6/">Google over IPv6</a> Programms bietet Google aber größeren IPv6-Providern die Möglichkeit ihren DNS als &#8220;trusted tester&#8221; zu registrieren und dann für alle Google Services AAAA Records bereit zustellen.</p>
<p>SiXXs bietet nun seit <a href="http://www.sixxs.net/news/2009/#dnsresolversandgoogleoveripv6-200904">gestern</a> die Möglichkeit, dies über ihre DNS Server zu nutzen, wenn man sie aus einem SiXXs-Subnet anfragt. Das musste natürlich sofort getestet werden und siehe da:</p>
<pre>server ~ # dig AAAA www.google.de
; &lt;&lt;&gt;&gt; DiG 9.6.0-P1 &lt;&lt;&gt;&gt; AAAA www.google.de
;; global options: +cmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 32996
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 13, ADDITIONAL: 12

;; QUESTION SECTION:
;www.google.de.                 IN      AAAA

;; ANSWER SECTION:
www.google.de.          303016  IN      CNAME   www.google.com.
www.google.com.         391617  IN      CNAME   www.l.google.com.
www.l.google.com.       284     IN      AAAA    2001:4860:a005::68</pre>
<p>Ich bin gespannt, wann andere große Websiten nachziehen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/software/google-over-ipv6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox Addon ShowIP</title>
		<link>http://www.twam.info/software/firefox-addon-showip</link>
		<comments>http://www.twam.info/software/firefox-addon-showip#comments</comments>
		<pubDate>Wed, 01 Apr 2009 09:05:56 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[IPv6]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=159</guid>
		<description><![CDATA[Firefox verwendet automatisch IPv6 Adressen wenn der Client und der Server beide IPv6 verstehen. Ob der eigene PC IPv6 versteht läßt sich relativ einfach rausfinden, doch ob die Gegenseite auch schon für die Zukunft gerüstet ist sieht man ihr nicht sofort an. Das Firefox Addon ShowIP zeigt in der Status-Leiste des Firefox die aufgerufe IP-Adresse [...]]]></description>
			<content:encoded><![CDATA[<p>Firefox verwendet automatisch IPv6 Adressen wenn der Client und der Server beide IPv6 verstehen. Ob der eigene PC IPv6 versteht läßt sich relativ einfach rausfinden, doch ob die Gegenseite auch schon für die Zukunft gerüstet ist sieht man ihr nicht sofort an.</p>
<p>Das <a href="https://addons.mozilla.org/de/firefox/addon/590">Firefox Addon ShowIP</a> zeigt in der Status-Leiste des Firefox die aufgerufe IP-Adresse des Servers an und färbt sie rot falls es sich um eine IPv4 handelt und grün wenn der Server schon IPv6 versteht.</p>
<div id="attachment_160" class="wp-caption aligncenter" style="width: 238px"><a href="http://www.twam.info/wp-content/uploads/2009/04/ipv6_vs_ipv4.png"><img class="size-full wp-image-160" title="ipv6_vs_ipv4" src="http://www.twam.info/wp-content/uploads/2009/04/ipv6_vs_ipv4.png" alt="IPv6 oder IPv4?" width="228" height="100" /></a><p class="wp-caption-text">IPv6 oder IPv4?</p></div>
<p>Testen läßt sich das zum Beispiel unter <a href="http://ipv6.google.com">ipv6.google.com</a> oder <a href="http://www.six.heise.de">www.six.heise.de</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/software/firefox-addon-showip/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPv6 @ Home</title>
		<link>http://www.twam.info/linux/gentoo/ipv6-home</link>
		<comments>http://www.twam.info/linux/gentoo/ipv6-home#comments</comments>
		<pubDate>Tue, 31 Mar 2009 19:13:53 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Network/Web]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[SiXXs]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=150</guid>
		<description><![CDATA[Via SiXXs können auch Privatpersonen ohne natives IPv6 Internet Zugang zum &#8220;neuen&#8221; Netz erhalten. Registriert man sich auf der Seite kann ein IPv6 Tunnel unter anderem via AYIYA realisiert werden, welches sogar NAT unterstützt und somit auf fast allen PC funktionieren sollte. Das Programm AICCU initialisiert die Tunnel und benötigt als Konfiguration lediglich SiXXs-Benutzername und [...]]]></description>
			<content:encoded><![CDATA[<p>Via <a href="http://www.sixxs.net/">SiXXs</a> können auch Privatpersonen ohne natives IPv6 Internet Zugang zum &#8220;neuen&#8221; Netz erhalten. Registriert man sich auf der Seite kann ein IPv6 Tunnel unter anderem via AYIYA realisiert werden, welches sogar NAT unterstützt und somit auf fast allen PC funktionieren sollte.</p>
<p>Das Programm AICCU initialisiert die Tunnel und benötigt als Konfiguration lediglich SiXXs-Benutzername und Passwort sowie eine Tunnel Nummer. Das Programm gibt es als net-misc/aiccu als Ebuild für Gentoo.</p>
<p>Ist der Tunnel erfolgreich eingerichtet kann auch ein IPv6 Subnet beantragt werden und weitere PCs im Heimnetz ans IPv6 Netz zu bekommen. Der <a href="http://www.gentoo.org/doc/en/ipv6.xml">Gentoo-IPv6-Router-Guide</a> erklärt wie man radvd und dhcpv6 konfiguriert.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/linux/gentoo/ipv6-home/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WorldClock</title>
		<link>http://www.twam.info/software/worldclock</link>
		<comments>http://www.twam.info/software/worldclock#comments</comments>
		<pubDate>Mon, 21 Jan 2008 18:00:42 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[WorldClock]]></category>

		<guid isPermaLink="false">http://blog.twam.info/?p=112</guid>
		<description><![CDATA[twam&#8217;s WorldClock ist a tiny worldclock program for Windows. It&#8217;s able to display several user-configurable timezones in a small window like this: This window is usually positioned in the upper right corner of your screen beside the minimize and maximize buttons of the underlaying applications (but you can configure the window to reside whereever you [...]]]></description>
			<content:encoded><![CDATA[<p>twam&#8217;s WorldClock ist a tiny worldclock program for Windows. It&#8217;s able to display several user-configurable timezones in a small window like this:</p>
<p><a href="http://www.twam.info/wp-content/uploads/2009/03/worldclock_mainscreen.jpg"><img class="aligncenter size-full wp-image-113" title="worldclock_mainscreen" src="http://www.twam.info/wp-content/uploads/2009/03/worldclock_mainscreen.jpg" alt="worldclock_mainscreen" width="542" height="18" /></a></p>
<p>This window is usually positioned in the upper right corner of your screen beside the minimize and maximize buttons of the underlaying applications (but you can configure the window to reside whereever you want!). If you use the &#8220;always on top&#8221; feature of worldclock, you&#8217;ll be able to see the different timezones all the time without loosing import space on your screen.<span id="more-112"></span></p>
<p>In Version 3 there are lots of features which you can configure so that worldclock fits your needs, e.g. you can change to look of the main screen completely. Select your own colors, fonts, border and padding settings or even display the window transparent:</p>
<p><a href="http://www.twam.info/wp-content/uploads/2009/03/worldclock_displayconfiguration.jpg"><img class="aligncenter size-full wp-image-114" title="worldclock_displayconfiguration" src="http://www.twam.info/wp-content/uploads/2009/03/worldclock_displayconfiguration.jpg" alt="worldclock_displayconfiguration" width="406" height="424" /></a></p>
<p>Version 3 of WorldClock has also a lot of new features for managing your timezones. You can select your timezones from a lot of predifined timezones or create your own using the &#8220;new timezone wizard&#8221;:</p>
<p><a href="http://www.twam.info/wp-content/uploads/2009/03/worldclock_addtimezonewizard.jpg"><img class="aligncenter size-full wp-image-115" title="worldclock_addtimezonewizard" src="http://www.twam.info/wp-content/uploads/2009/03/worldclock_addtimezonewizard.jpg" alt="worldclock_addtimezonewizard" width="503" height="391" /></a></p>
<p>If you add a custom timezone you will be able to select a country to use the daylightsavingtime rules of this country.</p>
<p><a href="http://www.twam.info/wp-content/uploads/2009/03/worldclock_timezoneconfiguration.jpg"><img class="aligncenter size-full wp-image-117" title="worldclock_timezoneconfiguration" src="http://www.twam.info/wp-content/uploads/2009/03/worldclock_timezoneconfiguration.jpg" alt="worldclock_timezoneconfiguration" width="406" height="424" /></a></p>
<p>Another nice feature of worldclock is its included timecalc. You can launch it easily via a user-configurable hotkey. It helps you to plan your meetings, when your participants are using different timezones:</p>
<p><a href="http://www.twam.info/wp-content/uploads/2009/03/worldclock_timecalc.jpg"><img class="aligncenter size-full wp-image-118" title="worldclock_timecalc" src="http://www.twam.info/wp-content/uploads/2009/03/worldclock_timecalc.jpg" alt="worldclock_timecalc" width="318" height="288" /></a></p>
<p>And the best on worldclock is that it&#8217;s for free! So download and try it! If you like it, feel free to give me a short feedback on it! I&#8217;d be happy!</p>
<p>Download: <a href="http://www.twam.info/wp-content/uploads/2009/03/setup_332.exe">setup_332.exe</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/software/worldclock/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

