Program Philips Hue

Program Philips Hue

Phillips’ smart light system Hue has for long been synonymous with smart IoT light bulbs, and although they recently have received competition from IKEA Trådfri and Osram Lightify (and many more), it’s still the dominant platform for smart lighting. Basically Phillips Hue consists of the light bulbs, lamps or light strips which can be either white, white ambience or full colour, as well as the Hue Hub. In addition Phillips also sells buttons and sensors that can be used with…

Read More Read More

Into the exclusion zone

Into the exclusion zone

I was born in 1986, and one of the names always being associated with this year is Chernobyl. Yesterday I had the ambivalent “pleasure” to visit parts of exclusion zone: the buffer zone, the Pripyat zone and the 10K zone in which the reactor is located. Towards the end of 2017 a new shelter, or sarcophagus, was put in place over the reactor. This, together with the old shelter and the work of 500.000 liquidators after the catastrophy, makes the…

Read More Read More

Polar adventure

Polar adventure

From a long weekend trip to Svalbard during June 2017. Pictures are from Longyearbyen and from travels to Russian mining town Pyramiden and across the Adventsfjord. 

Fem turer i nærheten av Oslo

Fem turer i nærheten av Oslo

Kongens utsikt En kort kjøretur fra Oslo, langs Tyrifjorden, finner du Kongens utsikt. En enkel, tilrettelagt gåtur på rundt 1,5 km fra parkeringsplassen ved Krokkleiva og fram til utsiktsplattformen. Ved utsiktsplattformen får man en fin utsikt over Tyrifjorden.  Hvordan komme seg dit? Ta E18 ut av Oslo i retning Kristiansand. Ved Sandvika, ta av i retning Hønefoss. Ta av ved Sundvollen og kjør opp til Kleivstua. Det poster per juli 2017 30 kroner i bompenger. Parker ved Kleivstua og følg…

Read More Read More

Load database from CSV with columns and tables read from file.

Load database from CSV with columns and tables read from file.

The issue at hand here is to load a database with CSV-files in a generic way without having to write separate script for each table. This short Groovy-script is working based on two conventions: The name of the CSV-file matches the name of the table in the database. The name of the CSV-header matches the name of the column in the table. The script requires the CSV-files to be read in the folder “to_digest”. The connection details is placed in…

Read More Read More

Lovholm.net back with new layout

Lovholm.net back with new layout

In recent years the activity on lovholm.net has decreased.. unfortunately. Hopefully, I will soon be able to kick-start some new articles, as I have picked up a few new things I want to share with the world over the last few years. As you may have noticed if you been visiting this page earlier, it does not look quite like it did a few months or five years ago. The last larger update of the page (WordPress engine updates excluded)…

Read More Read More

SQL: Setup a Learning Workbench with SQLite and SQuirreL

SQL: Setup a Learning Workbench with SQLite and SQuirreL

Install SQLite To download SQLite you only need to download a file from the project homepage of SQLite. Select download, and precompiled download for your prefered operating system. Unzip the folder with the binary, and place it in a folder that is accessible from your command line interface (The terminal on Mac/*nix systems and Powershell or cmd on Windows). This is a folder that is in the path variable. Here is how you can add a folder to the path…

Read More Read More

Bestille togreise i India

Bestille togreise i India

Å bestille en togreise i India kan være litt tricky, men er absolutt verdt å gjøre. Det er et enormt tognettverk mellom de forskjellige byene og regionene, og stor spennvidde i hvor god plass og service du får og hvor lang tid togene benytter. Ikke minst er det en flott måte å se landet mellom byene. Under vårt India-opphold benyttet vi Rajdhani (betyr hovedstad) mellom Mumbai og New Delhi og fikk på førsteklasse egen lugar, te, kaffe og tre-retters middag….

Read More Read More

A short script for testing writing many files to a folder

A short script for testing writing many files to a folder

The challenge: We want to see when the number of files in a folder decrease the performance on adding new files into the same folder. Two examples where we may need to do to this are: to get an overview of the performance of the file system node structure, or to test Windows function for 8dot3 format compatibility. The solution: We want to create a script that writes a large amount of files to the folder in question and is logging…

Read More Read More

Two Good Tools for Peeking Inside Windows

Two Good Tools for Peeking Inside Windows

Over the last couple of weeks I have explored the inner mechanics of Microsoft Windows, and the processes that run in this context. In this process two tools have proved especially useful: Xperf logs with WPA and Sysinternal’s Process monitor. Xperf/WPA During execution Windows is continuously surveying it’s internal processes through the Event Tracing for Windows (ETW). We may harness this internal surveying by extracting the data through the program Xperf. From specific points in the execution (which we decide when…

Read More Read More