Not entirely true that this is my latest book, finished it a while ago. Used to read it when at my in-laws while putting the kids to bed. A self-biography written by Joral Gjerstad, better known as Snåsamannen
rblog
Petters super fix it
X11 Forwarding and su/sudo
Ever been in the situation where you log on to a server as one user having X11 enabled, but then need to sudo to another one – and voila, your X11-sesison is long gone…
Solution provided here http://brandonhutchinson.com/wiki/X11_Forwarding_and_su/sudo
I did as root
cd ~
mv .Xauthority .Xauthority_old
ln -s ~diagnostics/.Xauthorithy .Xautorithy
and it all worked fine.
Norwegian date format for JIRA
Navigate to Administration -> General Configuration -> Advanced
jira.date.picker.java.format dd.MM.yy
jira.date.picker.javascript.format %d.%m.%y
jira.date.time.picker.java.format dd.MM.yy h:mm a
jira.date.time.picker.javascript.format %d.%m.%y %l:%M %p
Ranfjorden – Nesna – lovely day for a swim
Handyman in action
Duing my duty at home, as a handyman. Lawn care is listed as one of the jobs a handyman can do, confirmed by Wikipedia
WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it
Spent hours struggling with the stupid error “WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it”. I have two XML-documents one, which I need to copy a given node from and the other file where I first needed to remove the matching node then copy it from source to the target file. Trick is to use importNode, not just cloneNode
def copyOfSource = sourceProviders[0].cloneNode(true)
targetRoot.appendChild(targetDoc.importNode(copyOfSource, true))
Hours of work solved in few minutes just refining my Google search. Was about to post a question on http://stackoverflow.com and while preparing the question I needed some more background information. Tada…
Business idea, not new – but fun anyway
Buy Pilsner Urquell, bottle deposit in Sweden is 50 Swedish øre. Drink it up and then do the deposit in Norway, where you get 1 Norwegian kroner in return. Both fun and extra money in return!
The business idea is tried before by Kramer and Newman in The Bottle Deposit, Kramer giving the details in the clip http://www.youtube.com/watch?v=x1blsZxXDCU&feature=related
New commuter bike
Linux – view size of subfolders in current folder
Posted as a reminder to myself on how to use the du
$ du . -kh --max-depth=1
2.0M ./aix
16K ./lost+found
2.0M ./windows
2.8M ./solaris
31G ./linux






