Category Archives: Web

Fixed: phpMyAdmin is throwing a #2002 cannot log in to the mysql server phpmyadmin

This one had me going round the houses a bit until I the wrong permissions confirmed something to me.
Firstly the /etc/phpmyadmin/config.inc.php file is crud. For some reason this file doesn’t resemble the actual config file that you should use.
The file /usr/share/phpmyadmin/config.sample.inc.php is the format that you need for a correct phpMyAdmin configuration, so copy it to /etc/phpmyadmin/config.inc.php

Next you need to edit this config file. This isn’t the hardest of the things in the world to do if you just want the basics. You just need to edit the value for $cfg['Servers'][$i]['host']

Once you’ve done that you can then login to phpMyAdmin using your mySQL credentials and get started.
It will bitch about not having the advanced features enabled. To do this follow the blog post I did at INSTALLING PHPMYADMIN ADVANCED FEATURES ON UBUNTU

Make sure you log out and back in to pick up the changes.

Enjoy,
Mike

Windows 8 Browsers in Modern UI aka Metro Mode

browser iconsSince getting my Nexus 10 I used my laptop less and less. It largely comes out for research activities which involve a lot of switching between apps or browser windows or typing heavy activities where a keyboard is preferable to a touch screen, and I don’t lose half the screen to the keyboard.

Metro, sorry, Modern UI

I upgraded my laptop to Windows 8 not long before getting my Nexus 10. I’ve got used to most things with the Modern UI and some apps being Desktop apps, however after change Google Chrome to launch in Metro/Modern UI mode I noticed that Internet Explorer was then opening on the desktop instead of in the Modern UI. I changed this back, but then Chrome opened in Desktop mode.
Seemingly the browser that is the default browser and opens http(s) links is the one that opens in the Modern UI.

Just One Browser?

I’m very surprised by Microsoft to be so small minded to think that users will only use one browser and so will be happy with just one opening in Modern UI. As someone who does some web design and troubleshooting of html and css I regularly use the main four browsers. I seems my choice to have all with the same experience is to set all to open in the desktop mode. Surely that’s not what Microsoft wants.

Windows 8 Metro UI Pushable Button in CSS

I recently had a request to make a big green button, I decided to steer clear of skeuomorphism and to go with a flat clear design. As such I thought I’d ape the design of the Metro UI used on Windows Phones.

Here’s a link to the code I pulled together from various bits of the interweb.

http://jsfiddle.net/kEpj7/