Someone forgot to check the meter and it seems that LibDemVoice is currently down because we’ve run out of bandwidth.
As soon as the guy in a field in Scotland pays for some more, it’ll be down until further notice. UPDATED: site now back up.
Sorry for all you Blogger bloggers. I upgraded my webserver to PHP5 and didn’t notice that one of the scripts used in LibDemBlogs no longer worked. What this meant was that the site thought all your posts were made on the 1st Jan 1970 and so didn’t bother to display them.
I’ve now found the offending piece of code and hopefully everything should be back to normal by now.
I did wonder why it was so quite on the site, but I just assumed that everyone was in Crewe or Henley.
For some reason when you select the embed option in Youtube the code they provide includes <embed> tags. However these are big no-no’s in HTML. Youtube also have empty <param> tags, which should really end with />. On top of that I’ve still yet to work out why Youtube insist on having the video at 425×355 pixels, when clearly the resolution is only 320 pixels wide. Thus creating a rather blocky video as it is badly upscaled. So instead here is the “easy” way to embed Youtube videos.
Take your original code from Youtube: <object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/yVjzd320gew&hl=en"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/yVjzd320gew&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
take note of what is in bold and replace with: <object type="application/x-shockwave-flash" data="http://www.youtube.com/v/yVjzd320gew&hl=en" width="320" height="267"><param name="movie" value="http://www.youtube.com/v/yVjzd320gew&hl=en" /><param name="FlashVars" value="playerMode=embedded" /><param name="wmode" value="transparent" /></object>
making sure that the bold bits in the original are in the new bit of code.
This weekend I have been mostly playing about with Twitter.
First I created a CNPS (Consecutive Number Plate Spotting) TwitterBot. The bot watches for @ and d messages to it, it then adds the plates to my database. Anyone with a Twitter account AND and Artesea account can get it to work, just visit the mashup page here for more info.
Next I managed to exceed the weekly allowance for tweets to my mobile. Think it was something to do with a large number of followers at Conference.
And just now I’ve installed a New Post -> Twitter plugin. This one seems to be one of the best as it’s run from my webserver (doesn’t require frequent polling of the rss feed), and it has the option to enable/disable tweets for draft, edits or new posts, so unlike other who have similar plugins you should only get a tweet from my blog when I hit Publish.
No, not Mark’s post from earlier, but the random Euro signs which have appear across LibDemBlogs today.
There seems to be a character set issue between my server and everyone’s RSS feeds, so when people used fancy curly quotes they just appeared as garbage.
The true problem will need to be fixed, however for the time being, I’ve just got a find and replace script instead.
Some caveats, only the most recent 10 posts per blogger are shown on LibDemBlogs, so some archive pages might not contain all the posts on that day. The most popular blog is counted by the number of click-throughs to the main URL of a blog, it is excluding all links direct to blog posts. The most popular posts only count those clicked directly on the title of the post on LibDemBlogs, excluded is any links followed via the RSS feed, or people who clicked on the authors name.
Our old broadband seems to have been finally cut off, so it looks like I’m going to be without for nearly a month whilst we wait for TalkTalk to set us up. I can get my phone to act as a modem (and if I’m luckly I can steal Heather’s which has HSPDA), but please be patient if you have any LibDemBlogs/LibDemVoice technical requirements.
There is a problem having your website hosted on a shared server, which is that you really need to trust your webhost. So I was rather shocked today when installing phpMyAdmin that without configuring the config.inc.php file I was able to login to the mySQL database.
Not only that but I could see the names of every table on my server. Now this has happened before, but any attempts to view these tables resulted in errors, but this time I was able to view any table, read all the content and even edit a random persons blog post (don’t worry, I undid the changes).
Of any security issue this was a big one, I could have gained access to a large number of wordpress blogs, and if I looked I’m sure I could have found a forum with usernames, emails and md5 hashes of passwords.
However I’m not out for “hacking”, so I contacted my webhost and shortly after as password was added to the mysql root.
It’s seems that Gmail has gone through some small changes, extra divs showing background ajax commands, my email address inside the <title> tags, whilst writing emails the Firefox status/loading bar flashes like a disco and some other stuff.
I know it’s changed as I’ve got an Older Version link, however on the What’s New page I can’t see anything and the same goes for the blog.
The problem, I’ve now had Firefox crash on my three times (over two machines) when I’ve clicked on the Spam link (not everytime), and for some reason it doesn’t want to remember that I don’t want this new version. I can’t see anything great about it, and whilst they don’t want to tell me whats new why would I.
Maybe it’s time to downgrade to a UK version?
I wanted to put a WP-Admin link on my blog, but one which only showed to me whilst I was logged in.
So hunting through the WordPress Codex I tried to find something like is_admin(), but couldn’t find it. Then going through all the PHP files I found this function current_user_can(capability) which returns true or false if the logged in user can do that capability. Next I had to work out a capability which only admin could do, but a quick look at the source code showed that it should be possible to enter an integer which related to a level.
So finally I have this on my blog: <?php if(current_user_can(10)) { ?><a href="/wp-admin/">WP-Admin</a><?php } ?>