Saturday, December 29, 2007

Fefora la gi ho me

Title: Install fedora 7
Language: English and Vietnamese
Source: http://www.mjmwired.net/resources/mjm-fedora-f7.html

- Resize Partition from Hirent Boot CD
- From Disc DVD Fedora 7
Hoi bat ngo vi install hoi bi nhanh, DVD co khac.
- Update a lot of lib from update manager
- Install mplayer, plugin, gui from http://rpm.livna.org/rlowiki/
- Install driver cho cai AGP nvidia also from http://rpm.livna.org/rlowiki/
Yum install kmod-nvidia
- Install flash player
That su thi khong thich lam ... Because a lot of month ago dung no thi browser usually is suspend
- Install cai compiz-fusion from http://rpm.livna.org/rlowiki/
Dung la co tat hap tap voi vang nen lam sai hoi bi nhieu.
Phai dieu chinh mot so option in xorg thi moi enable Desktop Effect duoc.
- Install luon cai beryl-manager luon
- Install xvnkb nua chu
-------------------------------------------------------------------------------
Để thấy được phân vùng NTFS, bạn cần cài gói hỗ trợ NTFS của Fedora bằng lệnh sau
sudo yum install fuse fuse-libs ntfs-3g

* Fedora Repositories
- Import the GPG keys to these repositories:
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna
- Add reposity
sudo rpm -ivh http://rpm.livna.org/livna-release-7.rpm

* Install Nvidia Driver
- Recommends user install
3rd-party RPM packaged driver instead of using the installer from
Nvidia's website. Currently Livna provides a well packaged driver

* Rythmbox/Gstreamer - A simple audio application similar to iTunes layout.
- Most of Rythmbox and the Gstreamer system should be installed when installing Gnome (mentioned above). The missing components are just the MP3 (and other media) plugins.
- sudo yum install gstreamer-plugins-ugly gstreamer-plugins-bad
- Install het 11M

Monday, December 10, 2007

table with div

div.base-layer {
background: transparent;
/*border: solid #ccc 1px;*/
color: #000000;
margin: 0.5em 1px 0.5em 1px;
padding: 0px;
text-align: center;
width: auto;
}

div.table-row {
background:#FFFFCC none repeat scroll 0%;
border:1px solid #ccc;
color:#000000;
margin:0;
padding:0;
text-align: center;
width:99%;
}

div.left-layer10 {
border-right:1px solid #ccc;
float: left;
margin: 0;
padding: 2px;
width: 50px;
font-weight: bold;
}

div.left-layer11 {
border-right:1px solid #ccc;
float: left;
margin: 0;
padding: 2px;
width: 9%;
}

DIV.right-layer11 {
border: none;
float: right;
margin: 0;
padding: 2px;
width: 9%;
}

/* Watch out for this DIV... rule, it appears every now and then */

DIV.space-line {
clear: both;
margin: 0;
padding: 0;
width: auto;
}

Wednesday, November 21, 2007

Passwd

trinm --- Eil2Enga

s --- xeiWay7X

function check_all_box(obj, ids){
$$('input[id="' + ids + '"]').each(function(val){val.checked = obj.checked});
}

Wednesday, August 01, 2007

Expreience PHP (CI Session)

CodeIgniter: http://www.codeigniter.com/

- CI Session:

The Session class permits you maintain a user's "state" and track their activity while they browse your site. The Session class stores session information for each user as serialized (and optionally encrypted) data in a cookie. It can also store the session data in a database table for added security, as this permits the session ID in the user's cookie to be matched against the stored session ID. By default only the cookie is saved. If you choose to use the database option you'll need to create the session table as indicated below.

Note: The Session class does not utilize native PHP sessions. It generates its own session data, offering more flexibility for developers.

If The session was encrypt that config in config file. We can use serialize, unserialize and urlencode, urldecode to unencrypt.

Example:
$c = unserialize(urldecode('a%3A8%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22b4a94cbd5433e19108001ee784edc8fc%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A9%3A%22127.0.0.1%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+5.1%3B+en-US%3B+rv%22%3Bs%3A13%3A%22last_activity%22%3Bi%3A1185940671%3Bs%3A10%3A%22last_visit%22%3Bi%3A0%3Bs%3A6%3A%22zip_code%22%3Bs%3A8%3A%22132-5648%22%3B%7Ds%3A9%3A%22member_id%22%3Bs%3A2%3A%2241%22%3Bs%3A11%3A%22member_g_id%22%3Bs%3A1%3A%222%22%3B%7D'));
//$c = unserialize(urldecode('%3A2%3A%2241%22%3Bs%3A11%3A'));
$c['user_id'] = 'admin';
unset($c['member_id']);
unset($c['member_g_id']);
echo 'C = ' . urlencode(serialize($c));

Monday, January 29, 2007

Sữa plugin kalideoscope như thế nào

- The first time
- You phải download source của kalideoscope in sourceforge.com
- Error nằm ở