Skip to content

Blog

I like vnc2swf – oh, and a quick screencast for you

Finally found a decent video screen capture solution for Linux (well, actually it’s cross-platform but that’s even better). It’s called pyvnc2swf and hopefully it will allow me to augment my future tutorials with video and audio.

So to test it out, here is a quick demo of killing processes, tying in with my recent tutorial on the subject.

Don’t worry, I’ll reveal all on how to set up pyvnc2swf with audio and all that stuff in due course.

Watch it here.

(While I can get KDE running in my recording VNC system by running killall twm;startkde, I can’t seem to find the command for Gnome, and it would be great to offer cross-desktop screen demos. Someone tell me how! Please…)

Firefox 2.0 is fast… and I mean fast

Just had a very quick play with Firefox 2.0 RC2.

The new icon theme is nice and there are various enhancements to the feed functionality and UI and stuff.

But by far, the best thing about FF 2.0 I’ve seen so far is that it is fast

On an AMD Sempron 2600+ (this is not my main system, a P4 3.0 GHz) it goes from nought to loaded up and ready to go in 1.05 seconds. Compare that to 1.5.0.4 (yes, it’s old because it’s a SLED 10 system and I don’t have any updates on it) which hobbles along and gets there in 2.88 seconds.

I’m officially fired up about Firefox 2.0 now – the only bad thing will be waiting for extensions to get compatibility (though I might resort to tweaking the install.js files if necessary).

(Why am I so fired up about less than 3 seconds? Because it really does make a difference to have your app instantly respond to you.) I’ll have the same for Thunderbird, please (TB 1.5.0.7 is not very quick to start up either).

I like it!

Disclaimer: my timing is in no way scientific, I just used a stopwatch, so they’re probably really inaccurate. But you get the gist, it’s fast and if you still don’t believe me, download it and test it against the latest 1.5.0.x build.

WPGet 0.5 – new config tool and new features

WPGet – the script to include WordPress posts in your non-WordPress site has been updated, again!

This time I’ve added new features and functionality. We now have the option of stripping images, embeds and JavaScript (image and embed stripping was previously mandatory) and a new Config Tool to generate all the code for integration for you.

Also, there are some new screenshots of the Config Tool on the PHP Classes page as well as the new updated files.

Download here or at PHP Classes.

PodDev Episode 3

Killing misbehaving programs and processes

Beginner's Linux

It’s time for another quick Beginner’s Linux!

I’d love to say it doesn’t happen on Linux, but very rarely it does. I can say it happens less often than on Windows, though. What am I talking about? Programs and processes misbehaving – locking up, stopping working and generally causing a problem.

The problem on Windows is that if this happens, there’s no sure fire way to just nuke the offending app from your running processes. Yes, you can use Task Manager and close the process, but if that doesn’t work, well… (bad memories here).

On Linux, if this situation does occur, you have a couple of wonderful programs called kill and killall that are invaluable for killing things when they go wrong (saves many a restart of the whole system).

This is going to be quite a quick tutorial, partly because the subject matter doesn’t take that much time to cover and partly because I’m starting to get quite a lot of work I have to do, which means I’m going have to be a bit brief. Anyway, onto the tutorial…

» Read the rest of this post…

We like Google Code Search

FullFeeds and my stance on feed advertising

I read far too many feeds I’m sure. This morning I’ve spent literally about half an hour catching up with all the feeds I’m subscribed to and the last time I was reading feed items was last night at about 9:00pm. Google Reader only was able to tell me that there were ‘100+’ new items but I’m sure it was at least 200-300. In one night (for me, anyway).

Now when I see a feed item that isn’t in full in my Reader, I am forced to click through and open a new tab to read that story. When you consider how much time I have to spend to keep up anyway, this is very irritating and breaks the flow of reading.

FullFeeds is an online petition (JavaScript mandatory) with the intention of getting content publishers to use full-length feeds to avoid this irritation.

I signed it, saying:

The BBC are very guilty of this – and for no real reason. In the UK, they have no ads (and shouldn’t do) because they’re funded by the TV licence. So why do they have only extracts in their feeds?

If a feed isn’t in full, I’m less likely to read it in full and less likely to ‘star’ it (where starred items show up on my homepage on the right).

I don’t even mind seeing a small text (preferred) or an unintrusive, small graphical ad at the bottom. I understand the need for content publishers to monetise their content and I don’t mind that (provided of course it’s not a massive great banner ad, you get the idea). But only publishing part of the feed content and forcing me to click through (and then consume the ads) is a terrible idea.

