CHKDSK, Windows 7 and Subversion: they don’t play nice.

Posted by Kerry Turner on May 5, 2010
Filed under: How to

Just in case anyone else is tearing their hair out with this one: if CHKDSK is running very frequently on your Windows 7 machine and you’re a Subversion user, that’s your problem right there. I was getting CHKDSK on every other reboot, and it took a lot of searching to get to the bottom of this – it seems CHKDSK is kind of trigger happy on Windows 7, so there are a lot of posts out there about all sorts of other possible causes.

Long story short, you should either stop using Subversion (nooooo!) or turn off Windows Search indexing until a patch comes out. I tried the latter and it works perfectly.

Thanks to all the lovely people on this very helpful thread.

No comments

Embedding Flash content in WordPress posts and RSS feeds

Posted by Kerry Turner on September 30, 2009
Filed under: How to

Another day, another WordPress learning curve. This time, it’s to do with embedding Flash content in your posts and feeds.

What I wanted to do: embed Flash content in my posts in a way that’s XHTML compliant and also works for feeds.

I started with swfobject, the awesome JavaScript library that is standards-compliant, degrades gracefully, offers all the paramaters you could possibly want and cooks your dinner for you (one of these may not be true). Unfortunately, writing the swfobject code directly into my posts didn’t meet one of my requirements: while it worked fine on the site, it did nothing for my RSS feeds.

WP-SWFObject is a plugin that looked promising: it cleverly uses swfobject code when content is viewed on your site but replaces that with <object> and <embed> code when in your feed. I had some initial problems with WordPress adding unwanted paragraph tags to the [SWF][/SWF] code I added to my posts, but I fixed this by putting it on its own line with a containing div around it. So far, so good: XHTML compliant site and a feed full of Flash goodness.

Except, it turns out, it just doesn’t work like that. All feed readers, aggregators and parsers seem to handle Flash in RSS feeds wildly differently. Google Reader, for example, works on a whitelist basis: at present, it’ll show embedded content from Youtube and a few others, but good luck getting your homemade swfs to show up. Feed subscribers might see your swf, a blank space or an error message depending on their setup – not really a gamble I wanted to take.

After all that, I decided that the best way to ensure a consistent experience for feed subscribers would be to point them back to the site whenever there was Flash content involved. Sigh. So, long story short: optimise for your site in whatever way works best for you, and don’t worry about feeds for now. You’re welcome, etc.

No comments

WordPress, Twitter, RSS and Dreamhost: sigh.

Posted by Kerry Turner on July 27, 2009
Filed under: How to

I had a nightmare earlier this week trying to show my latest tweets in this WordPress blog. I googled a lot (A LOT) to find some decent information on this without success, so I’m posting this in the hope that it clears things up for anyone else who’s having this problem.

I couldn’t connect to Twitter from my site at all. When I tried using Twitter Tools, I got massive slowdowns and the following scary error message:

Warning: fsockopen() [function.fsockopen]: unable to connect to twitter.com:80 (Connection timed out) in [myURL]/wp-includes/class-snoopy.php on line 1142.

All I wanted to do was grab the RSS feed of my public tweets, so I wasn’t worried about using Twitter Tools specifically. However, no matter how many ways I tried to connect to Twitter – using cURL, or just trying to grab the feed like I would any other RSS feed and parse it with SimplePie – I couldn’t get it to display at all. All I was getting were timeouts or reports that there were no public messages in my feed.

I contacted my host, Dreamhost, and they confirmed what I suspected: the problem is on Twitter’s end. For some reason, Twitter seems to be blocking my IP. I contacted Twitter about this, but am still waiting to hear back (update: September now, still waiting!).

So, long story short, if you’re getting this sort of error repeatedly: chances are that Twitter is blocking your site and you simply can’t connect to it, full stop. It’s probably not the news you were hoping for, but hopefully this little gem will save you hours of trying to fix something that is nothing to do with your code!

I’m still hoping this’ll be resolved eventually, but in the meantime the only way I’ve found to integrate Twitter into my site is to use a middleman: stick your Twitter feed in an aggregator, use a widget hosted on a different site, etc. Not ideal, but does the trick.

3 comments

Finally!

Posted by Kerry Turner on July 14, 2009
Filed under: General chatter

I’ve been promising myself that I’d set this site up for the best part of two years. Like they say, the cobbler’s child is always the one without a decent website.

Anyway, I’ve finally overcome the whole busman’s holiday aspect. I’m looking forward to populating the site with a few of my favourite works in progress over the coming weeks – until then, feel free to just soak up the ambience and admire some of my previous work.

No comments