Uncategorized Archive

Silverlight vs Flash

OK, so this is going to be one of those Microsoft vs everyone else rants but I can’t help it – there’s a reason they keep cropping up.

Many moons ago I visited the Microsoft website for assistance in fixing a problem they’d created and was asked to install Silverlight. Since my job involves keeping up to date with web technologies I installed it and as far as I know haven’t used it since.

It turns out that one website does use it – Sky Player. I use Sky Player when I’m working in the evenings so i work on one Mac and then watch TV or a film on Sky Player using my Laptop.

At the weekend I was working a bit on Friday night and loaded up Firefox to go to Sky Player. Firefox then informed me that a plugin wanted to be run in 32 bit mode – a message I hadn’t seen before but I assumed was due to the recent upgrade to Firefox 5 which must now natively run in 64 bit and some plugins haven’t been updated yet. Since I knew Flash was alright, that’s when I found out it was running Silverlight.

Now here’s my problem with Microsoft and Silverlight. You upgrade Firefox and sometimes it informs you that you need to upgrade Flash too and so you do and then everything just keeps working nicely. Not so with Microsoft. Because everything they do has to have a business / revenue generating reason behind it, they don’t play well with others. That means that Firefox doesn’t inform you that Silverlight needs to be updated.

So, why is this a downside? Well, because in the case of Sky Player, they use a system to authenticate devices so you can only watch stuff through your Sky account on a number of devices and one of those must be authenticated as the main device, so in my case I have accountname-Mac, accountname-Windows and accountname-Xbox with the Mac being the main device. However when I went in at the weekend, it was saying the device I was using wasn’t registered and it would be registered automatically. Except that it was in the registered device list and wouldn’t add itself again or become authenticated so I couldn’t watch anything.

Arrrggghhh, they annoy me.

Removing the bubble from embedded Google Maps

If you are creating a website with a Google Map embedded on the contact page in an iFrame but the Customize and Preview from the Google Maps page only let you embed it with the bubble in it you can remove this by going to the end of your iFrame code and adding &iwloc=near after the output=embed.

Should fix all your problems

Using custom fonts with CSS

Since starting at my new place the design team have been developing website designs for me to implement. In the past the designers I have worked with have been web designers and so have accepted that you can only use a few fonts, verdana, arial, times, etc. However the new team are graphic designers and as such love using custom fonts in the layouts.

Previously I would have just picked the closest web safe font and used that but being new and wanting to create a good impression, I thought I’d do some research and find out if it was possible. Turns out it is. The first thing you need to do is get your font in the correct format. Depending on what format your font is in you should be able to convert it to the two types you need, TTF (True Type Font) and EOF (Embedded Open Type) using the excellent Online Font Converter website. Once done all you need is to use some CSS in your stylesheet.

@font-face
{
font-family: "font_name";
src: url('font_name.eot');
src: local(font_name), url('font_name.ttf') format('opentype');
}

All you then need to do is declare it for the various CSS definitions:

body,p
{
font-family: font_name, Verdana, Arial, Helvetica, sans-serif;
}

And there you go. I’ve tested this on my Mac using Firefox and Safari, Windows using IE8 and my iPhone. It didn’t work on the iPhone but using the above example, defaulted back to Verdana which is close to the test font I was using, Myriad-Pro. As long as you choose a similar looking font to specify after your custom font in the font-family you should be OK.

Automatically tracking marketing information – what to collect

For a long time now our company has been tracking where our sales come from by using special links in emails and using the http referrer to determin search engine referals and other website’s inbound links. This has been working well but has been a source of controvesy at times since some parts of our team see that we gain sales from emails and search engines primarily and yet all of our marketing speniture goes on more traditional marketing methods such as adverts in publications, printed brochures, exhibitions.

The reason we don’t just stop doing it is brand awareness. This is more difficult to measure. Essentially, someone could buy a product because they saw one of our webpages as the third result on Google and clicked on it – fine, a sale through search engine marketing. But what if they only clicked on the third link because they had heard of the company – the expensive marketing methods had raised awareness of us so that when they saw the company name, that brand was reputable enough to make them ignore the other providers.

That is what we now are going to try and track through simply asking the customers the question. Problem is that if asked, could you remember how you heard about Apple’s iPod? Probably not and this “brand awareness” problem is what I want to remove. Marketing people love it as it adds an element of mystery to what they do and can therefore gain them bigger budgets.

The current state of the PHP developer job market

So due to the fact that a few people have recently handed in the resignation at our company and plus I can’t remember whether we’re still in a receission or just leaving it or something but you’d think that since one in ten are out of work there wouldn’t be much out there. I decided to look to see what jobs there are for what I was originally trained for which is PHP/MySQL Developer.

