Categories
Code Tech Web

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. […]

Categories
Code Tech Web

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 […]

Categories
Tech Web

Firefox still has memory leak issue?

I had to kill Firefox earlier today after noticing that it was using around 750MB of memory! It hung when I tried to close it normally, but perhaps I was just impatient. This time I’m going to give it the benefit of doubt and blame some crappy Flash advert or something.

Categories
Rant Web

BT (Bastards Telepunish) Woes

My ISP, BT, have got my goat again. They’re punishing me by crippling my (already joke-worthy) download speeds, because I used a lot last week. So they’ll probably charge me for that (fair enough, I suppose). I understand that they need to provide a fair service to all their customers, but why does that have […]

Categories
Musings Opinion Tech Web

Firefox 3 to break Zoom (Edit: I’m mistaken)

Mozilla is about the make a big mistake, the same as that made by IE7. Zooming the whole page is not a good idea. Current Firefox text-only zoom on the left, IE7 on the right. Using the current Fx way you can easily read the text without having to scroll sideways, but the new way […]