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 {} \;
Khalil Majdalawi Linux, Web Development commands, Linux, subversion
<?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
Khalil Majdalawi Internet, Linux, PHP, Web Development PHP
Mount ISO File
First you need to make the directory to put the ISO file into using the following command
sudo mkdir /media/isodir
Then use following command
sudo mount your_image_file.iso /media/isodir/ -t iso9660 -o loop
Now you should have your iso file mounted, and accessible from your desktop.
Unmount ISO File
Just use following command
sudo umount /media/isodir
Khalil Majdalawi Linux Linux, ubuntu
For Debian use
sudo a2enmod rewrite
For Windows
- Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)
- Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so
- Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.
restart your apache service and you are cool to go
Khalil Majdalawi Internet, Linux, Web Development, windows apache
Net Applications, a Web site analytics company, just published their April 2009 Web users survey, Market Share, and they found that “Linux usage share on client devices has surpassed 1% for the first time and we still have 99% to go and i think it can make it , thanks to some powerful distributions like Ubuntu,Fedora and OpenSUSE.

Khalil Majdalawi Linux fedora, Linux, market shares, opensuse, operating systems, ubuntu