I am posting this from the Blogger app on my galaxy Nexus.
Monday, May 28, 2012
Thursday, November 3, 2011
From Luton Airport to London City
You bridge the 50km to the capital by either taking the bus or the train. If you are flying EasyJet, you can purchase tickets for either prior to landing on the plane. Obviously the train will get you to London faster, but it will cost you more and requires you to ride a shuttle bus to the train station Luton Airport Gateway first. After you board the train you will arrive at St. Pancras International Station after around 25 minutes.
I got stuck in traffic (which is quite normal in London); so the bus ride took me 120 minutes instead of 80. You should take that in account when riding the bus back to Luton Airport and and you should also allow for an additional 20 minutes for security (and more if you need to check-in first). If you arrive early you can kill time in the lounge eating sandwiches or drinking pints before boarding. In summary the London Luton airport is quite comfortable inspite of or maybe precisely due to its compact size.
Saturday, September 17, 2011
Wake me up when September ends
There is no doubt that the summer that hasn't really been there for me is coming to an end. A weak feeling of sadness rises up as I realize that it's been almost a year since my last blog post. I'm telling myself that it surely must have been the amount of work rather than the lack of exciting things that kept me from writing.
Outside I try to enjoy the last signs of summer. But it's already dark now at 8PM and it's getting cold. I quickly finish what's left of my beer before I go inside.
Saturday, October 16, 2010
Short Status Review for Technical Blog
Markdown syntax is really helpful when you need to create structured
text. I'm having a lot of problems in the WYSIWYG-Editors of all the
blog portals when dealing with tags, escaping and code blocks. For example
wanting to talk about the [sourcecode] tag and later having an actual
[sourcecode] ... [/sourcecode] listing will not work in Wordpress. A nice
article about the dilemma with WYSIWYG-Editors can be found
here.
In Markdown you simply indent the sourcecode by 4 spaces and don't need to worry about escaping characters or tags. As the Markdown Reference puts it nicely:
This makes it very easy to include example HTML source code using Markdown. [...] Regular Markdown syntax is not processed within code blocks. E.g., asterisks are just literal asterisks within a code block. This means it’s also easy to use Markdown to write about Markdown’s own syntax.
The only downside is that in standard Markdown you cannot add the class for
syntax highlighting on the <pre> that is generated. Instead of indenting
you could also go with a "plain" HTML block:
<pre class="brush: javascript">
for(var i=0; i<n; i++){
bounds.extend(markers[i].getPosition());
});
</pre>
Unfortunately this doesn't work as the less-sign is not automatically converted to its HTML entity because within a HTML block no markdown parsing is made.
In the simplest workaround you would simply replace all ampersands and brackets with the verbose HTML entities. But this kind of defeats Markdown's philosophy of being as easy-to-read and easy-to-write as feasible. So I will take a look at some of Markdown's dialects and extensions, like Maruku, as well as other lightweigt markup languages like Textile.
Chosing a Technical Blogging Portal
Recently I have thought of creating an extra blog for the more technical stuff I post, i.e. program listings and solutions to problems. Those kind of posts usually include some source code that I want to be displayed as preformated text and with syntax highlighting. So I looked at the source code posting features of three of the most popular blogging platforms:
- Blogger.com
- WordPress.com
- Posterous.com
What I did in Blogger so far (as you can see in my older posts) is to simply change the font type to Courier and decrease the font size. That kind of works for small listings, but doesn't look pretty. It get's really messy when you try to post longer lines of source code though. To improve things and get syntax highlighting working what you can do is modify the header part of your template to include a javascript highlighter. Alex Gorbatchev's SyntaxHighlighter seems to be a very popular choice. It is self contained, brings 23 Syntaxes with it and is used by big players like Apache, Yahoo and even Wordpress.
Following the installation instructions you must do the following to get it running reference the core javascript, css and theme files (3 lines) references all the syntaxes that you need (up to 23 lines) set blogger.com mode (and other default mode) and then call the syntax highlighter javascript function (>=2 lines) The large number of lines may seem intimidating at first, but it's pretty much just javascript and css references and you don't need all the files. The actual source code is then embedded in pre or javascript tags. Customization parameters can be passed class values on that tag.
As mentioned above WordPress.com includes Alex Gorbatchev's Syntax higlighter by default, which is nice; the usage is even simplified as instead of using the above HTML tags you can just wrap your source code in [sourcecode] tags where you also put some the options. Take a look at the support page. Example:
[sourcecode]
This is a short snippit of code with padlinenumbers set to 4.
[/sourcecode]
Pretty neat and not as verbose as using pure HTML. Posterous goes a similar way, but seems to have problems with line spacing. And the HTMl editor is really not that usable, especially if you created a blog by E-Mail. But Posterous supports markdown syntax out of the box now, which is kinda neat; you just have to wrap the (markdown) content in tags. That let's you embed source code in "regular" markdown syntax by indenting it (pitfall: at least 4 spaces for posterous). Language is set up with a she-bang. So you would have:
#!c++
void main(){
cout << "hello world!";
}
As mentioned before, though, the HTML editor is a pain to use and won't work if you sent your markdown by E-Mail; I think it's a bug. Still having the markdown option built-in is nice. Blogger.com and WordPress.com won't allow you to write your posts in markdown.
In conclusion, SyntaxHighlighter seems to provide very nice looking code listings and gives you a lot of configuration options. If you don't want to mess with the HTML of your layout files go with WordPress.com that gives you easier access to it. If you want to write markdown online or in the email your only choice seems to be Posterous. But if you can live with writing your markdown and running it through a HTML converter you could use every blogging service here. Overall Wordpress.com seems to be the winner for maintaining a technical blog. So I probably will be looking into Wordpress for my technical blog that I plan to create. Opinions?
Colophon
I have added the above mentioned changes to my blogger template and used markdown to reformat this blog, parse it and then paste the HTML. My "source" markdown looks as follows:
<pre class="brush: c++">
void main(){
cout << "hello world!";
}
</pre>
Wednesday, August 18, 2010
About blog writing and why it's important for me
Saturday, May 29, 2010
Making VIM more TextMate like
TextMate is supposedly the text editor for MacOS to have. It's used by many Rails developers and I must admit it's quite slick and fast. It feels like a polished and better Emacs in my opinion and takes many of its keyboard shortcuts. Unfortunately it's closed source, costs money and is only available on the MacOS platform.
I have converted back to VIM (I am using the MacVIM version). One of features of TextMate that I am missing is the project drawer. Fortunately you can extend VIM with plugins. I have tried two plugins: Project and NERDTree. If you want something TextMate like go with NERDTree. You get a directory pane at the left, from which you can easily find and open files.
That's quite fine, but as a TextMate fan you will be missing the command line mate program to start with a directory "drawn out". I wrote a simple shell script to mimic that behavior and now typing 'vmate' behaves like its Mac OS counterpart:
