Blog

There were packages of salt 0.10.1 in backports but they were removed, and the only saltstack packages in Debian are now in unstable. However, building your own backport is quite easy. This assumes you have an up to date Debian squeeze install without any backported saltstack or other packages. Use … more

Update: See also http://kuttler.eu/code/wordpress-emergency-admin/ which is a little easier to use. Recently I had to update a site but didn't have an admin account or access to the SQL database. So I wrote this short script to reset a forgotten password. To use it, edit it and fill in the … more

Is SEO a scam?

2012-10-06

Why would SEO be a scam?

Which keywords?

2012-09-14

how do i figure out which keywords i should be using? i have several hundred listed

Looking at the code I'm really not sure how it could have taken me more than one minute to figure this out.. but here's an example how to query for documents with a timestamp in the past. Your model's schema obviously needs a timestamp field of the Date type, and … more

Mongoose is quite easy to use, but modifying or annotating a query result manually is a little tricky. The problem is that the result objects are mongoose documents that can't be modified at will. In my case I was trying to change a Date type field to a human readable … more

Are you getting "You do not have sufficient permissions to access this page." errors everywhere in the WordPress admin? I had this happening on a site, apparently the problem is that somebody changed the database prefix. It's a little suprising that this would totally break the admin, but whatever... As … more

I thought there was a simpler method of adding context through the urlconf but after having a look at the source this is what I came up with. Apparently there's only getcontextdata() so I used a lambda to add what I needed. Update: I should probably have used extra_context={'model': 'Frontpage'} more

wordpress

2012-07-22

do you use wordpress? search engines favor wordpress for some reason wordpress is very dynamic, even fbi and government sites …

image bonus?

2012-07-22

why does google reward images on webpages