<?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>MoMolog &#187; Note to self</title>
	<atom:link href="http://momolog.info/category/note-to-self/feed/" rel="self" type="application/rss+xml" />
	<link>http://momolog.info</link>
	<description>MoMolog aus Berlin stellt sich vor. Projekte, Ideen, Referenzen.</description>
	<lastBuildDate>Sat, 21 Jan 2012 12:35:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Push local branch to specific heroku app</title>
		<link>http://momolog.info/2011/11/28/push-local-branch-to-specific-heroku-app/</link>
		<comments>http://momolog.info/2011/11/28/push-local-branch-to-specific-heroku-app/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 17:33:24 +0000</pubDate>
		<dc:creator>aljoscha</dc:creator>
				<category><![CDATA[Note to self]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://momolog.info/?p=295</guid>
		<description><![CDATA[You use two heroku apps as staging and production for your project. You added both as git remotes, e.g. &#8220;production&#8221; and &#8220;staging&#8221;. Now you want to push your local branch &#8220;poster&#8221; to remote &#8220;staging&#8221;, use git push staging poster:master Note, that you can only push to &#8220;master&#8221; on herokus side. This is just git syntax, [...]]]></description>
			<content:encoded><![CDATA[<p>You use two heroku apps as staging and production for your project. You added both as git remotes, e.g. &#8220;production&#8221; and &#8220;staging&#8221;.</p>
<p>Now you want to push your local branch &#8220;poster&#8221; to remote &#8220;staging&#8221;, use<br />
<code>git push staging poster:master<br />
</code></p>
<p>Note, that you can only push to &#8220;master&#8221; on herokus side. This is just git syntax, but I keep forgetting it, so here it is for future reference.</p>
]]></content:encoded>
			<wfw:commentRss>http://momolog.info/2011/11/28/push-local-branch-to-specific-heroku-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby: map Array to Hash</title>
		<link>http://momolog.info/2010/10/07/ruby-map-array-to-hash/</link>
		<comments>http://momolog.info/2010/10/07/ruby-map-array-to-hash/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 06:49:50 +0000</pubDate>
		<dc:creator>aljoscha</dc:creator>
				<category><![CDATA[Note to self]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://momolog.info/?p=277</guid>
		<description><![CDATA[Sometimes you may wish to map an Array to a Hash in Ruby, like say, you got the output of I18n.available_locales locales = [:en, :de, :fr] and want to transform that into a Hash to fill a select element, like so: [:en => 'EN', :de => 'DE', :fr => 'FR'] How do you do that [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you may wish to map an Array to a Hash in Ruby, like say, you got the output of I18n.available_locales</p>
<p><code>locales = [:en, :de, :fr]</code></p>
<p>and want to transform that into a Hash to fill a select element, like so:</p>
<p><code>[:en => 'EN', :de => 'DE', :fr => 'FR']</code></p>
<p>How do you do that in the most concise way?<br />
First, there is always <code>inject</code>:</p>
<p><code>locales.inject({}) {|hsh, sym| hsh[sym] = sym.to_s.upcase; hsh}</code></p>
<p>But I like the following approach way better, mainly because it emphasizes my intention more clearly (and, btw. is faster too):</p>
<p><code>Hash[locales.map{|sym| [sym, sym.to_s.upcase]}]</code></p>
<p><em>Remember</em>: <code>Hash[:a,:b,:c,:d]</code> produces <code>{:a => :b, :c => :d}</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://momolog.info/2010/10/07/ruby-map-array-to-hash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vor kurzem dazugelernt:</title>
		<link>http://momolog.info/2009/10/18/vor-kurzem-dazugelernt/</link>
		<comments>http://momolog.info/2009/10/18/vor-kurzem-dazugelernt/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 15:46:19 +0000</pubDate>
		<dc:creator>aljoscha</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Note to self]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://momolog.info/?p=204</guid>
		<description><![CDATA[Suche nach Wort unter dem Cursor in vim: #. jssh ist eine JavaScript Shell, die den Firefox per Port 9997 fernsteuerbar macht. Download z.B. hier. y erzeugt einen YAML dump auf der Rails console, mehr dazu hier. =3D ist ein escaptes &#8220;=&#8221; in quoted_printable. sudo /usr/libexec/locate.updatedb aktualisiert unter MacOSX sofort die locate Datenbank. rake db:migrate:redo [...]]]></description>
			<content:encoded><![CDATA[<p>Suche nach Wort unter dem Cursor in vim: <code>#</code>.</p>
<p><code>jssh</code> ist eine JavaScript Shell, die den Firefox per Port 9997 fernsteuerbar macht.<br />
Download z.B. <a href="http://wiki.openqa.org/display/WTR/FireWatir+Installation">hier</a>.</p>
<p><code>y</code> erzeugt einen YAML dump auf der Rails console, mehr dazu <a href="http://blog.floehopper.org/articles/2006/12/22/rails-console-shortcuts">hier</a>.</p>
<p><code>=3D</code> ist ein escaptes &#8220;=&#8221; in <a href="http://de.wikipedia.org/wiki/Quoted-printable">quoted_printable</a>.</p>
<p><code>sudo /usr/libexec/locate.updatedb</code> aktualisiert unter MacOSX sofort die <code>locate</code> Datenbank.</p>
<p><code>rake db:migrate:redo</code> führt unter rails die letzte Migration rückwärts und sofort wieder vorwärts aus, so dass sich die Vorwärts-Action korrigieren läßt </p>
<p><code>ack -Q</code> bringt <a href="http://betterthangrep.com/">ack</a> dazu, <em>literal</em>, also ohne RegExp zu suchen.</p>
]]></content:encoded>
			<wfw:commentRss>http://momolog.info/2009/10/18/vor-kurzem-dazugelernt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacOSX Boot-Tastenkombinationen: single user, verbose, safe</title>
		<link>http://momolog.info/2009/10/01/single-user-vs-verbose-vs-safe/</link>
		<comments>http://momolog.info/2009/10/01/single-user-vs-verbose-vs-safe/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 09:24:26 +0000</pubDate>
		<dc:creator>aljoscha</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Note to self]]></category>

		<guid isPermaLink="false">http://momolog.info/?p=187</guid>
		<description><![CDATA[In den single user mode (root shell) starten, beim Neustart: [CMS] s In den verbose mode (boot log) starten: [CMD] v In den safe mode (nur core kexts) starten: [SHIFT]]]></description>
			<content:encoded><![CDATA[<p>In den <a href="http://support.apple.com/kb/HT1492">single user mode (root shell)</a> starten, beim Neustart:<br />
<code>[CMS] s<br />
</code><br />
In den <a href="http://support.apple.com/kb/HT1492">verbose mode (boot log)</a> starten:<br />
<code>[CMD] v<br />
</code><br />
In den <a href="http://support.apple.com/kb/HT1564">safe mode (nur core kexts)</a> starten:<br />
<code>[SHIFT]<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://momolog.info/2009/10/01/single-user-vs-verbose-vs-safe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accidentally unpacked a jar into home dir?</title>
		<link>http://momolog.info/2009/08/27/accidentally-unpacked-a-jar-into-home-dir/</link>
		<comments>http://momolog.info/2009/08/27/accidentally-unpacked-a-jar-into-home-dir/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 09:01:08 +0000</pubDate>
		<dc:creator>aljoscha</dc:creator>
				<category><![CDATA[Note to self]]></category>

		<guid isPermaLink="false">http://momolog.info/2009/08/27/accidentally-unpacked-a-jar-into-home-dir/</guid>
		<description><![CDATA[find . -newerBt '10 minutes ago' -depth 1 -print 2>/dev/null]]></description>
			<content:encoded><![CDATA[<p><code>find . -newerBt '10 minutes ago' -depth 1 -print   2>/dev/null</code></p>
]]></content:encoded>
			<wfw:commentRss>http://momolog.info/2009/08/27/accidentally-unpacked-a-jar-into-home-dir/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

