Category: life

Variable Number of Nested For Loops

An old problem that came to my head a couple of days ago. I solved it as an excersive in Fortran class about 25 years ago, my current solution is: $lbound = 1; $ubound = 4; $loops = 3; $numbers = array(); for($i=1; $i=1; $l–) { $numbers[$l]++; if( $numbers[$l]>$ubound ) { $numbers[$l] = $lbound; } […]


This month I started a new collaboration with an Indian partner, SEAES (p)ltd. A new player in Indian e-commerce. They had installed cs-cart multivendor version and I was called to build some add-ons and act as the CTO of the site. Seems an exciting opportunity to expand and exploit my knowledge of e-commerce and business […]

WordPress notes

Tinymce extra buttons wp-contents/themes/[active_theme]/functions.php function enable_more_buttons($buttons) {$buttons[] = ‘fontselect’;$buttons[] = ‘fontsizeselect’;$buttons[] = ‘styleselect’;$buttons[] = ‘backcolor’;$buttons[] = ‘newdocument’;$buttons[] = ‘cut’;$buttons[] = ‘copy’;$buttons[] = ‘charmap’;$buttons[] = ‘hr’;$buttons[] = ‘visualaid’; return $buttons;}add_filter(“mce_buttons_3”, “enable_more_buttons”); Excerpt with tags wp-includes/formating.php in function function wp_strip_all_tags($string, $remove_breaks = false) comment line around 3759 : $string = strip_tags($string);

My computers in time.

Today i realized that i am programming for maybe more than 25 years (still have gw-basic printouts) and i started thinking the machines i owned and special ones i worked on. So the story starts around 1985 or something: Sinclair ZX-Specturum +2 Euro-PC (intel 8088, single 3.5″ floppy) – 1989 Cordata (intel 8088, 2 floppies!!) […]

In Praise of Scripting

“…it permitted rapid development, often regarded as merely “rapid prototyping,” but subsequently recognized as a kind of agile programming….” “…Proper and professional software engineering supposedly permits managers to level the playing field and extract considerable productivity from less talented and less motivated programmers. This makes software productivity a commodity, and programmers become disposable and exchangeable. […]


Ηθελα να αντιγράψω 500GB ταινίες από τον σκληρό Η στον F, μετά από διάφορα αστεία με την αντιγραφή των windows όπως βάζω να αντιγράφει στις 8:00 το πρωι και φεύγω, και το μεσημέρι βλέπω ότι από το πρώτο αρχείο λίγο μετά αφού έφυγα να περιμένουν τα windows να πατήσω Retry or skip!

Κηφηνείον «Η Ωραία Ελλάς»

Κηφηνείον «Η Ωραία Ελλάς» του Σαράντου Καργάκου, Συγγραφέως – Φιλολόγου – Ιστορικού

Ακούω ότι το μεγαλύτερο σήμερα πρόβλημα των νέων μας είναι η ανεργία. Διαφωνώ. Εδώ και τριάντα χρόνια είναι η …εργασία. Ο νέος δε φοβάται την αναδουλειά, φοβάται τη δουλειά.

Memory leaks in Symfony2 Doctrine EntityManager

must gather this info for future reference. Critical for migrations, batch updates, long jobs wait for it….