Skip to content

Howto - lambda, anonymous functions (or closures) and aspect oriented programming

What a day, while trying to concentrate on task "digging in into Zend Framework 2" (and this task isn't that easy when manufacturers are setting up a drywall near your desk), i found some exiting pages about "anonymous / lambda functions" and "aspect oriented programming".

Lambda, anonymous function or so called closures are functions that are created "on the fly" are available since php 5.3. Since the upcomming zend framework 2 is using them as often as he can, you have to deal with them - so why not take some minutes and learn about them? Nice to have, php.net have a howto about them. But i found an even better "how to" on the web. This how to is written by Fabien Potencier and after reading and trying you are feeling much more comfortable by using them.

Last but not least, when i try to understand the event mechanism in the framework, there was the name "Aspect Oriented Programming". Also for this, another webpage can help you to understand what it is all about, try this blog entry.

Web - Brüssel bei der Vorratsdatenspeicherung in Erklärungsnot

Die EU-Kommission fühlt sich in Sachen Vorratsdatenpeicherung von den Mitgliedsstaaten nicht ausreichend unterstützt. Brüssel beklagt in einem Bericht, dass nur elf von 27 EU-Ländern Daten geliefert hätten, die einen Mehrwert der umstrittenen Maßnahme nahelegten. Man habe daher mit der Wahrnehmung zu kämpfen, dass die Vorratsdatenspeicherung für die öffentliche Sicherheit und die Strafverfolgung wenig bringe. [...] So bewahren Diensteanbieter auch Informationen etwa zu Chats, Instant Messaging oder Filesharing auf, obwohl diese größtenteils nicht zu den von der Direktive erfassten "Verkehrsdaten" zählen. Abgrenzungsschwierigkeiten gibt es ferner beim Mailverkehr, wo es sowohl die klassische E-Mail als auch webbasierte Services gibt. Hier zeigt sich, dass Inhalts- und Verbindungsdaten nicht klar zu trennen sind. [...] Zugleich weiß sie von andauernden Forderungen von Rechteinhaber, die Vorratsdaten auch zur Verfolgung von Copyright-Verstößen freizugeben. Andererseits sitzen Brüssel die Datenschutzbeauftragten im Rücken, die schon jetzt eine "schleichende Ausweitung" der Richtlinie fürchten.
Quelle

Arrow in the knee
fällt mir dazu nur ein ;-)

Tool - Create Multiboot USB Stick - windows linux

Since the capacity of usb sticks are raising and raising, it would be a perfect deal to have "one usb stick for all live operation systems".
For that reason, the boys and girls from sardu have created a beautiful windows tool for you. It is so simple and quite powerful that you just need to download, use and donate to it!

pendrivelinux.com sarducd.it

Wait, you are already on the right os side with the cookies and also want to have a tool like that?
Try to use liveusb.

VI/VIM - Search

date: 111025 search

:set [ic|noic]
sets globaly the search to ["ignore case"|"not ignore case"] (not to be or be a case sensitive searcher ;-) ).
%s/myMixedCaseWord/ReplacedWord/gi
let you search/replace with ignored case
/thIsISmyCaseInsensitVSearch\c

searchs for your term with ignored case

Links yolinux.com - tutorial - vim vim.wikia.com

date: 111229 search and replace

:$rs/searchterm/replaceterm/$a
$r (the range) can be: % - the whole file 23 - works on line 23 $ - nothing, only for current line. $a (the argument) can be: g - whole line i - be case insensitive I - be case sensitive c - commit every change [y|n] $ - nothing, only first searchterm will be replaced. tuxfiles.org