<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description></description><title>boiling memoir</title><generator>Tumblr (3.0; @shenie)</generator><link>http://blog.shenie.info/</link><item><title>My shortcut to open any gem in TextMate with 1 command</title><description>Using the &lt;a href="http://blog.peepcode.com/tutorials/2009/shell-method-missing/shell_method_missing.rb"&gt;implementation&lt;/a&gt; from @peepcode’s &lt;a href="http://blog.peepcode.com/tutorials/2009/shell-method-missing"&gt;blog on shell method missing&lt;/a&gt; as a base.&lt;div&gt;I’ve added another action (code snippet below) to open a gem library in TextMate by typing in the name of the gem followed by “.mate”.&lt;/div&gt;

&lt;div&gt;
&lt;div&gt;&lt;span style="font-size: 12px;"&gt;when /^[A-Za-z0-9_-\/]+.mate$/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size: 12px;"&gt;  # Open the gem in textmate&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size: 12px;"&gt;  # @example&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size: 12px;"&gt;  #   haml.mate&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size: 12px;"&gt;  gem_to_open = command.first.gsub(/.mate$/, ”)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size: 12px;"&gt;  run “gem which #{gem_to_open} | tail -1 | xargs dirname | sed -e’s/$/\/../’ | xargs mate”&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;</description><link>http://blog.shenie.info/post/276857071</link><guid>http://blog.shenie.info/post/276857071</guid><pubDate>Thu, 10 Dec 2009 12:42:13 +1100</pubDate></item><item><title>Download sources jar from maven</title><description>&lt;p&gt;We use Maven, when Maven downloads dependencies it doesn’t download sources, which I rely on when learn and debug programs…. &lt;br/&gt;I was expecting, for what seem a simple thing to me, a flag that I can add in maven’s settings files or an option to pass to mvn command…. but I couldn’t find the solution (or anything close to it). Don’t get me wrong, there are solutions out there, but I just feel it is too much hassle for the task.  So I wrote a little script that go thru my repo and downloads any jar that doesn’t have its respective sources :p &lt;br/&gt;&lt;script src="http://gist.github.com/243263.js"&gt;&lt;/script&gt;&lt;/p&gt;</description><link>http://blog.shenie.info/post/257914710</link><guid>http://blog.shenie.info/post/257914710</guid><pubDate>Thu, 26 Nov 2009 17:05:42 +1100</pubDate></item><item><title>ImageMagick and JPEG on OSX</title><description>&lt;p&gt;I am not a fan of port or fink so I always install ImageMagick from source.&lt;/p&gt;

&lt;div&gt;Recently I came across a problem where ImageMagick fails to identify JPEG’s.&lt;/div&gt;

&lt;div&gt;The error looks something like this&lt;/div&gt;

&lt;div&gt;identify: no decode delegate for this image format&lt;/div&gt;



&lt;div&gt;After some digging around it appears I need to install libjpeg and reinstall ImageMagick for JPEG support.&lt;/div&gt;

&lt;div&gt;So I downloaded &lt;a href="http://www.imagemagick.org/download/delegates/jpegsrc.v7.tar.gz"&gt;jpegsrc.v7.tar.gz&lt;/a&gt; and just run thru the standard configure, make &amp; make install then reinstalled ImageMagick.&lt;/div&gt;

&lt;div&gt;After the installation you should be able to see JPEG as one of the supported format via the command ”identify -list format”.&lt;/div&gt;

&lt;div&gt;It should contain something like this.&lt;/div&gt;

&lt;div&gt;     JPEG* JPEG      rw-   Joint Photographic Experts Group JFIF format (70)&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;</description><link>http://blog.shenie.info/post/254946528</link><guid>http://blog.shenie.info/post/254946528</guid><pubDate>Tue, 24 Nov 2009 11:52:00 +1100</pubDate></item><item><title>Script Editor</title><description>&lt;p&gt;This is a reminder for myself more than anything.&lt;/p&gt;

