http://www.matprat.no/sunn/sunne-oppskrifter/sunne-oppskrifter-god-samvittighet/kalkungryte-med-karri-og-kokos/
rblog
Regex in Groovy: Match characters and some special ones
I’m writing a script that validates a file with key/value-pairs. One type of a valid value is a JNDI-name. Before the actual name it is also a whitespace. So my if-statement with the regex validating ended up like this
currentLine ==~ /^.*=\s+[A-Za-z0-9\/-]+/
To explain it:
- ==~ means validate true/false, see http://groovy.codehaus.org/Tutorial+4+-+Regular+expressions+basics
- Then the regex starts and ends with a forward slash
- ^.*= means match lines with text containing any type of character ending with an equal sign (the keys)
- \s+ means match one or more whitespaces. Should really just need to verify one and only one, but what the heck…
- [A-Za-z0-9\/-]+ is a character class saying match all uppercase letters, all lowercase, all numbers and also forward slashes and hyphens. Some of the names have hyphens so I needed that one to. The + sign at the end says “one or more occurences”, see the heading “Regular Expression Operators” found on the above mentioned link
Study Proves Web Surfing Increases Productivity at Work
Horray!!!
The findings are very interesting. It turns out that of the three groups, the web-surfers were significantly more effective at their assigned tasks than the other groups, and they also repeated lower levels of mental exhaustion and boredom.
Read more at my.opera.com…study-proves-web-surfing-increases-productivity-at-work
I went to IKEA and survived
Seal skin wetsuit
King of survival (might be that I’m a bit ironic)
Facing a chilly swim in the frigid waters of Cape Wrath, Scotland, Bear Grylls comes across the remains of a seal carcass and fashions a wetsuit from its blubbery hide.
See for yourself discovery.com/videos/man-vs-wild-seal-skin-wetsuit
Handyman in action yet again
Yesterday helping Vegard out carrying roof tiles just to realize today that riding the bike 5 days a week does not build muscles. Luckily Vegard is a hard core handyman, he has even built his own truck using an old tractor and parts from an actual truck, how cool is that? So we only had to spread them out on the roof, good thing we did not have to carry them up the ladder as well.
Beer made by the Devil and God
Tested during our vacation week in Sweden, the Hell beer from Jämtlands bryggeri and the God Lager from Nils Oscar. Enjoyed both, but as scary as it is…I found the Hell beer being the best lager
Home made jam of various kinds
Today I have created jam made of blackcurrant, redcurrant and gooseberry. Harvesting the growth of the soil
Thanks to Elin for keeping all the used jam glasses, even if I asked “Why???”. Now I’m happy
Earlier this week, enjoying blackcurrant with lots of sugar and youghurt.
Crude – The real prize of oil
Have you seen the movie about Texaco (Chevron) and how they have polluted land in Ecuador? Would recommend you not to, since you will only feel a stronge urge to kick some ass, especially the Chevron employees. I would hope people like the scientist Sara is a liar, because there are no lies told, she and her coworkers must be the worst kind of scientist.
[video:youtube:R8co4QJxddI]
Trailer
I guess there are plenty of things that the president of Ecuador, Rafael Correa, could have done better, but the decisions he has made in this case is proving that he is a wise man.





