The “x_sendfile” argument on the send_file method in Rails 2.1 is not well thought off as it has an impact in development mode also. I guess most Rails coders won’t have Apache proxying their mongrels in dev mode and so they don’t get to see any images or files but the plain path information. I’ll […]
Just a quick reminder for myself: With the default installation of an Oracle Express (Oracle XE) comes two shell script with all the necessary environment variables to use sql*plus, exp, imp and the like on the command line: source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.shsource /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh respectively source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.cshsource /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.csh
Some days ago, Ruby On Rails 2.1 saw the light of day and as usual, i eagerly updated my Daily Fratze project. I had some minor problems due to an old version of will_paginate and some major ones with my use of PDF::Writer. The PDF::Writer library still works very well but the the instructions here […]
Hibernate supports multiple types of inheritance mapping, some of them (Table per class, Table per subclass) using a discriminator column to decide the class. The type of the discriminator can be one of string, character, integer, byte, short, boolean, yes_no, true_false In case you need to use any other than string or character, i.e. integer, […]
Just a quick reminder for myself: int a = 0/0; // Throws ArithmeticException double d1 = 0/0.0; // d1 is NaN double d2 = 1/0.0; // d2 is Infinity double d3 = -1/0.0; // d3 is -Infinityint a = 0/0; // Throws ArithmeticException double d1 = 0/0.0; // d1 is NaN double d2 = 1/0.0; […]