Showing posts with label tidbits. Show all posts
Showing posts with label tidbits. Show all posts

Sunday, 11 September 2016

First time using Bootstrap

It may come across as a surprise but I have never used a CSS framework before, preferring to hand roll my own stylesheets. I had no idea how much I was missing out!

Sunday, 21 December 2014

Premature optimization is the root of all evil

MUST WADE THROUGH UNMAINTAINABLE GARBAGE AND FINISH WHAT I STARTED Enough for today...

Sunday, 6 July 2014

The horrors of a graphical programming tool

Recently I had the opportunity to use a graphical programming tool. The problem was to automate an industrial process, and what could be better than a flowchart-like tool? is apparently what the pioneers thought. The tool had been used on several other units, with varying "success". This means I had legacy code to start with. While this certainly does not speak for other tools, and of course the legacy code had a hand in the experience, I want to document here some of the horror-ful experience.

Sunday, 15 June 2014

Where has the time gone?

Anyone can tell you that working in a large organization has its perks - and downsides. And one of these downsides is the disappearing time.

Sunday, 23 March 2014

An error occurred while Internet Connection Sharing was being enabled (null)

You have access to a LAN port with access to the internet, and you want to share the internet connection wirelessly (ad hoc network).

Sunday, 16 February 2014

Why rand() / RAND_MAX * (user_high - user_low) + user_low is not good enough

The easiest (though certainly not the best) way to generate a random number is to call the rand() function, which is defined in stdlib.h. This function returns an integer in the range [0, RAND_MAX], where RAND_MAX is also defined in the same header (usually 32,767).

Sunday, 1 December 2013

The careless mistakes that programmers make

This week has been a busy one, and I do wonder if my sexier-than-ever voice now is a sign that I should take a break. In any case, today I would like to share an "algorithm" I saw at the workplace. It is gentle reminder to always test your code...