search for: to_proc

Displaying 10 results from an estimated 10 matches for "to_proc".

Did you mean: td_proc
2006 Jun 11
3
[SUMMARY] Rails Core Weekly June 5 - June 11
...4419</a>) by Greg Lappen''s patch <a href="http://dev.rubyonrails.org/ticket/5215">5215</a> _Cool Enhancements (not commited yet)_ An enhancement to Marcel Molina Jr.''s original <a href="http://dev.rubyonrails.org/changeset/3118">Symbol#to_proc</a> is further enhanced by by <a href="http://dev.rubyonrails.org/ticket/5295">Nobuhiro Imai</a>. Symbol#to_proc does: <pre> {1 => "one", 2 => "two", 3 => "three"}.sort_by(&:first).map(&:last) #=> ["one&quot...
2007 Mar 29
1
How to restart server programmatically?
I need to be able to restart my server based on a specific database change. I''ve been trying a call to system("script/process/reaper -a graceful -d dispatch.fcgi") but that raises a transaction error which rolls back the save. I wasn''t aware that after_save would rollback. That''s potentially useful but pretty much not right now. Here''s my code: def
2007 Mar 22
2
Enumerable sum oddity
Hi. In this setup "account has_many :consultations". Can anyone explain the following behaviour to me? Rails 1.2.2. The "sum" method should return 0 for an empty array. >> a = Account.find(1) => #<Account:0x39c80a8 @attributes={...} >> a.consultations => [] >> a.consultations.sum(&:foo) ArgumentError: wrong number of arguments (1 for 2)
2011 Oct 24
0
Announce: Puppet 2.6.12 Available [security update]
...AltName` leak. fca1ff0 (#2848) Reject unknown (== all) extensions on the CSR. 443a756 (#2848) extract the subjectAltName value from the CSR. 66101f1 (#2848) Set `certdnsnames` values into the CSR. 77b814f (#6928) Don''t blow up when the method is undefined... 5427f1e (#6928) backport Symbol#to_proc for Ruby < 1.8.7 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more op...
2009 Jul 31
1
problem with kerberos (I think)
...from /usr/lib/ruby/site_ruby/1.8/qpid/qmf.rb:1728:in `reply_cb' from /usr/lib/ruby/site_ruby/1.8/qpid/qmf.rb:1716:in `loop' from /usr/lib/ruby/site_ruby/1.8/qpid/qmf.rb:1716:in `reply_cb' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `to_proc' from /usr/lib/ruby/site_ruby/1.8/qpid/queue.rb:91:in `call' from /usr/lib/ruby/site_ruby/1.8/qpid/queue.rb:91:in `listen' from /usr/lib/ruby/site_ruby/1.8/qpid/queue.rb:87:in `loop' ... 12 levels... from /usr/share/ovirt-server/db-omatic/db_...
2006 Jul 25
9
Can anyone explain this code? It uses Inject
def webs @webs ||= Web.find(:all).inject({}) { |webs, web| webs.merge(web.address => web) } end -- Posted via http://www.ruby-forum.com/.
2006 Jan 13
4
FastCGI processes sometimes ''hang''
I am running a RoR application on Apache 1.3/RedHat 7.3/MySQL 3.1.23 (Old versions I know, but upgrading to latest versions are not practical for a number of reasons). There are 5 RoR FastCGI processes configured using FastCgiServer. What I am finding is that, after a while, some of the FastCGI processes seem to ''hang''. They no longer process requests, and the only way to
2005 Dec 21
8
Incomplete headers
Hi, I wanna use Rails on a SuSE server with apache. Everything should be installed correctly, but when running the application I get this in my apache log: FastCGI: comm with server "/srv/www/htdocs/web4/html/rails/public/dispatch.fcgi" aborted: idle timeout (60 sec) FastCGI: incomplete headers (0 bytes) received from server
2007 Jun 14
19
Please test export/collect from svn
For those of you out there using export/collect (which we really need to come up with a better name for...), can you test the current SVN code? I''m mostly wondering if the performance is any better. To use it, you''ll have to remove your current database, since the database schema is significantly changed. I''m getting what looks like an additional 25% reduction
2011 Dec 01
3
Announce: Puppet 2.7.8rc1 available
...AltName` leak. fca1ff0 (#2848) Reject unknown (== all) extensions on the CSR. 443a756 (#2848) extract the subjectAltName value from the CSR. 66101f1 (#2848) Set `certdnsnames` values into the CSR. 77b814f (#6928) Don''t blow up when the method is undefined... 5427f1e (#6928) backport Symbol#to_proc for Ruby < 1.8.7 6ef1d3a (#6371) Update lastchg field in shadow file on Solaris. c343615 (#10161) Parenthesize method arguments 5721ab9 Maint: Remove duplicate path extension code edc721e (#9636) Always set $CHILD_STATUS when executing on Windows 448d5db (#9636) Fix PATHEXT resolution for paths...