<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DkENRnkycSp7ImA9WhRVF0w.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369</id><updated>2012-01-16T18:51:37.799+07:00</updated><category term="Windows XP" /><category term="back" /><category term="arguments" /><category term="bug" /><category term="ping" /><category term="hosting" /><category term="doctrine" /><category term="RSA" /><category term="query" /><category term="cookie" /><category term="copy db" /><category term="array" /><category term="ip" /><category term="500" /><category term="VPN" /><category term="awk" /><category term="HashSet" /><category term="rss" /><category term="svnadmin" /><category term="gdata" /><category term="unicode" /><category term=".htaccess" /><category term="hook" /><category term="Caesar" /><category term="Back-end" /><category term="facebook" /><category term="table" /><category term="web-server" /><category term="CSS" /><category term="absolute" /><category term="Javascript" /><category term="commit" /><category term="procedure" /><category term="order" /><category term="msisdn" /><category term="df" /><category term="NetBeans" /><category term="Word" /><category term="wordpress" /><category term="pdf" /><category term="LIGHTTPD" /><category term="rotate" /><category term="CAS" /><category term="webservice" /><category term="j2me" /><category term="groupBy" /><category term="cURL" /><category term="pear" /><category term="fix" /><category term="network" /><category term="distinct" /><category term="error" /><category term="DomDocument" /><category term="svn" /><category term="Iphone" /><category term="English" /><category term="perl" /><category term="ADODB" /><category term="option" /><category term="paging" /><category term="input" /><category term="I18N" /><category term="wsdl" /><category term="UUID" /><category term="template" /><category term="command" /><category term="Oracle" /><category term="LAN" /><category term="schema.yml" /><category term="Tree Menu" /><category term="buffer" /><category term="encrypt" /><category term="excel" /><category term="php.ini" /><category term="shell" /><category term="plugin" /><category term="rms" /><category term="nfs" /><category term="image" /><category term="CIDR" /><category term="haproxy" /><category term="require_once" /><category term="raw-request" /><category term="learning" /><category term="menu" /><category term="ifconfig" /><category term="php-block" /><category term="update" /><category term="auto-post" /><category term="WAP" /><category term="radio" /><category term="breadcrumb" /><category term="ssh" /><category term="version" /><category term="revert" /><category term="lynx" /><category term="join" /><category term="thread" /><category term="Google" /><category term="AutoIT" /><category term="PTS" /><category term="PHP" /><category term="cool" /><category term="setInterval" /><category term="VC Corp" /><category term="cgi" /><category term="Joomla" /><category term="sql" /><category term="Linux" /><category term="bookmark" /><category term="log" /><category term="smiliebox" /><category term="server" /><category term="exception" /><category term="symfony" /><category term="clean-up" /><category term="timeout" /><category term="Opacity" /><category term="datafile" /><category term="mobile" /><category term="Diem" /><category term="install" /><category term="shop-cart" /><category term="find-exec" /><category term="persist" /><category term="JSP" /><category term="documentation" /><category term="rsync" /><category term="socks" /><category term="branch" /><category term="storage" /><category term="Midlet" /><category term=".BAT" /><category term="SoapClient" /><category term="vbulletin" /><category term="step-by-step" /><category term="Service Pack 3" /><category term="submit" /><category term="yum" /><category term="popup" /><category term="stdin" /><category term="utf8" /><category term="symbian" /><category term="function" /><category term="keyboard" /><category term="scp" /><category term="performance" /><category term="setFlash" /><category term="case-when" /><category term="flick" /><category term="backup" /><category term="advertise" /><category term="serial" /><category term="xml" /><category term="SMS" /><category term="centos" /><category term="jQuery" /><category term="select" /><category term="MySQL" /><category term="disk-space" /><category term="httpd" /><category term="foreign-key" /><category term="SSO" /><category term="margin" /><category term="thumbnail" /><category term="ckEditor" /><category term="compile" /><category term="filter" /><category term="component" /><category term="not4you" /><category term="yaml" /><category term="split" /><category term="editor" /><category term="[Visual] C [++]" /><category term="sign" /><category term="runable" /><category term="stdout" /><category term="session" /><category term="HTML" /><category term="widget" /><category term="fixture" /><category term="enter" /><category term="trunk" /><category term="yahoo" /><category term="proxy" /><category term="admin" /><category term="cache" /><category term="connection" /><category term="relocate" /><category term="permission" /><category term="Repository" /><category term="youtube" /><category term="validator" /><category term="switch" /><category term="form" /><category term="daemon" /><category term="download" /><category term="having" /><category term="delete" /><category term="cms" /><category term="helper" /><category term="sfConfig" /><category term="Visual Basic" /><category term="domain" /><category term="background" /><category term="oauth" /><category term="stderr" /><category term="progress-bar" /><category term="crawler" /><category term="cmd" /><category term="VBS" /><category term="merge" /><category term="apache" /><category term="vba" /><category term="innerHTML" /><category term="soap" /><category term="process" /><category term="ajax" /><category term="mount" /><category term="ASP" /><category term="route" /><category term="Java" /><category term="API" /><category term="config" /><category term="position" /><category term="sfDoctrineGuard" /><category term="C#" /><category term="log4j" /><category term="pagination" /><category term="outlook" /><category term="winscp" /><category term="blogger" /><category term="Properties" /><category term="VirtueMart" /><category term="upload" /><category term="solved" /><category term="history" /><category term="search" /><category term="virtual-host" /><category term="tablespace" /><category term="model" /><category term="attrib" /><category term="credential" /><category term="fdisk" /><title>Love Coding</title><subtitle type="html">Note anything I want</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://code.huypv.net/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://code.huypv.net/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>601</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/codjng" /><feedburner:info uri="codjng" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DkENRnY6fSp7ImA9WhRVF0w.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-6846845202313019728</id><published>2012-01-16T18:51:00.000+07:00</published><updated>2012-01-16T18:51:37.815+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-16T18:51:37.815+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><category scheme="http://www.blogger.com/atom/ns#" term="having" /><category scheme="http://www.blogger.com/atom/ns#" term="delete" /><category scheme="http://www.blogger.com/atom/ns#" term="groupBy" /><category scheme="http://www.blogger.com/atom/ns#" term="join" /><title>MySQL error 1093 You can't specify target table</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/6846845202313019728/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2012/01/mysql-error-1093-you-cant-specify.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/6846845202313019728?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/6846845202313019728?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/O_1y4MEDzT4/mysql-error-1093-you-cant-specify.html" title="MySQL error 1093 You can't specify target table" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">SQL:
Before google
DELETE FROM category WHERE id IN (
 SELECT c.id as id FROM category c
 LEFT JOIN category_translation t ON c.id = t.id
 GROUP BY c.id
 HAVING COUNT(t.lang) = 0)
);
--&amp;gt; error

