search for: send_message

Displaying 20 results from an estimated 47 matches for "send_message".

2007 Dec 26
2
How to set environment when calling rake task inside another
This is what I have inside a rake task. In this rake task I need to call another rake task called email:send_messages. However I need to pass the RAILS_ENV as ''staging''. Rake::Task["rake:email:send_messages"].invoke I tried a lot of variations but none of them work. Rake::Task["rake:email:send_messages"].invoke RAILS_ENV=staging Rake::Task["rake:email:send_messages RA...
2006 Mar 29
4
Collecting data from forms
Hi, I?m having some problems collecting the content of some forms. This is whats in list.rhtml: <%= form_tag :action => ''send_message'' %> From: <%= text_field ''message'', ''from''%> <br>Message: <%= text_area ''message'', ''text'', :rows => 6 %> <tr> <td></td> <td><input type="submit" value...
2007 Nov 04
3
Specing raising error, handling, and then not raising error
Hey guys and gals, I have a snippet of code: Net::SMTP(@host, @port, @from_domain) do |smtp| @emails.each do |email| begin smtp.send_message email.encoded, email.from, email.destinations @emails_sent += 1 rescue Exception => e # blah end end end What I want to do is: Say there are 4 emails. First email is sent OK On the second email smtp raises a IOError error The third and fourth emails are sent OK I want t...
2008 Dec 04
3
The RSpec way of doing this? Need help on validating block
...;m writing this EmailSender class and I want to make it totally awesomely tested with RSpec. Here''s how far I''ve gotten so far: require ''net/smtp'' class EmailSender def send_email mailer.start(''your.smtp.server'', 25) do |smtp| smtp.send_message("Yay! You got an email!", ''your at mail'', ''other at mail'') end def def mailer Net::SMTP end end describe EmailSender do it "Should use Net::SMTP to send email" es = EmailSender.new es.mailer.should == Net::SMTP Mo...
2006 Oct 27
8
Error after moving to production server
...here to go. any ideas? DRb::DRbConnError (too large packet 1008813135): /usr/lib/ruby/1.8/drb/drb.rb:570:in `load'' /usr/lib/ruby/1.8/drb/drb.rb:629:in `recv_reply'' /usr/lib/ruby/1.8/drb/drb.rb:918:in `recv_reply'' /usr/lib/ruby/1.8/drb/drb.rb:1192:in `send_message'' /usr/lib/ruby/1.8/drb/drb.rb:1083:in `method_missing'' /usr/lib/ruby/1.8/drb/drb.rb:1167:in `open'' /usr/lib/ruby/1.8/drb/drb.rb:1082:in `method_missing'' /usr/lib/ruby/1.8/drb/drb.rb:1100:in `with_friend'' /usr/lib/ruby/1.8/drb/drb...
2011 Nov 18
0
Jquery dialog
Hi, i had a index page with url as www.exa,com/users/jude.In that page i want to submit a from which appears from popup dialog.The action of the popup is going to send_message,Whenever i submits, via ajax the data gets stored but not the page gets reflected. My controller def send_message @message = current_user.messages.build(params[:message]) @message.receiver_id = @user.id respond_to do |format| if @message.save format.html {redirect_to us...
2008 Mar 28
8
Cannot run winecfg (output pasted)
...x4d1() in comctl32 (0x0034dfc8) 8 0x7e99380a WINPROC_wrapper+0x1a() in user32 (0x0034dff8) 9 0x7e993e9e call_window_proc+0x6e() in user32 (0x0034e038) 10 0x7e999151 WINPROC_call_window+0xd1() in user32 (0x0034e078) 11 0x7e95fd6a call_window_proc+0xca() in user32 (0x0034e0e8) 12 0x7e963acd send_message+0x20d() in user32 (0x0034e148) 13 0x7e963f3a SendMessageW+0x4a() in user32 (0x0034e188) 14 0x7e98dc63 WIN_CreateWindowEx+0x13d3() in user32 (0x0034e348) 15 0x7e98e8ab CreateWindowExW+0x5b() in user32 (0x0034e388) 16 0x7e771c9a LISTVIEW_Create+0x12a() in comctl32 (0x0034e3f8) 17 0x7e77a87c...
2006 Feb 21
26
Net::SMS::BulkSMS 0.1
This is the first release of a new Ruby library for the www.bulksms.co.ukAPI which should allow simple integration of SMS functionality into your Ruby or Rails apps. Sending a message is as simple as: @service = Service.new(''username'', ''password'') @service.send_message(''This is my message!'', ''4479123456789'') # whats my account balance now? puts @service.account.credits This is my first open source release ever, so I hope somebody finds use for it. I put it together as I needed SMS functionality for another forthcoming open so...
2015 Apr 01
1
Remote protocol abstracted
...emoteServer extends from abstract RemoteProtocol, and only implements a few members needed by the protocol. This effectively separates the protocol from the connection and the server. RemoteProtocol with virtual abstract methods for: * get_message - Receives a new message (waiting when needed). * send_message - Sends a message to the client. * get_db - Reserves a database when the class needs to use it. * release_db - Releases the database when the class is not using it. * select_db - It's called when the protocol needs to select a new database to work on. * shutdown - It's called when the proto...
2008 Oct 17
4
Error when posting facebook.feed.publishActionOfUser
...ker/models/user.rb:242:in `publish'' from /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/models/user.rb:114:in `publish_action'' from /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:169:in `send_message'' from /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:259:in `method_missing'' from (irb):1 Looks like it received an unexpected error response from facebook. I should probably update the plugin, right? Joe
2009 Feb 13
2
Continue processing AGI script after hangup
All; I wrote a PERL AGI script that prompts a caller to leave a message using print "RECORD FILE $recordfile wav # 60000 BEEP s=3\n"; When the caller is done, they need to press the # key. The message is then delivered. However, the message is not delivered if the caller simply hangs up when finished. If the user hangs up, the script ends right then. How do I keep on processing the
1997 Nov 29
1
Workgroup popups with samba
Hello, I'd like to know if there's a way to receive Workgroup's winpopup messages with samba under linux. If it's impossible, what are the technical problems caused by such a request ? Thank you -- ,,, o + +-----------------------ooO---(_)---Ooo---------------------------+ | "Xylo", a.k.a
2016 Jun 20
2
Compilation problem with a few configure option
...strict-overflow=1 -Wlogical-op -Wmissing-declarations -Wdouble-promotion -Winit-self -fvisibility=hidden -g -O2 -std=gnu++11 -o bin/.libs/xapian-delve bin/xapian-delve.o ./.libs/libgetopt.a ./.libs/libxapian-1.3.so -lrt -lz -luuid ./.libs/libxapian-1.3.so: undefined reference to `RemoteConnection::send_message(char, std::string const&, double)' ./.libs/libxapian-1.3.so: undefined reference to `RemoteConnection::get_message_chunked(double)' ./.libs/libxapian-1.3.so: undefined reference to `RemoteConnection::RemoteConnection(int, int, std::string const&)' ./.libs/libxapian-1.3.so: undef...
2020 Feb 07
0
[RFC PATCH v7 75/78] KVM: introspection: add KVMI_EVENT_SINGLESTEP
.../selftests/kvm/x86_64/kvmi_test.c @@ -738,6 +738,14 @@ static void stop_vcpu_worker(pthread_t vcpu_thread, wait_vcpu_worker(vcpu_thread); } +static int __do_vcpu_command(struct kvm_vm *vm, int cmd_id, + struct kvmi_msg_hdr *req, size_t req_size, + void *rpl, size_t rpl_size) +{ + send_message(cmd_id, req, req_size); + return receive_cmd_reply(req, rpl, rpl_size); +} + static int do_vcpu_command(struct kvm_vm *vm, int cmd_id, struct kvmi_msg_hdr *req, size_t req_size, void *rpl, size_t rpl_size) @@ -748,13 +756,24 @@ static int do_vcpu_command(struct kvm_vm *vm, int cmd_id...
2011 Jan 31
1
crash with winecfg
...s/user32/winproc.c:908] in user32 (0x0032edd4) 10 0x7e98b601 call_window_proc+0x90(hwnd=<is not available>, msg=0x1328, wparam=0x1, lparam=0x32f220, unicode=0x1, same_thread=0x1, mapping=656082) [/build/buildd/wine1.3-1.3.11/dlls/user32/message.c:2201] in user32 (0x0032ee54) 11 0x7e98fa76 send_message+0x1f5(info=0x32ee6c, res_ptr=0x32ee98, unicode=0x1) [/build/buildd/wine1.3-1.3.11/dlls/user32/message.c:3042] in user32 (0x0032eea4) 12 0x7e98ff1c SendMessageW+0x4b(hwnd=0xa02d2, msg=0x1328, wparam=0x1, lparam=0x32f220) [/build/buildd/wine1.3-1.3.11/dlls/user32/message.c:3165] in user32 (0x0032f2...
2007 Jan 11
4
counter-intuitive behaveour when passing a proc to Mocha::Expectation#returns
Let''s say that I have a procedure that: * gets the number of bytes to write into some file * and returns the number of successfully written bytes def save( text, len ) This procedure is being used all over the place especially inside the method "process" which I want to test. Thus in order not to polute my filesystem I stub the "save" procedure. But of course in
2006 Mar 11
3
website monitor?
hi all. i have a site powered by ROR. now, i try to find a monitor based on ruby. any one have any idea? regards. -- Posted via http://www.ruby-forum.com/.
2007 Jan 16
1
calling java API from ruby
ok, i want to be able to send some data from my rails app to a CRM. The library that defines the API for talking to the CRM is written in java. I got JRuby working, which is pretty cool, but to my understanding i would have to convert my ruby on rails app to a jruby on rails app which, as far as i''ve understood, is different deal altogether and would be set up more like a java server
2005 Sep 10
1
PRI echo
...or echo cancel mode selection? 3) asterisk crash (gdb) bt #0 0x0000002a973f15dd in q921_transmit_iframe (pri=0x2a9cd0ecf0, buf=0x40ffeac0, len=9, cr=1) at q921.c:384 #1 0x0000002a973f701c in q931_xmit (pri=0x2a9cd0ecf0, h=0x40ffeac0, len=9, cr=1) at q931.c:1848 #2 0x0000002a973f720f in send_message (pri=0x2a9cd0ecf0, c=0x2a9cd12810, msgtype=77, ies=0x2a97500570) at q931.c:1888 #3 0x0000002a973f7b31 in q931_release (pri=0x2a9cd0ecf0, c=0x2a9cd12810, cause=16) at q931.c:2141 #4 0x0000002a973f78eb in pri_disconnect_timeout (data=0x2a9cd12810) at q931.c:2092 #5 0x0000002a973f309b in _...
2010 Nov 28
2
wine: Unhandled page fault on read access
...er32/winproc.c:908] in user32 (0x0032e738) 32 0x68109f41 call_window_proc+0x90(hwnd=0x10094, msg=0x007b, wparam=0x10094, lparam=0x11c01cc, unicode=0, same_thread=0x0001, mapping=WMCHAR_MAP_SENDMESSAGE) [/build/buildd/wine1.3-1.3.8/dlls/user32/message.c:2201] in user32 (0x0032e7b8) 33 0x68110836 send_message+0x205(info=0x32e7d0, res_ptr=0x32e7fc, unicode=0) [/build/buildd/wine1.3-1.3.8/dlls/user32/message.c:3042] in user32 (0x0032e808) 34 0x68110c53 SendMessageA+0x52(hwnd=0x10094, msg=0x007b, wparam=0x10094, lparam=0x11c01cc) [/build/buildd/wine1.3-1.3.8/dlls/user32/message.c:3187] in user32 (0x0032e...