My latest book - Astrid Sverresdotter Dypvik "Det var DDR"

April 22nd, 2014

3. oktober 1990 vart DDR lagt ned og Tyskland samla. Det var slutten for statssosialisme, Berlinmuren og Stasi, men også for eit samfunn utan arbeidsløyse. Denne boka byr på forteljingar om det som er att etter DDR i dag....

Read more at Samlaget

How to get uptime for a Windows service

April 1st, 2014

Needed to know the uptime of a service on a Windows 2012 server to verify that the suggested solution for restarting all Splunk Universial Forwarders did work, see answers.splunk.com/../how-can-i-restart-all-my-forwarders.

Solution found here /blogs.technet.com/.../how-can-i-get-the-uptime-of-a-service, did make some minor adjustments to the vbscript as shown below.

Code

strComputer = "."
 
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
 
Set colServices = objWMIService.ExecQuery _
    ("Select * From Win32_Service WHERE displayname = 'SplunkForwarder'")
For Each objService in colServices
 
    intProcessID = objService.ProcessID
 
    Set colProcesses = objWMIService.ExecQuery _
        ("Select * From Win32_Process Where ProcessID = " & intProcessID)
 
    For Each objProcess in colProcesses
        Wscript.Echo objService.Name + "/" + objProcess.Name + " " + objProcess.CreationDate
    Next
Next

Running it from the Powershell prompt like this PS D:\Temp> cscript.exe .\uptime.vbs

Birch extract

March 30th, 2014

Trying out old traditions, today extracts from the birch tree. Tasted like...water.

Cannot stand on the rooftop of my tractor

March 29th, 2014

There are many ways to remove rust from metal, here are four of them using stuff from your kitchen. I will not be using any of them when removing rust from the roof of my tractor. Anyways, with the help from my neighbor the roof was lifted of earlier today. So now I have a Valmet 865s cabriolet...

Digging a ditch behind the barn

March 29th, 2014

Picture taken last Wednesday. The guys who leases our field is doing maintenance, they had to fix a leak in the field drainage. While doing that they made a ditch for us behind the barn as well.

Swans on the field

March 29th, 2014

We have had visitors on our field the past few weeks, several swans have landed there and spent the day.

Milestone in the lifetime of my car

March 29th, 2014

Had to pull over and take a picture of the odometer

(I want a new car)

My latest book - Hel ved by Lars Mytting

March 29th, 2014

Hel ved ("Solid Wood")

Lars Myttings non-fiction book Hel ved («Solid wood») is one of the greatest publishing successes in Scandinavia ever. It is a «practical-lyrical» guide on the use and lore of firewood, based on Norwegian traditions and our modern science on stoves and renewable energy.

I did try today to make fire from the top as described in the book and I broke the record of getting the fireplace hot as h$#.

Things to do on a Thursday

March 27th, 2014

Cleaning the drain pipes, no job to big, no job to small for this truck. Someone suggested that I could use the garden hose...I would beg to differ - the pressure washer on that truck...the noise alone from the drain when they started flushing proved that this was a serious tool way better than any garden hose.

The Mini Bottle Gallery

March 27th, 2014

Yesterday at a work seminar held at the Mini Bottle Gallery. Interesting topics, and also fun afterwards to spend some time wandering around in the gallery.

The brothel theme room. As we where told, Nevada being the only state in the U.S where brothels are allowed, each place having its own mini bottle (seems to be a fact http://www.figuralminibottles.net/dug%20nevada/dug%20nevada.shtml)

And then the farmer theme, a John Deere and an International