In fact, I’m much more likely to accept advertising via RSS. I use NoScript for Firefox, which means that JavaScript is turned off for sites I don’t specifically allow. (I’m paranoid!) But seriously, I don’t trust random sites running JavaScript on my machine without clearing it with me first. This means that advertisers that rely on JavaScript to deliver their ads don’t get their ads to me. And tough luck, because in my opinion, they shouldn’t rely on JavaScript for that purpose.

Since ads in feeds don’t use JavaScript, I’m much more likely to see them and accept them. Hey, it’ll work before we start seeing ‘AdBlock’ extensions for feed readers…

Content publishers – take note and enjoy ‘feedvertising’ while it lasts.

Ernest Wojciuk wins the award and related news

Just a quick post to congratulate Ernest Wojciuk, whose class PHP Email to DB won the September 2006 PHP Classes innovation award.

I’m still amazed that I got nominated, though. Thanks again and I still love the nomination badge!

In other WPGet news, there’s a slightly new version (download here or at PHP Classes) which includes a minor fix to the image and embed stripping code – now it will remove images and embeds from posts even if the image/embed isn’t at the start of the post. The cause was a slightly wrong regex.

UPDATE: Also it seems the WordPress Italy blog [translated] have featured WPGet. Thanks!

I’m nominated for a PHP Classes innovation award!

Wow! Just received an email:

Congratulations Peter,

This is a notification message to let you know that your package WPGet was
nominated to the PHP Programming Innovation Award among all the classes
approved for publishing in the PHP Classes site during the month of
September of 2006.

Here’s my award nominee badge (I’m so proud!): (needs JavaScript)

Just a quick note – I am by no means expecting to win this at all and I’d be very surprised if I did. In fact, I was pretty shocked at receiving the email!

If you’d like to see all the amazing guys I’m up against (who I’m sure are much more deserving for this award than me) and vote for your favourite, go to the Vote page here.

Wow!! Wow! Wow! Thanks PHP Classes!!

Of Apple and British keyboards

… and why Apple can’t be bothered to properly localise Apple keyboards this side of the Atlantic.

But I should really start at the beginning. Basically, for a long time now I’ve been pondering a decision to buy a brand new MacBook. I came to the conclusion that I will, but I’ll wait for not only Mac OS X Leopard, but also hopefully for an Intel Core 2 Duo (Merom) version, fingers crossed.

So today I saw a MacBook ‘in the flesh’, not for the first time, but I suddenly noticed that the keyboard layout was rather strange. Basically, British layout keyboards have some minor differences to US ones, including having a £ sign located at Shift+3, and having the character at Shift+2, not Shift+’ (the @ is then located at Shift+’ instead). Plus, also the # sign is somewhere else… you get the idea. It’s standard QWERTY with some tweaks.

Now the MacBook (and every other Mac in the, ironically named, PC World store) had the £ key in the correct place, but all the other keys were US style.

This would be a major problem for me, as I’m so used to typing with the British layout, I’d get endlessly frustrated having to hunt around actually looking at the keyboard to find a key. In fact, I couldn’t see the hash key (#) anywhere on the Apple keyboards! Not that I wouldn’t get over switching to the US layout, but you see, every other keyboard over here is in the standard British layout described above. I do not want to learn two different keyboard layouts and have to think which one to use!

A look in System Preferences revealed that the MacBook believed it was using a British keyboard layout and I couldn’t find any other layout among the many localised keyboard setups that seemed to offer the proper setting. Imagine if I plugged in the keyboard I’m using now. Like 99.99% of keyboards over here, it’s in the British configuration. I’d press , but end up with an @ – I’d end up getting very frustrated.

Thankfully, I’m not the first to discover this and Phil Gyford has devised a solution which involves installing a custom keyboard layout. Thank you, Phil! Without this I may well have had second thoughts about my MacBook purchase, which I’ll make as soon as Leopard is out (provided they’re not just about to release a Core 2 MacBook at that point).

It won’t fix the labelling of the keyboard, but to be honest I won’t be looking at that while typing, will I?

Small details ... big impact - like the wrong keyboard layout

Small details. Big impact. Like having the wrong keyboard layout that almost made me think twice about getting a Mac.

Seriously, sort it out, Apple. If every other manufacturer can do it (seriously, every computer sold in the UK gets it right), then surely you can.

You almost scared me off your entire product range. And you were saved only by a hack by a user of your products.

OK, end of rant.