<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">
 
 <title>Ævar Arnfjörð Bjarmason</title>
 
 <link href="http://xn--var-xla.net/" />
 <updated>2012-02-23T15:00:02+00:00</updated>
 <id>http://xn--var-xla.net/</id>
 <author>
   <name>Ævar Arnfjörð Bjarmason</name>
   <email>avarab@gmail.com</email>
 </author>

 
 <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/avar" /><feedburner:info uri="avar" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><entry>
   <title>Back in Iceland</title>
   <link href="http://anilwadghule.com/2011/12/17/Back-in-Iceland/" />
   <updated>2011-12-17T00:00:00+00:00</updated>
   <id>http://xn--var-xla.net.com/2011/12/17/Back-in-Iceland</id>
   <content type="html">&lt;p&gt;I'm back in Iceland for the holidays, I'm staying for a few days in
Reykjavík before moving on to Akureyri. I haven't been in Reykjavík
for more than a couple of days for years.&lt;/p&gt;

&lt;p&gt;Observations for the first few hours, in no particular order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Icelandic customs welcomed me with a search of my luggage. It
happens 1/3 times I come here, never happens in Europe. One of the
reasons I think this is a somewhat crappy country to live
in. "Welcome home, fuck you!"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Nobody told me that wearing vintage 1920 hats and growing a beard
was now fashionable among the arty types in 101 Reykjavík, but it
now is. What'll they think of next?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A common beer costs ~5 EUR at a pub/restaurant. If you're not
getting paid in EUR that's more like 10 EUR. Murder!&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can't get beer in this country at anything but obscene prices
except in the government run store. I know this intellectually, but
it takes a while to get used to every time.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I had forgotten what an actual shower felt like after living in
Amsterdam for a while. The showers here aren't just like a warm
version of standing out in the rain. They're hot and the water
actually streams out of the showerhead.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Icelandic food, what an oxymoron, at least that burger I had.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is actually cold over here. It's -2 at the moment.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Nobody is amazed that I'm from Iceland. This happens in every other
country in the world, but not here. What gives?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The water here is actually good enough that I'll drink it. I have
to start buying bottled water in Amsterdam.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I've been reading
&lt;a href="http://www.amazon.com/Boomerang-Travels-New-Third-World/dp/0393081818"&gt;Boomerang: Travels in the New Third World&lt;/a&gt;
by Michael Lewis on Darren's recommendation. I'm 60% through
it. The first 1/4 is about the Icelandic collapse, it also covers
Greece &amp;amp; Ireland. It's the best account of those collapses I've
read yet. This book really needs an Icelandic translation, but it
doesn't appear that one exists.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</content>
 </entry>
 
 <entry>
   <title>Using the screen(1) stuff command</title>
   <link href="http://anilwadghule.com/2011/06/11/Using-the-screen-stuff-command/" />
   <updated>2011-06-11T00:00:00+00:00</updated>
   <id>http://xn--var-xla.net.com/2011/06/11/Using-the-screen-stuff-command</id>
   <content type="html">&lt;p&gt;I use &lt;a href="http://www.gnu.org/software/screen/"&gt;GNU screen&lt;/a&gt; a lot to
manage pretty much everything I run on my computer, and everything I
run on remote systems (well, aside from cron).&lt;/p&gt;

&lt;p&gt;When I go into work I spawn a screen which in turns connects to other
machines which are also using screen. I didn't know about the &lt;code&gt;stuff&lt;/code&gt;
command until recently, but now I don't have to manually run
e.g. &lt;code&gt;screen -rx&lt;/code&gt; to connect to these nested screens, or cd to some
directory.&lt;/p&gt;

&lt;p&gt;It's really handy.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Moving to Amsterdam</title>
   <link href="http://anilwadghule.com/2010/10/12/Moving-to-Amsterdam/" />
   <updated>2010-10-12T00:00:00+00:00</updated>
   <id>http://xn--var-xla.net.com/2010/10/12/Moving-to-Amsterdam</id>
   <content type="html">&lt;p&gt;I'll be starting work with &lt;a href="http://booking.com"&gt;booking.com&lt;/a&gt; on
