unsubscribe

2022-08-12 Thread Sivakumar Ganesan
unsubscribe

-
To unsubscribe e-mail: user-unsubscr...@spark.apache.org



[rails-oceania] Re: ActionMailer in rake task

2013-06-21 Thread sivakumar ganesan
I'm planning to write the rake task to query few details from the model and 
sending the notification using ActionMailer object

I'm getting below error when I invoke the action mailer class in my rake 
task,

rake aborted!
#NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
C:/Rails application/TEST/lib/tasks/notifier.rak

My code:
notifier.rake file under lib/tasks

task :notify = :environment do 
   begin

   **
Notifier.deliver_submitted_list_notification(email_settings[RAILS_ENV], 
records )
end

notifier.rb model/notifier.rb
class Notifier  ActionMailer::Base
def submitted_list_notification(settings,records)

**
end
end

Any help would be appreciated!!

On Thursday, July 29, 2010 11:36:45 PM UTC-7, genericpenguin wrote:

 Hi guys

 I'm trying to use ActionMailer to send notifications outside of my 
 controllers from a rake task but I'm getting an error saying the method is 
 undefined.

 NoMethodError: undefined method `hour_record_expiry_notification' for 
 Notifier:Class

 The ActionMailer class looks like this:

 class Notifier  ActionMailer::Base
   ADMIN_ADDRESS = X@X
   def hour_record_expiry_notification(recipient,hour_record)
 recipients recipient.email_address_with_name
 from   ADMIN_ADDRESS
 subjectFreetime: WARNING - Hours expire in 10 days or less
 body   :user = recipient, :hour_record = hour_record
 content_type text/html
   end
 end

 and the rake task looks like this:

 namespace :freetime do
   desc Find hours that will expire soon and notify the owners
   task :notify_expiry = :environment do
 a = User.find(5);b = HourRecord.find(129)
 Notifier.hour_record_expiry_notification(a,b)
 Rails.logger.info Sent users expiry notifications.
   end
 end

 Notifier.instance_methods shows the method but I'm thinking there's some 
 tricker involved since it isn't an instance. :)

 I've googled around but I can't find anyone having the same problem which 
 leads me to believe I'm doing something stupid or nobody does mail 
 notifications with rake (This is a one off that runs from a cron job). Any 
 ideas? I normally would crack my head a bit more but it's 4:30 and if I go 
 home without solving it, I'll have to use the old shotgun.


-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rails-oceania+unsubscr...@googlegroups.com.
To post to this group, send email to rails-oceania@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] mongrel having lot of sockets in close wait state

2010-05-21 Thread Sivakumar Ganesan
Hi,

I have a rails webapp and lately one of the mongrel process gets stuck
in close_wait state and my app stops responding and needs a restart. I
have a apache in front of mongrel processes and the close wait state on
connection seems to be  on localhost only (My guess is it is apache).
Any help appreciated on how should i go about debugging this issue.

Thanks,
Sivakumar.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



RE: [arr] Gajini Rleased!!!!!!

2008-11-22 Thread sivakumar ganesan

It has released in Hyderabad too. I grabbed a copy from Planet M in madhapur.

Thanks,
Sivakumar.

To: arrahmanfans@yahoogroups.com
From: [EMAIL PROTECTED]
Date: Sat, 22 Nov 2008 19:14:15 +0530
Subject: Re: [arr] Gajini Rleased!!




















Yes it Kolkata too . Planet M is the Early bird and charting the 
sales. no one else has it on the racks.   got my copy.

--- On Sat, 22/11/08, krishnaeie [EMAIL PROTECTED] wrote:
From: krishnaeie [EMAIL PROTECTED]
Subject: [arr] Gajini Rleased!!
To: arrahmanfans@yahoogroups.com
Date: Saturday, 22 November, 2008, 6:34 PM








Available across all planet M in chennai got mine




  


 



   Be the first one to try the new Messenger 9 Beta!  Click here.
  














_
Searching for weekend getaways? Try Live.com
http://www.live.com/?scope=videoform=MICOAL

RE: [arr] Where i will get ATM audio CD in hyderabad

2007-10-26 Thread sivakumar ganesan
Hi,

You can get the CD from  Music World in Lifestyle Building(Begumpet) or Banjara 
Hills or from Sangeet Sagar(Opp to Paradise, Secunderabad). 

I enquired in Music world(Banjara Hills) today. They said they probably would 
receive the CDs only on Monday :-(.

Thanks,
Sivakumar.



To: arrahmanfans@yahoogroups.com
From: [EMAIL PROTECTED]
Date: Tue, 23 Oct 2007 00:49:59 -0700
Subject: [arr] Where i will get ATM audio CD in hyderabad
















  



hiWhere i will get ATM audio CD in hyderabad.

  



















_
Get the new Windows Live Messenger!
http://get.live.com/messenger/overview

Re: [avr-gcc-list] Digital clock assembler programming problem

2005-09-06 Thread Sivakumar Ganesan
Thank you guys.
It works now.

On 9/5/05, Alan Kilian [EMAIL PROTECTED] wrote:
 I can increment the second'ssecond variable up to 9. But, how can i display numbers greater than 9, 
i.e, 10, 11,... by changing both second's first and second's second varaible at the same time? Can't you increment the seconds from 9 to 10? If not, can you detect when the units-seconds-variable is
 already 9 at the time of increment, and set it to 0 while you increment the tens-seconds-variable? (This really is not an avr-gcc issue) -Alan--- Alan Kilian kilian(at)bobodyne.com
___AVR-GCC-list mailing listAVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


[avr-gcc-list] Digital clock assembler programming problem

2005-09-05 Thread Sivakumar Ganesan

Hi everyone,I am a newbie to AVR microcontroller programming.I was quite successful in building some small applications like
blinking a LED, interfacing a 16*2 LCD and interfacing a 4*3 keypad.Right now, I am trying to develop a digital clock display usingATmega8 and 16 * 2.Here is my question:Initial clock set to 00:00 (minutes:second)
Obviously, after for every 1 second i want to increment the seconds variables.I can increment the second'ssecond variable up to 9. But, how can idisplay numbers greater than 9, i.e, 10, 11,... by changing both
second's first and second's second varaible at the same time?Thanks in Advance.Bye

___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list