After google
DELETE FROM category WHERE id IN (
 SELECT id FROM (
  SELECT c.id as id FROM category c
  LEFT JOIN category_translation t ON c.id = t.id
  GROUP BY c.id
  HAVING COUNT(t.lang) = 0)
 ) tblId

&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hk3YeQ5uGfDJV-XYb59e0i9WQkk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hk3YeQ5uGfDJV-XYb59e0i9WQkk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hk3YeQ5uGfDJV-XYb59e0i9WQkk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hk3YeQ5uGfDJV-XYb59e0i9WQkk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/O_1y4MEDzT4" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2012/01/mysql-error-1093-you-cant-specify.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU4HQH47fip7ImA9WhRVFUk.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-4666349860447199111</id><published>2012-01-14T20:28:00.001+07:00</published><updated>2012-01-14T20:32:11.006+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-14T20:32:11.006+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="soap" /><category scheme="http://www.blogger.com/atom/ns#" term="cURL" /><title>Test Soap Server with cURL command</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/4666349860447199111/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2012/01/test-soap-server-with-curl-command.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/4666349860447199111?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/4666349860447199111?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/61dkg4TusR8/test-soap-server-with-curl-command.html" title="Test Soap Server with cURL command" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">Linux
cd /root/huypv
vim soap-request.xml
(Don't know how to create soap request content: try use SoapUI)
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;
  &amp;lt;soap:Body&amp;gt;
    &amp;lt;GetWeather xmlns="http://www.webserviceX.NET"&amp;gt;
      &amp;lt;CityName&amp;gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/H7Lwg_7umGAzZMj-ZHMOpyI9GKM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/H7Lwg_7umGAzZMj-ZHMOpyI9GKM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/H7Lwg_7umGAzZMj-ZHMOpyI9GKM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/H7Lwg_7umGAzZMj-ZHMOpyI9GKM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/61dkg4TusR8" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2012/01/test-soap-server-with-curl-command.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0EEQngzfyp7ImA9WhRVFEo.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-2355977587402732758</id><published>2012-01-14T00:26:00.000+07:00</published><updated>2012-01-14T00:26:43.687+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-14T00:26:43.687+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Java" /><title>try catch finnaly in java</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/2355977587402732758/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2012/01/try-catch-finnaly-in-java.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/2355977587402732758?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/2355977587402732758?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/qUVZOWThW5o/try-catch-finnaly-in-java.html" title="try catch finnaly in java" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">Do you know that: 
try {
 System.out.println("First");
 return true; // still call code statement in finnaly block before return!
} catch (Exception e) {
  System.out.println("Exception");
}finnaly {
 System.out.println("Second, then return!!!"); 
}
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dVihkKikd37VsdVJfQ3SCM-bKVQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dVihkKikd37VsdVJfQ3SCM-bKVQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dVihkKikd37VsdVJfQ3SCM-bKVQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dVihkKikd37VsdVJfQ3SCM-bKVQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/qUVZOWThW5o" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2012/01/try-catch-finnaly-in-java.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEAGQn4_fip7ImA9WhRVEkw.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-4679043930300635210</id><published>2012-01-10T23:25:00.000+07:00</published><updated>2012-01-10T23:25:23.046+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-10T23:25:23.046+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><title>PHP get first and last day of week</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/4679043930300635210/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2012/01/php-get-first-and-last-day-of-week.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/4679043930300635210?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/4679043930300635210?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/CcdJ91xxqLE/php-get-first-and-last-day-of-week.html" title="PHP get first and last day of week" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">Mon Tue Wed Thu Fri Sat Sun

&amp;lt;!--?php  $str = date('Y-m-d');
  $iStr = strtotime($str);
  $n = date('N', $iStr);#Mon = 1, Sun = 7
  $d1 = $n - 1; $d2 = 7 - $n;
  # monday in week
  $mon = date('Y-m-d', strtotime("-$d1 days", $iStr));
  # sunday in week
  $sun = date('Y-m-d', strtotime("+$d2 days", $iStr));
  var_dump($mon, $sun);
 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_PqpeoQ7WFkAp7OksyzzgxyHMG8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_PqpeoQ7WFkAp7OksyzzgxyHMG8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_PqpeoQ7WFkAp7OksyzzgxyHMG8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_PqpeoQ7WFkAp7OksyzzgxyHMG8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/CcdJ91xxqLE" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2012/01/php-get-first-and-last-day-of-week.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIMQH4zeip7ImA9WhRWGEk.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-4903284421596646493</id><published>2012-01-06T17:43:00.000+07:00</published><updated>2012-01-06T17:43:01.082+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-06T17:43:01.082+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="not4you" /><title>Config gossip (private)</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/4903284421596646493/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2012/01/config-gossip-private.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/4903284421596646493?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/4903284421596646493?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/MVjXCAwfDpo/config-gossip-private.html" title="Config gossip (private)" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">[root@localhost huypv]# find . -iname "*.cfg" | xargs grep 10.72.87.37
[root@localhost huypv]# find . -iname "*.conf" | xargs grep 10.72.87.37

Cấu hình phân tải cho gossip thì phải có IP và port.
Lấy thông tin IP và port từ initialHosts ở các file agent.cfg
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5JMmOwQ5xZKwBqNavD5HkpWUu5s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5JMmOwQ5xZKwBqNavD5HkpWUu5s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5JMmOwQ5xZKwBqNavD5HkpWUu5s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5JMmOwQ5xZKwBqNavD5HkpWUu5s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/MVjXCAwfDpo" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2012/01/config-gossip-private.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEQCSHcyfyp7ImA9WhRWGEk.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-6496001075012599588</id><published>2012-01-06T17:39:00.000+07:00</published><updated>2012-01-06T17:39:29.997+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-06T17:39:29.997+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="I18N" /><category scheme="http://www.blogger.com/atom/ns#" term="doctrine" /><title>My note for I18N Symfony Doctrine</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/6496001075012599588/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2012/01/my-note-for-i18n-symfony-doctrine.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/6496001075012599588?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/6496001075012599588?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/BlFT_KJiI4M/my-note-for-i18n-symfony-doctrine.html" title="My note for I18N Symfony Doctrine" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">Truy cập vào URL1 -&amp;gt; xác định được id -&amp;gt; Article
  -&amp;gt; có ArtitlceTranslation tương ứng với culture hiện tại không
  -&amp;gt; xác định được category_id -&amp;gt; category_id
  -&amp;gt; có CategoryTranslation tương ứng với culture hiện tại không

Khi bài viết không có bản dịch ở ngôn ngữ L1 thì tên bài viết sẽ được lấy mặc định theo ngôn ngữ sf_default_culture (en)
sfContext::getInstance()-&amp;gt;getUser()-&amp;gt;setCulture('
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/aqwIq8gSmEizk30EPiDcRAx0yCU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aqwIq8gSmEizk30EPiDcRAx0yCU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/aqwIq8gSmEizk30EPiDcRAx0yCU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aqwIq8gSmEizk30EPiDcRAx0yCU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/BlFT_KJiI4M" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2012/01/my-note-for-i18n-symfony-doctrine.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8MQ3g7fCp7ImA9WhRWF0s.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-2675196046861360817</id><published>2012-01-05T19:01:00.000+07:00</published><updated>2012-01-05T19:01:22.604+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-05T19:01:22.604+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="symfony" /><title>Symfony Application Change default culture</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/2675196046861360817/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2012/01/symfony-application-change-default.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/2675196046861360817?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/2675196046861360817?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/plqlx_AbJ8s/symfony-application-change-default.html" title="Symfony Application Change default culture" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">apps/frontend/config/settings.yml
all:
  .settings:
      defaut_culture: vi

Article (I18N: name, body)

In action: 
$article = ArticleTable::getInstance()-&amp;gt;find(1987);
if ($article !== false) {
  $this-&amp;gt;getUser()-&amp;gt;setCulture($unknownLang);
  $name = $article-&amp;gt;getName(); # will return $vietnameseName (I am using Diem CMF; check function getI18nFallback in file dmDoctrineRecord.php)
  $
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uikgDRTQtWGFLPKpJ8owmZYYFLo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uikgDRTQtWGFLPKpJ8owmZYYFLo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uikgDRTQtWGFLPKpJ8owmZYYFLo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uikgDRTQtWGFLPKpJ8owmZYYFLo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/plqlx_AbJ8s" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2012/01/symfony-application-change-default.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkQHR387eCp7ImA9WhRWF0s.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-7114143997653308555</id><published>2012-01-05T18:52:00.002+07:00</published><updated>2012-01-05T18:52:16.100+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-05T18:52:16.100+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="symfony" /><title>symfony form setDefault for choice</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/7114143997653308555/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2012/01/symfony-form-setdefault-for-choice.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/7114143997653308555?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/7114143997653308555?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/RIyDFWPD_nA/symfony-form-setdefault-for-choice.html" title="symfony form setDefault for choice" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">$gender = array(0 =&amp;gt; 'Female', 1 =&amp;gt; 'Male');
$this-&amp;gt;widgetSchema['gender'] = new sfWidgetFormChoice(array('choices' =&amp;gt; $gender)) ;
$this-&amp;gt;setDefault('gender', 1);
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/I35ZCoQLb4CfguSQ8KUFsmos_7E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/I35ZCoQLb4CfguSQ8KUFsmos_7E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/I35ZCoQLb4CfguSQ8KUFsmos_7E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/I35ZCoQLb4CfguSQ8KUFsmos_7E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/RIyDFWPD_nA" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2012/01/symfony-form-setdefault-for-choice.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0UNR3o-cSp7ImA9WhRWFkw.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-8130326916726912304</id><published>2012-01-04T00:20:00.002+07:00</published><updated>2012-01-04T00:21:36.459+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-04T00:21:36.459+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ssh" /><category scheme="http://www.blogger.com/atom/ns#" term="scp" /><category scheme="http://www.blogger.com/atom/ns#" term="rsync" /><title>scp, ssh and rsync without prompting for password</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/8130326916726912304/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2012/01/scp-ssh-and-rsync-without-prompting-for.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/8130326916726912304?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/8130326916726912304?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/MLG34aIlJiU/scp-ssh-and-rsync-without-prompting-for.html" title="scp, ssh and rsync without prompting for password" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>1</thr:total><content type="html">#On my pc (local)
ssh-keygen -t rsa
cd
scp .ssh/id_rsa.pub root@server:/root/

#On my server
cd /root
cat id_rsa.pub &amp;gt;&amp;gt;/root/.ssh/authorized_keys
chmod 700 /root/.ssh/authorized_keys

vim /etc/ssh/sshd_config
--&amp;gt; Config: PermitRootLogin yes

/etc/init.d/sshd restart

#On my pc
ssh root@server
--&amp;gt; enjoy


# Bonus rsync command with include
rsync -e ssh -arv --delete --include="/uploads/" --include
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4r1S0pnMjoSTclDiGsqAxb_enwQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4r1S0pnMjoSTclDiGsqAxb_enwQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/4r1S0pnMjoSTclDiGsqAxb_enwQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4r1S0pnMjoSTclDiGsqAxb_enwQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/MLG34aIlJiU" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2012/01/scp-ssh-and-rsync-without-prompting-for.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcMSXo_eyp7ImA9WhRWFkw.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-4595826199322591674</id><published>2012-01-04T00:01:00.000+07:00</published><updated>2012-01-04T00:01:28.443+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-04T00:01:28.443+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ping" /><category scheme="http://www.blogger.com/atom/ns#" term="route" /><title>Ping public IP fail</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/4595826199322591674/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2012/01/ping-public-ip-fail.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/4595826199322591674?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/4595826199322591674?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/0Xw1RhQracs/ping-public-ip-fail.html" title="Ping public IP fail" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">Server with 2 ethernet card:
eth0 - private ip:10.72.134.34
eth1 - public ip: 123.72.134.34 

ping 123.72.134.35 ok
ping 123.72.134.34 Request timed out

Check default gateway (10.72.134.33 should be replaced by 123.72.134.33, example)
Change by route command: ?
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IiPCCWCD405Gb4FBoC9HEEtq-EI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IiPCCWCD405Gb4FBoC9HEEtq-EI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IiPCCWCD405Gb4FBoC9HEEtq-EI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IiPCCWCD405Gb4FBoC9HEEtq-EI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/0Xw1RhQracs" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2012/01/ping-public-ip-fail.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkYMRHozeCp7ImA9WhRWFkw.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-6077192309437675860</id><published>2012-01-03T23:52:00.001+07:00</published><updated>2012-01-04T00:03:05.480+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-04T00:03:05.480+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="route" /><title>Command route slow</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/6077192309437675860/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2012/01/command-route-slow.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/6077192309437675860?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/6077192309437675860?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/bdeiAZQ1m04/command-route-slow.html" title="Command route slow" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html"># Server 1: 10.72.13.34, run route very fast
route 

# Server 2: 10.72.13.35, run route very slow
route

compare file contents: /etc/resolver.conf
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/R0Aggu3nOzECiUQbi34bRdfmBmQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/R0Aggu3nOzECiUQbi34bRdfmBmQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/R0Aggu3nOzECiUQbi34bRdfmBmQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/R0Aggu3nOzECiUQbi34bRdfmBmQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/bdeiAZQ1m04" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2012/01/command-route-slow.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QCR3k4fCp7ImA9WhRWFk0.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-3593206206173829653</id><published>2012-01-03T23:49:00.000+07:00</published><updated>2012-01-03T23:49:26.734+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-03T23:49:26.734+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="haproxy" /><title>HAProxy forward IP for each request</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/3593206206173829653/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2012/01/haproxy-forward-ip-for-each-request.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/3593206206173829653?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/3593206206173829653?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/GYjzmEr7QiU/haproxy-forward-ip-for-each-request.html" title="HAProxy forward IP for each request" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">HAProxy 1.4

#/etc/haproxy.cfg

option http-server-close
option forwardfor


Haproxy 1.4 introduced a new mode with "option http-server-close". It still closed the connection to the server but maintains keep-alive towards the client if possible and used. On most setups, you probably want to use that as it helps with latency on the single high-latency part of your connection (between Haproxy and 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fLqtnm9is6Tm89L361AyOdEm2y8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fLqtnm9is6Tm89L361AyOdEm2y8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fLqtnm9is6Tm89L361AyOdEm2y8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fLqtnm9is6Tm89L361AyOdEm2y8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/GYjzmEr7QiU" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2012/01/haproxy-forward-ip-for-each-request.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8ER3c4eSp7ImA9WhRWEE0.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-4801964714750707914</id><published>2011-12-27T23:18:00.002+07:00</published><updated>2011-12-27T23:20:06.931+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-27T23:20:06.931+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><title>Build MySQL 5.5 from source</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/4801964714750707914/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/12/build-mysql-55-from-source.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/4801964714750707914?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/4801964714750707914?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/vvWTcIeHYD8/build-mysql-55-from-source.html" title="Build MySQL 5.5 from source" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>1</thr:total><content type="html">#yum install cmake
#yum install gcc-c++
#yum install bison

# Preconfiguration setup
groupadd mysql
useradd -r -g mysql mysql
# Beginning of source-build specific instructions
tar zxvf mysql-5.5.18.tar.gz
cd mysql-5.5.18
cmake .
make
make install
# End of source-build specific instructions
# Postinstallation setup
cd /usr/local/mysql
chown -R mysql .
chgrp -R mysql .
scripts/mysql_install_db --
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zIh6h152LjQ7KC1Qq19yJ_zyFUE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zIh6h152LjQ7KC1Qq19yJ_zyFUE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zIh6h152LjQ7KC1Qq19yJ_zyFUE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zIh6h152LjQ7KC1Qq19yJ_zyFUE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/vvWTcIeHYD8" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/12/build-mysql-55-from-source.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcGR3c5fSp7ImA9WhRXFkg.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-5020370107409305317</id><published>2011-12-23T23:26:00.001+07:00</published><updated>2011-12-23T23:33:46.925+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-23T23:33:46.925+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ip" /><category scheme="http://www.blogger.com/atom/ns#" term="network" /><category scheme="http://www.blogger.com/atom/ns#" term="CIDR" /><title>Cấp phát IP</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/5020370107409305317/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/12/cap-phat-ip.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/5020370107409305317?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/5020370107409305317?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/y9UOsRl2STY/cap-phat-ip.html" title="Cấp phát IP" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">10.85.133.32/27

Subnest Mask: 255.255.255.224 
IP có thể dùng: 10.85.133.33 đến 10.85.133.62 (bỏ 32; 63)

http://www.subnet-calculator.com/cidr.php 

Ở router, thay vì 8 câu lệnh:
# Khi request (ping, HTTP...) từ router tới IP 66.100.50.1; 66.100.50.2; ...; 66.100.50.31 hãy sử dụng gateway 194.1.1.1
ip route 66.100.50.0 255.255.255.224 194.1.1.1
# Khi request (ping, HTTP...) từ router tới IP 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CEH4daU0N80Fg64aMF22oy6Jyko/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CEH4daU0N80Fg64aMF22oy6Jyko/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CEH4daU0N80Fg64aMF22oy6Jyko/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CEH4daU0N80Fg64aMF22oy6Jyko/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/y9UOsRl2STY" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/12/cap-phat-ip.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEQAQXk5fip7ImA9WhRXFUs.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-1048177603159780038</id><published>2011-12-22T21:58:00.002+07:00</published><updated>2011-12-22T22:05:40.726+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-22T22:05:40.726+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="centos" /><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="nfs" /><category scheme="http://www.blogger.com/atom/ns#" term="mount" /><title>Centos Configure NFS on Linux</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/1048177603159780038/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/12/centos-configure-nfs-on-linux.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/1048177603159780038?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/1048177603159780038?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/cilV82hD_b8/centos-configure-nfs-on-linux.html" title="Centos Configure NFS on Linux" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>1</thr:total><content type="html"># Data storage server: /home/nfs/storage
# IP: 10.10.10.87

vim /etc/exports
/home/nfs/storage 10.10.10.0/24(rw,sync)

==&amp;gt; export /home/nfs/storage directory for network 10.10.10.0 with netmask 255.255.255.0 with read write permissions and synchronized mode. 

/etc/init.d/nfs restart

# Config ip tables
# vim /etc/sysconfig/iptables-config
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Re5Fh9b4sp-zz4ZJu7dZ3qE5g94/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Re5Fh9b4sp-zz4ZJu7dZ3qE5g94/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Re5Fh9b4sp-zz4ZJu7dZ3qE5g94/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Re5Fh9b4sp-zz4ZJu7dZ3qE5g94/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/cilV82hD_b8" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/12/centos-configure-nfs-on-linux.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUEFR3Y9fip7ImA9WhRXFEo.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-153177879347376129</id><published>2011-12-21T21:26:00.002+07:00</published><updated>2011-12-21T21:26:56.866+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-21T21:26:56.866+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="symfony" /><category scheme="http://www.blogger.com/atom/ns#" term="Oracle" /><category scheme="http://www.blogger.com/atom/ns#" term="doctrine" /><title>Symfony Doctrine connect to Oracle</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/153177879347376129/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/12/symfony-doctrine-connect-to-oracle.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/153177879347376129?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/153177879347376129?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/5c9JKXsqWxc/symfony-doctrine-connect-to-oracle.html" title="Symfony Doctrine connect to Oracle" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html"># NOT TEST! 
all: 
  opacstat: 
    class:        sfDoctrineDatabase 
    param: 
      dsn:        'oracle:dbname=//server_address:1521/SID' 
      username:   xxx 
      password:   xxxx
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/qAT-YxArelZpCdPN51gD_wq2bfM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qAT-YxArelZpCdPN51gD_wq2bfM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/qAT-YxArelZpCdPN51gD_wq2bfM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qAT-YxArelZpCdPN51gD_wq2bfM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/5c9JKXsqWxc" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/12/symfony-doctrine-connect-to-oracle.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UFRXkzeSp7ImA9WhRXEEk.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-1248131996913042785</id><published>2011-12-16T21:20:00.000+07:00</published><updated>2011-12-16T21:20:14.781+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-16T21:20:14.781+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="symfony" /><title>Symfony Get current route name</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/1248131996913042785/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/12/symfony-get-current-route-name.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/1248131996913042785?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/1248131996913042785?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/MVR7IQjwzaI/symfony-get-current-route-name.html" title="Symfony Get current route name" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">$routing = sfContext::getInstance()-&amp;gt;getRouting();$rule = $routing-&amp;gt;getCurrentRouteName();#'@' . $rule
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wdvQ8FQ-zlobIOyIuepdrai4xp0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wdvQ8FQ-zlobIOyIuepdrai4xp0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wdvQ8FQ-zlobIOyIuepdrai4xp0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wdvQ8FQ-zlobIOyIuepdrai4xp0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/MVR7IQjwzaI" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/12/symfony-get-current-route-name.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0YFR3Y6fSp7ImA9WhRXEEk.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-7534870777746644618</id><published>2011-12-16T21:18:00.000+07:00</published><updated>2011-12-16T21:18:36.815+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-16T21:18:36.815+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="symfony" /><category scheme="http://www.blogger.com/atom/ns#" term="filter" /><title>Symfony Default filter</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/7534870777746644618/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/12/symfony-default-filter.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/7534870777746644618?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/7534870777746644618?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/G3BwfsZ6FeM/symfony-default-filter.html" title="Symfony Default filter" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">You can add in myclassGeneratorConfiguration class that is in myproject/apps/backend/modules/mymodule/lib folder a method to set filter defaults:

public function getFilterDefaults()
{    
    return array('groups' =&amp;gt; array('text' =&amp;gt; 'news'));
}

&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/q7SDBQuZOqcxe6Fkwe8n5SUNYPk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/q7SDBQuZOqcxe6Fkwe8n5SUNYPk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/q7SDBQuZOqcxe6Fkwe8n5SUNYPk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/q7SDBQuZOqcxe6Fkwe8n5SUNYPk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/G3BwfsZ6FeM" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/12/symfony-default-filter.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUIFQ3k-fyp7ImA9WhRQF0Q.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-3657181740671914012</id><published>2011-12-14T00:31:00.000+07:00</published><updated>2011-12-14T00:31:52.757+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-14T00:31:52.757+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title>Linux command developer enter</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/3657181740671914012/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/12/linux-command-developer-enter.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/3657181740671914012?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/3657181740671914012?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/L3pJbGSz7mo/linux-command-developer-enter.html" title="Linux command developer enter" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>2</thr:total><content type="html"># Tìm tất cả các file có đuôi là conf, nội dung file có chứa xâu '192.168.1.3'
find . -iname '*conf' | xargs grep '192.168.1.3'

# Nén thư mục
cd /var/www/html/
zip -r huypv.net.zip huypv.net

# Giải nén thư mục
cd /var/www/html/ 
unzip huypv.net.zip

# Giải nén ra một thư mục xác định 
unzip huypv.net.zip -d /srv/www/html
# cd /srv/www/html/huypv.net 

# VIM
# Về đầu file: gg
# Tới cuối file: G 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bTohMrbkFWQACLuDftAmF25uo2I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bTohMrbkFWQACLuDftAmF25uo2I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bTohMrbkFWQACLuDftAmF25uo2I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bTohMrbkFWQACLuDftAmF25uo2I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/L3pJbGSz7mo" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/12/linux-command-developer-enter.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MNQHozcCp7ImA9WhRQFEk.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-2703628630869497287</id><published>2011-12-09T23:51:00.000+07:00</published><updated>2011-12-09T23:51:31.488+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-09T23:51:31.488+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="symfony" /><title>symfony backend routing link to frontend</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/2703628630869497287/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/12/symfony-backend-routing-link-to.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/2703628630869497287?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/2703628630869497287?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/toJ4b4ZORnQ/symfony-backend-routing-link-to.html" title="symfony backend routing link to frontend" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">http://www.symfony-project.org/cookbook/1_2/en/cross-application-links


// apps/backend/config/backendConfiguration.class.php
class backendConfiguration extends sfApplicationConfiguration
{
  protected $frontendRouting = null;
 
  public function generateFrontendUrl($name, $parameters = array())
  {
    return 'http://frontend.example.com'.$this-&amp;gt;getFrontendRouting()-&amp;gt;generate($name, $parameters
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pebDvHoUTnHUET2Ui4SFiaHRbIM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pebDvHoUTnHUET2Ui4SFiaHRbIM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pebDvHoUTnHUET2Ui4SFiaHRbIM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pebDvHoUTnHUET2Ui4SFiaHRbIM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/toJ4b4ZORnQ" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/12/symfony-backend-routing-link-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0EDQ346fyp7ImA9WhRSEE8.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-5351884216722908006</id><published>2011-11-11T22:31:00.001+07:00</published><updated>2011-11-11T22:34:32.017+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-11T22:34:32.017+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="performance" /><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><category scheme="http://www.blogger.com/atom/ns#" term="apache" /><title>Perfomance - Config Apache, MySQL</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/5351884216722908006/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/11/perfomance-config-apache-mysql.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/5351884216722908006?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/5351884216722908006?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/0CsvFqkCzM0/perfomance-config-apache-mysql.html" title="Perfomance - Config Apache, MySQL" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-aBo5V24hJu0/Tr0_gka9j-I/AAAAAAAAAso/vZ_8hohC3bY/s72-c/config-apache-mysql-max-clients.png" height="72" width="72" /><thr:total>1</thr:total><content type="html">

Config Apache MaxClients - MySQL MaxConnections - Example


Total RAM System usage Free RAM 1 Apache &amp;amp; MySQL MaxClients - Apache MaxConnections - MySQL
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/qcXTwhEdD1XNM888nREiVRqpQPg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qcXTwhEdD1XNM888nREiVRqpQPg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/qcXTwhEdD1XNM888nREiVRqpQPg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qcXTwhEdD1XNM888nREiVRqpQPg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/0CsvFqkCzM0" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/11/perfomance-config-apache-mysql.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUERnk4cSp7ImA9WhRSEE8.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-4373717506212869269</id><published>2011-11-11T21:36:00.000+07:00</published><updated>2011-11-11T21:36:47.739+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-11T21:36:47.739+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="performance" /><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><title>MySQL - select is very slow</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/4373717506212869269/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/11/mysql-select-is-very-slow.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/4373717506212869269?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/4373717506212869269?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/N7PAP9DGAKw/mysql-select-is-very-slow.html" title="MySQL - select is very slow" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>1</thr:total><content type="html">column msisdn - VARCHAR(14)

SELECT * FROM sv.subscriber WHERE msisdn='84975292582';
# 6s

EXPLAIN SELECT * FROM sv.subscriber WHERE msisdn='84975292582';
=&amp;gt; type = ALL, rows = 2000475


# Create index
ALTER TABLE `sv`.`subscriber` ADD INDEX `idx_msisdn`(`msisdn`);

EXPLAIN SELECT * FROM sv.subscriber WHERE msisdn='84975292582';
=&amp;gt; type = REF, key=idx_msisdn, rows = 1

SELECT * FROM sv.subscriber
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/q8FKEB40mbDb5hpvXVz6CAY3eGI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/q8FKEB40mbDb5hpvXVz6CAY3eGI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/q8FKEB40mbDb5hpvXVz6CAY3eGI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/q8FKEB40mbDb5hpvXVz6CAY3eGI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/N7PAP9DGAKw" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/11/mysql-select-is-very-slow.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYERH87eip7ImA9WhRSEE8.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-5188610840004346155</id><published>2011-11-11T21:35:00.000+07:00</published><updated>2011-11-11T21:35:05.102+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-11T21:35:05.102+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><title>MySQL max int</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/5188610840004346155/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/11/mysql-max-int.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/5188610840004346155?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/5188610840004346155?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/sZ4-Jnn8DnI/mysql-max-int.html" title="MySQL max int" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">from MySQL: The maximum value of an integer

SELECT ~0 as max_bigint_unsigned
,      ~0 &amp;gt;&amp;gt; 32 AS max_int_unsigned
,      ~0 &amp;gt;&amp;gt; 40 AS max_mediumint_unsigned
,      ~0 &amp;gt;&amp;gt; 48 AS max_smallint_unsigned
,      ~0 &amp;gt;&amp;gt; 56 AS max_tinyint_unsigned
,      ~0 &amp;gt;&amp;gt; 1  AS max_bigint_signed
,      ~0 &amp;gt;&amp;gt; 33 AS max_int_signed
,      ~0 &amp;gt;&amp;gt; 41 AS max_mediumint_signed
,      ~0 &amp;gt;&amp;gt; 49 AS max_smallint_signed
,      ~0 &amp;gt;&amp;gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8SL01DX9JhzcSSX8oQ-5ytEmw-w/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8SL01DX9JhzcSSX8oQ-5ytEmw-w/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8SL01DX9JhzcSSX8oQ-5ytEmw-w/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8SL01DX9JhzcSSX8oQ-5ytEmw-w/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/sZ4-Jnn8DnI" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/11/mysql-max-int.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0AERHo8cSp7ImA9WhRTFEw.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-8603676472729286086</id><published>2011-11-04T21:08:00.000+07:00</published><updated>2011-11-04T21:08:25.479+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-04T21:08:25.479+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="LIGHTTPD" /><title>Lighttpd - Install Mod-h264-Streaming</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/8603676472729286086/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/11/lighttpd-install-mod-h264-streaming.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/8603676472729286086?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/8603676472729286086?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/7mPGHu0UcmU/lighttpd-install-mod-h264-streaming.html" title="Lighttpd - Install Mod-h264-Streaming" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">http://www.wowtutorial.org/linux-servers/how-install-mod-h264-streaming-lighttpd-web-server-332.html
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uwNtjoFAIPSIcfnZBrU_XIvAqgY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uwNtjoFAIPSIcfnZBrU_XIvAqgY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uwNtjoFAIPSIcfnZBrU_XIvAqgY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uwNtjoFAIPSIcfnZBrU_XIvAqgY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/7mPGHu0UcmU" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/11/lighttpd-install-mod-h264-streaming.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkAFRnk5fCp7ImA9WhRTFE0.&quot;"><id>tag:blogger.com,1999:blog-7740508804614029369.post-7502957131925809590</id><published>2011-11-04T18:05:00.000+07:00</published><updated>2011-11-04T18:05:17.724+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-04T18:05:17.724+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><category scheme="http://www.blogger.com/atom/ns#" term="cURL" /><category scheme="http://www.blogger.com/atom/ns#" term="socks" /><category scheme="http://www.blogger.com/atom/ns#" term="proxy" /><title>cURL - Use socks 5 as proxy</title><link rel="replies" type="application/atom+xml" href="http://code.huypv.net/feeds/7502957131925809590/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://code.huypv.net/2011/11/curl-use-socks-5-as-proxy.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/7502957131925809590?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7740508804614029369/posts/default/7502957131925809590?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/codjng/~3/SdZ8uSu6KUA/curl-use-socks-5-as-proxy.html" title="cURL - Use socks 5 as proxy" /><author><name>HuyPV</name><uri>http://www.blogger.com/profile/12898057126735400711</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="26" src="http://1.bp.blogspot.com/-PvYKm2kmGQc/TinTYUHASvI/AAAAAAAAAqw/75jSfEZcgjk/s1600/die.jpg" /></author><thr:total>0</thr:total><content type="html">Command line:
D:\curl\curl.exe --socks5-hostname 127.0.0.1:1080 http://client.huypv.net/uploads/contents/1388/songoku/face.bin -o face.bin

PHP code:
$cUrl = curl_init();
curl_setopt($cUrl, CURLOPT_URL, $url);
curl_setopt($cUrl, CURLOPT_RETURNTRANSFER, 1);
$proxy = '127.0.0.1:1080';
curl_setopt($cUrl, CURLOPT_PROXY, $proxy);
curl_setopt($cUrl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
#curl_setopt($
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Q7zyYJXdWeLl149EMgNqX9pvuPI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q7zyYJXdWeLl149EMgNqX9pvuPI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Q7zyYJXdWeLl149EMgNqX9pvuPI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q7zyYJXdWeLl149EMgNqX9pvuPI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/codjng/~4/SdZ8uSu6KUA" height="1" width="1"/&gt;</content><feedburner:origLink>http://code.huypv.net/2011/11/curl-use-socks-5-as-proxy.html</feedburner:origLink></entry></feed>