October 18. I'm flying out to Amsterdam tomorrow on October 13.&lt;/p&gt;

&lt;p&gt;I'll be in a temporary apartment Booking.com has arranged for me for
the first two weeks while I look for my own place. That's one part of
their excellent relocation package, they've really got the process of
bringing you into Amsterdam nailed down.&lt;/p&gt;

&lt;p&gt;I've got everything I need packed into approximately 30L of a single
60L backback. Just cloathing, my laptop and camera. Everything else
I'm either going to rent or buy once I get there.&lt;/p&gt;

&lt;p&gt;I'll most likely be getting an apartment to share with
&lt;a href="http://steffen-mueller.net/"&gt;Steffen Müller&lt;/a&gt;. I'm already in contact
with housing agents on the ground that have viewings lined up for me
once I get there.&lt;/p&gt;

&lt;p&gt;Wish me luck.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>I'm finally setting up a website &amp; blog</title>
   <link href="http://anilwadghule.com/2010/10/03/Finally-getting-a-blog-set-up/" />
   <updated>2010-10-03T00:00:00+00:00</updated>
   <id>http://xn--var-xla.net.com/2010/10/03/Finally-getting-a-blog-set-up</id>
   <content type="html">&lt;p&gt;I've decided to finally set up a website and blog. My
&lt;a href="http://github.com/avar/website/commit/d36f3852f5d"&gt;old website&lt;/a&gt; had
been stale for quite a while, I never updated it.&lt;/p&gt;

&lt;p&gt;I'm going to try to change that by setting up something that I can
bother to maintain, namely:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A Git-based blog where I can write blog posts as markdown
files. I'm using &lt;a href="http://github.com/mojombo/jekyll"&gt;jekyll&lt;/a&gt; for
this.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use &lt;a href="http://disqus.com/"&gt;disqus.com&lt;/a&gt; to allow user comments. This
way I can keep the site itself static. I.e. I can just use squid +
apache, instead of running something like Wordpress.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Link to
&lt;a href="http://blogs.perl.org/users/aevar_arnfjor_bjarmason/"&gt;my perl blog&lt;/a&gt;,
my
&lt;a href="http://www.openstreetmap.org/user/%C3%86var%20Arnfj%C3%B6r%C3%B0%20Bjarmason/diary"&gt;OpenStreetMap blog&lt;/a&gt;,
&lt;a href="http://twitter.com/avarab"&gt;Twitter account&lt;/a&gt; and other places where
I write.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;To get started with the look I stole the layout from a site in the
&lt;a href="http://github.com/mojombo/jekyll/wiki/sites"&gt;jekyll site list&lt;/a&gt;. I'm
probably not going to keep it for long, but design my own simple
look. Something based on the
&lt;a href="http://lab.arc90.com/experiments/readability/"&gt;Readability&lt;/a&gt; project,
or the &lt;a href="http://www.w3.org/StyleSheets/Core/"&gt;W3C Core Styles&lt;/a&gt;.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>My non-ELPA Emacs swank-clojure setup</title>
   <link href="http://anilwadghule.com/2010/04/09/My-non-ELPA-Emacs-swank-clojure-setup/" />
   <updated>2010-04-09T00:00:00+00:00</updated>
   <id>http://xn--var-xla.net.com/2010/04/09/My-non-ELPA-Emacs-swank-clojure-setup</id>
   <content type="html">&lt;p&gt;I stubbornly refuse to use ELPA. I keep
&lt;a href="http://github.com/avar/dotemacs"&gt;my ~/.emacs&lt;/a&gt; and
&lt;a href="http://github.com/avar/elisp"&gt;associated libraries&lt;/a&gt; in Git, and don't
like deviating from that with ELPA by running the clojure code from an
unversioned directory that isn't automatically there when I set up my
Emacs configuration from Git.&lt;/p&gt;

&lt;p&gt;I couldn't find any documentation for setting up Emacs + Clojure +
Swank without ELPA. What follows are the steps I had to do to get my
setup working so that I can use both SBCL and Clojure with SLIME.&lt;/p&gt;

