Shin
2011-10-24

Disable automatic WordPress paragraphs

WordPress automatically wraps content in html paragraphs. Sometimes this can be undesired, for example when you’re making one-liner posts using the new post formats for links or status updates. The easiest way around this is by setting the filter in your template.
It looks like this, snippet taken from my format-status.php:

remove_filter('the_content','wpautop');
the_content('Read more...');
add_filter('the_content','wpautop');

First we use remove_filter to tell WordPress not to use automatic < p> tags for the_content, then we output the content, and immediately afterwards we use add_filter to restore the filter or it’ll also be off for all the subsequent posts on the page.

2011-10-23
2011-10-22

Gutenberg is gut


In case there are still people around who never heard of the Gutenberg project; awesome free books.
Read more…

2011-10-20

USB drive failure in OsX Lion and older

Bought a new 2TB external USB drive by Samsung for the iMac. I know Samsung doesn’t like Apple but this is ridiculous. Whenever the computer goes to sleep the drive ejects, and when the computer wakes up again, the drive doesn’t.
Looking into this I discovered this has been a common problem for a lot of people. It seems several brands/models exhibit this behavior. It’s not limited to Lion btw, older versions are affected as well. So buyer beware.

In my case the problem was easily ‘fixed’ by swapping it with one of my Mac Mini’s drives as that one runs 24/7 and never sleeps (being used as a server and all).

2011-10-18

Where many wasted hours go to die

2011-10-17

I like draft posts

I like draft posts so much I’m using my own plugin to give me an overview of all of them on the WordPress dashboard seeing as the default view only shows the 5 most recent ones.
My pile of draft posts seems to be getting bigger. It’s just nice to be able to draft an idea, do a little searching, add some links, sit on it for a while, formulate a paragraph here and there, and take your sweet time before getting it to the state where you like to hit publish. For some posts anyway, others (like this one) are obviously just fire and forget.

2011-10-14
testing status messages, say hi in the comments if you like. :) 
2011-10-12

Super Ultra Mega Hyper Mach 15 Pro Razor

I hate buying razor blades. I always end up looking at a wall of different types not knowing which one I’ve got, even though there’s only 2 serious brands. But these brands have determined that the best way to make money is to come out with a new model razor every three months or so, and of course the new model doesn’t take any of the older model’s blades. It’s retarded. Almost as retarded as the names. Mach 5, what does that mean, it’ll peel my face off at the speed of light? Ultra, does that leave me with glowing stubble? Fusion, will it fuse the razor with my skin? And why do they always have to use the biggest sport douchebags they could find to advertise them?
ANNOYING!
I can’t be the only one who hates this crap. A company like Apple should make a razor, for fun and profit.
One model, one type of blade, it just works. They could make millions. The iRazor.

Work in progress... home!
Trying to get all/most of the new code working before I start on the eyecandy.