Skip to navigation
   
Dave F's Blog

Get the Website Right!

By Dave F in Reader

Posted in Open Source Software, the web, Coding, Blogs, e-commerce on September 22, 2008 at 9:04 am

Permalink | Author Profile

I blogged a while back about the exciting(!) purchase of my new Dyson http://www.itpro.co.uk/blogs/davef/2008/09/09/hoovering-up-engineering/

I’ve just had an email asking me to write a review. Being an opinionated guy and someone who values user reviews I thought I would just type a quick “yes it works” at http://www.comet.co.uk/shopcomet/product/406848/DYSON-DC14-ANIMAL. but what do I get?

“Done, but with errors on the page” and no chance of making an entry.

I’m using ie 6.0.2800 - if it don’t work with that what does it work with? More to the point what did the designers check it with?

The email is from a  no reply address and I’ve got better things to do then spend 20 mins trying to get a contact address from the the website so the world will have to live without my opinion. Anyway it may explain why there are so few user reviews on the Comet site!

Stop press on that - I have tried to track down a contact and on their “contact” page I noticed “we recommend using the Firefox web browser ” I’m cool with OSS but things do need to work with MS stuff if you want to maximised your audience!

12345
Not yet rated
Loading ... Loading ...

 

Programmers Documentation - the doxygen way

By Dave F in Reader

Posted in Open Source Software, QT, Coding on September 16, 2008 at 11:03 am

Permalink | Author Profile

I have been producing some programmers documentation. The shrieks of horror (or snores of boredom) that normally accompany such a statement have been mercifully short. I have been using doxygen http://www.stack.nl/~dimitri/doxygen/ (more info at http://en.wikipedia.org/wiki/Doxygen). It took a bit of fiddling to get it set up (and it needs a bit more, I seem to have to hard code the directories rather than go relative from the working dir - any help always appreciated!) but seems OK now.
Things I’d recommend are enabling the pre-processor, disabling all output except HTML (until you have a good set up - you may want some other output at the end). If you’re using QT add moc_*.* to the exclusion list. If you’re using SVN excluding the svn dirs is a good idea (I think I did this but I can’t remember how!), don’t hide undocumented classes / methods, add links to the actual code (source browser) and use the built in class diagram generator. Some of this you can do from the wizard. The excludes & the pre-processor I did from expert mode, I also set the “strip from path”, turned on all the extract all / private/ static / local turned off strip code comments, requested an alphabetical index (you can’t have too much info can you?). A nose around the human readable config file is also a good idea just to give you a better idea of what can be done. Whether you choose plain HTML or frames is up to you, frames look better but my ie is set to disable active content so it is not so good to use.
Anyway, there is a certain satisfaction in generating stuff you can click on and see diagrams in without having to type it all in. The whole process is much more like the program / build / test sequence that developers are used to than the boring old type it & proof read it methods of old.
12345
Not yet rated
Loading ... Loading ...

 

How many computers are obsoleted each year?

By Dave F in Reader

Posted in Coding, Freecycle on August 18, 2008 at 11:22 am

Permalink | Author Profile

I freecycle old computers (making sure they are safe to do so http://www.itpro.co.uk/blogs/davef/2008/06/20/hard-disk-sanitation-for-recycyling/ ) and I know many others do but the size of the problem of “old” computers is staggering. I came across these figures the other day
Hundreds of millions of PCs are sold to businesses each year … On the other side of the equation, hundreds of millions of PCs are taken out of service every year. in the United States alone, as many as 500 million computers became obsolete in 2007, according to the National Recycling Coalition.

500,000,000 obsoleted computers last year in the US alone - that is potentially a lot of land fill.

What can we do about it?
  1. As individuals we can recycle kit.
  2. In our companies we can use what influence we have to make sure kit is recycled.
  3. As IT sales people I guess you can’t just stop selling them! Maybe a recycling program can feature in the service though?
  4. As s/w / infrastructure designers we could aim to keep stuff runable on old kit (it won’t make you popular with your h/w sales team if you have one!). Also, unless you support the latest interfaces it makes your product look old.
  5. Perhaps the hardest option is that at home and in the office we can choose not to keep up with the latest kit. On the bright side that means when you do need to upgrade you can either go for cheap recycled (not creating more waste) or super state of the art  (not needing updating so often).

Hmm, that’ll be recycled at home and state of the art at work please :-)

