Photos of yesterday’s lightning

Yesterday’s lightning and thunder was pretty amazing. Pity I wasn’t somewhere on the 20th floor overlooking the city, but even from down below the photos turned out to be interesting.

IMG_1554.jpgIMG_1561.jpgIMG_1564.jpg IMG_1566.jpg

Posted in Photography | Leave a comment

Spotlight indexing inside DMG files

Spotlight Raw Query .emlx searchIn Mac OS Tiger when files are copied to a disk image (virtual disk , extension .dmg) Spotlight doesn’t index the files. In order to turn indexing for these virtual drives run Terminal and enter:

sudo mdutil -i on /Volumes/volume_name

After Spotlight finishes indexing the volume it finds much more than just file names! :)

Index information is always stored in the disk/volume in question, therefore no additional resources are used when the disk image (.dmg) is not mounted.

But this is not all. If you try the above trick for storing an archive of your email messages (since Tiger all separate .emlx files) Spotlight won’t find anything. Don’t be fooled, .emlx are, in fact, indexed, but they are excluded from the search results.

There is a trick…

Go to Finder, start a new search, choose Other from the first drop-down menu and choose Raw Query. This opens the doors to a whole new world of searching! An example query is in the attached screenshot. It finds all emails with the words “Hannes” and “gut”. The query for this is the following:

(kMDItemTextContent ==Hannes && kMDItemTextContent ==gut)

The infinite possibilities for queries are discussed in Apple developer pages, try Query Expression Syntax or Spotlight Metadata Attributes

Remember that these searches can be literally infinitely combined and even saved in smart folders, I suppose. Fathom the possibilites… ;)

Posted in Software | Leave a comment

Ginger cookies

Ginger cookieThe Ginger snap or Ginger thin, Pepparkakan is a cookie that has been developed in Sweden during centuries, to become the cookie it has been the last hundred years. With its delicate flavor of ginger, pepper and other Herb’s baked so thin and crispy. It has become one of the favorite cookies in Sweden.As far back as the 15th century came the first ginger cookies to Sweden through some German munks. The first documented evidence of the cookies is from 1534 the time of the famous king Gustaf Wasa, that the world’s biggest skiing event in Sweden is named after. Through the centuries the ginger cookies has mostly disappeared in the other countries and developed into the Swedish specialty that it is today.

The Name in Swedish “pepper cookie” is probably a name that the cookie got because the people in older times could not specify the spices so it was the dominant one that gave name to the cookie. The first Pepparkakor that was made was not brown as it is today. Instead they were white and often decorated with caramel color. That was the tradition in to the 1800. About 1830 changed the color to brown and the heart shaped Pepparkakan started and became popular. The heart shape is from old tradition combined with goodness and kindness. Perhaps has the belief of the cookies good influence of your spirit life connection with the heart shape of the cookie. It is believed in the folklore that you became kind of eating Pepparkaka, so just in case, take one.

GINGER COOKIES (Pepparkakor — Sweden)

  • 1 C. granulated sugar
  • 1 C. melted butter
  • 1/2 tsp. salt
  • 1 C. dark molasses
  • 1/2 tsp. ginger
  • 1/2 tsp. cloves
  • 1 tsp. cinnamon
  • 1 tsp. baking soda
  • 1/2 C. boiling water
  • 1 egg
  • 3 C. flour

Dissolve baking soda in the boiling water. Mix allingredients together. Roll thin. Cut dough with cookie cutter. Bake at 325ºF until lightbrown. Watch carefully, as cookies brown very quickly.

SPICY CHRISTMAS COOKIES FROM SWEDEN, “PEPPARKAKOR”

Eating “pepparkakor” is said to make You kinder. I´ve made theese cookies every Christmas for 36 years now. They´re crisp and spicy.

  • 175 gr of margarine
  • 1,5 dl of molasses (In Sweden molasses come in three different colours: for “pepparkakor” we use the middle brown)
  • 1 table spoon of cinnamon
  • 1 table spoon of ginger
  • 1 table spoon of clove
  • 1 table spoon of cardamum (preferably fresh ground)
  • 0,2 kilo of sugar
  • 0,15 litre of cream
  • 0,5 tea spoon of bicarbonate of soda
  • 0,5 kilo of wheat flour

Stir margarine and molasses. Mix spices and sugar into it. Whip the cream and turn it down with an easy hand. Mix flour and bicarbonate and add. (save some flour for baking) STORE IN A COOL PLACE UNTIL THE NEXT DAY! Roll it out thinly (1-2 mm). This dough is pretty difficult to handle – take a small amount of it at a time (leaving the rest in the cold). Best is to roll it on a piece of cloth covered with flour.

We make cookies in a lot of shapes: round (can be made with a glass) stars, hearts, leaves, pigs, man, woman, christmas tree….

Bake in 225-250 centigrades for a short time (Ask somebody to watch!)

GINGER COOKIES (SWEDISH GINGER BREAD COOKIES)

  • 1 cup (2 dl) water
  • 1/2 cup (1 dl) syrup (molasses)
  • 2 tablespoons of ground cinnamon
  • 1 tablespoon of ground cloves
  • 1 tablespoon of ground ginger
  • 1 teaspoon of ground cardamom
  • 1 tablespoon of bicarbonate
  • 10,5 oz (300 gr) butter
  • 2,5 cups (5 dl) sugar
  • 7,5 cups or about 1 lb. (1,5 litres) flour

Mix butter, sugar and syrup. Add spices and bicarbonate, then water and finally part of the flour. Mix in the rest of the flour. Let the dough sit over night, wrapped in foil in the fridge.