&lt;p&gt;To learn what you can do with an application using osascript, you can run Script Editor and click “Open the Application’s Dictionary” to see properties &amp;/methods that are available.&lt;/p&gt;</description><link>http://blog.shenie.info/post/53000659</link><guid>http://blog.shenie.info/post/53000659</guid><pubDate>Sat, 04 Oct 2008 14:58:39 +1000</pubDate><category>apple</category><category>osascript</category><category>scripting</category></item><item><title>Apple did the right thing</title><description>&lt;a href="http://developer.apple.com/iphone/program/"&gt;Apple did the right thing&lt;/a&gt;: &lt;p&gt;NDA dropped for released software&lt;/p&gt;</description><link>http://blog.shenie.info/post/52657214</link><guid>http://blog.shenie.info/post/52657214</guid><pubDate>Thu, 02 Oct 2008 08:08:58 +1000</pubDate></item><item><title>iPhone NDA</title><description>&lt;a href="http://www.onrails.org/articles/2008/09/26/iphone-nda-call-for-arms"&gt;iPhone NDA&lt;/a&gt;: &lt;p&gt;Wonder when is Android powered phones will come to OZ. It’d be fun to write app to run on my own phone :)&lt;/p&gt;</description><link>http://blog.shenie.info/post/52053846</link><guid>http://blog.shenie.info/post/52053846</guid><pubDate>Sun, 28 Sep 2008 07:01:49 +1000</pubDate></item><item><title>Fun with proc</title><description>&lt;a href="http://pragdave.blogs.pragprog.com/pragdave/2008/09/fun-with-procs.html"&gt;Fun with proc&lt;/a&gt;: &lt;p&gt;Curry is going to be a double edged sword.&lt;/p&gt;</description><link>http://blog.shenie.info/post/49489085</link><guid>http://blog.shenie.info/post/49489085</guid><pubDate>Wed, 10 Sep 2008 11:29:00 +1000</pubDate><category>ruby</category></item><item><title>git survey</title><description>&lt;p&gt;Some of the commands in the &lt;a href="http://www.survs.com/survey?id=M3PIVU72&amp;channel=2WXE4BVTW8"&gt;survey&lt;/a&gt; looks interesting, must find time to learn them.&lt;/p&gt;

&lt;pre&gt;
git add -i / -p
git add -u / -A
git am
git am -i
git apply
git apply --whitespace=fix
git archive
git bisect
git bisect run &lt;cmd&gt;
git annotate
git gui blame
git blame
git blame -L &lt;start&gt;,&lt;end&gt; etc.
git bundle
git cherry
git cherry-pick
git cherry-pick -n
git citool
git clean
git add + git commit
git commit -a
git commit &lt;file&gt;...
git commit -i &lt;file&gt;...
git commit --amend
git cvsexportcommit
git cvsserver
git daemon
git daemon (pushing enabled)
git ... --dirstat
git fetch [&lt;options&gt;]
git filter-branch
git format-patch
git grep
git imap-send
git instaweb
git log --grep/--author/...
git log -S&lt;string&gt; (pickaxe search)
git log --graph
git merge
git merge with strategy
git merge --squash
git mergetool
git pull (no remote)
git pull --rebase [&lt;options&gt;]
git pull &lt;remote&gt;
git pull &lt;url&gt;&lt;ref&gt;
git push
git relink
git rebase
git rebase -i
git remote
git remote update
git request-pull
git revert
git send-email
git show-branch
git shortlog
git shortlog -s
git stash
git stash --keep-index
git submodule
git svn
git whatchanged
git gui
gitk
&lt;/ref&gt;&lt;/url&gt;&lt;/remote&gt;&lt;/options&gt;&lt;/string&gt;&lt;/options&gt;&lt;/file&gt;&lt;/file&gt;&lt;/end&gt;&lt;/start&gt;&lt;/cmd&gt;&lt;/pre&gt;</description><link>http://blog.shenie.info/post/48278724</link><guid>http://blog.shenie.info/post/48278724</guid><pubDate>Tue, 02 Sep 2008 00:48:00 +1000</pubDate><category>git</category><category>scm</category></item><item><title>Jar decompiler</title><description>&lt;p&gt;A while ago I posted some shell scripts to decompile java classes.&lt;/p&gt;

&lt;p&gt;I decided to re-implement it in &lt;a href="http://github.com/shenie/jar_decompiler/tree/master"&gt;ruby&lt;/a&gt; so I can use it between my work (Windows) and home (OS X) machines.&lt;/p&gt;

