<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Still very tall.</description><title>janw76</title><generator>Tumblr (3.0; @janw76)</generator><link>http://janw76.tumblr.com/</link><item><title>Using Google's "I'm feeling lucky" for custom searches in Alfred</title><description>&lt;p&gt;One of the most used apps on my Mac is &lt;a href="http://www.alfredapp.com"&gt;Alfred&lt;/a&gt;, a quick-launcher swiss-knife do-anything-you-want-with-the-keyboard type of app (loosely based on the venerable &lt;a href="http://qsapp.com"&gt;Quicksilver&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Among it&amp;#8217;s gazillion features are custom web searchers. For example, to search movie information on &lt;a href="http://www.imdb.com"&gt;IMDB.com&lt;/a&gt;, I just bring up the Alfred window, type &amp;#8220;imdb MyCoolMovie&amp;#8221; and the search result will open up in IMDB.com. You can create your own custom searches as long as the search URL is well defined, which is often the case. The one I use most these days is a custom search for &lt;a href="http://dict.leo.org"&gt;LEO&lt;/a&gt;, the biggest German dictionary site for German to English, Spanish, French and more languages.&lt;/p&gt;

&lt;p&gt;In some cases, however, sites do &lt;em&gt;not&lt;/em&gt; give you well-formed search URLs, such as &lt;a href="http://www.appdata.com"&gt;AppData.com&lt;/a&gt;, which I need a lot for work.&lt;/p&gt;

&lt;p&gt;But there is a simple work-around using Google&amp;#8217;s &amp;#8220;I&amp;#8217;m feeling lucky&amp;#8221;. Example: to get the Appdata info on &amp;#8220;Farmville&amp;#8221;, entering &amp;#8220;appdata farmville&amp;#8221; into Goole will sure as hell return the corresponding page on Appdata.com. So hitting &amp;#8220;I&amp;#8217;m feeling lucky&amp;#8221; will bring me there directly.&lt;/p&gt;

