There has also been some work to allow the interesting use of macro names.
For example, if you wanted all of your “creat()” calls to include read permissions for everyone, you could say

#define creat(file, mode)  creat(file, mode | 0444)

I would recommend against this kind of thing in general, since it hides the changed semantics of “creat()” in a macro, potentially far away from its uses.
To allow this use of macros, the preprocessor uses a process that is worth describing, if for no other reason than that we get to use one of the more amusing terms introduced into the C lexicon.  While a macro is being expanded, it is temporarily undefined, and any recurrence of the macro name is “painted blue” — I kid you not, this is the official terminology — so that in future scans of the text the macro will not be expanded recursively.  (I do not know why the color blue was chosen; I’m sure it was the result of a long debate, spread over several meetings.)
– From Ken Arnold’s “C Advisor” column in Unix Review

Archive for December, 2005

To live…or not

Saturday, December 3rd, 2005

If you have been following the news recently you would have heard of the fate of Nguyen Tuong Van, a Melbourne man who has been sentenced to death by hanging in Singapore. His crime was trafficking about 400 grams of heroine.

Apparently, the reason he did it was to help pay off a debt for his twin brother. Whatever the reason, I don’t believe the death sentence is the answer. There is something wrong when society can say to a person:

“You are not allowed to live anymore.”

That’s not to say the crime this person has committed is excusable, but when we they as a society make judgement on an individual and take away that person’s right to live, what does that make us them?

Latest:

Articles:

Related:

Peugeot 20Cup

Sunday, December 11th, 2005

Please Santa, may I have one of these for Christmas? :grin:

Me want!

…wistful thinking, since the 20Cup is but a concept car only. *sigh*

Source: Three-Wheeled Racer

Plugin: KIN 0.4.0

Sunday, December 11th, 2005

It’s been a while, but KIN 0.4.0 is here. There are a number fixes and tweaks:

  • Dashboard is now supported
  • Added custom settings page
  • Should now work in most (if not all) of the major browsers
  • WP 2.0 ready

And many more improvements.

Important: Make sure you update to KIN 0.4.4. I have fixed a bug that causes data loss if you use the “global update” function in KIN 0.4.0. So, please update immediately.

Note: The bug was not present in KIN 0.2.0.

Go to the Download page to get your copy!

Tis the Season!

Tuesday, December 20th, 2005

The obligatory fruitcake!

Isn’t it amazing how the year has flown by. Once again tis the season to be jolly, to reunite with long lost relatives :roll: , do that last minute shopping, stuff the stockings, roast the turkey, bake the cookies, pop the bonbons, carve the ham, steal a kiss under the mistletoe, drink a toast and…

…wish everyone a safe and Merry Christmas! :santa:

Ho Ho Ho!

Sunday, December 25th, 2005

:o)

The Extra Second

Sunday, December 25th, 2005

I know Christmas is not over yet. Plenty of eating and drinking to do. A lot of time left for merriment. Maybe a little bit more time than usual this year for fun and laughter.

As it turns out this year includes a leap second. This happens every seven years to account for the slowing down of the Earth’s rotation.

So, for the countdown on New Year’s Eve, it will go a little something like this: “10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0..0? Erm…Happy New Year?”

Hmmm…there could be a little confusion on New Years Eve, but on the up side, that extra second could mean an eternity depending on who you are kissing. :wink:

Source: Extra Second Will be Added to 2005

Tsunami Anniversary

Tuesday, December 27th, 2005

About the same time last year I had planned a trip that would eventually take me to Krabi, Thailand. I was apprehensive about the trip and wasn’t sure whether I should go or not, but it was too late to back out.

I arrived in Krabi around February, after travelling through Vietnam and Cambodia. I stayed at Ao Nang Beach, which sustained some damage during the tsunami disaster, but I was hard pressed to see it, because most of it had already been repaired by the time I got there.

It’s a year on since the 2004 Boxing Day Tsunami and I know many people who will be travelling down to the south of Thailand for their holidays. It seems everything there is back to the way it was before the tsunami. People have a way of recovering.

The world showed that it had a conscience and gave a helping hand with unprecedented generosity. The UN have proposed an International Early Warning Programme (IEWP) to lessen the impact of deadly natural disasters.

A system like this could have saved thousands of lives if it had been implemented prior to the tsunami. Let’s hope the system will not need to prove itself anytime soon.

Plugin: KCA 2.0.0

Wednesday, December 28th, 2005

After the recent release of WP 2.0, I thought I’d better make sure KCA was up to scratch.

Apart from some bug fixes, there is now a built-in version checker for the plugin. This feature will notify you of any updates to the plugin. Nifty huh?

With the advent of WP 2.0, I decided to make this version of KCA an even 2.0.0 also.

As usual, go to the plugins page to get your copy!