&lt;p&gt;This version does not require you to extract the class files first. You simply pass the jar file to the script and it’ll decompress and decompile it into a directory with the same name as the jar file without .jar.&lt;/p&gt;</description><link>http://blog.shenie.info/post/41045341</link><guid>http://blog.shenie.info/post/41045341</guid><pubDate>Sat, 05 Jul 2008 16:11:11 +1000</pubDate><category>jar</category><category>jad</category><category>class</category><category>decompile</category><category>ruby</category><category>github</category></item><item><title>Twitter's auto follow script in ruby</title><description>&lt;a href="http://github.com/shenie/auto_follow/tree/master"&gt;Twitter's auto follow script in ruby&lt;/a&gt;: &lt;p&gt;As requested by &lt;a href="http://twitter.com/joshowens/statuses/846051862"&gt;Josh&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.shenie.info/post/40677121</link><guid>http://blog.shenie.info/post/40677121</guid><pubDate>Wed, 02 Jul 2008 21:28:55 +1000</pubDate></item><item><title>How to map a network drive</title><description>&lt;pre&gt;
net use x: \\{server}\d$  /USER:{server}\{username} {password}
&lt;/pre&gt;

&lt;p&gt;Basically says you want to map d: drive on {server} to your x: drive as the {username}, which is a login locally on {server}&lt;/p&gt;</description><link>http://blog.shenie.info/post/40403520</link><guid>http://blog.shenie.info/post/40403520</guid><pubDate>Mon, 30 Jun 2008 21:37:28 +1000</pubDate><category>windows</category><category>net</category><category>network</category></item><item><title>Apple &amp; Google's open web efforts</title><description>&lt;a href="http://www.roughlydrafted.com/2008/06/14/cocoa-for-windows-flash-killer-sproutcore/"&gt;Apple &amp; Google's open web efforts&lt;/a&gt;</description><link>http://blog.shenie.info/post/40011246</link><guid>http://blog.shenie.info/post/40011246</guid><pubDate>Fri, 27 Jun 2008 15:07:10 +1000</pubDate><category>google</category><category>apple</category><category>vm</category><category>openweb</category></item><item><title>How to decompile everything</title><description>&lt;p&gt;Quick script to decompile all the class files.&lt;/p&gt;

&lt;pre&gt;
find . -name "*.class" -not -name "*\$*" | while read class
do
  dir=`dirname $class`
  file=`basename $class .class`
  pushd $dir &gt;/dev/null
  jad -p ${file}.class &gt; ${file}.java
  popd &gt;/dev/null
done
&lt;/pre&gt;</description><link>http://blog.shenie.info/post/38256383</link><guid>http://blog.shenie.info/post/38256383</guid><pubDate>Fri, 13 Jun 2008 21:30:05 +1000</pubDate><category>java</category><category>scripting</category><category>shell</category><category>decompile</category></item><item><title>WOW! scary but pretty.</title><description>&lt;img src="http://25.media.tumblr.com/Rp426TxkO9vwceijixVk7kgR_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;WOW! scary but pretty.&lt;/p&gt;</description><link>http://blog.shenie.info/post/37358925</link><guid>http://blog.shenie.info/post/37358925</guid><pubDate>Fri, 06 Jun 2008 15:39:24 +1000</pubDate><category>interesting</category></item><item><title>OS X's ruby framework</title><description>&lt;p&gt;I think new version of ruby is meant to be installed with the following prefix, using 1.8.7 as an example.&lt;/p&gt;

&lt;p&gt;/System/Library/Frameworks/Ruby.framework/Versions/1.8.7/usr&lt;/p&gt;

&lt;p&gt;That way you can just /System/Library/Frameworks/Ruby.framework/Versions/Current to the version you want.&lt;/p&gt;</description><link>http://blog.shenie.info/post/37270901</link><guid>http://blog.shenie.info/post/37270901</guid><pubDate>Thu, 05 Jun 2008 23:15:00 +1000</pubDate><category>ruby</category><category>os x</category></item><item><title>How to revert back to os x ruby framework</title><description>&lt;p&gt;As I mentioned before, I upgraded to ruby 1.8.7 and decided to use —prefix=/usr, i.e. overwriting existing ruby 1.8.6. Big mistake. After some issues I decided to roll back completely.&lt;/p&gt;

