Wednesday, March 7, 2012

SOFT6008 Checksums Handout Typo

There's a typo on the Checksums handout. On page 3 the indexOf() should evaluate to 15, not 10.

SOFT6008 Check Digits

Here are some data to use as test cases for the check digit exercises.


IE-PPSN

These numbers are valid in theory
5313197L
1234567T
1234567t
0000000W
0000071w

ES-DNI

These are valid numbers
03457393-X
03457393X
03457393x
03405999-K
70240341-C
70259948-P
70259948p

If these test cases give you trouble read the small print on the ParseInt box!.

I have noticed that in real life Spaniards tend to insert separators between groups of digits to make the DNI number easier to read and it is common to put a dash before the letter (as above). To accommodate this your code should strip out all useless characters from the input before looking at it more closely.

Ensure that your code insists on the correct length
007-X is not valid. But 00000000-X is.

Euro Banknotes

Just take some from your wallet. There are fewer than 26 countries that issue Euro banknotes some some letters never appear at the start of a serial number. Accounting for this would require some very inelegant code. We can't have inelegant code!

Be sure to check some serial numbers that have a zero immediately after the letter. If that gives you trouble ParseInt may be to blame.

SOFT6008 Class 17

I wasn't feeling well, so I didn't bring very much to the party. Students worked on the various exercises.

Tuesday, March 6, 2012

SOFT6007 FC

Took Meabh's class. We did image maps.

Monday, March 5, 2012

SOFT6007 ITS1/DCOM1 Class 16

We had an in-class exam

SOFT6008 Assessment 1

There will be an in-class on Thursday 15 March at 1700. All students taking this module this semester should attend.

The exam will be a written closed-book exam that will cover all of the topics and examples we have seen in class

The slides and examples are here.

SOFT6008 Class 16

Students worked away on the various exercises.

There is quite a gap opening up between the students who are up-to-date and those who are behind.

The DOM slots, cards, and dice should be done or nearly done by now. To be on schedule students should be looking at cookies or checksums.

I wouldn't start work on Assignment 2 just yet.

SOFT6007 COM1 Class 16

We had an in-class exam.

If you don't have a watch you should  probably buy a cheap and cheerful one. Bringing a phone to class and using it as a watch is against the rules. It can lead to an automatic zero in the exam. So be careful.

It's inconsiderate to make noise while other students are still working on their answers. And staying in the room after you have finished to have a chat is not very nice.

Sunday, March 4, 2012

SOFT6007 Digital Color (HSB) Online Lesson




Online lesson on Digital Color: Hue Saturation & Brightness (HSB)

Friday, March 2, 2012

SOFT6007 Class 14 DCOM1 Lab

We linked a style sheet to the timetables completed in previous classes. I asked students to experiment with various attributes.

Thursday, March 1, 2012

SOFT6008 Class 15

We looked at some more examples of checksums and discussed how they might be implemented in JavaScript.

The audio recording didn't work for today's class. But I put the video on Google+ anyway.

Anonymous comments back again

I have re-enabled anonymous comments on the blog.

We'll see how long that lasts :-)

SOFT6007 COM1 Class 14 Lab A

We added CSS to the timetables we'd coded in previous classes

SOFT6007 COM1 Class 14 Lab B

We added styling to the timetable table coded in previous classes.

A lot of students used the second hour of the class to complete work for other modules.

Wednesday, February 29, 2012

SOFT6007 COM1/ITS1/DCOM1 Class 15

There was no class 15

SOFT6007 COM1 Friday 0900 class canceled

There will be no web dev class on Friday morning. Cinderella, you shall go to the ball!

Ní beidh a leithéid ann arís

Today is a sad day. Today any public servant of our republic who has enough pension entitlements to make it practical for them to leave, will leave. In schools, hospitals, government offices, and colleges all around the country people are saying their goodbyes. I imagine there pubs will be busy tonight.

The departure of so many people all at the same time will be a bit traumatic for some institutions, and the effects may even be noticed by the customers of those public services. But I expect that their departure will affect not just the public services themselves, but will impact of the very nature of public service.

The republic, since its foundation, has been served well by its public servants. They were dedicated, impartial, and well respected. Of late there has been a lot of public servant bashing, and the mutual regard the public and public servants once had or each other has been eroded. Today's exodus will see not just a quantitative change in the number of public servants. There will be a qualitative change in the whole culture of public service.

Good luck to those going. Ní beidh a leithéid ann arís.

SOFT6007 Class 14 ITS1 Lab

We looked at using CSS to change the appearance of the timetables we coded in previous classes.

All students present eventually got it working.

SOFT6008 Class 14

Students worked on coding the various exercises.

I gave out a handout on Checksums

For numbers over 10, mod 9 gives the same result as adding the digits together. That's easier to implement.

Tuesday, February 28, 2012

SOFT6007 DCOM1/ITS1 Friday class canceled

I have to attend a panel visit for a new course on Friday morning so the 1100 class won't go ahead. Students will be expected to take the class online. A recording of the 0900 COM1 will be made available.