<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>i&#039;m chris</title>
	<atom:link href="http://www.beingdo.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.beingdo.com</link>
	<description>I fall in love with you even though there will be no result !</description>
	<lastBuildDate>Wed, 20 Apr 2011 16:30:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Catch the Star That Will Take You to Your Dreams</title>
		<link>http://www.beingdo.com/?p=50</link>
		<comments>http://www.beingdo.com/?p=50#comments</comments>
		<pubDate>Wed, 20 Apr 2011 16:28:02 +0000</pubDate>
		<dc:creator>chris</dc:creator>
		
		<guid isPermaLink="false">http://www.beingdo.com/?p=50</guid>
		<description><![CDATA[Catch the star that holds your destiny, the one that forever twinkles within your heart. Take advantage of precious opportunities while they still sparkle before you. Always believe that your ultimate goal is attainable as long as you commit yourself &#8230; <a href="http://www.beingdo.com/?p=50" class="more-link">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Catch the star that holds your destiny, the one that forever twinkles within your heart. Take advantage of precious opportunities while they still sparkle before you. Always believe that your ultimate goal is attainable as long as you commit yourself to it.<br />
Though barriers may sometimes stand in the way of your dreams, remember that your destiny is hiding behind them. Accept the fact that not everyone is going to approve of the choices you&#8217;ve made, have faith in your judgment, catch the star that twinkles in your heart, and it will lead you to your destiny&#8217;s path. Follow that pathway and uncover the sweet sunrises that await you.<br />
Take pride in your accomplishments, as they are stepping stones to your dreams. Understand that you may make mistakes, but don&#8217;t let them discourage you. Value your capabilities and talents for they are what make you truly unique. The greatest gifts in life are not purchased, but acquired through hard work and determination.<br />
Find the star that twinkles in your heart for you alone are capable of making your brightest dreams come true. Give your hopes everything you&#8217;ve got and you will catch the star that holds your destiny.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.beingdo.com/?feed=rss2&#038;p=50</wfw:commentRss>
		<slash:comments>45</slash:comments>
		</item>
		<item>
		<title>Nginx Block And Deny IP Address OR Network Subnets</title>
		<link>http://www.beingdo.com/?p=42</link>
		<comments>http://www.beingdo.com/?p=42#comments</comments>
		<pubDate>Fri, 08 Apr 2011 05:40:08 +0000</pubDate>
		<dc:creator>chris</dc:creator>
		
		<guid isPermaLink="false">http://www.beingdo.com/?p=42</guid>
		<description><![CDATA[How do I block or deny access based on the host name or IP address of the client visiting website under nginx web server? Nginx comes with a simple module called ngx_http_access_module to allow or deny access to IP address. &#8230; <a href="http://www.beingdo.com/?p=42" class="more-link">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>How do I block or deny access based on the host name or IP address of the client visiting website under nginx web server?</p>
<p>Nginx comes with a simple module called ngx_http_access_module to allow or deny access to IP address. The syntax is as follows:</p>
<pre>deny IP;
deny subnet;
allow IP;
allow subnet;
# block all ips
deny    all;
# allow all ips
allow    all;</pre>
<p>Note rules are checked in the order of their record to the first match.</p>
<h2>How Do I Configure Nginx To Block IPs?</h2>
<p>Edit nginx.conf file, enter (note my nginx path is set to /usr/local/nginx/, replace this according to your setup):<br />
<code># cd /usr/local/nginx/conf/<br />
# vi nginx.conf</code><br />
Add the following line in http section:</p>
<pre>## Block spammers and other unwanted visitors  ##
 include blockips.conf;</pre>
<p>Save and close the file. Finally, create blockips.conf in /usr/local/nginx/conf/, enter:<br />
<code># vi blockips.conf</code><br />
Append / add entries as follows:</p>
<pre>deny 1.2.3.4;
deny 91.212.45.0/24;
deny 91.212.65.0/24;</pre>
<p>Save and close the file. Test the config file, enter:<br />
<code># /usr/local/nginx/sbin/nginx -t</code><br />
Sample outputs:</p>
<pre>the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful</pre>
<p>Reload the new config, enter:<br />
<code># /usr/local/nginx/sbin/nginx -s reload</code></p>
<h3>How Do I Deny All and Allow Only Intranet/LAN IPs?</h3>
<p>Edit config file as follows:</p>
<pre>location / {
  # block one workstation
  deny    192.168.1.1;
  # allow anyone in 192.168.1.0/24
  allow   192.168.1.0/24;
  # drop rest of the world
  deny    all;
}</pre>
<p>Granted access to network 192.168.1.0/24 with the exception of the address 192.168.1.1.</p>
<h3>How Do I Customize HTTP 403 Forbidden Error Messages?</h3>
<p>Create a file called error403.html in default document root, enter:<br />
<code># cd /usr/local/nginx/html<br />
# vi error403.html</code></p>
<pre>&lt;html&gt;
&lt;head&gt;&lt;title&gt;Error 403 - IP Address Blocked&lt;/title&gt;&lt;/head&gt;
&lt;body&gt;
Your IP Address is blocked. If you this an error, please contact webmaster with your IP at webmaster@example.com
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>If SSI enabled, you can display the client IP easily from the html page itself:</p>
<pre>Your IP Address is &lt;!--#echo var="REMOTE_ADDR" --&gt; blocked.</pre>
<p>Save and close the file. Edit your nginx.conf file, enter:<br />
<code># vi nginx.conf</code></p>
<pre># redirect server error pages to the static page
 error_page   403  /error403.html;
 location = /error403.html {
         root   html;
 }</pre>
<p>Save and close the file. Reload nginx, enter:<br />
<code># /usr/local/nginx/sbin/nginx -s reload</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.beingdo.com/?feed=rss2&#038;p=42</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>the 2nd five-week plan</title>
		<link>http://www.beingdo.com/?p=36</link>
		<comments>http://www.beingdo.com/?p=36#comments</comments>
		<pubDate>Mon, 06 Dec 2010 15:26:50 +0000</pubDate>
		<dc:creator>chris</dc:creator>
		
		<guid isPermaLink="false">http://www.beingdo.com/?p=36</guid>
		<description><![CDATA[five-week plan <a href="http://www.beingdo.com/?p=36" class="more-link">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Today is the first day of my second five-week plan. In a bad temper, because of the work. ?Too many things to do , i&#8217;m exhausted. In the office, the relations between staff are so complex. Talked with my roommate, he told me all I have to do is what I should do. He may be right, I have my own plan,ideal,goal ?and my own way of dealing ?with things. Don&#8217;t be influenced by others.</p>
<p>To summarize my first five-week plan,</p>
<p>1) I watched 70% of the video tutorial</p>
<p>2) Read a book,郎咸平《我们的日子为什么这么难》</p>
<p>Ok, now let&#8217;s talk about my second five-week plan:</p>
<p>1) I&#8217;ll keep learning thinkphp, and use it to actual project.</p>
<p>2) Read one book，白岩松《幸福了吗?》</p>
<p>HOLD ON ! AND BE HAPPY!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.beingdo.com/?feed=rss2&#038;p=36</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>my five-week plan</title>
		<link>http://www.beingdo.com/?p=31</link>
		<comments>http://www.beingdo.com/?p=31#comments</comments>
		<pubDate>Tue, 23 Nov 2010 03:40:45 +0000</pubDate>
		<dc:creator>chris</dc:creator>
		
		<guid isPermaLink="false">http://www.beingdo.com/?p=31</guid>
		<description><![CDATA[php <a href="http://www.beingdo.com/?p=31" class="more-link">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>As you may heard about the?Five-Year Plans of?China, now i have made my Five-Week Plans, lol. I&#8217;ve learned nothing of computer technology for a very long time, no technology no money, i do want to earn more money.</p>
<p>My first five-week plan has began on 2010.11.01. At first, i wanted to learn flex in this plan period, but there is a new project to do , my company wants to build a system which users can make an appointment to the doctor. This is ?complicated, and needs 3 person to develop it. To built this system rapidly, we chose the &#8220;thinkphp&#8221; framework, it&#8217;s a fast, compatible and simple oop mvc php framework. So in the least time of this plan period, i&#8217;ll learn &#8220;thinkphp&#8221;.</p>
<p>So, work hard &amp; good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.beingdo.com/?feed=rss2&#038;p=31</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>Install Apache MySQL, PHP and phpmyadmin on Ubuntu10.10</title>
		<link>http://www.beingdo.com/?p=19</link>
		<comments>http://www.beingdo.com/?p=19#comments</comments>
		<pubDate>Mon, 15 Nov 2010 23:29:46 +0000</pubDate>
		<dc:creator>chris</dc:creator>
		
		<guid isPermaLink="false">http://www.beingdo.com/?p=19</guid>
		<description><![CDATA[ubuntu lamp php apache mysql phpmyadmin <a href="http://www.beingdo.com/?p=19" class="more-link">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p><strong>Step 1:</strong> You start by installing mysql</p>
<blockquote>
<pre>sudo apt-get install mysql-client mysql-server</pre>
</blockquote>
<p>Specify  new password for the MySQl “root” user when prompted. Repeat it for a  second time and you would have MySQL server and client installed.</p>
<p><strong>Step 2:</strong> Next,?<span style="color: #737373;">install</span> Apache2:</p>
<blockquote><p><code><span>sudo apt-get install apache2</span></code></p></blockquote>
<p>And you  get apache2 installed as well. To double check, point your browser to  http://localhost, and you should see the Apache2 placeholder page says &#8220;it works&#8221;.</p>
<p><a href="http://www.beingdo.com/wp-content/uploads/2010/11/1.jpg"><img class="aligncenter size-medium wp-image-28" title="1" src="http://www.beingdo.com/wp-content/uploads/2010/11/1-300x137.jpg" alt="" width="300" height="137" /></a></p>
<p><strong>Step 3:</strong> To install support for PHP, do the usual</p>
<blockquote>
<pre>sudo apt-get install php5 libapache2-mod-php5</pre>
</blockquote>
<p>To verify that everything installed correctly and php support is enabled, you need to<strong>restart apache</strong> by doing this</p>
<blockquote>
<pre>sudo /etc/init.d/apache2 restart</pre>
</blockquote>
<p>Create a test php file called?<em>info.php</em>, using a text editor of your choice (say gedit)</p>
<blockquote>
<pre>sudo gedit /var/www/info.php</pre>
</blockquote>
<p>and paste the following content and save the file</p>
<blockquote>
<pre>&lt;?php phpinfo(); ?&gt;</pre>
</blockquote>
<p>Now open the following page http://localhost/info.php and you should see the page like this.</p>
<p><a href="http://www.beingdo.com/wp-content/uploads/2010/11/2.jpg"><img class="aligncenter size-medium wp-image-27" title="2" src="http://www.beingdo.com/wp-content/uploads/2010/11/2-300x191.jpg" alt="" width="300" height="191" /></a></p>
<p><strong>Step 4:</strong> To  make MySQL, php and apache talk among themselves, you would have to  install php5-mysql, below I am listing some more useful packages that  you might want to install</p>
<blockquote><p>sudo  apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear  php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps  php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc  php5-xsl php5-common</p></blockquote>
<p>Now  refresh the info.php page that you have open in your browser and you  should be able to see the support for mysql if you search for it by  doing Ctrl+f, but before that don’t forget to restart apache again (sudo  /etc/init.d/apache2 restart)</p>
<p><a href="http://www.beingdo.com/wp-content/uploads/2010/11/3.jpg"><img class="aligncenter size-medium wp-image-26" title="3" src="http://www.beingdo.com/wp-content/uploads/2010/11/3-300x141.jpg" alt="" width="300" height="141" /></a></p>
<p><strong>Step 5:</strong> Finally install phpmyadmin</p>
<table style="height: 23px;" border="0" width="24" align="center">
<tbody>
<tr>
<td colspan="3"></td>
</tr>
</tbody>
</table>
<blockquote>
<pre>sudo apt-get install phpmyadmin</pre>
</blockquote>
<p>It would  ask if you want to configure it automatically for apache or lightppd  choose apache (by pressing “spacebar” to display a star as shown below  and then use tab to navigate to Ok and press enter.</p>
<p><a href="http://www.beingdo.com/wp-content/uploads/2010/11/last4.jpg"><img class="aligncenter size-medium wp-image-25" title="last4" src="http://www.beingdo.com/wp-content/uploads/2010/11/last4-300x226.jpg" alt="" width="300" height="226" /></a></p>
<p>It would be automatically configured, however it would ask if you want a database installed and configured, choose?<strong>yes</strong> and press enter</p>
<p><a href="http://www.beingdo.com/wp-content/uploads/2010/11/last3.jpg"><img class="aligncenter size-medium wp-image-24" title="last3" src="http://www.beingdo.com/wp-content/uploads/2010/11/last3-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>On the next screen you would be asked to enter the MySQL root password, that you provided in first step</p>
<p><a href="http://www.beingdo.com/wp-content/uploads/2010/11/last2.jpg"><img class="aligncenter size-medium wp-image-23" title="last2" src="http://www.beingdo.com/wp-content/uploads/2010/11/last2-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>next it would ask you to enter a password to be used by phpmyadmin to register with the<span style="color: #737373;">database</span> (basically  it would create a user called “phpmyadmin” the password is for that,  most likely you won’t be needing this password ever. You can even choose  to assign a random password for it.</p>
<p><a href="http://www.beingdo.com/wp-content/uploads/2010/11/last.jpg"><img class="aligncenter size-medium wp-image-22" title="last" src="http://www.beingdo.com/wp-content/uploads/2010/11/last-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Confirm that password on the next screen. Once you have made your  choices the installation would finish and you should be able to access  phpmyadmin by pointing your web browser to http://localhost/phpmyadmin/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.beingdo.com/?feed=rss2&#038;p=19</wfw:commentRss>
		<slash:comments>166</slash:comments>
		</item>
		<item>
		<title>install openvpn and gopenvpen on ubuntu 10.10</title>
		<link>http://www.beingdo.com/?p=15</link>
		<comments>http://www.beingdo.com/?p=15#comments</comments>
		<pubDate>Mon, 15 Nov 2010 23:15:48 +0000</pubDate>
		<dc:creator>chris</dc:creator>
		
		<guid isPermaLink="false">http://www.beingdo.com/?p=15</guid>
		<description><![CDATA[ubuntu openvpn <a href="http://www.beingdo.com/?p=15" class="more-link">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>First,open a terminal ,type &#8220;sudo apt-get install openvpn&#8221; to install openvpn</p>
<p>Then,copy your config files (ca.crt, client.ovpn, *.crt,*.key) to /etc/openvpn</p>
<p>Now,let&#8217;s install the gopenvpn</p>
<p>wget <a href="http://mirror.sifnt.net.au/linux/dists/jaunty/main/binary-i386/gopenvpn_0.6-0sifnt_i386.deb">http://mirror.sifnt.net.au/linux/dists/jaunty/main/binary-i386/gopenvpn_0.6-0sifnt_i386.deb</a><br />
sudo dpkg -i gopenvpn_0.6-0sifnt_i386.deb</p>
<p>ok,now,we can run &#8220;Applications-&gt;Internet-&gt;gopenvpn&#8221;, input your password, you can see the icon on the Panel turn to green.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.beingdo.com/?feed=rss2&#038;p=15</wfw:commentRss>
		<slash:comments>113</slash:comments>
		</item>
		<item>
		<title>hesitating</title>
		<link>http://www.beingdo.com/?p=9</link>
		<comments>http://www.beingdo.com/?p=9#comments</comments>
		<pubDate>Wed, 01 Sep 2010 14:31:47 +0000</pubDate>
		<dc:creator>chris</dc:creator>
		
		<guid isPermaLink="false">http://www.beingdo.com/?p=9</guid>
		<description><![CDATA[Today, I tested the speed of my two sites, the result was less than satisfactory. So, I considered to use the internal host. But it says I must have an ICP ?license , and the host has so few service. &#8230; <a href="http://www.beingdo.com/?p=9" class="more-link">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Today, I tested the speed of my two sites, the result was less than satisfactory. So, I considered to use the internal host. But it says I must have an ICP ?license , and the host has so few service.</p>
<p> <img src='http://www.beingdo.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> , I have 4 days to test the host in USA, come on!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.beingdo.com/?feed=rss2&#038;p=9</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>new beginning</title>
		<link>http://www.beingdo.com/?p=4</link>
		<comments>http://www.beingdo.com/?p=4#comments</comments>
		<pubDate>Tue, 31 Aug 2010 16:38:27 +0000</pubDate>
		<dc:creator>chris</dc:creator>
		
		<guid isPermaLink="false">http://www.beingdo.com/?p=4</guid>
		<description><![CDATA[Today,?I make two new sites. One is this, my new blog. The other, is a site like GroupOn,www.bufan.cc. so tired, go to sleep. Good luck~]]></description>
			<content:encoded><![CDATA[<p>Today,?I make two new sites. One is this, my new blog. The other, is a site like GroupOn,<a href="http://www.bufan.cc">www.bufan.cc</a>.</p>
<p>so tired, go to sleep. Good luck~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.beingdo.com/?feed=rss2&#038;p=4</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
	</channel>
</rss>

