Password Protect PHPMyAdmin portal on XAMPP or WAMP

Open Config.inc.php under the PHPMyAdmin folder in editor, try the commented options under lines 11 and 13 to achieve different password protect features.

$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
// $cfg['Servers'][$i]['auth_type'] = 'http';
// A browser based prompt
// $cfg['Servers'][$i]['auth_type'] = 'cookie';
// A web page prompt rendered in HTML
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123abc'; // Hack me!
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

Simple Ajax Example

The Javascript:


The HTML Form :

word:

The server side script (simple-ajax-example.cgi) :

#!/usr/bin/perl -w

use CGI;

$query = new CGI;

$secretword = $query->param('w');

$remotehost = $query->remote_host();

print $query->header;

print "

The secret word is $secretword and your IP is $remotehost.

";

Can WordPress slow down the updates?

Personally, I think wordpress updates too fast. It’s hard for my blog to keep up. I’m running a lot of customized plugins and my theme just don’t work with a lot of the crap. Each upgrade of the wordpress kernel takes me at least an hour to figure out where to modify so that all the functions work OK.

I’m once again up-to-date with it’s current version: 2.7. And I think I’m gonna stay with this version for a while. Happy new year!

WordPress Update & Portfolio

I’ve updated my WordPress to 2.5.1 today. Not much difference in the presentation of the front end. But major difference in the back. While upgrading, I ran into some trouble, mainly because of some old plugins and I was able to resolve them after spending a little time.

I like it very much. WordPress did a great job! :)

I’ve also added a new section to this website, my Portfolio. It contains some of the works I’ve done previously. I’m still organizing and will add more and more into it.