[#366855] what is the correct way to extend native methods? — Maurizio De Santis <desantis.maurizio@...>

Hello!

15 messages 2010/08/01
[#366857] Re: what is the correct way to extend native methods? — James Harrison <oscartheduck@...> 2010/08/01

> return self.select{ |val| val.to_s =~ args[0] } if args.size == 1

[#366864] Re: what is the correct way to extend native methods? — Maurizio De Santis <desantis.maurizio@...> 2010/08/01

James Harrison wrote:

[#366866] Re: what is the correct way to extend native methods? — Brian Candler <b.candler@...> 2010/08/01

Maurizio De Santis wrote:

[#366916] How to remove leading &nbsp; from string — Lucky Nl <lakshmi27.u@...>

Hi

13 messages 2010/08/02

[#366931] Iteration through File.file? misses entries for which File.file?(entry) == true — Kyle Barbour <kyle@...>

Hello everyone,

11 messages 2010/08/02

[#367167] Project name ownership and conflict — Emmanuel Gomez <emmanuel.gomez@...>

I recently had a discussion with a fellow Ruby developer that revealed a

13 messages 2010/08/05

[#367169] Abstracting exception handling — Martin Hansen <mail@...>

Hello,

15 messages 2010/08/05
[#367173] Re: Abstracting exception handling — Brian Candler <b.candler@...> 2010/08/05

> I suspect something is going out of scope and lost?

[#367176] Re: Abstracting exception handling — Martin Hansen <mail@...> 2010/08/05

I was hoping for a setup like this in two files:

[#367177] Re: Abstracting exception handling — Andrew Wagner <wagner.andrew@...> 2010/08/05

What kind of stuff are you doing in my_script.rb? Defining a class? A

[#367179] Re: Abstracting exception handling — Martin Hansen <mail@...> 2010/08/05

Andrew Wagner wrote:

[#367372] Is there any human talkable ruby library? — Sniper Abandon <sathish.salem.1984@...>

Is there any human talk able(like Eliza ) ruby library?

12 messages 2010/08/09

[#367438] Determining whether the running ruby is outdated? — Lars Olsson <lasso@...>

Hi,

14 messages 2010/08/10

[#367540] Ruby is in Grave Danger! — Gregory Brown <gregory.t.brown@...>

Dear Friends,

34 messages 2010/08/11

[#367631] Parsing, BNF, TreeTop, GhostWheel, ... — Philipp Kempgen <lists@...>

Hi,

13 messages 2010/08/12

[#367664] libstdc++ — Pw Ktp <amar.seeam@...>

when trying to install a gem i am getting a 'libstdc++' not installed

24 messages 2010/08/13
[#367666] Re: libstdc++ — Brian Candler <b.candler@...> 2010/08/13

Pw Ktp wrote:

[#367668] Re: libstdc++ — Pw Ktp <amar.seeam@...> 2010/08/13

Brian Candler wrote:

[#367670] Re: libstdc++ — Brian Candler <b.candler@...> 2010/08/13

OK, probably missing headers as Daniel said. Try:

[#367671] Re: libstdc++ — Pw Ktp <amar.seeam@...> 2010/08/13

Brian Candler wrote:

[#367703] Question about learning Ruby effectively — Chan Nguyen <cnguyen@...>

Hi everyone,

12 messages 2010/08/14

[#367747] Help with too many methods — Samuel Sternhagen <samatoms@...>

I am writing a Ruby program that creates different URL queries. Right

11 messages 2010/08/15

[#367781] Unix Philosophy in Ruby Programing — Diego Bernardes <di3go.bernardes@...>

I use Linux about 5 years, but, this year that i started to "use" linux.

22 messages 2010/08/16

[#367833] can i do this in ruby? a simulation process — Bruce Wayner <winshocker@...>

still i don't know how to begin my program on this problem:

56 messages 2010/08/17
[#367834] Re: can i do this in ruby? a simulation process — Jean-Julien Fleck <jeanjulien.fleck@...> 2010/08/17

> Requirements:

[#367837] Re: can i do this in ruby? a simulation process — Bruce Wayner <winshocker@...> 2010/08/17

Jean-Julien Fleck wrote:

[#367839] Re: can i do this in ruby? a simulation process — Jean-Julien Fleck <jeanjulien.fleck@...> 2010/08/17

> Cheers Thanks, anyway i already did writing and other stuff but the only

[#367849] Re: can i do this in ruby? a simulation process — Andrew Wagner <wagner.andrew@...> 2010/08/17

Hmm, I may or may not disagree with you on what the output should be. I

[#367850] Re: can i do this in ruby? a simulation process — Brian Candler <b.candler@...> 2010/08/17

Andrew Wagner wrote:

[#367853] Re: can i do this in ruby? a simulation process — Andrew Wagner <wagner.andrew@...> 2010/08/17

>

[#367858] Re: can i do this in ruby? a simulation process — Bruce Wayner <winshocker@...> 2010/08/17

A superhighway connects one large metropolitan area to another.

[#367862] Re: can i do this in ruby? a simulation process — Andrew Wagner <wagner.andrew@...> 2010/08/17

>

[#367867] Re: can i do this in ruby? a simulation process — Jean-Julien Fleck <jeanjulien.fleck@...> 2010/08/17

> You bring up an interesting point about going

[#367873] Re: can i do this in ruby? a simulation process — Andrew Wagner <wagner.andrew@...> 2010/08/17

Well, it may be interesting, but not in terms of the question originally

[#367911] Re: can i do this in ruby? a simulation process — brabuhr@... 2010/08/17

On Tue, Aug 17, 2010 at 7:34 AM, Andrew Wagner <wagner.andrew@gmail.com> wrote:

[#367922] Re: can i do this in ruby? a simulation process — brabuhr@... 2010/08/17

On Tue, Aug 17, 2010 at 1:19 PM, <brabuhr@gmail.com> wrote:

[#367937] Re: can i do this in ruby? a simulation process — Bruce Wayner <winshocker@...> 2010/08/18

can someone post some code here: I'm only a newbie in ruby :( and

[#367946] Re: can i do this in ruby? a simulation process — Brian Candler <b.candler@...> 2010/08/18

Bruce Wayner wrote:

[#367952] Re: can i do this in ruby? a simulation process — Bruce Wayner <winshocker@...> 2010/08/18

sorry I'm totally suck in ruby here is my code:

[#367965] Re: can i do this in ruby? a simulation process — Brian Candler <b.candler@...> 2010/08/18

> sorry I'm totally suck in ruby here is my code:

[#367967] Re: can i do this in ruby? a simulation process — Brian Candler <b.candler@...> 2010/08/18

>> if $delay1==0;

[#367884] Making File.open work on gzipped files — Martin Hansen <mail@...>

Hello all,

15 messages 2010/08/17
[#367893] Re: Making File.open work on gzipped files — Brian Candler <b.candler@...> 2010/08/17

> This works nicely, but I would like it to work on gzipped files too.

[#367919] Re: Making File.open work on gzipped files — Martin Hansen <mail@...> 2010/08/17

Thanks Brian,

[#367910] Ruby GC question (MRI, JRuby, etc) — Chuck Remes <cremes.devlist@...>

My basic understanding of the garbage collectors in use by the various Ruby runtimes is that they all search for objects from a "root" memory object. If an object cannot be reached from this root, then it is collected.

11 messages 2010/08/17

[#367983] Ruby 1.9.2 is released — "Yuki Sonoda (Yugui)" <yugui@...>

-----BEGIN PGP SIGNED MESSAGE-----

23 messages 2010/08/18
[#368021] Re: [ANN] Ruby 1.9.2 is released — botp <botpena@...> 2010/08/19

2010/8/18 Yuki Sonoda (Yugui) <yugui@yugui.jp>:

[#368023] Re: [ANN] Ruby 1.9.2 is released — botp <botpena@...> 2010/08/19

> weird, since rvm does install it fine.

[#368000] Ruby Code Parsing — Jonathan Bale <webmaster@...>

I have a Perl friend asking me questions about how ruby parses its code.

15 messages 2010/08/18

[#368005] Check existence of object and it's property at the same time — Cory Patterson <coryp@...>

I run into this from time to time and I was wondering if there is a

10 messages 2010/08/18

[#368076] Shoes 3 released — Steve Klabnik <steve@...>

Hey there everyone. We've just released Shoes 3, "Policeman", to

19 messages 2010/08/19

[#368199] A small problem for arrays — Unc88 Unc88 <unc88@...>

I have 2 array. ar_1, ar_2

11 messages 2010/08/21

[#368343] gem list --remote does not work on windows running ruby 1.9.2p0 — botp <botpena@...>

Title says all.

9 messages 2010/08/24

[#368384] ffi-ncurses 0.3.3 — "Sean O'Halpin" <sean.ohalpin@...>

I've just released version 0.3.3 of the ffi-ncurses gem. This fixes

22 messages 2010/08/25
[#368423] Re: ffi-ncurses 0.3.3 — "R.. Kumar 1.9.1 OSX" <sentinel1879@...> 2010/08/26

Sean O'halpin wrote:

[#368500] Re: ffi-ncurses 0.3.3 — "Sean O'Halpin" <sean.ohalpin@...> 2010/08/27

On Thu, Aug 26, 2010 at 11:20 AM, R.. Kumar 1.9.1 OSX

[#368533] Re: ffi-ncurses 0.3.3 — botp <botpena@...> 2010/08/28

On Fri, Aug 27, 2010 at 10:05 PM, Sean O'Halpin <sean.ohalpin@gmail.com> wrote:

[#368538] Re: ffi-ncurses 0.3.3 — Rahul Kumar <sentinel1879@...> 2010/08/28

[#368546] Re: ffi-ncurses 0.3.3 — botp <botpena@...> 2010/08/28

On Sat, Aug 28, 2010 at 2:34 PM, Rahul Kumar <sentinel1879@gmail.com> wrote:

[#368556] Re: ffi-ncurses 0.3.3 — "Sean O'Halpin" <sean.ohalpin@...> 2010/08/28

On Sat, Aug 28, 2010 at 9:47 AM, botp <botpena@gmail.com> wrote:

[#368623] Re: ffi-ncurses 0.3.3 — Rahul Kumar <sentinel1879@...> 2010/08/30

[#368471] how about Array#collect_until — timr <timrandg@...>

I am wondering if anyone has implemented an Array#collect_until method

14 messages 2010/08/27

[#368506] select tr>3 with nokogiri — Pen Ttt <myocean135@...>

13 messages 2010/08/27

[#368690] Namespaces too looooooong — Iain Barnett <iainspeed@...>

Hi,

18 messages 2010/08/31
[#368692] Re: Namespaces too looooooong — Joel VanderWerf <joelvanderwerf@...> 2010/08/31

On 08/30/2010 05:51 PM, Iain Barnett wrote:

[#368694] Re: Namespaces too looooooong — Iain Barnett <iainspeed@...> 2010/08/31

Re: eventmachine 0.12.10

From: Anand Srinu <2006hz13084@...>
Date: 2010-08-21 12:51:07 UTC
List: ruby-talk #368195
Hi Aman,

I am struck with this wierd problem in windows when I am trying to use 
the thin server for my RoR application developed in ruby 1.9.1p376 
version and rails 2.3.5 version and I have been facing quite some 
problems to get this up and running in my local box. i would like to 
explain tehe various problems I had encounterd. FYI, I am going to host 
my RoR application in a Windows server.

1.  no such file or directory - rubyeventmachine ==> require 
'rubyeventmachine' in line no. 66 of the eventmachine.rb file.
==> Really couldn't understand what this option should be changed to. 
Experimentally, had changed the ruby_eventmachine to pr_eventmachine and 
the symbol to :cascade option

2.  After changing to pr_eventmachine ==> No such file or directory : 
uuidgen (pr_event_machine)
==>After some googling, installed the Microsoft SDK which has the 
UUidgen.exe which can solve the problem. Hard coded the `uuidgen` with 
`<PATH to the uuidgen.exe>` and the server was getting started.

3.  The application starts fine, but fails with the error :
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.8-x86-mswin32-60/lib/pr_eventmachine.rb:587:in 
`write_nonblock': A non-blocking
socket operation could not be completed immediately. 
(Errno::EWOULDBLOCK)
        from 
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.8-x86-mswin32-60/lib/pr_eventmachine.rb:587:in 
`eventable_write'
        from 
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.8-x86-mswin32-60/lib/pr_eventmachine.rb:371:in 
`block in crank_selectable
s'

These things have been haunting me for quite some time. Please do 
suggest me what  a missing here, what option should I select in point 
#1, and is there a rubyeventmachine.rb file to bedownloaded and included 
in any of the directories?

FYI, My full gem list are given below.
=============================================================
actionmailer (2.3.5, 2.2.2)
actionpack (2.3.5, 2.2.2)
activerecord (2.3.5, 2.2.2)
activeresource (2.3.5, 2.2.2)
activesupport (2.3.8, 2.3.5, 2.2.2)
Ascii85 (1.0.0)
cgi_multipart_eof_fix (2.5.0)
color (1.4.1)
daemons (1.1.0, 1.0.3)
eventmachine (0.12.8 x86-mswin32-60)
fastthread (1.0.1 i386-mswin32)
gem_plugin (0.2.3)
guid (0.1.1)
gupshup (0.2.3)
hoe (2.6.1)
httpclient (2.1.5.2)
image_science (1.2.1)
json_pure (1.4.6)
log4r (1.1.7)
mysql (2.8.1 x86-mswin32)
paperclip (2.3.3)
pdf-reader (0.8.5)
pdf-writer (1.1.8)
rack (1.0.1)
rails (2.3.5, 2.2.2)
rake (0.8.7)
rubyforge (2.0.4)
rubygems-update (1.3.7)
thin (1.2.7 x86-mswin32)
transaction-simple (1.4.0)
=====================================================================

And my gem environment is
===============================================================
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.7
  - RUBY VERSION: 1.9.1 (2009-12-07 patchlevel 376) [i386-mswin32]
  - INSTALLATION DIRECTORY: 
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.
1
  - RUBY EXECUTABLE: G:/Softwares/Softwares/ruby-1.9.1/bin/ruby.exe
  - EXECUTABLE DIRECTORY: G:/Softwares/Softwares/ruby-1.9.1/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mswin32-60
  - GEM PATHS:
     - G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1
     - C:/Users/vaio/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => ["http://rubygems.org/", "http://gems.github.com", 
"http://ge
ms.github.com"]
  - REMOTE SOURCES:
     - http://rubygems.org/
     - http://gems.github.com
     - http://gems.github.com
===================================================================

Hope I will get some +ve reply with some quick fix to solve this issue.

Thanks and Regards,
Sandy

Aman Gupta wrote:
> I am happy to announce the release of eventmachine 0.12.10. Gems 
> (including
> binary builds for win32 and jruby) have been uploaded to rubyforge and 
> should
> be available via `gem install` shortly.
> 
> Since 0.12.8, we've had over 130 patches with numerous bug fixes, 
> improvements
> and several new features. Highlights include:
> 
> �- Improved Performance
> � �- subclasses of EM::Connection are not created unless necessary
> � �- prevent unnecessary system calls to epoll_ctl/kevent
> � �- the reactor uses numeric signatures instead of strings,
> � � �resulting in a ~15% overall performance boost
> 
> �- API Changes
> � �- EM.reactor_thread accessor for the reactor's thread
> � �- EM.next_tick and EM.schedule are now thread-safe
> � �- EM::connect will raise a more better EM::ConnectionError with 
> details
> � �- EM.epoll=/kqueue= will raise EM::Unsupported when unavailable
> � �- improved the cryptic "no timer" exception and increased the
> � � �default limit to 10k timers
> � �- bugfix and improved performance for EM.current_time
> � �- EM.add_periodic_timer returns PeriodicTimer object
> � �- EM::Connection#get_sock_opt wrapper for getsockopt()
> � �- added EM.watch for notifications about file descriptors
> � � � �for notify_read/writable events, you cannot use EM.attach
> � � � �EM.watch(fd, Watcher){ |c| c.notify_readable = true }
> � �- EM::Connection#pending_connect_timeout= setter (defaults to 20s)
> � �- EM.bind_connect can bind to random source port using nil
> � � � �EM.bind_connect('local.ip', nil, 'remote.ip', 1234)
> � �- added EM::Connection#pause/resume/paused? to pause and resume I/O
> � �- EM::Connection#proxy_incoming_to takes an optional buffer size for
> � � �limiting RAM usage when dealing with slow clients
> 
> �- Protocol Additions
> � �- allow overriding the serializer used for ObjectProtocol
> � �- basic SOCKS v4 client protocol implementation
> 
> �- Platform Support
> � � �AIX, OpenBSD, Solaris
> � � � �- minor fixes to support these platforms
> � � �Windows
> � � � �- fix missing unbind events on refused outbound connections
> � � � �- fix issues with ruby 1.9 on windows
> 
> �- Ruby Support
> � � �JRuby
> � � � �- major overhaul of the jruby reactor for better compat and 
> performance
> � � � �- basic EM.attach/watch support on the Sun JVM
> � � � �- fully compatible with JRuby 1.4
> � � �Ruby 1.9
> � � � �- fix bugs trying to kill the EM.defer threadpool
> � � � �- fix signal handling to catch ctrl+c and other signals 
> gracefully
> � � �Rubinius
> � � � �- minor changes to build a compatible C extension
> 
> Special thanks to the following people for making this release possible:
> �- Bernd Ahlers
> �- Chris Turner
> �- Dan Mayer
> �- Perry Smith
> �- Bill 'spatulasnout' Kelly
> �- Hemant 'gnufied' Kumar
> �- Jake 'yakischloba' Douglas
> �- James 'raggi' Tucker
> �- coderrr
> 
> The rdoc has been updated and is available at 
> http://eventmachine.rubyforge.org
> 
> �Aman

-- 
Posted via http://www.ruby-forum.com/.

In This Thread