Monthly Archives: March 2005

Billy Bragg And The MP3 Revolution

At last a performer who understands the new way of the music world.

Billy Bragg has released his latest live recording exclusively as an MP3 download. For AUD$17 you purchase the 150MB zip file direct from the artist. It’s 33 MP3 files, encoded at 190kbs. The killer is that there is no DRM on the files – you can do with them what you want for as long as you want as many times as you want. I’ve got them on my PC, put them on my iPod and burnt a CD for Rae to listen to in her car. I didn’t have to go to the shops nor did I have to wait for a sliver of plastic in the mail.

When is everyone else going to understand this?

Daniel and Tony chat about Newsgator

D: How do you get Newsgator to import OPML files? The help claims Add Feeds has an import button, but I can’t find it?

T: Go to Newsgator Manager.

Add A Feed

Other Feeds

Just under the tabs you will see URL | Import – try that.

D: ah, there it is. Thanks. That was one major hurdle to switching to Newsgator.

T: Now I want to find how to export OPML.

D: Dammit, I’ve been spoilt by SharpReader’s speed. But I’ll have to put up with this slow response on Newsgator if I want home/work synced.

T: Do what I did, boost your connection speed. 1500 kicks in at midnight Saturday, you can’t believe how much I’m looking forward to Sunday!

D: This is at work. Most sites are very responsive, but this isn’t, at least not right now.

T: How odd. I have noticed at times it can be a bit slow – but I guess it’s depending upon response times from other servers too.

Still the syncing between work/home/wherever is a good thing to have.

D: yeah. sync good.

Where art thou Google X?

Google’s new beta Google X Mac OS-X-themed page was taken off air only about a day after appearing. Given how aggressive Apple (and Google) have been at pursuing imitators, maybe they thought better of copying the OS-X Dock.

Who knows, maybe Google were scared of Apple, who certainly don’t hesitate to call in the lawyers when they think they’ve been wronged.

Scoble’s found some mirrors so you can see Google X for yourself.

Smoke me a kipper…

About to upgrade this blog to WordPress 1.5.

11:40pm. Done. The main difference noticeable to readers will be that your comments automatically go to moderation if you’ve never left a comment before.

WP admin heading in Firefox.One thing notable to us authors is that the top of the admin pages looks a bit screwy in Firefox (but okay in IE). Not sure why that is, because WP1.5 doesn’t do that on my other blogs… something to look at when I have more time.

How many news feeds?

I am gradually building up the number of RSS feeds I keep track of, currently using Bloglines because it’s an online aggregator, so I can access the same content from both work and home and keep track of it in one place. It also allows for decent categorisation of feeds.

One of the FAQs on the Bloglines site is How Many News Feeds Do Most People Track?, which is answered:

The average Bloglines user tracks more than 20 news feeds. The most we’ve ever heard of is 1,400 news feeds. Not everybody has the stamina for that amount of information…

How many feeds are you actively tracking, and on what kinds of subjects? How often do you check for updated posts, or do you have new items ‘pinging’ on your desktop?

I am currently tracking 122 feeds, with categories including Animation, Business, Charities, Education, Environment, Ethics, Faith, Human Rights, IT, Media, Personal blogs, Science, Technology, Weird, and Writing. I also take advantage of Bloglines search feeds which match specific words and phrases to blogs ‘on the fly’. I tend to scan headlines every 1-2 hours during the day.

iPod progress

Well the response when plugging the iPod into my computer at work was the same as that at home: nothing. It appears something caused the battery to stop working.

So I rang up Apple support, and after they had me attempt resetting it again, put me on hold. When the guy came back he proclaimed it to be a battery problem, and said it would need servicing. Sigh. He then gave me the URL for requesting service. I clicked through to this, only to find their server down, returning a 500 error. Terrific, this gets better and better!

Apple support web site error

A couple of hours later it was working. It leads you through various disclaimers including having you read a long list of terms and conditions in a small font. (Why do they put it in a small font? It’s a web page fer chrissake – it doesn’t use any more paper or bytes to be in a normal-sized font.)

I tapped in all my details and ended up with a form to print and take with the iPod to the post office. There the bloke scanned off the form, and gave me a PostPak and bubblewrap to put it in, and sent it off, postage-free.

Unlike when you get a battery replacement, apparently they will actually fix your iPod, rather than sending you a replacement one. And the bloke said it may take up to 14 days… which is a helluva lot better than some repair places.

So now, I wait. Sigh.

iPod woes

I don’t smegging believe it. I’ve had the thing less than a day and it’s playing up.

Yesterday during a spare moment at work, I set up iTunes on my work PC. All okay, set up the iPod, copied a dozen songs onto it, all good.

