<?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"
	>

<channel>
	<title>Think Your Mind</title>
	<atom:link href="http://karyleong.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://karyleong.net</link>
	<description>Think of what to write on it now! Knowledge is accumulated bit by bit.</description>
	<pubDate>Sun, 23 May 2010 05:27:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>Best Encode for PHP5 and support symfony</title>
		<link>http://karyleong.net/?p=100</link>
		<comments>http://karyleong.net/?p=100#comments</comments>
		<pubDate>Sun, 23 May 2010 05:27:18 +0000</pubDate>
		<dc:creator>kary</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Symfony]]></category>

		<category><![CDATA[encode symfony]]></category>

		<category><![CDATA[encrypt symfony files]]></category>

		<category><![CDATA[ionCube]]></category>

		<guid isPermaLink="false">http://karyleong.net/?p=100</guid>
		<description><![CDATA[In symfony, encoded classes excluded from config_autoload_yml.php. Because when symfony found the classes and read the contents, symfony can not find the words that contain abstract class&#124;interface, final class&#124;interface, class.
Following is the solution to make it work.
1. create config_handlers.yml in sf_root_dir/config folder and add
config/autoload.yml:
  class:    myAutoloadConfigHandler

2. add myAutoloadConfigHandler.class.php to sf_root_dir/config

]]></description>
			<content:encoded><![CDATA[<p>In symfony, encoded classes excluded from config_autoload_yml.php. Because when symfony found the classes and read the contents, symfony can not find the words that contain abstract class|interface, final class|interface, class.</p>
<p>Following is the solution to make it work.</p>
<p>1. create config_handlers.yml in sf_root_dir/config folder and add</p>
<pre>config/autoload.yml:
  class:    myAutoloadConfigHandler
</pre>
<p>2. add myAutoloadConfigHandler.class.php to sf_root_dir/config<br />
<code><br />
<?php<br />
class myAutoloadConfigHandler extends sfAutoloadConfigHandler<br />
{<br />
	static public function parseFile($path, $file, $prefix)<br />
  {<br />
    $mapping = array();<br />
    $content = file_get_contents($file);<br />
    preg_match_all('~^\s*(?:abstract\s+|final\s+)?(?:class|interface)\s+(\w+)~mi', $content, $classes);</p>
<p>    if (count($classes[1]) == 0)<br />
    {<br />
      if (stristr($content, 'ioncube_loader') !== FALSE)<br />
      {<br />
				preg_match_all('~^//\s*(?:abstract\s+|final\s+)?(?:class|interface)\s+(\w+)~mi',<br />
														 $content, $classes);<br />
      }<br />
    }</p>
<p>    foreach ($classes[1] as $class)<br />
    {<br />
      $localPrefix = '';<br />
      if ($prefix)<br />
      {<br />
        // FIXME: does not work for plugins installed with a symlink<br />
        preg_match('~^'.str_replace('\*', '(.+?)', preg_quote(str_replace('/', DIRECTORY_SEPARATOR, $path), '~')).'~', str_replace('/', DIRECTORY_SEPARATOR, $file), $match);<br />
        if (isset($match[$prefix]))<br />
        {<br />
          $localPrefix = $match[$prefix].'/';<br />
        }<br />
      }</p>
<p>      $mapping[$localPrefix.strtolower($class)] = $file;<br />
    }<br />
    return $mapping;<br />
  }<br />
}<br />
</code></p>
<p>3. change ProjectConfiguration.class.php and add myAutoloadConfigHandler.class.php<br />
<code><br />
  public function setup()<br />
  {<br />
    require_once(sfConfig::get('sf_root_dir').'/config/myAutoloadConfigHandler.class.php');<br />
</code></p>
<p>4. using <a href="http://www.ioncube.com/sa_encoder.php?xp=YAQHKD" target="_blank">ionCude Encoder</a> to encode the files and add comment &#8220;class sfClassName&#8221; to the encode file.<br />
Example: myTools.class.php<br />
<code><br />
<?php //00451<br />
// IONCUBE ENCODER 6.5 EVALUATION<br />
// THIS LICENSE MESSAGE IS ONLY ADDED BY THE EVALUATION ENCODER AND<br />
// IS NOT PRESENT IN PRODUCTION ENCODED FILES</p>
<p><strong>// class myTools</strong><br />
if(!extension_loaded(&#8217;ionCube Loader&#8217;)){$__oc=strtolower(substr(php_uname(),0,3));$__ln=&#8217;ioncube_loader_&#8217;.$__oc.&#8217;_&#8217;.substr(phpversion(),0,3).(($__oc==&#8217;win&#8217;)?&#8217;.dll&#8217;:&#8217;.so&#8217;);@dl($__ln);if(function_exists(&#8217;_il_exec&#8217;)){return _il_exec();}$__ln=&#8217;/ioncube/&#8217;.$__ln;$__oid=$__id=realpath(ini_get(&#8217;extension_dir&#8217;));$__here=dirname(__FILE__);if(strlen($__id)>1&#038;&#038;$__id[1]==&#8217;:'){$__id=str_replace(&#8217;\\&#8217;,'/&#8217;,substr($__id,2));$__here=str_replace(&#8217;\\&#8217;,'/&#8217;,substr($__here,2));}$__rd=str_repeat(&#8217;/..&#8217;,substr_count($__id,&#8217;/')).$__here.&#8217;/';$__i=strlen($__rd);while($__i&#8211;){if($__rd[$__i]==&#8217;/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die(&#8217;The file &#8216;.__FILE__.&#8221; is corrupted.\n&#8221;);}if(function_exists(&#8217;_il_exec&#8217;)){return _il_exec();}echo(&#8217;Site error: the file <b>&#8216;.__FILE__.&#8217;</b> requires the ionCube PHP Loader &#8216;.basename($__ln).&#8217; to be installed by the site administrator.&#8217;);exit(199);<br />
?><br />
4+oV5Djj/RjxxiMy5hHec2J9iSWGrP53JymQThUitFyI+rDD9TZc2z8BXRg+rQoi2zlgyd1jv271<br />
LGLiuMCfZM9Wyo97ZTp208rr6ekINq15uTrYKONgK8dPivUR3GzHKXjbKRNv+toLg2bgkSIlKTzC<br />
3KaXVdeReVGarLrmVxaC7L3pJ4Lt1Nex/HVwg3foRqvLGrv0vowUiL1k4uv87wuEJhST20s/KQ6M<br />
8JwWXKksGBPbJ3cDMQuODDnHqNo//6G0VT4kAb4NP/LU9ejObXbOZx25YnWCgS1kyeeANpe++7Tv<br />
rGwE4smPZpXuQawA5zZR2esxUiftfJXP4Pc0QmUUJRwcQhf2brOmWtb9JchulRNIRLgUxzmcYXk3<br />
2z4KuvH3XkH/r2MnNXwiL1T172aBUF65ScDqVF3gZqJX1sOqvDwfqcVOPTA7PV1WUcGFbM58y0Cs<br />
</code></p>
<p>5. Now your files will be able auto load by the symfony.</p>
<p>6. Some link for ionCube<br />
* The ionCube Home page<br />
<a href="http://www.ioncube.com?xp=YAQHKD">ioncube.com</a><br />
* The Standalone Encoder<br />
<a href="http://www.ioncube.com/sa_encoder.php?xp=YAQHKD"><br />
ionCube Standalone PHP Encoder</a><br />
* The online Encoder<br />
<a href="http://www.ioncube.com/online_encoder.php?xp=YAQHKD"><br />
ionCube Online PHP Encoder</a></p>
<p>7. Finally, I have write a task to encode the files, if you need the task file, please send a email to me. I will send the file to you.</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Think%20Your%20Mind&amp;siteurl=http%3A%2F%2Fkaryleong.net%2F&amp;linkname=Best%20Encode%20for%20PHP5%20and%20support%20symfony&amp;linkurl=http%3A%2F%2Fkaryleong.net%2F%3Fp%3D100"><img src="http://karyleong.net/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://karyleong.net/?feed=rss2&amp;p=100</wfw:commentRss>
		</item>
		<item>
		<title>Symfony 1.2 APC Cache</title>
		<link>http://karyleong.net/?p=96</link>
		<comments>http://karyleong.net/?p=96#comments</comments>
		<pubDate>Fri, 14 May 2010 11:06:33 +0000</pubDate>
		<dc:creator>kary</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://karyleong.net/?p=96</guid>
		<description><![CDATA[;##### APC config ###
;apc.enabled = On
apc.enable_cli = On
apc.shm_size = 128
Doctrine cache



As of sf 1.4
http://www.symfony-project.org/advent_calendar/12/en
http://www.doctrine-project.org/documentation/manual2/1_0/en/one-page#caching
http://www.sfblog.fr/page/utiliser-memcache-avec-doctrine-sous-symfony
Setup for sf 1.2
In the ProjectConfiguration:


  public function initialize()
  {
    //enable Doctrine cache
    $manager = Doctrine_Manager::getInstance();
    $cacheDriver = new Doctrine_Cache_Apc();
    $manager-&#62;setAttribute(Doctrine::ATTR_RESULT_CACHE, $cacheDriver);
  }


Example query (in UllFlowAppTable.class.php):


  [...]]]></description>
			<content:encoded><![CDATA[<p>;##### APC config ###<br />
;apc.enabled = On<br />
apc.enable_cli = On<br />
apc.shm_size = 128</p>
<h1>Doctrine cache</h1>
<p><!--</p>
<div class='clear_right'></div>
<p>&#8211;><!-- to force the parent-box to enclose the floating divs --></p>
<p><!-- end of ull_wiki_header--></p>
<div class="ull_wiki_main">
<h1>As of sf 1.4</h1>
<p><a class="link_new_window" title="Link opens in a new  window" href="http://www.symfony-project.org/advent_calendar/12/en" target="_blank">http://www.symfony-project.org/advent_calendar/12/en</a></p>
<p><a class="link_new_window" title="Link opens in a new  window" href="http://www.doctrine-project.org/documentation/manual2/1_0/en/one-page#caching" target="_blank">http://www.doctrine-project.org/documentation/manual2/1_0/en/one-page#caching</a></p>
<p><a class="link_new_window" title="Link opens in a new  window" href="http://www.sfblog.fr/page/utiliser-memcache-avec-doctrine-sous-symfony" target="_blank">http://www.sfblog.fr/page/utiliser-memcache-avec-doctrine-sous-symfony</a></p>
<h1>Setup for sf 1.2</h1>
<p>In the ProjectConfiguration:</p>
<ul>
<li>
<pre>  public function initialize()
  {
    //enable Doctrine cache
    $manager = Doctrine_Manager::getInstance();
    $cacheDriver = new Doctrine_Cache_Apc();
    $manager-&gt;setAttribute(Doctrine::ATTR_RESULT_CACHE, $cacheDriver);
  }</pre>
</li>
</ul>
<p>Example query (in UllFlowAppTable.class.php):</p>
<ul>
<li>
<pre>  /**
   * Find by Id
   *
   * @param integer $id
   * @return Doctrine_Record
   */
  public static function findById($id)
  {
    $q = new Doctrine_Query;
    $q
      -&gt;from('UllFlowApp')
      -&gt;where('id = ?', $id)
      -&gt;useResultCache(true)
    ;

    return $q-&gt;execute()-&gt;getFirst();
  }</pre>
</li>
</ul>
</div>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Think%20Your%20Mind&amp;siteurl=http%3A%2F%2Fkaryleong.net%2F&amp;linkname=Symfony%201.2%20APC%20Cache&amp;linkurl=http%3A%2F%2Fkaryleong.net%2F%3Fp%3D96"><img src="http://karyleong.net/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://karyleong.net/?feed=rss2&amp;p=96</wfw:commentRss>
		</item>
		<item>
		<title>Compile apc and ssh2 for PHP 5.2.xx in Linux (ssh2, apc)</title>
		<link>http://karyleong.net/?p=93</link>
		<comments>http://karyleong.net/?p=93#comments</comments>
		<pubDate>Fri, 14 May 2010 09:00:23 +0000</pubDate>
		<dc:creator>kary</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[apc]]></category>

		<category><![CDATA[centos]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[ssh2]]></category>

		<guid isPermaLink="false">http://karyleong.net/?p=93</guid>
		<description><![CDATA[APC for Php 5.2.xx:

wget http://pecl.php.net/package/apc
unzip the download file
run phpize in the unzip folder
./configure &#8211;enable-apc &#8211;with-php-config=/usr/local/bin/php-config
make &#38;&#38; make install
enable the apc.so in php.ini

SSH2 for Php 5.2.xx

wget http://www.libssh2.org/download/libssh2-1.2.5.tar.gz
wget http://pecl.php.net/get/ssh2
unzip all downloaded files
in libssh2 folder
./configure &#38;&#38; make &#38;&#38; make install
in SSH2 folder
phpize
./configure &#38;&#38; make &#38;&#38; make install
enable the ssh2.so in php.ini


    

	]]></description>
			<content:encoded><![CDATA[<p>APC for Php 5.2.xx:</p>
<ol>
<li>wget http://pecl.php.net/package/apc</li>
<li>unzip the download file</li>
<li>run phpize in the unzip folder</li>
<li>./configure &#8211;enable-apc &#8211;with-php-config=/usr/local/bin/php-config</li>
<li>make &amp;&amp; make install</li>
<li>enable the apc.so in php.ini</li>
</ol>
<p>SSH2 for Php 5.2.xx</p>
<ol>
<li>wget http://www.libssh2.org/download/libssh2-1.2.5.tar.gz</li>
<li>wget http://pecl.php.net/get/ssh2</li>
<li>unzip all downloaded files</li>
<li>in libssh2 folder</li>
<li>./configure &amp;&amp; make &amp;&amp; make install</li>
<li>in SSH2 folder</li>
<li>phpize</li>
<li>./configure &amp;&amp; make &amp;&amp; make install</li>
<li>enable the ssh2.so in php.ini</li>
</ol>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Think%20Your%20Mind&amp;siteurl=http%3A%2F%2Fkaryleong.net%2F&amp;linkname=Compile%20apc%20and%20ssh2%20for%20PHP%205.2.xx%20in%20Linux%20%28ssh2%2C%20apc%29&amp;linkurl=http%3A%2F%2Fkaryleong.net%2F%3Fp%3D93"><img src="http://karyleong.net/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://karyleong.net/?feed=rss2&amp;p=93</wfw:commentRss>
		</item>
		<item>
		<title>Update Boost in CentOS 5 x86_64</title>
		<link>http://karyleong.net/?p=91</link>
		<comments>http://karyleong.net/?p=91#comments</comments>
		<pubDate>Mon, 10 May 2010 03:28:59 +0000</pubDate>
		<dc:creator>kary</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[boost]]></category>

		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://karyleong.net/?p=91</guid>
		<description><![CDATA[yum install libicu-devel
yum install libicu
yum install icu
export ICU_PATH=/usr
export ICU_LINK=-L/usr/lib64
export EXPAT_INCLUDE=/usr/include
export EXPAT_LIBPATH=/usr/lib64
yum install openmpi-devel
yum install expat-devel
./bootstrap.sh --prefix=/usr

Edit project-config.jam
add
using mpi;
./bjam install

    

	]]></description>
			<content:encoded><![CDATA[<p><code>yum install libicu-devel<br />
yum install libicu<br />
yum install icu</p>
<p>export ICU_PATH=/usr<br />
export ICU_LINK=-L/usr/lib64<br />
export EXPAT_INCLUDE=/usr/include<br />
export EXPAT_LIBPATH=/usr/lib64</p>
<p>yum install openmpi-devel</p>
<p>yum install expat-devel</p>
<p>./bootstrap.sh --prefix=/usr<br />
</code></p>
<p>Edit <em>project-config.jam</em><br />
add<br />
<code>using mpi;</code></p>
<p><code>./bjam install</code></p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Think%20Your%20Mind&amp;siteurl=http%3A%2F%2Fkaryleong.net%2F&amp;linkname=Update%20Boost%20in%20CentOS%205%20x86_64&amp;linkurl=http%3A%2F%2Fkaryleong.net%2F%3Fp%3D91"><img src="http://karyleong.net/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://karyleong.net/?feed=rss2&amp;p=91</wfw:commentRss>
		</item>
		<item>
		<title>Google translation API</title>
		<link>http://karyleong.net/?p=88</link>
		<comments>http://karyleong.net/?p=88#comments</comments>
		<pubDate>Wed, 05 May 2010 21:45:57 +0000</pubDate>
		<dc:creator>kary</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[api]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://karyleong.net/?p=88</guid>
		<description><![CDATA[http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&#038;q=%E5%BB%A3%E5%B7%9E&#038;langpair=zh-TW&#124;en

    

	]]></description>
			<content:encoded><![CDATA[<p><code>http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&#038;q=%E5%BB%A3%E5%B7%9E&#038;langpair=zh-TW|en</code></p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Think%20Your%20Mind&amp;siteurl=http%3A%2F%2Fkaryleong.net%2F&amp;linkname=Google%20translation%20API&amp;linkurl=http%3A%2F%2Fkaryleong.net%2F%3Fp%3D88"><img src="http://karyleong.net/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://karyleong.net/?feed=rss2&amp;p=88</wfw:commentRss>
		</item>
		<item>
		<title></title>
		<link>http://karyleong.net/?p=86</link>
		<comments>http://karyleong.net/?p=86#comments</comments>
		<pubDate>Fri, 05 Mar 2010 02:40:18 +0000</pubDate>
		<dc:creator>kary</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[ie]]></category>

		<category><![CDATA[ie6]]></category>

		<category><![CDATA[ie7]]></category>

		<category><![CDATA[ie8]]></category>

		<guid isPermaLink="false">http://karyleong.net/?p=86</guid>
		<description><![CDATA[Different CSS for IE6、IE7、IE8、Firefox
symbol：「\9」、「*」、「_」
#tip {
background:blue; /*Firefox background to blue*/
background:red \9; /*IE8 red*/
*background:black; /*IE7 black*/
_background:orange; /*IE6 orange*/
}

    

	]]></description>
			<content:encoded><![CDATA[<h2>Different CSS for IE6、IE7、IE8、Firefox</h2>
<p><strong>symbol</strong>：「<strong><span style="color: #ff0000;">\9</span></strong>」、「<strong><span style="color: #ff0000;">*</span></strong>」、「<strong><span style="color: #ff0000;">_</span></strong>」</p>
<p>#tip {</p>
<p>background:blue; /*Firefox background to blue*/</p>
<p>background:red \9; /*IE8 red*/</p>
<p>*background:black; /*IE7 black*/</p>
<p>_background:orange; /*IE6 orange*/</p>
<p>}</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Think%20Your%20Mind&amp;siteurl=http%3A%2F%2Fkaryleong.net%2F&amp;linkname=&amp;linkurl=http%3A%2F%2Fkaryleong.net%2F%3Fp%3D86"><img src="http://karyleong.net/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://karyleong.net/?feed=rss2&amp;p=86</wfw:commentRss>
		</item>
		<item>
		<title>Install Windows 7 From USB Disk</title>
		<link>http://karyleong.net/?p=84</link>
		<comments>http://karyleong.net/?p=84#comments</comments>
		<pubDate>Mon, 01 Mar 2010 06:41:02 +0000</pubDate>
		<dc:creator>kary</dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<category><![CDATA[boot]]></category>

		<category><![CDATA[usb]]></category>

		<category><![CDATA[win7]]></category>

		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://karyleong.net/?p=84</guid>
		<description><![CDATA[Requirement:

USB Disk (Min 4 GB)
Windows 7 Source
MBRwiz (download here)

Process:

 Format USB disk with NTFS format.
Open command prompt (&#8221;cmd&#8221;)
go to MDRwiz folder and type below command
mbrwiz /list (note down disk number of your USB disk)
mbrwiz /disk=X /active=1 (X is Number of your USB disk) 
go to &#8220;windows 7 source folder/boot&#8221;
bootsect /nt60 X:  /mbr   (X [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><strong>Requirement:</strong></p>
<ul>
<li>USB Disk (Min 4 GB)</li>
<li>Windows 7 Source</li>
<li>MBRwiz <a title="MBRWizard" rel="nofollow" href="http://mbrwizard.com/download.shtml" target="_blank">(download here)</a></li>
</ul>
<p class="MsoNormal"><strong>Process:</strong></p>
<ol>
<li> Format USB disk with NTFS format.</li>
<li>Open command prompt (&#8221;cmd&#8221;)</li>
<li>go to MDRwiz folder and type below command<br />
<em>mbrwiz /list</em> <span style="color: #0000ff;">(note down disk number of your USB disk)</span><br />
<em>mbrwiz /disk=X /active=1</em> <span style="color: #0000ff;">(X is Number of your USB disk) </span></li>
<li>go to &#8220;windows 7 source folder/boot&#8221;</li>
<li><em>bootsect /nt60 X:  /mbr </em> <span style="color: #0000ff;"> (X is the drive of your USB disk )</span></li>
<li>copy all windows 7 soruce to your USB disk</li>
<li>Your windows 7 should be able install from the USB disk.</li>
</ol>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Think%20Your%20Mind&amp;siteurl=http%3A%2F%2Fkaryleong.net%2F&amp;linkname=Install%20Windows%207%20From%20USB%20Disk&amp;linkurl=http%3A%2F%2Fkaryleong.net%2F%3Fp%3D84"><img src="http://karyleong.net/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://karyleong.net/?feed=rss2&amp;p=84</wfw:commentRss>
		</item>
		<item>
		<title>Load balance in CentOS</title>
		<link>http://karyleong.net/?p=80</link>
		<comments>http://karyleong.net/?p=80#comments</comments>
		<pubDate>Wed, 02 Sep 2009 12:27:06 +0000</pubDate>
		<dc:creator>kary</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[bonding]]></category>

		<category><![CDATA[load balance]]></category>

		<category><![CDATA[two network card]]></category>

		<guid isPermaLink="false">http://karyleong.net/?p=80</guid>
		<description><![CDATA[1. Testing your system if the bonding driver is available
modprobe bonding miimon=100
ifconfig bond0 192.168.1.1 netmask 255.255.255.0
ifconfig eth0 down
ifconfig eth1 down
ifenslave bond0 eth0 eth1
2. Create the network configration file for next reboot
create /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=static
ONBOOT=yes
NETWORK=192.168.1.0
NETMASk=255.255.255.0
IPADDR=192.168.1.13
GATEWAY=192.168.1.1
USERCTL=no
edit /etc/sysconfig/network-scripts/ifcfg-eth0 and eth1
**** original config *****
MASTER=bond0
SLAVE=yes
load bonding driver to modprode
edit /etc/modprobe.conf add
****** original config ********
alias bond0 bonding
options bond0 miimon=100 mode=1
reboot system

   [...]]]></description>
			<content:encoded><![CDATA[<p>1. Testing your system if the bonding driver is available</p>
<p><em>modprobe bonding miimon=100<br />
ifconfig bond0 192.168.1.1 netmask 255.255.255.0<br />
ifconfig eth0 down<br />
ifconfig eth1 down<br />
ifenslave bond0 eth0 eth1</em></p>
<p>2. Create the network configration file for next reboot</p>
<p>create /etc/sysconfig/network-scripts/ifcfg-bond0</p>
<blockquote><p>DEVICE=bond0<br />
BOOTPROTO=static<br />
ONBOOT=yes<br />
NETWORK=192.168.1.0<br />
NETMASk=255.255.255.0<br />
IPADDR=192.168.1.13<br />
GATEWAY=192.168.1.1<br />
USERCTL=no</p></blockquote>
<p>edit /etc/sysconfig/network-scripts/ifcfg-eth0 and eth1</p>
<blockquote><p>**** original config *****<br />
MASTER=bond0<br />
SLAVE=yes</p></blockquote>
<p>load bonding driver to modprode</p>
<p>edit /etc/modprobe.conf add</p>
<blockquote><p>****** original config ********<br />
alias bond0 bonding<br />
options bond0 miimon=100 mode=1</p></blockquote>
<p>reboot system</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Think%20Your%20Mind&amp;siteurl=http%3A%2F%2Fkaryleong.net%2F&amp;linkname=Load%20balance%20in%20CentOS&amp;linkurl=http%3A%2F%2Fkaryleong.net%2F%3Fp%3D80"><img src="http://karyleong.net/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://karyleong.net/?feed=rss2&amp;p=80</wfw:commentRss>
		</item>
		<item>
		<title>Format USB for Linux (Ext3)</title>
		<link>http://karyleong.net/?p=78</link>
		<comments>http://karyleong.net/?p=78#comments</comments>
		<pubDate>Wed, 02 Sep 2009 11:41:15 +0000</pubDate>
		<dc:creator>kary</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[ext3]]></category>

		<category><![CDATA[format]]></category>

		<category><![CDATA[usb disk]]></category>

		<guid isPermaLink="false">http://karyleong.net/?p=78</guid>
		<description><![CDATA[mkfs.ext3 -v -L usbdisk /dev/sdb1

    

	]]></description>
			<content:encoded><![CDATA[<p><strong><span style="font-family: Courier New;"><span style="color: #004200; font-size: medium;">mkfs.ext3 -v -L usbdisk /dev/sdb1</span></span></strong></p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Think%20Your%20Mind&amp;siteurl=http%3A%2F%2Fkaryleong.net%2F&amp;linkname=Format%20USB%20for%20Linux%20%28Ext3%29&amp;linkurl=http%3A%2F%2Fkaryleong.net%2F%3Fp%3D78"><img src="http://karyleong.net/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://karyleong.net/?feed=rss2&amp;p=78</wfw:commentRss>
		</item>
		<item>
		<title>iPhone 3GS MMS Setup</title>
		<link>http://karyleong.net/?p=52</link>
		<comments>http://karyleong.net/?p=52#comments</comments>
		<pubDate>Sat, 11 Jul 2009 06:55:09 +0000</pubDate>
		<dc:creator>kary</dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<category><![CDATA[MMS]]></category>

		<guid isPermaLink="false">http://karyleong.net/?p=52</guid>
		<description><![CDATA[For Macau CTM network:
APN: ctmmms
MMSC: http://mms.wap.ctm.net:8002
MMS Proxy:192.168.99.3:8080

    

	]]></description>
			<content:encoded><![CDATA[<p>For Macau CTM network:</p>
<p>APN: ctmmms</p>
<p>MMSC: http://mms.wap.ctm.net:8002</p>
<p>MMS Proxy:192.168.99.3:8080</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Think%20Your%20Mind&amp;siteurl=http%3A%2F%2Fkaryleong.net%2F&amp;linkname=iPhone%203GS%20MMS%20Setup&amp;linkurl=http%3A%2F%2Fkaryleong.net%2F%3Fp%3D52"><img src="http://karyleong.net/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://karyleong.net/?feed=rss2&amp;p=52</wfw:commentRss>
		</item>
	</channel>
</rss>
