Apricot (sour cherry) cake

Apricot cake – prajitura cu caise (sau visine, prune, mere) This is a very common cake here which can be done using apricots, peaches, apples, cherries, sour cherries (most common), bilberries, etc. mostly fresh. It’s quite simple to make but it has a few tricks. Updated: 15-08-2008: the bilberry cake photo Ingredients 3 eggs 1 cup milk 2 cups sugar 3 cups flour 1 tbs baking powder 1/2 cup oil or melted butter 1 teaspoon vanilla extract 1/2 kg fresh fruits with no kernel if it applies to the fruit type Preparation remove the fruits kernel if it’s the case (this is the most time consuming operation, especially for the sour cherries) separate the egg whites and beat them until solid add the sugar, egg yolks, milk mix the flour with the baking powder and add to the composition while mixing it add the butter and the vanilla extract let it rest for 10 minutes while you preheat the oven mix the fruits with a bit of flour, this will help the fruits to leave too much liquid and keep part of the composition uncooked pour the composition in a pan then add the fruits on top, don’t press them into the dough, they will fall by themselfs cook for 30 – 45 minutes be careful when you test the readiness to test around the fruits....

June 28, 2008 · len

Cand doarme blogosfera?

Idea Ma gandesc de ceva timp la niste grafice care sa arate orele de maxim si de minim din blogosfera romanesca repartizate pe ore ale saptamanii. Asa ca m-am apucat de “joaca” si iata ce-a iesit. Metoda e descrisa la sfarsit. Concluzii mi se pare cool ca luni cea mai mare activitate are loc in timpul orelor de servici restul concluziilor as vrea sa le trageti voi, ce ziceti? Metoda am pornit de la lista blogurilor din harta blogosferei am parsat paginile cautand feedurile rss in <link rel=”alternate” … am obtinut o lista de 683 9915 feeduri am parsat feedurile folosind feedparser care e si responsabil pentru toate conversiile de date (fieldul updated pe care se bazeaza graficele de mai sus) am stocat intr-o baza de date toate rezultatele (am obtinut 10260 144932 de entries valide) am generat un fisier oocalc pe baza de date grupand dupa zi a saptamanii si ora in care am generat charturile de mai sus Avertizare toate datele sunt oferite “AS IS” fara nici un fel de responsabilite pentru corectitudinea lor....

June 27, 2008 · len

Koha 3 beta 2

This is the complete list of install instructions I did in order to install Koha 3 beta 2 on Ubuntu Feisty 7.10. Install zebra and yaz wget -c ftp://ftp.indexdata.dk/pub/yaz/yaz-3.0.26.tar.gz wget -c ftp://ftp.indexdata.dk/pub/zebra/idzebra-2.0.30.tar.gz tar xvfz yaz-3.0.26.tar.gzcd yaz-3.0.26 apt-get install fakeroot debhelper dpkg-buildpackage -rfakeroot -b #will give you a perl -MCPAN -e 'install Data::ICal' list of packages to install apt-get install pkg-config libxslt1-dev libreadline5-dev libwrap0-dev libicu36-dev dpkg-buildpackage -rfakeroot -b cd .. && apt-get install yaz*....

June 24, 2008 · len

fsck -y on reboot

Normally if the system reboots after a power failure the checkfs or checkrootfs scripts do a fsck -a to check the filesystem. In some cases the following happens: <br></br>/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY<br></br><br></br> (i.e., without -a or -p options)<br></br><br></br><br></br><br></br>A maintenance shell will now be started.<br></br><br></br>After preforming system maintenance, press Control-D<br></br><br></br>to terminate the maintenance shell and restart the system.<br></br><br></br>Give root password for maitenance<br></br><br></br>(or type Control-D to continue)<br></br> In normal cases you enter the root password and do a fsck of the disc to fix the errors....

June 20, 2008 · len

Working with namespaces

First when you start working with XML in flex you are completely wondered about how easy the xpath like syntax is used. However some botlenecks might occur. One of them is using namespaces. Consider the following example: <?xml version="1.0" encoding="UTF-8"?><report version="3.2.15" xmlns="http://www.len.ro/report"> <item name="user">len</item></report> First approach is to do something like: var myXML:XML = XML(event.result);trace("XML: " + myXML.item.@name); you will see nothing and start wondering what you are doing wrong. Some time later you realize it’s namespace related and you try (according to flex doc) to do this:...