It turns out that there is a fair bit out there. There’s not so much in the Junior field – noone seems to want to get the graduates but would prefer to pay more for the experienced candidates. And the wages aren’t that low either – I’ve seen lots at pretty high salary and quite a few in this area for equal or more money than I’m on (and mine is much higher than average).

Worth keeping an eye on.

Windows 7: Windows DVD Maker will not do Widescreen!

I’ve got a few movies on my laptop, all of which are in widescreen format and saved as AVIs. They are absolutely fine, play fine in widescreen on my laptop and even using my HDMI connection, play fine in widescreen when hooked up to my TV. I then decided to burn these onto DVD so people could watch them on the TV without having to wait until I wasn’t using my laptop.

Windows DVD Maker is really good. It is easier and better than any of the free tools in previous versions of windows or as part of DVD recording software packages I’ve used in the past. All you have to do is add the video files, choose a menu design and then click burn. This worked fine for the first one I did but since then it’s been taking widescreen videos, adding them to a widescreen menu and then playing the resulting DVD in 4:3 format instead of 16:9. Even changing the very limited options does nothing – it ignors choosing either 4:3 or 16:9 from the options menu – it still burns everything in 16:9!

Turns out the simplest solution is actually more free Microsoft software – namely Windows Live Movie Maker. All you have to do is download it, install it and then follow the below instructions to create your DVD.

  1. Open Windows Live Movie Maker, Add your movie.
  2. Click on the View tab and set the Aspect Ratio to Widescreen
  3. Publish the file in Widescreen format

You can then use the new video file to create your DVD. Simples.

Bosch Exxcel WVD24520GB & the child lock

We’ve got a Bosch Exxcel WVD24520GB Washer Dryer and it’s been great – up until now! It has a supposedly “brilliant” feature called a child lock. It is a good idea because you can turn it on and then your children can’t turn the dials or push the buttons and screw up the wash cycle!

Problem is that unless you’ve got too much free time and actually sat there and read the manual from front to back – noone knows how to turn it on and so doesn’t use it. Until the child – in my case my two year old daughter – presses a few buttons and turns it on by accident!

You then got one hell of a task to turn it off. Turns out it’s this easy:

Hold down the clock/time button for five seconds

I just wish I’d been able to find that out without having to read the entire manual from front to nearly the back.

1and1 Dedicated Root Server and resizing their partitions

I’ve got one of 1and1 root servers and it just went tits up again and required a reinstall. After going through the Server Re-Image process the server is up and running again – with the following stupid partition setup:

  • 1Gb / (on a 120Gb drive!)
  • 5Gb /var
  • 5Gb /usr
  • 109Gb /home

Now unless you run a company creating static HTML files for 100 million small businesses, this is a really stupid setup.

Here’s how you can sort it all out into something more useful. I wanted everything on just one major / partition so I could just forget about it.

  • Reboot using the Linux Rescue Mode (from the 1and1 Control Panel)
  • The default setup has just enough data on it to fit on the 1GB partition. Copy it all over as follows:
    • mkdir /mnt/root
    • mkdir /mnt/var
    • mkdir /mnt/usr
    • mount -t ext3 /dev/sda1 /mnt/root
    • mount -t xfs /dev/sda5 /mnt/usr
    • mount -t xfs /dev/sda6 /mnt/var
    • mv /mnt/var/* /mnt/root/var
    • mv /mnt/usr/* /mnt/root/usr
  • Next: modify fstab for the new setup: use VI to open /mnt/root/etc/fstab and remove the lines containing /var /usr /home
  • umount -a
  • Next: move your swap to the end of the drive and resize your main / partition to fill the space:
    • Run: “parted”
    • “resize 2 start end” where start and end are near the end of the drive
    • “resize 1 0 near-the-end”
    • If you get errors, try doing the resize in increments
  • Reboot and you’re done

All fixed

How much tax do you pay?

With the current political and economical climate I was wondering how much tax I actually pay every month so I spent a quick five minutes working it out. Every month we’ve got those taxes we need to pay:

  • Income Tax – 20% a month
  • Council Tax – £113 a month
  • Road Licence Tax – £15 a month

So that’s the big ones every month but it doesn’t stop there because for everything else (except rent in my case) you pay tax on in the form of VAT at 17.5%. And then if you have any money left after paying all the bills and want to enjoy yourself, you may have to shell out more on added tax on beer or cigarettes for example.

Then there’s the issue with fuel – as well as VAT, there’s also Fuel Duty Tax – an extra 43% per litre.

I’ve worked this out and for my wages it works out that by paying my bills and going to work every day, about 36% of my money goes straight in the governments pockets. And then they piss it all away building big wheels in London instead of using it productively to improve the conditions of living in the country.

Something to think about.

Another pointless post

Happy Birthday DevBlog. You’re 3 today.

Carry on…