&lt;p&gt;This is what I did (luckily I can copy the required files from my wife’s Macbook).&lt;/p&gt;

&lt;h3&gt;OS X ruby framework overview&lt;/h3&gt;

&lt;p&gt;The framework is /System/Library/Frameworks/Ruby.framework&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;/usr/lib/ruby is a softlink to osx ruby framework&lt;/li&gt;
&lt;li&gt;osx ruby framework’s site_ruby is a softlinke to /Library/Ruby/Site&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;To fix&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;/usr/bin&lt;/li&gt;
&lt;li&gt;osx ruby framework&lt;/li&gt;
&lt;li&gt;/Library/Ruby/Site&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Actions&lt;/h3&gt;

&lt;p&gt;Rename the following directories then copy the same directories from another OS X&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;/System/Library/Frameworks/Ruby.framework&lt;/li&gt;
&lt;li&gt;/Library/Ruby/Site&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Make sure the following files are links to os x ruby framework’s /usr/bin&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;/usr/bin/erb&lt;/li&gt;
&lt;li&gt;/usr/bin/irb&lt;/li&gt;
&lt;li&gt;/usr/bin/rdoc&lt;/li&gt;
&lt;li&gt;/usr/bin/ri&lt;/li&gt;
&lt;li&gt;/usr/bin/ruby&lt;/li&gt;
&lt;li&gt;/usr/bin/testrb&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Cleanup&lt;/h3&gt;

&lt;p&gt;Remove these backup directories afterwards (once everything is ok)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;os x ruby framework .bak&lt;/li&gt;
&lt;li&gt;/Library/Ruby/Site.bak&lt;/li&gt;
&lt;li&gt;/usr/lib/ruby/site_ruby.bak&lt;/li&gt;
&lt;li&gt;/usr/lib/ruby/user-gems.bak&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;link /usr/lib/ruby/site_ruby to /Library/Ruby/Site&lt;/li&gt;
&lt;li&gt;link /usr/lib/ruby/user-gems to /Library/Ruby/Gems&lt;/li&gt;
&lt;/ul&gt;</description><link>http://blog.shenie.info/post/37270385</link><guid>http://blog.shenie.info/post/37270385</guid><pubDate>Thu, 05 Jun 2008 23:10:21 +1000</pubDate><category>ruby</category><category>osx</category></item><item><title>I give this 2 thumbs up :p</title><description>&lt;a href="http://www.cracked.com/article_16335_7-innocent-gestures-that-can-get-you-killed-overseas.html"&gt;I give this 2 thumbs up :p&lt;/a&gt;</description><link>http://blog.shenie.info/post/37233573</link><guid>http://blog.shenie.info/post/37233573</guid><pubDate>Thu, 05 Jun 2008 15:52:45 +1000</pubDate><category>interesting</category></item><item><title>Very interesting read about scentists</title><description>&lt;a href="http://listverse.com/science/top-10-scientists-killed-or-injured-by-their-experiments"&gt;Very interesting read about scentists&lt;/a&gt;</description><link>http://blog.shenie.info/post/37233481</link><guid>http://blog.shenie.info/post/37233481</guid><pubDate>Thu, 05 Jun 2008 15:51:21 +1000</pubDate><category>interesting</category></item><item><title>F*%#$in hell</title><description>&lt;a href="http://money.ninemsn.com.au/article.aspx?id=566800&amp;rss=yes"&gt;F*%#$in hell&lt;/a&gt;: &lt;p&gt;That’s one expensive apartment!!&lt;/p&gt;</description><link>http://blog.shenie.info/post/37231741</link><guid>http://blog.shenie.info/post/37231741</guid><pubDate>Thu, 05 Jun 2008 15:24:41 +1000</pubDate></item><item><title>Git shirt</title><description>&lt;a href="http://github.com/blog/79-github-shirts"&gt;Git shirt&lt;/a&gt;: &lt;p&gt;Oh Oh I want one!!&lt;/p&gt;</description><link>http://blog.shenie.info/post/37135532</link><guid>http://blog.shenie.info/post/37135532</guid><pubDate>Wed, 04 Jun 2008 22:03:42 +1000</pubDate><category>git</category></item></channel></rss>
