Showing posts with label Technology. Show all posts
Showing posts with label Technology. Show all posts

Tuesday, 14 June 2011

Mobile data: PAYG in Canada

Having found precious little on the web before my recent trip, I thought I'd do the right thing and publish my discoveries for the benefit of others.  This new-found knowledge is almost entirely down to an ex-local who just happened to be in Montreal when I was visiting and who found this for me - thanks Alex!

The first thing to note is that most providers in Canada require you to have a Canadian street address and a credit card. The staff in the cellphone shops are trained (or simply don't know any better?) that monthly contracts are the only option. Do not be dissuaded.

For only minimal (unverified) details of name and (any) date of birth, Fido offer a prepaid SIM (both full size and micro for iPhone/iPad) for free with top-ups from CA$10. This comes with a pretty ordinary tariff of domestic calls at 30c per minute and domestic texts at 10c each.

However, what I was after was data and this proved to be the real bargain. CA$2 buys 20MB or 24 hours, whichever comes first, and CA$7 buys 125MB or 7 days on the same terms. As soon as you attempt to use data or exceed your purchase allowance, you'll receive a text from 3330 offering you a link where you can buy the data add-ons. The fee is taken from your airtime balance.

Top-ups are readily available from tabacs where you'll be provided with a till receipt showing a fourteen digit number; dial *868 and follow the (tortuously slow) prompts and then wait for the confirmation - you'll get a confirmation text from 9000. You can check you available balance by dialling *225.

Fido's website says there's also a CA$25 500MB "month" option, although I didn't see this. Generally, the 3G service on my iPhone4 was very good, with some coverage even available on the underground Metro. To give them their full name, Fido Solutions are part of Rogers Communications and share some tower infrastructure in some locations as well as their own gear so I suspect coverage is just about the best that's available. That said, I didn't venture beyond the city so beware before you choose to rely on data for navigation, safety etc.

Sunday, 12 September 2010

Silence is golden

Many moons ago I posted a happy tale of LAN renovation and my delight in then owning a "cool and quiet" switching infrastructure. Alas, 30 months of dust and uptime had resulted in one of the devices becoming a bit of a problem, not least to my wife who had to endure it constantly whining (I hope those words are in the right order!).

The SRW2008MP 8-port PoE switch has a fan in its (huge) power-brick and also a fan within its case. Both of these now sound very unhappy with varying degrees of vibration and volume. Whilst I was searching t'Web for replacement fans I stumbled across what seemed to be a much better solution. Cisco now offer a fourth tier of product, fitting neatly after their SOHO and "Business Series" but before the fully-featured Catalyst range. An ESW-540-8P-K9 is the smallest (8-port) gigabit model of the new "Small Business Pro" ESW 500 range. Apart from increased performance and many other supported features, crucially this device is listed as "fanless" - hopefully that would be true of the PSU as well.

Setting the thing up was a breeze using the web-based interface. Rather than simply transposing the settings from the old device I took the opportunity to do some proper tidying up. Following a little re-patching (the new model has a separate combo-fibre/copper uplink and so is effectively a nine port device) everything sprang back into life. Of course, there was one major difference. Apart from a smaller device and power-brick than its predecessor, there were no fans - in fact, no noise at all. Happy days!

Or so it seemed.  When I looked to confirm syslog messages from the new switch were reaching my Splunk server I discovered that this (virtual) machine was apparently AWOL. I'd configured three switch uplinks and two VMware ESXi hosts as trunks and had allowed the necessary VLANs for my environment. Therein lies the gotcha. Looking in the logs on the switch I saw...
%2SWPORT-W-LOCKPORTACTIVE: A packet with source MAC 00:0c:29:81:21:a7 tried to access through port g6 which is locked
...and sure enough, looking deeper down in the configuration, I discovered all eight ports were configured by default with port security, allowing only three active MACs at a time. Some sort of warning when configuring a port as a trunk would have been a nice touch. Fixing the problem was easy but I bet this setting will be the cause of many a support call.

I suppose, bearing my mind my day job, I should be happy that Cisco thought some on-by-default security would be a good thing. I can't help but feel my experience is a typical example of why most people will simply turn off all that good stuff and enjoy their life just as they've always done.

Saturday, 14 November 2009

Post-trip photo sorting

I've just spent half a day sorting through photos of my recent trip, ready to bore my extended family and friends should they dare to ask me where I've been. Here's a brief rundown what took up all this time.

True to form, I'd neglected to update my camera settings properly as I moved between timezones and, for the changes I did make, even managed to change one camera and not the other, further complicating the situation. In order to have Picasa, iPhoto or whatever display the photos in the correct chronological order it was necessary to do a little rework.

My cameras save the date and time into the EXIF data of each photo as a discrete value, with no adjustment or recording of timezone or daylight saving settings. After working out the required time corrections by reviewing the photos against the cameras' current times, I created a plain text file ("dir /B IMG*.jpg > list.txt") containing one picture filename per line and then manually chopped this up so I had one file per time adjustment, e.g. "plus4.txt".

Using the excellent EXIFutils and the good old command-line "FOR", I was able to modify the EXIF data easily by adding the appropriate correction. The "exitdate.exe" tool allows you to add or subtract an amount of time to or from the existing timestamp data. A sample of my workings appears in the screenshot. (Remember, you need "%%i" in script files, "%i" if running the command interactively.)

Modifying the date/time of the AVI videos from my compact camera required a different tool. Each file contains metadata that can be edited with many downloadable tools, the best I've yet found is abcAVI. However nice it is for the metadata to be correct, this data is generally ignored and it's the file's modification time that is used by most photo libraries to determine the sort order for video clips. To correct this I used "touch" (in fact "touch.exe" from the UnxUtils toolset) to set the modification time back to the manually corrected time from the metadata. By the way, this is a bit of a pain as you need to make sure you preserve the file modification times as you move them around, sometimes a challenge if you're using FTP etc.

Now all I need to do is wade through the snaps and brutally cut out all but the ones that are worth keeping. Being a hoarder, that's something where I really struggle.

Tuesday, 10 November 2009

Cheap data for travellers with Telecom NZ

In order to keep mobile data costs down to a more reasonable level while I was holidaying in New Zealand, a kind and local chap recommended the Telecom NZ XT network as offering the best value. A quick trip down Queen Street allowed me to buy a NZ$30 SIM (including $15 of call credit) and a $20 top-up voucher. This, along with a $10 bonus for registering online, gave me a total of $45 calling credit. For NZ$30 you can buy a 30-day 500MB "data extras" pack, ideal for my blogging and Twittering needs.

However, the staff in the Telecom NZ shop were very pessimistic that my phone would be up to the job. Despite their compatibility checker (based on IMEI number) saying everything would be OK, they related stories of non-Telecom phones working for three days before packing up. My phone worked fine in the store with a test SIM so I felt sure all would be OK.

Everything was indeed fine until the following morning. From Browns Bay we headed north past Wellsford and I noticed my phone was apparently detecting a 3G network but I had no network name or indeed any signal strength. This remained the same all the way up to Paihia. It seemed Telecom's prediction had come true - no service for me.

My main UK mobile is a Nokia E71, specifically the E71-1 variant. Looking up the specs online reveals this version has WCDMA900/2100 capabilities, suitable for the UK market. I now know the XT network operates primarily on WCDMA850 with WCDMA2100 only "in some metro areas". Sure enough, on returning to my Auckland base the phone once again sprang into life.

All-in-all WCDMA2100 coverage seemed to be present only in a few built up areas (for me; Auckland city centre, Browns Bay, Queenstown - nothing in Whangerai for example). It seems this frequency is implemented alongside the ubiquitous XT standard WCDMA850 to provide extra calling capacity in busy locations.

To receive anything approaching the claimed coverage you really need to have a WCDMA850 capable device. The Nokia E71-2 (WCDMA850/1900) or, even better, the E71-3 (WCDMA850/2100) phones for example would be ideal.

So, there is no mystery (surprise!) and phones do not drop off the network after a few days, but it is very possible you will move out of range of a suitable network for your device. If you have the right equipment, all will be fine. Happy surfing!

Thursday, 2 July 2009

Updating Asterisk

Wow, I've not blogged for a long time! (In fact I wrote the bulk of this post in March.) I'd like to say my publishing hiatus has been due to something very exciting and worthy of your envy but alas any such stories would be not much more than fantasy. In any event, my Twitterings no doubt have revealed just what has been keeping me busy. A family update may soon follow this posting but for the time being, technical matters have my attention.

In a moment of springtime madness, far too late at night and when I was far too tired, I decided it would be a great idea to bring my 1.4.21.2 Asterisk installation up to the (then) current 1.4.23.2 release. This was in no small part prompted by Clint's commissioning of his FreePBX VM while we were skiing in France at the beginning of March, although there was no particular problem that I expected to remedy with this update. Predictably, the whole process turned to custard and another six hours of my waking consciousness was squandered putting things right. Here are my top three learnings.

The renaming of Zaptel to DAHDI seems to be spectacularly poorly documented. I didn't manage to find any easy way of removing the Zaptel 1.4.11 drivers so I had to hack these out manually. Installing the DADHI 2.1.0.4 equivalent (with the 2.1.0.2 tools) was quite straightforward but, for a while, that was as far as I got. The DAHDI module would not load in Asterisk and there was no sign of my TDM400P card or its associated channels. I had to resort to reading the source code to find out what was wrong. The promised 'etc/asterisk/chan_dahdi.conf' generated file was missing but, in this event, the code looks for the old 'etc/asterisk/zapata.conf' which unfortunately no longer works. Again I was left to manual editing.

Testing my PSTN lines once DAHDI was again working reminded me that UK caller ID is received intermittently and I summised ths same fix I discussed here was required. However, following the massive search and replace that has been enacted on the Asterisk source code, the old patch failed completely. (I'd forgotten this was just one more reason why my sane half had planned to stick with the existing versions until some imperative made me move.) I manually modified the 1.4.23.2 chan_dahdi.c file to apply the same fix and generated the revised patch file (here). One more recompile and I was back in business.

Everything has been very stable since. From the logs I can see that without the patch I would have missed CID on one in every four calls or so.

Update: I've since updated to Asterisk 1.4.25.1 and Dahdi 2.2.0 without problems. The patch file I created for 1.4.23.2 applies to fine for this and all intervening versions.

Friday, 5 December 2008

Gmail gadgets

While I was (spending far too much time) investigating the best Gmail theme for my purposes, I had another look at the other bits in Labs that might prove interesting to me. Google's own gadgets didn't seem very inspiring but the "Add any gadget by URL" caught my eye as, perhaps, having the greatest potential.

The only obvious this I could see missing from this gadget is the facility to adjust the order of the gadgets that it displays, with its default behaviour to apparently sort everything alphabetically. Perhaps this is a deliberate deduplication as another Labs option, "Navbar drag and drop", does allow you to tailor the gadget layout to your needs.

Having tried a few, PolyClock is by far my favourite. For me, this has completely replaced the erstwhile essential Qlock application that I had installed quite liberally around my PC estate. The developer responded instantly when I found my chosen theme had a narrower Navbar than the default, causing scrollbars to be unnecessarily displayed, thanks Sterling! I'm sure my friends living in the future, by a few hours at least, will be grateful of me realising the time before I try to wake them up with Chat and other annoyances.

The only thing with these gadgets that's not so nice is that they tend not to be available over HTTPS. This causes an "Always use https" Gmail session to warn of mixed content. Hopefully this is something that will get better over time, as the gadgets become more popular.

As an aside, it's quite scary to me just how much I come to depend on Google's email service, especially when I'm away from home, and quite amazing how very, very infrequently it's ever let me down. Long may this continue!

Thursday, 6 November 2008

Web-non-sense?

In recent days I've found myself perusing the electric Internet through the eyes of a rather prudish WebSense device. The policy that has been deployed is as draconian as I've witnessed in a real World environment but some things are more than odd. For example...

I wanted to refer to a friend's posting on his blog. Trying to visit http://clintspot.blogspot.com/ fairly predictably redirected me to a page saying that "personal and social networking" sites were disallowed.

With my tutting out loud, a colleague said he thought I was "doing it wrong" as he was able to reach my (this) blog from his work PC. A vigorous investigation was immediately kicked off.

Indeed this blog is available via the filter. Clint's blog is so far the only blogspot.com site I've been unable to reach. Random sites such as http://clint.blogspot.com/ and http://spot.blogspot.com/ are rendered without complaint.

So, what's up with http://clintspot.blogspot.com/? Am I missing something? Or perhaps WebSense can't cope with the NZ accent... :-)

Thursday, 30 October 2008

Hurrah for version 2.0

Following on from my rather miserable post berating Google for letting themselves down, I was delighted to see that they promptly took my comments on board and on the 23rd announced v2.0 of their "Gmail for mobile" application. Now I've had chance to live with it for a couple of days I feel I need to rave on once more about Goliath's latest offering.

I use the S60 3rd Edition version of the app on my Nokia E71. I've been very happy with this handset, finding it much quicker and more reliable than the E61i and E61 that preceded it (although at the time I said the same about each of these). The built-in IMAP client for my work email is good but I like the threaded interface of the Gmail app and have persevered in spite of the lack of a similar offline mode.

As my current workplace happens to be sited in a "chuffin' great 'ole" in the Derbyshire hills, cellular network reception varies from extremely patchy to non-existant. With the old v1.5 app, when I did find a signal it would frequently not last long enough for me to connect and read my email online. Now with v2.0 I can do a quick burst of send/receive and then peruse my inbox and compose messages/replies at my leisure.

Another good thing is that I can now have the "always use HTTPS" option ticked in my Gmail settings as this version doesn't barf in the same way as its predecessor.

For my own reference, I installed the updated app on my venerable E61. The Gmail app on this phone had become progressively slower, so much so that in the end it took over 30 seconds from clicking start to actually seeing something appear on the phone's screen. Whilst not as quick as my current phone, this version starts up quickly enough on the old hardware.

So, happy again with Google Corp I've decided to waste more hours of my life on the new Google Earth for iPhone/iPod touch. Très super.

Wednesday, 17 September 2008

Cheap remote power control via SMS

Following on from the spasmodic power interruptions of this summer I've been investigating how to improve the survivability of my IT infrastructure. Now, in the event of any electrical trouble, my infrastructure powers itself off in an intelligent and orderly fashion, save for a minimal core of low-power equipment that tries to stay alive until the very, very last gasp of battery power. A couple of APC switched PDU devices allow me to control sixteen individual sockets remotely so even my most archaic machines can be effectively managed. Having already beefed up my lead/acid capacity and remote control capability I decided to look again at notification.

Whilst I have most things configured to cry for help via email, this relies on someone actually monitoring for such messages if any useful remedial action is going to be taken. I used to use a free email-to-SMS gateway but this type of service seems to have dried up, in the UK at least. It occurred to me that perhaps I could attach a pay-as-you-go GSM phone to my always-on Asterisk server and then send SMSes using shell scripts. A brief Google turned up the gnokii toolset.

I've got a number of old Nokia phones lying around, most with an accompanying data cable, but all of these require a separate charger. Ideally I wanted something that would get it's juice from USB power provided by the data cable itself. An old Samsung clamshell did just this and "gnokii --identify" configured for USB and the AT command set confirmed that the phone was recognised.

Sending SMSes proved to be very trivial indeed and I now have any critical power events from my UPSes forwarded on to my mobile. I've tagged the remaining PAYG balance onto the end of each message so I am reminded of when I need to (remotely) top-up.

Once this was up and working, it was obvious that I could parse messages coming in the other direction. Configuring gnokii's smsd and some more very easy scripting now allows me to control most of my infrastructure from my mobile. I've restricted access so that only a whitelist of CIDs are permitted to use the (of course unpublished) service and have made the command syntax pretty much unguessable with no feedback to failed commands. This leaves me vulnerable to the very few suitably skilled and authorised bods working for mobile phone companies who could eavesdrop and then spoof instructions, so I'll hook the scripts up to my two factor authentication box when I get the chance. Functionality wins over security once again. :-)

Wednesday, 13 August 2008

Gmail's half-baked "always secure" offering

I was very happy to see the introduction of an "Always use HTTPS" option in my Gmail settings. For a long time I've been accessing Gmail via https://mail.google.com/ as this caused all traffic to be encrypted (rather than only the sign-in process), a good thing especially when you are away from home.

Unfortunately, enabling this new option breaks the Gmail Notifier application. Rather than release an updated version before offering the new feature, Google ask you to download the original file and apply this patch, actually a Registry file. Poor. And they don't even make this fix easy to find.

Also the S60 Gmail application for my phone is broken by the same setting. This is particularly surprising as a "Always use secure network connections (slower performance)" feature has been available for a long time. There is a workaround (here) but again this is much less than polished.

Come on Google, we expect better!

Sunday, 27 July 2008

Asterisk, TDM400P and reliable Caller ID in the UK

Since my post back in March, I've been quite remiss in keeping my own Asterisk box up to date. As it has been getting significantly more use in the last couple of weeks, I've noticed that I sometimes get external calls appearing to come from "asterisk asterisk" instead of the usual Caller ID information. Delving into the logs, it seems I've been failing to capture the calling party's CID about once in every five calls.

Blindly hoping that a freshened install may help, after having already shamed myself by running code that was over four months old(!), I brought the Zaptel software up to 1.4.11 and Asterisk up to 1.4.21.2. Unfortunately, and very predictably, this didn't alter the CID behaviour.

Reading around the subject I learned that for each incoming call my UK BT line undergoes a polarity reversal, a 300ms delay and then receives a burst of V23 CID information before the first ring. My ATCOM TDM400P clone and the wctdm drivers support the polarity reversal detection. Watching the Asterisk console showed that, on a failed CID capture, a "Got event 2 (Ring/Answered)..." was processed just before the CID information should have been displayed. Some further Googling eventually turned up this 2006 post and the answer.

I had to update chan_zap.c manually and have taken a new diff file that can be found here. To apply it, save the file to the root of your Asterisk source code and from there "patch -p0 <reliable-uk-callerid-1.4.21.diff", compile and install. I've tested this patch successfully on Asterisk 1.4.21, 1.4.21.1 and 1.4.21.2 and now Caller ID information is captured every time.

Wednesday, 9 July 2008

XP SP3 won't install? Back to the command line!

After my post back in May reporting no problems with the installation of XP SP3, it was inevitable that I would come across a machine that wouldn't play ball.

A client's XP SP2 machine was reporting errors during the Registry backup phase, complaining of "access denied" to the keys of "HKCR\MsTscAx.MsTscAx" and "HKCR\MsRDP.MsRDP" and some of their numbered duplicates.

The tech had chosen to ignore the errors, so allowing all the file updates to proceed, unfortunately only to be rolled back at the very end of the update process. Thankfully, as he'd also chosen not to take notes of the message details, "%SystemRoot%\svcpack.log" provided me with a full list. Trying to view the errant keys with RegEdit also reported the same error and attempting to repermission them did the same.

There are all sorts of misleading reports on the Web, most of which suggest hacking around while in "safe mode". In fact, Microsoft KB article 949377 provided the answer with its "method 3". Running "subinacl.exe" as suggested on each key solved the problem, allowing SP3 to install itself with no further issues.

Whilst it remains a mystery what caused these keys to become inaccessible, there are a number of discussions on the Web suggesting these particular keys often cause problems. It's amusing that one of MS's own products seems to have caused the difficulty.

Monday, 7 July 2008

RJ25 to DB9 serial port adapter

Hopefully this post will help others in a similar predicament. Recently I needed an APC 990-0144 RJ25 to DB9 serial cable so I could configure one of their Switched Rack PDUs but (rather predictably) the original wire was nowhere to be found. Extensive Googling did not provide many answers so I set about with a multi-meter to make my own. To make a long story short...

The pinouts of the RJ25 socket/plug, the RJ45 plug and the RJ45 socket to DB9F adapter are shown in the following table. The minimum three wires to provide the terminal connection are highlighted in bold. (Note that most of the Cisco adapters only have these three wires connected.)

RJ25My cableRJ45
DB9F
1 - Not connectedBlue


2 - GNDYellow5 - GND5 - GND
3 - RxGreen2 - RX2 - RX
4 - TxRed3 - Tx3 - Tx
5 - CTSBlack

8 - CTS
6 - RTSWhite

7 - RTS

I took a trip to Maplin and picked up a "FCC68 6P6C" (RJ25) IDC plug, one metre of "FCC68 6-core" cable. From my own box of tricks I collected an RJ45 IDC plug and a spare Cisco RJ45 to DB9F adapter (so as to eliminate the need for any soldering). Assembling the cable as per the table above, and shown close-up in the picture, worked first time.

As only pins 2,3 and 4 from the RJ25 are used, if you have a more common and spare RJ11 (6P4C) telephone cable you could chop one end off and terminate it with a RJ45 in a similar way to end up with the same cable.

This cable would appear to have the same pinout as used on, amongst others, some old DEC equipment and IBM FastT200 controllers (the IBM part number for the same cable appears to be FRU 19K1179).

Wednesday, 2 July 2008

VMware VirtualCenter 2.5 installation foibles

Earlier this week I was helping a customer update their VMware ESX environment to v3.5 build 82663 (from v3.0) and the associated VirtualCenter management server to v2.5 build 84782 (from v2.0), after they ran into problems trying to do the work themselves.

Following the successful installation of the "Infrastructure Client" and "VirtualCenter Server" packages, both the "Update Manager" and the "Converter Enterprise for VirtualCenter" plugin packages failed to complete, instead giving errors 25089 and 25086 respectively - "Error 2508x: Unable to logon to VirtualCenter". Knowing the that username and password supplied were correct, I started digging around the log files but there was nothing of interest to be had.

The customer's password was a complex one and happened to include a ";" (semi-colon) character. As the installation process connected to VirtualCenter over the SSL based (broswer) interface, and having prescious little else to go on, I wondered whether this might be the trouble. Sure enough, setting the password to a simple alphanumeric-only string solved the problem and setting the password back to its original form after in the install left everything as it should. I imagine this may prove a good deal trickier in some environments where a minimum password complexity standard is enforced, as I suspect more the just the semi-colon character may cause the same symptoms.

Final testing revealed one more problem. We couldn't manage to get to any of the virtual machine consoles. Network sniffing revealed the VI Client was making a connection to the ESX host on TCP:902 successfully but then trying also to connect on TCP:903 and this was failing. Examining the ESX host itself confirmed it wasn't even listening on TCP:903. This post on the VMware forums provided the answer and adding "vmauthd.server.alwaysProxy=TRUE" to "/etc/vmware/config" restored full service (VI Client now only uses TCP:902).

Monday, 30 June 2008

Inflation under control, Mr. Brown?

The ML115 G5 I ordered on Wednesday last week from LambdaTek for £94.61 (£111.17 inc. VAT) has suffered a price increase over the weekend. The same thing is now listed at £252.60 (£296.81 inc. VAT). Here is the link to the product page. I'm sure this must be a pricing error but I'm still very happy I got mine at the right time.

[Update: 02-Jul-08 09:15] Now that LambdaTek are out of stock (coincidence or sharp practice, I wonder) the price has dropped to £89.60 (£105.28 inc. VAT). IT247 are still advertising their "Deal of the Week" for the same product at £186.26 (£218.86 inc. VAT). At the time of writing, Micro Warehouse have it in stock at £92.18 (£108.31 inc. VAT). The HP part number is 470064-786 and the HP UK site lists this as £199 before VAT.

Friday, 27 June 2008

A screw loose?

This financial year's technology refresh has just got under way and yet another HP ProLiant bargain has made it on to my list. The ML115 G5 comes with a 160GB HDD, 512MB PC2-6400 RAM, SATA DVD rewriter and AMD Opteron 1214 dual core 64 bit processor, all for the princely sum of £94.61 before VAT (£111.17 including). The LO100c remote management card costs £112.99 (£132.76 including VAT), more than the server itself and so tiny it physically hurts me (a Yorkshireman!) to part with so much brass for it.

Like the other ML1xx servers the case is designed to accommodate four 3.5" HDDs and two 5¼" drives and, pleasantly, there are enough power connectors to cater for any combination of Molex or SATA devices. The six SATA channel G5 servers have no IDE channel (the ML110G4s, ML115G1s had four SATA and two IDE) and only one PCI slot, although they do have three (x1, x8 and x16) PCI-E slots (the G4s, G1s have two PCI and two x8 PCI-E). Extra memory is cheap as chips at the moment and this box doesn't need any more disk for its designated role.

Now, perhaps I'm taking this a little out of perspective but my server arrived quite incomplete. In the case there are, as usual, twelve screws for three additional 3.5" HDDs and four for an additional 5¼" device but where's the screw to hold the LO100c in place?!? I even had to suffer the ignominy of having to snap the pressed steel cover out of the way to install the card, presumably left in place to save the cost of the blank and screw that are to be found on the G1, and curiously the ML110 G5, variety. Obviously, I had a spare in my box of tricks but clearly that's not the point. I sincerely hope this is not the start of some slippery slope that will result in HP kit being just as poor as its main competitors. ;-)

Thursday, 19 June 2008

YouTube to MP3

A couple of people have asked me how to extract the audio track from some YouTube or MySpace ditties so they can play them on their iPods. You can buy commercial (and almost always rubbish) programs to do this but, at least if you use Firefox for your browser, you can achieve the same for free in two easy steps...

Downloading the content is simply a matter of installing a suitable Firefox plugin. The nicest one I've found so far, compatible with Fx3, is the inexplicably spaced and capitalised "Video DownloadHelper". This installs an icon in Fx's toolbar which in turn provides a drop-down list of media that can be downloaded on the page you happen to be viewing. YouTube videos arrive in the form of Adobe Flash Video ".flv" files. Once you have these on your hard drive you can play them with the utterly brilliant VLC Media Player.

Extracting the audio from the .flv file is made very easy with FLV Extract, to be found here. Simply drag the .flv file onto the FLV Extract window and the selected bits of the file will be saved back to the location of the dropped file. The video ends up as an .avi file (that Microsoft's Windows Media Player usually doesn't like but plays fine in VLC) and the audio ends up as an .mp3 file.

Before anyone decides to flame me, the same can be achieve using Microsoft's Internet Explorer but as there are no plugins to be had, usually you need to copy and paste YouTube URLs around the place - all very messy. See the light and give up on IE!!! :-)

Tuesday, 17 June 2008

Firefox 3's killer feature???

Reading through the list of new features in today's release of Firefox 3 leaves me a little bit underwhelmed. My "user experience" has always been fine and I haven't yet spotted any must-have improvements, my "security and privacy" has remained unimpinged (as far as I know!) and "performance" has never been a problem either.

I've been using Firefox 2 as my main browser pretty much since it was released at the end of 2006 and I've been very happy with it. Most things seem to work better than IE and now I take the trouble to install Fx if I'm going to be on a client's machine for anything more than a few hours.

The only thing that makes me fire up IE at all is printing. Microsoft made some great improvements with IE7 and leapt ahead of Fx2. I realise that printing the Web is not a great way to browse but for the most technophobic members of my family it's the only way for me to share my excitement.

I've been installing every release of Fx3 from the very first beta and have been using it was my main browser pretty much since beta 3. I like the new look and I'm happy to make the move, especially as all the plug-ins I use are already supporting Fx3 (I note Google have updated their Toolbar as well). Printing has got a little better but it's still not great. Try printing this blog to see what I'm struggling with.

I wonder whether this is going to be Fx3's greatest triumph. I'll just have to wait and see.

Wednesday, 4 June 2008

Ce n'est pas un Bonjour

This is really getting my goat. More and more I'm finding machines that have Apple's Bonjour (for Windows) service chatting away on the network unbeknownst to the system owners.

The Bonjour service "Enables hardware devices and software services to automatically configure themselves on the network and advertise their presence, so that users can discover and use those services without any unnecessary manual setup or administration.". Well, I don't want that and I object to not having been given the choice.

Even worse, forcibly removing this service can cause problems. On Windows XP the install adds a DLL to the LSP list and if this removed without correcting the list, all network access is lost. (It's good to have a copy of LSPfix downloaded beforehand.) Some good advice on how to remove the service safely can be found here.

Disabling the service in Windows is quick and fixes the problem in the short term, at least until I next dare to install something that may well re-enable it.

But where is it coming from? On my usual work machine I run a local firewall and process checker that catches the installation of Bonjour during the iTunes setup. However, blocking the Bonjour installation causes the whole iTunes installation to roll back so I am forced to accept. A brief Google reveals Adobe CS3 also installs the service, not even an Apple Inc. product, and I seem to remember that the Apple AirPort management utility did the same thing.

I don't need or want to have this service running on my machines. In the immortal words of Mr. Angry (from Purley): "it makes me so angry... I could throw the phone down!". Or even worse - arrggghhhhh!!!!!

Saturday, 31 May 2008

Pitying the poor consumer

Earlier this week I was asked to look at a brand new Compaq "delivered to you by HP"(???) C773EA laptop that a friend had bought from PC World for a very reasonable £399. He asked me to investigate why it was "running so slow", something I found quite surprising for such a new machine.

Headline specs are Intel Core 2 Duo T5550 1.83GHz, 2GB RAM, 120GB HDD, 15.4" BrightView screen and Vista Home Premium. For me, the only things missing are a serial port and Bluetooth, both of which could easily be remedied by USB adaptors. A more than reasonable hardware platform that reports a respectable Windows Experience Index of 3.5 (only brought down from 4.5 by the graphics adapter, no surprise on a laptop at this price point). So why should it seem to be so slow?

Looking at Task Manager revealed the answer. Compaq/HP had preloaded this consumer machine with so many auto-starting wizards and software packages that the boot time to reach a usable desktop was in excess of five minutes. Removing AIM6, AOL Toolbar 5.0, EA Link, My HP Games, The Sims Life Stories and a whole host of other HP rubbish immediately restored the machine to the expected snappy performer.

As the machine appeared to have been manufactured in April I was hopeful it would be reasonably up to date and that it might have SP1 already installed. Alas this was not the case. The good citizen in me insisted that the machine should be returned in a fully up to date condition (meaning I know how bad my friend was at updating his last XP laptop).

Running Windows Update revealed I needed to install 30 updates totalling 79.8MB. Although there are no prerequisites for SP1 I wondered if it would show up after these were installed so I went ahead, slowly "configuring updates..." on the way down and on the way back up, without any problem. I ran Windows Update again but still no SP1 was advertised. On the Microsoft website is the answer - "Windows Update will download SP1 when it's available for your PC. (It could take a month or more before SP1 shows up on your PC, so please be patient.)". Wait a month? Not likely!

I ran Windows Update once more and installed a further 4 optional updates of 15.8MB before downloading and running the "five language" standalone package. True to Microsoft's warning, it did take "approximately one hour" for the service pack to apply and again this proceeded with no problems. A final pass installed a further 2 updates of 29.4MB and now all seems good.

The hardware is a pretty good package for the road, not too heavy and it has a built-in webcam that is missing from my business HP laptops. I think I'll have one for myself and force myself to use Vista in production, rather than just in my test environment that is currently the case.