Mysql not found by PHP
In the middle of a Drupal install on my localhost I received the following error
No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) i…
2AM and in need of a quick fix I just created an alias in the location PHP was looking for mysql.
1234 mkdir /var/mysqlln -s /tmp/mysql.sock /var/mysql/mysql.sock
Installation and Setup of Subversion on Mac OS X
After finally getting round to setting up version control for my personal sites I thought i’d record the process of installing subversion on my Mac and setting up the repositories for future reference. Continue reading “Installation and Setup of Subversion on Mac OS X”
Cool Stuff: Little Printer
Saw this video floating round on Twitter and had to blog, this looks like a great idea – depends how much it costs though obviously. Check out the website: bergcloud.com/littleprinter
Missing TortoiseSVN Icons on Windows
Unfortunately I have to work on a Windows machine at work, which leads to all kinds of unecessary problems, today’s being that the icon overlays for my files using TortoiseSVN have disappeared.
After putting up with the missing icon’s for a week, I discovered the reason for their disappearance was due to me installing Dropbox on my machine. Continue reading “Missing TortoiseSVN Icons on Windows”
TortoiseSVN Upgrade Breaks Subversion in NetBeans 7.0.1
After updating my version of TortoiseSVN to the latest 1.7 version, and upgrading the working copies of each of the branches I have on my local machine to 1.7, I was greeted with the an error message in NetBeans that my SVN client wasn’t the same as the files I was trying to work with. Continue reading “TortoiseSVN Upgrade Breaks Subversion in NetBeans 7.0.1”
jQuery UK 2012: Oxford, UK 10-FEB-2012
The first jQuery conference to be held in Europe, and it’s coming to the UK.
Speakers announced:
Todd Parker
Paul Irish
Jörn Zaefferer
Addy Osmani
Ralph Whitbeck
Doug Neiner
Dion Almaer
Ben Galbraith
Haymo Meran
Christian Heilmann
Replacing accented character with it’s standard character in PHP
When writing a function to save audio files with a user friendly filename , as well as a regex to remove any unwanted spaces and punctuation, I needed to replace any accented characters with their standard format.
e.g If I was saving a Beyoncé album I needed the ‘é’ in her name to be replaced with an ‘e’.
The following works perfectly:
iconv("utf-8","ascii//TRANSLIT",$filename);
Forbes Magazine Cover Profile On Dropbox
WordPress: curl_setopt() error when installing plugins on 1and1 host
When trying to install/activate plugins on my WordPress site after having to reset them following a host change, I received the following error
Warning: curl_setopt(): supplied argument is not a valid cURL handle resource in ….
This turned out to be an issue with my 1and1 hosting, and how they configure their servers.
To solve the problem I added the following to my .htaccess file:
123 AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php