12345
Rated: 20% (1 votes)
Loading ... Loading ...

 

The perfect interface - until you let a user near it!

By Dave F in Reader

Posted in Funny, music, Coding on July 21, 2008 at 3:29 pm

Permalink | Author Profile

Qu’est-ce que c’est le point? As Georgia Nicolson might say (I haven’t seen the film but the books are excellent.)

I spend a lot of my time designing user interfaces to be as usable, easy on the eye and generally as elegant as possible so I tend to notice other peoples idiocies and (very occasionally) other peoples genius.

The harmonica is an example of both (sort of). To get a major scale from hole 4 it goes:

blow, suck,

blow, suck,

blow, suck,

… suck, blow.

Doh! Let’s just make it complicated shall we? But it is actually a piece of genius. Why everyone thinks they can play the harmonica is because where ever you blow not only is every note in the same scale EVERY 3 adjacent holes form a major triad of that scale (the root chord). Brilliant, every note fits in with the scale and if you (deliberately or accidentally) get more than one hole it harmonizes with itself! How can you go wrong?

Well obviously getting the right notes to any particular tune still requires a bit of skill - the clever thing is the wrong notes still sound OK(ish).

And then it all goes wrong. People are just perverse. The harmonica contains all the notes that you need of the major scale which accounts for most “traditional” western music. The blues scale is different, you need different notes so blues and rock players play “cross harp” - they take a C harmonica, bend a load of the notes (by sucking “wrong”) and play in a G blues scale. Even if you gave them a harmonica with the right notes for the blues scale it wouldn’t work because the bending is what gives that beautiful distorted sound and allows you to play a bit “off key” for bluesy dissonance and tension.

So great design but Qu’est-ce que c’est le point?

NB This all refers to a 10 hole diatonic harmonica - they do make all sorts but this is the common one!

12345
Rated: 80% (1 votes)
Loading ... Loading ...

 

Recursive gaming

By Dave F in Reader

Posted in Games, the web, Coding on June 25, 2008 at 11:35 am

Permalink | Author Profile

Spoof videos on you tube? News? Well no, but I can’t resist this one You know us programmers get all excited about recursion… http://www.youtube.com/watch?v=Rw8gE3lnpLQ

12345
Not yet rated
Loading ... Loading ...

 

MusicMatch Jukebox - CDDB?

By Dave F in Reader

Posted in media, the web, music, Coding, e-commerce on June 13, 2008 at 10:37 am

Permalink | Author Profile

I’m using quite an old Music Match Juke Box (v7.5) as my CD ripper. The newer one screws up some other apps and is just bigger & bloatier & I have registered this version (I don’t just use freeware, on occasion I will pay for stuff!).

I use my own player “what I wrote” as an MP3 player as MM tends to hog resources, displays the tag name when I want the file name and doesn’t do some of the shuffle effects I want (like play next sequential track when in shuffle mode). Also it saves play lists as text files so it’s easy to manipulate them & doesn’t create weird libraries I never use. Anyway writing your own apps is cool & a CD / MP3 player is so easy with Visual Basic why not?

 However, back to MMJB. The problem I have is that it doesn’t tend to find newer CD & I end up typing in track names (well not typing, cutting & pasting from Amazon CD listings usually). Is there a new CDDB? Can I get MM to look it at it? Has someone declared copyright on track listings so they can’t be accessed?

12345
Not yet rated
Loading ... Loading ...

 

Tabs - I might change my mind?

By Dave F in Reader

Posted in Coding, Blogs on May 21, 2008 at 6:08 pm

Permalink | Author Profile

OK having said I have no use for tabs http://www.itpro.co.uk/blogs/davef/2008/04/14/slow-internet-explorer/ I was horrified to learn that MS Visual Studio 2005 (oh yes, I’m right up to date) uses the damn things instead of the old MDI type lots of code windows it used to have in MSVC v6.

After cursing and muttering I discovered that you can turn them off and go back to the old look. However, I have turned them back on - just as an experiment! In the spirit of open minded adventure I’ll give ‘em a try for a while and see how they go. Watch this rant…

12345
Rated: 100% (1 votes)
Loading ... Loading ...

 

How do you test a GUI?

By Dave F in Reader

