Archive for the ‘mycee.net’ Category


What are those Moving Blocks?

Tuesday, January 22nd, 2008

Binary Clock

This is a question I get asked quite often from people stumbling on my new blog, “What are those Moving Blocks?” Or I’ll get some funny suggestions like a mini doomsday counter, horizontal Tetris thingy, some type of unseen Google ad, subliminal advertising tool and many more, keep them coming though, I’m getting some pretty cool ideas for my quest on world domination :P

They are obviously referring to my Binary Clock sitting in the top left corner just below the temporary logo.

After the inquiry on what it is, I usually get, “So how do you read the time on it?”

That’s actually really simple, the first row represents the hours in binary, the second row is the minutes in binary while the last row is the seconds in binary. It works as follow, a red block is considered a one while a black block is considered a zero, you read it from right to left and the value of each trailing block is the previous block’s value times two. Simply count all the red blocks times their respective position value for each row to get the hours, minutes and seconds respectively, let’s work out the time in the image as an example:

Counting only the red blocks will give the following values:

H: [32][16][08][04][02][01] => 08+04=12

M: [32][16][08][04][02][01] => 16+08+01=25

S: [32][16][08][04][02][01] =>16+04+02=22

And there we have the time 12h25 and 22 seconds.

Hmmm, think it is time to build a hexadecimal clock running from 000000 to FFFFFF and simply displaying a block of colour, 00h00 will be displayed as black and 23h59 will be very close to white, as the time goes on, the colour will change accordingly, lunchtime will be displayed as a reddish gray and as lunchtime passes by, green and blue will gradually blend in with the red until it’s a new shade of red.

Comment with any suggestions on interesting ways of keeping time, would love to hear from my fellow geeks :P


Share and Enjoy:

  • muti
  • Facebook
  • MySpace
  • TwitThis
  • Digg
  • Slashdot
  • StumbleUpon
  • Technorati
  • del.icio.us
  • Reddit
  • Google
  • Live
  • E-mail this story to a friend!
  • Print this article!

It’s under construction in case you haven’t noticed!

Sunday, January 20th, 2008

After spending two days reverse engineering / crash coursing through all the WordPress code, I am finally grasping how everything fits together, with a couple of minor tweaks and hacks in the WordPress engine itself and changing a couple of things in the widgets module and writing a new WordPress Theme from scratch, I am now halfway into building my own kick ass WordPress Theme that melts in with the rest of mycee.net. The whole idea of having separate modules for the header, footer, sidebar and content didn’t make sense at first, but after spending some time absorbing the way the WordPress authors goes to work made me realise that the simplicity of their design is absolutely ingenious, especially the backwards compatibility with older themes as well as widgets (except for a few minor things I didn’t like which I recoded anyway).

Hopefully my new theme will be done by the end of the day, could no longer stand the default Kubrick theme, it’s nauseating.


Share and Enjoy:

  • muti
  • Facebook
  • MySpace
  • TwitThis
  • Digg
  • Slashdot
  • StumbleUpon
  • Technorati
  • del.icio.us
  • Reddit
  • Google
  • Live
  • E-mail this story to a friend!
  • Print this article!

Hallo World - The uncensored Version

Wednesday, January 16th, 2008

The first line of code you write when starting out with a new programming language is usually “Hallo World”, to be honest, I have never followed the trend and whenever I was asked to write “Hallo World” in my first program, I felt compelled to disobey and wrote something else, my first ever “Hallo World” was written in my first post in my old blog and to uphold the tradition, my first post in my new blog will also be a “Hallo World” post, only slightly different this time, I will do all the “Hallo World” programs I’ve missed out on over the years …

Scratch that idea, somebody already did it, think I’ll just copy and paste it from his site: http://www.roesler-ac.de/wolfram/hello.htm

Happy coding or whatever makes you happy!


Share and Enjoy:

  • muti
  • Facebook
  • MySpace
  • TwitThis
  • Digg
  • Slashdot
  • StumbleUpon
  • Technorati
  • del.icio.us
  • Reddit
  • Google
  • Live
  • E-mail this story to a friend!
  • Print this article!