盛唐飞天

By , September 20, 2015 12:17 pm

Feitian_2015_09_20

 

盛唐飞天 (100 x 70 cm)
蒋清野
2015年09月20日

有一些事情,我总觉得自己没有这方面的天赋,所以永远都学不会。譬如唱歌,又譬如画画。小时候,唱歌总是跑调,图画课也混得很惨。初中毕业之后,没有了音乐和图画课,便再也没有动过这方面的念头。

最近生活里发生了一些重大的变故,也想借这个机会彻头彻尾地改造一下自己。于是开始学家里娃娃们唱的歌,也开始尝试着学习画画。这一张《盛唐飞天》,是按着张大千的画册临摹的。老实说线条的确蛮粗糙的,细节也处理得不够好,但是看在这是自己生平第一张画的份上,我已经觉得挺满意了。

再过几个月就要过40岁生日了,但是我觉得我还没有老,还能够学习新的东西,还能够彻底地改变自己。

 

SSL Connection to RDS Instances in phpMyAdmin

By , September 1, 2015 6:56 am

Setting up SSL connection between phpMyAdmin and the RDS MySQL server is quite straight forward. Below is a demo setup on Amazon Linux with phpMyAdmin 4.4.14. The web server is Apache with PHP 5.

First of all we download and unzip phpMyAdmin. At the same time we download the root certificate for RDS to the phpMyAdmin folder:

$ cd /var/www/html
$ wget https://files.phpmyadmin.net/phpMyAdmin/4.4.14/phpMyAdmin-4.4.14-all-languages.zip
$ unzip phpMyAdmin-4.4.14-all-languages.zip
$ cd phpMyAdmin-4.4.14-all-languages.zip
$ cp config.sample.inc.php config.inc.php 
$ wget https://s3.amazonaws.com/rds-downloads/rds-ca-2015-root.pem

Now edit config.inc.php, using the following configurations for the “First server”, which is your RDS instance.

/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'instance-name.xxxxxxxxxxxx.ap-southeast-2.rds.amazonaws.com';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['ssl'] = true;
$cfg['Servers'][$i][''] = '/var/www/html/phpMyAdmin-4.4.14-all-languages/rds-ca-2015-root.pem';

You will probably need to restart httpd to make things work.

$ sudo service httpd restart

At this point, you can use phpMyAdmin to login to your RDS instance. After you login, use the following SQL query to verify the SSL connection:

show status like 'Ssl_cipher';

If you see the following result, the SSL connection is successful:

Variable_name 	Value 	
Ssl_cipher 	AES256-SHA

Panorama Theme by Themocracy