Sper sa fie cu folos …

Ziua 1 – Budapesta, Paris

August 19th, 2010 Posted in Diverse, Excursii | No Comments »

Am plecat la ora 7:00 cu shuttle-ul spre Budapesta, avionul spre Paris pleca la ora 13:00. Dupa cum urma sa aflam mai tarziu, companiei Air France I se mai spune si Air Chance. Avionul a plecat cu 30 min intarziere, sufficient ca se ne faca sa fugim prin aeroportul Charles De Gaulle din Paris si sa ajungem la poarta de unde pleca avionul spre Atlanta fix cand acestia au inchis-o cu toate ca ajunsesem cu 5 minute mai devreme de ora de decolare. Read the rest of this entry »

USA Cross Country Trip 2010

August 17th, 2010 Posted in Diverse, Excursii | No Comments »


Cross domain and Firebug

May 5th, 2010 Posted in Programare, Web | No Comments »

Just a quick note: if you are playing with AJAX calls and you see in the Firebug console the request headers but the response is empty (no headers, no content) then most probably you have a cross domain issue.

The domain and port of the server that served the page must be the same with the server that responds to the ajax request!

How to disable cache on Google Chrome

February 14th, 2010 Posted in Web | No Comments »

After searching the net a while I found this: call the executable with the arguments

--disk-cache-size=1 --media-cache-size=1

Install PHP5 Xdebug for use with Eclipse PDT on Ubuntu 8.10

May 27th, 2009 Posted in Linux, Programare | No Comments »

If you use Eclipse PDT and you want to debug your PHP code using Xdebug just do this:

1. Install xdebug

apt-get install php5-xdebug

2. Append to /etc/php5/conf.d/xdebug.ini

xdebug.remote_host=  ; if debugging on remote server, put client IP here

3. Restast Apache

/etc/init.d/apache2 restart

4.  Check to see if xdebug is working with phpinfo(). Create a php file and access it


That’s it!

Howto setup timezone on OpenWRT – Whiterussian RC2

May 23rd, 2009 Posted in Linux | No Comments »

Add in /etc/profile the line:

export TZ="EET-2EEST,M3.5.0/3,M10.5.0/4"

You can get the full list of timezones here: http://luci.freifunk-halle.net/UserDocs/TimeZones

Links:  http://forum.openwrt.org/viewtopic.php?id=2591

Find all large files on a Linux

April 18th, 2008 Posted in Linux | No Comments »

Taken from: http://snippets.dzone.com/posts/show/1491

Finds all files over 20,000KB (roughly 20MB) in size and presents their names and size in a human readable format:

find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

Perl inarray function

April 18th, 2008 Posted in Programare | No Comments »

Taken from: http://assasiner.wordpress.com/2006/12/03/is-in-array/trackback/

You can use grep for this task like this: if(grep $_ eq $string, @array)
or  if you want regular expressions: if(grep /$string/, @array)

As an example:

my $string = "in_helm";
my @array = qw/full_plate manteau boots two_handed_sword fin_helm/;
if(grep $_ eq $string, @array)
print "$string is in the array";

OpenWRT remote logging cu syslog

February 3rd, 2008 Posted in Linux | No Comments »

Daca aveti un router pe care ati instalat OpenWRT (probabil ca aveti un router Linksys) si doriti sa trimiteti toate mesajele de log la un server distant, tot ce trebuie sa faceti:

1. pe router

nvram set log_ipaddr="adresa ip server distant"
nvram commit

2. pe server
trebuie sa porniti syslog-ul cu opiunea “-r”. In cazul meu, un server Debian, am adagat parametrul syslog=”-r” in fisierul /etc/default/syslog

MP3-urile nu sunt redate bine in Flash Player

January 21st, 2008 Posted in Web | No Comments »

Lucrez la un proiect in care trebuie sa fac play, din pagina web, la un fisier mp3 generat automat. Problema este ca pe anumite configuratii acest fisier nu era redat sau era redat la viteze aiurea.

Dupa cum am gasit pe net, cauza este Flash Playerul carestie sa redea doar fisiere cu o rata de esantionare multiplu de 11.025khz si anume: 44.1khz, 22.05khz, 11.025khz.

In cazul meu solutia a fost sa folosesc lame cu urmatorul parametru:

lame --resample 11.025