[#374680] treequel 1.2.0 — Michael Granger <ged@...>
[#374683] A algorithm for finding the number — zuerrong <zuerrong@...>
Hi members,
I don't know how SQLite works but Access Jet would only fetch across the
[#374693] I can't get FileUtils to delete a directory — Tara Keane <tararakeane@...>
Hi there,
Great that worked thanks a lot...
[#374710] Cutting down on logging statements — Iain Barnett <iainspeed@...>
Hi,
[#374721] FasterCSV parsing issues — Jeremy Woertink <jeremywoertink@...>
I'm using FasterCSV to do an import into my DB, and the CSV file
I've had similar issues recently, and they are due to character
[#374726] mocking in rspec — Ruby Pasaulyje <mmartynasm@...>
I have a problem with mocking. I have class DistanceMatrix and I would
[#374731] hash method how-to? — Intransition <transfire@...>
Are there any good tutorials out there for writing proper #hash
http://en.wikipedia.org/wiki/Hash_function
On Dec 1, 1:10=A0pm, niklas | brueckenschlaeger
On Wed, Dec 1, 2010 at 2:27 PM, Yossef Mendelssohn <ymendel@pobox.com> wrot=
[#374758] pg 0.10.0 — Michael Granger <ged@...>
[#374765] Singleton class, metaclass, eigenclass: what do they mean? — Tony Arcieri <tony.arcieri@...>
Every time I think I have my head around what these terms mean I seem to run
> My understanding was that the singleton class is what you obtain when you
On Thu, Dec 2, 2010 at 11:50 AM, Intransition <transfire@gmail.com> wrote:
On Thu, Dec 2, 2010 at 4:18 PM, Intransition <transfire@gmail.com> wrote:
On Thu, Dec 2, 2010 at 4:55 PM, Gary Wright <gwtmp01@mac.com> wrote:
On Fri, Dec 3, 2010 at 5:05 AM, Gary Wright <gwtmp01@mac.com> wrote:
On Fri, Dec 3, 2010 at 1:17 AM, Peter Vandenabeele
On Sat, Dec 4, 2010 at 4:37 AM, Tony Arcieri <tony.arcieri@medioh.com> wrote:
On Sat, Dec 4, 2010 at 2:56 PM, Peter Vandenabeele
Rick DeNatale wrote:
Going through Metaprogramming Ruby, and in this book, they went with
2011/1/16 Josh Cheek <josh.cheek@gmail.com>:
On Sun, Dec 5, 2010 at 4:54 PM, Rick DeNatale <rick.denatale@gmail.com> wro=
On Sun, Dec 5, 2010 at 4:24 PM, Peter Vandenabeele
On Sun, Dec 5, 2010 at 11:49 PM, Rick DeNatale <rick.denatale@gmail.com> wr=
[#374786] Screen scraping an aspx site with Mechanize — Sofie Willander <sofiewil@...>
Hi,
Have you looked into nokogiri at all? You can use mechanize for the
Thank you for your reply! I haven't gotten it to work yet though. I get
[#374790] Text Parsing Help — Jester Mania <jester_b84@...>
Greetings,
[#374809] what's wrong with this picture? — "Serialhex .." <serialhex@...>
so, i dont believe that i've done anything wrong, but i cant seem to get
[#374847] ffi library refuses to load — Luther Thompson <lutheroto@...>
I'm trying to run a sample program from rubygame, but it claims a
Is there any way to confirm that? And if it's true, how can I fix it?
On Fri, Dec 3, 2010 at 5:25 PM, Luther Thompson <lutheroto@gmail.com> wrote:
[#374875] cast object to object — "David E." <davidreynon@...>
So I have an object of class (user defined) Dave() and Dave2()
On 12/3/2010 9:27 AM, David E. wrote:
Yeah maybe the string confused things. I don't want to even convert to
On Fri, Dec 3, 2010 at 4:39 PM, David E. <davidreynon@gmail.com> wrote:
[#374906] ruby.cmd.line mailing list for rubyist command line / console fanatics — Zhan Deaux <zhando@...>
Greetings,
So far I've discovered that using squirrel mail through dreamhost will
+1 for ruby commandline apps. I'd like to exchange tips for building
[#374907] purging non ascii chars — Rajarshi Chakravarty <raj_plays@...>
Hi,
[#374914] newbie: nested classes; ruby compiler behavior — "Doug S." <dejstone@...>
Code examples from Peter Cooper's Beginning Ruby.
[#374919] gem only work in home dictionary. — Grick Zh <grickc@...>
Hello every body, i have met a strange issue about activerecord gem.
[#374922] Split a string at a certain character — Matt Slay <mattslay@...>
I am writig an app where the user will enter a string and then I need to
On Sat, Dec 4, 2010 at 8:31 PM, Matt Slay <mattslay@jordanmachine.com> wrote:
> Pick Axe page 70-75:
[#374928] How to tell if ruby app is already running — Jim Burgess <jack.zelig@...>
Hi,
[#374932] Better way to read property than using eval()? — Matt Slay <mattslay@...>
Is there a better way to read a property from a model if you have a
On 05.12.2010 00:27, Matt Slay wrote:
[#374956] qt4-ruby crash — Marco Polo <watson.the.burne@...>
Hi,
[#374960] Q: what database would you suggest? — Diego Virasoro <diego.virasoro@...>
Hi,
> SQLite[0] might be worth a look, especially if you can split your data
[#374979] Commandline: How to add an own option? — Fritz Trapper <ajfrenzel@...>
I tried it this way, but it fails und the ducumentation is extremely
[#374990] How to get a browser information using only ruby without rails — Priyank Shah <shahpriyank01@...>
Hi All,
[#374996] fairy: A framework for distributed processing — Hajime Masuda <hazimem@...>
We are very happy to announce that fairy 0.6.0 has just been released!
[#375002] Traverse YAML node tree with non-unique values — "Martin C." <mydoghasworms@...>
I have a YAML document which I believe is valid (at least it would be
[#375018] Manual Memory Management and Automatic Garbage Collection — Tridib Bandopadhyay <tridib04@...>
Hello all
On Mon, Dec 6, 2010 at 4:41 PM, Tridib Bandopadhyay <tridib04@gmail.com> wrote:
Ammar Ali wrote in post #966575:
On Tue, Dec 7, 2010 at 4:27 AM, Tridib Bandopadhyay <tridib04@gmail.com> wr=
Ammar Ali wrote in post #966734:
On 12/06/2010 08:48 PM, Tridib Bandopadhyay wrote:
On 12/6/2010 8:41 AM, Tridib Bandopadhyay wrote:
Thank You all for your responses...I am getting a clear view of the Ruby
I tried this code fragment..
I can see the garbage collector coming when I type.
On 12/10/2010 09:37 AM, Tridib Bandopadhyay wrote:
I have some questions::--
On Tue, May 17, 2011 at 9:58 PM, Tridib Bandopadhyay <tridib04@gmail.com> wrote:
[#375020] Ruby dispatcher and work processes — "Martin C." <mydoghasworms@...>
I would like to implement an (open source) application platform
[#375029] embedding ruby - segfault after initialization when running rb_gc_start?? — Marc Weber <marco-oweber@...>
Hi,
On Mon, Dec 6, 2010 at 6:47 PM, Marc Weber <marco-oweber@gmx.de> wrote:
Excerpts from Ammar Ali's message of Tue Dec 07 01:32:12 +0100 2010:
[#375039] Vortex Level0 with Ruby — Eugeni Akmuradov <e.akmuradov@...>
Hello! Recently found this game and it totally got me up. Thou the first
[#375060] Split version requirements — Intransition <transfire@...>
Problem...
On Tue, Dec 7, 2010 at 6:02 AM, Intransition <transfire@gmail.com> wrote:
[#375084] why catch block directly exeute — "Durga B." <bdurgaprasad_nyros@...>
catch (:finish) do
On Tue, Dec 7, 2010 at 11:08 AM, Durga B. <bdurgaprasad_nyros@yahoo.com> wr=
[#375095] How to delay "string" interpretation? — Fritz Trapper <ajfrenzel@...>
Suppose the following code:
[#375112] Using something like 'load' on IO Stream ? — Philippe Philos <plucas@...>
Hello,
[#375118] HTTP POST request --> Ruby server — Chananya Freiman <thebluedragont@...>
I am making a tiny web server, and I am having problems with HTTP POST
Can't say I know a solution for you... but you might want to try using
After more debugging it looks like Ruby gets stuck when it tries to add
[#375149] ruby book — abe <abedar2000@...>
i am looking for a good ruby book for a developer who has a c
Hi abe.
[#375169] yardoc - can't view code docs in browser — "Jeff W." <weloki@...>
I'm using yardoc to document my ruby code. I do have all of my
[#375170] Consume Soap Service with Basic Authentication — Chris Gunnels <rfsllc@...>
I have been searching and trying different gems to get this to work, but
[#375172] Ruby Koans: about_hashes.rb — "Ilya B." <ilyabe@...>
Question about this method in Ruby Koans -> about_hashes.rb
[#375192] Splitting on capital letters — Ralph Shnelvar <ralphs@...32.com>
Assume I have camelized string like
On 12/08/2010 05:47 PM, Ralph Shnelvar wrote:
JB> Whether or not this is a good way may be up for debate, but it's *a* way:
Here's an ActiveSupport-powered roflscale method:
[#375213] Making a Website with Ruby (not rails?) — Jesse Jurman <e.j.jurman@...>
I have been programming in Ruby for a while and have made several
On Wed, Dec 8, 2010 at 10:23 PM, Jesse Jurman <e.j.jurman@gmail.com> wrote:
>
On Thu, Dec 9, 2010 at 5:47 AM, Steve Klabnik <steve@steveklabnik.com>wrote:
[#375228] Hash? But variables? — Soichi Ishida <soujiro0725+rubyforum@...>
Hi. I am a little confused with the use of ":" like,
[#375237] Sinatra for Interactive Forms? HTML5/JQuery — thunk <gmkoller@...>
On Thu, Dec 9, 2010 at 1:10 AM, thunk <gmkoller@gmail.com> wrote:
[#375264] Is Ruby Quiz site actually dangerous? — jim@...
I'm interested in checking out the ruby quiz site (rubyquiz.com) but Google=
On Dec 9, 2010, at 2:23 PM, jim@kalafut.net wrote:
[#375270] Help with net/http — Atomic Bomb <atomicmcbomb@...>
I am trying to screen scrape a webpage and pull out the name, address,
Nokogiri provides a great interface for accessing the data trapped
Thanks Alex.
On Fri, Dec 10, 2010 at 6:28 AM, A. Mcbomb <atomicmcbomb@gmail.com> wrote:
I didn't realized that, Jesus but it didn't help in my installation.
On Fri, Dec 10, 2010 at 10:48 AM, A. Mcbomb <atomicmcbomb@gmail.com> wrote:
That definately helped, Jesus....thanks.
On Fri, Dec 10, 2010 at 11:39 AM, A. Mcbomb <atomicmcbomb@gmail.com> wrote:
Here's what my server is running:
Installing gems local to your user account might help get around some
On Fri, Dec 10, 2010 at 8:52 PM, Scott Hill <stmpjmpr@gmail.com> wrote:
I got one of my servers updated and I'm now running Nokogiri without
You might also consider the mechanize library:
[#375279] unicorn 3.1.0 - client_buffer_body_size tuning — Eric Wong <normalperson@...>
Unicorn is an HTTP server for Rack applications designed to only serve
Just be curious about the product name.
And Unicorns are fantastical mythical creatures!
yep that indicates it's not prepare for the actual use.
[#375299] The Ruby Lockdown — Intransition <transfire@...>
Is Ruby is getting further and further locked in to a specific set of
[#375318] Using OpenSSL in Ruby — "Aaron D. Gifford" <astounding@...>
Hi,
On Dec 10, 2010, at 16:51, "Aaron D. Gifford" <astounding@gmail.com> wrote:
[#375324] Regular expression help — "Rajesh M." <munikur@...>
Hi list,
[#375357] Chdir on Windows - beginner doubt — "Marcelo S." <marcelo@...>
Folks,
On Dec 12, 4:39=A0pm, "Marcelo S." <marc...@intelitexto.com> wrote:
[#375362] highlander 0.1.0 — Daniel Berger <djberg96@...>
There can be only one! Process, I mean.
[#375392] Daemons — Iain Barnett <iainspeed@...>
Hi,
[#375398] Substituting New Line Character — "A. Mcbomb" <atomicmcbomb@...>
I have a bunch of text that I need to inject a newline character. In my
[#375407] String or string — Garrison Taylor <garrisontaylor@...>
I am doing something where I do=20
On Mon, Dec 13, 2010 at 4:53 PM, Garrison Taylor
When I typed it I wasn't looking at it, it was actually=20
[#375416] Conflicting definitions between ActiveRecord and QT — Emil Macarie <emil_macarie@...>
I am somewhat of a Ruby newbie, so if this question is in the wrong
[#375424] Instiki failing to run - msvcrt-ruby18.dll not found — John Smth <blip@...>
Hi
> As I mentioned before, the issue you're getting about the missing
On Wed, Dec 15, 2010 at 1:10 PM, John Smth <blip@blipit.com> wrote:
Thanks very much Phillip
On Wed, Dec 15, 2010 at 3:29 PM, John Smth <blip@blipit.com> wrote:
[#375426] Grep a string — "Rajesh M." <munikur@...>
Hi list,
[#375427] Ruby 1.9.2 : Io performance when application use multithread — Regis d'Aubarede <regis.aubarede@...>
Hello,
On Dec 14, 2010, at 05:34, Regis d'Aubarede wrote:
On Dec 14, 2010, at 11:07, Eric Hodel wrote:
Eric Hodel wrote in post #968393:
2010/12/15 Regis d'Aubarede <regis.aubarede@gmail.com>:
On Thu, Dec 16, 2010 at 3:56 AM, zuerrong <zuerrong@gmail.com> wrote:
2010/12/16 Robert Klemme <shortcutter@googlemail.com>:
[#375440] Behaviour of Thread#stop? — Xavier No謖le <xavier.noelle@...>
Hello dear Fellow Rubyists !
[#375442] do your bit for my mental health - how to find the difference between two strings? — Iain Barnett <iainspeed@...>
Hi,
Iain Barnett wrote in post #968364:
Thanks for all the responses, though I was looking for the difference =
Iain Barnett wrote in post #968894:
On Dec 14, 7:15=A0pm, Iain Barnett <iainsp...@gmail.com> wrote:
Raito Yitsushi wrote in post #969020:
[#375455] cTioga - help with axes — "Chris R." <chrislz15@...>
Hello all,
[#375468] String.populate(data) for sprintf? — redstun <redstun@...>
This idea came up in my mind last night.
[#375475] mysql gem segfault on line 343 — Dave Lilley <dglnz2@...>
cross posted from mysql ruby forums
On Dec 15, 4:20=A0am, Dave Lilley <dgl...@gmail.com> wrote:
[#375478] How do I define virtual global variable in ruby? — femto Zheng <femtowin@...>
Hello all,
[#375481] No such file to load -- rubygems (LoadError) — Chih tung Chao <ops.tong@...>
Hi all
[#375487] How to do UDP calls — "Luis G." <l17339@...>
Hey guys...
[#375501] xml parsing in ruby — Salim Reza <saleem.vighio@...>
Hi,
Have you looked into nokogiri?
Daniel Zd wrote in post #968678:
Salim Reza wrote in post #968699:
Salim,
Abinoam Jr. wrote in post #968720:
[#375526] Help a beginner — Guille Lopez <guille@...>
Hi,
[#375537] Ruby and science ? — Michel Demazure <michel@...>
I am really puzzled.
On Thu, Dec 16, 2010 at 11:19 AM, Michel Demazure <michel@demazure.com> wrote:
Ryan Davis wrote in post #968969:
On Friday, December 17, 2010, Michel Demazure <michel@demazure.com> wrote:
Phillip Gawlowski wrote in post #969006:
How to unsubscribe ?
I totally understand the desire to have thse capabilities and the elegance =
On Thu, Dec 16, 2010 at 3:19 AM, Michel Demazure <michel@demazure.com>wrote:
Tony Arcieri wrote in post #968904:
On Thu, Dec 16, 2010 at 6:36 PM, Michel Demazure <michel@demazure.com>wrote:
On Thursday, December 16, 2010 05:15:59 pm Colin Bartlett wrote:
On Thu, Dec 16, 2010 at 5:15 PM, Colin Bartlett <colinb2r@googlemail.com> wrote:
On Sat, Dec 18, 2010 at 1:00 PM, ara.t.howard <ara.t.howard@gmail.com> wrot=
On Dec 18, 2010, at 6:24 PM, Charles Oliver Nutter wrote:
On Sat, Dec 18, 2010 at 9:55 PM, James Edward Gray II
On Mon, Dec 20, 2010 at 3:34 PM, Ryan Davis <ryand-ruby@zenspider.com> wrote:
On Tue, Dec 21, 2010 at 3:35 AM, Ryan Davis <ryand-ruby@zenspider.com> wrot=
[#375590] Is programming art? — Yu-Hsuan Lai <raincolee@...>
(I'm a high school student confused by this concept)
The creation of software aspires to be a science or at least more like
On Fri, Dec 17, 2010 at 2:51 AM, Yu-Hsuan Lai <raincolee@gmail.com> wrote:
[#375605] How to compile ruby to executable? (Linux) — Toni Tanskanen <hakoukko@...>
Hi, everyone!
Is there other compilers than these then?
> Is there other compilers than these then?
[#375617] Integer/Fixnum/Bignum are "immutable"? — Kedar Mhaswade <kedar.mhaswade@...>
Is my understanding correct that there is no way to change the "value"
Hi,
Yukihiro Matsumoto wrote in post #969105:
[#375643] background threads — Venkat Akkineni <venkatram.akkineni@...>
Hello
[#375652] Someone explain to me the logic behind ARGV[0] — Kaye Ng <sbstn26@...>
For example there's a code
[#375666] Independent processes — Tasos Laskos <tasos.laskos@...>
Hi guys,
Thanks for the response,
[#375695] Arrays and Lists ? — Emil Macarie <emil_macarie@...>
I have recently started playing around with Ruby, and now I am starting
[#375702] Please help with NET::SSH — Jean-eric Godard <idclick@...>
Hello ,
[#375706] Regexp, String, Symbol literals' object_ids — "Pavel R." <pavel.rosputko@...>
Regexp literals:
Example:
[#375721] RDoc 3 — Eric Hodel <drbrain@...7.net>
RDoc 3.0.1 has been released
I filed this bug report back in February when the RDoc version was
[#375724] How to implement such a Domain-Specific-Language (DSL)? — Zd Yu <zdyu2000@...>
I need to use Ruby to process performance data and calculate performance
On Mon, Dec 20, 2010 at 8:22 AM, Zd Yu <zdyu2000@gmail.com> wrote:
[#375725] downloading a file — Rajinder Yadav <devguy.ca@...>
hello what is the best way to download a file?
Rajinder Yadav wrote in post #969503:
On Mon, Dec 20, 2010 at 6:11 AM, Brian Candler <b.candler@pobox.com> wrote:
Rajinder Yadav wrote in post #969592:
On Mon, Dec 20, 2010 at 1:10 PM, Brian Candler <b.candler@pobox.com> wrote:
[#375745] To get time response of two events — Fan Jin <jeff_yq@...>
Hi:
[#375767] OpenGL support — Chananya Freiman <thebluedragont@...>
Will there ever be updated bindings to OpenGL?
[#375773] creating an object — Rail Shafigulin <rail.shafigulin@...>
i'm somewhat new to rails and ruby.
[#375778] Upgrade OS X Snow Leopard to 1.9.x — Aaron Allison <allisonaaronb@...>
I am trying to update my mac to the latest ruby.
[#375787] how to know a search result is successfully displayed through its source codes — Fan Jin <jeff_yq@...>
I am working on a project where need to search a keyword by using simple
On 12/21/2010 01:24 AM, Fan Jin wrote:
Jeremy Bopp wrote in post #969808:
On Tue, Dec 21, 2010 at 8:02 PM, Fan Jin <jeff_yq@yahoo.com.au> wrote:
Gordon Thiesfeld wrote in post #970057:
On Thu, Dec 23, 2010 at 12:11 AM, Fan Jin <jeff_yq@yahoo.com.au> wrote:
[#375819] FileTest.relative? — Intransition <transfire@...>
It seems FileTest lacks a `relative?` method (and conversely `absolute?
[#375838] cross compilation issue. — Rajesh V2k <veedhirajesh@...>
Hi,
[#375839] gem install ruby-debug-ide errors don't give me anything to look for. — Kedar Mhaswade <kedar.mhaswade@...>
Hope I am not missing something obvious. I have searched high and low.
On Wed, Dec 22, 2010 at 2:45 PM, Kedar Mhaswade
Phillip Gawlowski wrote in post #970053:
Kedar Mhaswade wrote in post #970055:
> Peter Vandenabeele wrote in post #970154:
[#375846] Base class method Need base class value — Karan Rajput <ganeshgirase@...>
Could anybody suggest what am i suppose to do for below problem.
[#375856] Problem with gems (require not working) — Tomas Korcak <korczis@...>
Hi there,
On Wed, Dec 22, 2010 at 3:03 PM, Tomas Korcak <korczis@gmail.com> wrote:
[#375872] How to DRY code to prompt for parameters — RichardOnRails <RichardDummyMailbox58407@...>
I pasted code to prompt for a couple of parameter-values at
[#375881] net-ping error says "false" though server can be reached — Athreya Vc <athreyavc@...>
Hi All,
[#375882] 'net/ssh' error /usr/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/transport/session.rb:65:in `i — Athreya Vc <athreyavc@...>
Hi,
I am so sorry,
[#375891] simple counting in Ruby — Peter Bailey <pbailey@...>
Hello,
[#375908] What is the the best style and theory of writing a complier in your language — small Pox <smallpox911@...>
What is the the best style and theory of writing a complier in your
Alex Jones Exposes Google's Plan to Dominate the Internet
smallpox911@gmail.com is your e-mail address... if you REALLY think google
On Friday, December 24, 2010 12:17:03 pm serialhex wrote:
[#375909] Best way to get 3/2 == 1.5 ? — Stefan Salewski <mail@...>
I really like to get "real/float" division results. I know that there
[#375912] Making a C extension — Chananya Freiman <thebluedragont@...>
I can't seem to get even the simplest C extension taken from
[#375921] Numeric comparison with nil - Math masochists only!! — serialhex <serialhex@...>
Alright, i'm trying to do three things at once, and I'm almost succeeding.
On Fri, Dec 24, 2010 at 3:45 AM, serialhex <serialhex@gmail.com> wrote:
Colin, your amazing insight has led me to programming greatness!!!
On Sat, Dec 25, 2010 at 2:34 AM, serialhex <serialhex@gmail.com> wrote:
hey robert, thanks for the great article, i'll keep that stuff in mind as
serialhex wrote:
>
serialhex wrote:
On Wed, Dec 29, 2010 at 1:59 PM, Everett L Williams II
Xavier Noria wrote:
On Wed, Dec 29, 2010 at 8:06 PM, Everett L Williams II
Xavier Noria wrote:
Everett, even in the act of adding two numbers, the computer is following
[#375924] Undefined local variable? — Zhi-Qiang Lei <zhiqiang.lei@...>
Dear All,
[#375932] RDoc on Github — Eric Hodel <drbrain@...7.net>
RDoc is now on Github: https://github.com/rdoc
[#375976] converting traversal fn into Enumeration — Fearless Fool <r@...>
I've not quite wrapped my head around Enumerations, but I suspect I'm
[#375977] array index inside map function — Siddharth Venkatesan <neotamizhan@...>
Hi all,
Siddharth Venkatesan wrote in post #970728:
[#375985] What method to define a random float — Fan Jin <jeff_yq@...>
Hi:
[#375991] RubyInstaller 1.9.2-p136 released — Luis Lavena <luislavena@...>
Hello,
[#376002] inject issue — jzakiya <jzakiya@...>
When I do this:
[#376025] Find not working — Shandy Nantz <shandybleu@...>
Hi all,
[#376047] to_lang: my first gem, looking for feedback — "Jimmy C." <jimmycuadra@...>
Greetings,
[#376059] can ruby script detect 'pc lock', 'pc unlock' instances ? — Vijay Ramane <vijay.ramane@...>
Hello i need urgent help
[#376060] From python to ruby — AM <al.ma@...>
Hello
[#376066] Should I learn Ruby? — Din Ibbles <d.sp@...>
I am wondering whether to learn Ruby, as I would like to get a job after
Jobserve (UK) today:
[#376075] convert String "1;2;3;4;5;" to Array [1, 2, 3, 4, 5] — "Thomas T." <tthackery@...>
I'm trying to convert a String of numbers that are separated by
you mean something like this?
Ian M. Asaff wrote in post #971169:
Thanks to both. I'm reading up on these methods you've supplied at
[#376088] What am I missing about splat operator? — RichardOnRails <RichardDummyMailbox58407@...>
In trying to understand the splat operator, I visited:
[#376099] Possible to respond to output from system(linuxcommand) — Richard Sandoval <skolopen@...>
Hello,
[#376109] Encrypting a File by intercepting its methods — Javier 12 <jvalencia@...>
Hi, I've been trying to encrypt file by intercepting File methods, or in
[#376119] platform independent piped input stream from system call — Danny Challis <dannychallis@...>
Hi all,
On 12/29/2010 12:10 PM, Danny Challis wrote:
[#376153] Parsing the Ruby File — "Thillai S." <thillaiselvan@...>
Hai any one pls guide me...
I want to find the number of lines in the function code.
[#376160] How to hook a callback through inheritance — Satsou Sa <moshimoshi.here@...>
Hello,
The problem is that before_laughing is being invoked as a class method on
Josh Cheek wrote in post #971483:
[#376173] .irb-history — koulikoff <koulikoff@...>
Hello! Please, tell me, does anyone know how to increase the history
[#376178] Where To Put Validation Logic? — Tom Wardrop <tom@...>
This is probably a question you could put to any programmer who writes
[#376192] trans string into array — Pen Ttt <myocean135@...>
a=[1,2,3]
[#376198] a common idiom — Michel Demazure <michel@...>
I often have to write something like
On Fri, Dec 31, 2010 at 7:12 PM, Michel Demazure <michel@demazure.com> wrote:
Re: Ruby and science ?
On Sat, Dec 18, 2010 at 9:55 PM, James Edward Gray II <james@graysoftinc.com> wrote: > Of course, like anything, there are tradeoffs and JRuby sucks at other th= ings, like manipulating processes in a POSIX environment. =C2=A0I don't use= it in these scenarios and you know that I've filed bugs for the specific p= roblems I've run into (some of those have been partially addressed). The JVM and the JDK APIs suck at process manipulation...not JRuby. JRuby does the best job it can do cross-platform with the JDK APIs provided for it. If you need to go outside those APIs, or if we "suck" in how we utilize them, it's a trivial matter to bind native C process-management logic via FFI and use that. It won't be as portable as what we provide, but it will work. Providing the excellent cross-platform experience the JVM provides (and which JRuby provides by extension) means a lot of platform-specific things are a bit cumbersome. Our direction has been to provide the cross-platform experience and allow people to opt out of portability through FFI if necessary. You may disagree with that approach. > All that said, I think you were pretty harsh on using processes for concu= rrency in general. =C2=A0That "blunt tool" is pretty much the core of the U= nix operating system, which I think a lot of us are found of. =C2=A0I often= find it easier to work with processes that threads myself, though obviousl= y some programmers think the other way. Processes for concurrency works great. The blunt tool I meant was how you get those processes to coordinate. You basically have a handful of cumbersome options: * Signals, which can't communicate much data * Streams, pipes, files, shared memory, which can only carry byte[] data, requiring marshaling With threads, it's possible to communicate between concurrent processes using normal OO constructs like queues, actors, and simple method calls. You can emulate that with processes using one of the above mechanisms, but it's a leaky abstraction. On the other hand, your queues, actors, and method calls across threads need to be thread-safe. Tradeoffs. JRuby is perfectly happy to work with a multi-process model, but you may need to opt out of portability to get the lowest-level behaviors of a typical UNIX environment. I personally have nothing against processes. Threads are just easier, if you stay out of the danger zones. > On the contrary, threading is so challenging to get right that "threading= is hard" is a popular saying: > > =C2=A0http://www.google.com/search?q=3D%22threading+is+hard%22 Threading is hard if you do it wrong. The problem is that it's easy to do it wrong. Follow these rules and threading is a very nice, very clean, very easy way to do concurrency: 1. Don't share data 2. If you must share data, don't share immutable data 3. If you must share mutable data, guarantee ACID (atomicity, consistency, isolation, durability) Clojure is a perfect example of an environment that uses threads heavily by defaulting to (2) and providing software transactional memory for (3). Other than enforcing immutability, nothing Clojure does for concurrency could not be done in Ruby. Anyone interested in seeing concurrency done the Clojure way with JRuby can find many examples online. Threads "fail" in that none of these rules are enforced at any level. They're a very sharp tool with many dangerous paths. But I prefer sharp tools. > It bugs me that people are so harsh on fork(). =C2=A0I avoided it like th= e plague when I was a younger programmer because everyone had me convinced = it was evil. =C2=A0I'm now far more dangerous because I took the time to le= arn it and understand it. =C2=A0I strongly recommend all programmers do the= same. =C2=A0(By the way, ara.t.howard taught me most of what I know about = processes, directly and indirectly!) I have no problem with fork. If JRuby could support fork on the JVM, we would do so. We don't only because all mainstream JVMs spin up multiple threads, which are not carried along to forked child processes (and even if they could be restarted, it's a very complicated transition that might defeat much of the benefit of forking). > So JRuby is good at threads and not so good at processes, in my opinion. = =C2=A0Processes are also not at all evil. =C2=A0Judge not lest ye be judged= . =C2=A0;) It might be more correct to say that the JVM is good at threads and not so good at processes, nothing that JRuby makes it possible via FFI to be nearly as good at processes as any POSIX application. We have simply prioritized making JRuby work uniformly across platforms first, while still providing the tools people need to opt out of portability for lower-level behaviors and features. - Charlie