Entries Tagged as ''

Quicksilver and Lao-Tze

Recently I noticed Quicksilver about page. It’s really cool since it put Lao-Tze’s words on that, who was the “Old Master” lived in China Thouthands years ago. Thanks Mitchell for translation. I can still taste the “Dao De Jing” from the words.

About Quicksilver

Ubuntu 7.10 First Try for Workstation

Ubuntu 7.10 has been launched for several days. As Ubuntu’s loyalty user, I decided to upgrade my home workstation to Ubuntu 7.10. Installation was simple. It took less than half an hour to see familiar desktop.

Then, I found out it did not come up with Apache package. It was not big deal, I thought. I used apt-get to get Apache tarball.

sudo apt-get install apache2

Unfortunately however, it failed. I went to search why it happened. The general answer was: To get Apache package from the website. Well, okay, it was still not big deal for me. I downloaded Apache package and untar it to my home directory. I began to deploy the “Magic Three Steps”.

./configure –prefixe=/usr/bin

Unfortunately, configuration failed due to miss some libraries. Faint…

So, again, I went to search for those libraries and install to my brand new Ubuntu 7.10. These time, “./configure” followed by “make” and “make install”, all steps were successful.

I typed my host name to web browser and happily saw the words: “It Works”.

Finally, I got it. For desktop users, go Ubuntu since it provide a lot of drivers to compatible with your hardware. For workstation/server users, go Fedora. I don’t mention the reason, do I?

Configuration of Fedora 7 Dual Head Display For Nvidia

Somehow, for unknown reason, Fedora 7 is more like embrace ATI than Nvidia. I have two computer boxes, one was installed ATI video card and the other was installed Nvidia video card, both of them are dual head. For the ATI one, I just enabled dual head display after installation of Fedora 7. Then, it worked. For the Nvidia one, I have to download the kernel for nvidia. I don’t mean to compare these two video cards. I’d like share my xrog.conf file in here for those who have encountered the same problem as me.

First, we need to install kernal to support Nvidia.

yum -y install kmod-nvidia-100.14.19-1.2.6.22.7_85.fc7.i686

Then, after reboot the box, you may change /etc/X11/xrog.conf to the following.

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Wed Sep 12 14:29:35 PDT 2007

# Xorg configuration created by system-config-display

Section “ServerLayout”
Identifier “dual head configuration”
Screen 0 “Screen0″ LeftOf “Screen1″
Screen 1 “Screen1″ 0 0
InputDevice “Keyboard0″ “Mouse0″
EndSection

Section “Files”
EndSection

Section “Module”
Load “glx”
EndSection

Section “InputDevice”
# generated from default
Identifier “Mouse0″
Driver “mouse”
Option “Protocol” “auto”
Option “Device” “/dev/input/mice”
Option “Emulate3Buttons” “no”
Option “ZAxisMapping” “4 5″
EndSection

Section “InputDevice”
Identifier “Keyboard0″
Driver “kbd”
Option “XkbModel” “pc105″
Option “XkbLayout” “us”
EndSection

Section “Monitor”
Identifier “Monitor0″
VendorName “Monitor Vendor”
ModelName “Monitor 1024×768″
HorizSync 31.5 – 57.0
VertRefresh 50.0 – 70.0
Option “dpms”
EndSection

Section “Monitor”
Identifier “Monitor1″
VendorName “Monitor Vendor” ModelName “Monitor 1024×768″
HorizSync 31.5 – 57.0
VertRefresh 50.0 – 70.0
Option “dpms”
EndSection

Section “Device”
Identifier “Videocard0″
Driver “nvidia”
VendorName “Videocard Vendor”
BoardName “nVidia Corporation NV34 [GeForce FX 5200]”
BusID “PCI:1:0:0″
Screen 0
EndSection

Section “Device”
Identifier “Videocard1″
Driver “nvidia”
VendorName “Videocard Vendor”
BoardName “nVidia Corporation NV34 [GeForce FX 5200]”
BusID “PCI:1:0:0″
Screen 1
EndSection

Section “Screen”
Identifier “Screen0″
Device “Videocard0″
DefaultDepth 24
SubSection “Display”
Viewport 0 0
Depth 24
Modes “1280×960″
EndSubSection
EndSection

Section “Screen”
Identifier “Screen1″
Device “Videocard1″
Monitor “Monitor1″
DefaultDepth 24
SubSection “Display”
Viewport 0 0
Depth 24
Modes “1280×960″
EndSubSection
EndSection

Silverlight: Standard Rather Than Product

I recently went to realDeveloper tour hold by Microsoft. The topic of this year is around web application. The next release of .NET will be launched on Feb some day next year. Everybody is happy with that. Although Silverlight is not major topic of the presentation, a quite lot people brought the question about that. If you go to Silverlight website, you will find out that it is actually a kind of new technology to compete with AJAX.

Well, what’s wrong with AJAX? Microsoft listed several problems that currently we always encountered. However, in my opinion, Microsoft is intent to come up with new technology, which can be binding with .NET platform and which can compete any technology that does not belong to Microsoft. I should say, Cool!

Here brought a question: What are you selling? Most people think that, companies are suppose to sell products, which are either hardware or software. It’s true. However, in the real world, we can probably group all companies to three levels. The third level companies are selling products. The second level companies are selling solutions, such as IBM. The first level companies are actually selling technical standard, such as Microsoft, Oracle and Cisco. It would not be surprised that Microsoft tried to replace XML by XAML.

Fast Way to Erase All Data on RAID Disk

If we got a 500G hard disk, which belonged to RAID 5 previously, we can reset it quickly, by input an 100M null file to MBR. Note, this way is really fast and dirty.

dd if=/dev/zero of=/dev/sdb bs=1024 count=102400

Then, we got the brand new 500G hard disk.

