CSS3: Rounded Table Corners (No images)

You cannot give a whole table (<table>) rounded corners using CSS, browsers will ignore it, you must round the corners of the cells (<td>) inside.

The following uses CSS2 selectors (:first-child etc) and CSS3′s corner-rounding border-radius to selectively round the outer corners of the cells in the corners.
This will work for any size table.

table.rounded-corners tr:first-child td:first-child {
	border-top-left-radius: 5px;
}
table.rounded-corners tr:first-child td:last-child {
	border-top-right-radius: 5px;
}
table.rounded-corners tr:last-child td:first-child {
	border-bottom-left-radius: 5px;
}
table.rounded-corners tr:last-child td:last-child {
	border-bottom-right-radius: 5px;
}

PHP Bug: json_encode() misleading warning on object with private properties

I have found a peculiar issue with PHP’s json_encode() function.

If you have an instance object with private properties and use json_encode() it will give you a very misleading warning.

class ExampleObject {
    private $privateProperty;
    ...
}
$obj = new ExampleObject();
json_encode($obj);

results in

Warning: json_encode() … recursion detected …

There are two workarounds in the comments for the function at php.net but this is simply a PHP bug as far as I am concerned.

10/GUI


10gui.com

This is as much an HCI concept as it is about the GUI.

I think a multitouch pad would be great.
5 fingers, i.e. one hand, would be plenty though, and having one hand remaining on the keyboard allows for faster resumption of typing long text.

My HTPC keyboard already has a simple multi-touch action, two finger to scroll, and I’m sure moving up to five fingers would be perfectly achievable by most users. In fact, in the video above there were only s few times when you’d have to use more than two or three fingers.

I think this is all fantastically interesting, and discussing the subject with people who won’t just shoot down the unknown/unfamiliar will lead to some great things.

I wish I could be more involved with this area of research and development.

Indian Rupee Symbol Competition

Since I don’t live in India, I’m not allowed to enter the competition to design an official symbol for the Indian Rupee announced last month.

I have however come up with a very simple design:Indian Rupee Symbol Design
(horribly created in Paint.NET)

I’m posting this now so I can see how it compares with whatever is chosen when the competition closes at the middle of next month.

This design is easily written by hand, cannot have some mistaken extra meaning when viewed upside-down, and is narrow enough that it could fit in the space for a zero.
It is also obviously inspired by the letter R.

I’d also be happy to hear your opinions, positive or otherwise.
Does it remind you of anything else, does it have meaning in some Arabic script?

Leaving Bitopia

Prior to the big move, I’m leaving my current job at Bitopia at the end of the week.

Last Friday, all the staff went to watch Saints beat  Castleford Tigers.
At the end of the evening I was surprised and honoured to be presented with a personalised and autographed Saints shirt by Paul Sculthorpe.

Paul Sculthorpe presents me with a personalised autographed Saint shirt

Paul Sculthorpe presents me with a personalised autographed Saint shirt

I’d like to thank Christian for arranging it all for me, and Steve, MD of Bitopia, for paying for the evening!

/riˈkərsiv/ (adj) see Recursive