April 2007
Monthly Archive
Sun 29 Apr 2007
Posted by NZEYIMANA Emery Fabrice under
FreeBSD ,
Linux ,
OS ,
Software1 Comment
After 48 sleepless hours, I finally managed to mount a partition formatted using UFS (the native FreeBSD filesystem).
My configuration is:
HDA: 6 GB (This is where I installed Ubuntu: has partitions hda1, hda2, hda5)
HDC: 80 GB (This is my second hard disk: has one partition hdc1 with UFS)
[code]root@server:/# cat /proc/partitions
major |
minor |
#blocks |
name |
3 |
0 |
3924648 |
hda |
3 |
1 |
3694918 |
hda1 |
3 |
2 |
1 |
hda2 |
3 |
5 |
224878 |
hda5 |
22 |
0 |
78150744 |
hdc |
22 |
1 |
78150710 |
hdc1 |
[/code]
Here is how I did it:
1. I created a mount point /home/myfiles
[code]root@server:/#mkdir /home/myfiles[/code]
2. I run the command [code]root@server:/#mount -r -t ufs -o ufstype=ufs2 /dev/hdc1 /home/myfiles[/code]
I can now read my files by going to /home/myfiles !
In case you want the drive to be remounted at reboot time, then you will have to edit the /etc/fstab file to add the mount information at the end of the file
[code]/dev/hdc1 /home/myfiles ufs auto,ro,ufstype=ufs2 0 0[/code]
Until now, it seems impossible to mount the drive in write mode. Some articles talk of re-compiling the kernel for write support.
Sat 28 Apr 2007
Posted by NZEYIMANA Emery Fabrice under
Linux ,
OS ,
SoftwareComments Off
The install was fast and painless.
I have configured it to be a LAMP in less than 20 minutes (have not counted though).
Tue 24 Apr 2007
Posted by NZEYIMANA Emery Fabrice under
Ikinyarwanda ,
RwandaComments Off
Website ya The new Times (http://www.newtimes.co.rw) iba online inshuro zitari nyinshi cyane ku mwaka. Ubanza bagura bandwidth nkeya kandi bafite abasomyi benshi. Cyangwa byaterwa n’uko yenda umukuru wayo aherutse kwegura nta wamenya.

Mon 23 Apr 2007
Posted by NZEYIMANA Emery Fabrice under
Humor ,
Ikinyarwanda ,
RwandaComments Off
Ngo umunyarwanda yaguze (yibye) impamyabumenyi ya A0 (ubundi ihabwa uwize imyaka ine cyangwa itanu muri kaminuza) ariko ageze mu kazi karamunanira. Amahirwe yagize ngo ni uko mu bo yategekaga harimo ufite impamyabumenyi ya A2 (yarize atandatu yisumbuye yose) uzi byinshi maze akajya akora ake agakora n’akuwo waminuje.
Nyuma aza kubaza uwa A2 ati ariko ko uzi byinshi ufite impamyabushozi yihe? Undi ati mfite A2. Niko kugenda aho yakuye ya yindi ya A0 ati ndashaka noneho iyitwa A2. Ntibazuyaje baba barayikoze arayitahana.
Umunsi wakurikiyeho yasubiye ku kazi ajya kureba umukuriye ati ni ukunyongeza umushahara kuko noneho nazanye indi mpamyabushobozi iruta iya mbere nari mfite. Ati kandi iyo ngiyo ikubye gatanu imwe ya mbere nari mfite.
Sinjye wahera, hahera impamyabumenyi n’abibwira ko ari zo zikora akazi !!!
Sun 22 Apr 2007
Posted by NZEYIMANA Emery Fabrice under
English ,
MySQL ,
PHP ,
SoftwareComments Off
For formatting dates in MySQL one can use the DATE_FORMAT function like DATE_FORMAT(`date_col or value`, dateFormatString)
In a select query, that looks like SELECT DATE_FORMAT(`date_col or value`, dateFormatString) FROM `tableName`
. In case one wants to use the server current date, the query would look like SELECT DATE_FORMAT(NOW(), dateFormatString) FROM `tableName`
For a detailed explanation of the options that can be in a dateFormatString, read the MySQL date related page (dev.mysql.com/doc/).
In the general examples below, I will use the date 22 April 2007 16:15:23 (date of creation of this article)
Language |
Format String |
Output |
English |
%m/%d/%Y |
04/22/2007 |
English |
%m/%d/%Y %H:%i |
04/22/2007 16:15 |
English |
%a, %D %b %Y %H:%i |
Sun, 22nd Apr 2007 16:15 |
Français |
%d-%m-%Y |
22-04-2007 |
Français |
%d-%m-%Y %H:%i |
22-04-2007 16:15 |
Français |
%a, %D %b %Y %H:%i |
Dim, 22 Avr 2007 16:15 |
Ikinyarwanda |
%d-%m-%Y |
22-04-2007 |
Ikinyarwanda |
%d-%m-%Y %H:%i |
22-04-2007 16:15 |
Ikinyarwanda |
%a, %D %b %Y %H:%i |
Cyu, 22 Mata 2007 16:15 |
Svenska |
%Y-%m-%d |
2007-04-22 |
Svenska |
%Y-%m-%d %H:%i |
2007-04-22 16:15 |
Svenska |
%Y-%m-%d %H:%i |
22-april-2007 16:15 |
For PHP formatString, visit http://www.php.net/date