Espen and I just had to go for a bike ride today, the weather was very (VERY) nice, especially since we still are just in March. Had an hour of pure fun at Årvolltoppen.
rblog
Firmware upgraded on our Samsung le46c635
Got some problems with our Samsung LCD-tv right now, depending on the daily mood of the tv it either shows a clear and bright picture, or it “flimmer”. Quite annoying, have nailed it down to be caused by the tv itself, and not by the digital decoder or the LG media center. Anyhow, to try to get rid of it I decided to upgrade the firmware. Turned out to be quite easy, spent most of the time trying to find out where to download latest firmware from. At last found it on the bottom of the Samsung.com webpage, “How can we help you?” –> “Download …”.
Then needed a Windows computer, since the file is a *.exe-file. Extract the content to a USB-stick, plug it in to the TV and choose SW-update from the menu, voila, in 2-3 minutes it is up and running again.
Did it fix the problem? No. Did I notice anything different after upgrading the firmware? No. Was it cool? Yes!
Enebakk Rundt – testing my new bike
Decided to go Enebakk Rundt today, even though I did not feel all to good, just had to test my new bike when the weather was so nice. Enjoyed the bike, almost as fast as my road bike. But must admit that I expected the head wind to be back wind after a while since it was a round, but as before, the wind turns all the way so I had it in my face all the time 🙁
Picture taken just before Kirkebygda. No snow at all…
Bowling
Two days at Jeløya
Weekend milestones: Road biking, 1000 km and 500 workouts
Several milestones this weekend
- Snow almost gone away, warm weather, got to use my road bike last Sunday
- 1000 kilometers on bike so far this year, thanks to commuting
- 500 workouts registered on my cell phone using Sports Tracker…had it for two years, so not that impressing, but fun to know at least
And thanks to the people at Renovasjonsetaten at Oslo Kommune who already have been out sweeping the bike (and walk) road out at Klemetsrud.
Removing Windows newline in bash scripts
Had an issue with the ‘^M’ characther in some files causing unwanted line breaks. Got some help from colleagues pointing out that it is a Windows line break. But – how to remove it in my bash script? Easy to do using TR told me, but no. Added
tmp="$(echo ${mLine} | tr -d '^M')"
but no luck…after some struggle it turned out that I could not just write ^M, I had to add it to the script using CTRL + V, then immediately followed by CTRL+V. Using VI as the editor that was what I needed to do to add the newline character to my script.
Discussing stairs
Discussing stairs at work, Youtube to the rescue when I tried to describe unnecessary use of stairs, no better example than Fawlty Towers , the extra stairs on first floor.
Basil and Manuel at their best…
[video:youtube:2AHIRC7RcDM]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










