Recent activity
Subscribe to this feed
A comment on the question "How do I properly format my data w/out it being screwed with by the markup?" in Pivotal Labs:
we have plenty of tests that go through our continuous integration all the time that have the files we post -- however in my use case I have a program that posts a story for a NEW test that needs to be written cause something 'bad' happened -- this is all automated and the latter that you mentioned would be such a overly complex problem to something as simple as allowing text-as-is to be put into the story -- it just seems like this is something that should be inherent considering there is mark-up to begin with.. – feydr, on June 24, 2009 18:11
feydr replied on June 24, 2009 14:29 to the question "How do I properly format my data w/out it being screwed with by the markup?" in Pivotal Labs:
feydr asked a question in Pivotal Labs on June 22, 2009 21:32:
Can we get the ability to multiple stories in one go?I noticed there is a mass_delete -- the api server also happens to respond to the request mass-add without a 404 -- so is there a way to do multiple stories at once?? Right now if I add say 10 stories in a row I have to make 10 api requests which takes longer for me and puts a larger load on the api server.
feydr asked a question in Pivotal Labs on June 18, 2009 16:26:
Api Support for Multiple Story Addition?I'd very much like to have api support for bulk story loading.
Sometimes there are cases where I want to add 20+ stories at once.
I guess I'll have to just hit the api server 20 times..
feydr replied on June 01, 2009 16:00 to the problem "newrelic rpm interferring with merb-mailer 1.0.9" in New Relic:
Eshwar: according to the docs you should be able to do cc, I don't see bcc listed ... http://merbivore.com/documentation/cu... -- also, note that I'm using an entirely diff. method than dispatch&deliver in my 'fix'
feydr replied on May 18, 2009 14:49 to the question "How do I properly format my data w/out it being screwed with by the markup?" in Pivotal Labs:
feydr replied on April 06, 2009 21:25 to the idea "Delete/Edit Comments" in Pivotal Labs:
-
feydr started following the idea "Delete/Edit Comments" in Pivotal Labs.
feydr replied on April 06, 2009 21:22 to the question "How do I properly format my data w/out it being screwed with by the markup?" in Pivotal Labs:
feydr asked a question in Pivotal Labs on April 06, 2009 21:20:
How do I properly format my data w/out it being screwed with by the markup?Some of my story text is messed up with the markup language.
I have some sample code and in it you'll see something like
*** blah text goes here ***
the markup being used automatically converts that to bold.
I'd very much like to use something likeor
or really anything so it doesn't strip away things like this.
This is the only formatting problem I've noticed so far but
I'm sure there are other markup problems -- I don't think
having to escape it is the answer here.
feydr replied on March 23, 2009 19:48 to the problem "newrelic rpm interferring with merb-mailer 1.0.9" in New Relic:
I went ahead and fixed my problem, although there still seems to be a problem with newrelic overriding MerbMailer's dispatch_and_deliver (something with the var 'request'). I moved my method from the model to the controller and stuck it into a run_later loop like so:
run_later do
Merb::Mailer.new( :from => 'support@mysite.com', :to => @user.email,
:subject => 'Site Activation!', :text => partial(:signup)).deliver!
end
feydr replied on February 24, 2009 19:18 to the problem "newrelic rpm interferring with merb-mailer 1.0.9" in New Relic:
feydr reported a problem in New Relic on February 24, 2009 18:17:
newrelic rpm interferring with merb-mailer 1.0.9not sure what's going on yet but newrelic def. is interferring with my user signup, specifically my UserMailer controller; I can disable newrelic and this works fine, but with it in it fails like so:
merb : worker (port 4003) ~ undefined local variable or method `request' for #<usermailer:0xb7255104> - (NameError)
/usr/lib/ruby/gems/1.8/gems/newrelic_rpm-2.8.4/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:114:in `_dispatch'
/usr/lib/ruby/gems/1.8/gems/newrelic_rpm-2.8.4/lib/new_relic/agent/method_tracer.rb:41:in `trace_method_execution_with_scope'
/usr/lib/ruby/gems/1.8/gems/newrelic_rpm-2.8.4/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:109:in `_dispatch'
/usr/lib/ruby/gems/1.8/gems/newrelic_rpm-2.8.4/lib/new_relic/agent/method_tracer.rb:18:in `trace_method_execution_no_scope'
/usr/lib/ruby/gems/1.8/gems/newrelic_rpm-2.8.4/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:103:in `_dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-mailer-1.0.9/lib/merb-mailer/mail_controller.rb:321:in `dispatch_and_deliver'
/usr/lib/ruby/gems/1.8/gems/merb-mailer-1.0.9/lib/merb-mailer/mail_controller.rb:338:in `dispatch_and_deliver'
/mnt/app/releases/20090224174929/app/models/user.rb:135:in `send_signup_notification'
the relevant code is:
def send_signup_notification
params = {}
if Merb.environment.eql? 'production' then
UserMailer.dispatch_and_deliver(:signup, params.merge( :to => self.email,
:from => 'support@mysite.com', :subject => 'Invitation to Mysite!'),
:user => self)
end
end
let me know if I can provide more information..it kinda sucks cause I can't use this right now in it's current state
gem list | grep merb
antage-merb-recaptcha (1.0.2)
merb (1.0.9, 1.0.6.1, 1.0, 0.9.12, 0.9.10)
merb-action-args (1.0.9, 1.0.8.1, 1.0.6.1, 1.0.3, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-assets (1.0.9, 1.0.8.1, 1.0.6.1, 1.0.3, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-auth (1.0.9, 1.0.6.1, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-auth-core (1.0.9, 1.0.8.1, 1.0.6.1, 1.0.3, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-auth-more (1.0.9, 1.0.8.1, 1.0.6.1, 1.0.3, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-auth-slice-password (1.0.9, 1.0.8.1, 1.0.6.1, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-cache (1.0.9, 1.0.8.1, 1.0.6.1, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-core (1.0.9, 1.0.8.1, 1.0.6.1, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-exceptions (1.0.9, 1.0.8.1, 1.0.6.1, 1.0.3, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-gen (1.0.9, 1.0.6.1, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-haml (1.0.9, 1.0.6.1, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-helpers (1.0.9, 1.0.8.1, 1.0.6.1, 1.0.3, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-jquery (0.9.8)
merb-mailer (1.0.9, 1.0.8.1, 1.0.6.1, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-more (1.0.9, 1.0.6.1, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-param-protection (1.0.9, 1.0.8.1, 1.0.6.1, 1.0.3, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb-slices (1.0.9, 1.0.8.1, 1.0.6.1, 1.0.3, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb_datamapper (1.0.9, 1.0.6.1, 1.0, 0.9.13, 0.9.12, 0.9.10)
merb_paginate (0.0.4)
merb_recaptcha (0.0.4)
</usermailer:0xb7255104>
Loading Profile...
