Blogging from OSX

There are some really nice programs to help you blog on OSX. One of the nicer ones is ecto, but having used emacs to blog, it would be nice to use something similar (but better). Textmate has two blogging plugins: the build-in blogging bundle and blogmate. Let’s compare them.

Blogmate is a bit easier on the eyes, it has (kind of) the same panel as ecto, which makes it easy to see what posts you have made so far. To write a new post, you just start typing and when you are done, press ‘Send Post’.

All of this is possible as well using the regular blogging-bundle. The plus of blogmate is the window with a list of your posts, the plus of the blogging-bundle is better headers when you download a post to edit. When I started with blogmate, and then wanted to edit the post with the blogging-bundle, the bundle got mixed up, and thought my blog was written in markup, while on you only can use html using xmlrpc, as far as I can tell.

Opinion: Both are nice plugins for textmate, and I will probably use blogmate for the nice list, and use the regular bundle for editing.


Leave a comment

Filed under osx, textmate, Uncategorized, wordpress

Setting up a git repository on

For private us, I have been using git for quite a while now. Git is simple enough to use, has plenty of net-coverage and is probably not going away anytime soon, so seems a good choice. A friend asked to use a script I use regularly and it seemed a good idea to finally start putting my scripts on-line. Others can clone my scripts and I can get to them if I am on a remote computer.

There are a whole list of public git servers out there, but I decided to go for maintained by Petr Baudis. It has a basic web interface for creating or forking projects and was the first public Git hosting site (info from here, which has a whole list of public git servers).

To start using git you have to install it off course, on Debian/Ubuntu this can be done with a simple:

sudo apt-get install git-core

But there are packages for most common OSes here.

Setting up a repo on

Ok, first we have to add ourselves as a user to For that we need to create an ssh-key, good tutorials are this one or this one.

Copy your public key, located in ~/.ssh/ to, fill out login and email information, and the first step is done.

Next, add a new project here (For example I used SimpleScripts). It will give a new repo like this:

fatal: no matching remote head

Now comes the weird part. Initially I had the idea to pull the repo, move my stuff into it, commit it and I would be done, but no, that is not how it works.

What will happen is this:

$ git clone ssh://
Initialized empty Git repository in /home/user/git/SimpleScripts/.git/
fatal: no matching remote head

Which is git’s way of saying the remote repo is empty. Right. Here I found the answer. It is actually quite logical, you want to push stuff you already have to the web, so you must start locally, and push that to your new repo.

$ git init #make a new repo, or use one you made earlier

Now we add some content:

$ touch README
$ git add README
$ git commit -a -m "First commit."

Next we have to edit the git config file:

$ $EDITOR .git/config

and add the following to the bottom:

[branch "master"]
remote = origin
merge = refs/heads/master

[remote “origin”] should be there already. Now we do:

$ git push origin master

This will push your content to remote and from now on pushing/pulling will
work as we expected.

I am happy Richard Jones figured all this out already 🙂 Thanks!

Now I can add the wp-all script I did all this for. It is a small script to automate local wordpress installs to work on themes and play around. It pushes the ne wp install in git as well, so you can keep track of changes.

Leave a comment

Filed under git

Multilanguage blogging

Creating an international blog. Using multiple languages on wordpress is not a built-in feature. To enable this feature we have a choice of several plugins:

  • Basic bilingual
    For now it only works for two languages.
  • Language linker
  • This seems a bit of hack, usefull, but not so elegant. You just use two complete wordpress installs, and the one points to the other.

  • Xili language plugin
    This looks like the correct way to make wordpress use more then one language. Every post has its own page and everything else gets translated as well.
  • Language plugin

    So far this is the one I use. It is also a bit hackish, but very simple to use, all text is posted within the same post. It uses tags around entries to distinguish them. For an example see further down.

Installation and use of the poplarware plugin

Installation is straightforward, copy the plugin to the plugin directory, enabling the plugin and make several changes. The first is some sort of a language switcher, for example in the sidebar:

  • On pages or posts you use the following:

    [lang_en]This is the post text in English[/lang_en]
    [lang_es]Esto es el texto del artículo en español[/lang_es]
    [lang_all]I want this text to appear for all languages[/lang_all]
    This text that is not in a language tag will also appear for all languages.

    For more examples and how to further make your side multilanguage, go here.

    Leave a comment

    Filed under wordpress

    Zsh on OSX

    It sounds strange to talk about a shell, when you are talking about OSX. It is not linux is it? But having come from linux, at least for me, many things are just faster from the shell. And combine an always running terminal with quicksilver and you are typing in the blink of an eye. And why zsh? Well, not all shells are created equally. One shell rules them all… Anyway, it has way more shortcuts and other goodies then any other shell.

    Continue reading

    1 Comment

    Filed under osx