&lt;p&gt;So here&amp;#8217;s how to create a custom search for that in Alfred:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Go to Alfred&amp;#8217;s preferences, &amp;#8220;Custom searches&amp;#8221; and add a new one&lt;/li&gt;
&lt;li&gt;in the next window, enter as search URL: &lt;code&gt;&lt;a href="http://www.google.com/search?btnI=I'm+Feeling+Lucky&amp;amp;q=%7Bquery%7D+appdata"&gt;http://www.google.com/search?btnI=I'm+Feeling+Lucky&amp;amp;q={query}+appdata&lt;/a&gt;&lt;/code&gt; &lt;/li&gt;
&lt;li&gt;Enter as search term (I chose &amp;#8220;apd&amp;#8221; and description whatever fits best and click ok&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;That&amp;#8217;s it. Now every time I need to look up on Appdata, I bring up Alfred, type&lt;/p&gt;

&lt;p&gt;&lt;code&gt;apd GameName&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;and Alfred will bring me to the most likely search result page. In some rare cases (e.g. very generic game names like &amp;#8220;slots&amp;#8221;), Google can&amp;#8217;t decide properly on the one best case but that&amp;#8217;s ok, since in this case the standard Google search result page will come up where I can choose myself.&lt;/p&gt;</description><link>http://janw76.tumblr.com/post/31788019048</link><guid>http://janw76.tumblr.com/post/31788019048</guid><pubDate>Tue, 18 Sep 2012 11:05:00 +0200</pubDate><category>alfred</category><category>mac</category><category>custom searches</category><category>productivity</category><category>appdata</category><category>games</category></item><item><title>Time Machine and Dropbox</title><description>&lt;p&gt;&lt;a href="http://support.apple.com/kb/ht1427"&gt;Time Machine&lt;/a&gt; can really be a life saver and nothing is simpler than using it via Time Capsule or a &lt;a href="http://janw76.tumblr.com/post/6417601301/exporting-playlists-from-itunes-to-synology"&gt;compatible NAS&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;By default, Time Machine backs up your &lt;em&gt;entire&lt;/em&gt; Mac, including all Applications, Cache files and folders and, yes, even your Trash. Personally, I don’t need that. There are a &lt;a href="http://www.essentialmac.co.uk/?p=662"&gt;couple&lt;/a&gt; of &lt;a href="http://ryanblock.com/2008/05/good-folders-to-exclude-from-time-machine-backups/"&gt;good recommendations&lt;/a&gt; out their for folders than can safely be excluded, such as &lt;code&gt;/Applications&lt;/code&gt; or &lt;code&gt;~/.Trash&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;But even though I did that, Time Machine was still regularly backing up several hundred Megabytes &lt;em&gt;each time&lt;/em&gt; it started - practically each hour. That might not be annoying on a new, fast Mac and a hard disk connected via USB. But via WiFi, this can be a real pain.&lt;/p&gt;

&lt;p&gt;Turns out that &lt;a href="http://www.dropbox.com"&gt;Dropbox&lt;/a&gt; was the one to blame. I already excluded Dropbox from the folders to be backed up. But Dropbox keeps its own hidden cache. Moreover, one that is not located in &lt;code&gt;/Library/Cache&lt;/code&gt; or &lt;code&gt;~/Library/Cache&lt;/code&gt;. Instead, it’s located in the users home folder: &lt;code&gt;~/.dropbox/&lt;/code&gt;. In my case, that folder is almost 400&amp;#160;MB large. What’s worse, the two biggest single files, &lt;code&gt;filecache.db&lt;/code&gt; and &lt;code&gt;sigstore.db&lt;/code&gt; apparently change each time just one file in the Dropbox folder changes.&lt;/p&gt;

&lt;p&gt;Even if I were to back up all files in Dropbox with Time Machine, I’d still put &lt;code&gt;~/.dropbox/&lt;/code&gt; on the list of folders to be excluded from the backup just to stop Time Machine from clogging up my Macbook.&lt;/p&gt;</description><link>http://janw76.tumblr.com/post/9709807536</link><guid>http://janw76.tumblr.com/post/9709807536</guid><pubDate>Fri, 02 Sep 2011 18:57:00 +0200</pubDate><category>dropbox</category><category>time machine</category><category>backup</category></item><item><title>Cargo Cult Science</title><description>&lt;p&gt;In 1974 Richard Feynman gave a &lt;a href="http://calteches.library.caltech.edu/51/02/CargoCult.pdf"&gt;memorable speech&lt;/a&gt; to the newbies at Caltech, establishing an interesting term called “&lt;a href="http://en.wikipedia.org/wiki/Cargo_cult_science"&gt;Cargo Cult Science&lt;/a&gt;”. In a nutshell, it boils down to the finding that many scientists (if not whole disciplines), apparently “do science”, use all the correct scientific methods and tools without actually ever getting any real conclusions out of it. Despite the fact that his speech  — and warnings — are from the 1970ies, not much has changed. In fact, it’s probably gone downhill since then, not the least because of the ever-increasing pressure of publishing more and more peer-reviewed articles.&lt;/p&gt;

&lt;p&gt;One perfect example for “cargo cult” is statistical analysis, in particular the cult around “statistical significance”. As it goes, some methods of statistical analysis have become so widespread and commonplace that the reasons behind using the in the first place is no longer questioned. I spent hours explaining how &lt;a href="http://www.deirdremccloskey.com/docs/pdf/Article_190.pdf"&gt;statistical significance is not scientific significance&lt;/a&gt;. Much worse, in many cases these statistical analyses are just applied plain wrong or the wrong conclusions are drawn from them. Being a physicist myself, I was quite surprised to find this, mostly because these methods are rarely used in physics [1].&lt;/p&gt;

&lt;p&gt;Since I’ve recently come across such types of “Cargo Cult Science” in Food Science and I think it´s worth highlighting a couple of the effects this has had on the research. I’ll highlight three symptoms. If you come across them, chance is that you are dealing with bad case of Cargo Cult Science:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Symptom 1: “Equipment relics”&lt;/strong&gt;: in lab classes you quickly learn never to trust instruments completely. First, because any instrument will have some &lt;a href="http://"&gt;systematic errors&lt;/a&gt;. Second, because almost any instrument needs a proper calibration first. There is no shortcut or substitute for that. If you want results you can trust, it’s you who has to do it. Regularly. Enter unconditional faith in “laboratory grade equipment”. Turns out that people like to believe that just because a piece of equipment is more expensive and bought in a serious-looking catalogue for lab stuff, its readings are always rights. It’s not. When readings don’t make sense, the first thing you need to do &lt;em&gt;is question your own readings&lt;/em&gt; before questioning basic science. &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Symptom 2: “Because everyone does it like that”&lt;/strong&gt;: While it’s good practice to have a look around and see what and how others have been doing their studies or how they’ve written stuff, it does not relieve you from thinking for yourself nor critically judging what others have been doing. &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Symptom 3: “Because it sounds more scientific”&lt;/strong&gt;: That’s  one of my biggest pet peeves. I read &lt;a href="http://dx.doi.org/10.1038/nphys724"&gt;tons&lt;/a&gt; of &lt;a href="http://www.jcb.org/cgi/content/abstract/165/6/757"&gt;things&lt;/a&gt; on &lt;a href="http://blogs.nature.com/nautilus/2008/04/post_26.html"&gt;writing&lt;/a&gt; &lt;a href="http://www.nature.com/authors/author_services/how_write.html"&gt;papers&lt;/a&gt;. The common denominators are that you shouldn’t bore your reader to death, nor use fancy-pancy language you’d never use in any other context. Using tons of “whereas” or “nonetheless” doesn’t make it more scientific. Nor does the use of the passive voice or sentences spanning half a page. Yet, the editor of a food journal recently forced us to rewrite an entire paper into passive voice since it would, aparrently, make it “more objective”. It doesn’t. When we write “we measured”, it’s actually true. We did it, not someone else. Writing “it was measured” might create the illusion of objectivity, but if so, then it’s a false one. Even worse, it makes texts unbearingly boring to read.  &lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;So what’s one to do when he/she comes across those symptoms? First, always think for yourself. It’s scary to see so many people just following bad example without even considering it. Second, don’t give in too lightly, argue for what’s right and against what’s plain wrong. Naturally, a student will follow what the boss wants and I wouldn’t recommend going against that unless you want to have a decent degree. But that doesn’t mean that you should do the same when you write your paper or do your science. Third, learn to live with it and respect others even when you are convinced they are wrong.&lt;/p&gt;

&lt;p&gt;[1] They &lt;em&gt;are&lt;/em&gt; used of course but only when there is a necessary or sufficient reason to do so.&lt;/p&gt;</description><link>http://janw76.tumblr.com/post/9581936191</link><guid>http://janw76.tumblr.com/post/9581936191</guid><pubDate>Tue, 30 Aug 2011 11:18:42 +0200</pubDate><category>science</category></item><item><title>How to create secure passwords you can actually remember</title><description>&lt;p&gt;I hate having to select passwords. It’s always tedious to think up something that&lt;/p&gt;

&lt;ol&gt;&lt;li&gt;is &lt;a href="http://xkcd.com/936/"&gt;secure enough&lt;/a&gt; and &lt;/li&gt;
&lt;li&gt;can actually be remembered. &lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;For most web sites, I have already switched over to &lt;a href="http://agilebits.com/products/1Password"&gt;1Password&lt;/a&gt;, which also allow me to quickly generate random passwords on the fly directly on the fly in the web browser. It syncs with my iPhone too, so even the nastiest 30-character random passwords are with me all the time.&lt;/p&gt;

&lt;p&gt;Another simple way of “creating” a relatively secure password is &lt;a href="http://lifehacker.com/184773/geek-to-live--choose-and-remember-great-passwords"&gt;using the first letters of a well know phrase&lt;/a&gt;, e.g. the chorus of your favorite song. That way “Every breath you take and every move you make” becomes the relatively secure password “ebytaemym”. Easy. I have been using that method for really important passwords for a long time now, with the added twist of including equations from physics that I know by heart. But I realize that this might be too geeky for most :).&lt;/p&gt;

&lt;p&gt;Finally, I just recently realized that there is another dead simple way of creating very long random passwords: &lt;a href="http://en.wikipedia.org/wiki/Hash_function"&gt;hashes&lt;/a&gt;. That should be obvious to anyone with a little programming experience, but I have to admit that I didn’t even think about that until recently. (Caveat: Windows users need to get some software for that).&lt;/p&gt;

&lt;p&gt;On Mac or Linux, just open a terminal window and type in&lt;/p&gt;

&lt;pre&gt;echo “hellworld” | md5&lt;/pre&gt;

&lt;p&gt;This will create the following hash: &lt;code&gt;d73b04b0e696b0945283defa3eee4538&lt;/code&gt;, which makes in itself a nice password. And more importantly: it’s dead easy for me to remember the word I am using to create the hash. Any word or phrase you put will create a unique hash that you can nicely use as a password. The important thing to remember is that each word creates a unique hash. So it doesn’t matter on what system I create the hash, the hash function will always create the same hash value.&lt;/p&gt;

&lt;p&gt;Some important tips for that method:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Be aware that the command is typically saved in the shell history, so think about where you type that in!&lt;/li&gt;
&lt;li&gt;Be aware of line endings in the phrase. Depending on your system the (hidden) line ending is different and thus creates a (very!) different hash. To suppress the line ending in the hash, use the “-n” option: echo -n “helloworld” | md5.&lt;/li&gt;
&lt;li&gt;I realize that MD5 is &lt;a href="http://en.wikipedia.org/wiki/Md5#Security"&gt;no longer considered to be secure&lt;/a&gt; but I don’t think that this matters here. And either way, the same of course also works using &lt;a href="http://en.wikipedia.org/wiki/SHA-1"&gt;SHA-1&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/SHA-2"&gt;SHA-256&lt;/a&gt;, which would  create an even longer hash. &lt;/li&gt;
&lt;li&gt;There are a couple of iPhone apps creating hashes. I am sure there are similar ones for Android. &lt;/li&gt;
&lt;li&gt;Obviously, don’t use my example above as a password :)&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;I tend to use this method now whenever I need to create passwords on the command line, e.g. sever passwords. It also works great for creating safe WiFi passwords.&lt;/p&gt;</description><link>http://janw76.tumblr.com/post/9411136898</link><guid>http://janw76.tumblr.com/post/9411136898</guid><pubDate>Fri, 26 Aug 2011 12:37:00 +0200</pubDate><category>passwords</category><category>hash</category></item><item><title>Exporting playlists from iTunes to Synology Diskstations</title><description>&lt;p&gt;I have a nice D211j &amp;#8220;Diskstation&amp;#8221; NAS, which essentially stores all music, photos and videos in a central place. Besides being a storage device, Synology builds in a nice MediaServer that streams this music, photos and videos to streaming clients around my place (including iTunes via the iTunes Media Server).&lt;/p&gt;