&lt;p&gt;First checkout the needed clojure code into my ~/g/elisp library:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;git submodule add git://github.com/technomancy/slime.git slime 
git submodule add git://github.com/technomancy/clojure-mode.git clojure-mode 
git submodule add git://github.com/jochu/swank-clojure.git swank-clojure 
git submodule add git://github.com/richhickey/clojure.git clojure 
git submodule add git://github.com/richhickey/clojure-contrib.git clojure 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Build clojure:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cd clojure &amp;amp;&amp;amp; ant 
cd clojure-contrib &amp;amp;&amp;amp; mvn package 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Add this in my ~/.emacs to load the libraries:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;(add-to-list 'load-path "~/g/elisp/clojure-mode") 
(add-to-list 'load-path "~/g/elisp/swank-clojure") 
(add-to-list 'load-path "~/g/elisp/slime") 
(add-to-list 'load-path "~/g/elisp/slime/contrib") 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Add autoloads + massive hack to get all of this to work:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;(autoload 'clojure-mode "clojure-mode" nil t) 
(autoload 'clojure-test-mode "clojure-test-mode" nil t) 
(defvar package-activated-list nil "Hack: used in `slime-changelog-date' but not defined anywhere") 
(progn 
  (autoload 'swank-clojure-init "swank-clojure") 
  (autoload 'swank-clojure-slime-mode-hook "swank-clojure") 
  (autoload 'swank-clojure-cmd "swank-clojure") 
  (autoload 'swank-clojure-project "swank-clojure")) 

(setq clojure-src-root (expand-file-name "~/g/elisp")) 

;; Java starves programs by default 
(setq swank-clojure-extra-vm-args (list "-Xmx1024m")) 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This part is very suboptimal, it would be nice if swank-clojure had
better support for running out-of-Git so I wouldn't have to do
this. Maybe it does and I haven't found the relevant bits:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;(defun clojure-slime-config (&amp;amp;optional src-root) 
  "Hacky copy of slime-clojure's `clojure-slime-config' to do what I want." 

  (if src-root (setq clojure-src-root src-root)) 

  (add-to-list 'load-path (concat clojure-src-root "/slime")) 
  (add-to-list 'load-path (concat clojure-src-root "/slime/contrib")) 
  (add-to-list 'load-path (concat clojure-src-root "/swank-clojure")) 

  (require 'slime-autoloads) 

  (slime-setup '(slime-fancy)) 

  (setq swank-clojure-classpath 
        (list 
         (concat clojure-src-root "/clojure/clojure.jar") 
         ;; Hack: Expand the name of the .jar with some Emacs glob function 
         (concat clojure-src-root "/clojure-contrib/target/clojure-contrib-1.2.0-SNAPSHOT.jar") 
         (concat clojure-src-root "/swank-clojure/src") 
         (concat clojure-src-root "/clojure/test/clojure/test_clojure"))) 
  (eval-after-load 'slime 
    '(progn (require 'swank-clojure) 
            (setq slime-lisp-implementations 
                  (cons `(clojure ,(swank-clojure-cmd) :init 
                                  swank-clojure-init) 
                        (remove-if #'(lambda (x) (eq (car x) 'clojure)) 
                                   slime-lisp-implementations)))))) 

;;; Setup clojure 
(clojure-slime-config) 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Finally set it up to play nice so that I can do M-x run-sbcl or M-x
run-clojure to run Common Lisp or Clojure:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;;; http://groups.google.com/group/clojure/browse_thread/thread/e70ac373b47d7088 
(eval-after-load 'slime 
  '(progn 
     (add-to-list 'slime-lisp-implementations 
                  '(sbcl ("/usr/bin/sbcl"))))) 

(defun pre-slime () 
  "Stuff to do before SLIME runs" 
  (clojure-slime-config) 
  (slime-setup)) 

(defun run-clojure () 
  "Starts clojure in Slime" 
  (interactive) 
  (pre-slime) 
  (slime 'clojure)) 

(defun run-sbcl () 
  "Starts SBCL in Slime" 
  (interactive) 
  (pre-slime) 
  (slime 'sbcl)) 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Of course all of this was such a pain that I pretty much stopped there
and haven't actually /done/ anything with clojure aside from a Hello
World :)&lt;/p&gt;
</content>
 </entry>
 
 
</feed>

