<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><description></description><title>Alex Bepple</title><generator>Tumblr (3.0; @alexbepple)</generator><link>https://alexbepple.tumblr.com/</link><item><title>Sensible settings for reducing file size on Mac</title><description>&lt;p&gt;I guess you all know you can reduce the size of a PDF on a Mac via “Save as …” in Preview and then selecting “Reduce file size” as the Quartz filter. The problem with this filter is that it often degrades the image quality to an unusable degree. You can &lt;a href="http://mactoids.com/create-a-quartz-filter-with-colorsync/"&gt;create your own Quartz filter&lt;/a&gt; that uses more adequate compression settings.&lt;/p&gt;

&lt;p&gt;I was very satisfied with these settings:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Image sampling: set resolution to 96 dpi and nothing else&lt;/li&gt;
&lt;li&gt;Image compression: medium JPEG compression&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This shrank a photominutes PDF from 35 to 1.6 MB with hardly any visible loss of quality.&lt;/p&gt;

&lt;p&gt;&lt;img src="https://64.media.tumblr.com/tumblr_lkm8hfKCAA1qahp11.png" alt=""/&gt;&lt;/p&gt;</description><link>https://alexbepple.tumblr.com/post/5158182277</link><guid>https://alexbepple.tumblr.com/post/5158182277</guid><pubDate>Tue, 03 May 2011 12:45:07 +0200</pubDate></item><item><title>Spiegel Online wieder lesenswert</title><description>&lt;p&gt;Vor ein, zwei Jahren hatte ich Angst um meine wichtigste Nachrichtenquelle: Spiegel Online. Die Artikel wurden stumpfer, die Rechtschreibfehler nahmen zu, der Mehrwert aus der investierten Zeit ging gegen null. Doch scheint mir, dass sich in der Redaktion etwas verbessert hat. Immer wieder finde ich Artikel, die informativ, orthographisch korrekt und gut geschrieben sind – und glänzen. Zum Beispiel mit Formulierungen wie dieser:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Doch gerade dieses religiös heilsgeschichtlich aufgeladenen Endzustands wegen hat die Utopie von Marx und Engels halbe Generationen fasziniert. (&lt;a href="http://www.spiegel.de/kultur/gesellschaft/0,1518,738073,00.html"&gt;Quelle&lt;/a&gt;)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;„Halbe Generationen“ – wie viel Sprachwitz und zugleich Bedeutung steckt drin!&lt;/p&gt;

&lt;p&gt;Von Angst keine Spur.&lt;/p&gt;</description><link>https://alexbepple.tumblr.com/post/2636569566</link><guid>https://alexbepple.tumblr.com/post/2636569566</guid><pubDate>Fri, 07 Jan 2011 14:29:44 +0100</pubDate></item><item><title>Vending machine: put in virtue, get out happiness</title><description>&lt;p&gt;Nate: “It’s really fucking lonely. I feel like all I do all day long is manage myself, try to fucking connect with people. But it’s like no matter how much energy you pour into … getting to the station on time or getting on the right train, there is still no fucking guarantee that anyone will be there for you – to pick you up when you get there. – You know what I mean?”&lt;/p&gt;

&lt;p&gt;Maggie: “Well, I know that if you think life is a vending machine, where you put in virtue and you get out happiness, then you probably are gonna be disappointed. I know that.”&lt;/p&gt;

&lt;p&gt;From: &lt;em&gt;Six feet under,&lt;/em&gt; season 5, episode 4&lt;/p&gt;</description><link>https://alexbepple.tumblr.com/post/1550340034</link><guid>https://alexbepple.tumblr.com/post/1550340034</guid><pubDate>Fri, 12 Nov 2010 07:34:15 +0100</pubDate></item><item><title>Appositionen stehen im gleichen Fall wie das Substantiv</title><description>&lt;p&gt;Falsch:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Für Veh, ein Verfechter attraktiven Offensivfußballs, muss es manchmal eine Qual sein, einigen seiner Profis bei der Arbeit zuzuschauen.&lt;/p&gt;
  
  &lt;p&gt;&lt;em&gt;Quelle: &lt;a href="http://www.spiegel.de/sport/fussball/0,1518,727704,00.html"&gt;Spiegel Online&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Richtig:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Für Veh, &lt;em&gt;einen&lt;/em&gt; Verfechter attraktiven Offensivfußballs, muss es manchmal eine Qual sein, einigen seiner Profis bei der Arbeit zuzuschauen.&lt;/p&gt;
