Hex Colour Clock: javascript version

Inspired by http://www.thecolourclock.co.uk/ – I decided to quickly make the CSS3 Javascript  HTML5 OMG WTF BBQ version, it can be found here: http://d62.net/demos/js/hex_clock.html


View source on that page to view the full detail, basically, repeated calls to setTimeout are made to update the background colour of the body tag based on the current time padded to 2 figures (15:06:10 at the time of writing this) these are concatenated together to form the hex colour value of #150610

Header Navigation: Showing more with less

Not being a designer, I had to find a way to add more options to the header of a client’s internal case management system.

I found this and implemented it easily: http://www.jankoatwarpspeed.com/post/2009/01/19/Create-Vimeo-like-top-navigation.aspx

The example given requires no javascript. I’ve amended that with the excerpt below to improve the search functionality (using jQuery):

                    $('#searchField').attr('search_type', $(this).attr('search_type'));
                $('#searchField').bind('keypress', function(e)    {
                    if(e.keyCode == 13)  {
                    $search_field = $('#searchField');
                    $val = $search_field.val();
                    $type = $search_field.attr('search_type');
                    if ($type == 'finance'){
                        document.location = '/invoiceSearch/q='+$val;
                    } else if ($type == 'fnol') {
                        document.location = '/fnolSearch/q='+$val;
                    } else {
                        document.location = '/claimSearch/q='+$val;

This highlights the search item selected, I replaced the checkboxes with labels with an attribute named ‘search_type’ which determines which search module is used later.

The search field also accepts the return key to submit it, to allow power-users to keep their hands on the keyboard!



Lift Goals Q1 2011 – February Update

Shortly before the end of 2010 I set some goals for this year. My first goal deadline is April, My original aims were:

  1. Deadlift 200kg (from 175kg)
  2. Squat 160kg (from 130kg)
  3. Bench 120kg (from 100kg)

Because I hadn’t done enough of these lifts before, consistently, I underestimated how much I could improve through technique improvements alone.

I’ve increased these targets to the following:

  1. Deadlift 210kg
  2. Squat 160kg
  3. Bench 130kg

My current personal bests are:

  1. Deadlift 200kg
  2. Squat 135kg
  3. Bench 120kg

With 2 months to go, my squat progress is very poor compared to everything else, this will be my focus for February.

One thing about the 10kg increase in my bench is that it finally puts me at a > 1000lb total (1001 to be precise!.) That’s pretty weak for a 230lb guy, but hopefully I can continue increasing steadily to get to 1100 by april and 1250 by 2012. Maybe by then I will have the confidence to compete?

Liquid Chalk – Deadlift Grip

As someone that uses a gym with a chalk ban. The best tool in helping my grip strength so far has been Liquid Chalk.

Liquid chalk is intended for rock climbers to keep a secure grip, but has similar applications in weight lifting.

I purchased “pure grip chalk” from decathlon a few weeks ago to see how good it was and i’ve been impressed – it can also be bought online from Amazon at Beal Pure Grip Liguid Chalk

The label states “powder free”, this isn’t true, but it is a lot cleaner than using a block of chalk.

Having completely dry hands makes a massive difference in grip ability. I tried my PB deadlift without this and found it impossible to keep my grip. On the same day I used some liquid chalk and pulled it easily.

I’m not particularly recommending this chalk, since I haven’t used any other brands. I would encourage you to try any and see how it goes.