jump to navigation

Customers like to (re)use the methods of the support team … August 29, 2008

Posted by Dale in : Code Cutting, Funny Pictures, Humour , Comments

Link to Officer and Sergeants Powerpoint Slidedeck I was doing some code cutting the other day for a customer.

Indirectly.

I had sent a DOS batch file to Customer A, in response for an urgent fix request.  The DOS batch file enables Customer A to use a particular web application.

The Help Desk send me an email, "Customer B have this VBscript file which doesn’t work."

Customer A shared the DOS batch file Customer B, who thought they’d have a stab at re-writing it into VBscript.

VBscript file received from Customer B:

Set objWSHShell = WScript.CreateObject("WScript.Shell")
objWSHShell.Run ("dosomething.exe /commandlineparameters", 3, True)
objWSHShell.Run ("dosomething2.exe /commandlineparameters", 3, True)

Now there’s a few problems with this file:

Here’s my ruggerised, ready for deployment version:

Option Explicit
On Error GoTo 0Dim objWSHShell, objFSO
Dim sDoSomethingParameters, sDoSomethingFilePathName, sDoSomethingCommandString
Dim boolFileExists, boolResult
Dim intDoSomethingResult
Const intWindowStyleHideAndActivate = 0

sDoSomethingFilePathName = "C:\doer\DoSomething.exe"
boolResult = False
intDoSomethingResult = 555
Set objWSHShell = WScript.CreateObject("WScript.Shell")
Call fn_CheckIfFileExists(sDoSomethingFilePathName, boolFileExists)

If Not boolFileExists Then
   ‘ exit with File Does Not Exist
   WScript.Quit (2318)
End If

sDoSomethingParameters = " -q -a qwerty"
sDoSomethingCommandString = sDoSomethingFilePathName + sDoSomethingParameters

intDoSomethingResult = objWSHShell.Run (sDoSomethingCommandString, intWindowStyleHideAndActivate, True)

If intDoSomethingResult <> 0 Then
   ‘ execution of DoSomething and parameters failed.
   WScript.Quit (1708)
End If

‘ if we’re gotten here, it’s worked, and we can exit the script!
Wscript.quit (0)

~~~~~~~

Function fn_CheckIfFileExists(fnFilePathName, boolResult)
On Error Resume Next
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(fnFilePathName)
On Error GoTo 0
If objFSO.FileExists(fnFilePathName) Then
   boolResult = True
Else
   boolResult = False
End If

Set objFSO = Nothing
Set objFile = Nothing

End Function

I’m reminded of the maxim:
Customers like to (re)use the methods of the support team, but they don’t really understand them.

If you click on the picture, you’ll get to view the powerpoint file, where I saw the original maxim.

Bookmark and Share

Why I Blog - Not August 29, 2008

Posted by Dale in : Funny Pictures , Comments

Blogger exclaims that he is part of the Australian Media Diversity

(Helen Coonan was our Federal Minister for Communications, and strangely attractive, if you like that sort of look)
(cartoon borrowed from The Chaser)

Bookmark and Share

Crusader August 27, 2008

Posted by Dale in : Funny Pictures , Comments

Crusader weed killer - features a Crusader knight

Saw this ad for Crusader weed killer in the Weekly Times, which is an agricultural paper published here.

No, we don’t have many Muslim farmers in Australia, strange that.

Bookmark and Share

You’ve outsourced the helpdesk WHERE? August 25, 2008

Posted by Dale in : Last Job, Stories , Comments

Congested overhead electricity cabling, in India Like many companies, my former employer offshored their Intranet helpdesk to India.  First I knew of this was when I received an email

We’ve reset your password to abcd1234, and we’ll now close your Help Desk ticket

"WHAT HELP DESK TICKET!?!?!", I exclaimed to myself.

So I ring the Help Desk

CSC India, how can I be helping you?

"You’ve reset the wrong user account".  A point which took 15 minutes to sink in with the bone headed Help Desk jockey.  My password was finally reset but it took the best part of the day before I could log in (password had to replicate around the world).

Perhaps it was a coincidence, but a few days later, the Intranet logon page had a new option "I’ve forgotten my password", which eliminates the need to ever speak to the Help Desk ever again.

The morals of the story are:

