Todo.txt syntax highlighter for Vim

As mentioned before I am a big fan of Gina Trapanis’ Todo.txt a command line todo list manager completely based around a bash script to manage a txt file. I already wrote a highlighter plus some basic commands as a plugin for TextMate which I now started to port for Vim. Currently the syntax highlight is working, the commands will follow. Stay tuned!

Nginx forward all requests to https

Since listening to Mike West and reading his posts I finally decided to really move all my stuff hosted on my own server to SSL. Certs are really not that expensive anymore (about 9$ per Year) and getting more IPs for my server was easier than expected (Whats up with IPv4 depletion aye?).

Since I want everything reachable with all the old links I decided to forward pretty much everything to the ssl host, to do this via Nginx the following little config should work, so I wanted to share since it was not as easy as expected to actually get everything running nicely. It forwards in this case http://example.com http://www.example.com https://www.example.com all to https://example.com.

To make sure the clients will only use SSL from now on the server serving SSL should furthermore have ” add_header Strict-Transport-Security “max-age=31556926; includeSubdomains”; ” somewhere in the config.

Thats it… now to move over more stuff.

Hermes allows google to index the parcel tracking?

While waiting for my iPhone 4s today I received a message about my tracking status and so I was checking the Hermes tracking page. When it told me the status of my packet I was curious when it will arrive so I decided to google for that, and was kind of surprised what showed up…

why_hermes_one.png

Oh well so It seems like google is indexing the Hermes tracking system, you can even click it and view the links for another persons’ packages….

why_hermes_two.png

It’s actually not a big deal, I’m just confused why Hermes would allow google to index this. It’s not really useful for anybody and even though it is publicly available information feels kind of weird to have another persons delivery as the first google result.

Use a different single template per category in Wordpress

In a recent Wordpress project the posts are displayed on different pages differentiated by category instead of type. In this case different designs are loaded based on categories as well, since the theme needs to match the design of the current page. Wordpress does not provide a build in mechanism to do this, it only does for post types.

The solution is rather simple, use the single.php file to first check the category and load the matching template. Since in my development environment the categories might match to different IDs than in the deployed instance it’s more practical to match by name instead of ID. Importantly first the category ID needs identification by name, and is stored to load the matching template, since matching via the $post variable can only be achieved via ID not name or slug. For anybody interested I put example code up on github.

Grouptime is in the App store

The iPhone App I, as part of a team, was working on during the last couple months for a client reached the Appstore some days ago. You can find everything about Grouptime on the Webpage. By the way the App is build using Titanium, and is the reason for me to be developing the jpgcompressor Titanium module.

And now back to work on the Android Port, go go go!

Scroll to top