Author Archives: daniel

Programming for beginners (The Next Generation)

Microsoft are doing more in the beginner programming area, with the Coding 4 Fun web site and the Beginner Developer Learning Centre, backing up their various Visual Studio Express free packages. No doubt to fight back against the onslaught from PHP and other open-source tools, but hopefully it also helps get some more people into programming, particularly kids whose brains pick up such concepts so fast and have the imagination to make use of this kind of thing.

But I wonder if we’ll ever again see the heyday of home computer programming that there was in the eighties. Call me a teary old nostalgic if you like, but it strikes me that the eighties was the sweet spot sparking interest in programming: you had millions of computers going into homes with a relatively easy to use programming language built-in (all those variants of BASIC), but crucially, you also had a shortage of the kind of productivity software that lets people express themselves nowadays on computers without having to program anything.

For instance, back in the day, I used a Commodore 64 and a BBC B to do video titles for friends’ productions. To do this, I had to program them. Initial attempts were pretty pathetic, but let me tell you, the Doctor Who starfield sequences I eventually got working were pretty damn good. Thanks to the miracle of colour palette manipulation, along with some year 10-level mathematics I got not only stars flying out of the screen, but galaxies spinning around and wormholes appearing. (Unfortunately for that particular production an earlier, decidedly less impressive and readable credits sequence made it into the final edit.)

These days something similar would be done on Powerpoint or in a video editing package, which would probably have its own built-in titles editor. It’s undoubtedly easier, but half the motivation to dabble in computer programming is gone. OK, so this is just an example, but it’s something you see in various areas of computer use, such as web page design (do beginners still learn HTML?) or games (why code up your own Donkey Kong like you love in the arcades when you can just get it on MAME?).

This is not to say the huge variety of software enabling high productivity on computers is bad, of course, but I do think it means people are much less likely to get into programming these days as a hobby.

Setting up SFTP/SSH on Windows

I’ve been wrestling with OpenSSH for Windows to set up an SFTP server. I’m still ironing out some of the fine detail, but the basic steps are below.

