Archive for the ‘Uncategorized’ Category

How to find a string in various files

Friday, November 14th, 2008

In a linux terminal you can use the following command to find a specified string in various files:

mihai@mvis:proj$ find app/ | xargs grep Zend_Debug

The results will be something like this:

app/admins/controllers/AclController.php: Zend_Debug::dump($acls);
app/models/Acl.php: Zend_Debug::dump($acls);

How to swim

Wednesday, August 20th, 2008

Pana vara asta nu intrasem niciodata intr-o piscina olimpica sau intr-o apa care sa fie mai adanca decat inaltimea mea. Vara asta insa mi-am luat inima-n dinti si-am incercat. Dupa ce m-am obisnuit cu apa am ajuns intr-un punct in care nu mai stiam cum trebuie sa-mi misc mainile, cum trebuie sa respir, cum se dau corect din picioare. Noroc cu youtube. Am gasit 4 video-uri, care pe mine m-au ajutat foarte mult. Vi le recomand!

(more…)

Lenovo, shipping process and customer support

Tuesday, July 8th, 2008

Short story

  • I ordered the laptop on 06/11/08.
  • The initial estimated ship date: 07/02/08.
  • In around one week they told me that my laptop will be shipped on 06/28/08.
  • After 06/28/08 I found out that my new shipping date will be in the week of 07/07/08 or 07/13/08.
  • On 07/03/08 the shipping date is updated on Lenovo website to 08/06/08.
  • On 07/03/08 I cancel the order.
  • After I canceled the order, the laptop is shipped (on on the same date: 07/03/08).
  • The laptop was delivered by UPS on 07/07/08 and it works properly.

(more…)

Software-ul liber și microsoft

Thursday, May 22nd, 2008

În data de 24 mai 2008 Grupul pentru software liber trebuia să țină o prezentare în cadrul Concursului de informatica aplicată (etapa națională). Subiectul prezentării era avantajele softwarelui liber și ale sistemelor deschise în educație. La această competiție printre sponsori este și microsoft. Ei bine, microsoft a cerut să se renunțe la prezentare altfel renunță ei la a mai sponsoriza evenimentul. Normal, Inspectoratul Județean Cluj a ales banii, iar prezentarea s-a anulat.

Mai multe detalii în postul publicat pe softwareliber.ro

The Zen of Python

Thursday, April 17th, 2008

>>> import this

The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one– and preferably only one –obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea — let’s do more of those!