in WordPress, we have Media Library as a utility to manage our uploaded files , that’s good for us to see all attachments there, it also allows us to remove multiple files at one – cool! . We don’t have such tool in Redmine , so i wrote a plugin for that purpose .
Tag Archives: Mac OS X
MySQL general error – 2006 MySQL server has gone away
Does this error message scare you ?
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
Today we will take a look at it and find ways to deal with it đ . after investigating the issue and google it online, i founded two most common reasons (and fixes) for the MySQL server has gone away (error 2006) are:
Unix – find more SSH power with ssh config
Do you want to use multiple key pairs for github and servers ? Ever wondered how people just type ‘ssh myserver’ and it automagically connects ? you will know some cool methods after next few minutes
Mac OS X – Quickly switch between windows of an application
Normally, to switch between windows, we use ‘Window’ menu on the menu bar, but you can do it quicker using this hot key (keys combination)
â + ~
yes, press Command button and tilde button togetherÂ
Unix – new user strange shell
I faced this issue when i tried to create a new user on Ubuntu server, new user was given the Bourne shell rather than the Bash shell, this is a basic shell located in /bin/sh, and it looks boring, you won’t be able to use auto-completion with such shell. in this article, i will show you how to change default shell of an unix user.
Unix – Recursively chmod only directories or files
Have you ever come across the problem of needing to chmod many directories and sub-directories, but you donât want to touch any of the files? Maybe itâs the exact opposite, or you need to recursively change the permissions on only files with a specific extension. If so, this article is for you
To change permission of all directories to 755, execute this command in terminal
Mac OS X – Completely disable Dashboard
Some people have claimed memory or performance problems with Dashboard. In my case, I just don’t use it, and dislike having applications running that I don’t use or need.
To disable Dashboard- type or paste the following exactly into the Terminal window:
Mac OS X – Homebrew, the missing package manager
Homebrew describes itself as âThe missing package manager for OS Xâ, which is a pretty apt description. The program is a written in Ruby and it allows users to download as well as install packages from the command-line with ridiculous ease.
Mac OSX – clean duplicate entries in ‘open with’ menu
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/\ LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local\ -domain system -domain user
All you have to do is copy and paste this into Terminal and run it⊠(note: it takes a little bit of time for it to run so be patient)
Relaunch Finder (control+option+click on Finder icon in the Dock)âŠ
Ta-da! The duplicate or old items are now gone!
Compiling latest version of PHP on Mac OS X
Mac OSX has a lot of Unix utilities, they’re very useful. You can start using many of your favorite Unix/Linux application out-of-the-box. But when it come to PHP, it’s not as good as PHP on Linux, What you have is an outdated version and you don’t have new features and performance of latest PHP .In this article, i’ll show you how to upgrade php on your Mac to latest version.