Roll the dough as thin as possible using flour. Cut out figures – preferable Christmas figues, hearts, stars etc.

Bake in oven for about 5 minutes at 200-225 degrees C (400-425 degrees F). Watch it! They burn fast once they start.

You can get about 300 cookies, depending on how big you make them. It´s nice to make some quite big hearts, decorated with frosting and maybe hang them up in the window.

GLÖGG

Glögg is a wonderful hot drink, also known as gluhwein, mulled wine or hot, spicy wine. It´s “allowed” to drink it all through December. Warms your heart and soul! It´s preferable served with almonds, raisins and gingerbread cookies.

  • 1 bottle of red wine (cheap)
  • 1/4 – 1/2 cup (0,5 – 1 dl) vodka (not spicy)
  • 5 – 20 pcs of cloves
  • 1 large teaspoon of cardamom seeds
  • 2 – 4 pcs (sticks) of cinnamon
  • 1 – 2 pcs of ginger
  • Peels from half a lemon
  • 1/2 – 1 cup of sugar
  • 1 large teaspoon of vanilla suger

Crush cinnamon and cardamom. Peel lemon. Put all spices + peels in a glass jar with the vodka. Cover. Leave over night. Strain the vodka, toss the spices. Mix the now spicy vodka with wine and sugars.

Heat all ingredients in a large kettle until steaming hot. Do not boil! Stir and taste. If not sweet enough, add sugar. If too sweet, add vodka and wine.

Serve with peeled almonds (or just chop them up) and raisins, plus of course ginger bread cookies.

The Glögg will be even spicier and gets a fuller taste if you bottle it and leave it for a week. You can also leave out the vodka if you wish something with less alcohol.

Posted in Recipies | Leave a comment

Enabling curl on XAMPP

You will need to change all of the following files in order for XAMPP to accept the Apache configuration setting for PHP.

XAMPP curl PHP enabling

Posted in Developer-stuff | 68 Comments

RAW Workflow (Canon+Mac)

Finally after months of experimenting with settings, color profiles, photo management and manipulation software (including, of course, Adobe Camera Raw as well as Phase Capture ONE Pro) I realized all of this is unnecessary.

Shoot in RAW. Then use Canon’s Digital Photo Professional to tweak the photos. It works non destructively (just like Aperture) and saves all the Raw manipulations in Canon’s CR2 Raw files. When done, export these tweaked and perfect RAW Photos into JPEGs and import into iPhoto for nice previews, slide-show and fast photo management anyway.. Then import the CR2 Raw files, which served as the basis for those JPEGs you just exported out of DPP.

This way you have all in iPhoto, the Raw files which you can still tweak and change in DPP at a later date and the JPEG reviews for slideshows, CDs, websites, whatever…

So easy. So cheap. Just a little open-mindedness and good will. :)

Posted in Photography, Software | 3 Comments

Microsoft Word just doesn’t get it

Microsoft Word - Delete a pageI mean, I love Word, but heck, their help assistant, no matter how cute and beautiful, just doesn’t get it!

Explanation: There doesn’t seem to be a way to delete a single full page from an MS Word document…

Posted in Software | 1 Comment

Canon 18-55mm vs. 50mm 1.4

Canon 18-55mm vs. 50mm 1.4 comparisonI’ve compared the two lens for those who are interested in the depth of the difference between the sharpest and least sharp lens for an EOS digital. It may help some avoid buying the standard kit lens, and for others prove as a good example that the kit lens may be just enough for their needs.

Please click Canon 18-55mm vs. 50mm 1.4 comparison in PDF to view the document. The comparison is provided as is and is as good as the amount of time and effort which went into it. Cheers!

Posted in Photography | Leave a comment

Mac OS on Intel?!

Mac Intel - It's true!The news on Mac OS being developed in parallel to run on Intel in addition to the PowerPC processor stunned me. I can’t even be ashamed for not foretelling that despite the rumors, because a completely different processor architecture supported for 5 years just ‘in case’? That just doesn’t make sense! Apple is fairly small and 5 years ago had enough work just with keeping it alive and persuading people to jump on its new OS for which there was very little support and close to no applications. Hardly a situation to run a parallel development of this untested OS for Intel ‘just in case’!

I guess I’m a bit disappointed, too, to hear the famed RISC processor to go from Apple, from Macs. Intel is just ubiquitous, no frills processor. But it works and works for less money than IBM’s G5, I guess. Consumerism may be part of the death pill that PowerPC received. Afterall look at the 3G iPod transformed into an uglier 4G with no transparent red underlit touch buttons. It went from a specialty product, from an ultra cool, if not the coolest at the time, gadget, to an ordinary consumer product that serves the purpose.

Nevertheless, events are a stroke of a genius from the strategic market point of view. Steve Jobs just never stops surprising us…

Posted in Hardware, Software | Leave a comment

BlogThis one click publishing

PimpMySafariFinally I found the link to BlogThis. It’s bookmarklet, a pretty active bookmark that can be added to any browser. Click Blogger Help : What is BlogThis! ? to find out how to ‘install’ it. :)

Yesterday I found PimpMySafari, a very neat page with helpers, plugins AND bookmarklets for Safari. If you get a hold of the basic javascript variable passing, it’s easy to create new ones, too!

Posted in Software | Leave a comment

Zepter–Stainless, yet rusty! :) Rostfrei, doch gerostet.

ZepterDon’t take their word for it. Whatever is written and sold may still not hold.Writing ‘rostfrei’, stainless in German, did not help much to keep this knife from developing rust. This photo is a nice contrast between advertising or packaging and reality.

Posted in Uncategorized | Leave a comment