<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-474096088304395056</id><updated>2024-08-28T15:12:50.610+08:00</updated><category term="linux"/><category term="debian"/><category term="FreeBSD"/><category term="Apache"/><category term="mysql"/><category term="install"/><category term="windows"/><category term="postgresql"/><category term="tips"/><category term="configure"/><category term="security"/><category term="problem"/><category term="ssh"/><category term="gentoo"/><category term="kernel"/><category term="perl"/><category term="python"/><category term="dns"/><category term="mail"/><category term="CentOS"/><category term="IP"/><category term="cluster"/><category term="iptables"/><category term="shell scripts"/><category term="tools"/><category term="backup"/><category term="error"/><category term="nagios"/><category term="php"/><category term="TurboLinux"/><category term="file"/><category term="java"/><category term="lvs"/><category term="master"/><category term="mysql5"/><category term="package"/><category term="scripts"/><category term="shell"/><category term="slave"/><category term="bash"/><category term="command"/><category term="cyber"/><category term="daemontools"/><category term="ec2"/><category term="php5"/><category term="postfix"/><category term="proc"/><category term="sendmail"/><category term="svn"/><category term="FTP"/><category term="log"/><category term="nfs"/><category term="proxy"/><category term="server"/><category term="sysctl"/><category term="web"/><category term="安装"/><category term="配置"/><category term="HTTP"/><category term="change"/><category term="config"/><category term="linux，Liunx"/><category term="mac"/><category term="mail servers"/><category term="openvpn"/><category term="password"/><category term="phpmyadmin"/><category term="samba3"/><category term="sed"/><category term="squid"/><category term="troubleshooting"/><category term="unix"/><category term="vi"/><category term="vmware"/><category term="优化"/><category term="密码"/><category term="AWS"/><category term="Mrtg"/><category term="address"/><category term="auto"/><category term="awk"/><category term="bsd"/><category term="mod_ssl"/><category term="ntp"/><category term="recovery"/><category term="restore"/><category term="scan"/><category term="timeout"/><category term="tune"/><category term="ubuntu"/><category term="修改"/><category term="工具"/><category term="文件"/><category term="更新"/><category term="监测"/><category term="Android"/><category term="ICMP"/><category term="JIRA"/><category term="Liunx"/><category term="MyISAM"/><category term="PDF"/><category term="Segmentation"/><category term="TCP_MS"/><category term="Tip"/><category term="accelerate"/><category term="apt"/><category term="benchmark"/><category term="cacti"/><category term="clamav"/><category term="client"/><category term="cron"/><category term="csh"/><category term="danger"/><category term="discuz"/><category term="environment"/><category term="find"/><category term="firewall"/><category term="fsck"/><category term="gateway"/><category term="generate"/><category term="ids"/><category term="ipfw"/><category term="keepalived.conf"/><category term="key"/><category term="load balancer"/><category term="lvm"/><category term="lyrics"/><category term="make"/><category term="manual"/><category term="mb_string"/><category term="p2p"/><category term="page allocation failure"/><category term="ports tree"/><category term="rebuild"/><category term="redhat as4"/><category term="reverse proxy"/><category term="root"/><category term="rsync"/><category term="s3"/><category term="sequence"/><category term="snmpd"/><category term="snort"/><category term="software"/><category term="source"/><category term="state"/><category term="tomcat"/><category term="upgrade"/><category term="url"/><category term="version"/><category term="vsftp"/><category term="yum"/><category term="zend"/><category term="中文"/><category term="串口通信"/><category term="使用"/><category term="内网"/><category term="参考"/><category term="局域网"/><category term="快速"/><category term="慢"/><category term="无聊"/><category term="服务器"/><category term="流量"/><category term="登陆"/><category term="网卡"/><category term="脚本"/><category term="ARP_IP"/><category term="BDB"/><category term="CISCO"/><category term="CPU"/><category term="CVSup"/><category term="Could Not Determine"/><category term="DoS_ICMP_FLOOD"/><category term="DoS_SYN_FLOOD"/><category term="Errno Codes"/><category term="Ethereal"/><category term="FOP"/><category term="FQDN"/><category term="Fragmentation"/><category term="Fully Qualified Domain Name"/><category term="HD"/><category term="HIDS"/><category term="Hardening"/><category term="IBM"/><category term="InnoDB"/><category term="LILO"/><category term="MS_RPC"/><category term="Memory"/><category term="NIC"/><category term="OSI"/><category term="OSSEC"/><category term="Operating System Error Codes"/><category term="Platform"/><category term="Rj-45线"/><category term="SCAN_ICMP"/><category term="SCAN_UDP"/><category term="SQL2000"/><category term="Safe"/><category term="SecureCRT"/><category term="Social Network Sites"/><category term="Staying"/><category term="TDS_MS-SQL_XP_cmdshell"/><category term="TP-LINK"/><category term="UDP_MS-SQL_ping"/><category term="Wireshark"/><category term="X346"/><category term="adduser"/><category term="aide"/><category term="analyze"/><category term="apg"/><category term="appengine"/><category term="arp"/><category term="autoexpect"/><category term="babelweb"/><category term="basic"/><category term="beep sound"/><category term="bind"/><category term="books"/><category term="bug"/><category term="cheat"/><category term="chef"/><category term="chkconfig"/><category term="clearing"/><category term="clients"/><category term="colorful"/><category term="comm"/><category term="convert"/><category term="cookie"/><category term="copy"/><category term="crash"/><category term="current"/><category term="customizing"/><category term="cvs"/><category term="ddos"/><category term="deamon"/><category term="declare"/><category term="default directory"/><category term="delete mail"/><category term="dell"/><category term="description"/><category term="design"/><category term="detect"/><category term="dhcp"/><category term="dumpfile"/><category term="e1000"/><category term="e1000_watchdog"/><category term="editor"/><category term="exim4"/><category term="explain"/><category term="expose"/><category term="expr"/><category term="extension"/><category term="ezmlm"/><category term="fatal"/><category term="fdisk"/><category term="fetch"/><category term="fetch-glue"/><category term="freeTDS"/><category term="freenx"/><category term="freshclam"/><category term="g4u"/><category term="gcc-c++"/><category term="get"/><category term="google"/><category term="guidelines"/><category term="hack"/><category term="harmful"/><category term="hping"/><category term="ibdata1"/><category term="inetd"/><category term="interface"/><category term="intrusion"/><category term="invasion"/><category term="jbod"/><category term="keyboard"/><category term="kiss"/><category term="kits"/><category term="ldirectord"/><category term="limits"/><category term="linux，"/><category term="load"/><category term="localbackup"/><category term="lock"/><category term="login"/><category term="ltrace"/><category term="mod_deflate.so"/><category term="mod_jk"/><category term="multilog"/><category term="multiple"/><category term="multiple address"/><category term="mysql.user表结构"/><category term="nbd"/><category term="nessus"/><category term="netrc"/><category term="netstat"/><category term="nmap"/><category term="numbers"/><category term="option"/><category term="outgoing"/><category term="pam"/><category term="pam_start"/><category term="patch"/><category term="path"/><category term="pdumfs"/><category term="pear"/><category term="perdition"/><category term="plugs"/><category term="pod"/><category term="portage"/><category term="portsentry"/><category term="portsnap"/><category term="pound"/><category term="prefork"/><category term="process"/><category term="proz"/><category term="prune"/><category term="pscan2"/><category term="qmail"/><category term="raid 5"/><category term="random"/><category term="rc.conf"/><category term="re-install"/><category term="redirect"/><category term="reject"/><category term="remembered"/><category term="replace words"/><category term="resin-pro"/><category term="ruby"/><category term="screen.分屏"/><category term="search"/><category term="shred"/><category term="snapshot"/><category term="socks"/><category term="spamassassin"/><category term="spf"/><category term="ssmtp"/><category term="status"/><category term="storage"/><category term="strace"/><category term="su"/><category term="subsys"/><category term="sudo"/><category term="syn"/><category term="system error"/><category term="tcp"/><category term="template"/><category term="terminal"/><category term="truss"/><category term="turn off"/><category term="twisted"/><category term="two"/><category term="ucspi-tcp"/><category term="use"/><category term="utmp"/><category term="uuencode"/><category term="var"/><category term="viruses"/><category term="vmstat"/><category term="vnc"/><category term="vsd"/><category term="vulnerability"/><category term="wacky"/><category term="wget"/><category term="wmware"/><category term="wtmp"/><category term="x windows"/><category term="x86_64"/><category term="zabbix"/><category term="zone"/><category term="三种表类型"/><category term="下载工具"/><category term="不能上网"/><category term="串口"/><category term="主机名"/><category term="互转"/><category term="交换机"/><category term="传输"/><category term="使用指南"/><category term="保护"/><category term="信息"/><category term="修复"/><category term="修改字符"/><category term="入侵"/><category term="内核参数"/><category term="函数"/><category term="加载"/><category term="包"/><category term="区别"/><category term="升级"/><category term="单行"/><category term="单行脚本"/><category term="危险"/><category term="参数"/><category term="参考模型"/><category term="变量"/><category term="台湾，大陆"/><category term="命令"/><category term="哲学"/><category term="图解"/><category term="基本访问表"/><category term="备份"/><category term="备忘录"/><category term="多个"/><category term="套接字"/><category term="子网掩码"/><category term="定时机制"/><category term="封锁"/><category term="小红魔"/><category term="屏幕"/><category term="帮助"/><category term="并口"/><category term="建设"/><category term="快捷键"/><category term="恢复数据库"/><category term="执行方式"/><category term="扩展访问表"/><category term="技巧"/><category term="抓取图片"/><category term="括号"/><category term="接口类型"/><category term="接法"/><category term="接线"/><category term="控制"/><category term="控制字符"/><category term="控制机"/><category term="故障"/><category term="教训"/><category term="数据库"/><category term="无法启动"/><category term="日志"/><category term="显卡"/><category term="显示"/><category term="更名"/><category term="替换"/><category term="服务"/><category term="查找"/><category term="格式"/><category term="桌面连接"/><category term="档案"/><category term="桥接"/><category term="检查"/><category term="概念"/><category term="模块"/><category term="注意"/><category term="注释"/><category term="清除"/><category term="破解"/><category term="程序"/><category term="站点崩溃"/><category term="编程"/><category term="自动"/><category term="虚拟主机"/><category term="表单"/><category term="计算"/><category term="论坛"/><category term="调整"/><category term="路由"/><category term="路由器"/><category term="速度"/><category term="重起"/><category term="附件"/><category term="隧道"/><title type='text'>My  Rice  Record</title><subtitle type='html'>The blog is used for recording problems and notes during my work time. If you have any advice, please comment.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>582</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-2991684474603963742</id><published>2015-03-26T15:40:00.003+08:00</published><updated>2015-03-26T15:46:58.949+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>AppArmor on Ubuntu</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px; margin-bottom: 1em;&quot;&gt;
&quot;AppArmor is a Mandatory Access Control (MAC) system which is a kernel (LSM) enhancement to confine programs to a limited set of resources. AppArmor&#39;s security model is to bind access control attributes to programs rather than to users. AppArmor confinement is provided via profiles loaded into the kernel, typically on boot. AppArmor profiles can be in one of two modes: enforcement and complain. Profiles loaded in enforcement mode will result in enforcement of the policy defined in the profile as well as reporting policy violation attempts (either via syslog or auditd). Profiles in complain mode will not enforce policy but instead report policy violation attempts.&lt;span class=&quot;anchor&quot; id=&quot;line-5&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-6&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px; margin-bottom: 1em;&quot;&gt;
AppArmor differs from some other MAC systems on Linux: it is path-based, it allows mixing of enforcement and complain mode profiles, it uses include files to ease development, and it has a far lower barrier to entry than other popular MAC systems.&lt;span class=&quot;anchor&quot; id=&quot;line-7&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-8&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px; margin-bottom: 1em;&quot;&gt;
AppArmor is an established technology first seen in Immunix and later integrated into Ubuntu, Novell/SUSE, and Mandriva. Core AppArmor functionality is in the mainline Linux kernel from 2.6.36 onwards; work is ongoing by AppArmor, Ubuntu and other developers to merge additional AppArmor functionality into the mainline kernel.&quot;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px; margin-bottom: 1em;&quot;&gt;
(From&amp;nbsp;https://wiki.ubuntu.com/AppArmor)&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px; margin-bottom: 1em;&quot;&gt;
AppArmor is similar with the SELinux on RedHat linux family. So if changing default location of files, we have to change these lines of the relevant &amp;nbsp;AppArmor configuration file under the /etc/apparmor.d directory. &amp;nbsp;For example, moving data files of mysql from which default place /var/lib/mysql to new directory /mnt/mysql, we should to add the following four lines to the setting file:&amp;nbsp;/etc/apparmor.d/usr.sbin.mysqld.&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px; margin-bottom: 1em;&quot;&gt;
&quot;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; margin-bottom: 1em;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19.5px;&quot;&gt;&amp;nbsp; /mnt/mysql/ r,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; margin-bottom: 1em;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px;&quot;&gt;&amp;nbsp; /mnt/mysql/** rwk,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; margin-bottom: 1em;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19.5px;&quot;&gt;&amp;nbsp; /mnt/mysql/plugin/ r,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; margin-bottom: 1em;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19.5px;&quot;&gt;&amp;nbsp; /mnt/mysql/plugin/*.so* mr,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px; margin-bottom: 1em;&quot;&gt;
&quot;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px; margin-bottom: 1em;&quot;&gt;
Explanation briefly: &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px; margin-bottom: 1em;&quot;&gt;
read /mnt/mysql/&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px; margin-bottom: 1em;&quot;&gt;
read+write+lock /mnt/mysql/**&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px; margin-bottom: 1em;&quot;&gt;
read /mnt/mysql/plugin/&lt;/div&gt;
&lt;div class=&quot;line867&quot; style=&quot;background-color: white; margin-bottom: 1em;&quot;&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px;&quot;&gt;
read+PROT_EXEC(mapping into memory) /mnt/mysql/plugins/*.so*&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px;&quot;&gt;
Otherwise there are some error messages:&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px;&quot;&gt;
&quot;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Ubuntu Beta&#39;, UbuntuBeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19.5px;&quot;&gt;
......&lt;/div&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19.5px;&quot;&gt;150326 &amp;nbsp;6:59:44 &amp;nbsp;InnoDB: Operating system error number 13 in a file operation.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19.5px;&quot;&gt;InnoDB: The error means mysqld does not have the access rights to&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19.5px;&quot;&gt;InnoDB: the directory.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19.5px;&quot;&gt;InnoDB: File name ./ibdata1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19.5px;&quot;&gt;InnoDB: File operation call: &#39;open&#39;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19.5px;&quot;&gt;InnoDB: Cannot continue operation.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19.5px;&quot;&gt;......&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19.5px;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/2991684474603963742/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/2991684474603963742' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/2991684474603963742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/2991684474603963742'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2015/03/apparmor-on-ubuntu.html' title='AppArmor on Ubuntu'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-529929763090974086</id><published>2014-09-16T09:33:00.001+08:00</published><updated>2014-09-16T09:33:41.360+08:00</updated><title type='text'>OpenVPN Client issue</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;div&gt;&lt;b&gt;&lt;font size=&quot;6&quot;&gt;Problem:&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;OpenVPN GUI could not connect to the VPN server and threw out the following error messages on Windows 8 :&lt;/div&gt;&lt;div&gt;&amp;quot;&lt;/div&gt;&lt;div&gt;netsh command failed: returned error code 1&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;quot;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;font size=&quot;6&quot;&gt;Reason:&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;The &lt;a href=&quot;http://openvpn.net/index.php/open-source/documentation/manuals/69-openvpn-21.html&quot;&gt;http://openvpn.net/index.php/open-source/documentation/manuals/69-openvpn-21.html&lt;/a&gt; says &lt;/div&gt;&lt;div&gt;&amp;quot;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color:rgb(0,51,102);font-family:Arial,Helvetica,sans-serif;font-size:13px;background-color:rgb(252,253,253)&quot;&gt;The &lt;/span&gt;&lt;b style=&quot;color:rgb(0,51,102);font-family:Arial,Helvetica,sans-serif;font-size:13px;background-color:rgb(252,253,253)&quot;&gt;--script-security&lt;/b&gt;&lt;span style=&quot;color:rgb(0,51,102);font-family:Arial,Helvetica,sans-serif;font-size:13px;background-color:rgb(252,253,253)&quot;&gt; option was introduced in OpenVPN 2.1_rc9. For configuration file compatibility with previous OpenVPN versions, use: &lt;/span&gt;&lt;b style=&quot;color:rgb(0,51,102);font-family:Arial,Helvetica,sans-serif;font-size:13px;background-color:rgb(252,253,253)&quot;&gt;--script-security 3 system&lt;/b&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;quot;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;font size=&quot;6&quot;&gt;Solutions:&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;added &amp;quot;script-security 2 system&amp;quot; into the config.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;br clear=&quot;all&quot;&gt;&lt;div&gt;&lt;div dir=&quot;ltr&quot;&gt;Best Regards,&lt;br&gt;Jumping Qu&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;  &lt;/div&gt;  &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/529929763090974086/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/529929763090974086' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/529929763090974086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/529929763090974086'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2014/09/openvpn-client-issue.html' title='OpenVPN Client issue'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-7508422712548462073</id><published>2014-07-27T06:44:00.000+08:00</published><updated>2014-07-27T06:44:41.147+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="lyrics"/><title type='text'>Love Story -- Talyor Swift</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br style=&quot;border: 0px none; font-family: Verdana, Arial; font-size: 13px; margin: 0px; padding: 0px; text-align: center;&quot; /&gt;
&lt;br /&gt;
&lt;div style=&quot;border: 0px none; font-family: Verdana, Arial; font-size: 13px; margin: 0px 10px; padding: 0px; text-align: center;&quot;&gt;
We were both young when I first saw you.&lt;br /&gt;
I close my eyes and the flashback starts:&lt;br /&gt;
I&#39;m standing there on a balcony in summer air.&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
See the lights, see the party, the ball gowns.&lt;br /&gt;
See you make your way through the crowd&lt;br /&gt;
And say, &quot;Hello, &quot;&lt;br /&gt;
Little did I know...&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
That you were Romeo, you were throwing pebbles,&lt;br /&gt;
And my daddy said, &quot;Stay away from Juliet&quot;&lt;br /&gt;
And I was crying on the staircase&lt;br /&gt;
Begging you, &quot;Please don&#39;t go&quot;&lt;br /&gt;
And I said...&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
&quot;Romeo, take me somewhere we can be alone.&lt;br /&gt;
I&#39;ll be waiting; all that&#39;s left to do is run.&lt;br /&gt;
You&#39;ll be the prince and I&#39;ll be the princess,&lt;br /&gt;
It&#39;s a love story, baby, just say, &#39;Yes.&#39;&quot;&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
So I sneak out to the garden to see you.&lt;br /&gt;
We keep quiet &#39;cause we&#39;re dead if they knew&lt;br /&gt;
So close your eyes... escape this town for a little while.&lt;br /&gt;
Oh, oh.&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
&#39;Cause you were Romeo – I was a scarlet letter,&lt;br /&gt;
And my daddy said, &quot;Stay away from Juliet.&quot;&lt;br /&gt;
But you were everything to me,&lt;br /&gt;
I was begging you, &quot;Please don&#39;t go.&quot;&lt;br /&gt;
And I said...&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
&quot;Romeo, take me somewhere we can be alone.&lt;br /&gt;
I&#39;ll be waiting; all that&#39;s left to do is run.&lt;br /&gt;
You&#39;ll be the prince and I&#39;ll be the princess.&lt;br /&gt;
It&#39;s a love story, baby, just say, &#39;Yes.&#39;&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
Romeo, save me, they try to tell me how to feel.&lt;br /&gt;
This love is difficult but it&#39;s real.&lt;br /&gt;
Don&#39;t be afraid, we&#39;ll make it out of this mess.&lt;br /&gt;
It&#39;s a love story, baby, just say, &#39;Yes.&#39;&quot;&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
Oh, oh.&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
I got tired of waiting&lt;br /&gt;
Wondering if you were ever coming around.&lt;br /&gt;
My faith in you was fading&lt;br /&gt;
When I met you on the outskirts of town.&lt;br /&gt;
And I said...&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
&quot;Romeo, save me, I&#39;ve been feeling so alone.&lt;br /&gt;
I keep waiting for you but you never come.&lt;br /&gt;
Is this in my head? I don&#39;t know what to think.&quot;&lt;br /&gt;
He knelt to the ground and pulled out a ring and said...&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
&quot;Marry me, Juliet, you&#39;ll never have to be alone.&lt;br /&gt;
I love you, and that&#39;s all I really know.&lt;br /&gt;
I talked to your dad – go pick out a white dress&lt;br /&gt;
It&#39;s a love story, baby, just say, &#39;Yes.&#39;&quot;&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
Oh, oh, oh, oh, oh.&lt;br /&gt;
&lt;br style=&quot;border: 0px none; font-size: 1em; margin: 0px; padding: 0px;&quot; /&gt;
&#39;Cause we were both young when I first saw you...&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/7508422712548462073/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/7508422712548462073' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/7508422712548462073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/7508422712548462073'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2014/07/love-story-talyor-swift.html' title='Love Story -- Talyor Swift'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-8692451747475964627</id><published>2014-07-27T06:28:00.001+08:00</published><updated>2014-07-27T06:44:51.363+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="lyrics"/><title type='text'>岁月神偷</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre accuse=&quot;aContent&quot; class=&quot;best-text mb-10&quot; id=&quot;best-content-1620171972&quot; style=&quot;background-color: #f1fedd; margin-bottom: 10px; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: arial, courier new, courier, 宋体, monospace;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 24px; white-space: pre-wrap;&quot;&gt;岁月神偷   -- 金玟岐&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre accuse=&quot;aContent&quot; class=&quot;best-text mb-10&quot; id=&quot;best-content-1620171972&quot; style=&quot;background-color: #f1fedd; color: #333333; font-family: arial, &#39;courier new&#39;, courier, 宋体, monospace; font-size: 14px; line-height: 24px; margin-bottom: 10px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;能够握紧的就别放了
能够拥抱的就别拉扯
时间着急的
冲刷着
剩下了什么
原谅走过的那些曲折
原来留下的都是真的
纵然似梦啊 半醒着
笑着哭着都快活
谁让
时间是让人猝不及防的东西
晴时有风阴有时雨
争不过朝夕
又念着往昔
偷走了青丝却留住一个你
岁月是一场有去无回的旅行
好的坏的都是风景
别怪我贪心
只是不愿醒
因为你只为你愿和我一起
看云淡风轻&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/8692451747475964627/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/8692451747475964627' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/8692451747475964627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/8692451747475964627'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2014/07/blog-post.html' title='岁月神偷'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-202817868232012924</id><published>2014-02-19T11:56:00.000+08:00</published><updated>2014-02-19T11:57:24.111+08:00</updated><title type='text'>[Mac OS] Command line using proxy</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;div&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;pre style=&quot;border-width:0px 0px 0px 3px;border-left-style:solid;border-left-color:rgb(0,191,255);outline:0px;font-family:inherit;font-size:16px;line-height:1.1;vertical-align:baseline;margin-top:15px;margin-bottom:15px;padding:3px 6px;color:rgb(51,51,51)&quot;&gt;    &lt;pre style=&quot;border-width:0px 0px 0px 3px;border-left-style:solid;border-left-color:rgb(0,191,255);outline:0px;font-family:inherit;font-size:16px;line-height:1.1;vertical-align:baseline;margin-top:15px;margin-bottom:15px;padding:3px 6px&quot;&gt;    &lt;code style=&quot;border:0px;outline:0px;font-family:&amp;#39;Ubuntu Mono&amp;#39;,monospace;font-size:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;vertical-align:baseline;margin:0px;padding:0px&quot;&gt;export HTTP_PROXY=&amp;#39;&lt;a href=&quot;http://xxx.yyy.zzz.www:8080&quot;&gt;http://xxx.yyy.zzz.www:8080&lt;/a&gt;&amp;#39;&lt;br&gt;    export http_proxy=$HTTP_PROXY&lt;br&gt;export HTTPS_PROXY=&amp;#39;&lt;a href=&quot;https://xxx.yyy.zzz.www:8080&quot;&gt;https://xxx.yyy.zzz.www:8080&lt;/a&gt;&amp;#39;&lt;br&gt;export https_proxy=$HTTPS_PROX&lt;/code&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;URL:&lt;/div&gt;&lt;div&gt;1. Set the Mac OS X SOCKS proxy on the command line&lt;/div&gt;    &lt;div&gt;&lt;a href=&quot;https://gist.github.com/jordelver/3073101&quot;&gt;https://gist.github.com/jordelver/3073101&lt;/a&gt;&lt;/div&gt;&lt;div&gt;2. BASH: PROXY SETTINGS&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://blog.marcon.me/post/20217812089/bash-proxy-settings&quot;&gt;http://blog.marcon.me/post/20217812089/bash-proxy-settings&lt;/a&gt;&lt;br&gt;    &lt;/div&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;br&gt;&lt;/div&gt;  &lt;input name=&quot;virtru-metadata&quot; type=&quot;hidden&quot; value=&quot;{&amp;quot;email-policy&amp;quot;:{&amp;quot;state&amp;quot;:&amp;quot;closed&amp;quot;,&amp;quot;expirationUnit&amp;quot;:&amp;quot;days&amp;quot;,&amp;quot;disableCopyPaste&amp;quot;:false,&amp;quot;disablePrint&amp;quot;:false,&amp;quot;disableForwarding&amp;quot;:false,&amp;quot;expires&amp;quot;:false},&amp;quot;attachments&amp;quot;:{}}&quot;&gt;&lt;/div&gt;    &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/202817868232012924/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/202817868232012924' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/202817868232012924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/202817868232012924'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2014/02/mac-os-command-line-using-proxy.html' title='[Mac OS] Command line using proxy'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-1561707876789557329</id><published>2013-11-22T20:10:00.000+08:00</published><updated>2013-11-22T20:18:22.925+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Redmine2.4 + FastCGI + Apache2 Ubuntu 12.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
1. &amp;nbsp; &lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; color: black; font-family: Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;apt&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; color: black; font-family: Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; color: black; font-family: Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;get install libfcgi&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; color: black; font-family: Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; color: black; font-family: Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;dev libapache2-mod-fcgid&amp;nbsp;libmysqlclient-dev libmysqlclient18 ruby-dev gem&amp;nbsp;libcurl4-openssl-dev&amp;nbsp;apache2-threaded-dev&amp;nbsp;libapr1-dev&amp;nbsp;libaprutil1-dev&amp;nbsp;redmine-mysql&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; color: black; font-family: Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; color: black; font-family: Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;gem install fcgi&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;&quot;&gt;&lt;span style=&quot;font-size: 14.44444465637207px; line-height: 17.98611068725586px;&quot;&gt;gem install bundler&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;&quot;&gt;&lt;span style=&quot;font-size: 14.44444465637207px; line-height: 17.98611068725586px;&quot;&gt;gem install mysql -v &#39;2.8.1&#39;&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;&quot;&gt;&lt;span style=&quot;font-size: 14.44444465637207px; line-height: 17.98611068725586px;&quot;&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;&quot;&gt;&lt;span style=&quot;font-size: 14.44444465637207px; line-height: 17.98611068725586px;&quot;&gt;bundle install --without development test&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;&quot;&gt;&lt;span style=&quot;font-size: 14.44444465637207px; line-height: 17.98611068725586px;&quot;&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;&quot; style=&quot;background-color: transparent; border: 0px; color: black; font-family: Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;3. apache configure&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
a. virtual host&lt;/div&gt;
&lt;div&gt;
&quot;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; # Admin email, Server Name (domain name) and any aliases&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; ServerName &amp;nbsp;domain.com.redmine&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; ServerAlias &lt;a href=&quot;http://redmine.domain.com/&quot;&gt;redmine.domain.com&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; # Index file and Document Root (where the public files are located)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; DocumentRoot /var/www/redmine/public&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;Directory /var/www/redmine/public&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Options &lt;span style=&quot;color: red;&quot;&gt;+Indexes +FollowSymLinks +ExecCGI&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; AddHandler fcgid-script .fcgi&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Options +Indexes +ExecCGI +FollowSymLinks&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; AllowOverride &lt;span style=&quot;color: red;&quot;&gt;All&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Order allow,deny&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; allow from all&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;/Directory&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; # Custom log file locations&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; LogLevel warn&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; ErrorLog &amp;nbsp;/var/log/redmine/error.log&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; CustomLog /var/log/redmine/access.log combined&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
b. /var/www/redmine/public/.htaccess&lt;/div&gt;
&lt;div&gt;
&quot;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
AddHandler fcgid-script .fcgi&lt;/div&gt;
&lt;div&gt;
RewriteEngine On&lt;/div&gt;
&lt;div&gt;
RewriteBase /&lt;/div&gt;
&lt;div&gt;
RewriteRule ^$ index.html [QSA]&lt;/div&gt;
&lt;div&gt;
RewriteRule ^([^.]+)$ $1.html [QSA]&lt;/div&gt;
&lt;div&gt;
RewriteCond %{REQUEST_FILENAME} !-f&lt;/div&gt;
&lt;div&gt;
RewriteRule ^(.*)$ dispatch.&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;fcgi&lt;/span&gt;&lt;/b&gt; [QSA,L]&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&quot;&lt;/div&gt;
&lt;br clear=&quot;all&quot; /&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
#URLs&lt;br /&gt;
1.&amp;nbsp;&lt;a href=&quot;http://www.redmine.org/projects/redmine/wiki/HowTos&quot;&gt;http://www.redmine.org/projects/redmine/wiki/HowTos&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/1561707876789557329/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/1561707876789557329' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/1561707876789557329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/1561707876789557329'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/11/redmine24-fastcgi-apache2-ubuntu-1204.html' title='Redmine2.4 + FastCGI + Apache2 Ubuntu 12.04'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-3434161771803966951</id><published>2013-10-27T07:52:00.012+08:00</published><updated>2013-10-30T16:52:24.290+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="mod_ssl"/><title type='text'>[AWS ELB]upload SSL Certificate of GoDaddy</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
1. generate csr&lt;br /&gt;
&lt;br /&gt;
openssl req -new -newkey rsa:2048 -nodes -keyout &lt;span style=&quot;color: red;&quot;&gt;apps.com.key&lt;/span&gt; -out &lt;span style=&quot;color: red;&quot;&gt;apps.com.csr&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Note: &lt;span style=&quot;color: red;&quot;&gt;apps.com.key&lt;/span&gt; : Private Key&lt;br /&gt;
&lt;br /&gt;
2. uploading the &lt;span style=&quot;color: red;&quot;&gt;apps.com.csr&lt;/span&gt; to GoDaddy and complete the request processing&lt;br /&gt;
&lt;br /&gt;
3. waiting the &amp;nbsp;request &amp;nbsp;has been active&lt;br /&gt;
&lt;br /&gt;
4. download the crt from GoDaddy&lt;br /&gt;
&lt;br /&gt;
the package contain three files: &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;xxxx.crt &lt;/span&gt;: &amp;nbsp;Public Key Certificate&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;gd_bundle.crt &lt;/span&gt;:&amp;nbsp;Certificate Chain&lt;br /&gt;
&lt;br /&gt;
5. &lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 18px;&quot;&gt;Decrypt the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;encryption private key(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;apps.com.key&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;) file&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-size: 14px; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;openssl rsa -in &amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;apps.com.key&lt;/span&gt; -out &lt;span style=&quot;color: red;&quot;&gt;private.pem&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-size: 14px; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
Note: the &lt;span style=&quot;color: red;&quot;&gt;apps.com.key&lt;/span&gt; could use in apache2 directly, but the ELB could not recognize&lt;br /&gt;
&lt;br /&gt;
6. upload to AWS&lt;br /&gt;
&lt;br /&gt;
iam-servercertupload &amp;nbsp; -b &lt;span style=&quot;color: red;&quot;&gt;xxxx.crt &lt;/span&gt;&amp;nbsp; -k &lt;span style=&quot;color: red;&quot;&gt;private.pem&lt;/span&gt; &amp;nbsp; &amp;nbsp;-s godaddy_apps&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/3434161771803966951/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/3434161771803966951' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/3434161771803966951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/3434161771803966951'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/10/aws-elbupload-ssl-certificate-of-godaddy.html' title='[AWS ELB]upload SSL Certificate of GoDaddy'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-7824848866874004625</id><published>2013-08-14T15:10:00.001+08:00</published><updated>2014-05-19T11:14:42.724+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="phpmyadmin"/><title type='text'>way to solve could not display value of utf8-bin on phpmyadmin 4.0.5 </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1. issue&lt;br /&gt;
the phpmyadmin 4.0.5 could not &amp;nbsp;display fields which type is &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;utf8-bin&lt;/span&gt;&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
2. change the&amp;nbsp;config.inc.php file like as&lt;br /&gt;
&lt;br /&gt;
&quot;$cfg[&#39;Servers&#39;][$i][&#39;extension&#39;] = &#39;mysqli&#39;;&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. check&lt;br /&gt;
use &amp;nbsp;mysqli instead of mysql for php.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL9-DZFo2XvoCVvWTb73gxYsdj95JCXmyrPUMpa4Owa4SVXcE94RhOuynCedlc3lYArK0skQymtj0WBxFinICu4J2o6BHWhOCST45Fd3du6WKMyhGwAPsyPyETr-ZIUBa0QXUinZ-gc_U/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL9-DZFo2XvoCVvWTb73gxYsdj95JCXmyrPUMpa4Owa4SVXcE94RhOuynCedlc3lYArK0skQymtj0WBxFinICu4J2o6BHWhOCST45Fd3du6WKMyhGwAPsyPyETr-ZIUBa0QXUinZ-gc_U/s400/1.png&quot; height=&quot;236&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Updated:&lt;br /&gt;
1. 2014-05-19&lt;br /&gt;
added the section about how to change the mysql to mysqli.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/7824848866874004625/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/7824848866874004625' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/7824848866874004625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/7824848866874004625'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/08/way-to-solve-could-not-display-value-of.html' title='way to solve could not display value of utf8-bin on phpmyadmin 4.0.5 '/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL9-DZFo2XvoCVvWTb73gxYsdj95JCXmyrPUMpa4Owa4SVXcE94RhOuynCedlc3lYArK0skQymtj0WBxFinICu4J2o6BHWhOCST45Fd3du6WKMyhGwAPsyPyETr-ZIUBa0QXUinZ-gc_U/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-4292091300337676033</id><published>2013-07-08T10:29:00.002+08:00</published><updated>2013-07-08T10:29:37.853+08:00</updated><title type='text'>AWS support Crash Screenshot </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvhgByI8now8VrKQwk6SCDer9izWlbij90mRPF6p2LsqszAHfbmk_AQSyWL2z7XxFeLCsC2OaNQZEiDRSclITk3aQTAF4QO52xkZbtb83_jy7VraHPLlmrWrz1XBboz_LklhN3PeOc1O8/s1600/aws+internal+server+error.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;66&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvhgByI8now8VrKQwk6SCDer9izWlbij90mRPF6p2LsqszAHfbmk_AQSyWL2z7XxFeLCsC2OaNQZEiDRSclITk3aQTAF4QO52xkZbtb83_jy7VraHPLlmrWrz1XBboz_LklhN3PeOc1O8/s400/aws+internal+server+error.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijZeNym0ArfO_F9jEO95w1ewN4QT9MF-uENtuXJvM9kacAfSUcqkKBk3GQnEmJblFT6ursLd7yI9k18WWBqZvQVjeNm6TEGou9pwAcmiUrFhfzA6Gjik0e123yJT63NS4OXbM7DBXp1Ro/s1600/aws+support+crash.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijZeNym0ArfO_F9jEO95w1ewN4QT9MF-uENtuXJvM9kacAfSUcqkKBk3GQnEmJblFT6ursLd7yI9k18WWBqZvQVjeNm6TEGou9pwAcmiUrFhfzA6Gjik0e123yJT63NS4OXbM7DBXp1Ro/s400/aws+support+crash.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Recently the support page has been unstable. No reason.&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/4292091300337676033/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/4292091300337676033' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/4292091300337676033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/4292091300337676033'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/07/aws-support-crash-screenshot.html' title='AWS support Crash Screenshot '/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvhgByI8now8VrKQwk6SCDer9izWlbij90mRPF6p2LsqszAHfbmk_AQSyWL2z7XxFeLCsC2OaNQZEiDRSclITk3aQTAF4QO52xkZbtb83_jy7VraHPLlmrWrz1XBboz_LklhN3PeOc1O8/s72-c/aws+internal+server+error.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-4888104722262394287</id><published>2013-07-03T16:55:00.002+08:00</published><updated>2013-07-03T16:55:51.012+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="tools"/><title type='text'>Fixed error messages of aapt on CentOS 5.2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1. Problem:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
#&amp;gt;/usr/bin/aapt d badging /tmp/1344836948.apk&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;/usr/bin/aapt: /usr/bin/../lib/libz.so.1: no version information available (required by /usr/bin/aapt)&lt;/span&gt;&lt;br /&gt;
package: name=&#39;com.mob.test_126&#39; versionCode=&#39;100&#39; versionName=&#39;1.0.0&#39;&lt;br /&gt;
sdkVersion:&#39;4&#39;&lt;br /&gt;
application: label=&#39;测试126&#39; icon=&#39;res/drawable-mdpi/icon.png&#39;&lt;br /&gt;
launchable activity name=&#39;com.mob.test_126.MY_TEST_APP_47Activity&#39;label=&#39;测试126&#39; icon=&#39;&#39;&lt;br /&gt;
uses-feature:&#39;android.hardware.touchscreen&#39;&lt;br /&gt;
main&lt;br /&gt;
supports-screens: &#39;small&#39; &#39;normal&#39; &#39;large&#39;&lt;br /&gt;
supports-any-density: &#39;true&#39;&lt;br /&gt;
locales: &#39;--_--&#39;&lt;br /&gt;
densities: &#39;120&#39; &#39;160&#39; &#39;240&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;2. Checking:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# ldd /usr/bin/aapt&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;/usr/bin/aapt: /usr/bin/../lib/libz.so.1: no version information available (required by /usr/bin/aapt)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; linux-gate.so.1 =&amp;gt; &amp;nbsp;(0xb7f8b000)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; librt.so.1 =&amp;gt; /lib/i686/nosegneg/librt.so.1 (0xb7f79000)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libpthread.so.0 =&amp;gt; /lib/i686/nosegneg/libpthread.so.0 (0xb7f62000)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libz.so.1 =&amp;gt; /usr/bin/../lib/libz.so.1 (0xb7f4f000)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libstdc++.so.6 =&amp;gt; /usr/bin/../lib/libstdc++.so.6 (0xb7e65000)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libm.so.6 =&amp;gt; /lib/i686/nosegneg/libm.so.6 (0xb7e3e000)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libgcc_s.so.1 =&amp;gt; /lib/libgcc_s.so.1 (0xb7e32000)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libc.so.6 =&amp;gt; /lib/i686/nosegneg/libc.so.6 (0xb7cec000)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /lib/ld-linux.so.2 (0xb7f8c000)&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;3. Reason&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The zlib lib is outdate, need update it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;4.Updating &amp;nbsp;to zlib-1.2.5&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
a. compile &amp;nbsp; zlib-1.2.5&lt;br /&gt;
&lt;br /&gt;
wget &amp;nbsp;&lt;a href=&quot;http://downloads.sourceforge.net/project/libpng/zlib/1.2.5/zlib-1.2.5.tar.gz?r=https%3A%2F%2Fwww.google.com.hk%2F&amp;amp;ts=1372840550&amp;amp;use_mirror=nchc&quot;&gt;zlib-1.2.5.tar.gz&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
tar xzf zlib-1.2.5.tar.gz &amp;amp;&amp;amp; cd zlib-1.2.5 &amp;amp;&amp;amp;&amp;nbsp;./configure&lt;br /&gt;
cat Makefile | sed -e &#39;s/-m64/-m32/g&#39; &amp;gt; Makefile.32&lt;br /&gt;
make -f Makefile.32&lt;br /&gt;
&lt;br /&gt;
b. backup 1.2.3&lt;br /&gt;
mkdir zlib-1.2.3&lt;br /&gt;
cp -p /usr/lib/libz.so.1 /usr/lib/libz.so.1.2.3 &amp;nbsp; zlib-1.2.3/&lt;br /&gt;
&lt;br /&gt;
c. active 1.2.5&lt;br /&gt;
cp&amp;nbsp;libz.so* /usr/lib/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/4888104722262394287/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/4888104722262394287' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/4888104722262394287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/4888104722262394287'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/07/fixed-error-messages-of-aapt-on-centos.html' title='Fixed error messages of aapt on CentOS 5.2'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-7091454303410144248</id><published>2013-05-03T17:34:00.000+08:00</published><updated>2013-05-03T17:34:08.208+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="x86_64"/><title type='text'>how to make aapt run on CentOS 5.7 64bit</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
========================&lt;br /&gt;
Steps&lt;br /&gt;
========================&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. /etc/yum.conf&lt;br /&gt;
A. backup&lt;br /&gt;
cp /etc/yum.conf /etc/yum.conf.orig&lt;br /&gt;
&lt;br /&gt;
B. added the following :&lt;br /&gt;
&quot;&lt;br /&gt;
multilib_policy=best&lt;br /&gt;
&quot;&lt;br /&gt;
&lt;br /&gt;
C. replace&lt;br /&gt;
&quot;&lt;br /&gt;
exclude=*.i386 *.i686 kernel kernel-xen kernel-debug&lt;br /&gt;
&quot;&lt;br /&gt;
with&lt;br /&gt;
&quot;&lt;br /&gt;
exclude=kernel kernel-xen kernel-debug&lt;br /&gt;
&quot;&lt;br /&gt;
&lt;br /&gt;
2. add new packages&lt;br /&gt;
yum install libstdc++.i386 zlib.i386 glibc.i686&lt;br /&gt;
&lt;br /&gt;
3. try aapt&lt;br /&gt;
aapt -h&lt;br /&gt;
&lt;br /&gt;
4. recovery to the /etc/yum.conf to the original&lt;br /&gt;
cp /etc/yum.conf.orig &amp;nbsp; /etc/yum.conf&lt;br /&gt;
&lt;br /&gt;
========================&lt;br /&gt;
Error mssages during installation&lt;br /&gt;
========================&lt;br /&gt;
aapt: /bin/../lib/libz.so.1: no version information available (required by aapt)&lt;br /&gt;
&lt;br /&gt;
aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory&lt;br /&gt;
&lt;br /&gt;
aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/7091454303410144248/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/7091454303410144248' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/7091454303410144248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/7091454303410144248'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/05/how-to-make-aapt-run-on-centos-57-64bit.html' title='how to make aapt run on CentOS 5.7 64bit'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-2149027787471270605</id><published>2013-04-26T13:34:00.002+08:00</published><updated>2013-04-26T13:34:29.174+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Python: super function</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #212324; font-family: Arial, Helvetica, sans-serif; font-size: 32px;&quot;&gt;Things to Know About Python Super&lt;/span&gt;&lt;br /&gt;
http://www.artima.com/weblogs/viewpost.jsp?thread=236275&lt;br /&gt;
&lt;br /&gt;
&lt;h1 class=&quot;title&quot; style=&quot;text-align: left;&quot;&gt;
How-To Guide for Descriptors&lt;/h1&gt;
&lt;br /&gt;
http://users.rcn.com/python/download/Descriptor.htm&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h1 style=&quot;font-family: sans-serif;&quot;&gt;
Python&#39;s Super is nifty, but you can&#39;t use it&lt;/h1&gt;
&lt;br /&gt;
https://fuhm.net/super-harmful/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Python’s super() considered&amp;nbsp;super!&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
http://rhettinger.wordpress.com/2011/05/26/super-considered-super/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h1 style=&quot;color: #111111; font-family: &#39;Hoefler Text&#39;, serif; line-height: 23px; margin-left: auto; margin-right: auto; width: 800px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;A Guide to Python&#39;s Magic Methods&lt;/span&gt;&lt;/h1&gt;
&lt;br /&gt;
http://www.rafekettler.com/magicmethods.html&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/2149027787471270605/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/2149027787471270605' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/2149027787471270605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/2149027787471270605'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/04/python-super-function.html' title='Python: super function'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-1814640216381168218</id><published>2013-04-17T14:02:00.000+08:00</published><updated>2013-04-17T14:02:17.133+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="yum"/><title type='text'>Dependancy problem on CentOS 5.2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1.Problem&lt;br /&gt;
&lt;br /&gt;
running the &quot;yum update &quot;, it said&lt;br /&gt;
&quot;&lt;br /&gt;
.........&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Finished Dependency Resolution&lt;br /&gt;
Error: Missing Dependency: libyaml-0.so.1 is needed by package python26-PyYAML&lt;br /&gt;
&lt;br /&gt;
&quot;&lt;br /&gt;
&lt;br /&gt;
2.Reason&lt;br /&gt;
need update the&amp;nbsp;rpmforge repository&lt;br /&gt;
&lt;br /&gt;
a.&amp;nbsp;yum --disablerepo=rpmforge remove libyaml*&lt;br /&gt;
b. yum update&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/1814640216381168218/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/1814640216381168218' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/1814640216381168218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/1814640216381168218'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/04/dependancy-problem-on-centos-52.html' title='Dependancy problem on CentOS 5.2'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-87540836498281099</id><published>2013-02-27T10:52:00.000+08:00</published><updated>2017-05-16T17:09:38.846+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="s3"/><title type='text'>[AWS S3] share bucket between two separate accounts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Story:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The user &#39;&lt;span style=&quot;color: red;&quot;&gt;1111name_iam&lt;/span&gt;&#39; under of 111111111111 wants to access &amp;nbsp;objects in the S3 bucket(testlog) under 222222222222.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Setps:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
1. edit / add permission on the bucket under the account(222222222222), for example s3://testlog&lt;/div&gt;
&lt;div&gt;
2. check the permission of the account (111111111111) which want to access the bucket&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1. edit the S3 bucket policy and apply under &lt;span style=&quot;background-color: orange;&quot;&gt;2222-2222-2222&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&quot;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &quot;Version&quot;: &quot;2008-10-17&quot;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &quot;Id&quot;: &quot;Policy1361927233086&quot;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &quot;Statement&quot;: [&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Sid&quot;: &quot;Stmt1361927216946&quot;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Effect&quot;: &quot;Allow&quot;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Principal&quot;: {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;AWS&quot;: &amp;nbsp;&quot;arn:aws:iam::111111111111:user/&lt;span style=&quot;color: red;&quot;&gt;1111name_iam&lt;/span&gt;&quot;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Action&quot;: [&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;s3:List*&quot;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;s3:Get*&quot;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ],&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Resource&quot;: [&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;arn:aws:s3:::testlog/*&quot;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;arn:aws:s3:::testlog&quot;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; ]&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2. edit IAM policy of the account &lt;i&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;1111name_iam&lt;/span&gt;&lt;/b&gt; &lt;/i&gt;&amp;nbsp;under &lt;span style=&quot;background-color: orange;&quot;&gt;1111-1111-1111&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
make sure he could list/get as you need.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3. now you can access the bucket s3://testlog like as the bucket under &amp;nbsp;1111-1111-1111.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
4. Some URLs:&lt;br /&gt;
&lt;br /&gt;
A. Policy generator&lt;br /&gt;
http://awspolicygen.s3.amazonaws.com/policygen.html&lt;br /&gt;
&lt;br /&gt;
B. &amp;nbsp;Element Descriptions&lt;br /&gt;
http://docs.aws.amazon.com/IAM/latest/UserGuide/AccessPolicyLanguage_ElementDescriptions.html&lt;br /&gt;
&lt;br /&gt;
C. S3 case&lt;br /&gt;
http://docs.aws.amazon.com/AmazonS3/latest/dev/AccessPolicyLanguage_UseCases_s3_a.html&lt;br /&gt;
&lt;br /&gt;
D. ARN &amp;amp; namespace&lt;br /&gt;
http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html&lt;br /&gt;
&lt;br /&gt;
E.Delegating Cross-Account Permissions to IAM Users&lt;br /&gt;
http://docs.aws.amazon.com/IAM/latest/UserGuide/DelegatingAccess.html&lt;br /&gt;
&lt;br /&gt;
5. Notice&lt;br /&gt;
a. The value of &amp;nbsp;Principal could be Role ARN, like as :&lt;br /&gt;
&lt;br /&gt;
&quot;Principal&quot;: {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&quot;AWS&quot;: &quot;arn:aws-cn:iam::18xxx8530:role/dxtahxb-prod_azkaban-prod_role&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;},&lt;br /&gt;
&lt;br /&gt;
b. the role of arn:aws-cn:iam::18xxx8530:role/dxtahxb-prod_azkaban-prod_role should has a police which related to the s3 object under the bucket of &amp;nbsp;&lt;span style=&quot;background-color: orange;&quot;&gt;2222-2222-2222&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
Update:&lt;br /&gt;
1. added reference &amp;nbsp;urls&lt;br /&gt;
2. added story section @ &amp;nbsp;2014-01-25 17:12&lt;br /&gt;
3. updated &amp;nbsp;most of content @ 2014-03-06 19:00&lt;br /&gt;
4. added the 4.E &amp;nbsp;@2014-03-06 23:01&lt;br /&gt;
5. updated @2016-11-11 02:20&lt;br /&gt;
6. auto sync between two buckets&lt;br /&gt;
http://docs.aws.amazon.com/AmazonS3/latest/dev/crr-how-setup.html&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/87540836498281099/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/87540836498281099' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/87540836498281099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/87540836498281099'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/02/aws-s3-share-bucket-between-two.html' title='[AWS S3] share bucket between two separate accounts'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-6597158813210932788</id><published>2013-02-20T10:42:00.000+08:00</published><updated>2013-02-20T10:50:00.787+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="ec2"/><category scheme="http://www.blogger.com/atom/ns#" term="freenx"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Desktop of Ubuntu precise and FreeNX on AWS EC2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1. launch a new instance from the AMI(ami-3fec7956)&lt;br /&gt;
2. configure the instance and install these obligatory softwares&lt;br /&gt;
#&lt;br /&gt;
sudo apt-get ugrade&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install build-essential&lt;br /&gt;
&lt;br /&gt;
#add user, if not prompt passwd, should passwd the user&lt;br /&gt;
&lt;br /&gt;
adduser &amp;nbsp;test&lt;br /&gt;
mkdir &amp;nbsp;/home/test&lt;br /&gt;
&lt;br /&gt;
chown -R test /home/test&lt;br /&gt;
chown -R test:test /home/test&lt;br /&gt;
passwd test&lt;br /&gt;
&lt;br /&gt;
visudo&lt;br /&gt;
&lt;br /&gt;
#make sure the value of &amp;nbsp;&quot;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 20px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;background-color: white; color: #222222; font-family: &#39;Open Sans&#39;, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 20px; text-align: -webkit-auto;&quot;&gt;PasswordAuthentication&quot; is &quot;yes&quot;&lt;/em&gt;&lt;br /&gt;
vim /etc/ssh/sshd_config&lt;br /&gt;
/etc/init.d/ssh restart&lt;br /&gt;
&lt;br /&gt;
#install desktop&lt;br /&gt;
export DEBIAN_FRONTEND=noninteractive&lt;br /&gt;
apt-get install -y ubuntu-desktop&lt;br /&gt;
add-apt-repository ppa:freenx-team&lt;br /&gt;
&lt;br /&gt;
#install FreeNX Server&lt;br /&gt;
aptitude install freenx&lt;br /&gt;
wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz&lt;br /&gt;
tar zxvf nxsetup.tar.gz&lt;br /&gt;
mv nxsetup /usr/lib/nx/nxsetup&lt;br /&gt;
chown root:root /usr/lib/nx/nxsetup&lt;br /&gt;
/usr/lib/nx/nxsetup --install&lt;br /&gt;
&lt;br /&gt;
3. install NX client&lt;br /&gt;
download from &lt;a href=&quot;http://www.nomachine.com/download.php&quot;&gt;here&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
4. try to connect&lt;br /&gt;
&lt;br /&gt;
5.&amp;nbsp;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 24px; text-align: -webkit-auto;&quot;&gt;The ubuntu-3d session doesn’t work with&amp;nbsp; Freenx and will give you an error message “Failed to load session “gnome-fallback”&quot;.&lt;/span&gt;&lt;br /&gt;
then &amp;nbsp;running the command &quot;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #444444; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 24px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;syntaxhighlighter  bash&quot; id=&quot;highlighter_771448&quot; style=&quot;background-color: white !important; border: 0px; font-size: 1em !important; margin: 1em 0px !important; overflow-x: auto !important; overflow-y: hidden !important; padding: 0px; position: relative !important; vertical-align: baseline; width: 624px;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-collapse: collapse; border-spacing: 0px; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #757575; direction: ltr !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 1204px;&quot;&gt;&lt;tbody style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;code&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 1172px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bash functions&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(255, 20, 147) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;sudo&lt;/code&gt; &lt;code class=&quot;bash functions&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(255, 20, 147) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;echo&lt;/code&gt; &lt;code class=&quot;bash plain&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;-e &lt;/code&gt;&lt;code class=&quot;bash string&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;\n#Use unity 2d for client sessions\nCOMMAND_START_GNOME=&#39;gnome-session --session=ubuntu-2d&#39;&quot;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;|&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(255, 20, 147) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;sudo&lt;/code&gt; &lt;code class=&quot;bash functions&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(255, 20, 147) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;tee&lt;/code&gt; &lt;code class=&quot;bash plain&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;-a &lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;/etc/nxserver/node&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;.conf&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&quot;&lt;br /&gt;
&lt;br /&gt;
Ref:&lt;br /&gt;
1.&amp;nbsp;https://help.ubuntu.com/community/FreeNX&lt;br /&gt;
2.&amp;nbsp;http://www.dickson.me.uk/2012/06/18/installing-freenx-server-on-12-04-precise-pangolin/&lt;br /&gt;
3. http://stackoverflow.com/questions/5132575/how-do-i-setup-ubuntu-desktop-in-ec2&lt;br /&gt;
4.&amp;nbsp;http://michaelhallsmoore.com/blog/Desktop-Ubuntu-in-Amazon-EC2-The-Right-Way&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/6597158813210932788/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/6597158813210932788' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/6597158813210932788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/6597158813210932788'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/02/desktop-of-ubuntu-precise-and-freenx-on.html' title='Desktop of Ubuntu precise and FreeNX on AWS EC2'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-7139606587369698521</id><published>2013-02-18T18:06:00.000+08:00</published><updated>2013-02-18T18:09:53.485+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="auto"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="proxy"/><title type='text'>auto proxy for Lion</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
1. create a .pac file&lt;br /&gt;
[root@jumping]# cat simple.pac&lt;br /&gt;
//http://www.proxypacfiles.com&lt;br /&gt;
//http://tektab.com/2012/09/26/setting-up-automatic-proxy-configuration-pac-file/&lt;br /&gt;
//http://www.cses.tcc.edu.tw/~chihwu/proxy-pac.htm&lt;br /&gt;
&lt;br /&gt;
function FindProxyForURL(url, host) {&lt;br /&gt;
&lt;br /&gt;
//Convert to lower case&lt;br /&gt;
var lhost = host.toLowerCase();&lt;br /&gt;
host = lhost;&lt;br /&gt;
&lt;br /&gt;
// set proxy variable&lt;br /&gt;
http_proxy = &quot;PROXY 192.168.18.8:8080&quot;;&lt;br /&gt;
socket_proxy = &quot;SOCKS 127.0.0.1:7777&quot;;&lt;br /&gt;
&lt;br /&gt;
if (dnsDomainIs(host, &quot;.google.com&quot;) ||&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;dnsDomainIs(host, &quot;.ip.cn&quot;)||&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;dnsDomainIs(host, &quot;.blogger.com&quot;)||&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;dnsDomainIs(host, &quot;.gmail.com&quot;)||&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;dnsDomainIs(host, &quot;.appspot.com&quot;)||&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;dnsDomainIs(host, &quot;.facebook.com&quot;)||&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;dnsDomainIs(host, &quot;.twitter.com&quot;)) {&lt;br /&gt;
&amp;nbsp; return socket_proxy;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
2. config apache by editing httpd.conf&lt;br /&gt;
added two lines under define &quot;IfModule mime_module&lt;ifmodule mime_module=&quot;&quot;&gt;&quot;:&amp;nbsp;&lt;/ifmodule&gt;&lt;br /&gt;
&quot;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; AddType application/x-ns-proxy-autoconfig .pac&lt;br /&gt;
&amp;nbsp; &amp;nbsp; AddType application/x-ns-proxy-autoconfig .dat&lt;br /&gt;
&lt;br /&gt;
&quot;&lt;br /&gt;
&lt;br /&gt;
3. put the simple.pac to the web directory&lt;br /&gt;
&lt;br /&gt;
4. goto &quot;auto proxy configuration&quot; in &quot;Network -&amp;gt; Advanced&quot;, then fill in &quot;http://webserver/simple.pac&quot;&lt;br /&gt;
&lt;br /&gt;
5. post check&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/7139606587369698521/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/7139606587369698521' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/7139606587369698521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/7139606587369698521'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/02/auto-proxy-for-lion.html' title='auto proxy for Lion'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-5091167712472604048</id><published>2013-02-16T14:21:00.001+08:00</published><updated>2013-02-16T16:02:26.581+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql5"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><title type='text'>using procedure to hide/replace fields from results of mysqldump</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
1. create procedure&lt;br /&gt;
&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;DELIMITER //&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;CREATE PROCEDURE `user_proc` ()&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;BEGIN&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; DECLARE email_a VARCHAR(255) DEFAULT &#39;a@a.com&#39;;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; DECLARE email_b VARCHAR(255) DEFAULT &#39;b@b.com&#39;;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; DECLARE email_c VARCHAR(255) DEFAULT &#39;c@c.com&#39;;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; DECLARE email_d VARCHAR(255) DEFAULT &#39;d@d.com&#39;;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; DECLARE qq_a VARCHAR(255) DEFAULT &#39;1234&#39;;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; SELECT CONCAT_WS(&#39;,&#39;,&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; user.id,&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; user.username,&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; email_a,&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.partner_id,&#39;0&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.password,&#39;NULL&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.full_name,&#39;NULL&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; email_b,&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.province,&#39;0&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.city,&#39;0&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.address,&#39;NULL&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.zip_code,&#39;NULL&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.profession,&#39;NULL&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.birthday, &#39;NULL&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.phone,&#39;NULL&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.mobile,&#39;NULL&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.website,&#39;NULL&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.weibo,&#39;NULL&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; qq_a,&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; email_c,&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; email_d,&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.hobby,&#39;NULL&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.subscription_flg,&#39;1&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.delete_flg,&#39;0&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.common_market_user_flg,&#39;1&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.max_upload_app_count,&#39;5&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IFNULL(user.receive_app_status_mail,&#39;1&#39;),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; user.create_time,&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; user.last_active_time&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; ) FROM mob2.user;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;END //&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;DELIMITER ;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&quot;&lt;br /&gt;
&lt;br /&gt;
The email_a, email_b, email_c, email_d, qq_a are constants, which will replace corresponding values in mob2.user.&lt;br /&gt;
&lt;br /&gt;
2. call procedure&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;echo &quot;call user_proc;&quot; | mysql test &amp;gt; /tmp/1.csv&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
3. import (At first, should delete the some head lines from /tmp/1.csv, that are procedure define)&lt;br /&gt;
&lt;i&gt;LOAD DATA INFILE &#39;/tmp/1.csv&#39; INTO TABLE user_temp FIELDS TERMINATED BY &#39;,&#39; LINES TERMINATED BY &#39;\n&#39;;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
Updated:&lt;br /&gt;
1. &amp;nbsp;added import&lt;br /&gt;
2. added IFNULL&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/5091167712472604048/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/5091167712472604048' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/5091167712472604048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/5091167712472604048'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/02/using-procedure-to-hidereplace-fields.html' title='using procedure to hide/replace fields from results of mysqldump'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-4247268049055860447</id><published>2013-01-29T08:53:00.001+08:00</published><updated>2013-01-29T08:53:32.583+08:00</updated><title type='text'>Gmail Shortcuts</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;a href=&quot;http://r.evhead.com/hodgepodge/gmail-shortcuts.html&quot;&gt;http://r.evhead.com/hodgepodge/gmail-shortcuts.html&lt;/a&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; style=&quot;border-top-style:solid;border-right-style:solid;border-top-width:1px;border-right-width:1px;border-top-color:rgb(102,102,102);border-right-color:rgb(102,102,102);border-bottom-style:none;border-left-width:0px;font-family:Times&quot;&gt;    &lt;tbody&gt;&lt;tr&gt;&lt;td colspan=&quot;3&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:30px;background-color:rgb(51,51,51);color:rgb(255,255,255)&quot;&gt;    Gmail Shortcuts&lt;/td&gt;&lt;/tr&gt;&lt;tr bgcolor=&quot;#c3d9ff&quot;&gt;&lt;th valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Key&lt;/th&gt;&lt;th valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Definition&lt;/th&gt;&lt;th valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Action&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    c&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Compose&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Allows you to compose a new message. &lt;strong&gt;&amp;lt;Shift&amp;gt; + c &lt;/strong&gt;allows you to compose a message in a new window.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    &amp;lt;tab&amp;gt; &lt;font size=&quot;-2&quot;&gt;then &amp;lt;Enter&amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Send message&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    After composing your message, use tdis combination to send it automatically. (Supported in Internet Explorer and Firefox, on Windows.)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    k&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Move to newer conversation&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Opens or moves your cursor to a more recent conversation. You can hit &lt;b&gt;&amp;lt;Enter&amp;gt;&lt;/b&gt; to expand a conversation.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    j&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Move to older conversation&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Opens or moves your cursor to the next oldest conversation. You can hit &lt;b&gt;&amp;lt;Enter&amp;gt;&lt;/b&gt; to expand a conversation.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    n&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Next message&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Moves your cursor to the next message. You can hit &lt;b&gt;&amp;lt;Enter&amp;gt;&lt;/b&gt; to expand or collapse a message. &lt;font size=&quot;-2&quot;&gt;(Only applicable in &amp;#39;Conversation View.&amp;#39;)&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    p&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Previous message&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Moves your cursor to the previous message. You can hit &lt;b&gt;&amp;lt;Enter&amp;gt;&lt;/b&gt; to expand or collapse a message. &lt;font size=&quot;-2&quot;&gt;(Only applicable in &amp;#39;Conversation View.&amp;#39;)&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    o &lt;font size=&quot;-2&quot;&gt;or &amp;lt;Enter&amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Open&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Opens your conversation. Also expands or collapses a message if you are in &amp;#39;Conversation View.&amp;#39;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    u&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Return to conversation list&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Refreshes your page and returns you to the inbox, or list of conversations.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    y&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Archive*&lt;br&gt;&lt;font size=&quot;-2&quot;&gt;Remove from current view&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Automatically removes the message or conversation from your current view.&lt;font size=&quot;-2&quot;&gt;&lt;ul style=&quot;margin:3px&quot;&gt;&lt;li&gt;From &amp;#39;Inbox,&amp;#39; &amp;#39;y&amp;#39; means &lt;strong&gt;Archive&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;From &amp;#39;Starred,&amp;#39; &amp;#39;y&amp;#39; means &lt;strong&gt;Unstar&lt;/strong&gt;&lt;/li&gt;    &lt;li&gt;From any label, &amp;#39;y&amp;#39; means &lt;strong&gt;Remove the label&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;* &amp;#39;y&amp;#39; has no effect if you&amp;#39;re in &amp;#39;Spam,&amp;#39; &amp;#39;Sent,&amp;#39; or &amp;#39;All Mail.&amp;#39;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    x&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Select conversation&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Automatically checks and selects a conversation so tdat you can archive, apply a label, or choose an action from the drop-down menu to apply to tdat conversation.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    s&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Star a message or conversation&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Adds or removes a star to a message or conversation. Stars allow you to give a message or conversation a special status.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    !&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Report spam&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Marks a message as spam and removes it from your conversation list.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    r&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Reply&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Reply to the message sender. &lt;strong&gt;&amp;lt;Shift&amp;gt; + r &lt;/strong&gt;&lt;font face=&quot;Arial,&quot; size=&quot;-1&quot;&gt;allows you to reply to a message in a new window. &lt;font size=&quot;-2&quot;&gt;(Only applicable in &amp;#39;Conversation View.&amp;#39;)&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;    &lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    a&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Reply all&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Reply to all message recipients. &lt;font face=&quot;Arial,&quot; size=&quot;-1&quot;&gt;&lt;strong&gt;&amp;lt;Shift&amp;gt; +a&lt;/strong&gt; &lt;font face=&quot;Arial,&quot; size=&quot;-1&quot;&gt;allows you to reply to all message recipients in a new window. &lt;font size=&quot;-2&quot;&gt;(Only applicable in &amp;#39;Conversation View.&amp;#39;)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;    &lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    f&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Forward&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Forward a message. &lt;font face=&quot;Arial,&quot; size=&quot;-1&quot;&gt;&lt;strong&gt;&amp;lt;Shift&amp;gt; + f&lt;/strong&gt; &lt;font face=&quot;Arial,&quot; size=&quot;-1&quot;&gt;allows you to forward a message in a new window. &lt;font size=&quot;-2&quot;&gt;(Only applicable in &amp;#39;Conversation View.&amp;#39;)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;    &lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    &amp;lt;Esc&amp;gt;&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Escape from input field&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Removes the cursor from your current input field.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    y &lt;font size=&quot;-2&quot;&gt;then o&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Archive and next&lt;/td&gt;&lt;td valign=&quot;top&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    class=&amp;quot;desc&amp;quot;Archive your conversation and move to the next one.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    g &lt;font size=&quot;-2&quot;&gt;then a&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Go to &amp;#39;All Mail&amp;#39;&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Takes you to &amp;#39;All Mail,&amp;#39; the storage site for all mail you&amp;#39;ve ever sent or received (and have not deleted).&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    g &lt;font size=&quot;-2&quot;&gt;then s&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Go to &amp;#39;Starred&amp;#39;&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Takes you to all conversations you have starred.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    g &lt;font size=&quot;-2&quot;&gt;then c&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Go to &amp;#39;Contacts&amp;#39;&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Takes you to your Contacts list.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    g &lt;font size=&quot;-2&quot;&gt;then d&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Go to &amp;#39;Drafts&amp;#39;&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Takes you to all drafts you have saved.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    g &lt;font size=&quot;-2&quot;&gt;then i&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Go to &amp;#39;Inbox&amp;#39;&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Returns you to the inbox.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;&quot; valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px;font-weight:bold&quot;&gt;    /&lt;/td&gt;&lt;td valign=&quot;middle&quot; align=&quot;center&quot; nowrap style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Search&lt;/td&gt;&lt;td valign=&quot;top&quot; class=&quot;&quot; style=&quot;font-family:arial;border-bottom-style:solid;border-left-style:solid;border-width:0px 0px 1px 1px;border-bottom-color:rgb(102,102,102);border-left-color:rgb(102,102,102);font-size:11px&quot;&gt;    Puts your cursor in the search box.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style=&quot;color:rgb(0,0,0);font-size:9px;font-family:verdana&quot;&gt;This is a reformatted version of &lt;a href=&quot;http://mail.google.com/support/bin/answer.py?answer=6594&quot;&gt;http://mail.google.com/support/bin/answer.py?answer=6594&lt;/a&gt;. Ya know, for printing!&lt;/span&gt;&lt;br&gt;    &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div dir=&quot;ltr&quot;&gt;Best Regards,&lt;br&gt;Jumping Qu&lt;br&gt;&lt;br&gt;------&lt;br&gt;&lt;span style=&quot;color:rgb(0,0,0);font-family:verdana,arial,sans-serif;font-size:12px;line-height:18px&quot;&gt;Failure will absolutely happen. Things will absolutely go wrong. The best way to deal with failure is to expect it and have a contingency plan in place.&lt;/span&gt;&lt;br&gt;    &lt;/div&gt;&lt;/div&gt;  &lt;/div&gt;&lt;/div&gt;  &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/4247268049055860447/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/4247268049055860447' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/4247268049055860447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/4247268049055860447'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/01/gmail-shortcuts.html' title='Gmail Shortcuts'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-2164309331808210780</id><published>2013-01-06T16:36:00.000+08:00</published><updated>2013-01-07T09:49:27.752+08:00</updated><title type='text'>Building Squid 3.2.5 with https_port on ubuntu 12.04 at AWS EC2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
For the https_port only&amp;nbsp;available if Squid is rebuilt with the&amp;nbsp;--enable-ssl option. So could not only run &quot;apt-get install squid3&quot; to install Squid, if need https_port.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
A:&lt;/div&gt;
&lt;div&gt;
apt-get update&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
apt-get install build-essential libldap2-dev libpam0g-dev libdb-dev dpatch cdbs libsasl2-dev debhelper libcppunit-dev libkrb5-dev comerr-dev libcap2-dev libexpat1-dev libxml2-dev libcap2-dev dpkg-dev curl libssl-dev libssl1.0.0 libssl1.0.0-dbg libcurl4-openssl-dev&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
B:&lt;/div&gt;
&lt;div&gt;
cd /mnt&lt;/div&gt;
&lt;div&gt;
wget &lt;a href=&quot;http://www.squid-cache.org/Versions/v3/3.2/squid-3.2.5.tar.gz&quot; target=&quot;_blank&quot;&gt;http://www.squid-cache.org/Versions/v3/3.2/squid-3.2.5.tar.gz&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
tar xzf&amp;nbsp;squid-3.2.5.tar.gz&lt;/div&gt;
&lt;div&gt;
cd&amp;nbsp;&amp;nbsp;squid-3.2.5&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;./configure --enable-ssl&lt;/div&gt;
&lt;div&gt;
make&lt;/div&gt;
&lt;div&gt;
make install&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
C:&lt;/div&gt;
&lt;div&gt;
cd /usr/local/squid/etc/&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
openssl req -new &amp;gt; bpoj.csr&lt;/div&gt;
&lt;div&gt;
openssl rsa -in privkey.pem -out bpoj.key&lt;/div&gt;
&lt;div&gt;
openssl x509 -in bpoj.csr -out bpoj.crt -req -signkey bpoj.key -days 730&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
/usr/local/squid/etc/squid.conf&lt;/div&gt;
&lt;div&gt;
&quot;&lt;/div&gt;
&lt;div&gt;
https_port 443 cert=/usr/local/squid/etc/bpoj.crt key=/usr/local/squid/etc/bpoj.key&lt;/div&gt;
&lt;div&gt;
&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
D:&lt;/div&gt;
&lt;div&gt;
/usr/local/squid/sbin/squid -z&lt;/div&gt;
&lt;div&gt;
/usr/local/squid/sbin/squid start&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
E: stunnel configuration: /usr/local/etc/stunnel/stunnel.conf&lt;/div&gt;
&lt;div&gt;
&quot;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
verify = 0&lt;/div&gt;
&lt;div&gt;
cert=/usr/local/etc/stunnel/bpoj.crt&lt;/div&gt;
&lt;div&gt;
key=/usr/local/etc/stunnel/bpoj.key&lt;/div&gt;
&lt;div&gt;
client=yes&lt;/div&gt;
&lt;div&gt;
fips=no&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
[ssl2http]&lt;/div&gt;
&lt;div&gt;
accept = intranet_ip:8080&lt;/div&gt;
&lt;div&gt;
connect = squid_server_ip:443&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
F: URL&lt;br /&gt;
&lt;div&gt;
1.&amp;nbsp;&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=1847884&quot; target=&quot;_blank&quot;&gt;http://ubuntuforums.org/showthread.php?t=1847884&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
2.&amp;nbsp;&lt;a href=&quot;http://www.bbken.org/2011/05/16/5661/&quot; target=&quot;_blank&quot;&gt;http://www.bbken.org/2011/05/16/5661/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
3.&amp;nbsp;&lt;a href=&quot;http://blog.sciencenet.cn/home.php?mod=space&amp;amp;uid=303817&amp;amp;do=blog&amp;amp;id=380853&quot; target=&quot;_blank&quot;&gt;http://blog.sciencenet.cn/home.php?mod=space&amp;amp;uid=303817&amp;amp;do=blog&amp;amp;id=380853&lt;/a&gt;&lt;br /&gt;
4.&amp;nbsp;http://www.chinagfw.org/2012/05/stunnel.html&lt;/div&gt;
&lt;div&gt;
&lt;br clear=&quot;all&quot; /&gt;
&lt;div&gt;
Best Regards,&lt;br /&gt;
Jumping Qu&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
No pain , No gain.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/2164309331808210780/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/2164309331808210780' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/2164309331808210780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/2164309331808210780'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/01/building-squid-325-with-httpsport-on.html' title='Building Squid 3.2.5 with https_port on ubuntu 12.04 at AWS EC2'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-4658538184627032855</id><published>2013-01-06T09:21:00.001+08:00</published><updated>2013-01-06T09:26:12.684+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FTP"/><category scheme="http://www.blogger.com/atom/ns#" term="中文"/><title type='text'>Filezilla client FTP客户端显示中文乱码的解决方法</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: #111111; font-size: 12px; line-height: 20px; text-align: justify;&quot;&gt;文件-站点管理-选中要登陆的站点-字符集-选择&quot;强制UTF-8″&amp;nbsp;&amp;nbsp;或使用自定义字符集&lt;/span&gt;&lt;span style=&quot;color: #111111; font-size: 12px; line-height: 20px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;GB2312,二者之一定能解决中文显示乱码的问题。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #111111; font-family: Courier New;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #111111; font-family: Courier New;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;&lt;br /&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
Best Regards,&lt;br /&gt;
Jumping Qu&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
No pain , No gain.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/4658538184627032855/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/4658538184627032855' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/4658538184627032855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/4658538184627032855'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2013/01/filezilla-client-ftp.html' title='Filezilla client FTP客户端显示中文乱码的解决方法'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-7217715995958072769</id><published>2012-12-28T10:44:00.000+08:00</published><updated>2012-12-28T10:44:06.461+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="error"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><title type='text'>SSH Socket Tunnel </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Courier New&#39;; font-size: 14px;&quot;&gt;
#/etc/ssh/sshd_config&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Courier New&#39;; font-size: 14px;&quot;&gt;
AllowTcpForwarding Yes&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Courier New&#39;; font-size: 14px;&quot;&gt;
PermitTunnel yes&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Helvetica Neue&#39;; font-size: 16px; margin-bottom: 12px; min-height: 18px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Helvetica Neue&#39;; font-size: 16px; margin-bottom: 12px;&quot;&gt;
#########error&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Helvetica Neue&#39;; font-size: 16px; margin-bottom: 12px;&quot;&gt;
channel 100: open failed: connect failed: Connection timed out&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Helvetica Neue&#39;; font-size: 16px; margin-bottom: 12px;&quot;&gt;
channel 82: open failed: administratively prohibited: open failed&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/7217715995958072769/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/7217715995958072769' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/7217715995958072769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/7217715995958072769'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2012/12/ssh-socket-tunnel.html' title='SSH Socket Tunnel '/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-4245137877698629444</id><published>2012-12-28T10:42:00.000+08:00</published><updated>2012-12-28T10:42:00.915+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chef"/><category scheme="http://www.blogger.com/atom/ns#" term="configure"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="url"/><title type='text'>Chef Reference Tips</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
1. recipes&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
&lt;a href=&quot;https://github.com/37signals/37s_cookbooks&quot;&gt;https://github.com/37signals/37s_cookbooks&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
2. rackspace Cookbook&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
&lt;a href=&quot;https://github.com/rcbops/chef-cookbooks&quot;&gt;https://github.com/rcbops/chef-cookbooks&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
https://github.com/rcbops/chef-cookbooks/tree/master/environments&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
3.&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
&lt;a href=&quot;http://wiki.opscode.com/display/chef/Chef+Repository&quot;&gt;http://wiki.opscode.com/display/chef/Chef+Repository&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
2. install client&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
curl -L &lt;a href=&quot;http://opscode.com/checf/install.sh&quot;&gt;http://opscode.com/checf/install.sh&lt;/a&gt; | bash&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
chef-client -v&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
a. install all of the embedded dependencies for Chef&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
b. install an embedded version of Ruby and Rubygems&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
c. install chef-client and knife version 10.12.0&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
3. workstation on Mac&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
&lt;a href=&quot;http://wiki.opscode.com/display/chef/Workstation+Setup+for+Mac+OS+X&quot;&gt;http://wiki.opscode.com/display/chef/Workstation+Setup+for+Mac+OS+X&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
4. Manage Nodes through the Management Console&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
&lt;a href=&quot;http://wiki.opscode.com/display/chef/Managing+Nodes+through+the+Management+Console&quot;&gt;http://wiki.opscode.com/display/chef/Managing+Nodes+through+the+Management+Console&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
5. Data Bags&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
&lt;a href=&quot;http://wiki.opscode.com/display/chef/Data+Bags&quot;&gt;http://wiki.opscode.com/display/chef/Data+Bags&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
6. knife-ec2&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
&lt;a href=&quot;http://wiki.opscode.com/display/chef/Launch+Cloud+Instances+with+Knife&quot;&gt;http://wiki.opscode.com/display/chef/Launch+Cloud+Instances+with+Knife&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
7.&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
&lt;a href=&quot;http://wiki.opscode.com/display/chef/Installing+Chef+Client+and+Chef+Solo&quot;&gt;http://wiki.opscode.com/display/chef/Installing+Chef+Client+and+Chef+Solo&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica; font-size: 12px;&quot;&gt;
8. bootstrap&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
knife bootstrap IP_ADDR -d centos5-gems&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
9.git&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
&lt;a href=&quot;http://wiki.opscode.com/display/chef/Working+with+Git+and+Cookbooks&quot;&gt;http://wiki.opscode.com/display/chef/Working+with+Git+and+Cookbooks&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
10. processing&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
a. sequence of loading cookbook components&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Libraries&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Providers&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Resources&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Attributes&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Definitions&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Recipes&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
b. compile resource collection&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
c. execution phase&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
d. Chef::Runner converges the node&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
e. Chef::Resource calls run_action&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
f. Provider is chosen by Chef::Platform&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
g.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
11. knife commands&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
knife cookbook site&amp;nbsp; search redisio&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
knife cookbook site install redisio&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
knife cookbook site&amp;nbsp; download aws&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
knife cookbook upload -a&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
#launch RabbitMQ on EC2&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
knife ec2 server create \&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
&#39;role[production]&#39; &#39;role[base]&#39; &#39;role[rabbitmq]&#39; \&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
-S my-aws -I ~/.ssh/my-aws.pem -x ubuntu \&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
-G production,rabbitmq -i ami-88f504e1 -f m1.large&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
#bootstrap the node&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
knife bootstrap 10.1.1.110 -r &#39;recipe[chef-client]&#39; -x username -P password --sudo&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
12. Cookbook LWRP&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Resource DSL describe: two possible states&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
&amp;nbsp; Current (@current_resource)&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
&amp;nbsp; Desired (@new_resource)&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Providers load_current_resource&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
13. introduce&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
http://www.slideshare.net/rberger/deploying-infrastructure-with-opscode-chef&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
&lt;a href=&quot;http://www.slideshare.net/vhata/devops-and-chef&quot;&gt;http://www.slideshare.net/vhata/devops-and-chef&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
http://www.slideshare.net/sickill/chef-or-how-to-make-computers-do-the-work-for-us&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
&lt;a href=&quot;http://www.slideshare.net/flankerfc/chef-introduction-8737820&quot;&gt;http://www.slideshare.net/flankerfc/chef-introduction-8737820&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
14. COOKBOOKS&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Attributes:&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Key-Value pairs associated with a node;Hierarchy of overrides&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Files:&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Static Files to be copied to node&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Library:&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Place to DRY up Ruby code used in Recipes&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Recipes:&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Where the Action is; Specifies resources that the chef client should take action on&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Templates:&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
ERB files to build config files on node&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
Providers/Resources&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
DIY DSL Extensions&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
You only need Recipes. Most cookbooks are just Recipe[s] and Templates.&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
15. How to create a cookbook&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
http://reiddraper.com/first-chef-recipe/&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
&lt;a href=&quot;http://blog.loftninjas.org/2011/02/16/the-power-of-chef-and-ruby/&quot;&gt;http://blog.loftninjas.org/2011/02/16/the-power-of-chef-and-ruby/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
http://wiki.opscode.com/display/chef/Guide+to+Creating+A+Cookbook+and+Writing+A+Recipe&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
&lt;a href=&quot;http://blog.afistfulofservers.net/post/2011/03/16/a-brief-chef-tutorial-from-concentrate/&quot;&gt;http://blog.afistfulofservers.net/post/2011/03/16/a-brief-chef-tutorial-from-concentrate/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
http://wiki.opscode.com/display/chef/Build+a+LAMP+Stack&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
16.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
&lt;a href=&quot;http://allanfeid.com/content/cooking-chef&quot;&gt;http://allanfeid.com/content/cooking-chef&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
17. workstation setup&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px;&quot;&gt;
http://wiki.opscode.com/display/chef/Installing+Chef+Server+Manually#InstallingChefServerManually-ConfiguretheCommandLineClient&lt;/div&gt;
&lt;div style=&quot;font-family: Courier; font-size: 12px; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/4245137877698629444/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/4245137877698629444' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/4245137877698629444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/4245137877698629444'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2012/12/chef-reference-tips.html' title='Chef Reference Tips'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-7844815512663235342</id><published>2012-12-24T14:49:00.001+08:00</published><updated>2012-12-24T14:49:53.396+08:00</updated><title type='text'>URLs of optimizing mysql</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;a href=&quot;https://tools.percona.com&quot;&gt;https://tools.percona.com&lt;/a&gt;&lt;div&gt;&lt;a href=&quot;https://raw.github.com/rackerhacker/MySQLTuner-perl/master/mysqltuner.pl&quot;&gt;https://raw.github.com/rackerhacker/MySQLTuner-perl/master/mysqltuner.pl&lt;/a&gt;&lt;br&gt;    &lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://github.com/rackerhacker/MySQLTuner-perl/blob/master/mysqltuner.pl&quot;&gt;https://github.com/rackerhacker/MySQLTuner-perl/blob/master/mysqltuner.pl&lt;/a&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.howtoforge.com/tuning-mysql-performance-with-mysqltuner&quot;&gt;http://www.howtoforge.com/tuning-mysql-performance-with-mysqltuner&lt;/a&gt;&lt;br&gt;    &lt;/div&gt;&lt;div&gt;&lt;br clear=&quot;all&quot;&gt;&lt;div&gt;Best Regards,&lt;br&gt;Jumping Qu&lt;br&gt;&lt;br&gt;------&lt;br&gt;No pain , No gain.&lt;br&gt;&lt;/div&gt;  &lt;/div&gt;&lt;/div&gt;  &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/7844815512663235342/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/7844815512663235342' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/7844815512663235342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/7844815512663235342'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2012/12/urls-of-optimizing-mysql.html' title='URLs of optimizing mysql'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-8786611132071078949</id><published>2012-12-07T10:38:00.001+08:00</published><updated>2013-01-06T09:25:45.981+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="error"/><category scheme="http://www.blogger.com/atom/ns#" term="master"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="slave"/><title type='text'>mysql: incorrect key file for table ; try to repair it!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This morning one of our instances on EC2 was outage, on which running a mysql service. When it&#39;s back, the slaver mysql reported there was a error of a table&#39;s MYI.&lt;br /&gt;
&lt;br /&gt;
Tried to resolve the issue by the following STEPs:&lt;br /&gt;
1.&amp;nbsp;&lt;span style=&quot;background-color: white; color: #454545; font-family: tahoma, helvetica, arial; font-size: 14px; line-height: 21px; text-align: -webkit-auto;&quot;&gt;myisamchk -of &amp;nbsp;/path/of/file.MYI&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #454545; font-family: tahoma, helvetica, arial; font-size: 14px; line-height: 21px; text-align: -webkit-auto;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #454545; font-family: tahoma, helvetica, arial; font-size: 14px; line-height: 21px; text-align: -webkit-auto;&quot;&gt;myisamchk -r &amp;nbsp;/path/of/file.MYI&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #454545; font-family: tahoma, helvetica, arial; font-size: 14px; line-height: 21px; text-align: -webkit-auto;&quot;&gt;3. mysql&amp;gt; stop slaver;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #454545; font-family: tahoma, helvetica, arial; font-size: 14px; line-height: 21px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; mysql&amp;gt; start slaver;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/8786611132071078949/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/8786611132071078949' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/8786611132071078949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/8786611132071078949'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2012/12/mysql-incorrect-key-file-for-table-try.html' title='mysql: incorrect key file for table ; try to repair it!'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-474096088304395056.post-8511341508927559953</id><published>2012-11-26T08:37:00.000+08:00</published><updated>2012-11-26T08:38:04.503+08:00</updated><title type='text'>Win7更改到英文版</title><content type='html'>Firefox&lt;br&gt;1. 在 Firefox 地址栏输入 about:config，找到 general.useragent.locale 把其值&lt;strong&gt;zh-CN&lt;/strong&gt; &lt;strong&gt;&lt;/strong&gt; 改为 &lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;en-US&lt;/strong&gt;&lt;br&gt;2. download and install &lt;br&gt;&lt;a href=&quot;ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/9.0/win32/xpi/en-US.xpi&quot; target=&quot;_blank&quot;&gt;ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/9.0/win32/xpi/en-US.xpi&lt;/a&gt;&lt;br&gt;   &lt;br&gt;Chrome&lt;br&gt;设置-高级选项-更改字体和语言设置-语言-谷歌浏览器语言-下拉菜单选择english&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Best Regards,&lt;br&gt;Jumping Qu&lt;br&gt;&lt;br&gt;------&lt;br&gt;No pain , No gain.&lt;br&gt;&lt;br&gt; &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8481262877601371&quot;;
/* 728x90, 创建于 08-4-26 */
google_ad_slot = &quot;7488731745&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newrice.blogspot.com/feeds/8511341508927559953/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/474096088304395056/8511341508927559953' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/8511341508927559953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/474096088304395056/posts/default/8511341508927559953'/><link rel='alternate' type='text/html' href='http://newrice.blogspot.com/2012/11/win7.html' title='Win7更改到英文版'/><author><name>quzhengping</name><uri>http://www.blogger.com/profile/18402989032902065193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>