LoadError: no such file to load — openssl

On a Debian system, if the Ruby complains about “LoadError: no such file to load — openssl” try to install this package libopenssl-ruby $ sudo apt-get install libopenssl-ruby Now test if the problem resolved: $ irb -rubygems<br /> irb(main):001:0> require 'openssl'<br /> => true Voilla, there is no more load error. Credit: Ruby Forum

May 23, 2009 · 1 min · 54 words · kenno

apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

Everytime I start apache2 (# apache2ctl start) this message is dispalyed: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName Well, the site is still running despite the above notification. To fix it, we need to edit the /etc/apache2/httpd.conf or /etc/apache2.conf and add the following line: ServerName nameofserver Now, restart the apache server (# apache2ctrl restart) and should no loger see the previous message.

February 10, 2009 · 1 min · 70 words · kenno

Backup &#038; Restore MS SQL 2000 Database

This is a short note I used at work to back up and restore the a MS SQL 2000 database. I have a database with the name abcengine running on a local SQL Server. I need to back up this datbase to a file, send it over to a remote SQL Server to restore it. There are two ways, which I’ve known, to back up a database. One of them is to use the Enterprise Manager to virsually back up, and another way is to use the Query Analyzer, writing the T-SQL code and run it....

January 15, 2009 · 2 min · 283 words · kenno

Deleted folder keeps reappearing

A while back, I let my brother using my laptop while he was waiting for his to arried from online order. My laptop has dual boot: Windows Vista Home Premium and Debian. Of course, my bro would only use Vista. He created a folder with his name on the desktop for whatever purpose it was. Let’s called it: Evil. When the laptop was returned to me, I wanted to get rid that Evil....

July 11, 2008 · 2 min · 238 words · kenno

SQL Setup error on Vista: SQL Server Setup Failed to compile MOF

I was attempting to install MS SQL Server 2005 Express edition without success on a computer run Windows Vista Business. There was an error message mentioned “…failed to compile the Managed Object Format (MOF)…” I’ve tried about five times with various solutions; still it didn’t fix the problem. As always, I found a working solution when I was about to give up on this installation. The problem was that the WMI repository was corrupted....

May 13, 2008 · 1 min · 192 words · kenno

htop - an interactive process viewer for Linux

Just browsed around through Linux blogs and I came across an interesting tool “htop” posted at Linux and Open Source Blog. What is htop? It’s an interactive process viewer for Linux. It’s very similar to top, however htop enables you to scroll the list vertically or horizontally; as well as supporting mouse operation. To install htop on Debian/Ubuntu distros, run this command: $ sudo apt-get install htop For openSUSE 10.2, you probably can install it with Yast, but I like smart:...

October 21, 2007 · 1 min · 86 words · kenno

Install OpenOffice Khmer Spell Checker on Debian

Finally, the amazing team from KhmerOS has realeased the Khmer Spell Checker (KSC) for OpenOffice. Here is the instruction for installing KSC on Debian (Lenny) system. Download the package from: http://sourceforge.net/project/showfiles.php?group_id=133361&package_id=244774 Unzip it: $ unzip Khmer_Spellchecker_v1.0.zip Change to that directory: $ cd Khmer Spellchecker v1.0/ Become the super user: $ su Password: (enter your root password) Copy two files: km_KH.aff km_KH.dic to OOo’s dict directory: # cp km_* /usr/lib/openoffice/share/dict/ooo The above directory could be slighty different from one system to another....

September 7, 2007 · 2 min · 247 words · kenno

Resume broken download with Wget

 $ wget <strong>-c</strong> http://www.example.com/files.iso The -c(ontinuous) option allows Wget to resume a partial download. Source: Geek to Live: Mastering Wget Wget resume broken download

September 5, 2007 · 1 min · 24 words · kenno

Compiling C# Souce Code as a Dynamic Link Library

The following is the command to compile dllsource.cs as a dynamic link library instead of the executable file: $ mcs /target:library dllsource.cs We can also specify a different name of the binary with the /out option. For example: $ mcs /target:library /out:mylibrary.dll dllsource.cs Finally, if we want to compile a souce which depends on a dll file, we need to use the /reference option. $ mcs example.cs /reference:mylibrary.dll Note: mcs is the mono compiler....

February 16, 2007 · 1 min · 85 words · kenno

Sum of elements in list in Prolog

Recently I noticed that my prolog skill is becoming rusty for not putting it work for very long. For this reason, I’m going to randomly write some prolog snippets here and there. Let’s started with one predicate called “sum_list” which calculate the value of all elements in a list. `% The sum of all elements in list in prolog To run/test the above code, save it to a file called: list_sum....

February 4, 2007 · 1 min · 116 words · kenno