<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://pdes-net.org/cobra/styles/feed.css"?>
<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>cobra's bits</title>
<atom:link href="http://pdes-net.org/cobra/rss.xml" rel="self" type="application/rss+xml" />
<link>http://pdes-net.org/cobra</link>
<description>echo bla | bc</description>
<dc:language>en-us</dc:language>
<dc:creator>cobra</dc:creator>
<dc:date>2012-04-29T19:59:12+02:00</dc:date>
<admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />
<item>
<link>http://pdes-net.org/cobra/archives/2012/04/29/miscellanea/index.html</link>
<guid isPermaLink="true">http://pdes-net.org/cobra/archives/2012/04/29/miscellanea/index.html</guid>
<title>Miscellanea</title>
<dc:date>2012-04-29T19:06:44+02:00</dc:date>
<dc:creator>cobra</dc:creator>
<dc:subject>linux</dc:subject>
<description>
<![CDATA[
<p>To calculate the average or the maximum of the second column of data files, do</p>

<pre>
awk '{sum += $2} END {printf ("%f\n", sum/NR)}' $1
</pre>
<p>or</p>
<pre>
awk 'BEGIN {max = 0} {if ($2>max) max=$2} END {print max}' $1
</pre>

<p>The latter one is particularly useful for a quick-and-dirty plot of normalized spectra with gnuplot.</p>

<br>
<hr align="left" width="30%" />
<br>

<p>The easiest way to get the geometry of an image is</p>
<pre>
identify -format "%wx%h\n" *
</pre>

<br>
<hr align="left" width="30%" />
<br>

<p>To enable applications requiring X to be started with root rights without having access to kdesu or gksu, steal the magic cookie from your users  <img src="http://pdes-net.org/cobra/moods/smilies/grin.gif" alt=":D" /> </p>
<pre>
xauth add `xauth -f ~user/.Xauthority list $DISPLAY`
</pre>]]>
</description>
</item>
<item>
<link>http://pdes-net.org/cobra/archives/2012/04/09/scale/index.html</link>
<guid isPermaLink="true">http://pdes-net.org/cobra/archives/2012/04/09/scale/index.html</guid>
<title>Scale</title>
<dc:date>2012-04-09T19:10:40+02:00</dc:date>
<dc:creator>cobra</dc:creator>
<dc:subject>web, presentations, mathematics, latex</dc:subject>
<description>
<![CDATA[
<img src="http://mathurl.com/d224o58.png">

<pre>
mogrify -resize x240 -quality 85 *.jpg
</pre>]]>
</description>
</item>
<item>
<link>http://pdes-net.org/cobra/archives/2012/04/09/library/index.html</link>
<guid isPermaLink="true">http://pdes-net.org/cobra/archives/2012/04/09/library/index.html</guid>
<title>Library</title>
<dc:date>2012-04-09T18:48:35+02:00</dc:date>
<dc:creator>cobra</dc:creator>
<dc:subject>thoughts, info, hardware</dc:subject>
<description>
<![CDATA[
<p>
One reader has suspected the "little tablet-like thingie" underneath the laptop on the left of the network diagram one post below to be an iPad. Let me assure you: it is <em>not</em> an iPad.
</p>

<p>
It is in fact an e-book reader, and more precisely a <a href="http://www.kobobooks.com/touch" title="Kobo Touch">Kobo Touch</a> which I've acquired around Christmas:
</p>

<div style="text-align: center;">
<a href="http://pdes-net.org/cobra/pix/kobo_startscreen.jpg">
<img src="http://pdes-net.org/cobra/pix/kobo_startscreen_scaled.jpg" alt="top view" /></a>
<a href="http://pdes-net.org/cobra/pix/kobo_book.jpg">
<img src="http://pdes-net.org/cobra/pix/kobo_book_scaled.jpg" alt="top view" /></a>
<a href="http://pdes-net.org/cobra/pix/kobo_cover.jpg">
<img src="http://pdes-net.org/cobra/pix/kobo_cover_scaled.jpg" alt="top view" /></a>
</div>

<p>
At that time and in this country, only Kobo and Sony offered what I wanted, namely WiFi access, a touch screen and the latest display technology. But I wouldn't have bought a Kindle anyway: Amazon's infrastructure reminds me of Apple's, and I strongly prefer an open attitude to the rest of the world (including an easy access to e-pubs without the need for <a href="http://calibre-ebook.com/" title="calibre">calibre</a>). 
</p>

<p>
Am I satisfied with the Kobo? More than I anticipated. I still prefer real books for their tactile and olfactory feedback, but one can't possibly argue with a 185 g device holding an entire library. Having a search function, a dictionary and a built-in shopping solution doesn't hurt the case either. It is a new dimension of reading, period. And the Kobo utilizes this dimension quite nicely, I think.
</p>

<p>
Speaking about niceties: when you look at the photographs above, you're probably surplussed about the cover I've chosen. Really looks like a <a href="http://en.wikipedia.org/wiki/Washing_mitt" title="wash-glove">wash-glove</a>, doesn't it? Yes, but it does so only from the outside! Inside it is made of carbon and titanium. It has an invisible organic solar module which supplies sufficient power for the Kobo to last indefinitely, and built-in organic LEDs which provide a dimmable reading light in the night. 
</p>

<p>
Naaaa, it's just a wash-glove.  <img src="http://pdes-net.org/cobra/moods/smilies/grin.gif" alt=":D" /> The manila cover I actually bought gave off such a putrid stench that I couldn't use it. It's unbearable, and overpowering even after three month and a machine wash. Well, I love the glove. It's made of bio-cotton, fits perfectly, and attracts a lot of attention in the subway.
</p>]]>
</description>
</item>
<item>
<link>http://pdes-net.org/cobra/archives/2012/04/07/archeology/index.html</link>
<guid isPermaLink="true">http://pdes-net.org/cobra/archives/2012/04/07/archeology/index.html</guid>
<title>Archeology</title>
<dc:date>2012-04-07T14:51:08+02:00</dc:date>
<dc:creator>cobra</dc:creator>
<dc:subject>thoughts, info, backup, windows, linux, hardware</dc:subject>
<description>
<![CDATA[
<p>
After acquiring a gigabit <a href="http://www.alternate.de/html/product/Linksys/SE2800/850588/?" title="switch">switch</a> and a network attached storage (<a href="http://www.cyberport.de/?DEEP=3F38-07R&APID=14" title="NAS">NAS</a>),  I was forced to admit that my computer installation has a definitive <a href="http://de.wikipedia.org/wiki/Small_Office,_Home_Office" title="SOHO">SOHO</a> scent. In fact, one finds quite a few of the essential concepts and elements of a "real" network:
</p>

<center>
<img src="http://pdes-net.org/cobra/pix/network_small.png" alt="">
</center>

<p>
For example, there is a router, a firewall, a switch, a wireless access point, a RAID 5 NAS, and clients connected either by the Gbit link of the switch or wirelessly by the router. There's also an all in-one printer, scanner, and copy machine. In a professional network, dedicated devices would take care of each of these services, but the intended functionality is the same (albeit here at a much smaller scale).
</p>

<p>
How the hell could that happen to me, who doesn't even have a smartphone and whose plasma TV cannot display 3D contents? How?
</p>

<p>
Let's see how this madness started. 
</p>

<p>
<strong>1987</strong>: Schneider PC1512, CPU 8086/8 MHz, 512 kB RAM, 10 MB HDD, MSDOS 3.3<br>
Highlights: Compiling my Pascal programs at home instead of waiting hours for a free place in the CIP pool.
</p>

<p>
<strong>1992</strong>: Mitsubishi Laptop, CPU 80386SL/25 MHz,  2 MB RAM, 20 MB HDD, IBM DOS J5.02/V<br>
Highlights: TeXing at home after years of doing that on a dumb terminal. A truly superior feeling!
</p>

<p>
<strong>1995</strong>: Custom-made, Pentium I 90,  16 MB RAM, 512 MB HDD, Windows 95/Redhat 2.0<br>
Highlights: <a href="http://en.wikipedia.org/wiki/Comanche_series" title="Comanche">Comanche</a>,  <a href="http://en.wikipedia.org/wiki/Doom_(video_game)" title="Doom">Doom</a>, <a href="http://en.wikipedia.org/wiki/Heretic_(computer_game)" title="Heretic">Heretic</a>, <a href="http://en.wikipedia.org/wiki/Hexen" title="Hexen">Hexen</a>, <a href="http://en.wikipedia.org/wiki/Descent_(video_game)" title="Descent">Descent</a>, <a href="http://en.wikipedia.org/wiki/Duke_Nukem_3D" title="Duke Nukem 3D">Duke Nukem 3D</a>, <a href="http://de.wikipedia.org/wiki/Command_%26_Conquer:_Der_Tiberiumkonflikt" title="Command &amp; Conquer">Command &amp; Conquer</a>, and a PC Unix not unlike the Solaris I'd enjoyed on my <a href="http://en.wikipedia.org/wiki/SPARCstation_10" title="SPARCstation 10">SPARCstation 10</a> at Mitsubishi a couple of years ago. Coupled with the 33.6 K Modem with <a href="http://www.snafu.de/" title="snafu">snafu</a> as provider, and the 17" Viewsonic monitor, this was about the ultimate PC anybody could have bought at that time. It also costed a mind-boggling 8000 DM ... 
</p>

<p>
<strong>1998</strong>: Dell, Pentium II 266 + NVidia Riva 128/Voodoo II 8MB, 384 MB RAM, 8 GB HD,  Windows 98/Mandrake Leeloo<br>
Highlights: <a href="http://de.wikipedia.org/wiki/Quake_(Spieleserie)" title="Quake">Quake</a>, <a href="http://de.wikipedia.org/wiki/Unreal" title="Unreal,">Unreal,</a> <a href="http://de.wikipedia.org/wiki/K_Desktop_Environment" title="KDE 1.0,">KDE 1.0,</a> and <a href="http://de.wikipedia.org/wiki/DSL_(Telekom)" title="T-DSL">T-DSL</a> with 768/128 kbit up/down from July 1999. Together with the implementation of the <a href="http://en.wikipedia.org/wiki/Point-to-point_protocol_over_Ethernet" title="PPPoE">PPPoE</a> protocol by <a href="http://www.roaringpenguin.com/products/pppoe" title="Roaring Pinguin,">Roaring Pinguin,</a> I started to use the Dell as a router for my wife's gaming rig a year later:
</p>

<p>
<strong>2000</strong>: Custom-made, Athlon 750 + NVidia Geforce 1 DDR, 512 MB RAM, 20 HB HDD, Windows 98<br>
Highlights: <a href="http://de.wikipedia.org/wiki/Unreal_Tournament" title="Unreal Tournament.">Unreal Tournament.</a> The whole package: clan membership, clan leadership, clan foundership, fights in a European league.
</p>

<p>
And so that's how it all started. Just because of the games.  <img src="http://pdes-net.org/cobra/moods/smilies/wink.gif" alt=";)" />
</p>]]>
</description>
</item>
<item>
<link>http://pdes-net.org/cobra/archives/2012/04/07/frankfurter_grüne_soße/index.html</link>
<guid isPermaLink="true">http://pdes-net.org/cobra/archives/2012/04/07/frankfurter_grüne_soße/index.html</guid>
<title>Frankfurter Grüne Soße</title>
<dc:date>2012-04-07T14:13:48+02:00</dc:date>
<dc:creator>cobra</dc:creator>
<dc:subject>cuisine</dc:subject>
<description>
<![CDATA[
<p>
When I was a kid, my grandma often prepared the famous <a href="http://en.wikipedia.org/wiki/Green_sauce#German_Gr.C3.BCne_So.C3.9Fe" title="German green sauce">German green sauce</a>. It was a favored dish of mine, but I realized much later that I liked it just the way she'd done it, and not like it's offered in restaurants. What you get there is commonly nothing more than a mushy potato with a little dip of rather thin, liquidy consistency and mayonnaise-like taste. I was always bitterly disappointed.  <img src="http://pdes-net.org/cobra/moods/smilies/sad.gif" alt=":(" />  A home-made 'Grüne Soße' would have been the natural alternative, but to obtain the required fresh herbs is usually a difficult task outside the area of Frankfurt.
</p>

<p>
Luckily,  the fruit shop  just across the street at which I live offers the original <a href="http://en.wikipedia.org/wiki/File:Gruene_sosse_verpackt_20080402.jpg" title="white herb packs">white herb packs</a> directly from Frankfurt for a very reasonable €4.95. So let's try and recreate the original 'Grüne Soße' of my grandma! Since the ingredients for this local dish will be not easily available to people living outside of Germany, I  post the following recipe for four portions of the genuine  Frankfurter Grüne Soße in German only. 
</p>

<p>
400 g   Schmand<br>
300 g   Vollmilchjoghurt<br>
200 g   Crème fraîche<br>
100 ml  Vollmilch<br>
2 EL    mittelscharfer Senf<br>
1 EL    Weißweinessig<br>
2 TL    Salz<br>
1 TL    weißer Pfeffer<br>
1 TL    Zucker<br>
</p>

<p>
- Milchprodukte und Gewürze in einer tiefen Schüssel gut verrühren.
</p>

<p>
200 g   frische Kräuter (Borretsch, Kerbel, Kresse, Petersilie, Pimpinelle, Sauerampfer, Schnittlauch)
</p>

<p>
- Kräuter kurz waschen und mit einer Salatschleuder trocknen.  Anschließend holzige und gröbere Bestandteile wegschneiden.  Die verbleibenden Anteile mittels eines Wiegemessers oder eines sehr scharfen Kochmessers fein <a href="http://de.wikipedia.org/wiki/Wiegen_(Kochen)" title="wiegen">wiegen</a>. Keinesfalls eine Küchenmaschine oder einen Pürierstab benutzen! Die zerkleinerten Kräuter unter die oben angerichtete Grundsoße heben.
</p>

<p>
8       hartgekochte Eier <br>
</p>

<p>
- Die hartgekochten Eier pellen, mit einem Eierschneider würfeln und in die Soße einrühren, bis sich die Eigelbwürfel komplett aufgelöst haben. 
</p>

<p>
- Schüssel mit Frischhaltefolie abdecken und über Nacht in den Kühlschrank stellen. 
</p>

<p>
1,5 kg  festkochende Frühkartoffeln  wie z.B. Charlotte<br>
</p>

<p>
- Schüssel mit Soße direkt vor dem Kochen der Kartoffeln aus dem Kühlschrank nehmen.<br>
- Kartoffeln säubern und als Pellkartoffeln zubereiten.
</p>

<p>
 Kartoffeln auf flachen Tellern anrichten, Soße darübergeben und sofort servieren. Guten Appetit!
</p>]]>
</description>
</item>
<item>
<link>http://pdes-net.org/cobra/archives/2012/03/25/prodigy/index.html</link>
<guid isPermaLink="true">http://pdes-net.org/cobra/archives/2012/03/25/prodigy/index.html</guid>
<title>Prodigy</title>
<dc:date>2012-03-25T15:58:39+02:00</dc:date>
<dc:creator>cobra</dc:creator>
<dc:subject>thoughts</dc:subject>
<description>
<![CDATA[
<p>
<a href="http://www.stephenwolfram.com" title="Stephen Wolfram">Stephen Wolfram</a> is one of the very few persons I'm interested in. Stephen was what you'd call a <em>wunderkind</em>, and consequently got his PhD in theoretical physics from Caltech at the age of 20. But he's not only a singularly gifted scientist, but also a clever business man. He left Caltech, for example, when he realized that his work on a computer algebra system would be owned not by him, but the institute. Four years later, he founded Wolfram Research, released <a href="http://en.wikipedia.org/wiki/Mathematica" title="Mathematica">Mathematica</a> a year after, and became a multimillionaire this way.
</p>

<p>
I've started to use Mathematica in 1993, five years after its initial release. I still remember my feelings when I used it first. I was enchanted, entranced, couldn't believe what I saw on the screen of my toy-like Macintosh II. A software solving differential equations in seconds for which I'd have needed days! That opened up possibilities of which I'd never dared to dream before. From that point on, I couldn't stop to examine physical problems with Mathematica, and my enthusiasm soon led to a  <a href="http://prb.aps.org/abstract/PRB/v51/i11/p7029_1" title="first">first</a> publication. Twenty years later, Mathematica is the only commercial software which I'm continuing to use...and insist of using, in fact.
</p>

<p>
Last friday on #pdes, haui drew my attention to the latest <a href="http://blog.stephenwolfram.com/2012/03/the-personal-analytics-of-my-life/" title="entry">entry</a> in Stephen Wolfram's blog, entitled "the personal analytics of my life". Stephen is commenting on the statistics shown in this entry at length, but for me the following facts allow an additional conclusion.
</p>

<p>
<ul>
<li>Stephen writes 70 mails a day on average (and receives about 300). Since he averages only 12000 keystrokes per day, the mails are just about all he writes.   </li>
</ul>
</p>

<p>
<ul>
<li>He typically attends 10 meetings per day, most of them on the phone. For this reason, he's about 6 hours per day on the phone. He has a 40% chance to be on the phone between 9 and 12 pm. </li>
</ul>
</p>

<p>
<ul>
<li>His daily exercise is done partly during his daily dinner break: "[...] with the correct ergonomic arrangement one can type and use a mouse just fine while walking on a treadmill, at least up to—for me—a speed of about 2.5 mph."</li>
</ul>
</p>

<p>
For me, these points constitute the essence of a perfectly nightmarish life. Who on earth likes to be on the fucking phone the entire day? And these tricks to be online while being on a treadmill during your dinner break, do you think that's smart? It's pathetic! 
</p>

<p>
Somehow, I can't help but to feel great pity for the rich and famous Dr. Wolfram. I hope he doesn't regret his insatiable appetite for being the guy who runs the show when he's old and sick and his 4 kids are out of the house. I'd recommend to look at <a href="http://www-cs-faculty.stanford.edu/~uno/email.html" title="Donald Knuth's">Donald Knuth's</a> decision and to learn from it.
</p>]]>
</description>
</item>
<item>
<link>http://pdes-net.org/cobra/archives/2012/03/17/faster/index.html</link>
<guid isPermaLink="true">http://pdes-net.org/cobra/archives/2012/03/17/faster/index.html</guid>
<title>Faster!</title>
<dc:date>2012-03-17T15:50:54+02:00</dc:date>
<dc:creator>cobra</dc:creator>
<dc:subject>archlinux</dc:subject>
<description>
<![CDATA[
<p>
I love fast and snappy updates. Besides a speedy package manager, the mirrors from which the updates are downloaded determine how fast the updates arrive at their destination. In Arch, the script 'reflector' is the most convenient way to select up-to-date mirrors with a fast response. Like that: 
</p>

<pre>
reflector -c Germany -l 15 -f 6 --sort rate --save /etc/pacman.d/mirrorlist   
pacman -Syyu
</pre>]]>
</description>
</item>
<item>
<link>http://pdes-net.org/cobra/archives/2012/03/17/high_pressure/index.html</link>
<guid isPermaLink="true">http://pdes-net.org/cobra/archives/2012/03/17/high_pressure/index.html</guid>
<title>High pressure</title>
<dc:date>2012-03-17T14:52:05+02:00</dc:date>
<dc:creator>cobra</dc:creator>
<dc:subject>hardware</dc:subject>
<description>
<![CDATA[
<p>
It's suddenly spring, but my bicycles'  tires are all flat. It's high time to get a pump! But which one?
</p>

<p>
Well, let's see what I need.
</p>

<p>
First of all, the pump must be able to deal with Presta, Schrader and Dunlop valves. Second, it should have a secure and tight connection to all of these valves while still allowing me to change between them quickly and conveniently. And third, it should last longer than its predecessor. Ideally, it should still serve me in 20 years as well as today.
</p>

<p>
My internet research suggested that a 'Lezyne Alloy Floor Drive' should satisfy these requirements. So I got one, and after boosting my city bike's tires to 5 bar with just a few easy strokes, I felt sure that my choice was not all that bad.  <img src="http://pdes-net.org/cobra/moods/smilies/smiley.gif" alt=":)" />
</p>

<div style="text-align: center;">
<a href="http://pdes-net.org/cobra/pix/lez_foot.jpg"><img src="http://pdes-net.org/cobra/pix/lez_foot_scaled.jpg" alt="top view" /></a>
<a href="http://pdes-net.org/cobra/pix/lez_foot_left.jpg"><img src="http://pdes-net.org/cobra/pix/lez_foot_left_scaled.jpg" alt="top view" /></a>
<a href="http://pdes-net.org/cobra/pix/lez_mano_close.jpg"><img src="http://pdes-net.org/cobra/pix/lez_mano_close_scaled.jpg" alt="top view" /></a>
</div>]]>
</description>
</item>
<item>
<link>http://pdes-net.org/cobra/archives/2012/03/09/symbols_and_more/index.html</link>
<guid isPermaLink="true">http://pdes-net.org/cobra/archives/2012/03/09/symbols_and_more/index.html</guid>
<title>Symbols and more</title>
<dc:date>2012-03-09T20:38:09+02:00</dc:date>
<dc:creator>cobra</dc:creator>
<dc:subject>presentations, latex</dc:subject>
<description>
<![CDATA[
<p>
Some LaTeX related stuff. <br>
</p>

<ul>
<li>
Instead of searching for symbols in the trusted <a href="http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf" title="Comprehensive LaTeX Symbol List">Comprehensive LaTeX Symbol List</a>, you may now simply <a href="http://detexify.kirelabs.org/classify.html" title="online">draw</a> them. It's surprisingly accurate, and what's more: it's useful and fun.
</li>

<li>
If you don't know LaTeX that well, but want to write an equation: <a href="http://webdemo.visionobjects.com/equation.html?locale=default" title="draw">draw</a> it. 
</li>

<li>
Once you have the code, <a href="http://mathurl.com/" title="get a short URL">get a short URL</a> to show it to your colleagues.
</li>

<li>
Mentioning colleagues: wouldn't it be nice to work on a manuscript together, without the need of version control systems and the likes? Look <a href="http://docs.latexlab.org/" title="here">here</a> or <a href="http://www.sharelatex.com/" title="here">here</a>.
</li>

<li>
Finally, an <a href="http://liantze.penguinattack.org/latextypesetting.html#mosc11-slides" title="overview">overview</a> which amazes beginners and delights LaTeX veterans like me since it is not only comprehensive but also beautifully done. Chapeau, Lian Tze!
</li>
</ul>
By the way: when flipping through the slides of the overview, I imagined a grizzled veteran with thick glasses and a shaggy beard as the author. Now look at <a href="https://lh6.googleusercontent.com/-rJtiJAhcmhc/TjZVFMegNbI/AAAAAAAAJTs/_zRN2O3-rJU/s462/LLT-profile.jpg" title="that!">that!</a>
</li>]]>
</description>
</item>
<item>
<link>http://pdes-net.org/cobra/archives/2012/03/09/on_top/index.html</link>
<guid isPermaLink="true">http://pdes-net.org/cobra/archives/2012/03/09/on_top/index.html</guid>
<title>On top</title>
<dc:date>2012-03-09T20:25:58+02:00</dc:date>
<dc:creator>cobra</dc:creator>
<dc:subject>debian, linux, hardware</dc:subject>
<description>
<![CDATA[
<p>
Delete ~/.htoprc and enjoy a more compact display than <a href="http://pdes-net.org/cobra/archives/2009/10/07/nomen_est_omen/index.html">previously</a>. An absolute must if you have more than six cores.<br>
</p>

<div style="text-align: center;"><a href="http://pdes-net.org/cobra/pix/tungsten.png"><img src="http://pdes-net.org/cobra/pix/tungsten_scaled.jpg" alt="desktop screenie" /></a></div>]]>
</description>
</item>
</channel>
</rss>

