Once In A White Moon - by Gina Therese Hvidsten
© 2017
Once In A White Moon

Attention comment spammers

I have now added a nofollow attribute to all links in the comments section, so spammers will no longer get increased page ranks from Google or other search engines.For non-spammers, add the following to an anchor tag and google won’t follow that link:rel="nofollow"

For my sister

My sister got married on Saturday, September 1.There was a great party with many great speeches. I’m not claiming greatness on my own, but I will post it here (translated to English for my foreign friends) for everybody else to enjoy (for the first time, or again if you were there).I said it many times that day, but I’ll say it here again.Congratulations to my sister and her husband! Both my sister (Elisabeth) and her husband (Fredrik) are teachers, so the toastmaster made the entire experience to be like a class at school. I was the evening’s teacher of the computer class.———-If everybody in the class can start their computers, open a web browser, go to Google and search for my name, you will all […] Read more

Change image tag generated by CKEditor

For a new project of mine I’m using a rich text editor called CKEditor. This is a highly configurable editor that, unfortunately, suffers from cluttered and not easily understandable documentation. I needed to change the generated HTML from the editor so that images that were resized not only had their size set as style attributes, but as query string variables. So I needed this: <img src=”http://yoursite.com/photo.jpg” style=”width:150px; height:200px;” /> to be output as this: <img src=”http://yoursite.com/photo.jpg?width=150&height=200″ style=”width:150px; height:200px;” /> That proved to be easier said than done, but after quite a lot of googling, asking on several forums, and getting some helpful (and some not helpful at all) replies, I finally ended up with the following: Put the following code into CKEditor’s config.js: CKEDITOR.on(‘instanceReady’, function […] Read more

Art history lesson

art-history-lesson-1

Today my nephew got baptized. Let’s not dwell on that and look at what I got him instead.A few days ago I actually went into an art gallery and bought a piece of art. There’s certainly a first time for everything! I hope the little guy will appreciate a genuine piece of art as he grows older.What I got him was this lithograph from artist Per Krohg, son of the renowned Christian Krohg. Per originally made a series of pictures for his son Guy when he was a child. Each picture represented a letter in the alphabet. The family of artists were typical of their time and lived in France, so each picture also represented something in French.Unfortunately the gallery didn’t have the letter L, […] Read more