<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6984494559653018611</id><updated>2011-11-28T01:19:13.069Z</updated><title type='text'>Bio Rails Development</title><subtitle type='html'>Building real scientific application in ruby with rails</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-517769895174454349</id><published>2009-04-09T23:21:00.003+01:00</published><updated>2009-04-09T23:43:17.703+01:00</updated><title type='text'>More 2.3.2 Upgrade issues</title><content type='html'>&lt;span style="font-weight: bold;font-size:130%;" &gt;Lots of ActiveRecord::StaleObjectError errors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ok took some time clearing these. The basic problem was with large complex trees of objects resulting in multiple paths destroying the same objects.  For example a 3 level process &lt;-- context &lt;-- parameters. As a handy shortcut process has a collection of parameters and contexts. The delete was cascading down via both process-&gt;context-&gt;parameter and process-&gt;parameter. This resulted in a attempt to delete a record twice.&lt;br /&gt;&lt;br /&gt;Methods of fixing these problems:-&lt;br /&gt;&lt;ul&gt;&lt;li&gt;look carefully and change see if :delete_all raw delete can be used for dependent records.&lt;/li&gt;&lt;li&gt;look a collection and see if :destroy options can be removed&lt;/li&gt;&lt;li&gt;monkey patch to activerecord/lib/active_record/locking/optimistic.rb line 126 so only errors if real problem with stale record, allow duplicate deletes.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;My little patch of Active Record to the last few problems as the following:-&lt;br /&gt;&lt;span style="background-color: rgb(220, 220, 220);font-family:courier new;" &gt;&lt;br /&gt;unless affected_rows == 1&lt;br /&gt;  raise ActiveRecord::StaleObjectError, "Attempted to delete a stale object"&lt;br /&gt;end&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Changed to add test for already delete record and say which object actually had the problem :-&lt;br /&gt;&lt;span style="background-color: rgb(220, 220, 220);font-family:courier new;" &gt;  &lt;br /&gt;if affected_rows != 1 and self.class.exists?(self.id)&lt;br /&gt;  raise ActiveRecord::StaleObjectError, "Attempted to delete a stale object #{self.class}[#{self.id}]"&lt;br /&gt;end&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-517769895174454349?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/517769895174454349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=517769895174454349' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/517769895174454349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/517769895174454349'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2009/04/more-232-upgrade-issues.html' title='More 2.3.2 Upgrade issues'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-6146981330732918366</id><published>2009-04-01T09:49:00.002+01:00</published><updated>2009-04-01T10:08:11.645+01:00</updated><title type='text'>Rails 2.0 -&gt; 2.3.2 Upgrade</title><content type='html'>&lt;span style="font-size:100%;"&gt;General the upgrade was not a major problems most of the application work. Have about 25 or 2500 tests failing, mainly with stale record on delete for lots of controller and unit tests of destroying object. The main issues where as follows:-&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Cleanup&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;Had a few problems with plugins causing problems after update of rails:-&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;plugin/engines needed to be deleted,now part of rails&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;plugin/arts needed to be deleted&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:100%;"&gt;Also had a few renames of Dependencies.load_paths to  ActiveSupport::Dependencies.load_paths from the 2.1+ days to sort out&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Testing&lt;/span&gt;&lt;br /&gt;This caused a number of problem due to widespread use of the Test::Unit::TestCase in the code. These had to be changed a number of large search and replaces in the test tree.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;unit tests replace Test::Unit::TestCase with ActiveSupport::TestCase&lt;/li&gt;&lt;li&gt;function tests  Test::Unit::TestCase with ActiveController::TestCase&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Database Migrations&lt;/span&gt;&lt;br /&gt;Needed a little hack to move development database to rails 2.3.2. Needed to fill the schema_migrations with old style version numbers as follows:-&lt;br /&gt;&lt;blockquote&gt;1.upto(391){|i|DataConcept.connection.execute "insert into schema_migrations (version) values(#{i})"}&lt;/blockquote&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Todo List&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Need to work on destroy test failures, to see if bad code or test under 2.3.2&lt;br /&gt;&lt;/li&gt;&lt;li&gt;gloc plugin does support new internationalization API will have to be changed&lt;/li&gt;&lt;li&gt;Need to test modified action web services plugin with 2.3.2&lt;/li&gt;&lt;li&gt;Need to check with ruby 1.9.1&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-6146981330732918366?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/6146981330732918366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=6146981330732918366' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/6146981330732918366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/6146981330732918366'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2009/04/rails-20-232-upgrade.html' title='Rails 2.0 -&gt; 2.3.2 Upgrade'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-2256996008153659729</id><published>2009-04-01T09:41:00.003+01:00</published><updated>2009-04-01T09:49:18.935+01:00</updated><title type='text'>Starting on Biorails 4.0</title><content type='html'>Boy been a busy year of delivery and going into production on a number of sites. Have not had time to write for ages.  Now starting the majors upgrades to Biorails 4.0 cycle. Currently looking and ruby 1.9.1 and rails 2.3.2 updates.&lt;br /&gt;&lt;br /&gt;First three rails things todo are:-&lt;br /&gt;&lt;br /&gt;1) Update to Rails 2.3&lt;br /&gt;2) Update Action Web services to work&lt;br /&gt;3) Update Oracle drivers to support bulk inserts&lt;br /&gt;4) Check gems on ruby 1.9.1&lt;br /&gt;&lt;br /&gt;On the application side&lt;br /&gt;&lt;br /&gt;1) Redo the unstructured data management. Time to make the product a better authoring tools&lt;br /&gt;2) Support a lot better printable output in Open Office,word and PDF formats&lt;br /&gt;3) Enhance the recipes to allow creation of a multiple level tree of items from a recipe&lt;br /&gt;4) Time for UI make over again&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-2256996008153659729?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/2256996008153659729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=2256996008153659729' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/2256996008153659729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/2256996008153659729'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2009/04/starting-on-biorails-40.html' title='Starting on Biorails 4.0'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-3812612768468002589</id><published>2008-10-31T10:12:00.007Z</published><updated>2008-10-31T23:01:38.471Z</updated><title type='text'>Synergy on ubuntu 8.04 , freeze up fixed.</title><content type='html'>Synergy has been my long term tool for sharing keyboard and mouse between my development and build machines. Unluckily with ubuntu 8.04 there has been a lots of 4-5sec freeze up problems. In the end moved to 2x keyboards and mice again.&lt;br /&gt;&lt;br /&gt;Now this is fixed with some open googling and some source patching, as follows.&lt;br /&gt;&lt;br /&gt;1) download 1.3.1 source code from http://synergy2.sourceforge.net/&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;See http://downloads.sourceforge.net/synergy2/synergy-1.3.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;tar -xzf  synergy-1.3.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&gt;2) Patch with fix from lanchpad&lt;br /&gt;&lt;br /&gt;See. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/194029&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;wget http://launchpadlibrarian.net/13995863/synergy_diffs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;patch -p1 &lt; &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;synergy_diffs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;3) Install needed extra libraries (XTest)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo apt-get install libxtst-dev&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4) rebuild and install&lt;br /&gt;&lt;br /&gt;cd &lt;span style="font-family:courier new;"&gt;synergy-1.3.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;./configure -prefix=/usr&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Restart synergy all works smoothly again. Can get  space for coffee cups back again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: Plus 12hours some problems with synergy going wild and eating 100% cpu so not a full solution looks like I have to review whats happening. Not much betters solution the the run with sudo method I used before.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-3812612768468002589?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/3812612768468002589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=3812612768468002589' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/3812612768468002589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/3812612768468002589'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2008/10/synergy-on-ubuntu-804-freeze-up-fixed.html' title='Synergy on ubuntu 8.04 , freeze up fixed.'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-1529040558367908914</id><published>2008-07-01T12:01:00.003+01:00</published><updated>2008-07-01T12:10:56.017+01:00</updated><title type='text'>Biorails 3.0</title><content type='html'>Ok have merged and release 3.0 code onto core. The http://biorails.org/svn/biorails/core/trunk contains 3.0 code release now. All that is needed is lots of web site updates and packaged installations of open source version. Afraid followed the money can concentrated on enterprise version for last few months.&lt;br /&gt;&lt;br /&gt;Have done packaged windows and linux installation of biorails for enterprise version. Now need to do packaged open version on windows for people to play with.&lt;br /&gt;&lt;br /&gt;Getting to the full up in 5 minutes up and working experience is a hard for a web application. Almost there now with windows thanks to sqlite as a database.  So think first release with a standalone demo version on windows.&lt;br /&gt;Some more work needed for linux versions as apache front end still needs to be hand edited.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-1529040558367908914?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/1529040558367908914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=1529040558367908914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/1529040558367908914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/1529040558367908914'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2008/07/biorails-30.html' title='Biorails 3.0'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-2916617923710443610</id><published>2008-05-31T23:02:00.004+01:00</published><updated>2008-05-31T23:18:52.294+01:00</updated><title type='text'>Oracle 11g /Ubuntu update</title><content type='html'>Ok found the magic option to speed up oracle 11g for my development box.&lt;br /&gt;&lt;blockquote&gt;emctl stop dbconsole&lt;/blockquote&gt;Now converted back to simply database server its works a lot better. Afraid after some time looking a performance stats found could not find my application in top SQL . The enterprise console performance stats only showed enterprise console eating all the resources.&lt;br /&gt;&lt;br /&gt;Database on its own appears to be comparable but a little larger then XE. Afraid think in case of oracle, enterprise may still mean crew of 100's and something the site of a aircraft carrier to run it at full potential. But that what its aimed at the 1Tb+ database not developer/test systems.&lt;br /&gt;&lt;br /&gt;Think I may go back to XE one tested everything works with 11g as expected.&lt;br /&gt;Fun next as time to see how stacks up against Sqlite, Mysql and Postgres in running the all the my test suites.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-2916617923710443610?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/2916617923710443610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=2916617923710443610' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/2916617923710443610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/2916617923710443610'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2008/05/oracle-11g-ubuntu-update.html' title='Oracle 11g /Ubuntu update'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-1638291571792884122</id><published>2008-05-29T22:39:00.008+01:00</published><updated>2009-02-11T09:12:39.153Z</updated><title type='text'>Oracle 11g on Ubuntu 8.04 64 bit / Life on the Edge</title><content type='html'>Decided to experiment with oracle and taken the hard road with Oracle 11g on Ubuntu 8.04. This was is my main development box and a good solid dual core AMD64 box. Just upgrade from 6.06 to 8.04 ubuntu and its time to give 64 bit oracle another go. Last time gave up and when 32 bit of OS and oracle, with a simple Oracle XE installation.&lt;br /&gt;&lt;br /&gt;Before started found the following articles to lead the way&lt;br /&gt;&lt;ul&gt;&lt;li style="font-weight: bold;"&gt;&lt;a href="http://www.pythian.com/blogs/968/installing-oracle-11g-on-ubuntu-804-lts-hardy-heron"&gt;Installing Oracle 11g on Ubuntu 8.04 LTS (Hardy Heron)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="font-weight: bold;"&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=172783"&gt;Oracle 10g on 64bit AMD Ubuntu Tips&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li style="font-weight: bold;"&gt;&lt;a href="http://halisway.blogspot.com/2006/10/oracle-10gr2-on-ubuntu-610-amd64.html"&gt;Oracle 10gR2 on Ubuntu 6.10 AMD64&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;The blog by &lt;a href="http://halisway.blogspot.com/"&gt;Halis way&lt;/a&gt; was a great help as really acted as a template for my 11g my work. As other have notedf one of the main catches is that the Oracle Universal Installer (OUI).&lt;br /&gt;So we need a 32-bit Java triggered and a soem 386 compatability libraries to get it working.&lt;br /&gt;&lt;br /&gt;There were some linkage problems with the 32bit exproc  which is used with C++ database procedures and ultra text search. I simply continued through this as not planning to use exproc. I still have to solve this problem so remember this a play installation oracle and not suitable for production/heavy use. If to really want a supportable oracle platform afraid best to swap to openSUSE or CentOS.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Machine Setup&lt;/span&gt;&lt;br /&gt;First of all make sure your machine set up as a server with a static IP address and host name pointing to the external ip address. Check or edit /etc/network/interfaces to make sure the interface is static. For example my interface look as follows:-&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;auto lo&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;iface lo inet loopback&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;iface eth1 inet static&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;address 192.168.1.10&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;netmask 255.255.255.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gateway 192.168.1.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;auto eth1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;iface eth0 inet dhcp&lt;/span&gt;&lt;/blockquote&gt;On my box eth0 points out  to the world and eth1 is inhouse network. Then double check the /etc/hosts to make sure there a line for the server name&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;$ grep $(hostname) /etc/hosts&lt;br /&gt;192.168.1.10           acles64&lt;br /&gt;&lt;/blockquote&gt;If you see 127.0.0.1 just edit the hosts file to have the external IP.&lt;br /&gt;&lt;br /&gt;Now its time for a lot of compat libraries and 32-bit libraries.&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;sudo apt-get install &lt;/span&gt;build-essential&lt;span style="font-family:courier new;"&gt; zsh libaio1 lesstif2&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;sudo apt-get install &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;lesstif2-dev make libc6 libstdc++5 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo apt-get install lib32stdc++6 lib32z1 ia32-libs&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;This will probably cascade in to quite a few packages depending on how much you have installed, be patient and let it download everything it needs. The extra ia32 libraries is probably the biggest change to the old 32-bit installation.&lt;br /&gt;&lt;br /&gt;Edit /etc/sysctl.conf to have the kernel parameters required by Oracle&lt;br /&gt;(Afraid have not put any thought here simply copied &lt;a href="http://halisway.blogspot.com/"&gt;Halis way&lt;/a&gt;  10g ones, may not be ideal for 11g or needed).&lt;br /&gt;&lt;br /&gt;Add these lines at bottom of/etc/sysctl.conf :&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;# Oracle stuff&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;kernel.shmall = 2097152&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;kernel.shmmax = 2147483648&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;kernel.shmmni = 4096&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;kernel.sem = 250 32000 100 128&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;fs.file-max = 65536&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;net.ipv4.ip_local_port_range = 1024 65000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;net.core.rmem_default = 262144&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;net.core.rmem_max = 262144&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;net.core.wmem_default = 262144&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;net.core.wmem_max = 262144&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;vm.swappiness=10&lt;/span&gt;&lt;/blockquote&gt;Create the oracle user and required groups.&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;sudo groupadd nobody&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo groupadd oinstall&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo groupadd dba&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo useradd -s /bin/bash -g oinstall -G dba oracle&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo passwd oracle&lt;/span&gt;&lt;/blockquote&gt;Increase system limits by adding these lines to /etc/security/limits.conf:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt; soft nproc 2047&lt;br /&gt;hard nproc 16384&lt;br /&gt;soft nofile 1024&lt;br /&gt;hard nofile 65536&lt;/blockquote&gt;Next added a few symlinks to avoid any script problems:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;sudo ln -s /usr/bin/awk /bin/awk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo ln -s /bin/true /bin/rpm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo ln -s /usr/bin/basename /bin/basename&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo ln -s /lib/libgcc_s.so.1 /lib/libgcc_s.so&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Oracle installation&lt;/span&gt;&lt;br /&gt;This was done under the oracle user and dba group was added for access to oracle. I like /opt/oracle as a installation route and luckily had space there.&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;sudo mkdir -p /opt/oracle&lt;br /&gt;sudo chown -R oracle:oinstall /opt/oracle&lt;br /&gt;sudo chmod -R 775 /opt/oracle&lt;/blockquote&gt;I downloaded Oracle 11g and unzip its to /opt/oracle/database. Then run the installer, make sure you are allowed to use the X11 server.&lt;br /&gt;&lt;br /&gt;May need to login as oracle  or play with export DISPLAY, xhost, vnc etc to get it working.&lt;br /&gt;To get the 32-bit JRE to work you need to set the XLOCALELIBDIR before running the installer:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;export XLOCALELIBDIR=/usr/lib32/X11/locale&lt;br /&gt;&lt;br /&gt;cd /opt/oracle/database&lt;br /&gt;./runInstaller -ignoreSysPrereqs&lt;/blockquote&gt;I just ran the defaults  through with following corrections&lt;br /&gt;&lt;br /&gt;1) Set location to /opt/oracle/product/11.1.0/db&lt;br /&gt;2) Corrected oraInventory location as /opt/oracle/oraInventory&lt;br /&gt;3) Continued with two linkage errors&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The linkage errors were luckily in non vital areas (free text search) and (exproc32) so contained and have got my biorails application installed. The Error are shown below:-&lt;br /&gt;&lt;br /&gt;Linkage of exproc32&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;INFO: End output from spawned process.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;INFO: ----------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;INFO: Exception thrown from action: make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Exception Name: MakefileException&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Exception String: Error in invoking target 'all_no_orcl' of makefile '/opt/oracle/product/11.1.0/db/rdbms/l$&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Exception Severity: 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;INFO: Calling Action unixActions10.2.0.1.0  make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        registerOnly = false&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        installMakePath = /usr/bin/make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        installMakeFileName = /opt/oracle/product/11.1.0/db/srvm/lib/ins_srvm.mk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        installTarget = install&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        undoMakeFileName =&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        installArguments = ORACLE_HOME=/opt/oracle/product/11.1.0/db&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        logFile = /opt/oracle/product/11.1.0/db/install/make.log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        undoTarget =&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        progMsg = Linking RDBMS Executables&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;Then Later there a problem with the Oracle Text INSO filter ctxhx needed by Ultra Search crawler . As not planning to use not worried at present.&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;INFO: make: *** [ctxhx] Error 1&lt;br /&gt;&lt;br /&gt;INFO: End output from spawned process.&lt;br /&gt;INFO: ----------------------------------&lt;br /&gt;INFO: Exception thrown from action: make&lt;br /&gt;Exception Name: MakefileException&lt;br /&gt;Exception String: Error in invoking target 'install' of makefile '/opt/oracle/product/11.1.0/db/ctx/lib/ins$&lt;br /&gt;Exception Severity: 1&lt;br /&gt;INFO: Calling Action unixActions10.2.0.1.0  make&lt;br /&gt;   registerOnly = false&lt;br /&gt;   installMakePath = /usr/bin/make&lt;br /&gt;   installMakeFileName = /opt/oracle/product/11.1.0/db/rdbms/lib/ins_rdbms.mk&lt;br /&gt;   installTarget = ipc_g&lt;br /&gt;   undoMakeFileName =&lt;br /&gt;   installArguments = ORACLE_HOME=/opt/oracle/product/11.1.0/db&lt;br /&gt;   logFile = /opt/oracle/product/11.1.0/db/install/make.log&lt;br /&gt;   undoTarget =&lt;br /&gt;   progMsg = Linking UDP&lt;/blockquote&gt;&lt;br /&gt;Once this was done could go in and create users, roles, tables and schema I needed and appears to be working fine. Only real problem its eaten 1Gb of memory and taken over my development box in standard oracle manor. Generally think Oracle XE makes the better developer platform as a lot lighter on resources.&lt;br /&gt;&lt;br /&gt;Went in and cut things back a lots and got memory back for my development IDE.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-1638291571792884122?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/1638291571792884122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=1638291571792884122' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/1638291571792884122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/1638291571792884122'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2008/05/oracle-11g-on-ubuntu-804-64-bit-life-on.html' title='Oracle 11g on Ubuntu 8.04 64 bit / Life on the Edge'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-6726203703213092791</id><published>2007-12-23T21:21:00.000Z</published><updated>2007-12-23T22:06:38.110Z</updated><title type='text'>Is Windows Vista a lost cause?</title><content type='html'>Ok been, started asking around and cant find a single person I know say they prefer vista vs. XP. Even the die hard .Net developer I know think XP is better. Dont understand this, there was supposed to be loads of usability studies etc. What happened someone forgot to include anyone who actually uses a computer full time or previous version of windows in this.&lt;br /&gt;&lt;br /&gt;I really loved the original windows NT when it came out, I purchased a Windows Tablet as loved the idea and still use it a browser to this day. As a developer I like Windows for for rich client stuff, spent years in visual studio building application. On server side used to use NT everywhere but have moved to Linux in recent years. But now appear that windows may have managed to shot itself in the foot on client side. I'm developing a growing dislike for vista with each time I try and use it. Just don't feel in control, cant work out why things like internet access aren't working, its now getting to stage of not wanting to see it again. I keep going backing thinking, it must be me, but then give up and reboot in Linux to actually have get the machine to work well. &lt;br /&gt;&lt;br /&gt;Wireless, Media playing, simple internet browsing all work better on the Linux side and whole machine just feels so much more snappy. Only thing that works better on windows is hibernate and suspend which are really poor on the linux side. But happy to boot and shutdown a machine to have a working systems. Doesn't hunt that actually boot and shuts down fast don't really care.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-6726203703213092791?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/6726203703213092791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=6726203703213092791' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/6726203703213092791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/6726203703213092791'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2007/12/is-windows-vista-lost-cause.html' title='Is Windows Vista a lost cause?'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-3421610821870064321</id><published>2007-12-19T11:48:00.000Z</published><updated>2007-12-19T12:20:25.664Z</updated><title type='text'>Windows Vista v.s. Mint Linux</title><content type='html'>Ok got a new laptop for traveling yesterday, a little Toshiba R500 &lt;1kg job,  so got first real exposure to vista. Afraid as after function not glitter so cant really see much in new Aero UI. Once turned off all the pointless glitter system as a lot more responsive and was happier may be better then XP but still liked the simple 2000 interface better . Cant really see a reason to upgrade any existing systems, as appears the same odd system with a repaint and new dice on the mirror.&lt;br /&gt;May be a little harder to find stuff, but this is simply due to moving things around. With each new version the bits I use as developer simply appear to move down a level and become a little harder to find (Environment variable, services, folders in file manager etc). &lt;br /&gt;&lt;br /&gt;Had to spend a few hours watching it configure, update and reboot its self a number of time as found and installed my tool set, SqlYog, Enterprise Architect, NetBeans, Firefox, Skype, Mysql etc. All worked got a little board of now going to do xxx dialogs. All worked, but cant understand were the 780 mb or rams gone before installing any applications!. End results 4 hours work to get to a usable state and most of my environment build.&lt;br /&gt;&lt;br /&gt;Finally got bored to put in Mint 4.0, my main desktop,and installed. The difference was  shocking  10min later was installed and working . A simple selection package later and was up in working. As use crossover even the windows application installations worked faster and easer then under windows.  Basically about 20 minutes later was up and running. Only real difference it computer simply appeared more responsive and faster.&lt;br /&gt;&lt;br /&gt;End result it have not rebooted into vista again, will keep it around in-case get a nice .net C# project but otherwise Mint got the edge for my usage and just makes the computer appear faster!&lt;br /&gt;Afraid believe role of a operating system is to run application for me not use all the processing cycles its self. Afraid vista appears to forget this, Linux remembers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-3421610821870064321?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/3421610821870064321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=3421610821870064321' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/3421610821870064321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/3421610821870064321'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2007/12/vista-lasted-4-hours.html' title='Windows Vista v.s. Mint Linux'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-8581382873360930821</id><published>2007-12-18T00:34:00.000Z</published><updated>2007-12-18T10:37:03.197Z</updated><title type='text'>Oracle and Rails 2.0</title><content type='html'>Oh well once you think you done, alongs coming  testing in a production environment and some extra fun. Turns out no one else appears to be working with Oracle and Rails 2.0 yet.&lt;br /&gt;No one implemented the needed select_rows  in svn. Caused a few problems to use the driver in tsting.&lt;br /&gt;&lt;br /&gt;In put ended up with a nice custom oracle driver in the end. Need a few minor changes:-&lt;br /&gt;&lt;ul&gt;&lt;li&gt; Modified mapping to my own likes&lt;br /&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;float &lt;-&gt; binary_double&lt;br /&gt;&lt;/li&gt;&lt;li&gt;char(1) N/Y &lt;-&gt; boolean&lt;/li&gt;&lt;li&gt;text &lt;-&gt; varchar2(2024)&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Boolean (true t 1 y +) all mapped to true&lt;/li&gt;&lt;li&gt;Implemented select_rows &lt;/li&gt;&lt;li&gt;added a high/low sequence which I prefer for high insert rates with oracle&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;the current version of the gem I created is up at &lt;a href="http://biorails.org/svn/biorails/contrib/activerecord-oracle-adapter-1.0.0.gem"&gt;http://biorails.org/svn/biorails/contrib/activerecord-oracle-adapter-1.0.0.gem&lt;/a&gt; if anyone interested. At present its a work in progress. Need to put on my old oracle DBA hat and look for anyway to improve it. But may help anyone else moving up to 2.0 with a oracle backend in the next few weeks.  Would like to use Insert returning for sequences and trigger filled values if possible but will have to have a further look.&lt;br /&gt;&lt;br /&gt;Put needed changes on ticket: &lt;a href="http://dev.rubyonrails.org/ticket/10415"&gt;#10415&lt;/a&gt; in rails dev.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-8581382873360930821?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/8581382873360930821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=8581382873360930821' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/8581382873360930821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/8581382873360930821'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2007/12/oracle-and-rails-20.html' title='Oracle and Rails 2.0'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-3339012202871180990</id><published>2007-12-15T15:44:00.000Z</published><updated>2007-12-15T15:56:05.987Z</updated><title type='text'>Finished migrating to Rails 2.0</title><content type='html'>Just a not to say code base is now passing all test with Rails 2.0.  Took about 8 hours of effort in the end mostly with scope and SOAP changes.&lt;br /&gt;&lt;br /&gt;So feel free to upgrade &lt;a href="http://biorails.org/biorails/"&gt;Biorails&lt;/a&gt; and try it out and upgrade local rails if you want. At present environment.rb does not contain a version to will attempt to run on most recent installed rails version.&lt;br /&gt;&lt;br /&gt;Expected status:-&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Units:  353 tests, 668 assertions, 0 failures, 0 errors&lt;/li&gt;&lt;li&gt;Functionals: 301 tests, 780 assertions, 0 failures, 0 errors&lt;/li&gt;&lt;/ul&gt;Have got a simple does it return correctly or throw a exception test on most controller actions now . Only real problem is create/update functional are not really testing all the create/update objects with generation of new records.&lt;br /&gt;&lt;br /&gt;Rails 2.0 upgrade produced a lot of donkey work but went smoothly the mains changes needed are shown below:-&lt;br /&gt;&lt;br /&gt;1) Paginate.new =&gt; model.paginate via will_paginate plugin&lt;br /&gt;&lt;br /&gt;Keep a eye of bottom of pages to check new paginate control is coming up ok in visual testing. Buts appears ok on initial pass&lt;br /&gt;&lt;br /&gt;2) end_form*&lt;br /&gt;&lt;br /&gt;Have had to change a number of forms to block wrappers to&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;% form_tag( stuffff ) do %&gt;&lt;br /&gt;&lt;% end %&gt;&lt;/span&gt;&lt;/blockquote&gt;3) with_scope&lt;br /&gt;&lt;br /&gt;Use this a lot to manage visibility of data. Has gone protected so having to move filters to part of correct model. Model.with_scope =&gt; self.with_scope and code moves into correct models and referenced so&lt;br /&gt;&lt;br /&gt;On the whole appears a litte faster other then this no real problem seen.&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;  def self.visible(*args)&lt;br /&gt;  self.with_scope( :find =&gt; {&lt;br /&gt;       :conditions=&gt; ['exists (select 1 from memberships m,studies s where m.user_id=? and s.id=study_protocols.study_id and m.project_id=s.project_id)',User.current.id]&lt;br /&gt;      })  do&lt;br /&gt;     self.find(*args)&lt;br /&gt;  end&lt;br /&gt;end &lt;/span&gt;&lt;/blockquote&gt;4) Had to Add 3 plugins to externals list in svn to cover bits moved out of core rails:-&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;script/plugin in_place_editing&lt;br /&gt;script/plugin act_as_tree&lt;br /&gt;script/plugin will_paginate &lt;/span&gt;&lt;/blockquote&gt;Need to  find if there a Oracle plugin.There is talk that oracle ActiveRecord has moved out to separate gem/plugin could not find this yet. Will have another look later but will not effect development or testing yet.&lt;br /&gt;&lt;br /&gt;5) Acton Web Services&lt;br /&gt;&lt;br /&gt;Well this was a pain, but changed over to a plugin based on 1.2.6 code under my control at present. Will have to test this with our .net office client to make sure its working well.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-3339012202871180990?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/3339012202871180990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=3339012202871180990' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/3339012202871180990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/3339012202871180990'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2007/12/finished-migrating-to-rails-20.html' title='Finished migrating to Rails 2.0'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-4108788448311690301</id><published>2007-12-15T15:24:00.000Z</published><updated>2007-12-30T03:51:51.876Z</updated><title type='text'>ActionWebService and Rails 2.0</title><content type='html'>Well looks like I have to take on supporting this for my &lt;a href="http://biorails.com/"&gt;BioRails&lt;/a&gt; project. Afraid on the client side we are making heavy use of .NET generated client code generated from the WSDL. This is used for the Microsoft office client integration is isn't going to become restful soon. Also have clients using the same historic interface so ended up picking up AWS porting to 2.0.&lt;br /&gt;&lt;br /&gt;To install the plugin the following should work:-&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;script/server plugin http://biorails.org/svn/biorails/plugins/action_web_services&lt;/span&gt;&lt;/blockquote&gt; At present all I can say is it passes our in-house test suite for the web services I want. Beyond that I have not had time to go. Had to do a few minor changes to get invoke to work, fully made it display calls sorted by name which have been meaning to do for ages.&lt;br /&gt;&lt;br /&gt;Maybe for online services could keep few mongrels up with 1.2.6 dedicated to web service requests after move to 2.0. But as  we distributing a  software package instead of a service this would be hard on customers.&lt;br /&gt;&lt;br /&gt;Basic changes are setting the gem dependencies to allow for use with Rails 2.0&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;  gem 'activesupport', '&gt;= 1.0.2'&lt;br /&gt;gem 'actionpack', '&gt;= 1.6.0'&lt;br /&gt;gem 'activerecord', '&gt;= 1.9.0'&lt;/span&gt;&lt;/blockquote&gt;Then the removal for &lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;include Reloadable::Deprecated&lt;/span&gt;&lt;/span&gt; from the code base. This appears to have worked for me. I expect there to be a similar gem soon. Then a number of conversions of render_file to render :text =&gt; content in the scaffold code.&lt;br /&gt;&lt;br /&gt;Its now back to working on 2.0.1 with my .net client usage pattern.  In fact working really well on client side as collections of simple data objects is a common pattern for .net and works well for building the client UI.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-4108788448311690301?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/4108788448311690301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=4108788448311690301' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/4108788448311690301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/4108788448311690301'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2007/12/actionwebservice-and-rails-20.html' title='ActionWebService and Rails 2.0'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-3244260775465678289</id><published>2007-12-11T21:35:00.000Z</published><updated>2007-12-11T21:47:25.188Z</updated><title type='text'>Web vs. Application development</title><content type='html'>Have noticed Im have come full circle. Im not writting a web application any more in Ruby on Rails. I am builder a n-tier rich client application, the difference is the client is javascript+html in a web browser as a container.  I now finding the MVC part moving to javascript with rails supplying the initial page template and then a few restful json data structures to handle change in state. Affraid cant  see the point in the X part of ajax  when  talking from ruby  to javascript  its a classic cut out the middle man xml. The .xml there on the action but .to_json faster then .to_xml for moving the data.&lt;br /&gt;&lt;br /&gt;I have been reading the ajax is evil etc talk, and this may be true to public wildly distributed view anywhere application. But I'm after the best user experience for a known set of clients for in-house usage. For my style of application JavaScript and Ajax is a boom as take away the web bar at the top with Mozilla prism and user just think its a richer client application like the host of .net application. In fact  in user pilot beat a competitor thick client swing application as user rated the web page as having better windows integration (odd but true).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-3244260775465678289?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/3244260775465678289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=3244260775465678289' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/3244260775465678289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/3244260775465678289'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2007/12/web-vs-application-development.html' title='Web vs. Application development'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-7566107639912189999</id><published>2007-12-05T12:58:00.000Z</published><updated>2007-12-05T13:13:44.474Z</updated><title type='text'>Building the UI in Javascript</title><content type='html'>Its turning point time with release of &lt;a href="http://extjs.com/"&gt;ExtJs&lt;/a&gt; 2.0 My web forms are now looking richer and better then in then in previous generation of applications with thick client swing UI's. Ok its not as easy as working visual studio and .net, this still has the edge, but feel its at the same level now as old style hand crafted swing.&lt;br /&gt;&lt;br /&gt;Have Tree, live feed combos ,drag and drop, data grids, validation and dynamic form editing sorted no. Can build and run all my major data entry UI in rich combination of rails and extjs.&lt;br /&gt;Only down side its about 500 line of javascript for a complex UI which dwarfs the initial ruby implementations.  This may not have the UI simplicity loved by the a lot of core rails people. But provides the richness expected on the  thick client crowd without the pain of distribution and installation of 1000's of machines.&lt;br /&gt;&lt;br /&gt;All that really lacking is solid graphics. Would really love all browser to support svg as think best approach would be a mixture of ajax and vector definitions from server. Could go the flash way for this and may well, but like open standard approach if possible.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-7566107639912189999?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/7566107639912189999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=7566107639912189999' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/7566107639912189999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/7566107639912189999'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2007/12/building-ui-in-javascript.html' title='Building the UI in Javascript'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-1787291665402717367</id><published>2007-09-27T23:56:00.000+01:00</published><updated>2007-09-28T00:07:31.091+01:00</updated><title type='text'>Back to Ext Javascript</title><content type='html'>Back to UI enhancement today putting reports results into a grid in a flexible manor. Big debate is whether to go for a html approach and use javascript as conversion of the presention, or drop presentation and go for JSON data hash to client and do the full presentation there.&lt;br /&gt;&lt;br /&gt;HTML has better fallback to hmtl but JSON as less traffic and server overhead. Currently prototyping the JSON route. But a close call really.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-1787291665402717367?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/1787291665402717367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=1787291665402717367' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/1787291665402717367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/1787291665402717367'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2007/09/back-to-ext-javascript.html' title='Back to Ext Javascript'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-4095347366520046211</id><published>2007-09-26T22:12:00.000+01:00</published><updated>2007-12-15T15:58:39.765Z</updated><title type='text'>How to you pick a database.</title><content type='html'>How to you pick a database. Normal answer is the customer desides for you if is a large project with a must run on X.&lt;br /&gt;&lt;br /&gt;If given a free choice the decision goes like this.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Database size &gt; x 100 server memory given me Oracle any day.&lt;/li&gt;&lt;li&gt;Database size &lt; x 10 server memory any big name database will work well&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Database &lt;=  server memory would use postgres as default , using it on off for years, its does everything a rdms should.&lt;/li&gt;&lt;/ol&gt;When your having rows appears in 10M blocks oracle partitioning and other trick are a god send.  Otherwize most of the database out they do eventhing needed.&lt;br /&gt;&lt;br /&gt;In the old 2 tier client/server days, always went for oracle because of Pl/Sql and used the oralce as combined application server and database with all business logical in the database. Now with n-tier only really want the database to do SQL database stuff to dont care so much. In porting applications arround the playing field very level for both open source and commerical offerings. All major ones to joins,foreign keys, unions etc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-4095347366520046211?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/4095347366520046211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=4095347366520046211' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/4095347366520046211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/4095347366520046211'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2007/09/how-to-you-pick-database.html' title='How to you pick a database.'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6984494559653018611.post-9207863233245959150</id><published>2007-09-26T22:08:00.000+01:00</published><updated>2007-09-26T22:12:27.357+01:00</updated><title type='text'>Process v.s. Productivity</title><content type='html'>Spent the day replying to a RFP.&lt;br /&gt;Client done a great job of written the RFP. Only real worry is with the amount of work in the document and our reply may actually be the same as actually doing the project in Rails.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6984494559653018611-9207863233245959150?l=biorails-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://biorails-dev.blogspot.com/feeds/9207863233245959150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6984494559653018611&amp;postID=9207863233245959150' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/9207863233245959150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6984494559653018611/posts/default/9207863233245959150'/><link rel='alternate' type='text/html' href='http://biorails-dev.blogspot.com/2007/09/process-vs-productivity.html' title='Process v.s. Productivity'/><author><name>Dr.Alces</name><uri>http://www.blogger.com/profile/05239638952817349221</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
