Posts

Showing posts from July, 2014

MySQL Command Lines

CREATE USER 'abc'@'localhost' IDENTIFIED BY '1abc'; GRANT ALL PRIVILEGES ON abc . * TO 'abc'@'localhost'; FLUSH PRIVILEGES; To Run BackUp From Command Line mysql -u root -p password abc_database > abc.sql To Run Import From Command Line mysql -u root -p password abc_database < abc.sql MAC MySQL Location for XAMPP /Applications/XAMPP/xamppfiles/bin/mysql xxxx

CKEditor Messing with Element Classes Upon Saving

http://stackoverflow.com/questions/15659390/ckeditor-automatically-strips-classes-from-div Works the treat! I couldn't give a thumbs up as I didn't have enough reputation so I'm just reposting it here for myself in the future and also for those who's looking for it. :P You just need to place them in the config.js file of your editor. Using CKEditor version 4.4.3 Also had to fix this for Drupal config.inc. config . allowedContent = true ; if (preg_match('@version:[\'"](?:CKEditor )?([\d\.]+)(?:.+revision:[\'"]([[:xdigit:]]+))?@', $line, $version)) {

My cute doggie

Image
To cute. getting ready for bedtime

Vodafone Failed

Image
Clearly there is some issue with Vodafone and having a stable network. Guess I'll have to move back to ALDI with their Telstra 3G Network.

Regex for PHP

$output = preg_replace('/[^A-Za-z0-9-]/', '', $input); I seem to always have an issue for this. Perhaps this should help me quickly without having to revert to Google all the time. Not that I don't like it but sometimes when your internet is dial-up speed it makes a BIG difference

Google Ingress Level 8 Achievement

Image
Just after deploying my resonator. Took me just two weeks to level up from Level 7.  Now I can finally start farming for L8's

XAMPP PHP PECL OAuth MacBook Pro Retina Maverick

Here XAMPP Installation Missing the php.h file which can be fixed using the following command:  xcode-select --install It is the mac xcode command line developer tools Who knew that xcode carries so much weight into XAMP Mac installations. Tried it on my local macbook pro and it was another mad house. Keep getting issues with php.h missing. What I changed was my bin dir for pecl configurations. sudo PECL config-set bin_dir /usr/bin It worked like a charm. Finding that there is an issue installing OAuth with PHP 5.5 and above running XAMPP 1.8.3-4 I had to downgrade to XAMPP 1.8.2-5 running PHP 5.4.27 and it worked like a charm. Reason was I was having issues saying mismatch builds. 20121212 and 20010525 between the oAuth and PHP. For some reason the oAuth version had to be newer than the PHP build. I tried compiling from source but it didn't work either. The config used for the source code build was: sudo ./configure MACOSX_DEPLOYMENT_TARGET=10.9