Well, Breathe deeply! UBUNTU is here . if you are one of the Ubuntu users you know what I say. the ubuntu roadmap is really clear . you get the promotion! a proper way for geeks.
somethings unrelated : hectic days come up , I am so confused , depressed . I should find new ways in my life , I am gana change my job . when i fell the system do not need me or i can not promote in this system , there i no way except quit !
Well, if you use Linux or other none Windows OS stuff ! you do not need to read it,because you are on the best shape! ,if you still using this OS and love MS productions you do not need to read it . but if you use Windows and should bear it for special reasons ,so use these tools and make it less painful :
0.Internet Explorer = MozillaFirefox First thing I install on a fresh Windows XP. Simply the best Internet browser. Ever!
1. Windows Explorer = ExplorerXP Tabs, groups and a toolbar with only the useful things. The way explorer should have been.
Last week I had an email from Blaise , the administrator of openmaniak.com - this site is about OpenSource software and tutorials in lots of languages - he asked me via email to translate the phpsyslog-ng tutorial to Persian and I eagerly done it . you can find the Persian translation in this address .
I ask all of my friends to help me to revise it and tell me the problems of translation ( it`s full of them!).
oohhhhh ,I forgot to tell you what it is ! ” Phpsyslog-ng is a web interface based on a php script that permit to read the logs generated by a local server or remote machines. The logs are first sent from the local or remote machines to a log collector named syslog-ng and then forwarded into a mysql database.”
(1) Don’t change the permissions
(2) back up your data
(3) keep it simple, stupid
(4) read the fscking manual
(5) don’t fsck with package management
(6) don’t type anything you don’t understand
(7) always have a boot floppy or CD
( read your log files
(9) the FIRST error is the one that counts
(10) don’t leave your root shell until you TEST your changes
(11) don’t be root when you don’t have …
Here there is an easy way to download Youtube videos using wget. of course you can do it by some handy Firefox extensions but as i said before do NOT forget command prompt power:
First thing we need is the video ID which we are going to get using also wget together with grep.
First locate the page of the video you want to download, I will use for this example one showing compizfusion in action.
There are lots of applications with user friendly GUIs to copy your favorite websites and offline browsing , but i want to introduce my old and light Linux command “wget”:
as a computer expert it is your duty to find the ways not to consume system resources , so why not using wonderful short Linux commands to handle our job; well just move your fingers gently on keyboard :
wget www.hisitech.wordpress.com -k -c -r -p
Ok, it will do the task perfectly , changes and localizes links , saves images on your hard disk, what do u want more?
1. If a method can be static, declare it static. Speed improvement is by a factor of 4.
2. echo is faster than print.
3. Use echo’s multiple parameters instead of string concatenation.
4. Set the maxvalue for your for-loops before and not in the loop.
5. Unset your variables to free memory, especially large arrays.
6. Avoid magic like __get, __set, __autoload
7. require_once() is expensive
8. Use full paths in includes and requires, less time spent on resolving the OS paths.
9. If you need to find out the time when the script started executing, $_SERVER[’REQUEST_TIME’] is preferred to time()
10. See if you can use strncasecmp, strpbrk and stripos instead of regex