Category Archives: mystuff

a vim http log file syntax plugin

Log files are dull to look at. Lines and lines of text and no pretty colors to make it nicer to look at and easier to spot those weird errors you can’t simulate on your machine.

Vim rocks and writing a syntax file is supposed to be a breeze judging from the vast amount of syntax plugins out there. I didn’t quite find one I liked for syntax highlighting HTTP log files, so I thought I’d get down and dirty with some vimscript myself and see if I could hack something together.

It turned out alright I think. So to share the fun I’m hosting the logsyntax.vim plugin on Github and the vim.org scripts library for all to use. It highlights dates, HTTP verbs, URLs, IP addresses etc for IIS, W3C extended, NCSA and probably a bunch more typical log formats.

May your logs be pretty and colorful from now on.

The vim log file syntax highlighting plugin screenshot. Look at those pretty colors.

a wordpress full site spell checker tool

A while ago I noticed that some of my older posts had some silly misspellings in it, so I was looking for a way to spell check all my posts in one shot. I couldn’t really find anything that was free, so I figured I’d try to write something myself to do this for me.

I knew about the free and open source Hunspell spell checker and that you can use it from the command line. So I thought using that together with the WordPress export XML file which has all your post’s content it should be possible to spell check the whole lot.

The end result is a PowerShell script which reads out the XML export file and runs it through Hunspell, parses the spelling errors found and finally bundling it all into a simple HTML report.

It worked nicely for me, even though it’s pretty crude and simple. I only had to use this once, so I don’t see the point of fine-tuning it a lot further.

However this could be handy for others who want to do the same thing, so I cleaned it up a bit, slapped a readme file on it and posted it on Github as the WordPress full site spell checker.
Check it out if you want to spell check your WordPress blog in a single run and maybe this will be good enough to get your job done. You find more info on how to set up and use it on the Github page.

That very basic report I was talking about.

some free wallpapers for desktop and phone

My web stats tell me that you lot like to find some new and shiny wallpapers for your desktops and phones now and then. Since I’ve been tagging my flickr photos for a while now with wallpaper tags, I thought it would be nice if I’d just link them up here so you can take a peek and use them if you like.
All wallpapers are cc-licensed as usual so you’re free to use them, chop and manipulate them. To download an image, click the Actions menu on top, then pick “View All Sizes”.

Here’s some of the desktop wallpapers:

cmd.exe

belgian summer

dubai nights

And here are some more wallpapers specifically made for your smartphone (which means they are in portrait mode basically):

dark church ra dubai nights

Enjoy!

geek space invader wallpaper

Space invaders. Probably one of the first computer games I ever played on a console. The blocky invaders have turned into pieces of geek culture all by themselves showing up all over the place from graffiti to tattoos and post-it art. So at one point I ran into this image on Flickr with yet another space invader on it and thought it would be great to use that as a desktop wallpaper somehow. I tried it out but didn’t like the result enough so I decided to make my own. From there I had a template to create some more and now I’m putting them up here for you to download. Yay!

All images are Creative Commons licensed so you can use them quite freely and share them with anyone you like. To maintain the crispness of the awesome gradient backgrounds (yeah, that’s about how far my Gimping skills go) all images are saved in PNG format for maximum quality. I’m also sharing the original GIMP XCF project files with these so that you can go ahead and create your own smashing mash-up of the space invader wallpaper suited to your own personal taste. There’s a template in there with the space invader ranging from very small to rather large. New backgrounds, new resolutions, new compositions, it’s all within your grasp if you get yourself a free copy of GIMP. Don’t forget to link back here if you create something truly awesome btw. I don’t mind some kick-ass wallpapers myself.

All files are released under the Creative Commons Attribution-Share-Alike license just to keep things a tad fair and make sure that everyone finds it way to the source files and gets the same chances of being creative with them. It’s all about the sharing baby!

Images are available in a blue, gold and green background and in 1024×768, 1280×1024, 1440×900 and 1680×1050 screen sizes.

Click the images to get a larger preview. To download you just click that little blue arrow appearing in the right upper corned when hovering the thumbnail.
Can’t see a widget? No problem, click here for direct linkage.

open any site in a popup window

Note: This post contains custom html and JavaScript code. So if the bottom part looks messed up in an RSS reader, that’s why.

Would you like to open a website in a separate popup window when you click a bookmark from your browsers’ bookmark tab? I do!

I have one of those for a direct link to a Google Docs document which has all kinds of quick notes and stuff I want to scribble down fast before I forget them. I used to use a short-cut to a text file on my PC somewhere but that didn’t cut it when I wanted to access notes I made at work at home and visa versa. A Google document was the solution, but I wanted a clean window instead of it just opening another tab in Firefox…

To get there I wrote a bit of JavaScript code that generates a bookmarklet that does just that. You could use it for any site really, so here’s a form to make your own auto-popup bookmarklets!

How it works in 3 easy steps:

  1. Enter the URL of the web site to open and  the bookmarklet’s description you want. Optionally you can change the size of the window if the defaults don’t suit you. The popup window can still be resized but it’s always nice if it opens exactly as big as you want it to.
  2. Hit the button to generate the bookmarklet code.
  3. Now drag that freshly generated bookmarklet to your Firefox or Chrome toolbar and you’re done.
    Your very own custom popup web-app. Awesome!
    For Internet Explorer users (I’ve been told they are still out there) you need to right-click the link and choose “Add to favourites”. Then choose the links toolbar. The link should appear on your toolbar shortly after getting a security warning due to the JavaScript in the link.
Document URL
Bookmarklet description
Window width
Window height
Window left position
Window top position
Your bookmarklet will appear right here after you click the button.

Likes, dislikes, problems? That’s what the comments are for!

the soundtrack for the Apocalypse, now for free!

soundtrack to the end of the world

It’s turning out to be quite the musical week in posts here, but I just had to post about this one as well. Do you remember that 60×60 Buzz compilation I started last year? Well, since the Buzzchurch forum turned out to be a live bunch of music producers supplying the main source of tunes coming in for that entry, Owen Gilbride aka Cryptowen thought it would be cool to start up a new compilation. This time the theme was to write a soundtrack to the End of The World. How about that?

Right now the results are in, and are being hosted online for you to download. It consists out of 3 disks, where disk 1 represents the gathering storm before doomsday, disk 2 the chaos of doomsday itself and disk 3 the unnatural calm after the storm. All together good for over 2 hours of music, all composed in Jeskola Buzz.

You can guess where the chaotic vs calmer tracks will be at right? Anyway, this collection is another one containing a wide variety of tracks in genre and style, which makes this one great to listen to and explore some new sounds. No matter what style you are in to, you’re bound to find some gems in here that you’ll like. It’s free anyway, so nothing is wasted if this turns out to be not your thing at all, but I doubt it.

Feel free to leave some comments here, or at archive.org if you like this release. I’m sure the folks who participated in it (like me) will love it (like me).

Update: there seems to be  a problem with the VBR versions of some disks, which results in the VBR zip-file not being complete. Every file seems to be available in OGG format however.