Basic Sweet Dough

Dough

Ingredient: (dozen)

  • water 180g
  • egg 40-50g
  • sugar 50g
  • salt 4g
  • butter milk 30g
  • Gluten 5g
  • Bread Flour 360g
  • Instant Yeast 4-5g
  • butter 30g

Step 1. Combine above ingredients in order, except butter, into the bread machine and set for dough cycle. Once the dough has been formed and kneaded for a while, put butter into the machine and continue kneading, until the whole process finished. The whole process usually takes 1 1/2 hours until the dough has doubled.

Step 2. Take out the dough and deflate it to expel the gas, place for 10 minutes.

Step 3. Put the dough on a lightly floured surface, cut into 12 pieces (55-60g each piece) and shape as desire. Cover and let rise for 30-60 minutes.

Step 4. Heat the oven for 375° F, bake for 12 minutes.

Dough is ready

Merge Strategy: Big goes Bigger

I just heard that Business Object was acquired by SAP. It wouldn’t be surprised since Oracle has already acquired People Soft. Business Object can’t live without big guys. Then, logically, that is happened. Actually, Oracle even tried to get BEA to compete with IBM. Well, BEA rejected the acquirement since 6.7 billion is really underestimate the value of BEA.

The business is more like game. They have their own rules to play the game. In the game, the big goes bigger. If the business cannot be the number one in its area, then it will lose the game.

Fedora Yum Third Party Repositories

Well, just in case when you need, and welcome to let me know more.

  1. DAG – http://dag.wieers.com/home-made/apt/
  2. Dries – http://dries.ulyssis.org/rpm/
  3. FreshRPMS – http://freshrpms.net/
  4. NewRPMS – http://newrpms.sunsite.dk/
  5. ATrpms – http://atrpms.net/
  6. Nrpms – http://nrpms.net/
  7. Planet CCRMA – http://ccrma.stanford.edu/planetccrma/software/
  8. Livna – http://rpm.livna.org/
  9. JPackage – http://jpackage.org/

How to Mount NTFS and FAT32

The mount is actually simple.

mount -t ntfs -o nls=utf8,umask=000 /dev/hda2 /mnt/nt
mount -t vftp -o iocharsets=utf8,umask=000 /dev/hda3 /mnt/fat32

However, if you failed to mount the disk, this is probably because you don’t have correct module/kernel support. To install support driver. You need access http://linux-ntfs.sourceforge.net or, use yum.

[root@henrydu ~]# yum search ntfs
livna 100% |=========================| 2.1 kB 00:00
fedora 100% |=========================| 2.1 kB 00:00
adobe-linux-i386 100% |=========================| 951 B 00:00
updates 100% |=========================| 2.3 kB 00:00

kmod-ntfs.i686 2.1.28-3.2.6.22.9_91.f livna
Matched from:
kmod-ntfs
ntfs kernel module(s)
This package provides the ntfs kernel modules built for the Linux
kernel 2.6.22.9-91.fc7 for the i686 family of processors.

http://www.linux-ntfs.org/

ntfsprogs.i386 1.13.1-6.fc7 updates
Matched from:
ntfsprogs
NTFS filesystem libraries and utilities
The Linux-NTFS project (http://www.linux-ntfs.org/) aims to bring full support
for the NTFS filesystem to the Linux operating system. The ntfsprogs package
currently consists of a library and utilities such as mkntfs, ntfscat, ntfsls,
ntfsresize, and ntfsundelete (for a full list of included utilities see man 8
ntfsprogs after installation).

http://www.linux-ntfs.org/

ntfsprogs.i386 1.13.1-6.fc7 installed
Matched from:
ntfsprogs
NTFS filesystem libraries and utilities

The Linux-NTFS project (http://www.linux-ntfs.org/) aims to bring full support
for the NTFS filesystem to the Linux operating system. The ntfsprogs package
currently consists of a library and utilities such as mkntfs, ntfscat, ntfsls,
ntfsresize, and ntfsundelete (for a full list of included utilities see man 8
ntfsprogs after installation).

http://www.linux-ntfs.org/

You also can add “Livna” to you yum repository if you don’t have yet. The following is for Fedora 7.

rpm -ivh http://rpm.livna.org/livna-release-7.rpm

How to Enlarge Virtual Memory for Fedora 7 and Solaris

Sometimes physical memory is not enough for us to run some kinds of service. We need more virtual memory. The following is an example to create 2G virtual memory for Redhat Fedora 7 and Sun Solaris 9.

1. Redhat Fedora 7

First of all, we need to create 2G file. /dev/zero is a special file that provides as many null characters as are read from it.

[root@henrydu /]# dd if=/dev/zero of=/swapfile bs=1024 count=2048000
2048000+0 records in
2048000+0 records out
2097152000 bytes (2.1 GB) copied, 61.6084 s, 34.0 MB/s

Secondly, we need to set up swapfile.

[root@henrydu /]# mkswap /swapfile
Setting up swapspace version 1, size = 2097147 kB

Thirdly, Enable swapfile.

[root@henrydu /]# swapon /swapfile

At last, Edit /etc/fstab to enable it at boot time.

/swapfile swap swap defaults 0 0

You also can check swap space by
[root@henrydu /]# cat /proc/swaps

Filename Type Size Used Priority
/dev/mapper/VolGroup00-LogVol01 partition 1048568 363324 -1
/swapfile file 2047992 0 -2

2. Sun Solaris 9

First of all, we need login as super user by typing “su -”.

Secondly, check the current swap file and plan how big file do we need to create.

swap -l

Thirdly, make a swap file, say, 2G file named swapfile001.

mkfile 2g /swapfile/swapfile001

Then, make the file as part of virtual memory.

swap -a /swapfile/swapfile001

Last, reboot the sun box.