rblog

Create a blog post in Confluence using Groovy

Needed a way to publish a file containing a list of application versions installed in our WebSphere environment. What better to use than Groovy and XML-RPC for Atlassian Confluence. Tested on version 3.5


import groovy.net.xmlrpc.*

// ************** Set according to your environment ********
def SERVER = "http://<YOUR_SERVER_NAME>/rpc/xmlrpc"
def UID = "<UID>"
def PWD = "<PWD>"
def SPACEKEY = "<SPACEKEY>"
def BLOGTITLE = "<BLOGTITLE>"
def CONTENTTXT = "<TEXT WITH MACROS AND SUCH>"
// *******************************************************

println "Connect to server"
def c = new XMLRPCServerProxy(SERVER)

println "Login to server"
def token = c.confluence1.login(UID,PWD)

// Example found at http://confluence.atlassian.com/display/DISC/XML-RPC+Page+Updater+Example
println "Create blog and then save it"
def newBlogdata = [space:SPACEKEY,title:BLOGTITLE,content:CONTENTTXT]
c.confluence1.storeBlogEntry(token, newBlogdata)

// Clean up by logging out
println "Logout"
c.confluence1.logout(token)

Update:
In additon you would off course need to download the needed jar file, get it at http://groovy.codehaus.org/XMLRPC

Oh joy!!! New bike: Everest Twenty9

After having considered for a while whether to buy a Scott Scale 29 Expert or the Everest Twenty9 I decided yesterday to go for less weight – so here it is in our living room, the brand new 2011 Everest Twenty9…even Elin accepted the fact that the bike is placed here for a while. Can’t take it outside just yet… So now it is truly all up to me when heading for Germany in June.

All the technical details can be found here www.oslosportslager.no/…/everest-twenty9-carbon-2011-terrengsykkel

Can’t wait to test the SRAM 2×10, I read the thread found here forums.mtbr.com/…/why-3×10-vs-2×10-662945.html and what some points out that the overlap is decreased a lot it just what I was hoping for…spring, come and get me!!

My latest book – Kai Eide “Høyt spill om Afghanistan”

Kai Aage Eide (born 28 February 1949 in Sarpsborg) is a Norwegian diplomat. He was appointed the United Nations Special Representative to Afghanistan and Head of the United Nations Assistance Mission in Afghanistan (UNAMA) on 7 March 2008,[1] a position he held until March 2010 when Staffan de Mistura took over….

http://en.wikipedia.org/wiki/Kai_Eide

Well worth reading!

Banana cake and the Waffle day

Yesterday Elin had her birthday and I made a banana cake. Got thumbs up by my parents-in-law, even Elin who initially said that she did not like banana cake enjoyed it.

And today on the 25’th of March it is the Waffle day here in Norway (and many other countries as well) – read more about waffles at Wikipedia, much I did not know. I have celebrated the day making oat waffles. Elin is skeptic, but she have not tasted them yet.

Hansa Pilsner Lite – Best in test

Yesterday Elin bought two Hansa Pilsner Lite

…beer along with spicy homemade tomato soup, a perfect combination. And according to the webpage klikk.no/helse/dinkost/tester/ the beer won best in test…competing against other lite beers (should have known). Nothing about taste mentioned, just “not much alcohol, less calories” and such.

I would summarize my rating with a link to the song “It’s no good” by Depeche Mode. Why fool yourself, either stay away from beer or drink the real stuff. Have never enjoyed Hansa anyway. And neither have Hamar Arbeiderblad

Upgraded blog to B2Evolution 4.0.5

Yet another successful and easy upgrade, now running 4.0.5 of B2Evolution. Had to spend some time uploading the files to the server due to very limited bandwidth this evening, but apart from that, no problems. Also used WinScp to move the media-folder on the server before upgrade and then move it back, in that way I could delete files and upload a fresh copy afterwards.

Tearing down the old grain drier

This weekend Lars Tormod and I teared down the old grain drier at Vestreng. We had planned to go and fetch firewood, but due to all the snow which is icy on the top and more like sugar underneath we where forced to do something else. We will wait until the snow is gone and then do another try.

I’ve plowed away the snow so we can get the firewood we made last year.

Found an old ski jumping helmet belonging to my father-in-law

Lars Tormod started working

My oldest son Anders and my father-in-law Anders checking the progress

Almost finished

All down, not we just have to hand it over to the scrap yard.

Hjem