Monday, January 30, 2006

First Project - Third Version

The CSS code for the three pages has been modified to pass The W3C CSS Validation Service. The HTML now passes the XHTML 1.0 Strict standard on The W3C Markup Validation Service - although GeoCities promptly ruins this by adding invalid code from the server. I am now using PNG files exclusively, rather than GIF files. I have also changed the home page icon colors to match the "Technophile Computer Logo" colors.

I have just tested these pages in Opera and Firefox. In both, the horizontal rule looks hollow. The JavaScript works fine in Opera, but does nothing in Firefox.

Thursday, January 26, 2006

First Project - Second Version

I've added some code to check out-of-range decimal ESNs, as well as changing my home icon to only use two colors, plus black. Here is a good set of decimal ESNs to exercise every branch of the Decimal to Hex code:
  
123456789012
a1234567890
123a1234567
25612345678
99912345678
25516777216
25599999999
25500000254
25516777215
1
2
3
4
The Hexadecimal results are:

!error!
!error!
!error!
!error!
!error!
!error!
!error!
FF0000FE
FFFFFFFF
00000001
00000002
00000003
00000004
And here is a good set of hexadecimal ESNs to exercise every branch of the Hex to Decimal code:
 
123456789
za123456
12za1234
01000001
FF0000FE
FFFFFFFF
1
2
3
4
The Decimal results are:

!error!
!error!
!error!
00100000001
25500000254
25516777215
00000000001
00000000002
00000000003
00000000004

Tuesday, January 17, 2006

PSP Forms

Here are the Forms for the Personal Software Process as Excel spreadsheets.

First Project

I completed the first version of my first project, which converts cell-phone electronic serial numbers (ESNs) from hexadecimal format to decimal format and back again.

ESNs start with a one byte manufacturer code, which is the first two hexadecimal digits of the eight digit hexadecimal representation and the first three digits of the eleven digit decimal version. ESNs end with a three byte serial number which is the last six hexadecimal digits of the eight digit hexadecimal representation and the last eight digits of the eleven digit decimal version.

Thus the conversion must split the ESN into two parts, convert each part separately, pad both parts to the correct length by prepending zeros, and than join the two parts together.

The first enhancement to this program is to detect when each part of the decimal ESN is too large.

Monday, January 16, 2006

Why We Don't Engineer Software

Watts S. Humphrey of the Software Engineering Institute wonders Why Don't They Practice What We Preach?.

Sunday, January 15, 2006

Perhaps My JavaScript Can Have A Home

So I've created a GeoCities home page, where I hope you can put JavaScript on your pages.

Thursday, January 12, 2006

My JavaScript Must Now Roam

Apparently you cannot put JavaScript in your posts. Bummer.