similar to: Observer behavior differences between DEV and TEST environments ?

Displaying 20 results from an estimated 500 matches similar to: "Observer behavior differences between DEV and TEST environments ?"

2010 Jun 11
2
AR after_initialize quandry
I have a case where I am abstracting the creation of models. After a fair bit of indirection, I eventually get around to making a .new call. I need to be able to pass params to that .new call. I know I can''t use def initialize() in an AR model (rather frustrating). So, I have found some references to after_initialize, but that doesn''t work either. I see several threads on
2006 Oct 27
5
Purpose of after_initialize in ActiveRecord?
All, I have a quick question - is the purpose of implementing after_initialize to allow custom attribute initialization for AR descendants? I have been overriding initialize whenever I require custom setup of my model classes, like so: def initialize(attributes = nil) super self.Status = ''G'' end So I have a couple of questions: 1) Could I achieve the same
2009 Jul 30
0
RODBC and Oracle
I just joined and though I did quickly read the posting guide it is quite possible not going to be a perfect posting. For one I tried to figure out how to reply to an existing message on the topic. I gave up but figured I keep at least the same subject. In a gist I get an empty data frame after issuing the following select query from R 2.9.1 to Oracle 10.2.0.1 64bit via RODBC 1.3 and Oracle 11g
2006 Aug 11
1
after_initialize and after_save
Hello, I am still reading Agile Web Developer pdf, it says about after_initialize and after_find. There is a Joe asks part when I read that they are special, however I didn''t really get the idea, why they are. On rubyonrails.org in the manual there is some sort description about their speciality, however their full descriptions are missing. What are the difference between
2007 Jun 16
1
extending activerecord base with after_initialize
hi, i am having problems getting after_initialize for activerecord subclasses. basically, i am trying to use the guid plugin by andy singleton. i am having problems extending the class to the plugins i installed, so i figured i will just apply this to all the models in my project. i trled to add the following to my lib/ folder. my goal is to extended the activerecord class so that it uses
2006 Jul 06
2
Custom init. of ActiveRecord objects - best practices
All, I''m wanting to initialize an ActiveRecord object. I understand that there is a method called after_initialize that appears to get called right after the ActiveRecord object is instantiated. Is after_initialize a Ruby thing or a Rails thing? Where is after_initialize documented? Can I pass parameters to it? If so, how? I want to initialize the "belongs_to" attribute of
2015 Aug 11
0
C6.7 evolution to cyrus imap(s) fails
Am 11.08.2015 um 22:28 schrieb Dr J Austin: > > Hi Alexander > > [root at maui:/var/log]$ watch 'tail -n40 maillog > > does not quiver when I try to connect That's suspicious. Let's exclude it is the client which causes the problem: Connect directly to the IMAPS server on CLI. openssl s_client -connect <server ip>:993 You hopefully see a greeting message
2010 Jan 12
1
Rails after_initialize block doesn't seem to be run in the backgroundrb context
Hi all, Just had an interesting production failure while updating my Rails application - a bunch of code previously in config/environment.rb was put into config/initializers. That resulted in me having to wrap some code in config/environments/production.rb into an after_initialize do ... end block When backgroundrb was run against that code, the setup done in that after_initialize block
2012 Dec 14
4
New Puppet User: Issues with pre-commit script
Hi Guys, I am new to puppet so please let me know if this is not the correct place for asking this question. I am setting up a new puppet environment running the latest 3.x version. I have the puppet master and client setup correctly and tested with deploying a simple file to the client. Now, I am working on adding all the configs to SVN since I will have all my users checkout the
2008 Aug 24
2
config.after_initialize and development mode
Hi, I''m using activemerchant and setting up a class variable using config.after_initialize. It works great for the first request, but then the variable is nil. config.after_initialize do ActiveMerchant::Billing::Base.mode = :test OrderTransaction.gateway = ActiveMerchant::Billing::PaypalGateway.new(...) end I''m assuming this is is due to the model reloading after each
2005 Jan 06
0
Symlinks not behaving as expected?
My server is an AIX box running samba 3.0.4. I have published a share of symlinked logfiles, because I want to publish the logs but not the full directories in which the logs live. Here are some examples: lrwxrwxrwx 1 hmrbot mis 16 Sep 08 11:43 boxaudit-exempt -> ../../ant/exempt lrwxrwxrwx 1 hmrbot mis 14 Sep 08 11:41 done.txn -> ../../txn/done
2015 Aug 11
4
C6.7 evolution to cyrus imap(s) fails
On Tue, 11 Aug 2015, Alexander Dalloz wrote: > Am 11.08.2015 um 21:47 schrieb Dr J Austin: >>> >>> What does cyrus-imapd log? >>> >>> Alexander >>> >>> >> >> Where should I be looking ? > > /var/log/maillog is the default log file for the MAIL facility. Else check > your syslog() daemon configuration. > >
2015 Jan 22
0
Fatal: master: service(imap): child 19549 killed with signal 11 (core dumped)
hello. Today I had a problem (core dumped) in a dovecot installation update yesterday. After many hours I found that when one settings "protocol imap" the option "replication" causes (core dumped). In this server settings "replication" was removed leaving only the "protocol imap" (my error) I send my documentation error so they can add a validation and
2010 Oct 27
0
[LLVMdev] interest in support for Transactional Memory?
Hi Torvald, On Oct 27, 2010, at 8:01, Torvald Riegel wrote: > On Tuesday 26 October 2010 14:33:02 Duncan Sands wrote: >>> transaction properties (eg, virtually atomic + isolated execution) for >>> ordinary program code. Thus, to make incrementing a counter thread-safe, >>> you could say __transaction { counter++; } and the compiler would >>> transform this
2006 Jun 26
1
ActiveRecord, instance_eval, and PStore
I''m trying to add some per-object behaviors to objects descended from ActiveRecord, by using after_initialize() and instance_eval(), like this: def after_initialize self.instance_eval(File.read(''customers/default.rb'')) end (Ultimately the file path will be dynamic, this is just proof of concept.) default.rb just contains a few method definitions like this one: def
2006 May 10
2
Exploring ActiveRecord::Base#serialize
Hi I was recently taught about the useful ActiveRecord::Base#serialize. It''s very useful for persisting arbitrary objects through the regular database. For example, say you want to store a Set of all the years a Convention took place. You do: class Convention < ActiveRecord::Base serialize :years, Set end This effectively creates a Convention#years attribute, which is a set: you
2010 Oct 27
2
[LLVMdev] interest in support for Transactional Memory?
On Tuesday 26 October 2010 14:33:02 Duncan Sands wrote: > > transaction properties (eg, virtually atomic + isolated execution) for > > ordinary program code. Thus, to make incrementing a counter thread-safe, > > you could say __transaction { counter++; } and the compiler would > > transform this code so that it uses a TM library, which in turn does > > concurrency
2006 Nov 04
0
understanding rails transactions support.
Hi, I''m a bit confused about Rails transactions. Are these Rails transactions: Model.transaction do ... end or does the above code actually start a database transaction? If this starts a db transaction, what sort of db transaction does this start? I would not want serializable transactions as this would be expensive. If this starts a Rails application level txn, is there a way to
2012 Jun 25
1
Arules - predict function issues - subscript out of bounds
Hi, I'm doing a Market Basket Analysis in which I have a list of transaction id's in column 2 and transactions(product names) in column 1. I read this into a transaction file using a txn<-read.transaction(file="data.csv",format='single', rm.duplicates=F, cols=c(1,2)) If I want to use the apriori algorithm everything seems to be running fine. However it is when I want
1999 Sep 28
0
configure bug with IRIX 6.5 (Makedep) (PR#288)
Full_Name: Leo Caves Version: 0.65.0 OS: SGI/IRIX 6.5 Submission from: (NULL) (144.32.72.76) using default configure under SGI/IRIX 6.5. (I switched to gnumake, after initial problems, this might not be necesssary). the make rule for creating dependencies is wrong for the SGI C compiler. The rule assumes that cc -M file.c -o file.d works (it doesn't). One needs to explicitly capture stdout