<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Flying Seagull - Home</title>
  <id>tag:www.flyingseagull.de,2010:mephisto/</id>
  <generator uri="http://mephistoblog.com" version="0.8.0">Mephisto Drax</generator>
  <link href="http://www.flyingseagull.de/feed/atom.xml" rel="self" type="application/atom+xml"/>
  <link href="http://www.flyingseagull.de/" rel="alternate" type="text/html"/>
  <updated>2010-03-25T14:50:10Z</updated>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2010-03-25:30</id>
    <published>2010-03-25T14:48:00Z</published>
    <updated>2010-03-25T14:50:10Z</updated>
    <category term="css"/>
    <category term="ctags"/>
    <category term="objc"/>
    <category term="objective-c"/>
    <link href="http://www.flyingseagull.de/2010/3/25/ctags-with-objective-c-and-css-support" rel="alternate" type="text/html"/>
    <title>ctags with objective-c and css support</title>
<content type="html">
            &lt;p&gt;The default ex-ctags package does not support css or obj-c tags.&lt;/p&gt;


	&lt;p&gt;I added the latest css and objective-c patches I could find to the current ctags trunk.&lt;/p&gt;


	&lt;p&gt;You can find it on my github page &lt;a href=&quot;http://github.com/fishman/ctags&quot;&gt;here&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;HTH&lt;/span&gt;&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2010-03-14:29</id>
    <published>2010-03-14T22:40:00Z</published>
    <updated>2010-03-14T22:44:29Z</updated>
    <category term="3g"/>
    <category term="eeepc"/>
    <category term="gtm378"/>
    <category term="hackintosh"/>
    <category term="hsdpa"/>
    <category term="option"/>
    <category term="osx"/>
    <category term="superfire"/>
    <link href="http://www.flyingseagull.de/2010/3/14/3g-modding-your-eee-1000he-hackintosh" rel="alternate" type="text/html"/>
    <title>3G-Modding your eee 1000he hackintosh</title>
<content type="html">
            &lt;p&gt;As some of you may know I&#8217;ve been using snow leopard on my eee 1000he for quite a while(You can still get the modded &lt;span class=&quot;caps&quot;&gt;DSDT I&lt;/span&gt; use on my system from my &lt;a href=&quot;http://github.com/fishman/dsdt&quot;&gt;github page&lt;/a&gt;)&lt;/p&gt;


	&lt;p&gt;Here&#8217;s a list of items I got myself:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;a sim card(yeah, you&#8217;ll laugh, I actually forgot about this part&#8230; :P)&lt;/li&gt;
		&lt;li&gt;a 3G minipci card. i used an &lt;a href=&quot;http://www.option.com/en/support/software-download/modules/gtm378e/&quot;&gt;Option 378&lt;/a&gt; which is quite cheap. I will explain later&#8230; Some people use a sierra wireless mc8775&lt;/li&gt;
		&lt;li&gt;a minipci socket, for example &lt;a href=&quot;http://de.farnell.com/jae/mm60-52b1-e1-r650/steckverbind-mini-pci-express-5/dp/1698821&quot;&gt;this one from farnell&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;a &lt;a href=&quot;http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&amp;amp;item=350240598320&amp;amp;ssPageName=STRK:MEWNX:IT&quot;&gt;sim slot 8 pin&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;I won&#8217;t cover the details on soldering the sim and minipci socket as it&#8217;s explained on the &lt;a href=&quot;http://forum.eeeuser.com/viewtopic.php?id=69038&quot;&gt;eeepc user forum&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;A word of advice before trying to solder the sockets onto the board. You might wanna scrape of the  surface of the solder pads on the mainboard first, as that will make it easier for you.&lt;/p&gt;


	&lt;p&gt;As described on the &lt;a href=&quot;http://forum.eeeuser.com/viewtopic.php?id=69038&quot;&gt;forum&lt;/a&gt; post you&#8217;ll need to short the 3.3V line the &lt;span class=&quot;caps&quot;&gt;USB&lt;/span&gt; lines and a fourth one for powering up the minipci socket aside from soldering the sim slot.&lt;/p&gt;


	&lt;p&gt;The images below are a courtesy of dementho from the eee forums:&lt;/p&gt;


	&lt;p&gt;


&lt;/p&gt;


	&lt;p&gt;The real issue arose when I actually tried to initialize the card in MacOS. Turns out the Option cards start in ZeroCD mode and need to be initialized in modem mode prior to be usable. Well, normally you would just install the driver and be done with it but not so with normal unlocked &lt;span class=&quot;caps&quot;&gt;GTM378&lt;/span&gt; cards you buy on ebay.&lt;/p&gt;


	&lt;p&gt;My &lt;span class=&quot;caps&quot;&gt;GTM378&lt;/span&gt; card came with an old firmware. So the vendor id was 0&#215;5c6(qualcomm) and product id 0&#215;1000, whereas the vendorId should be 0&#215;0af0(Option NV). Naturally the Globesurfer 7.2 osx drivers don&#8217;t work with this device. Not even if you hardcode the product and device id into the drivers plists.&lt;/p&gt;


	&lt;p&gt;The solution is to debrand your &lt;span class=&quot;caps&quot;&gt;GTM378&lt;/span&gt; by finding the superfire firmware of any &lt;span class=&quot;caps&quot;&gt;GTM378&lt;/span&gt; card and patching it to accept your card as target. That is Globesurfer &lt;span class=&quot;caps&quot;&gt;ICON 7&lt;/span&gt;.2 and a whole bunch of others. &lt;a href=&quot;http://www.flyingseagull.de/assets/option_superfire.exe&quot;&gt;The firmware I have here is 2.5.11hD I think.&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Enable logging in the updater:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
  8.144: CPagePreparation::Do, Zaltys detected properly
 14.618: CPagePreparation::Do, product:  GlobeSurfer ICON 7.2 E.
 14.618: CPagePreparation::Do, code:  MO0201-10959.
 14.618: CPagePreparation::Do: unsupported card (MO0201-10959).
&lt;/pre&gt;

