I am still having problems connecting to mysql via the activerecord-jdbc-adapter.
Got MySQL version 5.0.67 (MySQL Community Server) running on my Macbook.
As it is a first generation Macbook, still using Java 5…
At first I thought it was a Netbeans 6.1 configuration problem, as I am a newbie still trying to figure out most things… When I changed to Netbeans 6.5 RC2, I found that gem management is much improved.
activerecord-jdbc-adapter (0.8.2)
activerecord-jdbcmysql-adapter (0.8.2)
jdbc-mysql (5.0.4)
Did change environment.rb to include the adapter:
if RUBY_PLATFORM =~ /java/
require ‘rubygems’
gem ‘activerecord-jdbc-adapter’
end
Finally, changed database.yml to use the jdbc adapter:
development:
adapter: jdbcmysql
encoding: utf8
database: shoplet_dev
username: root
password: root
Nonetheless, with the activerecord-jdbc-adapter at version 0.8.2, rake is still aborting with error message:
“undefined method `ActiveRecord’ for #<ActiveRecord::ConnectionAdapters::JdbcAdapter:0×4bf0bb>”.
Can’t seem to find an idiotproof recipe to get the adapter to work.
Filed under: database, jruby, mysql, netbeans | Leave a Comment
Tags: adapter, jdbc, jruby, mysql, problem
Just installed git on osx.
I am a fan of offline version control, so for my project I’d like to us the git goodness.
Wanted to build the newest version of git on my Macbook, so I downloaded the tarball for git 1.6.0.3 from Git Home.
While following the peepcode screencast on git worked fine so far, I had to refer to the INSTALL file for really working global installing procedures. With git 1.6.0.3., you should do this on osx 10.5.5:
$ make prefix=/usr all doc info ;# as yourself
# make prefix=/usr install install-doc install-info ;# as root
(of course, /usr/local would work, too).
…and that didn’t install the man documentation for me.
Have to do a little more research.
Filed under: programming | 2 Comments
Tags: git, install, mac, osx, versioning
A screencast by Roman Strobl from Sun Microsystems.
He is describing how to access MySQL from inside Netbeans.
Very useful – don’t need to step outside the IDE anymore for configuring MySQL.
Filed under: database, netbeans, programming | Leave a Comment
Tags: mysql, netbeans, screencast
Here’s a very informative article by Ikai Lan at LinkedIn on how to configure a glassfish server to run a rails application packaged using warbler:
Filed under: jruby | Leave a Comment
Tags: rails warbler jruby glassfish
Beginning developing a project for my radiology department.
I am developing on a Macbook with Leopard 10.5.5.
Getting a database running on mongrel is really quite easy. A few failed attempts on starting “glassfish” on my machine made me try this link: 120 seconds
It was really that easy and fast. Ok, so for me it was five minutes to get the server up and running
Now I am continuing development using the beta PDF of the Pragmatic Programmers “Agile Web Development with Rails” (third edition).
Filed under: Uncategorized | 5 Comments
Tags: howto, mongrel rails jruby
I am going to develop the whole project on a Macbook running Leopard, OSX 10.5.5.
Using Jruby 1.1.4, with MySQL 5.0 for a database, and Mongrel is my webserver of choice. As an IDE, I am using Netbeans 6.1.
In preparation I am reading Bruce Eckel’s “Thinking in Java” (Fourth edition) – because using Jruby on Java needs some understanding of the JVM and the inner workings of Java.
Filed under: Uncategorized | Leave a Comment
