井底之蛙

March 23, 2007

IBM ThinkPad T43 track point scrolling on Ubuntu

Filed under: tricks, hiweed, ubuntu

I just installed Hiweed, an Ubuntu based distributed edition on my ThinkPad T43 yesterday. Unfortunately, track point can not scroll with the blue middle button. But fortunately, there is a solution. According to this guide, add the following lines in "/etc/X11/xorg.conf" and comment the original. After reboot, scrolling works.

Section "InputDevice"
      Identifier "Configured Mouse"
      Driver "mouse"
      Option "CorePointer"
      Option "Device" "/dev/input/mice"
      Option "Protocol" "ExplorerPS/2"
      Option "Emulate3Buttons" "on"
      Option "Emulate3TimeOut" "50"
      Option "EmulateWheel" "on"
      Option "EmulateWheelTimeOut" "200"
      Option "EmulateWheelButton" "2"
      Option "YAxisMapping" "4 5"
      Option "XAxisMapping" "6 7"
      Option "ZAxisMapping" "4 5"
EndSection

March 8, 2007

chacha.com

Filed under: web

Yesterday I tried chacha. There is a human guide who help me search what I want. What I search for is ruby. Here is our conversation.

Status: Connecting …
Status: Looking for a guide …
Status: Connected to guide: linda(34978)
linda(34978): Welcome to ChaCha!
linda(34978): Hello I will be doing all your searching needs
linda(34978): Please be more specific as to what you’re looking for on this topic.
You: how to learn
linda(34978): Learn what?
linda(34978): The topic is ruby
You: how to learn ruby programming language
linda(34978): One moment please
You: thanks
linda(34978): Please take a moment and look at the first one while i find more
linda(34978): Are these results sufficient?
You: i need some tutorial, please! easy to learn
linda(34978): Are these results sufficient?
You: Yes, thanks. Are you robot or human?
linda(34978): Human
linda(34978): Is there anything else on this topic I can find for you today?
You: No, thanks. I just try chacha.com. :-)
linda(34978): Have a great day
linda(34978): Bye
You: Bye!
linda(34978): Please RATE ME. Thanks for using ChaCha.
Status: Session ended.

Who is Linda? Her profile.

March 6, 2007

no such file to load — openssl

Filed under: ruby

Playing with scRUBYt! is not very easy. When I try to run the following example it complained there is no ‘openssl’ lib could found.

require ‘rubygems’
require ’scrubyt’

google_data = Scrubyt::Extractor.define do
  fetch ‘http://www.google.com/’
  fill_textfield ‘q’, ‘ruby’
  submit
      
  result ‘Ruby Programming Language’
end

google_data.to_xml.write($stdout, 1)
Scrubyt::ResultDumper.print_statistics(google_data)

I googled and found maybe need ‘libopenssl-ruby1.8‘. After ‘apt-get install libopenssl-ruby1.8′, it still complained no ‘openssl’ cound found.

In the end, I found a solution here. Because I installed Ruby from compiling source, I should compile to install ‘openssl’ lib also.

Enter your ruby-source/ext/openssl directory and then

ruby extconf.rb
make
make install

Well, now the scRUBYt! example could run without any complains. Good.






















Get free blog up and running in minutes with Blogsome
Theme designed by Minz Meyer