&lt;/blockquote&gt;</description><link>https://alexbepple.tumblr.com/post/1505194034</link><guid>https://alexbepple.tumblr.com/post/1505194034</guid><pubDate>Sun, 07 Nov 2010 12:14:00 +0100</pubDate></item><item><title>Promoting better JavaScript documentaion. Here is how you can,...</title><description>&lt;img src="https://64.media.tumblr.com/tumblr_l9gditRGQk1qb2dpoo1_250.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Promoting better JavaScript documentaion. &lt;a href="http://promotejs.com/"&gt;Here is&lt;/a&gt; how you can, too, if you care.&lt;/p&gt;</description><link>https://alexbepple.tumblr.com/post/1203987102</link><guid>https://alexbepple.tumblr.com/post/1203987102</guid><pubDate>Tue, 28 Sep 2010 12:37:41 +0200</pubDate></item><item><title>More sensible reporting behavior for JBehave 3.0</title><description>&lt;p&gt;Going from 2.5 to 3.0, JBehave changed its default reporting behavior – unfortunately, for the worse. Out of the box, JBehave 2.5&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;succeeded and remained silent, if all steps were implemented and passed,&lt;/li&gt;
&lt;li&gt;succeeded and printed all the steps of a scenario, if at least one step was not implemented – marking that step as &lt;em&gt;pending&lt;/em&gt; – and no executed step failed, and&lt;/li&gt;
&lt;li&gt;failed and printed all the steps of a scenario, if a step failed – marking that step.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;JBehave 3.0, on the other hand,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;succeeds and fails just like JBehave 2.5,&lt;/li&gt;
&lt;li&gt;but &lt;em&gt;never&lt;/em&gt; tells you anything. There is a stacktrace in case of a failure. But who wants to read those? And you get no clue what so ever as to whether there are pending steps.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So how do you make JBehave 3.0 more verbose? You have to change the configuration in your story class:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;disable the useless &lt;code&gt;StoryReporterBuilder&lt;/code&gt;, that either does not talk at all or at all times – and is not open to extension :( – and&lt;/li&gt;
&lt;li&gt;use a default story reporter that only talks when there is something interesting to say.&lt;/li&gt;
&lt;/ol&gt;

&lt;script src="http://gist.github.com/564218.js?file=gistfile2.java"&gt;&lt;/script&gt;

&lt;script src="http://gist.github.com/564218.js?file=gistfile1.java"&gt;&lt;/script&gt;

&lt;p&gt;You can make this setup even more useful by making pending steps fail:&lt;/p&gt;

&lt;script src="http://gist.github.com/564218.js?file=gistfile3.java"&gt;&lt;/script&gt;

&lt;p&gt;In one team, we have come up with the convention of committing stories in progress with an &lt;code&gt;@Ignore&lt;/code&gt; annotation so as not to disturb other people on the team.&lt;/p&gt;

&lt;script src="http://gist.github.com/564218.js?file=gistfile4.java"&gt;&lt;/script&gt;

&lt;p&gt;When working on the story, you just remove the &lt;code&gt;@Ignore&lt;/code&gt; and the policy of failing pending steps prevents you from checking this in – unless you’re done, of course.&lt;/p&gt;</description><link>https://alexbepple.tumblr.com/post/1071511153</link><guid>https://alexbepple.tumblr.com/post/1071511153</guid><pubDate>Sun, 05 Sep 2010 23:05:00 +0200</pubDate><category>jbehave</category><category>it-agile-blog-planet</category></item><item><title>Automatically emptying trash on Ubuntu</title><description>&lt;p&gt;The most common mechanism for automating tasks on Ubuntu is the &lt;a href="https://help.ubuntu.com/community/CronHowto"&gt;cron daemon&lt;/a&gt;. You can schedule tasks with &lt;code&gt;crontab -e&lt;/code&gt; or you can make your life easier by using &lt;em&gt;Scheduled Tasks&lt;/em&gt;, a graphical frontend for crontab. You might need to install &lt;em&gt;gnome-schedule&lt;/em&gt; for that.&lt;/p&gt;

&lt;p&gt;Now, how do we actually empty the trash? The most commonly recommended way is &lt;code&gt;rm -r ~/.local/share/Trash/files/*&lt;/code&gt;. This, however, leaves some garbage in &lt;code&gt;~/.local/share/Trash/info&lt;/code&gt;, where Ubuntu keeps metadata about the contents of the Trash, including the original location and the deletion date. Merely deleting the contents of &lt;code&gt;Trash/files&lt;/code&gt; will leave you with orphaned metadata.&lt;/p&gt;

&lt;p&gt;A better way is to use the utilities from &lt;a href="http://manpages.ubuntu.com/manpages/lucid/man1/empty-trash.1.html"&gt;the &lt;em&gt;trash-cli&lt;/em&gt; package&lt;/a&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;trash
list-trash
restore-trash
empty-trash
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The best bit is that you can provide &lt;code&gt;empty-trash&lt;/code&gt; with a parameter. So&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;empty-trash 5
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;will permanently delete all files that have been in the Trash for more than 5 days.&lt;/p&gt;</description><link>https://alexbepple.tumblr.com/post/1071305756</link><guid>https://alexbepple.tumblr.com/post/1071305756</guid><pubDate>Sun, 05 Sep 2010 22:19:12 +0200</pubDate><category>ubuntu</category></item><item><title>Converting a Bazaar repository to Git</title><description>&lt;p&gt;I keep all of my notes in thousands of plain text files in one directory, and version them using Bazaar. Being fed up with Bazaar’s sluggishness – for instance, it makes me wait a couple of seconds for a simple &lt;em&gt;bzr status&lt;/em&gt; – I decided to migrate to Git.&lt;/p&gt;

&lt;p&gt;I first tried &lt;a href="http://wiki.darcs.net/RelatedSoftware/Tailor"&gt;Tailor&lt;/a&gt; because &lt;a href="http://somethingsimilar.com/2008/05/01/moving-from-bzr-to-git-or-tailor-is-so-awesome-i-cream-my-pants/"&gt;Jeff Hodges was favorably impressed by it&lt;/a&gt;. Unfortunately it kept nagging me about some branch parameter. Having a fresh repo as a target, it was not obvious to me how to proceed. So I turned to Google for alternatives.&lt;/p&gt;

&lt;p&gt;And so I discovered &lt;em&gt;git fast-import&lt;/em&gt; and its Bazaar counterpart, &lt;em&gt;bzr fast-export&lt;/em&gt;. &lt;a href="http://blogs.igalia.com/aperez/2008/11/convert-repositories-with-fast-exportimport/"&gt;This description&lt;/a&gt; looked sufficiently straight forward. But in fact it’s even easier. From the Bazaar working tree I did:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo apt-get install bzr-fastimport
git init .
bzr fast-export . | git fast-import
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This left the working tree dirty, even though it had been clean before. So after&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;git reset --hard
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I was done.&lt;/p&gt;</description><link>https://alexbepple.tumblr.com/post/959049906</link><guid>https://alexbepple.tumblr.com/post/959049906</guid><pubDate>Sun, 15 Aug 2010 23:24:00 +0200</pubDate><category>git</category><category>bazaar</category></item><item><title>Natural lighting for your monitor</title><description>&lt;p&gt;I used to discard programs that promise natural lighting for computers as something quite out there. Not sure what hit me, but last weekend I decided to give it a try, after reading about a new release of  &lt;a href="http://www.stereopsis.com/flux/"&gt;F.lux&lt;/a&gt; on &lt;a href="http://www.omgubuntu.co.uk/2010/07/flux-natural-lighting-for-ubuntu-gets.html"&gt;Omg Ubuntu&lt;/a&gt;. Well, F.lux did not work on my Ubuntu installation at all, but &lt;a href="http://jonls.dk/redshift/"&gt;Redshift&lt;/a&gt;, an alternative, did.&lt;/p&gt;

&lt;p&gt;Now, just a week later, I find any monitor without “natural” lighting irksome. So I encourage you to try it too. If you are on OS X or Windows, go with F.lux, if you are on Ubuntu, I recommend Redshift.&lt;/p&gt;

&lt;p&gt;Installing is trivial:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo add-apt-repository ppa:jonls/redshift-ppa
sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install redshift
&lt;/code&gt;&lt;/pre&gt;

&lt;h1&gt;Some Redshift tips&lt;/h1&gt;

&lt;p&gt;&lt;code&gt;redshift&lt;/code&gt; is the commandline program, &lt;code&gt;gtk-redshift&lt;/code&gt; is its equivalent that sits in the notification area.&lt;/p&gt;

&lt;p&gt;Redshift adjusts the lighting according to the time of day. To this end, by default, it asks the clock for your location. If you do not have a clock in your Gnome panel, &lt;code&gt;gtk-redshift&lt;/code&gt; fails silently. So get your settings right with &lt;code&gt;redshift&lt;/code&gt; first.&lt;/p&gt;

&lt;p&gt;You can manually pass a location to Redshift. Find your latitude and longitude &lt;a href="http://www.getlatlon.com/"&gt;here&lt;/a&gt;. For Hamburg the parameters are:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;redshift -l 53.6:10.0
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Redshift has two color temperature settings: one for the day and one for the night. According to the time of day, it adjusts the color temperature on the continuum between the two. I found Redshift’s default temperature for the night to be too dark. You can adjust that too. So my settings look like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;redshift -l 53.6:10.0 -t 5500K:4400K
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now go add a new entry to &lt;em&gt;Startup Applications&lt;/em&gt; and forget all about what you just read.&lt;/p&gt;</description><link>https://alexbepple.tumblr.com/post/913658151</link><guid>https://alexbepple.tumblr.com/post/913658151</guid><pubDate>Fri, 06 Aug 2010 20:35:42 +0200</pubDate><category>ubuntu</category></item><item><title>Twitter is down and I cannot tweet about it.</title><description>&lt;p&gt;Twitter is down and I cannot tweet about it.&lt;/p&gt;</description><link>https://alexbepple.tumblr.com/post/909334163</link><guid>https://alexbepple.tumblr.com/post/909334163</guid><pubDate>Thu, 05 Aug 2010 23:38:00 +0200</pubDate></item></channel></rss>