Bookmark and Share

Made my day - ABC 774 Sundays with Helen Razer August 24, 2008

Posted by Dale in : Would Like To Meet , Comments

20-years-and-i-have-not-changed-much Sport, sport and more sport.

Which means that when there’s sport is on, you don’t get your normal broadcasts.

Which sucks.

Checked the ABC website to find out if Helen had jetted off on another holiday, but no, Helen was streaming live.

Yeah!

SMS’d my displeasure, and Rodney rang up.  Would I go on the radio?

Eek!

But I got to converse with Helen, and that’s made my day.

What I love about "Sundays with Helen Razer" is Helen’s turn of phrase.  Which makes Helen worth listening to.

Thanks Helen & Rodney.

Bookmark and Share

Converting audio & video files - I recommend Super! August 23, 2008

Posted by Dale in : AudioVisual, Freeware, Utilities , Comments

Super audio & video file converter screenshotWant to convert from one audio or video file format to another?

Have a look at Super.  I’m really impressed with this utility as I needed to convert some AVI files into a format suitable for my PDA.

Other reasons you might use it?  Convert from the strange OGG for a more mainstream MP3 or WMV format.

Bookmark and Share

The colors I see on my screen are not the same as what prints out! August 18, 2008

Posted by Dale in : Printing, Psychic Troubleshooting , Comments

HP LaserJet CP6015 on pallet boxSo you have a nice new shiny printer which can use CMYK color processing.  CMYK is also known as four color processing.

And you wonder why:

The colors I see on my screen are not the same as what prints out.

Here are four reasons why:

  1. You’re using an application which only supports RGB colors (typical application: Microsoft Word/Publisher/Excel/Visio).
    Your printer needs to convert the colors from RGB to CMYK.  This color conversion is not always accurate.
  2. How your computer display (CRT/LCD) is setup.
    Ever wondered why your display screen manufacturer shipped color card(s) with your monitor?  Color print matching is a reason.
  3. Your using a PCL print driver, and not the Postscript driver.
    Postscript printer drivers are more accurate at page/color rendering.
    PCL is faster, and not so good at page/color rendering.
  4. Paper being used
    Photographic-type paper behaves differently (better) to normal paper.

Solutions:

  1. Use RGB if your printer driver supports it.
  2. Match application colour types to output color process type (CMYK to CMYK, RGB to RGB)
  3. Calibrate your computer display to the correct colors.
  4. Use a Postscript driver if you have it.
  5. Use RGB.  Seriously.  Use this color option if your printer supports it (almost most do).
  6. Get a printing consultant in.
    If you need to do this you’re likely to be a graphic designer, and know all about things like four color processing &  PANTONE colors.

Reference(s)

Digital Expert - Color Space Fundamentals
Dry Creek Photo - Monitor Calibration and Profiling

Bookmark and Share

“Web delivers new worry for parents: Digital drugs” August 15, 2008

Posted by Dale in : AudioVisual, Podcast , Comments

Queue the IT news beat-up:

We all know that music can alter your mood. Sad songs can make you cry. Upbeat songs may give you an energy boost. But can music create the same effects as illegal drugs?
This seems like a ridiculous question. But websites are targeting your children with so-called digital drugs. These are audio files designed to induce drug-like effects.

All your child needs is a music player and headphones.

Readers will remember I wrote about binaural tones here.

Bookmark and Share

Benefits of Six Sigma August 13, 2008

Posted by Dale in : Last Job , Comments

Dilbert Six Sigma cartoon They say that Six Sigma was created by a Motorola engineer, who ended up dying in the company cafeteria.

It’s all about cost-cutting.  Sure, there are other benefits such as:

Now I think Six Sigma can work for you, but the two things I personally don’t like about it?

  1. takes too long to run a Six Sigma project.
  2. Six Sigma practitioners are known as "Belts", as in "I’m a Six Sigma Master Black Belt".
    Yes, you do get a martial arts belt.
    All too much wankery for me.

Bookmark and Share

Tax checklist. August 12, 2008

Posted by Dale in : Personal , Comments

tax_return_checklist This is the checklist I use each year for my Australian Tax Return, in a handy Microsoft Word 97 format.

Drop me a line if you think of anything else to add.
Bookmark and Share