Monthly Archives: February 2011

svg and html

Using an uptodate browser (or a java script library, such as svgweb) it is fairly easy to integrate a svg file into a html page and to handle the svg-file from html, for a primer, see e.g. alistapart.com. Basically, when … Continue reading

Posted in Diverse, html, svg | 1 Comment

Gammal gretten gubbe slår til igjen og sender brev til ntb

Aftenposten har artikkelen Henrettelse gikk galt i USA som bare henviser til ntb. Der står det: (…)har blitt henrettet ved hjelp av narkosemiddelet sodium thiopental lot til å være våkne(…) Kan dere lære journalistene at det er ikke noe som … Continue reading

Posted in Diverse | Comments Off on Gammal gretten gubbe slår til igjen og sender brev til ntb

SQL – setting and resetting in one query

A colleague has a web application where a number of flags can be set or reset using checkboxses. These flags corresponds to rows in a table. When they have been altered, those who are set are returned from the browser, … Continue reading

Posted in sql | Comments Off on SQL – setting and resetting in one query

Making stripcharts using svg and javascript

April 2013: I have made a new project based on this, although for static plotting. I needed to present data in a webapplication using strip chart. From earlier experiences on data presentation, I knew that making bit mapped graphics to … Continue reading

Posted in svg | 1 Comment

En inngriper

På vei til jobben går jeg noen dager praktisk talt gjennom en skolegård. Normalt smiler jeg litt av barnas aktiviteter og holder et lite øye med hva som foregår for å i minst mulig grad krasje med noen når for … Continue reading

Posted in Barn | Comments Off on En inngriper

PHP Matrix multiplication

Needing to do some matrix multiplication in php, I found some code that looked quite promising, but it had a couple of problems: In addition to the matrixes, it needed the max dimentions of the matrixes as arguments and it … Continue reading

Posted in php | Comments Off on PHP Matrix multiplication

Concatenating a utf8 char field and a datetime field in mysql

In a database of mine (using mysql 5), I needed to make a ‘fake name’ – concatenating the real name and a datetime, so I did a concat(name, ‘(‘,thetime,’)’) in the sql and got just what I expected TheName (2011.02.02 … Continue reading

Posted in sql | Comments Off on Concatenating a utf8 char field and a datetime field in mysql