May 2007
M T W T F S S
« Mar   Jun »
 123456
78910111213
14151617181920
21222324252627
28293031  

Rails and DB2 data types

11:20 on Mon 2007-05-28 by Leons Petrazickis DB2, Rails

When creating a table in a Rails migration, you have to specify data types using platform-agnostic names. The mapping of Rails types onto DB2 types is defined in ibm_db_adapter.rb: :primary_key => @servertype.primary_key, :string      => { :name => "varchar", :limit => 255 }, :text        => { :name => "clob" }, :integer [...]

Reflection in Javascript

09:56 on Fri 2007-05-11 by Leons Petrazickis Javascript

It’s very easy to do reflection in Javascript. Reflection is when your code looks onto itself to discover its variables and functions. It allows two different Javascript codebases to learn about each other, and it’s useful for exploring third-party APIs. Preamble In Javascript, all objects are hashes/associative arrays/dictionaries. A hash is like an array, except [...]

No implementation defined for org.apache.commons.logging.LogFactory

16:05 on Thu 2007-05-03 by Leons Petrazickis DB2, Java

While writing a DB2 stored procedure that invoked a SOAP/WSDL web service using Apache Axis as part of WSIF, I ran into this doozie: org.apache.commons.discovery.DiscoveryException: No implementation defined for org.apache.commons.logging.LogFactory Ultimately, it’s caused by a too restrictive lib/security/java.policy file that ships with DB2. Wrong Solution The standard way to define an implementation is to create [...]