Computer Geek

Musings about technology, computer books and software.

September 23, 2005

Television shows scramble forensic evidence

Yeah, I admit I like the CSI shows particularly the original. It seems that shows like CSI are so well-known that jurors in crime investigations believe that Forensics experts can do no wrong:
"Jurors who watch CSI believe that those scenarios, where forensic scientists are always right, are what really happens," says Peter Bull, a forensic sedimentologist at the University of Oxford. It means that in court, juries are not impressed with evidence presented in cautious scientific terms.
And criminals use the shows to try to mask potential evidence of their crimes though in many cases, they're not very successful:
Rutty tested just how easy contamination is by asking a volunteer to walk around a sterile room and repeat a phrase. Rutty was able to retrieve the subject's DNA even though the man had been in the room for only a few seconds. Contamination occurred even if the subject was wearing a face mask of the kind used by crime scene investigators.

September 08, 2005

What will you do with your extra second?

This article explains a number of concepts related to Unix time, UTC and TAI and is an interesting read.

A day works out to 86,400 seconds, but not exactly. Operating systems based on Unix (like Linux) use a counter to keep track of the exact time (which includes the day).

The time is presented to the user by dividing this counter by 86,400 and adding the days from January 1, 1970 (12:01 midnight) to give the present date; the remainder is used to give the time. This would be perfect except that the Earth is ever-slowing its rotation which means that every few years a leap second is added.
The problem this presents for UNIX time is that the addition of leap seconds occurs at irregular, somewhat arbitrary intervals, as the slowing of the Earth's rotation is not predictable over the long term. As such, programmers must manually factor leap seconds into programmatic date calculations for systems based on UNIX time, which is a complicated task. Different programmers and development standards handle the task in different ways, which can occasionally lead to minor problems when time-sensitive software communicates over extended periods.
And by the way, a leap second is added soon this year. So plan accordingly:
The next planned addition of a leap second is Dec. 31, 2005. On that date, 11:59 P.M. UTC will be 61 seconds long, and the clock will actually sequence from 23:59:59 to 23:59:60, rather than from 23:59:59 to 00:00:00.
Don't forget to reset your clocks!