&lt;p&gt;The built in &amp;#8220;AudioStation&amp;#8221; is essentially a iTunes-esque library that shows all the music that you&amp;#8217;ve copied into the /music folder on the Synology NAS. So far so good. However, I have tons of music and while copying the files from iTunes to the NAS was easy, it does not transfer any ratings, play counts or playlists. So if I want to play any specific song on, say, the PS3, I need to click through tons of folders to hunt down the file manually. 
However, at least for the latter there is a relatviely simple way. This assumes that you&amp;#8217;ve copied everything that was under&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;~/Music/iTunes/iTunes Media/Music
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;into the root of the /music volume on your Diskstation.&lt;/p&gt;

&lt;p&gt;First, export any playlist you want to have on the Diskstation from iTunes into a file. In iTunes, just click on the playlist and then go to File / Library / Export Library:&lt;/p&gt;

&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmmo31Hk3P1qhyttl.png" alt=""/&gt;&lt;/p&gt;

&lt;p&gt;Make sure to save the file in &amp;#8220;&lt;a href="http://en.wikipedia.org/wiki/M3U"&gt;M3U&lt;/a&gt;&amp;#8221; format.&lt;/p&gt;

&lt;p&gt;Now fire up your favorite text editor and open the file. M3U files are simple text files that contain the location of the song file. iTunes exports those as an absolute path, so we need to correct that. Search and replace the string (changing &amp;#8220;Username&amp;#8221; for your username of course)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/Users/Username/Music/iTunes/iTunes Media/Music/
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;and replace it simply with&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;../
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Save the fie and copy it to the folder /music/playlists (create it if it doesn&amp;#8217;t exist yet).&lt;/p&gt;

&lt;p&gt;The AudioStation will recognize the file as a playlist.&lt;/p&gt;

&lt;p&gt;Nice side-effect: AudioStation also allows you to download the files of that playlist from the NAS in one go.&lt;/p&gt;</description><link>http://janw76.tumblr.com/post/6417601301</link><guid>http://janw76.tumblr.com/post/6417601301</guid><pubDate>Sat, 11 Jun 2011 15:43:09 +0200</pubDate><category>synology</category><category>itunes</category><category>playlist</category><category>m3u</category><category>AudioStation</category></item><item><title>Installing ImageMagick on the Mac</title><description>&lt;p&gt;&lt;a title="ImageMagick" href="http://imagemagick.org/"&gt;ImageMagick&lt;/a&gt; is a pretty useful little tool for editing photos, typically used from the command line. I use it quite often to batch resize photos right from the command line.&lt;/p&gt;



&lt;p&gt;On the Mac, by far the simplest way to install ImageMagick is using &lt;a title="Homebrew" href="http://mxcl.github.com/homebrew/"&gt;Homebrew&lt;/a&gt;. Homebrew is a simple, Ruby-based &lt;a href="http://en.wikipedia.org/wiki/Package_management_system"&gt;package manager&lt;/a&gt; for the Mac (and people still using MacPorts or Fink should definitely give it a try!). So if you don&amp;#8217;t have Homebrew installed, first follow the simple installation instructions given here and and install ImageMagick using&lt;/p&gt;



&lt;pre&gt;&lt;code&gt;brew install imagemagick
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;(Note that you need &lt;a href="http://developer.apple.com/tools/xcode"&gt;XCode&lt;/a&gt; installed on your system so that your Mac knows how to compile the sources.)&lt;/p&gt;



&lt;p&gt;Homebrew will now grab the source code make and build the software and that&amp;#8217;s it. &lt;/p&gt;</description><link>http://janw76.tumblr.com/post/6175534722</link><guid>http://janw76.tumblr.com/post/6175534722</guid><pubDate>Sat, 04 Jun 2011 16:13:00 +0200</pubDate></item></channel></rss>
