Archive for March, 2008

Upgrading to XP

Monday, March 31st, 2008

I would have thought that everyone would have upgraded from Windows 98 to Windows XP by now given that it is now several years since Microsoft dropped support for that old DOS antique. Not so as I still get the occasional question about that old operating system. Some of those are looking to make the move though as this recent question demonstrates.

Upgrading to XP

Author Time

Sunday, March 30th, 2008

This particular golden oldie is particularly relevant today as today marks the end of daylight savings time in Western Australia for this year. I had to pay particular attention to the end of DST this year because the Eastern states where I live have decided to extend DST by an extra week and so I had to spend time locating all of the affected scripts on my site to update them. DST will now end next Sunday instead.

This really early JavaScript that I wrote is one that needs to be able to know when it is and isn’t DST at your location because this JavaScript converts the time from your visitor’s computer (assuming that they have their time and timezone set correctly) to display the time where you the author of the page is located.

Author Time

The ISPF Find Command

Saturday, March 29th, 2008

The most useful command in the ISPF editor on mainframe computers id the Find command. This command contains options that allow you to be very specific about exactly what it is that you are searching for and what part of the document that you want to search for it in. In this article I cover all of the options for how you can flexibly define what you want it to search for as well as how to limit the search to selected columns and or rows of the file.

The ISPF Find Command

Embedding Fonts in PDFs using Acrobat Distiller

Friday, March 28th, 2008

One of the benefits of the PDF format over others for sharing your documents with other people is that you can embed uncommon fonts into the document itself so that it does not matter whether the person viewing the document has the fonts that the document requires or not since the font that the document needs is contained within the document itself. In this tutorial that i wrote some time ago I look at Acrobat Distiller and the option within that program that allows you to define which font(s) are to be embedded. While there have been newer versions of Acrobat released since the article was written the option for embedding fonts should still be available.

Embedding Fonts in PDFs using Acrobat Distiller

Using Alert to Debug your Script

Thursday, March 27th, 2008

While most browsers now come with either a built-in JavaScript debugger or have a debugger available as an add-on to the browser, sometimes it is just simpler to debug your script the old fashioned way by commenting out parts of the script and by adding alert statements at various points in the code.

Using Alert to Debug your Script

Combining Case Clauses

Wednesday, March 26th, 2008

You can combine the case clauses in a switch statement together so as to perform exactly the same processing for multiple values.

Combining Case Clauses

The DEFAULT Clause

Tuesday, March 25th, 2008

When yo use a switch statement you need to specify the individual values that you are testing the field for. The default clause allows you to provide processing for all of those values not specifically catered for.

The DEFAULT Clause

The SWITCH Statement

Monday, March 24th, 2008

The if statement isn’t the only way that javaScript can make decisions. While an if statement can decide between true and false, the switch statement can test a single field for any number of different values and provide a different processing path for each.

The SWITCH Statement