Khalil Majdalawi's Blog Web development,Technology,Games and more…

12Apr/100

Dante’s Inferno

Just finished playing this game , check this awesome ending

EA refused to sell it in ME , after playing it i think they did right decision , cuz if they did they will face more than such acts



but overall this game rocks , i will start playing GOW and will see which is better ,

Update: thanks to friend and google it appears that the protest above just an EA publicity stunt , well they have balls to do such thing source

Tagged as: No Comments
31Dec/090

How restore a MySQL .dump file

i always forget how to do it so here it is to remember :)

mysql -u<user> -p<pass> databasename < db_backup.dump

Tagged as: , No Comments
5Oct/095

Delete .svn folders recursively using command line

some times i work on small projects with friends and we use Subversion to track and store code changes, collaborate, and share project files so once we finish we usually upload it somewhere by copying the whole project folder so i face that subversion makes folder inside each folder in the project called ".svn" and that take time to remove manually and unnecessary size to upload
so i run a command inside the project folder to remove that folders recursively before upload.

Run this:

find . -name .svn -exec rm -rf {} \;

4Jul/093

How to get client MAC address in PHP

<?php
exec('arp '.$_SERVER['REMOTE_ADDR'],$user_mac);
echo substr($user_mac[1],strpos($user_mac[1],':')-2, '17');
?>

Note : this technique only works on local area networks with linux based server and its impossible to get mac address in php over internet

Tagged as: 3 Comments
2Jul/092

windows 98 still alive

today i was shocked as my daily blog check, i noticed someone or "something" is actually still use windows 98 & IE5 WTF ?! this person "zombie" should be jailed of illegal use of internet or send him back to hell .


traffic_from_win98


i wonder if there any version of firefox for windows 98 he could use?!