Blog

  • AdSense Plugin & Old Google Code

    Since launching my Simple AdSense Insert plugin yesterday, I’ve had a query with regard to the parameters.

    The user came to supply the parameters to the plugin and found that one of them – google_ad_slot – didn’t exist in the AdSense code.

    After some digging, it turns out that is because Google changed the code format sometime before late 2007. If you’re using code from before then, it more than likely won’t have the ad_slot parameter. If this is the case, you simply need to go back into AdSense and recreate your advert (or, if you had it saved, simply bring it back up again) and get the new code.

  • Displaying code in WordPress

    After experiencing some problems around displaying code in WordPress (mainly around the code lines being too long and wrapping off the side of the page) I installed Dean’s Code Highlighter.

    Now, don’t get me wrong, this is an excellent plugin. However, I found a flaw in it after someone reported a problem with the WordPress plugin that I launched yesterday. They’d copy and pasted the example code from my instructions page and it didn’t work. It turns out that the code highlighter had taken my single quotes and converted them to open and closed single quotes. Which broke the code.

    I had a good look at the plugin code but couldn’t easily work out a solution. In the end I realised that I simply didn’t need code highlighting so turned the whole thing off. Instead, I used a similar style and applied to the bog standard CODE wrap. The only down-side is that I have to wary of the line wrapping again.

  • Finding a specific sized image in Google

    A great tip that I read today is that you can search for specific sizes of images in Google. This would have been ideal a few days ago when I was looking for a feed icon of a certain size.

    Basically, you add imagesize:1x2 to the beginning of your search, where 1x2 is the width and height of the image that you require.

    Better still, here’s an example of exactly what I wanted the other day.

  • More Look-a-likes

    David Mitchell.

    Michael McIntyre.

    Now… Seth MacFarlane.

    Yes, apparently I’m supposed to look like the creator of Family Guy and, it would seem, one of the most powerful men in Hollywood.

    Anybody? Anybody?

    No, I don’t get it either.

  • £1 off at SatCure

    SatCureHey, it doesn’t sound much but, as my gran would say, it’s better than a smack in the mouth.

    SatCure are an online shop providing Satellite TV, Freeview and A/V accessories and associated items. But they’re cheap in the first place – you save money because they cut out the middle man. You get the goods shipped direct to your door by selected trade warehouses!

    They even provide unbeatable technical advice by email and in the form of web pages, eBooks and a discussion forum.

    Simply follow this link, fill in your details and your discount code will be emailed to you.