[#335632] SOAP - issue with openssl verification failure — Venkat Alla <spinhoo2000@...>

I have the following code in a script that I am trying to use at work -

10 messages 2009/05/01

[#335755] Should I upgrade Ruby from 1.8.5 to 1.8.7? — Cali Wildman <caliwildman2004-info@...>

I just upgraded to Rails 2.3.2 but my Ruby is still 1.8.5. Rails 2.3.2

23 messages 2009/05/04

[#335777] my logroll code, please critique — Derek Smith <derekbellnersmith@...>

My goal is to keep 10 files each at 100Mb. Please critique and suggest

12 messages 2009/05/05

[#335842] '=||' — James Byrne <byrnejb@...>

Can someone point out to me where exactly in the API I find a discussion

18 messages 2009/05/05
[#335843] Re: '=||' — Eleanor McHugh <eleanor@...> 2009/05/05

On 5 May 2009, at 20:51, James Byrne wrote:

[#336031] Superclass of eigenclass — Danny O cuiv <danny.ocuiv@...>

On page 261 of The Ruby Programming Language, they state:

30 messages 2009/05/07
[#336052] Re: Superclass of eigenclass — Rick DeNatale <rick.denatale@...> 2009/05/07

On Thu, May 7, 2009 at 8:35 AM, Danny O cuiv <danny.ocuiv@gmail.com> wrote:

[#336056] Re: Superclass of eigenclass — Rick DeNatale <rick.denatale@...> 2009/05/07

On Thu, May 7, 2009 at 11:50 AM, Rick DeNatale <rick.denatale@gmail.com> wrote:

[#336061] Ruby memory usage — Pete Hodgson <ruby-forum@...>

Hi Folks,

23 messages 2009/05/07

[#336087] File over tcp? with out using net/ftp — Bigmac Turdsplash <i8igmac@...>

Im trying to send a file back and forth between a client.rb and

12 messages 2009/05/07

[#336160] CGI help — Jeff Leggett <hikerguy@...>

So, I am trying ot read the contents of a file and format the contents

19 messages 2009/05/08

[#336168] ruby string slice/[] w/ range, weird end behavior — Gary Yngve <gary.yngve@...>

First the docs:

17 messages 2009/05/08
[#336169] Re: ruby string slice/[] w/ range, weird end behavior — Eleanor McHugh <eleanor@...> 2009/05/08

On 9 May 2009, at 00:26, Gary Yngve wrote:

[#336205] converting UTF-8 to entities like &#x525B; — Jian Lin <winterheat@...>

15 messages 2009/05/09

[#336385] Any current preprocessor/Ruby language add-ons? — "C. Dagnon" <c-soc-rubyforum@...>

This is kind of a wide-ranging question but for some fairly specific

16 messages 2009/05/12

[#336411] Whaaaaat? — Tom Cloyd <tomcloyd@...>

p [0..5].include? 0

26 messages 2009/05/12

[#336458] what could be improved in Ruby for Science? — Diego Virasoro <Diego.Virasoro@...>

Hello,

20 messages 2009/05/13

[#336505] Syntactic sugar idea — Daniel DeLorme <dan-ml@...42.com>

It seems that often an object will be passed into a block only to invoke

26 messages 2009/05/14
[#336508] Re: [bikeshed] Syntactic sugar idea — Jan <jan.h.xie@...> 2009/05/14

* Daniel DeLorme <dan-ml@dan42.com> [2009-05-14 11:42:31 +0900]:

[#336766] Berkeley DB or Store equivalent? — Mk 27 <halfcountplus@...>

I have never used mySQL because perl's Storable or BerkeleyDB modules

16 messages 2009/05/17

[#336783] permute each element of a ragged array? — Phlip <phlip2005@...>

Rubies:

19 messages 2009/05/17

[#336821] Sorting numbers as strings — Jack Bauer <realmadrid2727@...>

I'm trying to sort some strings containing numbers. The strings

14 messages 2009/05/18

[#336850] Introducing RubyScience on GitHub! — Joshua Ballanco <jballanc@...>

In the tradition of actions vs. words, I present to you:

14 messages 2009/05/18

[#336930] Create an exe with Ruby 1.9.1 — Marc-antoine Kruzik <kadelfek@...>

Hello !

23 messages 2009/05/19

[#336939] Pythonic indentation (or: beating a dead horse) — J Haas <Myrdred@...>

Greetings, folks. First time poster, so if I breach

235 messages 2009/05/19
[#337016] Re: Pythonic indentation (or: beating a dead horse) — Roger Pack <rogerpack2005@...> 2009/05/20

> ...maybe something like this:

[#337699] Re: Pythonic indentation (or: beating a dead horse) — J Haas <Myrdred@...> 2009/05/28

On May 27, 10:21=A0pm, James Britt <james.br...@gmail.com> wrote:

[#337734] Re: Pythonic indentation (or: beating a dead horse) — James Britt <james.britt@...> 2009/05/28

J Haas wrote:

[#337740] Re: Pythonic indentation (or: beating a dead horse) — Juan Zanos <juan_zanos@...> 2009/05/28

On May 28, 2009, at 2:33 PM, James Britt wrote:

[#337745] Re: Pythonic indentation (or: beating a dead horse) — J Haas <Myrdred@...> 2009/05/28

On May 28, 11:15=A0am, Eleanor McHugh <elea...@games-with-brains.com>

[#337954] Re: Pythonic indentation (or: beating a dead horse) — Steven Arnold <stevena@...> 2009/05/30

After listening to this debate for some time, the position of allowing

[#338133] Re: Pythonic indentation (or: beating a dead horse) — Andy F <andchafow-ruby@...> 2009/06/02

[#338172] Re: Pythonic indentation (or: beating a dead horse) — Eleanor McHugh <eleanor@...> 2009/06/02

On 2 Jun 2009, at 06:20, Andy F wrote:

[#337023] Re: Pythonic indentation (or: beating a dead horse) — J Haas <Myrdred@...> 2009/05/20

On May 20, 8:51=A0am, Rick DeNatale <rick.denat...@gmail.com> wrote:

[#337025] Re: Pythonic indentation (or: beating a dead horse) — Rick DeNatale <rick.denatale@...> 2009/05/20

On Wed, May 20, 2009 at 2:35 PM, J Haas <Myrdred@gmail.com> wrote:

[#337045] Re: Pythonic indentation (or: beating a dead horse) — J Haas <Myrdred@...> 2009/05/20

On May 20, 12:25=A0pm, Tony Arcieri <t...@medioh.com> wrote:

[#337581] Re: Pythonic indentation (or: beating a dead horse) — J Haas <Myrdred@...> 2009/05/27

On May 22, 9:01=A0am, Roger Pack <rogerpack2...@gmail.com> wrote:

[#337673] Re: Pythonic indentation (or: beating a dead horse) — Juan Zanos <juan_zanos@...> 2009/05/28

[#337686] Re: Pythonic indentation (or: beating a dead horse) — Eleanor McHugh <eleanor@...> 2009/05/28

On 28 May 2009, at 15:06, Juan Zanos wrote:

[#337002] Ruby 1.8 vs. Ruby 1.9 — Calvin <cstephens4@...>

Hi,

17 messages 2009/05/20

[#337094] snailgun-1.0.2 — Brian Candler <b.candler@...>

New experimental project:

18 messages 2009/05/21

[#337115] w00t! Party for Gregory! — pat eyler <pat.eyler@...>

> On May 20, 2009, Gregory Brown wrote:

12 messages 2009/05/21

[#337221] Cryptogram II (#206) — Daniel Moore <yahivin@...>

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

17 messages 2009/05/22

[#337323] String concatenation in Ruby — Jagadeesh <mnjagadeesh@...>

Hi,

18 messages 2009/05/25

[#337340] Do you nest classes inside classes? — Mike Stephens <rubfor@...>

Object Orientation is conceptually about a sea of objects interacting

11 messages 2009/05/25

[#337366] Runnin code at a certain time? — Tom Ricks <carrottop123@...>

Hello all,

20 messages 2009/05/25
[#337392] Re: Runnin code at a certain time? — Caleb Clausen <vikkous@...> 2009/05/25

On 5/25/09, Tom Ricks <carrottop123@gmail.com> wrote:

[#337413] Other languages to try? — Adam Gardner <adam.oddfellow@...>

So, I've been programming in Ruby for a good while now. Not an expert,

20 messages 2009/05/26

[#337421] Newbie on Threads — Nabs Kahn <nabusman@...>

I'm creating a screen scraping software and I want to have X (let's say

13 messages 2009/05/26
[#337424] Re: Newbie on Threads — Robert Klemme <shortcutter@...> 2009/05/26

2009/5/26 Nabs Kahn <nabusman@gmail.com>:

[#337507] Something Not going with my LDAP using SSL — Xeno Campanoli <xeno.campanoli@...>

I have the following working with cleartext LDAP:

20 messages 2009/05/26
[#337539] Re: Something Not going with my LDAP using SSL — Brian Candler <b.candler@...> 2009/05/27

Xeno Campanoli wrote:

[#338073] Re: Something Not going with my LDAP using SSL — Xeno Campanoli <xeno.campanoli@...> 2009/06/01

Brian Candler wrote:

[#338082] Re: Something Not going with my LDAP using SSL — Brian Candler <b.candler@...> 2009/06/01

Xeno Campanoli wrote:

[#338084] Re: Something Not going with my LDAP using SSL — Xeno Campanoli <xeno.campanoli@...> 2009/06/01

Brian Candler wrote:

[#338094] Re: Something Not going with my LDAP using SSL — Brian Candler <b.candler@...> 2009/06/01

Xeno Campanoli wrote:

[#338095] Re: Something Not going with my LDAP using SSL — Xeno Campanoli <xeno.campanoli@...> 2009/06/01

Brian Candler wrote:

[#338096] Re: Something Not going with my LDAP using SSL — Xeno Campanoli <xeno.campanoli@...> 2009/06/01

Xeno Campanoli wrote:

[#337574] Installing Ruby 1.9.1 Binary on Windows Vista — Joel Dezenzio <jdezenzio@...>

I've searched and only found one topic which did not have an answer or

27 messages 2009/05/27

[#337671] death toll — deka <rocha.deka@...>

Hi, I am a Brazilian girl and I have a doubt abour numbers in English.

13 messages 2009/05/28

[#337823] Endless Ruby 0.0.2 — Caleb Clausen <vikkous@...>

endless.rb is a pre-processor for ruby which allows you to use python-ish

22 messages 2009/05/29

[#337841] Regular expression — Harry Kakueki <list.push@...>

I want to write a regular expression to do the following.

13 messages 2009/05/29

[#337869] Quine (#207) — Daniel Moore <yahivin@...>

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

46 messages 2009/05/29
[#338000] Re: [QUIZ] Quine (#207) — pjb@... (Pascal J. Bourguignon) 2009/05/31

Robert Dober <robert.dober@gmail.com> writes:

[#338018] Re: [QUIZ] Quine (#207) — Aureliano Calvo <aurelianocalvo@...> 2009/06/01

I did something like that, but with parenthesis.

[#337899] Requesting Japanese Translation — James Gray <james@...>

I'm adding a little Japanese to a Ruby presentation I am giving. I

13 messages 2009/05/30

[#337961] nokogiri 1.3.0 Released — Aaron Patterson <aaron@...>

nokogiri version 1.3.0 has been released!

32 messages 2009/05/30
[#337962] Re: nokogiri 1.3.0 Released — Roger Pack <rogerpack2005@...> 2009/05/30

Aaron Patterson wrote:

[#337966] Re: nokogiri 1.3.0 Released — Aaron Patterson <aaron@...> 2009/05/30

On Sun, May 31, 2009 at 06:43:05AM +0900, Roger Pack wrote:

[#337968] Re: nokogiri 1.3.0 Released — Iii Iii <bqotatjyujepur@...> 2009/05/30

> gem install nokogiri

[#337985] Re: nokogiri 1.3.0 Released — Aaron Patterson <aaron@...> 2009/05/31

On Sun, May 31, 2009 at 08:37:54AM +0900, Iii Iii wrote:

[#338049] Re: nokogiri 1.3.0 Released — Roger Pack <rogerpack2005@...> 2009/06/01

[ANN] eventmachine 0.12.8

From: Aman Gupta <rubytalk@...1.net>
Date: 2009-05-23 02:56:43 UTC
List: ruby-talk #337247
I am happy to announce the release of eventmachine 0.12.8. Gems (including
binary builds for win32 and jruby) have been uploaded to rubyforge and should
be available via `gem install` shortly.

This release contains almost 100 patches with numerous bug fixes, improvements
and several new features. Highlights include:

  - Major code cleanups
    - converted all tabs to spaces in ruby source files
    - better documentation for all methods and classes
    - moved all protocol implementations to em/protocols/
    - split out eventmachine.rb to em/{connection,version,timers}.rb
    - removed several deprecated methods and classes
    - rake java:gem task to generate a binary jruby gem

  - Reactor fixes and improvements
    - worked around a kqueue bug in OSX causing nbytes>0 assertion failures
    - reduced the stack size of the epoll/kqueue reactors (this fixes a
      long-standing issue causing performance issues with ruby threads)
    - platforms that support it will use writev() to write data to the
      network, resulting in fewer memcpy()s
    - explicitly set non-blocking mode on attached sockets
    - allow read/write pipes to be watched using EM.attach
    - gettimeofday() is called only once per tick and used for timers,
      heartbeats and gCurrentLoopTime

  - Protocol improvements
    - added a simple DRb style ObjectProtocol, for communication using ruby
      objects (i.e. simple rpc server/clients: http://gist.github.com/96699)

        module RubyServer
          include EM::P::ObjectProtocol

          def receive_object obj
            send_object({'received object' => obj})
          end
        end

    - HttpClient2 callbacks are now passed in the response object
    - cleaner Postgres protocol

  - New APIs
    - EM.kqueue= and EM.epoll= can be used to toggle kqueue/epoll
    - EM.threadpool_size= sets the size of the EM.defer threadpool
    - EM.ssl? will check if the reactor was built with ssl support
    - EM.schedule{} helper runs a block in the main reactor thread
    - EM.reactor_thread? checks if the current thread is the reactor thread
    - EM.system now returns the new process' pid and can take multiple args

        pid = EM.system('sleep', 1000){ |out, status|
          # pid == status.pid
          # 15 == status.termsig
          p [pid, out, status]
        }
        Process.kill 15, pid

    - EM::Channel allows for in-reactor publish/subscribe

        chan = EM::Channel.new
        sid = chan.subscribe{ |msg|
          p [:got, msg]
        }

        chan.push('hello')
        chan.push('world')
        chan.unsubscribe(sid)

    - EM::Queue provides a simple queue with asynchronous pops

        q = EM::Queue.new
        q.push(1, 2)
        3.times do
          q.pop{ |num| p [:got, num] }
        end
        q.push(3)

    - EM.watch_file uses kqueue on OSX or inotify on linux to watch a file,
      triggering events when the file is modified, moved or deleted

        module EtcPasswd
          def file_modified
            STDERR.puts 'WARNING /etc/passwd WAS MODIFIED'
          end
        end

        EM.run{
          EM.watch_file '/etc/passwd', EtcPasswd
        }

    - EM.watch_process will watch a pid, triggering events when the process
      forks or dies (note this currently only works with kqueue)

        module DaemonWatcher
          def process_exited
            STDERR.puts 'WARNING your daemon has died'
          end
        end

        EM.kqueue = true
        EM.run{
          EM.watch_process(some_daemon_pid, DaemonWatcher)
        }

    - EM.enable_proxy will natively proxy data between two connections, without
      the overhead of converting incoming data to ruby strings
    - EM::Connection#comm_inactivity_timeout= now takes a float
    - EM.heartbeat_interval= changes how often sockets are checked
      for inactivity
    - EM.bind_connect binds an outgoing socket to a specific local ip/port
    - EM::Connection#ssl_verify_peer callback allows servers to verify client
      ssl certificates (use start_tls(:verify_peer => true))

  - Ruby API fixes
    - EM.add_timer() can take a number of seconds as a string
    - EM.open_datagram_socket() correctly handles string ports
    - EM::Connection#send_data will now call .to_s on its argument
    - the EM.next_tick{} queue is cleaned up on reactor shutdown (this fixes an
      issue in AMQP when connecting and disconnecting multiple times)
    - fixed potential memory leak in EM.cancel_timer

At this time, there are a few known issues which will be fixed for 0.12.10,
along with a couple new features that are in the works:

  - EM.current_time is broken

      EM.current_time returns random time objects due to a change to
      gCurrentLoopTime in the reactor. This has been fixed in the latest
      git master branch.

  - ruby 1.9 win32 support

      EM works with 1.9 on linux, but still fails to build on win32. The
      next release will include an official win32 ruby 1.9 binary gem.

  - EM::Iterator

      Looping over large arrays blocks the reactor and introduces latency.
      0.12.10 will include EM::Iterator to spread out iterations over multiple
      reactor ticks.

  - jruby patches

      Interest in the jruby reactor has been increasing, and there are several
      patches in the works by Hemant 'gnufied' Kumar. 0.12.8 works with jruby,
      but is missing several features that are available in the c++ reactor.

  - require 'openssl' issues

      Custom ruby builds on OSX will segfault if you require 'openssl' after
      eventmachine. To work around this issue, simply:

        require 'openssl'
        require 'eventmachine'

  - async dns lookups

      There are currently a few ways of doing async dns lookups with EM,
      using either em-dns, em-asyncns or dnsruby. The next release will
      include an async dns implementation which will be used by default.

  - exceptions in post_init/initialize are silently swallowed

      Exceptions raised in your handler's post_init or initialize methods
      are silently swallowed and cause an ConnectionUnbound error to surface
      later on with a confusing error message. If you're experiencing issues,
      use an error handler to catch the original exception:

        EM.error_handler{ |e|
          puts e
          puts e.backtrace.join("\n  ")
        }

  - process watching on linux using netlink

      EM.watch_process is currently only implemented for kqueue. The next
      release will add support for linux using the netlink code from God.

  - better, more stable test suite

      The current test suite is very unstable and does not test the pure ruby,
      jruby, kqueue or epoll reactors. We plan on overhauling the suite to
      provide better test coverage and ensure stability of the different
      reactors and platforms.

Special thanks to the following people for making this release possible:
  - Bob Potter
  - Eugene Pimenov
  - Jake 'yakischloba' Douglas
  - Joern Barthel
  - James 'raggi' Tucker
  - coderrr

The rdoc has been updated and is available at http://eventmachine.rubyforge.org

  Aman

In This Thread

Prev Next