similar to: Rails 3 Multiple database with Joins conditions throws exception

Displaying 20 results from an estimated 11000 matches similar to: "Rails 3 Multiple database with Joins conditions throws exception"

2011 Dec 08
3
Problem with running "WEbrick"
Hi After I installed ruby 1.9.2p290(with rubyInstaller) on windows 7 and connected MySQL to it ( I checked it and it worked ) I installed rails then I create a project on "C:\Users\Amiref\Documents\Sites\simple_cms" with this order : "rails new simple_cms -d mysql" then when I use "rails server" to run webrick I saw this error on command prompt : "rails.bat :
2010 Apr 27
7
Puppetmaster with stored configs leaks file descriptors on CentOS 5
Hi folks, When I enabled stored configs on my puppet master, it began keeping lots of open connections to the MySQL server (as far as I understand it opened one connection for each client run and never closed them). I set up the server to close idle connections after 5 minutes. Now the database server does close the connections but the puppet master keeps them in CLOSE_WAIT state and eventually
2013 Jan 29
0
mysql installation in Windows 7
I have Windows 7. I am trying to get the gem installed for MySQL Server 5.5 So, I get the zip file for gem from Brian Mario’s repository on github mysql2, extract it in the new mysql2-0.3.12b5 folder and start the procedure as follows. As seen below, I get the error “file ''lib'' not found” at the end. I tried many times, got the same problem. Anyone has a solution to this?
2011 Nov 27
0
/usr/bin/ld: cannot find -lmysqlclient_r installing ruby gem mysql2.... in Fedora Linux + MySQL 5.5.15...
[dinooz@fedora rails]$ uname -a Linux fedora 2.6.35.10-74.fc14.i686 #1 SMP Thu Dec 23 16:17:40 UTC 2010 i686 i686 i386 GNU/Linux [dinooz@fedora rails]$ [dinooz@fedora rails]$ rpm -qa |grep MySQL MySQL-client-5.5.15-1.linux2.6.i386 MySQL-test-5.5.15-1.linux2.6.i386 MySQL-server-5.5.15-1.linux2.6.i386 MySQL-shared-compat-5.5.15-1.linux2.6.i386 MySQL-devel-5.5.15-1.linux2.6.i386 [dinooz@fedora
2009 Mar 04
2
Selecting one row or multiple rows per ID
Hi, Could someone help with coding this in R? I need to select one row per patient i in clinic j. The data is organized similar to that shown below. Two columns - patient i in column j identify each unique patient. There are two columns on outcome. Some patients have multiple rows with each row representing one visit, coded for in the column, visit. Some patients have just one row indicating
2006 Sep 07
3
graphics - joining repeated measures with a line
I would like to join repeated measures for patients across two visits using a line. The program below uses symbols to represent each patient. Basically, I would like to join each pair of symbols. library(lattice) patient <- c(1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9) var <- c(826,119,168,90,572,323,122,10,42,900,250,180,120,650,400,130,12,33) visit <- c(1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2)
2005 Jun 20
1
(no subject)
R friends, I am using R 2.1.0 in a Win XP . I have a problem working with lists, probably I do not understand how to use them. Lets suppose that a set of patients visit a clinic once a year for 4 years on each visit a test, say 'eib' is performed with results 0 or 1 The patients do not all visit the clinic the 4 times but they missed a lot of visits. The test is considered positive if it
2014 May 15
0
composite primary key - Rails 4.1
Hi, I am facing issue with composite primary key In my gem file I have the below entries - gem 'rails', '>= 4.1.0.rc2' gem 'mysql2' gem 'rb-readline', "~> 0.5.1" gem 'sdoc', '~> 0.4.0', group: :doc gem 'spring', group: :development gem 'bcrypt', '~> 3.1.7' gem
2011 Sep 13
4
Changing adapters in ActiveRecord does not change the generated sql
If I establish a new connection with a new adapter (ie. switch from mysql to postgresl) the generated sql is still mysql specific. I tried all sorts of reset methods on AR::Base but to no avail. There must be something being memoized on ActiveRecord base that has to do with the adapter and it doesn''t get cleared when you establish a connection with a new adapter. I know this
2006 Aug 17
1
How to sort child table on fields in the associated parent
For an Xray file system patients have folders and folders have studies. That is: patients folders studies id id id name patient_id folder_id ... label type ... ... The list of studies with their associated folder and patient might look like this: name folder_label study_type
2009 Mar 17
11
Refactoring module
Dear all Please see the following module, In module SX3 SX4 and SX5 have similar class Tasklist, but inherit from different class. I will use the following code to connect to different data sources RemoteSX3Model.establish_connection sx3_hash RemoteSX4Model.establish_connection sx4_hash RemoteSX5Model.establish_connection sx5_hash How can I refactor my code in module to look simpler? Thank you
2008 Jul 03
0
Random effects and lme4
I'm running some multi-level binomial models with lme4 and have a question regarding the estimated random effects. Suppose I have nested data e.g. clinic and then patient within clinic. The standard deviations of the random effects at each level are roughly equal in a model for real life data. Attention then turns to examining the individual random effects at each level. I'm extracting
2011 Sep 18
0
Two Separate Issues: rails generate
Hi folks. I am just starting rails and have two current issues. I have installed everything, I think, and (first) I''m having permissions feedback upon rails generate: > $ rails generate > /Library/Ruby/Gems/1.8/gems/railties-3.1.0/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /Library/WebServer/Documents in PATH, mode 040777 >
2011 Jul 18
1
rails server being aborted due to mysql lib file not available
Hi, My system has the following : MacOs Leopard Rails 3 Ruby 1.9 Mysql 5.1.58 mysql2 ruby gems My problem is that when i give "rails server", the task aborts with the foll error rails server/Users/nisha/.rvm/gems/ruby-1.9.2-p180@rails3/gems/ railties-3.0.5/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
2009 Aug 28
0
Error connecting to Sybase (odd)
I have activerecord-sybase-adapter installed -- and Sybase itself, so I have the drivers. In irb or in the rails console, this works: ActiveRecord::Base.establish_connection( :adapter => “sybase”, :database => “mydb”, :host => “myhost”, :myport => myport, :username => “read_only”, :password => “read_only”) In Rails, I have this in my database.yml: pacs: adapter: sybase
2012 Jan 14
2
mysql2 error in production
As I need to upgrade a Rails app to 3.1 , I am trying to deploy it on a remote production server ( Linux Debian, after installing Rails 3.0.9 under rvm with all needed gems including mysql2 version 0.2.18 used by the app) after deployment, starting the app, I get a Load error w mysql2... ** [out :: www.mydomain.com] /var/www/vhosts/mydomain.com/rails/
2011 Jun 21
2
Problem launching WEBrick in Rails
Hey everyone, i''m super new to Rails and excited to get going! I''m following the Ruby on Rails Essentials 3 tutorial from Lynda very closely and came across an error at the step when launching WEBrick. MY Setup: I am on OS X. I have installed the MySQL client and ran it from my OS X system prefs. I double checked my gems and mysql (2.8.1) and mysql2 (0.3.6, 0.2.11) are BOTH
2013 Jul 13
1
Rails and MySQL
I''m trying to use MySQL instead of SQLite3. I have MySQL installed on my pc. Do I need to ran something in the ruby to use MySQL? C:\>rails new MySQLRestaurant --database=mysql C:\>cd MySQLRestaurant C:\MySQLRestaurant>rails generate scaffold review poster:string date:datetime ar ticle:text C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/l
2013 Nov 26
2
'$ rake db:create' don't work!
Hey guys, I''m new to learning RoR and I try to do a database with mysql and I have a problem. First I create a a folder in my desktop and after with command in the terminal on Mac Os Mavericks I create a project: rails new vota_prato -d mysql after I will try to create a database with this command: $ rake db:create and I have this error: MacBook-Pro-de-Romenig:vota_prato romenig$ rake
2013 Oct 08
4
'puppet storeconfigs export' killed
Hi, I currently have a MySQL database containing all Puppet storeconfigs. My intention is to migrate to PuppetDB on a PostgreSQL server, so the first step is to use the ''storeconfigs'' face to export all the DB to a file PuppetDB can later consume. But the ''puppet storeconfigs export'' command always ends up being killed, I suspect due to some sort of OOM