&lt;span class=&quot;caps&quot;&gt;MO0201&lt;/span&gt;-10959 is your target. search for
&lt;pre class=&quot;blackboard&quot;&gt;
5400610068006f006d0061
&lt;/pre&gt;
which is essentially Tahoma in hex. The second occurance should lead you to your target. See below:

	&lt;p&gt;&lt;/p&gt;


	&lt;p&gt;Open the installer in a hex editor and write your card id in the installer. &lt;a href=&quot;http://www.flyingseagull.de/assets/option_superfire.exe&quot;&gt;I uploaded the firmware here.&lt;/a&gt; That should allow you to upgrade your card without problems. After that you can download the snow leopard drivers from the &lt;a href=&quot;http://www.option.com/en/support/software-download/usb-modems/icon225/&quot;&gt;&lt;span class=&quot;caps&quot;&gt;ICON 225&lt;/span&gt; support page&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Ironically they work fine with the &lt;span class=&quot;caps&quot;&gt;GTM378&lt;/span&gt; and fix a lot of issues the &lt;span class=&quot;caps&quot;&gt;GTM378&lt;/span&gt; and &lt;span class=&quot;caps&quot;&gt;ICON 7&lt;/span&gt;.2 drivers have(since they&#8217;re essentially the same just newer).&lt;/p&gt;


	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;HTH&lt;/span&gt;&lt;/p&gt;


	&lt;p&gt;... as for me, I&#8217;m enjoying the 3g mod on my hackintosh!&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-06-25:27</id>
    <published>2009-06-25T20:29:00Z</published>
    <updated>2009-10-13T10:28:46Z</updated>
    <category term="erlang"/>
    <category term="rabbitmq"/>
    <category term="ubuntu"/>
    <link href="http://www.flyingseagull.de/2009/6/25/rabbitmq-erlang-crash" rel="alternate" type="text/html"/>
    <title>rabbitmq erlang crash</title>
<content type="html">
            &lt;p&gt;So, we&#8217;ve been at the reboot:http://reboot.dk for a while now and it&#8217;s been a fun time until I decided to rename one of the nodes.&lt;/p&gt;


	&lt;p&gt;Guess what&#8230; suddenly rabbitmq stops working. Apparently the database stops working, when you change your hostname. Just running:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
rabbitmq-server --install
&lt;/pre&gt;

	&lt;p&gt;will still crash with the same error.&lt;/p&gt;


	&lt;p&gt;The solution is to delete:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
rm -rf /var/lib/rabbitmq/mnesia/rabbit
&lt;/pre&gt;

	&lt;p&gt;and rerun rabbitmq install.&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
rabbitmq-server --install
&lt;/pre&gt;

	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;HTH&lt;/span&gt;&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-05-21:26</id>
    <published>2009-05-21T20:40:00Z</published>
    <updated>2009-05-22T11:43:39Z</updated>
    <category term="awesome"/>
    <category term="gentoo"/>
    <category term="osx"/>
    <link href="http://www.flyingseagull.de/2009/5/21/awesome-with-gentoo-prefix" rel="alternate" type="text/html"/>
    <title>awesome with gentoo-prefix</title>
<content type="html">
            &lt;p&gt;I just updated a whole bunch of ebuilds for gentoo-prefix you can &lt;a href=&quot;http://github.com/fishman/timebomb-gentoo-osx-overlay/tree/master&quot;&gt;find the overlay here.&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Just clone it and put it somewhere in your &lt;strong&gt;$EPREFIX/usr/local/portage&lt;/strong&gt; then add that folder to your make.conf&lt;/p&gt;


	&lt;p&gt;In my case the make.conf looks as follows:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
