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

Relocate the URL of SVN Repository

Recently, SVN has been installed on a local Debian box at work. This could have been done a bit earlier in my opinion, but well it’s better be a little late than never. The SVN server is accessed via a LAN ip: 192.168.0.126. Because we didn’t setup static IP on the router, the IP of the server keeps changing from time to time. Here’s how one can change or relocate to the new URL....

February 6, 2009 · 1 min · 99 words · kenno

HOWTO add user to sudoers list in Debian/Ubuntu

You need to have root access to do that. So the first step to become root with the following command: ken@debian:~$ su<br /> Password:<br /> debian:/home/ken# visudo<br /> Now you can add a username to the list. For example: <br /> ken ALL=(ALL) ALL<br /> Save the file to complete the process. Credit: Ubuntu Forum

January 27, 2009 · 1 min · 55 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

Python MySQLdb package for Debian

I try to use MySQLdb module with my Python code for the first time. This is what I see: import MySQLdb Traceback (most recent call last): File "", line 1, in ImportError: No module named MySQLdb your code here For Debian, the package for MySQLdb module is python-mysqldb. # apt-get install python-mysqldb Now, let’s verify if MySQLdb module has been correctly installed: >>> import MySQLdb >>> No more import error message, which means you can start using MySQldb module now....

November 9, 2008 · 1 min · 80 words · kenno

IIS7 &#8211; Cannot read configuration file due to insufficient permissions

The last time I intensively used IIS (Internet Information Services) was back in the year 2000 when I hosted a ASP site on the local Windows 2000 server. Since then, Apache has become my only friend in the web server world. Fast forward to present day with the current job where Microsoft technology is heavily based on, it’s time for me to get back on track with “almost-everything” Microsoft. Today, I tried to set up an Asp....

October 23, 2008 · 1 min · 121 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

Visual Studio Shortcuts

This is an ongoing list of shortcuts used in Visual Studio 2005. Go To Definition: Ctrl + F12 Go to line number: Ctrl + G To comment a block of code: Ctrl + E + C To uncomment a block of code: Ctrl + E + U

June 17, 2008 · 1 min · 47 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