Archive

Last modified by Normann P. Nielsen on 2025/11/25 09:41

Blog - posts for February 2014

Feb 26 2014

Første gang i 2014 på rullere....

Og det var 15 kolde km, føj da emoticon_smile Billedet er taget FØR den kolde tur!

http://www.endomondo.com/workouts/301046292/179789

IMG_2557.JPG

Feb 22 2014

Et spændende tilbud..

Ja, havde man ikke et fantastisk godt job ville dette altså bare være spændende (cheeky)

https://www.atlassian.com/europe/ambassadors

Feb 21 2014

Frie Atlassian Licenser :-)

Idag fik jeg grønt lys fra Atlassian omkring gratis brug af licenser, pga. alt mit udvikling til Confluence, JIRA m.v. er til gratis download/brug efter en Open Souce Licens (thumbs-up)

Det er fanme'iorden, tak for det - det sparer mig for +100$ pr. år og rigtigt mange plugins er gratis, da de følger Atlassians Licens model.

Samtidigt er der oprettet et område dedikeret til Atlassian

hackhouse_logo_landingpage.png

Feb 17 2014

Mere lysshow

I lørdags var jeg forbi min gode ven Hans Christensen for at få en Decor ledningskjuler fra LK, så vi kunne få sat lys op under wallboardet i køkkenet - det blev sgu rigtigt godt !!

IMG_2541.JPG

Ud over køkkenet kom der også lys under skabskabinettet i ungernes/gæste-badeværelset.

Tidligere har vi jo lavet lys under AV bænken i stuen:

1604746_640586459334441_1445587295_n.jpg

Feb 14 2014

Weekend og vinterferie

Så er vi tæt på - weekend og vores vinterferie emoticon_smile

Ungerne har selvfølgelig fri hele ugen, Anette og jeg har onsdag-fredag i næste uge, dejligt

Forhåbentlig for vi besøgt Tom og Karina og hørt om Tom (The White African)'s tur til Sierra Leone - og hygget igennem med dem.

Imorgen er der mini LAN for Christopher og Andreas og tirsdag futter Toke til LAN hos Niklas, sikkert en all-nighter....

Oct 01 2010

Weekend comming up!

Dejligt efter en mere end begivenhedsrig uge på arbejdet...

Planerne er ikke helt store, men lidt er der da, Toke skal op til mormor og morfar og sove en dag, og imorgen skal vi spise deroppe.

Feb 02 2014

Busting the Work Confluence

Thursday night on the couch, having a day off friday, I decided to do some layout work on the Confluence we use at my workplace (just for the fun of it, as my work is my hobby - sort of anyway).

I had created a new User Macro, that I wanted to implement on the Dashboard, so I started editing in the Global Layouts in Confluence to place it on the Dashboard:

Screen Shot 2014-02-02 at 20.01.39.jpg

As part of the changing of the Dashboard code, I entered:

{html}<font size="4">Space Quick Select</font>{html}

pressed "Save" and:

bam_logo.jpg

the Confluence went down - just giving me a "Service Unavailable" from the Traffic Manager.

Shit, I restarted the instance- no improvement.....so starting to diagnose:

npn@docs01:~$ wget -O - localhost:8080
--2014-01-30 21:46:27--  http://localhost:8080/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:8080... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2014-01-30 21:46:28 ERROR 500: Internal Server Error.

npn@docs01:~$

Hm, error 500, diagnosting further:

root@docs01:/pack/confluence-data/logs# tail -f atlassian-confluence.log
caused by: java.lang.RuntimeException: Error rendering template for decorator global
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:186)
caused by: org.apache.velocity.exception.ParseErrorException: Encountered "4" at /decorators/global.vmd[line 38, column 87]
Was expecting one of:
   "," ...
   ")" ...
   <WHITESPACE> ...

at org.apache.velocity.Template.process(Template.java:141)

So, It seems the code I put in the Global layout makes the Confluence crash totally, not just rendering the Dashboard, but TOTALLY!!!

I fired up for MySQL and looked at the DECORATORS table:

mysql> select DECORATORID,DECORATORNAME FROM DECORATOR;
+-------------+-----------------------+
| DECORATORID | DECORATORNAME         |
+-------------+-----------------------+
|    64913409 | decorators/global.vmd |
|    48300036 | decorators/page.vmd   |
|    59080705 | decorators/page.vmd   |
+-------------+-----------------------+
3 rows in set (0.00 sec)

mysql>

Now, 2 choises are available:

  1. Fix It
  2. Delete the DECORATORID=64913409 record.
    All though I am pretty sure number 2 works (same as using "Reset Default"), I went for number 1:

First, I shut down Confluence completely.

Then I made a complete dump of the Confluence Database:

mysqldump -uconfluence -p confluence > confluence.sql

After securing the backup, I dumped the DECORATOR table:

mysqldump -uconfluence -p confluence DECORATOR > DECORATOR.sql

After that, I changed the DECORATOR.sql file i the "vim" editor - stripping off everything but the record for DECORATORID=64913409, and change the "INSERT INTO" to an "UPDATE"  so it looked like:

UPDATE DECORATORS SET body='### ...code...code...code.' WHERE  DECORATORID=64913409

And the whole point being that I removed the "{html}<font size=\"4\">Space Quick Select</font>{html}" from the body code.

Finally, I put back the decorator:

mysql -uconfluence -p confluence < DECORATOR.sql

And started the Confluence Instance:

success.jpg

- up and running again

Feb 02 2014

Confluence User Macro - Getting the Request string

Fetched from https://confluence.atlassian.com/display/DOC/Include+Page+Macro

#set ($qString = $req.getQueryString())
#set ($titleStart = $qString.indexOf("title=")+6)
#set ($nextAmpIndex = $qString.indexOf("&",$titleStart))
#if ($nextAmpIndex == -1)
#set ($titleEnd = $qString.length())
#else
#set ($titleEnd = $nextAmpIndex)
#end
#set ($reqTitle = $qString.substring($titleStart, $titleEnd))

Very nice for getting the params from a QueryString - I am thinking of making a "Show Image" page in the Mos-Eisley Gallery, using QueryString params