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

<channel>
	<title>Ghi chép của luubk</title>
	<atom:link href="http://luubk.com/ghi-chep/feed/" rel="self" type="application/rss+xml" />
	<link>http://luubk.com/ghi-chep</link>
	<description>Những ghi chép hằng ngày của tôi</description>
	<lastBuildDate>Thu, 05 Jan 2012 04:49:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Cài đặt ssh2 cho php trên Ubuntu</title>
		<link>http://luubk.com/ghi-chep/2012/01/05/cai-d%e1%ba%b7t-ssh2-cho-php-tren-ubuntu/</link>
		<comments>http://luubk.com/ghi-chep/2012/01/05/cai-d%e1%ba%b7t-ssh2-cho-php-tren-ubuntu/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 04:49:56 +0000</pubDate>
		<dc:creator>luubk</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://luubk.com/ghi-chep/?p=29</guid>
		<description><![CDATA[Để kết nối tới sftp thông qua php ta cần extension ssh2 cho php. Trên Ubuntu và một số hệ điều hành nhân Linux khác ta làm như sau: Gõ vào terminal sudo apt-get install libssh2-1-dev libssh2-php Khởi động lại apache (sudo /etc/init.d/apache2 restart) là có thể dùng được.]]></description>
			<content:encoded><![CDATA[<p>Để kết nối tới sftp thông qua php ta cần extension ssh2 cho php.</p>
<p>Trên Ubuntu và một số hệ điều hành nhân Linux khác ta làm như sau:</p>
<p>Gõ vào terminal</p>
<blockquote><p>sudo apt-get install libssh2-1-dev libssh2-php</p></blockquote>
<p>Khởi động lại apache (sudo /etc/init.d/apache2 restart) là có thể dùng được.</p>
]]></content:encoded>
			<wfw:commentRss>http://luubk.com/ghi-chep/2012/01/05/cai-d%e1%ba%b7t-ssh2-cho-php-tren-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Live Query: thực thi mã javascript cả khi tải lại nội dung bằng AJAX</title>
		<link>http://luubk.com/ghi-chep/2011/11/12/live-query-th%e1%bb%b1c-thi-ma-javascript-c%e1%ba%a3-khi-t%e1%ba%a3i-l%e1%ba%a1i-n%e1%bb%99i-dung-b%e1%ba%b1ng-ajax/</link>
		<comments>http://luubk.com/ghi-chep/2011/11/12/live-query-th%e1%bb%b1c-thi-ma-javascript-c%e1%ba%a3-khi-t%e1%ba%a3i-l%e1%ba%a1i-n%e1%bb%99i-dung-b%e1%ba%b1ng-ajax/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 02:49:09 +0000</pubDate>
		<dc:creator>luubk</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://luubk.com/ghi-chep/?p=26</guid>
		<description><![CDATA[Thông thường ta xử lý jquery cho các class và id, các hàm jquery (click, mouse, &#8230;) chạy bình thường. Tuy nhiên khi phần nội dung có các class và id đó được load lên bằng AJAX thì các hàm jquery trên không hoạt động được. Khi đó ta cần tới Live Query: Live Query [...]]]></description>
			<content:encoded><![CDATA[<p>Thông thường ta xử lý jquery cho các class và id, các hàm jquery (click, mouse, &#8230;) chạy bình thường.</p>
<p>Tuy nhiên khi phần nội dung có các class và id đó được load lên bằng AJAX thì các hàm jquery trên không hoạt động được.</p>
<p>Khi đó ta cần tới <strong>Live Query</strong>:</p>
<blockquote><p>Live Query utilizes the power of jQuery selectors by binding events or firing callbacks for matched elements auto-magically, even after the page has been loaded and the DOM updated.</p></blockquote>
<p>Xem chi tiết và download: <a href="http://docs.jquery.com/Plugins/livequery">http://docs.jquery.com/Plugins/livequery</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://luubk.com/ghi-chep/2011/11/12/live-query-th%e1%bb%b1c-thi-ma-javascript-c%e1%ba%a3-khi-t%e1%ba%a3i-l%e1%ba%a1i-n%e1%bb%99i-dung-b%e1%ba%b1ng-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tắt một dịch vụ (service) trên Ubuntu</title>
		<link>http://luubk.com/ghi-chep/2011/11/09/tat-mot-dich-vu-service-tren-ubuntu/</link>
		<comments>http://luubk.com/ghi-chep/2011/11/09/tat-mot-dich-vu-service-tren-ubuntu/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 05:16:09 +0000</pubDate>
		<dc:creator>luubk</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://luubk.com/ghi-chep/?p=23</guid>
		<description><![CDATA[Khi bạn dùng Ubuntu, có một số dịch vụ mà bạn muốn tắt đi, bởi sự hiện diện của nó có thể làm ảnh hưởng tới các dịch vụ tương tự mà bạn muốn sử dụng. Hôm nay tôi sẽ hướng dẫn bạn cách tắt các dịch vụ đó đi. (Disable startup service in Ubuntu) [...]]]></description>
			<content:encoded><![CDATA[<p>Khi bạn dùng Ubuntu, có một số dịch vụ mà bạn muốn tắt đi, bởi sự hiện diện của nó có thể làm ảnh hưởng tới các dịch vụ tương tự mà bạn muốn sử dụng. Hôm nay tôi sẽ hướng dẫn bạn cách tắt các dịch vụ đó đi.</p>
<p>(Disable startup service in Ubuntu)</p>
<p>Để liệt kê trạng thái của các <strong>dịch vụ (service)</strong> đang chạy, bạn gõ lệnh trong terminal</p>
<blockquote><p>service &#8211;status-all</p></blockquote>
<p>Các dịch vụ này được chứa trong thư mục <strong>etc/init.d</strong></p>
<p>Giả sử bạn muốn tắt dịch vụ apache2, bạn gõ:</p>
<blockquote><p>/etc/init.d/apache2 stop</p></blockquote>
<p>Để gỡ bỏ dịch vụ này, không cho chạy khi khởi động máy, bạn dùng lệnh:</p>
<blockquote><p>update-rc.d -f apache2 remove</p></blockquote>
<p>Bạn muốn dùng giao diện trực quan để quản lý các dịch vụ, bạn cài, <strong>rcconf</strong> bằng dòng lệnh:</p>
<blockquote><p> sudo apt-get install rcconf</p></blockquote>
<p>Để quản lý các dịch vụ bạn chỉ cần chạy rcconf bằng cách gõ lệnh <strong>rcconf</strong> trong terminal.</p>
<pre><strong>
</strong></pre>
]]></content:encoded>
			<wfw:commentRss>http://luubk.com/ghi-chep/2011/11/09/tat-mot-dich-vu-service-tren-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bỏ cảnh báo (notice) của php trong php.ini</title>
		<link>http://luubk.com/ghi-chep/2011/11/08/bo-canh-bao-notice-cua-php-trong-php-ini/</link>
		<comments>http://luubk.com/ghi-chep/2011/11/08/bo-canh-bao-notice-cua-php-trong-php-ini/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 06:47:13 +0000</pubDate>
		<dc:creator>luubk</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://luubk.com/ghi-chep/?p=19</guid>
		<description><![CDATA[Tôi đang sử dụng Ubuntu, khi chuyển code từ bên windows sang xảy ra một số cảnh báo, nếu cảnh báo nhiều nó còn chiếm kín cả màn hình không làm gì được, những cảnh báo như chưa khai báo biến, &#8230; trong khi hệ thống vẫn có thể chạy được. Để tắt cảnh báo [...]]]></description>
			<content:encoded><![CDATA[<p>Tôi đang sử dụng Ubuntu, khi chuyển code từ bên windows sang xảy ra một số cảnh báo, nếu cảnh báo nhiều nó còn chiếm kín cả màn hình không làm gì được, những cảnh báo như chưa khai báo biến, &#8230; trong khi hệ thống vẫn có thể chạy được.</p>
<p>Để tắt cảnh báo vào edit file php.ini:</p>
<p>Tìm tới</p>
<blockquote><p>error_reporting = E_ALL</p></blockquote>
<p>và thay thế bằng</p>
<blockquote><p>error_reporting = E_ALL &amp; ~E_NOTICE &amp; ~E_WARNING</p></blockquote>
<p>Đoan này có nghĩa là hiển thị các thông báo trừ NOTICE và WARNING.</p>
<p>Khởi động lại apache và php là ok.</p>
<p>Nếu muốn hiển thị lại cảnh báo thì bạn sửa file php.ini về như cũ.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://luubk.com/ghi-chep/2011/11/08/bo-canh-bao-notice-cua-php-trong-php-ini/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cài đặt MangoDB trong Ubuntu 11.10</title>
		<link>http://luubk.com/ghi-chep/2011/11/08/cai-d%e1%ba%b7t-mangodb-trong-ubuntu-11-10/</link>
		<comments>http://luubk.com/ghi-chep/2011/11/08/cai-d%e1%ba%b7t-mangodb-trong-ubuntu-11-10/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 04:45:41 +0000</pubDate>
		<dc:creator>luubk</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://luubk.com/ghi-chep/?p=16</guid>
		<description><![CDATA[Install MangoDB for PHP in Ubuntu 11.10 Để cài đặt MangoDB trong Ubuntu ta làm như sau: - Cài đặt MangoDB (có thể download về cài hoặc cài đặt qua Software Center) - Cài đặt build-essential, php5-dev và php-pear: sudo apt-get install build-essential php5-dev php-pear - Sau đó dùng dòng lệnh sau để cài: sudo pecl [...]]]></description>
			<content:encoded><![CDATA[<p>Install MangoDB for PHP in Ubuntu 11.10</p>
<p>Để cài đặt MangoDB trong Ubuntu ta làm như sau:</p>
<p>- Cài đặt MangoDB (có thể download về cài hoặc cài đặt qua Software Center)</p>
<p>- Cài đặt build-essential, php5-dev và php-pear:</p>
<blockquote><p>sudo apt-get install build-essential php5-dev php-pear</p></blockquote>
<p>- Sau đó dùng dòng lệnh sau để cài:</p>
<blockquote><p>sudo pecl install mongo</p></blockquote>
<p>Lưu ý: ở đây ta dùng pecl để cài đặt thì trước đó ta phải cài đặt Pecl</p>
<p>&nbsp;</p>
<p>Tham khảo thêm: <a href="http://yoodey.com/how-install-mongodb-ubuntu-maverick-meerkat-1010-easy-steps">http://yoodey.com/how-install-mongodb-ubuntu-maverick-meerkat-1010-easy-steps</a></p>
<p>Ngoài ra để quản trị MangoDB ta dùng <a href="http://www.phpmoadmin.com/">http://www.phpmoadmin.com/</a>, giống như phpMyAdmin cho MySQL.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://luubk.com/ghi-chep/2011/11/08/cai-d%e1%ba%b7t-mangodb-trong-ubuntu-11-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Đổi mật khẩu tài khoản mysql trên Linux</title>
		<link>http://luubk.com/ghi-chep/2011/09/17/doi-mat-khau-tai-khoan-mysql-tren-linux/</link>
		<comments>http://luubk.com/ghi-chep/2011/09/17/doi-mat-khau-tai-khoan-mysql-tren-linux/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 11:35:32 +0000</pubDate>
		<dc:creator>luubk</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://luubk.com/ghi-chep/?p=13</guid>
		<description><![CDATA[Để đổi mật khẩu tài khoản trong mysql trên Linux ta gõ lệnh sau: &#160; Với tài khoản root để mặc định mật khẩu là rỗng: $ mysqladmin -u root password MẬTKHẨUMỚI trong đó root là user, MẬTKHẨUMỚI là chuỗi mật khẩu mới của bạn. &#160; Nếu tài khoản root mật khẩu khác rỗng, ta [...]]]></description>
			<content:encoded><![CDATA[<p>Để đổi mật khẩu tài khoản trong mysql trên Linux ta gõ lệnh sau:</p>
<p>&nbsp;</p>
<p><strong>Với tài khoản root để mặc định mật khẩu là rỗng:</strong></p>
<p>$ mysqladmin -u root password MẬTKHẨUMỚI</p>
<p>trong đó root là user, MẬTKHẨUMỚI là chuỗi mật khẩu mới của bạn.</p>
<p>&nbsp;</p>
<p><strong>Nếu tài khoản root mật khẩu khác rỗng, ta dùng lệnh:</strong></p>
<p>$ mysqladmin -u root -p&#8217;MẬTKHẨUCŨ&#8217; password MẬTKHẨUMỚI</p>
<p>trong đó bạn nhập mật khẩu mới và mật khẩu cũ tương ứng</p>
<p>&nbsp;</p>
<p>Với các tài khoản khác các bạn cũng làm tương tự:</p>
<p>$ mysqladmin -u luubk -p luubkpass123 password 123passluubk</p>
<div><span class="Apple-style-span" style="color: #111111; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 12px; line-height: 18px; background-color: #eeeeee;"><br />
</span></div>
]]></content:encoded>
			<wfw:commentRss>http://luubk.com/ghi-chep/2011/09/17/doi-mat-khau-tai-khoan-mysql-tren-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sử dụng Remote Desktop trên Ubuntu</title>
		<link>http://luubk.com/ghi-chep/2011/09/14/su-dung-remote-desktop-tren-ubuntu/</link>
		<comments>http://luubk.com/ghi-chep/2011/09/14/su-dung-remote-desktop-tren-ubuntu/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 20:38:47 +0000</pubDate>
		<dc:creator>luubk</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://luubk.com/ghi-chep/?p=6</guid>
		<description><![CDATA[Để sử dụng remote Desktop trên Ubuntu, cách nhanh nhất có lẽ là sử dụng lệnh rdesktop

Để biết chi tiết về cách sử dụng lệnh rdesktop, ta vào cửa sổ dòng lệnh (terminal) gõ redsktop -h ]]></description>
			<content:encoded><![CDATA[<p>Để sử dụng remote Desktop trên Ubuntu, cách nhanh nhất có lẽ là sử dụng lệnh <strong>rdesktop</strong></p>
<p>Để biết chi tiết về cách sử dụng lệnh <strong>rdesktop</strong>, ta vào cửa sổ dòng lệnh (terminal) gõ redsktop -h</p>
<p>và đây là kết quả:</p>
<pre>Usage: rdesktop [options] server[:port]
   -u: user name
   -d: domain
   -s: shell
   -c: working directory
   -p: password (- to prompt)
   -n: client hostname
   -k: keyboard layout on server (en-us, de, sv, etc.)
   -g: desktop geometry (WxH)
   -f: full-screen mode
   -b: force bitmap updates
   -L: local codepage
   -A: enable SeamlessRDP mode
   -B: use BackingStore of X-server (if available)
   -e: disable encryption (French TS)
   -E: disable encryption from client to server
   -m: do not send motion events
   -C: use private colour map
   -D: hide window manager decorations
   -K: keep window manager key bindings
   -S: caption button size (single application mode)
   -T: window title
   -N: enable numlock syncronization
   -X: embed into another window with a given id.
   -a: connection colour depth
   -z: enable rdp compression
   -x: RDP5 experience (m[odem 28.8], b[roadband], l[an] or hex nr.)
   -P: use persistent bitmap caching
   -r: enable specified device redirection (this flag can be repeated)</pre>
<p>&nbsp;</p>
<p>Đơn giản nhất ta có dùng lệnh như sau:</p>
<p><strong>rdesktop 210.245.xxx.xxx </strong></p>
<p>Trong đó 210.245.xxx.xxx là địa chỉ IP của máy mà mình cần remote đến.</p>
<p>&nbsp;</p>
<p>hoặc điền sẵn tên đăng nhập là <strong>administrator</strong> vào</p>
<p><strong>rdesktop 210.245.xxx.xxx -uadministrator</strong></p>
<p>&nbsp;</p>
<p>Muốn với bảng thuộc tính bên trên, ta có thể sử dụng trong các trường hợp cụ thể.</p>
<p>&nbsp;</p>
<p>Trong giao diện GNOME, tôi thường tạo một bộ khởi chạy trên thanh điều khiển nào đó với lệnh trên.</p>
]]></content:encoded>
			<wfw:commentRss>http://luubk.com/ghi-chep/2011/09/14/su-dung-remote-desktop-tren-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

