Archive for March, 2007

Radiused corners without resorting to images in CSS

Sunday, March 25th, 2007

Most browsers still do not display CSS3 rounded corners (border-radius), although Mozilla Firefox has implemented its own version of corners, -moz-border-radius.

This is an attempt to recreate rounded corners, which work on most browsers without resorting to images.

The theory is that if you nest a few div’s each with differing borders, then you can create a rounded effect. The upside it that most browsers respect border widths, but the downside is that you end up with more div’s in your html than you really need. So much for separating content and style.

Corner_idea

Individually:

A 75×75px div with a 15px left and top border, and a 60px bottom and right border

A 30×30px div with a 15px left and top border, and a 30px bottom and right border

A 0×0px div with a 15px left and top border, and a 15px bottom and right border

When Nested:

Make the colours the same:

A more useable size

Whilst the large one is nice, and we can even make circles by putting 4 of them together, the application in my mind needs to make them somewhat smaller

It is important that the ratio between the div widths/heights and border widths stays the same. Here each value is 2/5 of the one above. (i.e. 30px square)

Or even smaller…(although smaller ones may as well be made with only 1 nested div, this one has 3)

Or even smaller…

One for each corner

Now, all that is needed is to make 4 of these things, and put them in each corner of a page.

This is a heading

This would be some normal text that would be quality…

…quite unlike this waffle that I am typing to fill the space

©2005 handyandy.org.uk

Channel four on demand – 4OD

Tuesday, March 13th, 2007

4OD logoAfter missing “The great climate change swindle” on channel 4 yesterday I decided I was going to watch it on 4OD, hoping that it might help me with an essay that I have to write for tomorrow as part of an energy studies course.

I visited the channel four website and find that they do not support anything other than windows. Helpful, when my desktop doesn’t ‘do’ windows.

4OD requirements

I fire up my laptop, connect it to the internet and begin downloading the executable from the 4OD website. Partway through the download my hard drive decides that it is full, so I delete a load of files that I don’t need. I really must get myself a bigger drive.

installing .net frameworkAfter successfully downloading the 4OD executable, I run it. It decides I need the .net framework, and proceeds to download that (not a small download at nearly 200MB). After taking an age to install the .net framework which I never asked for, I get told that I need to update windows. Something to do with needing the latest media player to play the 4OD stuff. In order to download the latest media player, I needed to install Windows Genuine Advantage (don’t get me started about this, I hate the way micro$oft assume everyone guilty until proven innocent, and can get away with putting spyware on machines under the guise of ‘genunine advantage’).
With all this software installed, my computer decided It needed a reboot, because clearly updating a media player is such an integral part of the system that it needs to reboot. (Another one of the many reasons why I don’t like windoze: “A flea on the other side of the world has just farted, please reboot”)

After the reboot, I was informed that I needed to download some more spyware – DRM software. The dilogue box gave me no explaination of what DRM was, but I decided to let it anyway as I guessed 4OD would not work without such big brother tactics.

Eventually after another reboot, the 4OD service was working, and I could click on the icon and get a full screen of a channel 4 website, with the option to download films. I searched for “The great climate change swindle” and was greeted with a ‘rent for 99p’. After spending 4 hours trying to install the silly software, I think I deserved it free. However, by the time I had installed 4OD I had already managed to find the same film on youtube, and watched it.

drm

So was the effort worth it? No. I now have a computer that is installed with lots of spyware, and software that does not want to remove itself. When I install a bigger hard drive in my laptop (hopefully very soon) 4OD is not on my to-install list – in fact, I will steer well clear of it. Bill Gates will be lucky if I even bother to put windoze on it, even when I have a legal licence!

Hockerton Housing Project

Wednesday, March 7th, 2007

One of the Hockerton housesToday we went on a uni trip to Hockerton Housing Project. It was organised by Colin, who in lectures has always seemed very enthusiastic about this housing development. After visiting for myself I can see why!

“The Hockerton Housing Project is the UK’s first earth sheltered, self-sufficient ecological housing development. Project members live a holistic way of life in harmony with the environment, in which all ecological impacts have been considered and accounted for. The residents of the five houses generate their own clean energy, harvest their own water and recycle waste materials causing no pollution or carbon dioxide emissions. The houses are amongst the most energy efficient, purpose built dwellings in Europe.” [link to their website]

WeedBefore I arrived, I had mixed feelings about this place. I assumed that anyone that lives underground must be a hippy who lives an ethical but boring life, and needs regular large spliff of ganja to maintain the illusion that all is well.

On arrival, apart from the coach almost getting stuck in the lane we were greeted by a three fairly normal looking people (they were normal when you were expecting hobbits) and one other person which I am reliably informed was the infamous Colin himself. We were split into four groups and led on a tour around the few acres that the settlement owned.

The land looked well tended, and the few sheep that they had seemed well looked after. In places there were quite a few weeds, but I guess they are not keen on the monoculture that we are so accustomed too.

FruitThey grow 80% of the veg they eat themselves, and a decent proportion of their own fruit. They produce pretty much all of the electricity they use, and eat their own reared meat. If all the world stopped, I am not sure they would really notice!

What surprised me most about the place is how normal it all was. Yes, there was grass on the roof, and the insides of the homes were quite quaint but they certainly were not dark, damp caves I might have been expecting. They were large, light and airy – and plenty warm enough too.

Inside were telephones, toasters, computers, even broadband wireless routers! These cave dwellers seemed to have taken our western lifestyle, made a couple of excellent changes to the construction of their house, learnt how to grow a few herbs and live happily ever after.

Us on our tour of HockertonI was very impressed. The guy who took us on our tour told us that when they were built, they only cost about £60k. Ok, that was 8 years ago now and they did do much labour themselves, but seriously that is very little when you consider the intelligent design that has gone into these buildings and the fact that they cost peanuts to run.

After the tour there was a short presentation, which was quite informal but certainly interesting. I very nearly bought a book on green design, but refrained after I realised that I spend enough of my time procrastinating, let alone designing again the house I want to self build.

No radiatorsAll in all it was a very interesting trip, and one which has really made me think about how the construction of houses has to improve – perhaps not though legislation and the dreaded part L but through people wanting to change the way they live by embracing new technology and materials in a traditional and sensible energy efficient setting.

My only concern is for my good friend Steve the plumber, who installs central heating. This house (and my house when I build it) has none!