Mixing generated with mxml code

The problem this example tries to solve is the following: you have a Container component (Accordion, TabNavigator, etc.) and you wish it’s content to be generated dynamically but inside this generated content to use some content which is defined in the mxml, inside the Container. For those with Tapestry experience this behaviour is similar to the @RenderBody component. <my:CustomWrapper ...> <mx:VBox> ... </mx:VBox> </my:CustomWrapper> This is very similar to a Container definition but the VBox will not end as a child of CustomWrapper but further down in the hierarchy....

June 9, 2010 · len

Primul tort

Pentru prima mea reteta de tort m-am inspirat dintr-o reteta care-mi tot face pofta inca de la ziua mea cu mici simplificari si modificari (merci Laura). Iata versiunea, adaptata si pipeline-ata pentru ziua lui Rodiq. Tort Ingrediente 8 oua 700g frisca (naturala, de la cofetarie) o ciocolata alba de menaj (~ 750g) cocos fulgi (3 pliculete) zahar, faina, unt, praf de copt esenta de migdale, esenta de vanilie, 1/2 lamaie Metoda Primul blat am separat 3 albusuri si le-am batut bine, am adaugat 1 pahar (masura de ~ 200g) de zahar, 1 pahar faina amestecat cu 1/2 pachetel de praf de copt (un pachet parea prea mult), 100g unt topit, 1/2 pahar lapte, galbenusurile si am amestecat totul bine am copt cam 20 min la cuptor intr-o tava captusita cu hartie de copt Crema in timp ce se cocea primul blat am pus la foc mic frisca....

June 7, 2010 · len

Programmatically get the MAC address in C

This is a small example on how you can get the MAC address in C both in Linux and Windows. The example searches in fact the MAC address corresponding to a given IP address and returns it. /* * mac.cpp * Created on: May 25, 2010 * Author: len */ #ifdef WIN32 #include <stdio.h> #include <Windows.h> #include <Iphlpapi.h> #include <Assert.h> #pragma comment(lib, "iphlpapi.lib") /** * @return the mac address of the interface with the given ip */ char* getMAC(const char *ip){ PIP_ADAPTER_INFO AdapterInfo; DWORD dwBufLen = sizeof(AdapterInfo); char *mac_addr = (char*)malloc(17); AdapterInfo = (IP_ADAPTER_INFO *) malloc(sizeof(IP_ADAPTER_INFO)); if (AdapterInfo == NULL) { printf("Error allocating memory needed to call GetAdaptersinfo\n"); return NULL; } // Make an initial call to GetAdaptersInfo to get the necessary size into the dwBufLen variable if (GetAdaptersInfo(AdapterInfo, &dwBufLen) == ERROR_BUFFER_OVERFLOW) { FREE(AdapterInfo); AdapterInfo = (IP_ADAPTER_INFO *) malloc(dwBufLen); if (AdapterInfo == NULL) { printf("Error allocating memory needed to call GetAdaptersinfo\n"); return NULL; } } if (GetAdaptersInfo(AdapterInfo, &dwBufLen) == NO_ERROR) { PIP_ADAPTER_INFO pAdapterInfo = AdapterInfo;// Contains pointer to current adapter info do { sprintf(mac_addr, "%02X:%02X:%02X:%02X:%02X:%02X", pAdapterInfo->Address[0], pAdapterInfo->Address[1], pAdapterInfo->Address[2], pAdapterInfo->Address[3], pAdapterInfo->Address[4], pAdapterInfo->Address[5]); printf("Address: %s, mac: %s", pAdapterInfo->IpAddressList....

June 7, 2010 · len

Holux M-241 GPS

Read track via USB gpsbabel -t -w -i m241 -f /dev/ttyUSB0 -o gpx -F test.gpx Read track via Bluetooth Find mac: hcitool scan Scanning ... 00:1B:C1:05:XX:XX HOLUX_M-241 Bind to a serial port in /etc/bluetooth/rfcomm.conf rfcomm4 { bind yes; device 00:1B:C1:05:XX:XX; channel 1; comment "Serial Port"; } Connect the serial port: rfcomm connect 4 read track: gpsbabel -t -w -i m241 -f /dev/rfcomm4 -o gpx -F test.gpx

May 31, 2010 · len

Printre picaturi

Printre picaturi sa nu uitam de soc, e vremea pentru socata si mancare de cartofi noi. Socata Mancare de cartofi noi Comments: Webmaster - Jun 4, 2010 Please e-mail me your contacts. I have a question […](http://spottovo.ru/ webmaster@spottovo.ru)… Thank you!!!…

May 20, 2010 · len

Walk to Len to wok

Pentru cei care nu stiau, Wok to Walk e o franciza pentru niste localuri unde poti alege diferite combinatii de mancare gatita in wok in fata ta. O “reteta” dureaza cateva minute sa fie gata si e compusa in general dintr-o baza (orez sau noodles), carne, legume sau peste si sos. E o mancare asiatica rapida si ieftina, doar unul din multitudinea de restaurante asiatice pe care le gasesti prin capitalele europene....

May 16, 2010 · len

Ubuntu Lucid Lynx

There was not much I expected from the new ubuntu Lucid Lynx as I was happy enough with the existing version already. But I a good tradition and because I woke up at 8:30 this Saturday I decided to go ahead and install it on my Dell D820. The install The install went smoothly, everything was detected, installed the upgrades, the nvidia drivers and some day to day packages: mozilla-thunderbird, pidgin, emacs....

May 8, 2010 · len

asdoc pain

Running asdoc should have been a breeze. Just create an ant task which calls the asdoc executable with the given parameters and voila! Well, it was not. <target name="compile"> <exec executable="${asdoc}" failonerror="true"> <arg line="-doc-sources ${src.dir}"/> <arg line="-window-title "My Application""/> <arg line="-output ${asdoc.output}"/> </exec> </target> The task started by spilling 100 errors similar to: [exec] ...budgetImport.as(9): col: 1 Error: The public attribute can only be used inside a package. [exec] [exec] public var importing:Boolean = false; [exec] ^ [exec] [exec] ....

May 5, 2010 · len

The Attack of the Stinging Nettle

As a trekkie and a cooking fan I could not resist to this borg inspired composition based on an old recipe. Resistance is futile! Borg Nettle Cubes

April 22, 2010 · len

Salata de primavara cu cartofi prajiti

Pietele sunt sunt pline de verde si viata: salata, ceapa verde, verzituri, ridichi. E timpul pentru salata in minunate combinatii. Si ce combinatie mai interesanta decat salata proaspata cu cartofi prajiti si cascaval topit intr-o zi racoroasa de primavara. Salata cu cartofi prajiti Salata: salata, ceapa verde, ridichi, vinete si castraveti murati, cativa carnaciori, otet dulce, sare, piper si coriandru.

April 21, 2010 · len