Monthly Archives: April 2005

Bye Bye Dreamweaver

Bad news for the web design community – Adobe has just announced it is acquiring Macromedia. I fear the worse for the wonderful products I use the most – Dreamweaver and Fireworks. Dreamweaver will probably survive, it’s the market leader and Adobe have all but shown they can’t compete but with the Adobe stable of bloat ware image processing applications the lean-mean webcentric Fireworks will probably be put out to pasture.

I guess I’ll keep the install disc safely for as long as I possibly can.

Drop It

Today’s fantastic free utility is brought to you by Tango FTP. It’s a free utility that allows you to set up FTP drop boxes. These boxes sit on your screen and anything you drop on them is FTPd to the server you have associated with that box. Simple, handy and free. Check Tango Drop Box for a demo and your free download.

(Via Lifehacker)

Real Region Free

A mate of mine, Nigel – the copywriter to the stars, sent me a Region 2 encoded DVD. My AV set-up is good, but the DVD player is dated. It’s a six year old Sony that is locked in to Region 4 and has no software unlock.

I tried the DVD in it anyway, ’cause sometimes R2 play in R4, but it didn’t work. I plonked it in my PC – Windows Media Player asked me to change the DVD drive region, leaving me with 4 changes. I tried it in the DVD burner, same thing. I tried to unlock it with DVD Shrink but that wanted me to change the region too.

Then I tried my least used media player – Real Player (get it from the BBC Real Player download page, it has no spyware or annoying ‘features’ if you get it from here) and it played the disc with no problems.

Dear Mr Gullible

Dear Mr Gullible,

How would you like to renew your domain name at an exhorbitant rate with us?

Sincerely,
Borderline Fraud Department,
Domain Registry of America

Domain Registry of America offer

Access-style Autonumber fields in Oracle

One of the things I like about MS Access is the AutoNumber field type. And SQL Server has its Identity field type. Very handy for primary keys. But from time to time I convert applications into a more heavy-duty database, such as Oracle, where to do the same thing, you need to select from a sequence first. Here’s how to do an Autonumber-style field without mucking about with the sequence.

You do, of course, need the sequence, to track unique IDs.

CREATE SEQUENCE [Schema].[SequenceName] START WITH [Number] INCREMENT BY [Number] MINVALUE [Number] NOCACHE NOCYCLE;

NoCache will avoid skipping values due to Oracle creating any numbers in advance. NoCycle avoids the number repeating itself. I generally name my sequence after the field it’s being used for, with an _SEQ suffix.

Putting the sequence number into the field is done by a trigger:

CREATE TRIGGER [TriggerName]
before insert on [TableName]
for each row
begin
select [SequenceName].nextval into :new.[ColumnName] from dual;
end;

Easy!

There is a catch. While in Access or SQL Server there are easy ways to find out the value of the AutoNumber/Identity field in the row you just added (through @@IDENTITY in SQL Server or in Jet 4.0 or later), this isn’t so easy in Oracle.

You can query the column’s MAX value or the sequence CURRVAL afterwards — but this isn’t reliable if yours is not the only process inserting data. Would it work if you placed your code in a transaction? I’m not convinced.

So the trigger method should only be used when you don’t need to know the number entered straight afterwards. If you need to know, then forget the trigger — just select your Sequence value first, then use that in your insert(s).

Classic VB go bye bye

Mainstream support for Visual Basic 6 (the last version before .Net) finished at the end of March, and there’s growing murmurs in the VB development community, calling for it to be resurrected. While “classic” VBers didn’t mind being shunted into the .Net framework, they objected to some of the bigger changes to the language itself, which made it difficult to migrate old projects over. And remembering that “classic” VB is the most popular computer language ever, there’s a lot of old systems out there still running with it. A petition has been organised, with nearly 200 MVPs having signed up so far.

Microsoft have put up a new site highlighting VB6 called VBRun (harking back to the pre version 5 days when the main DLL was called VBRun). It’ll have VB6 content on it, as well as nudging developers towards .Net.

I work with VB. I’ve got a lot of VB6 code still running. But I’m slowly moving some stuff over to .Net. I’m not convinced it’s better yet. It’s certainly different, but I’ll get used to it eventually.

Putting crap in database fields

As someone who administers a number of databases, I’d say to anyone that you need a damn good reason to put non-standard values into a field.*

Today’s curse is sorting out the “Counties” field, which is supposed to be used to show British counties. To add insult to injury, people have to select from a drop-down menu, and if they try to type in a value that doesn’t exist, they are specifically asked if they mean to add that value (methinks the database is not locked down quite tightly enough, but I can’t control that bit at the moment).

People, let me tell you, from even basic general and geographical knowledge: Austria, Australia, BD20 0DX, Bahrain, Brentwood, Brighton, Jacksonville Canada, NW10 0HD… none of these are British counties, nor were they ever, nor will they ever likely be.

* That good reason doesn’t exist. The same goes for towns, titles, gender, and a whole host of other fields with clearly defined standards.

Doubts over Podcasting

While Cam and Mick at The Podcast Network are doing great things, I have niggling doubts about the long-term prospects for podcasting. Darren Barefoot has expressed some of them. My niggling doubts primarily come from the differences between blogs and podcasts, and the technical limitations of podcasting.

  • You can’t mass-consume podcasts like you can blogs, via aggregators. (Okay, so you can see summaries via aggregators, but not the content itself)
  • You can’t scan an audio file like you can a long blog entry.
  • Even on broadband, you don’t get instant gratification when you click on a link to podcast content – you have to wait X minutes, then you get the file, which you have to find time to listen to, and to find the bit you wanted… now, what was it I was clicking on again?
  • Most podcasts I’ve seen don’t have the immediatcy of blogs. There’s an element of post-production involved which inevitably introduces delays to getting the content out to the world.
  • You can’t easily quote a bit out of a podcast, or find a permalink to that specific moment.
  • Which means you can’t find podcasts by searching for keywords, unless there’s a transcript.

So will podcasting go mainstream? Will it knock radio off its roost? Or did video already do that? 🙂 Will the technical limitations be overcome? It’ll be interesting to see how it pans out in the long term.