NHibernate.MappingException: Unknown entity class

If you get MappingException error, there are two things you should check out: Make sure the name of the *.hbm.xml is spelled correctly — not *.hmb.xml nor *.mbh.xml Make sure the Build Action property is set to “Embeded Resource.” I learned this the hard way. First, I wrongly spelled hbm.xml and I had its Buld Action property set to “Content”. The above 2 points fixed the problem. Credit: VerySimple, Inc

May 26, 2009 · 1 min · 70 words · kenno

Debian JSON for Ruby

I tried to install JSON for Ruby via RubyGem, # gem install json and I got the following error message: Building native extensions. This could take a while...<br /> ERROR: Error installing json:<br /> ERROR: Failed to build gem native extension. <br /> /usr/bin/ruby1.8 extconf.rb install json<br /> extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)<br /> from extconf.rb:1<br /> <br /> Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/json-1.1.6 for inspection.<br /> Results logged to /usr/lib/ruby/gems/1.8/gems/json-1.1.6/ext/json/ext/generator/gem_make.out<br /> ...

May 24, 2009 · 1 min · 120 words · kenno

LoadError: no such file to load &#8212; 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