June 16, 2008 · len

Loading an unloading modules

The following error appears when you load then unload and then re-load a module which contains a viewStack or tabNavigator components: TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::HistoryManagerImpl@-77d0a45f to mx.managers.IHistoryManager.<br></br> at mx.managers::HistoryManager$/get impl()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\HistoryManager.as:96]<br></br> at mx.managers::HistoryManager$/register()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\HistoryManager.as:134]<br></br> at mx.containers::ViewStack/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\ViewStack.as:649]<br></br> at mx.containers::TabNavigator/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\TabNavigator.as:504]<br></br> at mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5670]<br></br> at mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:519]<br></br> at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:639]<br></br> at Function/http://adobe.com/AS3/2006/builtin::apply()<br></br> at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]<br></br> at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]<br></br><br></br> Check here the solution: <mx:Application ...><br></br>...<br></br><mx:Script><br></br><![CDATA[<br></br> //because of http://bugs.adobe.com/jira/browse/SDK-15249<br></br> import mx.managers.HistoryManager;<br></br> private var hist:HistoryManager; <br></br>]]><br></br></mx:Script><br></br> It seems this problem is much more general and as far as I understand it it’s related to singletone problems while loading/unloading modules:...

June 16, 2008 · len

About module loading events

Choice 1 – Bad The application: <?xml version="1.0" encoding="utf-8"?><br></br><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" ><br></br><mx:Script><br></br><![CDATA[ <br></br> private function initModule(e:Event):void {<br></br> var ichild:* = myModule.child as IMyModule; <br></br> if (ichild != null) { <br></br> ichild.initModule();<br></br> }<br></br> }<br></br>]]><br></br></mx:Script><br></br>...<br></br><mx:ModuleLoader id="myModule" url="myModule.swf" <b>ready="initModule(event);"</b>/> <br></br>...<br></br></mx:Application><br></br> The module: <?xml version="1.0" encoding="utf-8"?><br></br><mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" implements="IMyModule" ><br></br><mx:Script><br></br><![CDATA[ <br></br>[Bindable]<br></br>public serviceName:String = new String("http://localhost:8080/myService");<br></br> <br></br>public function initModule():void{<br></br> <b>myHService.send();<br></br> //it will fail here!!! because myHService.url = null <br></br> //the module is loaded, not initialized<br></br></b>}<br></br>]]><br></br></mx:Script><br></br>...<br></br><mx:HTTPService id="myHService" url="{serviceName}" method="GET" <br></br> useProxy="false" resultFormat="e4x" showBusyCursor="true" /><br></br>....

May 27, 2008 · len

Remap bad keys

For a few days some my keyboard has start to make me a lot of trouble: the backspace key works 50% of the time the tab and y keys inserts a “t”. The tab might not seem so important unless you are a terminal user. Cleaning the keyboard did not do anything so in order to be able to use the keyboard I decided to remap some of the keys:...

May 16, 2008 · len

Locale files

When using flex and java in parallel the localization mechanism might be clear. One aspect which is not clear is the encoding of the properties files: Flex locale files encoding: UTF-8 Java locale files encoding: ISO-8859-1 Convertor script: ..$ cat fixUTF.sh #!/bin/bash TMP=iconv.tmp if [ "!$2" == "!rev" ]; then iconv -t ISO_8859-1 -f UTF-8 -o $TMP $1else iconv -f ISO_8859-1 -t UTF-8 -o $TMP $1fimv $TMP $1

May 13, 2008 · len

Spicy, deviled eggs

Updated 2012-01-05: These are 2 variations to a recipe I liked a lot as a child since my grandmother was doing it quite often. It is always done around easter a lot when a lot of hard boiled eggs remain in the house but any occasion is fine :) In romanian it’s called “oua umplute” which means filled eggs. Spicy eggs Preparation hard boiled eggs most commonly we use mayo but I also like to use spices blended together as a thick and very “hot” paste: mustard seeds 2 hot peppers coriander seeds 2 gloves garlic 1 green onion a bit of pickled ginger sunflower oil peal and cut the eggs in half lengthwise remove the yolk and mix it with the paste (or the mayo) with a teaspoon put the mix back in the egg serve with bread enjoy

May 10, 2008 · len