Facebook link: https://www.facebook.com/events/16764599499/
Ftp using curl
This post just a reminder for me, as every time I need it, I look through the manual for options, to send a file through FTP using the command curl
$ curl ftp://server/Path/To/Destenation -T FileToUpload -u username:password
I just keep forgetting it, hope it would help someone else 🙂
Call me Mr. Professional
Well, yes, sometimes I don’t act in the best way I can, but sometimes I think people don’t know what does the term Professional means. Well, almost everyday I get a call from someone, who has a job for me, either a free lance or a position in some company (and I don’t know where the hell do they get my phone number, is it published somewhere I don’t know about), and I make it very clear that I’m not interested, and of course if I didn’t answer, they try again and again and again. Usually these phone calls ends with a request that if I know someone who is interested to let them know, and actually I do that. One of these guys, had a project, and I made it very clear that I’m not interested, but he kept bugging me trying to convince me, and of course he made that request, and actually I gave his contact to another 2 guys. He kept calling me asking about contacts and stuff, and for almost 2 weeks, I kept ignoring him, until today, he left me a message on my voicemail, telling me how much unprofessional I am for not returning his calls and ignoring him. Well I don’t know, maybe I’m wrong, but isn’t it your job to look for the people you want, aren’t you the one who is in need for them, not me, and do you think you “Mr. Professional” that it’s professional to let people who made it clear to that they are not interested, by wasting their time trying to make them do your job. I don’t know, but what does this sentence means, “I AM NOT INTERESTED”, cause if it means any other thing than it sounds, maybe I should change it, use another wording or something.
And Salam Won The Jordanian Band Competition
Well, at the end of a nice playing of 3 bands, the judges voted Salam to be the winner of the Jordanian Band competition, So I would just like to say congratulations to Salam, and his band.
if you want to listen to Salams wor, you’ll find some here http://www.facebook.com/pages/SALAM/7372706178
Kazak Ya Watan – كازك يا وطن
Shoo Hal Ayam will be playing live on Radio Al Balad 92.4 with Yousef Ghishan talking sarcastic sketches about poverty corruption,…, and the raise of prices.
you can also listen to the show on
www.ammannet.net
شوهالآيام سوف تقدم عرضا على راديو البلد٩٢.٤ مع يوسف غيشان، يتخلل العرض سكيتشات ساخرة عن غلاء الأسعار والفساد. يمكن الإستماع للعرض على الموقع الآتي
if the site didn’t work with you, you can open the direct streaming url to your audio player (http://wma.str3am.com/ammannet)
Saturday 1st, March @ 20:00 (18:00 GMT).
Enjoy.
Good Old sscanf
Working in PHP, all this time, and the big uses you find in regex, and all the string processing we need to, could make us forget our old friend that can easily solve a problem.
sscanf, do you remember it, well, for quite some time I didn’t, until I saw it in a random code I found online, so this post is a reminder that this function exists.
An example, if we have a date, lets say coming from a Mysql DB, (ofcourse you can use strtotime, but sometimes it has it’s limitations) and you want to get the year, month, day, hour, minutes, and seconds, and you have it in a string, you can parse it with some splits, but 1 call of sscanf can do the job.
$date = ‘2007-05-18 22:15:03’;
sscanf($date,‘%d-%d-%d %d:%d:%d’,$y,$m,$d,$h,$i,$s);
var_dump($y,$m,$d,$h,$i,$s);
and thats all.
PHP5 CAPTCHA
I’ve written a small CAPTCHA library, in an OO style, and I love to share it with you
http://alaaibrahim.github.com/php5captcha/
How to scare a person next to you in an airplane?
1. Take out your laptop from the bag;
2. Open it slowly and calmly;
3. Turn it on;
4. Make sure that the moron next to you is looking at your screen;
5. Access to the internet;
6. Close your eyes and raise your head towards the sky;
7. Take a deep breath and click on this link: http://www.thecleverest.com/countdown.swf
8. Watch carefully the expression on the moron’s face!
Occupation 101
a must see
وطني حبيبي الوطن الأكبر
For those who remember.