USE=&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;unicode nls ruby perl xterm-color X&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
USE=&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;USE&lt;/span&gt; xcb svg&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
USE=&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;USE&lt;/span&gt; png jpeg mmx bzip2&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
CFLAGS=&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;-O2 -pipe -march=nocona&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
CXXFLAGS=&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;${&lt;/span&gt;CFLAGS&lt;span class=&quot;Variable&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
PORTDIR_OVERLAY=&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;/opt/local/gentoo/usr/local/portage/my-overlay&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;

	&lt;p&gt;Then simply doing a:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
emerge hsetroot
USE=osx emerge awesome rxvt-unicode
&lt;/pre&gt;

	&lt;p&gt;Instead of &lt;span class=&quot;caps&quot;&gt;USE&lt;/span&gt;=osx you could also do a:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
mkdir -p &lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;EPREFIX&lt;/span&gt;/etc/portage/package.use
echo &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;x11-terms/rxvt-unicode osx&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;EPREFIX&lt;/span&gt;/etc/portage/package.use/rxvt
&lt;/pre&gt;

	&lt;p&gt;Anyway, that should be enough to install awesome 3.2.1 and rxvt-unicode with copy&#38;paste support for osx.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-05-20:23</id>
    <published>2009-05-20T09:46:00Z</published>
    <updated>2009-08-22T18:01:16Z</updated>
    <category term="fink"/>
    <category term="gentoo"/>
    <category term="gentoo-osx"/>
    <category term="gentoo-prefix"/>
    <category term="macports"/>
    <category term="osx"/>
    <link href="http://www.flyingseagull.de/2009/5/20/gentoo-on-os-x" rel="alternate" type="text/html"/>
    <title>gentoo osx</title>
<content type="html">
            &lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I also forgot to run the &lt;strong&gt;emerge -u world&lt;/strong&gt; after the bootstrap. So you might want to do that yourself.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Update2:&lt;/strong&gt; if libXt fails to build try &lt;pre&gt;emerge '&amp;lt;automake-1.10'&lt;/pre&gt;&lt;/p&gt;


	&lt;p&gt;So, I was growing more and more tired of fink and macports and hoping that there something portage like for osx.&lt;/p&gt;


	&lt;p&gt;I looked around and found &lt;a href=&quot;http://www.gentoo.org/proj/en/gentoo-alt/macos/&quot;&gt;this&lt;/a&gt; article on gentoo-macos, which seemed bad. But after a quick visit in the #gentoo irc channel it turned out that gentoo-mac had been merged into gentoo prefix.&lt;/p&gt;


	&lt;p&gt;There is a nice &lt;a href=&quot;http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml&quot;&gt;tutorial on getting gentoo-prefix running on macosx.&lt;/a&gt; It&#8217;s pretty straightforward&#8230;&lt;/p&gt;


	&lt;p&gt;However, to save you guys some compilation and setup time, I packaged my &#8220;somewhat stage3&#8221; of the gentoo folder and uploaded it. &lt;a href=&quot;/assets/gentoo-prefix-20052009.tar.bz2&quot;&gt;You can download it here.&lt;/a&gt; It contains pretty much the base system and also mysql5, git, svn and git-svn. No ruby but just emerge it as you please.&lt;/p&gt;


	&lt;p&gt;Extract it and put something along these lines into your shell config:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
&lt;span class=&quot;Storage&quot;&gt;export&lt;/span&gt; EPREFIX=&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;/opt/local/gentoo&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;Storage&quot;&gt;export&lt;/span&gt; PATH=&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;EPREFIX&lt;/span&gt;/usr/bin:&lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;EPREFIX&lt;/span&gt;/bin:&lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;EPREFIX&lt;/span&gt;/tmp/usr/bin:&lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;EPREFIX&lt;/span&gt;/tmp/bin:&lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;PATH&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;

	&lt;p&gt;I know /opt/local/gentoo wasn&#8217;t such a wise choice but well whatever.&lt;/p&gt;


	&lt;p&gt;A couple of caveats:&lt;/p&gt;


	&lt;ol&gt;
	&lt;li&gt;You need to be on leopard with a core2duo with my package&lt;/li&gt;
		&lt;li&gt;glib doesn&#8217;t get paste the automake on my system(which is obviously bad). However, looking into it. &lt;strong&gt;&lt;span class=&quot;caps&quot;&gt;UPDATE&lt;/span&gt;&lt;/strong&gt; if it still doesn&#8217;t work just &lt;strong&gt;emerge gtk-doc-am&lt;/strong&gt;&lt;/li&gt;
		&lt;li&gt;Seems like xcb is masked. Will let you know if I find out why &lt;strong&gt;&lt;span class=&quot;caps&quot;&gt;UPDATE&lt;/span&gt;&lt;/strong&gt; xcb works fine&lt;/li&gt;
		&lt;li&gt;pango doesn&#8217;t detect Xquartz cairo. Ie. gentoo portage is not as tolerant as macports using pkgconfig files from whereever they&#8217;re installed on your system. Don&#8217;t get me wrong, this is actually a good thing. I&#8217;ll make an ebuild in time I guess. &lt;strong&gt;&lt;span class=&quot;caps&quot;&gt;UPDATE&lt;/span&gt;&lt;/strong&gt; no problem either, the pango package was broken, but its fixed now&lt;/li&gt;
	&lt;/ol&gt;


	&lt;p&gt;Another useful link for &#8216;creating&#8217; your own packages with ecopy is &lt;a href=&quot;http://www.gentoo.org/proj/en/gentoo-alt/prefix/ecopy.xml&quot;&gt;available here.&lt;/a&gt;
For the tutorial on that page you will also need to install(emerge) the following:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
emerge portage-utils
emerge gentoolkit-dev
&lt;/pre&gt;

	&lt;p&gt;Oh and&#8230; I think it&#8217;s already emerge&#8217;d in the &#8220;stage3&#8221; I uploaded&#8230;&lt;/p&gt;


	&lt;p&gt;hope you like it. I know I do.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-04-26:19</id>
    <published>2009-04-26T17:43:00Z</published>
    <updated>2009-05-02T11:47:37Z</updated>
    <category term="applescript"/>
    <category term="finder"/>
    <category term="osx"/>
    <category term="urxvt"/>
    <category term="vim"/>
    <link href="http://www.flyingseagull.de/2009/4/26/open-urxvt-here-and-open-in-vim-applescript" rel="alternate" type="text/html"/>
    <title>open urxvt here and open in vim applescript</title>
<content type="html">
            &lt;p&gt;Update: noticed a little bug in the script, the right way to do it should be this:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
    &lt;span class=&quot;Keyword&quot;&gt;set&lt;/span&gt; disp_no &lt;span class=&quot;Keyword&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;Support&quot;&gt;do shell script&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;disp_no=($( ps -awx | grep -F 'bin/X' | awk '{print $(NF-2)}' | grep -e &lt;span class=&quot;Constant&quot;&gt;\&amp;quot;&lt;/span&gt;:[0-9]&lt;span class=&quot;Constant&quot;&gt;\&amp;quot;&lt;/span&gt;  )); if [[ -n $disp_no ]];then DISPLAY=${disp_no}.0; else DISPLAY=:0.0; fi;echo $DISPLAY&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;

	&lt;p&gt;if you have tcp forward off, maybe without $NF if it&#8217;s enabled but anyway grep -F &lt;span class=&quot;caps&quot;&gt;X11&lt;/span&gt;.app won&#8217;t work with newer X versions&lt;/p&gt;


	&lt;p&gt;If you don&#8217;t already know I use x11 and a selfcompiled terminal version of vim for all my work. If you&#8217;re in OS-X you might still want to run text files in your favorite editor, and have the ability to open the terminal in the current finder version for whatever reason.&lt;/p&gt;


	&lt;p&gt;I started using Fastscripts Light a long time ago and it&#8217;s a pretty nifty little app. The applescript is based a bit on the &lt;a href=&quot;http://www.entropy.ch/software/applescript&quot;&gt;OpenInTerminal&lt;/a&gt; applescript.&lt;/p&gt;


	&lt;p&gt;However, for some reason when I run the scripts from &lt;a href=&quot;http://www.red-sweater.com/fastscripts/&quot;&gt;Fastscripts&lt;/a&gt; via hotkey the &lt;span class=&quot;caps&quot;&gt;DISPLAY&lt;/span&gt; variable is wrong as follows:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
/tmp/launch-9el5tK/:0
&lt;/pre&gt;

	&lt;p&gt;I use the following in my shell config files(sorry, it&#8217;s not really mine, but I have no idea who I got it from)&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
&lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt; Set the DISPLAY variable -- works for Apple X11 with Fast User Switching&lt;/span&gt;

&lt;span class=&quot;Keyword&quot;&gt;if&lt;/span&gt; [[ -z &lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;DISPLAY&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; -z &lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;SSH_CONNECTION&lt;/span&gt; ]]&lt;span class=&quot;Keyword&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;then&lt;/span&gt;
    disp_no=(&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;$(&lt;/span&gt; ps -awx &lt;span class=&quot;Keyword&quot;&gt;|&lt;/span&gt; grep -F X11.app &lt;span class=&quot;Keyword&quot;&gt;|&lt;/span&gt; awk &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;{print $NF}&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;|&lt;/span&gt; grep -e &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;:[0-9]&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;  &lt;span class=&quot;String&quot;&gt;)&lt;/span&gt;&lt;/span&gt;)
    &lt;span class=&quot;Keyword&quot;&gt;if&lt;/span&gt; [[ -n &lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;disp_no&lt;/span&gt; ]]&lt;span class=&quot;Keyword&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;Keyword&quot;&gt;then&lt;/span&gt;
        &lt;span class=&quot;Storage&quot;&gt;export&lt;/span&gt; DISPLAY=&lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;${&lt;/span&gt;disp_no&lt;span class=&quot;Variable&quot;&gt;}&lt;/span&gt;&lt;/span&gt;.0
    &lt;span class=&quot;Keyword&quot;&gt;else&lt;/span&gt;
        &lt;span class=&quot;Storage&quot;&gt;export&lt;/span&gt; DISPLAY=:0.0
    &lt;span class=&quot;Keyword&quot;&gt;fi&lt;/span&gt;
    echo &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;DISPLAY has been set to &lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;DISPLAY&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;Keyword&quot;&gt;fi&lt;/span&gt;
&lt;/pre&gt;

	&lt;p&gt;Anyway, the to fix the openinrxvt all you need to do is change it the following way:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
    disp_no=(&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;$(&lt;/span&gt; ps -awx &lt;span class=&quot;Keyword&quot;&gt;|&lt;/span&gt; grep -F X11.app &lt;span class=&quot;Keyword&quot;&gt;|&lt;/span&gt; awk &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;{print $NF}&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;|&lt;/span&gt; grep -e &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;:[0-9]&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;  &lt;span class=&quot;String&quot;&gt;)&lt;/span&gt;&lt;/span&gt;)
    &lt;span class=&quot;Keyword&quot;&gt;if&lt;/span&gt; [[ -n &lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;disp_no&lt;/span&gt; ]]&lt;span class=&quot;Keyword&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;Keyword&quot;&gt;then&lt;/span&gt;
        DISPLAY=&lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;${&lt;/span&gt;disp_no&lt;span class=&quot;Variable&quot;&gt;}&lt;/span&gt;&lt;/span&gt;.0
    &lt;span class=&quot;Keyword&quot;&gt;else&lt;/span&gt;
        DISPLAY=:0.0
    &lt;span class=&quot;Keyword&quot;&gt;fi&lt;/span&gt;
    echo &lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;DISPLAY&lt;/span&gt;
&lt;/pre&gt;

	&lt;p&gt;compressed, the Applescript looks as follows:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
    &lt;span class=&quot;Keyword&quot;&gt;set&lt;/span&gt; disp_no &lt;span class=&quot;Keyword&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;Support&quot;&gt;do shell script&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;disp_no=($( ps -awx | grep -F X11.app | awk '{print $NF}' | grep -e &lt;span class=&quot;Constant&quot;&gt;\&amp;quot;&lt;/span&gt;:[0-9]&lt;span class=&quot;Constant&quot;&gt;\&amp;quot;&lt;/span&gt;  )); if [[ -n $disp_no ]];then DISPLAY=${disp_no}.0; else DISPLAY=:0.0; fi;echo $DISPLAY&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;

    &lt;span class=&quot;Support&quot;&gt;do shell script&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;env DISPLAY=&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt; disp_no &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt; /opt/local/bin/urxvt -cd '&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt; the_path &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;' &amp;amp;&amp;gt; /dev/null &amp;amp;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;Keyword&quot;&gt;tell&lt;/span&gt; &lt;span class=&quot;Support&quot;&gt;application&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;X11&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;to&lt;/span&gt; activate
&lt;/pre&gt;    

	&lt;p&gt;Running vim is pretty much the same except that you will need to compile a console version with the server option, and then run the original instance with&#8212;servername &lt;span class=&quot;caps&quot;&gt;VIM&lt;/span&gt; (or whatever servername you might want to use).&lt;/p&gt;


	&lt;p&gt;The relevant launch part of the Applescript looks like this:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
    &lt;span class=&quot;Support&quot;&gt;do shell script&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;env DISPLAY=&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt; disp_no &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt; /opt/local/vim/bin/vim --remote &lt;span class=&quot;Constant&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt; the_path &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;Constant&quot;&gt;\&amp;quot;&lt;/span&gt; &amp;amp;&amp;gt; /dev/null &amp;amp;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;

	&lt;p&gt;You can get the complete &lt;a href=&quot;/assets/openinrxvt.scpt&quot;&gt;openinrxvt script here&lt;/a&gt; and the &lt;a href=&quot;/assets/edit_in_vim.scpt&quot;&gt;run in vim script here&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;After you place them into your ~/Library/Scripts/Applications/Finder folder you can use Fastscripts:fastscripts to create Finder specific hotkeys.&lt;/p&gt;


	&lt;p&gt;You might also be interested in a modified version of the script that uses the client/daemon set up of urxvt, which I talked about earlier.&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
    &lt;span class=&quot;Support&quot;&gt;do shell script&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;env RXVT_SOCKET=$HOME/.rxvt_socket DISPLAY=&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt; disp_no &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt; /opt/local/bin/urxvtc -cd '&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt; the_path &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;' &amp;amp;&amp;gt; /dev/null &amp;amp;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-04-25:18</id>
    <published>2009-04-25T16:43:00Z</published>
    <updated>2009-05-01T14:47:07Z</updated>
    <category term="cutehg"/>
    <category term="mercurial"/>
    <category term="murky"/>
    <category term="osx"/>
    <category term="python"/>
    <category term="utf8"/>
    <link href="http://www.flyingseagull.de/2009/4/25/cute-hg-in-os-x" rel="alternate" type="text/html"/>
    <title>cutehg in OSX</title>
<content type="html">
            &lt;p&gt;&lt;span class=&quot;caps&quot;&gt;UPDATE&lt;/span&gt;: &lt;a href=&quot;http://bitbucket.org/snej/murky/wiki/Home&quot;&gt;murky&lt;/a&gt; native osx mercurial client is out&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
sed -i &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; -e &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;s/port:tk//&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python26/Portfile

sudo port install python26
sudo port install py26-sip
&lt;/pre&gt;

	&lt;p&gt;Pyqt4  seemed to have problems with qt4.5 so I installed it with the QT available from the Trolltech website.&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
wget http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.4.4.tar.gz
tar xzvf PyQt-mac-gpl-4.4.4.tar.gz
cd PyQt-mac-gpl-4.4.4
python2.6 ./configure.py -q /Developer/Tools/Qt/qmake
make install

hg clone http://bitbucket.org/bfrog/cutehg-stable/
cd cutehg-stable
python2.6 setup.py install
&lt;/pre&gt;

	&lt;p&gt;After you install everything you might get an annoying bug looking as follows while using the annotate or history command:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
UnicodeEncodeError: &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;ascii&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; codec can&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;t encode characters in position 0-1: ordinal not in range(128) pyqt4&lt;/span&gt;
&lt;/pre&gt;

	&lt;p&gt;checking the python shell gives this:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
python2.6
&lt;span class=&quot;Keyword&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;Keyword&quot;&gt;&amp;gt;&lt;/span&gt; import sys
&lt;span class=&quot;Keyword&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;Keyword&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;Entity&quot;&gt;sys.getdefaultencoding&lt;/span&gt;()
&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;ascii&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;

	&lt;p&gt;This is easily fixed by doing:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
echo &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;import sys&lt;/span&gt;
&lt;span class=&quot;String&quot;&gt;sys.setdefaultencoding('utf-8')&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;&amp;gt;&lt;/span&gt; /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/sitecustomize.py
&lt;/pre&gt;

	&lt;p&gt;What i don&#8217;t really get is why python won&#8217;t just use my LC_LOCALE/ALL but whatever.&lt;/p&gt;


	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;HTH&lt;/span&gt;&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-04-09:17</id>
    <published>2009-04-09T20:16:00Z</published>
    <updated>2009-04-09T20:22:02Z</updated>
    <category term="github"/>
    <category term="textmate"/>
    <category term="vim"/>
    <link href="http://www.flyingseagull.de/2009/4/9/viinutmate-on-github" rel="alternate" type="text/html"/>
    <title>ViInutMate on github</title>
<content type="html">
            &lt;p&gt;I noticed some people try to reach that viinputmate page,  which was supposed to be a better vi plugin for textmate but there&#8217;s nothing on it&#8230;&lt;/p&gt;


	&lt;p&gt;Well, I never bothered &#8220;finishing&#8221; it. I did just push what I had on github though. However, since I didn&#8217;t version anything it&#8217;s just a big blob difference from the sourceforge thing. Maybe you&#8217;ll have some use for it, but I pretty much abandoned it a long time ago.&lt;/p&gt;


	&lt;p&gt;Anyway, long story short here it is:
&lt;a href=&quot;http://github.com/fishman/viinputmate/tree/viinputmate&quot;&gt;http://github.com/fishman/viinputmate/tree/viinputmate&lt;/a&gt;&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-04-09:16</id>
    <published>2009-04-09T09:53:00Z</published>
    <updated>2009-04-09T09:59:07Z</updated>
    <category term="fuzzyfinder"/>
    <category term="rails"/>
    <category term="ror"/>
    <category term="ruby"/>
    <category term="vim"/>
    <link href="http://www.flyingseagull.de/2009/4/9/vim-rails" rel="alternate" type="text/html"/>
    <title>Vim &amp; Rails</title>
<content type="html">
            &lt;p&gt;I did a little write up on my general vim workflow and presented it at the &lt;a href=&quot;http://www.rubyonrails-ug.de/wiki/hamburgsync&quot;&gt;hamburg rails user group meeting&lt;/a&gt; . I didn&#8217;t quite manage to get it as smooth as I originally planned, but anyway you can find the slides &lt;a href=&quot;/assets/vim-rails.pdf&quot;&gt;here&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;It was intended to be more like Andrei Zmievski &lt;a href=&quot;http://gravitonic.com/2007/02/vim-for-php-programmers-slides-and-resources&quot;&gt;&lt;span class=&quot;caps&quot;&gt;VIM&lt;/span&gt; for (PHP) programmers&lt;/a&gt; but well, maybe next time.&lt;/p&gt;


	&lt;p&gt;I&#8217;ll probably focus more on getting a fast &lt;span class=&quot;caps&quot;&gt;WOW&lt;/span&gt;! effect on the listeners and then let them ask the questions themselves, instead of trying to explain everything and failing because I keep finding new, interesting things to show&#8230;&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-03-31:15</id>
    <published>2009-03-31T10:29:00Z</published>
    <updated>2009-03-31T11:47:33Z</updated>
    <category term="crapmail"/>
    <category term="entourage"/>
    <category term="osx"/>
    <category term="outlook"/>
    <category term="threads"/>
    <link href="http://www.flyingseagull.de/2009/3/31/organizing-entourage-in-threads" rel="alternate" type="text/html"/>
    <title>Organizing Entourage in Threads</title>
<content type="html">
            &lt;p&gt;&lt;span class=&quot;caps&quot;&gt;UPDATE&lt;/span&gt;: &lt;a href=&quot;http://office.microsoft.com/en-us/outlook/HA011357041033.aspx&quot;&gt;it&#8217;s a lot easier in outlook 2003 since group by conversation actually works as advertised&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Everybody knows Outlook and most people know Entourage(the crappy osx version of Outlook). I call them the worst possible way of managing your email.&lt;/p&gt;


	&lt;p&gt;Why? Because by default the grouped email view does not group them by threads!&lt;/p&gt;


	&lt;p&gt;I&#8217;ve had some lengthy discussions with a good friend of mine I&#8217;m working with about he should group his mails by threads. But guess what, turns out I&#8217;m wrong. Entourage doesn&#8217;t even allow you to do that out of the box. But fear not young padawan there is a way(well at least somewhat &#8230;)&lt;/p&gt;


	&lt;p&gt;Default Entourage looks like this:
&lt;/p&gt;


	&lt;p&gt;After adding a custom sort condition it looks like this:&lt;/p&gt;


	&lt;p&gt;&lt;/p&gt;


	&lt;p&gt;It&#8217;s quite simple:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;click on the arrange and click on &lt;strong&gt;Edit Custom Arrangements&#8230;&lt;/strong&gt;&lt;/li&gt;
		&lt;li&gt;click on New to create a new arrangement&lt;/li&gt;
		&lt;li&gt;Name it threaded view or whatever&lt;/li&gt;
		&lt;li&gt;set group items by: Conversation&lt;/li&gt;
		&lt;li&gt;set sort groups by &lt;strong&gt;Received&lt;/strong&gt; &lt;strong&gt;Newest on top&lt;/strong&gt;&lt;/li&gt;
		&lt;li&gt;set sort items within groups by &lt;strong&gt;Conversation Index&lt;/strong&gt; &lt;strong&gt;Newest on top&lt;/strong&gt;&lt;/li&gt;
		&lt;li&gt;set default display for groups: &lt;strong&gt;Collapsed&lt;/strong&gt; &lt;/li&gt;
		&lt;li&gt;click ok&lt;/li&gt;
		&lt;li&gt;right click on arrange again and select threaded view&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;The only thing you need to do now is convince your coworkers to set their reply header to not append infinite amounts of AW: in front of their messages since this crappy outlook clone will make a thread for each one of them, meaning that you can actually have a thead with AW: AW: AW: random trash RE: AW: AW: AW: random trash thanks to outlook or outlook express users.&lt;/p&gt;


	&lt;p&gt;Have fun&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-03-02:14</id>
    <published>2009-03-02T23:21:00Z</published>
    <updated>2009-03-02T23:23:21Z</updated>
    <link href="http://www.flyingseagull.de/2009/3/2/blog-redesign" rel="alternate" type="text/html"/>
    <title>Blog redesign...</title>
<content type="html">
            &lt;p&gt;As you can see I changed a lot on the site. It&#8217;s not yet completely working but it&#8217;s coming, so bear with me please&#8230;&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-02-21:1</id>
    <published>2009-02-21T07:04:00Z</published>
    <updated>2009-03-02T22:15:21Z</updated>
    <category term="osx"/>
    <category term="screen"/>
    <category term="urxvt"/>
    <link href="http://www.flyingseagull.de/2009/2/21/a-prettier-terminal-in-os-x-part-3-urxvt-and-screen" rel="alternate" type="text/html"/>
    <title>A prettier Terminal in OS-X Part 3 (urxvt and screen)</title>
<content type="html">
            &lt;p&gt;I was a bit annoyed of having to set &lt;span class=&quot;caps&quot;&gt;TERM&lt;/span&gt;=xterm-256color. A more or less proper solution can be found on the rxvt-unicode ml from John Eikenberry.&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
cd &lt;span class=&quot;Keyword&quot;&gt;~&lt;/span&gt;
infocmp -L rxvt-unicode &lt;span class=&quot;Keyword&quot;&gt;&amp;gt;&lt;/span&gt; rxvt-unicode.terminfo
sed -i &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;s/#256/#32767/&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; rxvt-unicode.terminfo
sed -i &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;s/#88/#256/&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; rxvt-unicode.terminfo
&lt;span class=&quot;Keyword&quot;&gt;if&lt;/span&gt; [ &lt;span class=&quot;Keyword&quot;&gt;!&lt;/span&gt; -e .terminfo ]&lt;span class=&quot;Keyword&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;then&lt;/span&gt;
mkdir .terminfo
&lt;span class=&quot;Keyword&quot;&gt;fi&lt;/span&gt;
tic -o .terminfo/ rxvt-unicode.terminfo
rm rxvt-unicode.terminfo
&lt;/pre&gt;

	&lt;p&gt;I&#8217;ve also largely assimilated Bart&#8217;s configs. You can find them and the screenrc &lt;a href=&quot;http://github.com/fishman/dot_files&quot;&gt;here&lt;/a&gt; .&lt;/p&gt;


	&lt;p&gt;hf&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-02-14:2</id>
    <published>2009-02-14T08:54:00Z</published>
    <updated>2010-04-21T08:04:28Z</updated>
    <category term="awesome"/>
    <category term="urxvt"/>
    <category term="xquartz"/>
    <link href="http://www.flyingseagull.de/2009/2/14/a-prettier-terminal-in-os-x-part-2-urxvt-and-more-awesomeness" rel="alternate" type="text/html"/>
    <title>A prettier Terminal in OS-X Part 2 (urxvt and more awesomeness)</title>
<content type="html">
            Update: thanks to Sung Pae you don&#8217;t need to rename perl, you can just set the environment variable:
&lt;pre class=&quot;blackboard&quot;&gt;
    PERL=/usr/bin/perl ./configure --foo --bar ...
&lt;/pre&gt;

	&lt;p&gt;Update2: you also no longer need the system perl at all along with the double free patch. since my own macosx-clipboard got released with urxvt 9.07 see the &lt;a href=&quot;http://dist.schmorp.de/rxvt-unicode/Changes&quot;&gt;changelog here&lt;/a&gt;
it does depend on &lt;a href=&quot;http://search.cpan.org/dist/Mac-Pasteboard/&quot;&gt;Mac-Pasteboard&lt;/a&gt; though.&lt;/p&gt;


	&lt;p&gt;Last time I explained a bit on how to get awesome going.
There is a few tuning settings you can do for better awesome usage&#8230;&lt;/p&gt;


	&lt;p&gt;First of all I like the snap font frome the &lt;a href=&quot;http://artwizaleczapka.sourceforge.net/&quot;&gt;artwiz&lt;/a&gt; package for my title bar:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
mkdir &lt;span class=&quot;Keyword&quot;&gt;~&lt;/span&gt;/.fonts
wget http://www.flyingseagull.de/blog/assets/artwiz-aleczapka-en-1.3.tar.bz2
tar xjvf artwiz-aleczapka-en-1.3.tar.bz2
mv artwiz-aleczapka-en-1.3/snap.pcf &lt;span class=&quot;Keyword&quot;&gt;~&lt;/span&gt;/.fonts
fc-cache -fv &lt;span class=&quot;Keyword&quot;&gt;~&lt;/span&gt;/.fonts
&lt;/pre&gt;

	&lt;p&gt;Second you might like to have the right apple key as mod and the left one as alt. That way you can have awesome use it&#8217;s hotkeys using mod2 and have programs like irssi hook the left apple key as alt while letting your option key work for apostrophes and the like. Note that I use us dvorak as default layout and thus don&#8217;t have äöü etc. directly on the keyboard&#8230; So &lt;span class=&quot;caps&quot;&gt;YMMV&lt;/span&gt; and you might want to adjust the following to your needs. I use the following in my ~/.xmodmap&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
&lt;span class=&quot;Keyword&quot;&gt;!&lt;/span&gt; left apple key becomes alt 
&lt;span class=&quot;Keyword&quot;&gt;!&lt;/span&gt; and right one stays meta
clear mod1
clear mod2
keycode 71 = Alt_L
add mod2 = Alt_L
keycode 63 = Meta_L
add mod1 = Meta_L
&lt;/pre&gt;

	&lt;p&gt;I have attached my &lt;a href=&quot;/assets/Xdefaults&quot;&gt;Xdefaults&lt;/a&gt; and &lt;a href=&quot;/assets/awesomerc&quot;&gt;awesomerc&lt;/a&gt;. After disabling the &#8220;Enable key equivalents under &lt;span class=&quot;caps&quot;&gt;X11&lt;/span&gt;&#8221; in Xquartz preferences you can bind awesome keys the way you want them. With my config, leaving &lt;span class=&quot;caps&quot;&gt;X11&lt;/span&gt; would be apple-shift-w. The reason I don&#8217;t use Apple-Q is that there is no prompt on exit and in very rare cases the Apple-Q gets passed through from another app you close on top of Xquartz. Apple-W properly closes windows and so on. You should just check the config for the hotkeys.&lt;/p&gt;


	&lt;p&gt;Oh and don&#8217;t forget to do a:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
sed -i &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;s/timebomb/YOURUSER/g&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;~&lt;/span&gt;/.Xdefaults
&lt;/pre&gt;

	&lt;p&gt;if you decide to use my Xdefaults.&lt;/p&gt;


	&lt;p&gt;You should also disable the xterm autolaunch in Xquartz. As the &lt;a href=&quot;http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ&quot;&gt;UserFAQ&lt;/a&gt; states the following should do the trick:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
defaults write org.x.X11 app_to_run /usr/bin/true
&lt;/pre&gt;

	&lt;p&gt;Personally I use terminus-font for coding and terminal activity. You can install it with:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
sudo port install terminus-font
&lt;/pre&gt;

	&lt;p&gt;Again, you might, or might not like it, in which case you will probably like to change your terminals font in the Xdefaults after copying it to ~/.Xdefaults.&lt;/p&gt;


	&lt;p&gt;Now if you look at my past post, I launch urxvtd in my xinitrc and my awesomerc refers to urxvtc and you might wonder wtf is does, as I did. Well, basically it will just launch one urxvt daemon and many clients. That way the memory usage gets cut down by a lot and the launch times drop a lot too.&lt;/p&gt;


	&lt;p&gt;Now there is a little issue with urxvt in osx. If you install it through macports it will use macports perl. Why is that such a problem? As far as I know it doesn&#8217;t include the obj-c bindings. Which means that you won&#8217;t be able to copy and paste without mouse or shift-insert(which wouldn&#8217;t be such a problem if we had insert keys on our mac keyboards). I admit there is other ways to handle it, but I settled with the following solution&#8230; Basically all you do is compile urxvt with stock perl and patch it.&lt;/p&gt;


	&lt;p&gt;Before you do the thing below you will probably want to backup ports perl5&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
&lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt;!/bin/sh&lt;/span&gt;

mv /opt/local/bin/perl5 /opt/local/bin/perl5bak
ln -s /usr/bin/perl /opt/local/bin/perl5
wget http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-9.06.tar.bz2
tar xjvf rxvt-unicode-9.06.tar.bz2
cd rxvt-unicode-9.06
patch -p1 &lt;span class=&quot;Keyword&quot;&gt;&amp;lt;&lt;/span&gt; doc/urxvt-8.2-256color.patch
patch -p0 &lt;span class=&quot;Keyword&quot;&gt;&amp;lt;&lt;/span&gt; ../rxvtperl-objc-doublefree.diff
./configure --prefix=/opt/local --enable-xterm-colors=256
find . -name Makefile -exec sed -i &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;s/-arch ppc//g&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;{}&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Constant&quot;&gt;\;&lt;/span&gt;
cd src 
make install
cd ../doc
make install
mv /opt/local/bin/perl5bak /opt/local/bin/perl5
&lt;/pre&gt;

	&lt;p&gt;Of course you need to replace ppc with i386 on a g4. Stock perl will make the configure try to build urxvt as universal build and fail (&lt;a href=&quot;/assets/rxvtperl-objc-doublefree.diff&quot;&gt;rxvtperl-objc-doublefree.diff is available here&lt;/a&gt;).&lt;/p&gt;


	&lt;p&gt;You might wonder why the double free patch is not included in the distribution of urxvt. Well apparently it&#8217;s not that common. I haven&#8217;t tried it on other systems, but it seems to be only happening when the objc bridge is loaded in urxvt(i.e. the macosx-clipboard plugin included in urxvt).&lt;/p&gt;


	&lt;p&gt;Another nice thing I use in urxvt is &lt;a href=&quot;http://www.jukie.net/~bart/blog/20070503013555&quot;&gt;Barts url-yanking plugin&lt;/a&gt;. You can change the hotkeys in the Xdefaults I posted above. Just copy &lt;a href=&quot;/assets/mark-and-yank&quot;&gt;mark-and-yank&lt;/a&gt; into ~/.urxvt and you&#8217;re set. Basically I can cycle through urls in my console with M-U and launch them in the default browser upon pressing enter&#8230;. nifty!&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-02-13:3</id>
    <published>2009-02-13T05:37:00Z</published>
    <updated>2009-03-02T21:12:05Z</updated>
    <category term="imaps"/>
    <category term="snipmate"/>
    <category term="snippetsemu"/>
    <category term="textmate"/>
    <category term="vim"/>
    <link href="http://www.flyingseagull.de/2009/2/13/proper-snippets-for-vim-wooohoooo" rel="alternate" type="text/html"/>
    <title>Proper snippets for vim... wooohoooo!</title>
<content type="html">
            &lt;p&gt;For a very long time vim has had only snippets plugins, which were using nasty regex hacks to get TextMate like snippets going&#8230;&lt;/p&gt;


	&lt;p&gt;Also related to the fact that vim for example does not move marks when you do any editing action. I.e. try putting a mark on a specific position in vim, then start deleting in front of the mark and the mark will still stay on the same column. Thus it&#8217;s not really trivial to track where the next position of the snippet should start when you want to jump to it.&lt;/p&gt;


	&lt;p&gt;The solution found in most snippets plugins for vim is to use a region like &amp;lt;++&amp;gt; and to search for it on your snippet expansion trigger key. Imaps, snippetsemu all do it that way. While snippetsEmu used to be the closest to TextMate behavior it was also the most buggy.&lt;/p&gt;


	&lt;p&gt;On a sidenote vim actually does movement of marks when you join two lines with mark_col_adjust, but I found it to be far from trivial to just make all editing operations, have that behavior on marks. Anyway, now there&#8217;s a new contender called snipMate. It actually no longer relies on that regex expansion described above and from what I can tell it&#8217;s pretty nifty.&lt;/p&gt;


	&lt;p&gt;I suggest you give it a try. Here&#8217;s a comment on how it works by the author:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
&lt;span class=&quot;Constant&quot;&gt;00&lt;/span&gt;:&lt;span class=&quot;Constant&quot;&gt;14&lt;/span&gt; [  meese ] timebomb: well essentially&lt;span class=&quot;Keyword&quot;&gt;,&lt;/span&gt; each snippet &lt;span class=&quot;Keyword&quot;&gt;is&lt;/span&gt; stored
as a string with each tab stop being specified by &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;${1}&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Keyword&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;${2}&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Keyword&quot;&gt;,&lt;/span&gt; etc&lt;span class=&quot;Keyword&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;Keyword&quot;&gt;,&lt;/span&gt; 
which are removed once the snippet &lt;span class=&quot;Keyword&quot;&gt;is&lt;/span&gt; expanded&lt;span class=&quot;Keyword&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;Variable&quot;&gt;Before&lt;/span&gt; that&lt;span class=&quot;Keyword&quot;&gt;,&lt;/span&gt; though&lt;span class=&quot;Keyword&quot;&gt;,&lt;/span&gt; 
the plugin stores the position of each &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;${1}&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; according to its position
on the line in a list&lt;span class=&quot;Keyword&quot;&gt;,&lt;/span&gt; and the count of &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;Constant&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;s before that to determine&lt;/span&gt;
&lt;span class=&quot;String&quot;&gt;which line number it&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt;s on via some regexes&lt;span class=&quot;Keyword&quot;&gt;;&lt;/span&gt; then it keeps track of 
your position by updating the list each ti
&lt;/pre&gt;

	&lt;p&gt;On a side note the latest version properly honors expandtab options, however still reading the ts option, there&#8217;s a little fix below, but I bet Michael will incorporate it later today.&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
@@ -214,7 +214,7 @@
                let i += 1
            endw
            &amp;quot; expand tabs to spaces if 'expandtab' is set
-            if &amp;amp;et | let snippet = substitute(snippet, '\t', repeat(' ', &amp;amp;ts), 'g') | en
+            if &amp;amp;et | let snippet = substitute(snippet, '\t', repeat(' ', &amp;amp;sts), 'g') | en

            let snip = split(substitute(snippet, '$\d\|${\d.\{-}}', '', 'g'), &amp;quot;\n&amp;quot;, 1)
            if afterCursor != '' | let snip[-1] .= afterCursor | en
&lt;/pre&gt;

	&lt;p&gt;Anyway, rock on. Happy vimming, I bet you&#8217;ll enjoy it.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://www.flyingseagull.de/">
    <author>
      <name>Reza</name>
    </author>
    <id>tag:www.flyingseagull.de,2009-01-18:5</id>
    <published>2009-01-18T09:24:00Z</published>
    <updated>2009-03-19T12:39:26Z</updated>
    <category term="awesomewm"/>
    <category term="osx"/>
    <category term="x11"/>
    <link href="http://www.flyingseagull.de/2009/1/18/a-prettier-terminal-in-os-x-part-1-awesome-is-awesome" rel="alternate" type="text/html"/>
    <title>A prettier Terminal in OS-X Part 1 (awesome is awesome!)</title>
<content type="html">
            &lt;p&gt;o I recently switched over to awesomewm on my desktop because either the desktop wm’s suck(kde,gnome) or fluxbox,fvwm weren’t quite what I needed.&lt;/p&gt;


	&lt;p&gt;So I went looking for a good terminal that supports 256 colors. There&#8217;s mrxvt and whatnot, but again the Probleme with these is that either utf-8 is missing or they’re in some other way ugly, dependency wise or whatever.&lt;/p&gt;


	&lt;p&gt;Then there’s this nifty term called urxvt(apparently it doesn&#8217;t seem to follow ecma-48?). Anyway, I like it and although iTerm does support 256 colors, it&#8217;s rather slow imho.&lt;/p&gt;


	&lt;p&gt;The end result could look like &lt;a href=&quot;/images/xquartz.jpg&quot;&gt;this&#8230;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;The dependencies I used for installing awesome look as follows:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;pango &lt;/li&gt;
		&lt;li&gt;imlib2 &lt;/li&gt;
		&lt;li&gt;libconfuse&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;http://www.macupdate.com/info.php/id/26593/xquartz&quot;&gt;XQuartz&lt;/a&gt; (2.3.2.1 at the time of this writing)&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;If you use macports 1.5 and XQuartz 2.3.2.1 you should remove the cairo dependency from pango. Otherwise awesome might link to XQuartz cairo while pango links to macports cairo causing an annoying crash while restarting, connecting the second head or closing &lt;span class=&quot;caps&quot;&gt;X11&lt;/span&gt;.&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
sudo perl -ni -e &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;print unless /pkgconfig\/cairo/&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/pango/Portfile
&lt;/pre&gt;

	&lt;p&gt;then you can probably do the following to install awesome(awesome.diff fixes a configure issue on osx, you can find it &lt;a href=&quot;http://www.flyingseagull.de/assets/awesome.diff&quot;&gt;here&lt;/a&gt; ):&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
sudo port install pango imlib2 libconfuse

wget http://awesome.naquadah.org/download/awesome-2.3.4.tar.bz2
tar xjvf awesome-2.3.4.tar.bz2
cd awesome-2.3.4

patch -p1 &lt;span class=&quot;Keyword&quot;&gt;&amp;lt;&lt;/span&gt; ../awesome.diff

./configure --prefix=/opt/local
make
&lt;/pre&gt;

	&lt;p&gt;The build will probably fail somewhere in between because of defconfig.h . If so you can use the following command to fix it:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
&lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt; this can probably done much better but meh, i don't know sed syntax too well, -i '' means edit in place&lt;/span&gt;
sed -i &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; -e &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;s/DEFAULT_CONFIG =.*$/DEFAULT_CONFIG = &amp;quot;\\/&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; -e &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;s/-n &amp;quot;.*$//&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; -e &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;/./!d&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; defconfig.h
&lt;/pre&gt;

	&lt;p&gt;Afterwards finishing the build you will probably want to create an ~/.xinitrc file and add the following to it:&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
&lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt;!/bin/sh&lt;/span&gt;

&lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt;unless you want the annoying bells or visual bells keep the following 2 lines&lt;/span&gt;
xset b off 
xset b 0 0 0 

&lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt; the fork switch won't work on osx, so no -f here&lt;/span&gt;
&lt;span class=&quot;Storage&quot;&gt;export&lt;/span&gt; RXVT_SOCKET=&lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;$&lt;/span&gt;HOME&lt;/span&gt;/.rxvt_socket
urxvtd -q -o &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&lt;/span&gt;

awesome
&lt;/pre&gt;

	&lt;p&gt;Also if you use an exotic shell config(eg. with zsh) it might break &lt;span class=&quot;caps&quot;&gt;X11&lt;/span&gt; a bit unless you put the following in your ~/.x11run&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
&lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt;!/bin/bash&lt;/span&gt;

exec -l &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;bash&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; --login -c &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;exec &amp;quot;${@}&amp;quot;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt; - &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;Variable&quot;&gt;&lt;span class=&quot;Variable&quot;&gt;${&lt;/span&gt;@&lt;span class=&quot;Variable&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;

Don&#8217;t forget to run
&lt;pre class=&quot;blackboard&quot;&gt;
chmod +x &lt;span class=&quot;Keyword&quot;&gt;~&lt;/span&gt;/.x11run
&lt;/pre&gt;

	&lt;p&gt;afterwards(note this is a pretty new feature of XQuartz.&lt;/p&gt;


	&lt;p&gt;I&#8217;ll continue next time on how to setup urxvt. Meanwhile you can use xterm which also has 256 color support, however XQuartz xterm won&#8217;t detect terminus font if you decide to use a non antialiased font.&lt;/p&gt;
          </content>  </entry>
</feed>
