Print-screen (screenshots) in Mac OS X
Keyboard shortcuts Command-Shift-3: Take a screenshot of the screen, and save it as a file on the desktop Command-Shift-4, then select an area: Take a screenshot of an area and save it as a file on...
Keyboard shortcuts Command-Shift-3: Take a screenshot of the screen, and save it as a file on the desktop Command-Shift-4, then select an area: Take a screenshot of an area and save it as a file on...
Here is an article I just read, o-la-la - what a scandal... The most funny thing it how a simple setting is hidden in the menus :-) Apple Has Quietly Started Tracking iPhone Users Again, And It's...
Actually it is no so easy to restart Postfix in Mac OS X 10.8 Mountain Lion like in Linux :-)However you can restart Postfix by plist unload / reload: sudo launchctl unload...
After upgrading to 10.8.2 I have got a problem with adding a new entry into hosts file: the update was recognised only after system restart. But a more easy solution was just to flash DNS cache!...
So, the task is to get duplicate records from a MySQL database. The easy way: SELECT COUNT(*), column1, column2 FROM tablename GROUP BY column1, column2 HAVING COUNT(*)>1; More complex case: shows...
There is an error while sending mail in Mac OS X Mountain Lion 10.8:send-mail: fatal: chdir /Library/Server/Mail/Data/spool: No such file or directoryTo fix just run in terminal: sudo mkdir -p...
Another (and more easy) way to change text in multiple files is to use grep: grep -lr -e 'oldtext' * | xargs sed -i 's/oldtext/newtext/g' or to use PERL: perl -p -i -e ’s/oldtext/newtext/g’ *
Just after I posted this article the second more easy solution has been found. Here it is:Find (search) and replace text from command line in multiple files (Linux) #2When you are working on the...
After file downloading a ZIP file with Safari this file is unzipped automatically. The original ZIP file appears to be deleted. Not so good!To fix this behaviour just go to...
In case of date format checking in PHP just use this function: function checkDateFormat($date) { //match the format of the date if (preg_match ("/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/", $date, $parts))...