Posts tagged 'Programming'

Voting for the EU Parliament in Scotland

Back in 2014, I was curious how the proportional representation system used for the EU elections, the D'Hondt method, worked. I built a simple javascript program to allocate the seats based on the number of votes for different parties, then added recent opinion polls to the page to see ...

Code Golf at Work

For the past three weeks, I have been at a suppliers factory testing a project prior to delivery to site. The other day, one of the managers of the other company came over to our group and gave a graduate a challenge, write an excel script to colour each cell ...

Viso: How to Split Lines

At work, I occasionally have to modify visio drawings created by others.

When I am making a drawing, I always ensure each segment of a line is a seperate line, which makes modifying later much easier. Unfortunatly few others do it this way and just use polly lines.

The following ...

Skipping a gtk.Assistant Page Using set_forward_page_func()

A.K.A. Skipping Page 3!

I regularly use the excellent rednotebook for my daily notes at work. I recently decided I wanted to add a feature to the export dialogue which would allow the user to export only a selection of text.   A code reviewer suggested that, if the ...

Phone Dialer

After having to use conference calling to an international number for work, then dial the meeting room code, I decided to have a go at a project idea I had over a year ago. I wanted to create a webapp that would, given a number, ‘dial’ that number using the ...

Impress Update

I have recently had some spare time and chose to use it updating impress adding some new features.

For anyone who has not heard me talk about impress: it is a simple mass balance tool designed for chemical engineers to use during the early stages of design. This application is ...

Introducing IMPRESS

Introducing IMPRESS: the Interactive Multi-user PRocess Engineering Simulation Suite.

As my final year ChemEng research project I have built a program that helps build a mass balance for processes.

The program is accessed through a web page (so you don't need to install anything) and can handle having more ...

Javascript Time Entry Field

For a project I am doing for my dad, I created a form that requires the user to input lots of times. This was to be done in the format "HH:MM:SS". After I created the form and handed the project over for testing, it was mentioned that typing ...

Trigger onKeydown Without Activating Firefox Quick Search

Whilst working on ImpAmp, I was attempting to catch when the user typed ' or / into the window without activating the firefox quick search. After hunting around on the web, I found lots of places telling me how to deactivate it permanently which is not what I want. Normally I find ...