Posted in QT, Coding on May 9, 2008 at 9:50 am

Permalink | Author Profile

Testing, something I have never been happy about - there are just to many options. Maybe I’m a bit mathematical, a bit completist, alright perfectionist but if I can’t do it properly I don’t like to do it at all. I remember in my university days I was asked to write a “comprehensive” RAM test. Since any RAM cell could theoretically leak to any other I figured the only way was to try every combination by counting from 0 to 2^(8*4K) (it was a 4K 8 bit chip). I got an idea of how long this would take (checking every bit at every increment) when I converted the run time from seconds to years and it didn’t dent the figure much! This still wouldn’t be a complete test as it might take a fixed time for the leak to happen so the test should pause between each increment…

My latest GUI is in QT so I had a look at http://www.ics.com/products/qt/kdexecutor/index.html Which has some ideas on testing. Because of the way QT works it is possible to assume the clicks will work and then just test the event handling of simulated clicks which is a good start. Testing methods that rely on recording mouse positions (click at 300,400) and checking against bitmaps (you should get a screen that looks exactly like this) have got to be limited. Most of the bugs that get reported from customers relate to weird (ie ones I haven’t tried) settings they are using - 640×400 screens, 2000×60000 screens (OK I Lied about that one), default fonts of “Hip Hop Graffiti 3″, Korean locale…

Oh well, back to my usual GUI testing. Aim for pressing everything, in every order at every screen resolution but settle for the old company standard. (I should explain that the “old company” started out in hardware so the official testing of a unit was to power it up and see if it performed its self test successfully - indicated by a single beep. )

The old company QA standard is therefore - if it beeps ship it!

12345
Not yet rated
Loading ... Loading ...

 

Johnny Lee doing things with a Wii !

By Dave F in Reader

Posted in education, the web, Coding, Freecycle, Blogs on April 25, 2008 at 9:13 am

Permalink | Author Profile

If you’ve not come across this guy check out

http://www.ted.com/index.php/talks/view/id/245    http://www.cs.cmu.edu/~johnny/ and a whole myriad of youtube’s.

The guy makes technology fun, cool & interesting (OK you & I might have thought it was before but not everyone does!). I can forgive him his minor oversight of not costing the projector into his interactive whiteboard because he  does what I like best - misuses what he has to make what he needs on the cheap!

It even has parallels with freecycle in that he’s using communications technology to pass on information about recycled / low tech / cheap solutions.

12345
Not yet rated
Loading ... Loading ...

 

Virtualization’s Dark Side - or stating the obvious for beginners

By Dave F in Reader

Posted in the web, thin clients, Coding, Blogs, Security, Microsoft on April 10, 2008 at 9:35 am

Permalink | Author Profile

You sometimes wonder if in a world of management speak stating the obvious is genuinely seen as a clever thing. Over at

http://www.forbes.com/technology/2008/04/09/virtualization-rsa-malware-tech-virtualization08-cx_ag_0409virtual.html

Someone is (being paid for!) saying if malware controls the virtualization host it will have access to all the virtual machines and their data without the virtual machines knowing!!! Well I never, that’s as if someone bugs the telephone exchange you won’t find the bug on your handset and they’ll hear all the calls not just the ones on your phone.

Who’d have thought it? Well who’d have thought you could get paid for telling people something quite that obvious.

Then again someone is probably being paid for the comment “Rather than the usual pattern, where we deploy a technology and wait for it to get hacked, wouldn’t it be cool to try and secure it first?”

Wow, someone should suggest to the O/S people to try adding some security when they design things. OK, you may think Microsoft didn’t but I think you’ll find they just didn’t do it very well. They didn’t design it to be full of holes (except maybe any employees who moonlight for anti-virus companies).

And “wouldn’t it be cool”??? Surely doing the obvious is the opposite of cool, what we used to call “sensible”.

I am assuming the people designing virtualization software are putting some security in there and that it will be considerable more secure than end user systems just because it is not designed for end users. It can’t be tweaked with downloaded screen savers and won’t have clots (oops, busy, non technical people) opening dodgy emails.

 Going back to the phone exchange analogy, I hope it might be a bit harder to get in there and plant a bug - or am I being optimistic and expecting people to do the obvious (cool?) thing?

12345
Rated: 100% (1 votes)
Loading ... Loading ...

 
Advertisement