<?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>Martin Ström &#187; blog</title>
	<atom:link href="http://my-domain.se/tag/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://my-domain.se</link>
	<description></description>
	<lastBuildDate>Wed, 30 Jun 2010 16:47:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Download torrent files from Twitter DMs</title>
		<link>http://my-domain.se/download-torrent-files-from-twitter-dms/</link>
		<comments>http://my-domain.se/download-torrent-files-from-twitter-dms/#comments</comments>
		<pubDate>Mon, 24 May 2010 06:10:30 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[torrent]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=356</guid>
		<description><![CDATA[Here&#8217;s a simple ruby script to download torrent files in Safari sent to you/an account as URLs in Twitter direct messages. It could be used on your home server to download torrent files you send to it from something like your iPad. I&#8217;ve set it up to run every fifth minute (using cron) to check [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a simple ruby script to download torrent files in Safari sent to you/an account as URLs in Twitter direct messages. </p>

<p>It could be used on your home server to download torrent files you send to it from something like your iPad.</p>

<script src="http://gist.github.com/396688.js"></script>

<p>I&#8217;ve set it up to run every fifth minute (using cron) to check for new files, but can of course be adjusted to something that works for you.</p>

<p>Also, make sure to point Safari&#8217;s download folder (in Safari&#8217;s preferences) to the same folder as you have Transmission automatically watch for <code>.torrent</code> files so the download actually starts.</p>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/download-torrent-files-from-twitter-dms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paperclip processor to turn images into grayscale</title>
		<link>http://my-domain.se/paperclip-grayscale-processor/</link>
		<comments>http://my-domain.se/paperclip-grayscale-processor/#comments</comments>
		<pubDate>Mon, 17 May 2010 06:10:37 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[paperclip]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=360</guid>
		<description><![CDATA[We wanted to automatically create a grayscale version of the uploaded images for a current project. Here&#8217;s the Paperclip processor we&#8217;re using:]]></description>
			<content:encoded><![CDATA[<p>We wanted to automatically create a grayscale version of the uploaded images for a current project. Here&#8217;s the <a href="http://github.com/thoughtbot/paperclip">Paperclip</a> processor we&#8217;re using:</p>

<script src="http://gist.github.com/397144.js"></script>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/paperclip-grayscale-processor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A better Mail-to-Things-ToDo script</title>
		<link>http://my-domain.se/a-better-mail-to-things-todo-script/</link>
		<comments>http://my-domain.se/a-better-mail-to-things-todo-script/#comments</comments>
		<pubDate>Mon, 10 May 2010 11:08:09 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[automator]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[things]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=332</guid>
		<description><![CDATA[Until now I&#8217;ve been creating todos in Things from Mail messages in OS X using the quick entry built into Things and the &#8220;autofill&#8221; feature. But I didn&#8217;t like that it, by default, created the todos in Things&#8217; Inbox and that I had to manually select text in the mail message to get it as [...]]]></description>
			<content:encoded><![CDATA[<p>Until now I&#8217;ve been creating todos in Things from Mail messages in OS X using the <a href="http://culturedcode.com/things/wiki/index.php/Quick_Entry_and_Autofill">quick entry built into Things and the &#8220;autofill&#8221; feature</a>. But I didn&#8217;t like that it, by default, created the todos in Things&#8217; Inbox and that I had to manually select text in the mail message to get it as notes (which is important when using Things on your iPhone/iPad when the link back to the mail message doesn&#8217;t work).</p>

<p>Instead here&#8217;s an AppleScript which will take the selected message(s) and automatically create one task for each email in the &#8220;Next&#8221; focus in Things. It will then archive the mail messages and show a Growl notification. The todos in Things will get tagged with the &#8220;Reply&#8221; tag (which in my setup is a subtag of &#8220;Email&#8221;). </p>

<p><img src="http://my-domain.se/wordpress/wp-content/uploads/2010/05/Screen-shot-2010-05-10-at-13.01.25.png" alt="" title="Growl" width="292" height="118" class="alignright size-full wp-image-338"></p>

<p><img src="http://my-domain.se/wordpress/wp-content/uploads/2010/05/Screen-shot-2010-05-10-at-12.53.501.png" alt="" title="Things" width="584" height="152" class="alignnone size-full wp-image-337" /></p>

<p>The script is a modified version of <a href="http://the.taoofmac.com/space/dev/AppleScript/Mail%20Archive">the one found here</a>. I also put the script in an Automator action like described in the article so you can assign a shortcut key to it without including third party software. </p>

<script src="http://gist.github.com/395910.js"></script>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/a-better-mail-to-things-todo-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QuickTip: Change Finder&#8217;s default folder</title>
		<link>http://my-domain.se/quicktip-change-finders-default-folder/</link>
		<comments>http://my-domain.se/quicktip-change-finders-default-folder/#comments</comments>
		<pubDate>Thu, 06 May 2010 09:32:40 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=328</guid>
		<description><![CDATA[.bbpBox{background:url(http://s.twimg.com/a/1272044617/images/themes/theme1/bg.png) #cccccc;padding:20px;}p.bbpTweet{background:#fff;padding:10px 12px 10px 12px;margin:0;min-height:48px;color:#000;font-size:18px !important;line-height:22px;-moz-border-radius:5px;-webkit-border-radius:5px}p.bbpTweet span.metadata{display:block;width:100%;clear:both;margin-top:8px;padding-top:12px;height:40px;border-top:1px solid #fff;border-top:1px solid #e6e6e6}p.bbpTweet span.metadata span.author{line-height:19px}p.bbpTweet span.metadata span.author img{float:left;margin:0 7px 0 0px;width:38px;height:38px}p.bbpTweet a:hover{text-decoration:underline}p.bbpTweet span.timestamp{font-size:12px;display:block} #protip: Change Finder&#8217;s default folder to one you often use (like ~/Projects or whatever) http://bit.ly/deofQtless than a minute ago via TweetieMartin Strömharaldmartin]]></description>
			<content:encoded><![CDATA[<p><img src="http://asdsds.my-domain.se/scrup/b1/5se60ld14ws0w.png" alt=""></p>

<!-- http://twitter.com/haraldmartin/status/13453367238 --> <style type='text/css'>.bbpBox{background:url(http://s.twimg.com/a/1272044617/images/themes/theme1/bg.png) #cccccc;padding:20px;}p.bbpTweet{background:#fff;padding:10px 12px 10px 12px;margin:0;min-height:48px;color:#000;font-size:18px !important;line-height:22px;-moz-border-radius:5px;-webkit-border-radius:5px}p.bbpTweet span.metadata{display:block;width:100%;clear:both;margin-top:8px;padding-top:12px;height:40px;border-top:1px solid #fff;border-top:1px solid #e6e6e6}p.bbpTweet span.metadata span.author{line-height:19px}p.bbpTweet span.metadata span.author img{float:left;margin:0 7px 0 0px;width:38px;height:38px}p.bbpTweet a:hover{text-decoration:underline}p.bbpTweet span.timestamp{font-size:12px;display:block}</style> <div class='bbpBox'><p class='bbpTweet'><a href="http://twitter.com/search?q=%23protip" title="#protip" class="tweet-url hashtag" rel="nofollow">#protip</a>: Change Finder&#8217;s default folder to one you often use (like ~/Projects or whatever) <a href="http://bit.ly/deofQt" rel="nofollow">http://bit.ly/deofQt</a><span class='timestamp'><a title='Wed May 05 23:17:51 +0000 2010' href='http://twitter.com/haraldmartin/status/13453367238'>less than a minute ago</a> via <a href="http://www.atebits.com/" rel="nofollow">Tweetie</a></span><span class='metadata'><span class='author'><a href='http://twitter.com/haraldmartin'><img src='http://a3.twimg.com/profile_images/230435527/Picture_3_normal.png' /></a><strong><a href='http://twitter.com/haraldmartin'>Martin Ström</a></strong><br/>haraldmartin</span></span></p></div> <!-- end of tweet -->
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/quicktip-change-finders-default-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Selected Folder or File in TextMate from Finder</title>
		<link>http://my-domain.se/open-selected-folder-or-file-in-textmate-from-finder/</link>
		<comments>http://my-domain.se/open-selected-folder-or-file-in-textmate-from-finder/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 21:56:35 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[services]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=318</guid>
		<description><![CDATA[Before upgrading to Snow Leopard I had a QuickSilver trigger (⌃⌥⌘M) to open the currently selected file(s) or folder(s) in TextMate. It was setup as a QuickSilver trigger using the Proxy Object &#8220;Finder Selection&#8221;. Too bad it doesn&#8217;t work for me in the later QuickSilver versions and/or Snow Leopard. I missed this trigger so I [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/wordpress/wp-content/uploads/2010/04/Screen-shot-2010-04-02-at-20.47.54.png" alt="QuickSilver" /></p>

<p>Before upgrading to Snow Leopard I had a QuickSilver trigger (<code>⌃⌥⌘M</code>) to open the currently selected file(s) or folder(s) in TextMate. It was setup as a QuickSilver trigger using the Proxy Object &#8220;Finder Selection&#8221;. Too bad it doesn&#8217;t work for me in the later QuickSilver versions and/or Snow Leopard. </p>

<p>I missed this trigger so I made a 10.6 Service to accomplish the same task:</p>

<p><img src="/wordpress/wp-content/uploads/2010/04/Screen-shot-2010-03-31-at-22.47.58.png" alt="Automator" /></p>

<ol>
<li>Run Automator and select &#8220;Service&#8221; from the template chooser.</li>
<li>Select &#8220;Files and Folders&#8221; from &#8220;Finder&#8221;</li>
<li>Find the &#8220;Open Finder Items&#8221; action from the left pane and select TextMate as the application. </li>
<li>Save the service in <code>~/Library/Services</code>. I called mine &#8220;Open With TextMate&#8221;</li>
</ol>

<p><img src="/wordpress/wp-content/uploads/2010/04/Screen-shot-2010-03-31-at-22.47.50.png" alt="Keyboard Preferences" /></p>

<p>To run the service from the keyboard, run &#8220;System Preferences&#8221; and select &#8220;Keyboard&#8221;, then select &#8220;Services&#8221; in the left menu and locate the &#8220;Open With TextMate&#8221; service on the right side. Add a keyboard shortcut (I choose the same as I&#8217;m used to, <code>⌃⌥⌘M</code>).</p>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/open-selected-folder-or-file-in-textmate-from-finder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CopyPasteCharacter iPhone Application</title>
		<link>http://my-domain.se/copypastecharacter-iphone-application/</link>
		<comments>http://my-domain.se/copypastecharacter-iphone-application/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 23:06:58 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[objc]]></category>
		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=293</guid>
		<description><![CDATA[A couple of weeks ago our official iPhone application for CopyPasteCharacter.com finally became available on the App Store. The project itself isn&#8217;t too complicated but was my first &#8220;real&#8221; Cocoa and iPhone app so it took some time to get everything together and learn how to do things. The application basically lets you find and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://my-domain.se/wordpress/wp-content/uploads/2010/03/Screen-shot-2010-03-06-at-00.03.31.png" alt="" title="Screen shot 2010-03-06 at 00.03.31" width="414" height="770" class="alignnone size-full wp-image-303" /></p>

<p>A couple of weeks ago our official iPhone application for <a href="http://copypastecharacter.com">CopyPasteCharacter.com</a> finally became available on the App Store. The project itself isn&#8217;t too complicated but was my first &#8220;real&#8221; Cocoa and iPhone app so it took some time to get everything together and learn how to do things.</p>

<p>The application basically lets you find and easily copy symbols, characters and letters which otherwise can be hard to find on a regular keyboard. On the iPhone, many of these characters aren&#8217;t available at all by just using the system keyboards. Just touch one or many symbols to automatically copy them into your clipboard and paste them into any application (SMS, Facebook, Twitter, Mail etc).</p>

<p>I was happy to see that the app was approved by Apple only two working days after I submitted it. I had, however, waited about 2 months to hear from Apple on how we should solve a problem with my iTunes account. </p>

<p>Hint: You can&#8217;t use the same Apple account to upload/sell music in the iTunes Store as upload upload applications to AppStore. Create a new account before buying the iPhone developer program to stay out of trouble.</p>

<p>Please check out the <a href="http://copypastecharacter.com/iphone">product page</a> with a video walk through or go <a href="http://itunes.com/apps/copypastecharacter">directly to the AppStore</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/copypastecharacter-iphone-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screencapture in Mac OS X from a SSH session or launchd jobs</title>
		<link>http://my-domain.se/screencapture-in-mac-os-x-from-a-ssh-session-or-launchd-jobs/</link>
		<comments>http://my-domain.se/screencapture-in-mac-os-x-from-a-ssh-session-or-launchd-jobs/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 22:47:56 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[launchd]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=295</guid>
		<description><![CDATA[If you&#8217;d ever need to use the screencapture command from a scheduled job (like launchd in OS X) or from a SSH session, you might find out that it doesn&#8217;t allow you to do that since you&#8217;re not the logged in user. To work around that, run the scheduled jobs as root and exec screencapture [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;d ever need to use the <code>screencapture</code> command from a scheduled job (like launchd in OS X) or from a SSH session, you might find out that it doesn&#8217;t allow you to do that since you&#8217;re not the logged in user.</p>

<p>To work around that, run the scheduled jobs as root and exec <code>screencapture</code> like this instead:</p>

<script src="http://gist.github.com/323256.js?file=screenshot.sh"></script>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/screencapture-in-mac-os-x-from-a-ssh-session-or-launchd-jobs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quicker way to observe events in prototype.js</title>
		<link>http://my-domain.se/quicker-way-to-observe-events-in-prototype-js/</link>
		<comments>http://my-domain.se/quicker-way-to-observe-events-in-prototype-js/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 11:33:41 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[prototype]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/2009/12/07/quicker-way-to-observe-events-in-prototype-js/</guid>
		<description><![CDATA[Here&#8217;s a shorter way to listen for events in prototype.js.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a shorter way to listen for events in prototype.js.</p>

<script src="http://gist.github.com/250775.js?file=prototype-events.js"></script>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/quicker-way-to-observe-events-in-prototype-js/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MissingDrawer TextMate Plugin for Mac OS X 10.6 Snow Leopard</title>
		<link>http://my-domain.se/missingdrawer-textmate-plugin-for-mac-os-x-10-6-snow-leopard/</link>
		<comments>http://my-domain.se/missingdrawer-textmate-plugin-for-mac-os-x-10-6-snow-leopard/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 06:37:51 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[10.6]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/?p=239</guid>
		<description><![CDATA[I really like the MissingDrawer plugin for TextMate but it stopped working for me after upgrading to Snow Leopard. I recompiled it for 10.6 and now it works again. Get the updated versions here (one with blue background and one with the white default). Update: Seems like the plugin doesn&#8217;t work very good after all. [...]]]></description>
			<content:encoded><![CDATA[<p>I really like the <a href="http://jannisleidel.com/2008/02/missingdrawer/">MissingDrawer</a> plugin for TextMate but it stopped working for me after upgrading to Snow Leopard. I recompiled it for 10.6 and now it works again.</p>

<p><a href="http://code.google.com/p/textmate-missingdrawer/issues/detail?id=24">Get the updated versions here (one with blue background and one with the white default).</a></p>

<p><em>Update:</em></p>

<div markdown="1" class="updated">

Seems like the plugin doesn&#8217;t work very good after all. It makes TextMate stop responding to modifier keys (command, shift etc) so my recompiled version isn&#8217;t very helpful right now. I&#8217;ll investigate and try to fix it.

</div>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/missingdrawer-textmate-plugin-for-mac-os-x-10-6-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linklist—a new way to collect, organize, and share lists with links.</title>
		<link>http://my-domain.se/linklist%e2%80%94a-new-way-to-collect-organize-and-share-lists-with-links/</link>
		<comments>http://my-domain.se/linklist%e2%80%94a-new-way-to-collect-organize-and-share-lists-with-links/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 18:35:09 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/?p=232</guid>
		<description><![CDATA[We&#8217;ve been working on a new service on and off for a few months, called Linkli.st. The service was first launched in May but the last week we added some new (and awesome!) features so you should check it out. Linklist is based around the very simple concept of creating, sharing and browse lists with [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://my-domain.se/wordpress/wp-content/uploads/linklist-screenshot.png" alt="linklist" title="linklist" width="600" height="543" class="alignnone size-full wp-image-233" /></p>

<p>We&#8217;ve been working on a new service on and off for a few months, called Linkli.st. The service was first launched in May but the last week we added some new (and awesome!) features so you should check it out.</p>

<p>Linklist is based around the very simple concept of creating, sharing and browse lists with links. It can be used for basically everything but I&#8217;ve found it very useful for things like:</p>

<ul>
<li><a href="http://linkli.st/haraldpeter/88SKi54V">Ask for and find travel tips</a></li>
<li><a href="http://linkli.st/haraldmartin/1YTfnG8N">As an inbox for dumping links, videos etc I don&#8217;t want to deal with right now</a></li>
<li><a href="http://linkli.st/koralatov/58biM">Reading lists</a></li>
</ul>

<p>We&#8217;re adding new features and working on it all the time so be sure to follow our <a href="http://twitter.com/linkli_st">Twitter feed (@linkli_st)</a> for updates.</p>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/linklist%e2%80%94a-new-way-to-collect-organize-and-share-lists-with-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