Took it home and tried to set iTunes up on my home PC. When it came to plug the iPod in, it wouldn’t play ball. The small print says it needs a high-power USB2.0 port… which to be honest I’m not sure my computer has. I’ll be looking into that.

But anyway, at this point the iPod stopped working. It now only does anything if it’s plugged into the mains, through the dock or directly. The battery indicator says it’s charged, and it plays merrily, until it’s plugged in. I’ve tried resetting it a couple of times, which it’ll do if it’s plugged in, but otherwise, nothing, nada, zilch.

You smegging what?!?

Assuming it’ll respond to the work computer again, I’ll do a full factory restore on it, and/or try refreshing its software. If that doesn’t work, however, I’ll not be very bloody happy. (I’m not particularly ecstatic right now, to be honest.)

Creating unique reference IDs in Excel

I often need to create unique IDs in an Excel spreadsheet for importing into our database system. Doing this by hand is time-consuming and error-prone, so here is a method I’ve found which saves a lot of time and effort.

Let’s say I want to create an ID in the format “IMPORTA-1234”, where 1234 is a unique number from 1 to the total number of records in the spreadsheet. However, I would also like them neatly formatted (purist that I am), so that record 5 is shown as IMPORTA-0005 not IMPORTA-5, record 124 is shown as IMPORTA-0124 not IMPORTA-124, and so on.

1. Create a blank column in your spreadsheet, if one doesn’t already exist, for the ID. Call it something like ImportID or UniqueID.

2. Enter the following formula into the first data row (probably row 2 of the spreadsheet):
=CONCATENATE("IMPORTA-",LEFT("0000",4-LEN(ROW(A2)-1)),ROW(A2)-1)
(where A2 is the reference of the cell the formula is in)

3. Now copy and paste this into each row – being a relative formula ensures that each ROW references the correct cell.

What does this do? Let’s look at each part of the formula in turn:

CONCATENATE – This creates one string comprising the three distinct elements needed to form a unique ID.

  • Element 1 is the static “IMPORTA-” string.
  • Element 2 is the appropriate number of ‘0’ characters to pad out shorter numbers.
  • Element 3 is (row number minus one) which gives a unique number based on the record’s position in the spreadsheet (and accounting for a header row)

To ensure that the correct number of zeroes are used as padding, we use the LEFT function to grab a portion of the string “0000”. We use the ROW(cell reference)-1 function to get the unique number, and we use 4-LEN(ROW(cell reference)-1) to work out how many characters long that number is.

Let’s walk through a couple of examples to show how this works:

For row number 25, which is record 24:

  • First part of string is “IMPORTA-“
  • We now use LEFT(“0000”,4-LEN(ROW(A25)-1)).
    The length of ROW(A25)-1 is 2 (24 is two characters long)
    The (4-2) left most characters of “0000” are “00”
  • Final part of the string is the (row number – 1) = 24

Output ID = IMPORTA-0024

For row number 164, which is record 163:

  • First part of string is “IMPORTA-“
  • We now use LEFT(“0000”,4-LEN(ROW(A164)-1)).
    The length of ROW(A164)-1 is 3 (163 is three characters long)
    The (4-3) left most character of “0000” is “0”
  • Final part of the string is the (row number – 1) = 163

Output ID = IMPORTA-0163

and so on.

Once the spreadsheet is complete (no more records are to be inserted or deleted) it may be a good idea to ‘lock down’ the IDs by highlighing all the ID cells, copying them into the clipboard, and then doing a ‘Paste Special’ specifying to paste the actual values. This removes the formulae and makes the IDs static, but still unique of course.

To adapt for longer or shorter numbers, change the string “0000” and the number that the row length is subtracted from (in this case 4). For records from 001 to 999, use "000" and 3-LEN(ROW(reference); for records from 00001 to 99999, use "00000" and 5-LEN(ROW(reference), and so on.

Recent spam stopping techniques

Okay, two techniques, one that’s going to be comprimised sooner, one that’s going to be compromised later:

  1. A hidden field that must be supplied
  2. A javascript client-server MD5 oneway hash

I don’t see the second as a viable solution because it demands javascript (precluding certain users), and the first will be bested by the spammers when it becomes economically viable. I guess it depends on the implementation cost as to if it’s adopted here.

Why Googlebomb?

Why are webloggers googlebombing online poker?

I assume it’s to reduce the attractiveness of spaming the blogs with the term. Wouldn’t you want positions 1-10, rather than just #1, and really shut the action down? I don’t see that it will. But wikipedia will be regarded as a more relevant site, and that’s gotta be good, right? Speaking of which, I must go check for vandalisim on my pages…