This article covers the initial setup:

  • Install the software
  • If the FTP user doesn’t already exist in Windows, create it.
  • Open a command prompt in the c:\program files\openssh directory (assuming that’s where it’s installed)
  • Set up the group file: mkgroup -l >> etc\group
  • Set up the passwd file: mkpasswd -l -u username >> etc\passwd
    The -l means local user. If it’s a domain user, use -d. Type just mkpasswd for help.
  • Create the home directory for your user. If following the IIS standard, that would be c:\inetpub\ftproot\username — but it can be anywhere
  • Edit the passwd file to put the home directory in. Load it in Notepad or another text editor. As with all the files to do with OpenSSH, passwd is in Unix format, so you may do better to use an editor that knows Unix end-of-line characters. Anyhow, change the second last field to match the home directory. Cygdrive notation needs to be used, eg for the above /cygdrive/c/inetpub/ftproot/username
  • For domain users, you’ll have to make sure the Domain Users group is added to the groups file. This can be done by doing a mkgroup > textfile.txt and then extracting the line for Domain Users from the file and adding it manually to the etc\groups file.
    Also double-check that the group ID (the third field in the groups file, which is delimited by colons) matches the ID your user(s) in the passwd file (the fourth field).
  • Start the OpenSSH service (note that when adding additional users, you do not need to restart the service

Continue reading

Technology lets down playback

I can think of two examples where digital media has limitations which affect the fidelity of playback in a major way: with music it’s gapless playback, often noticeable on MP3 players and with CDs on some players. With DVDs it’s layer changes, again, worse on some players than others.

This shouldn’t be the case, of course. Digital media of course is meant to be better than analogue, in every respect. I don’t know if there are standards mandated in the relevant formats, but perhaps there should be… or at least some documented workarounds, such as recommending where DVD authors place layer-changes.

After all, these kinds of things can ruin the enjoyment of a movie or piece of music if handled badly.

Friday brief stuff

Google for the Enterprise: Google Apps Premier edition is here. $50 / user account / year, providing Gmail, GTalk, GCalendar, GDocs & Spreadsheets, GPage with guaranteed uptimes, phone support and more storage and options.

Favicons: Good article on making a good favicon.

One commenter left a useful link to the PNG2ICO command-line tool. This online tool also looks handy.

RIP: Robert Adler, the man who invented the TV remote control (despite not watching much TV himself, apparently).

RSS vs old-fashioned browsers

I got interested in checking out the number of subscribers to my feeds, since Google Reader is now revealing it in the user-agent.

Here are the figures from my personal blog.

bloglines.com /feed/ 26
bloglines.com /feed/atom/ 2
reader.google.com /feed/atom/ 8
reader.google.com /feed/ 21
reader.google.com /feed/rss2/ 1
feedshow.com /feed/ 1
netvibes.com /feed/ 2
newsAlloy.com /feed/atom/ 1
newsgator.com /feed/rss2/ 1
newsgator.com /feed/rdf 1
rojo.com /feed/ 1

Bloglines is reporting as two separate readers for /feed/ – perhaps different versions?

So 65 subscribers from those aggregator services that report on numbers.

Whereas the home page is getting around 240 hits per day, many from individuals, but also a lot from search engine bots. (No I haven’t got the energy to work it out precisely.)

So it would appear that despite the growing popularity of aggregators, many people continue to just hit the web pages manually.

These figures are much lower than for many, but it reflects a similar result to what Ed Bott found in his stats.

Australian PM spam

Someone’s spamming Australian email addresses with a fake news bulletin about PM John Howard having had a heart attack. It includes a link supposedly to The Australian newspaper, but which in fact goes to http://www.theau-news.org/ The spams come from a variety of addresses, with subject lines such as “John Howard, the current Prime Minister of Australia have survived a heart attack” and “Best surgeons are struggling for the life of the Prime Minister”.

The domain was registered only a few days ago, to a post-office box in Nova Scotia, Canada, and apparently the site tries to install malware.

SYDNEY, February 18, 2007 08:56pm (AEDT) – The Prime Minister of Australia, John Howard have survived a heart attack. Mr Howard, 67 years old, was at Kirribilli House in Sydney, his prime residence, when he was suddenly stricken. Mr Howard was taken to the Royal North Shore Hospital where the best surgeons of Australia are struggling for his life.

Click on the link below to get the latest information on the health of the Prime Minister:

The Australian – keeping the nation informed
Continue reading

Nostalgia++

Over on my personal blog I’ve posted about visiting the ACMI “Hits of the 80s” video game exhibit. Well worth a look for any nostalgic geeks in, or passing through, Melbourne.

It’s great to see ACMI’s Games Lab giving computer games some recognition for the important cultural impact they’ve had. While we may never again see something like Space Invaders causing a shortage of coins in Japan, or pop songs written about Pacman, games are a huge industry, and a big influence over popular culture.

The problem with syndicated news

SMH (NSW) story: A man has been shot dead on Valentine’s Day, in what locals are saying was a jealous argument over an ex-wife. A large search is now underway for the killer around the small town of Gulgong, near Mudgee in the state’s central west.

Age (Vic) story: A man has been shot dead on Valentine’s Day, in what locals are saying was a jealous argument over an ex-wife. A large search is now underway for the killer around the small town of Gulgong, near Mudgee in the state’s central west.

At the time I initially looked, neither story had any indication which state this happened in, except the SMH one linked to a Google map of Gulgong, NSW. I had guessed that, since I recalled Mudgee was in NSW.

When you’re feeding your local stories into the global (or at least national) media machine, a little more info on where it’s happening would help a lot.

Stupidity

Google Inc today lost a copyright fight launched by Belgian French-language newspapers which demanded the web search service remove their stories, claiming it infringed copyright laws. … They complained that the search engine’s “cached” links offered free access to archived articles that the papers usually sell on a subscription basis. It was unclear if Google would have to pay a fine.

— Wire story: Google loses case against Belgian papers

That’s just stupid. You don’t need to go around suing search engines to stop your stuff getting into their databases. Every web developer who knows anything about this knows you just need to drop a robots.txt file onto your web site and it stops all search engines and archivers stone dead.

To ignore that, and send the lawyers in instead just looks like you’re not looking for a solution, you’re looking for money.

The cost of the pitch

What spammers don’t seem to realise is that advertising doesn’t scale. Spruikers know this — that’s why every shop doesn’t have one, it would be a cacophony of noise. Junk (snail) mail people know this — if everybody’s mail box was flooded 100% of the time, everybody would get a No Junk Mail sticker. (Mind you I did once get 28 items in one day.) Telemarketers… well, they may not have figured it out yet.

In fact no, I’ve changed my mind. It’s all about the cost of the pitch. As the cost approaches zero, and assuming there’s no regulations preventing it, there’s more pitching. So those who don’t batton down the phone hatches like I do get endless calls. And spammers flood email boxes, despite that their pitch would work better if it was the only one that arrived that day. Not to mention if it wasn’t in broken English.

Which is why my Gmail spam folder currently has 2702 items in it.

Do people wanting to buy Cialis and Viagra actually wait around for a spam to arrive telling them how to get it? Why don’t they just go to the chemist?

OpenID – the next big thing?

Over the years, as new web services have come into prominence, there’s been a rush to get hold of the best IDs. Most people would chase something resembling their name, with those with popular names too late to the game being left with the lame IDs: nicknames, real name + licence plate number, or hackerz sp34k versions.

Some of the defunct web sites I got good IDs for include Excite and mail.com. Some I still use include Gmail (and all the other Google properties), Hotmail and Yahoo.

With the news that Microsoft will be supporting OpenId, I reckon the next big rush could be for this, particularly if Google and Yahoo are sensible and decide to jump on the bandwagon.

OpenID identifies you by a URL/URI, so it’s marginally less user-friendly than a conventional logon, but if it takes off (*if*) and gets widespread use around the web, from a user point of view, it could go a long way towards cutting down on the zillions of passwords people currently have to remember… and thus have to write them all down.

So I’ve got my OpenID already. Have you? Now, since Flickr are pissing everybody off with new limitations, maybe I’ll go over to Zooomr and take a look around there.

DealsDepot.com.au is spamming blogs

People are comment-spamming blogs on behalf of DealsDepot.com.au. The comments I’m getting look something like this:

Name: mirror
E-mail: mirrorconsultancy@yahoo.com
IP: 125.22.69.34

Talking of [topic], may be if you want to buy [product] at best price, I have a suggestion to make do look up Online Shopping

I’ve had about a dozen of these today, hitting various entries, where the topic closely resembles the topic of the blog post hit, though the link to [product] is often tenuous.

Apparently (see comment 16 here) the company offers discounts from products in return for people posting blog comments about them. Certainly looking around they appear to be successfully hitting a lot of blogs.

Not mine though.

More examples after the fold.
Continue reading