[#379166] question: threads behaviour — Raphael Bauduin <rblists@...>
Hi,
Raphael Bauduin <rblists@gmail.com> wrote:
On Tue, Mar 1, 2011 at 10:27 AM, Eric Wong <normalperson@yhbt.net> wrote:
Robert Klemme <shortcutter@googlemail.com> wrote:
[#379173] Pattern matching French accented characters — Thomas Luedeke <thomas.luedeke@...>
I am writing a French conjugation testing script, and a significant
[#379189] Semantics of 1.9.2 Set — John <john.g.norman@...>
I'm looking at the doc for the 1.9.2 Set class, which says (http://
[#379190] exec using sh -c or directly running the command, depending on the system — Xavier No謖le <xavier.noelle@...>
Hello !
Ruby tells the shell to execute the command (that's why you see "sh -c")
2011/3/2 Albert Schlef <albertschlef@gmail.com>:
Looks like there was a change in Ruby, where perhaps it now does an
[#379204] rubygems-update 1.6.0 Released — Eric Hodel <drbrain@...7.net>
rubygems-update version 1.6.0 has been released!
[#379206] Older versions of Ruby — Dave Ford <infi_u@...>
Hello,
[#379235] some unrecognized syntax error — Ruby Fan <sweensonti@...>
test.rb:1: syntax error, unexpected kDEF, expecting $end
[#379254] Finding all empty directories in a subversion checkout — Markus Fischer <markus@...>
Hi,
[#379259] What is inject doing here? — Todd Benson <caduceass@...>
Why does this not do what I expect?
On Thu, Mar 3, 2011 at 2:15 AM, Todd Benson <caduceass@gmail.com> wrote:
[#379261] How can i get the first letter of this string — duc nguyen <minhduct4@...>
Hello, i'm a newbie. I have a question that how can i get the first
You can use the /u flag for a regex to signal utf-8 matching...but you
[#379268] Anything like Array.contains? method — Paul Sholtz <paul.sholtz@...>
Is there a method in the Ruby array object that gives anything like a
[#379279] How to stop a file from being required — Usman Hussain <usmanhhussain@...>
Hi Guys,
[#379285] Extracting the shortest string from an array — Iñaki Baz Castillo <ibc@...>
Hi, given the following array:
Hi,
On 03.03.2011 16:02, Thorsten Hater wrote:
On Thu, Mar 3, 2011 at 11:35 AM, Robert Klemme
On Thu, Mar 3, 2011 at 7:18 PM, Josh Cheek <josh.cheek@gmail.com> wrote:
[#379293] open4 stdin.close required? — "Brendan G." <brendan.grainger@...>
Hi,
[#379298] RubyForge ssh authentication change — Tom Copeland <tom@...>
Hi all -
[#379299] How to assign an element to a hash only if its value is not nil? — "Thomas W." <thomas@...>
hash = {}
If you don't mind also overwriting the value if the value is false as =
On Thu, Mar 3, 2011 at 10:10 AM, Thomas W. <thomas@thomas-witt.com> wrote:
On 03.03.2011 18:38, Mike Moore wrote:
On Thu, Mar 3, 2011 at 10:55 AM, Robert Klemme
On Thu, Mar 3, 2011 at 7:27 PM, Mike Moore <blowmage@gmail.com> wrote:
On Fri, Mar 4, 2011 at 3:05 AM, Robert Klemme
[#379319] slice! invalid byte sequence in UTF-8 — Marek Kis <leisikkeram@...>
Hello
[#379327] extconf.rb spitting out SH Makefile on windows? — Mr Eiland <mreiland1978@...>
Title says it all, I'm running ruby extconf.rb in a visual studio 2008
On Mar 15, 3:09=A0am, Mr Eiland <mreiland1...@yahoo.com> wrote:
Luis Lavena wrote in post #987573:
On Thu, Mar 17, 2011 at 2:23 AM, Mr Eiland <mreiland1978@yahoo.com> wrote:
Phillip Gawlowski wrote in post #987872:
On Thu, Mar 17, 2011 at 6:30 PM, Mr Eiland <mreiland1978@yahoo.com> wrote:
Phillip, until you stop with the strawmen, I'm going to ignore you from
[#379334] rubygems-update 1.6.1 Released — Eric Hodel <drbrain@...7.net>
rubygems-update version 1.6.1 has been released!
[#379356] Removing methods from an inherited class — Iñaki Baz Castillo <ibc@...>
Hi, if class A contains method "hello" and class B inherits from A, is
[#379362] printing regex results — "New C." <coding25@...>
How do you get Ruby to print the string that matches a certain regex
[#379378] posix-spawn 0.3.0 -- first public release (codename, "tigers blood") — Ryan Tomayko <rtomayko@...>
<https://github.com/rtomayko/posix-spawn>
Did you know about the "spoon" gem? It's a very simple binding of
On Fri, Mar 4, 2011 at 11:08 PM, Charles Oliver Nutter
[#379388] %s[ I think %s[] should build an array of symbols instead of a single symbol ] — Joey Zhou <yimutang@...>
I find %s[] builds a single symbol.
[#379391] UTF-8 support - still stuck — Thomas Luedeke <tluedeke@...>
OK, I appreciate the feedback on my last post regarding pattern matching
[#379406] What does "ARGF.class" mean? — Joey Zhou <yimutang@...>
ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
From the source code, I see this:
[#379410] Ruby - Missed some core computer science world ? — Lucky Dev <lucky.developer@...>
I am doing ruby programming and been developing rails3 apps for some
Lucky Dev <lucky.developer@gmail.com> writes:
Robert
On Mon, Mar 7, 2011 at 3:28 PM, Mike Stephens <rubfor@recitel.net> wrote:
[#379423] How to get class of BasicObject ancestor (Ruby 1.9.2)? — Alexey Petrushin <axyd80@...>
There's no :class method on BasicObject, is there any way to get class
...or even simpler: just open up BasicObject and monkeypatch a class
[#379429] RCAP 0.4 Released — Farrel Lifson <farrel.lifson@...>
The Common Alerting Protocol is a lightweight standard to facilitate
[#379430] (ArgumentError) - in `initialize': wrong number of arguments (4 for 0) — Micah Wolfe <52w7te9ara@...>
Greetings all,
Greetings,
On Fri, Mar 11, 2011 at 11:37 AM, Micah Wolfe <52w7te9ara@snkmail.com> wrote:
Am 11.03.2011 20:53, schrieb Hassan Schroeder:
I think it's more likely he meant to put this question on the other thread
Andrew Wagner wrote in post #986975:
On Sun, Mar 13, 2011 at 9:51 AM, Micah Wolfe <52w7te9ara@snkmail.com> wrote:
[#379441] class cannot find module — Catsquotl <catsquotl@...>
Hi,
[#379449] Class Variables in EigenClass — JP Billaud <jp.billaud@...>
I am using Ruby 1.8.7 and I bumped into a weird behavior regarding
Actually it seems that for some reasons the @@test class variables ended
[#379455] mysql -- cannot connect (can in Perl) — "John P." <jlpoole56@...>
My goal: to allow database connections to a remote database from Google
I believe that mysql2 requires that you have installed a full instance
[#379467] Checking if two files are the same — "New C." <coding25@...>
I have a got a few folders which may have same files under different
On Mon, Mar 7, 2011 at 11:48 AM, New C. <coding25@yahoo.com> wrote:
[#379469] basic programming question, help please — Kaye Ng <sbstn26@...>
class Square
The class method in Ruby is represented using self.<method name> or <class
On Mon, Mar 7, 2011 at 5:31 PM, Gary Wright <gwtmp01@mac.com> wrote:
On Tue, Mar 8, 2011 at 10:01 AM, Eric Christopherson <
[#379478] Hamming Distance — Martin Hansen <mail@...>
What is the fastest way to calculate the Hamming Distance between two
[#379487] http post and authorization header for twitter — boo boo <s.w.timko@...>
I am trying to send an authorization header to the twitter api
Thanks for the reply! So i tried that code and got this error: "Failed
[#379493] gem to deal with config file / program options — Shadowfirebird <shadowfirebird@...>
Hi all,
[#379496] Forms not seen by Mechanize (US Bank login) — Phil Henley <dantes990@...>
I'm writing a script to login to my bank. Here's how the login
[#379511] cant find header file ruby.h — pradeep koppaka <bulls66@...>
hi I am trying to install passenger gem. But it is throwing the
[#379523] rb-appscript installation on MAC OS 10.6.3 (Snow Leopard) — Saurabh Gupta <saurabhguptacse@...>
Hello,
[#379524] Duplicate methods removal in Ruby's TODO ? — David Unric <dunric29a@...>
Hi,
I just think some methods should add a trailing exclamation mark, which
On Tue, Mar 8, 2011 at 1:30 PM, David Unric <dunric29a@gmail.com> wrote:
Robert Klemme wrote in post #986190:
Josh Cheek <josh.cheek@gmail.com> wrote:
[#379568] OS X 10.6 + ruby-1.9.2-p180.tar — "Charles S." <charles@...>
In OS X 10.6.6, I downloaded ruby-1.9.2-p180.tar and performed a
[#379572] Unexpected problem: hash[key] << value — Joey Zhou <yimutang@...>
# ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
[#379583] Posting XML — JesseQA <uscengineer@...>
Hi everyone. A newbie with ruby/xml so I am not sure where my trouble
[#379594] Most simple usage of zlib or pr-zlib — Nicholas Wieland <ngw@...>
HI *, I'm trying to unzip a file programmatically, and having lots of
[#379597] Comparison between C++ and Ruby Variables — "Mayank K." <mayank.kohaley@...>
I have blogged about the comparison between c++ and ruby variables and
On Wed, Mar 9, 2011 at 1:12 PM, Mayank K. <mayank.kohaley@gmail.com> wrote:
On Wed, Mar 9, 2011 at 6:25 PM, Phillip Gawlowski <
On Wednesday, March 9, 2011 3:05:13 PM UTC+1, Mayank Kohaley wrote:
[#379623] Touch Typing Tutor What do you think of my code? — Justin brainy <justin.domingue@...>
Hello! I'm new to Ruby, but I spent some time with C. I would like to
[#379625] RMagick Install Woes ;_; — Pierre Pepe <paniaguagsxr@...>
Running Win7 64 bit
[#379643] delete one line of file — Joyce Lima <jojosl@...>
I'm doing one work school, sorry don't write english very good, I'm
[#379647] can't run script/console from ubuntu upgrade 9.10 -> 10.04 — Anshu Agr <arun@...>
I just upgraded my ubuntu from 9.10 to 10.04,
[#379649] sleepy_penguin 2.0.0 - Linux I/O events for Ruby — Eric Wong <normalperson@...>
sleepy_penguin provides access to newer, Linux-only system calls to wait
[#379660] HTTP response 302 — Amruta Maniyar <amruta911@...>
Hello Friends,
[#379673] problem with compilation — Ma Sz <magda.szlagor@...>
I'm totally newbie at Ruby. What is wrong whit this code
[#379686] What do you use with Ruby for GUI programming and why? — Robert <sigzero@...>
Is there a push to one toolkit or the other?
> Is there a push to one toolkit or the other?
I use Shoes. I'm biased; I'm one of the maintainers.
> I use Shoes. I'm biased; I'm one of the maintainers.
> Or is that a stupid thing to say?
Shoes is far and away the easiest and most pleasant way to get a GUI that I've seen - in any language. I'm a bit worried about having to drop back to 1.9.1, and I sure miss the Linux installer. But I absolutely have to try Green Shoes, though.
Hi
[#379707] universal symbol — vahag vardanyan <vahagvardanyan@...>
HI
[#379728] Is an elsif loop possible? — Devin Rawlek <waffles008@...>
Hi Everyone,
[#379735] Problem in script help (shoes) — Lark Work <lars_werkman@...>
heey, i have a problem with my script could some one please look at it
[#379755] send() with a block? — 7stud -- <bbxx789_05ss@...>
Why don't the ruby docs say that send() can take a block?
On Sat, Mar 12, 2011 at 8:45 PM, 7stud -- <bbxx789_05ss@yahoo.com> wrote:
On Sun, 13 Mar 2011 06:01:31 +0900, Sean O'Halpin wrote:
Peter Zotov wrote in post #987115:
On Sun, 13 Mar 2011 23:26:01 +0900, Brian Candler wrote:
Peter Zotov wrote in post #987191:
Or to put it another way:
On Sun, Mar 13, 2011 at 11:00 AM, Brian Candler <b.candler@pobox.com> wrote:
On Sat, Mar 12, 2011 at 2:45 PM, 7stud -- <bbxx789_05ss@yahoo.com> wrote:
[#379767] Bless Matz and his teammates in Japan — Joey Zhou <yimutang@...>
Wish them and their families all in safety.
[#379807] best search method — Dave Lilley <dglnz2@...>
I've got a small contact mysql database and need to do a soundex type of
Excerpts from Dave Lilley's message of Mon Mar 14 08:58:23 +0000 2011:
[#379810] Unespected result of define_method with "for" and "each" — lucapette <lucapette@...>
Hi everyone,
[#379815] Watir - How to access an element which is of this kind of format — "balaji t." <balaji_tunuguntla@...>
Hi all,
[#379836] Doubts about Ruby and JRuby — Giuseppe luigi Punzi ruiz <glpunzi@...>
Hi all,
[#379845] Ruby jobs — Toby Gambill <toby.gambill@...>
All=20
In article
A brilliant breakdown, Doc. Thank you.
> I have several great jobs around the country for ruby developers please contact me on my cell if you would like to hear more about these positions
All I do apologize for the quick knee jerk posting, I am looking for the pa=
[#379846] Understanding YAML and this practice in general — Fily Salas <fs_tigre@...>
Hi,
[#379889] SHA1 Decryption!! — Gormare Kalss <gormare@...>
Hello! I hope that no one will be offended by this question!! Ive been
On 15/03/11 18:07, Gormare Kalss wrote:
Matthew Bloch wrote in post #987597:
On Tue, Mar 15, 2011 at 11:38 AM, Gormare Kalss <gormare@hotmail.com> wrote:
Ben Bleything wrote in post #987607:
On Tue, Mar 15, 2011 at 1:38 PM, Brian Candler <b.candler@pobox.com> wrote:
[#379899] Proposal: require to return path to loaded file — Alex Young <alex@...>
If you're doing anything at all involved with $LOAD_PATH, it can be a
[#379900] JRuby 1.6.0 released — Thomas E Enebo <tom.enebo@...>
The JRuby community is pleased to announce the release of JRuby 1.6.0.
Awesome! Great job guys.
Does this release mean that it is generally safe to use 1.9 style code with
On Mar 16, 2011, at 5:33 PM, Chuck Remes wrote:
That environment variable would be RUBYOPT
[#379915] NoMethodError#message takes very long — Adiel Mittmann <adiel@...>
Hello.
On Mar 15, 2011, at 8:25 PM, Adiel Mittmann wrote:
[#379936] The future of the character-encodings library — Nikolai Weibull <now@...>
Hi!
Eric, could you please reply to all in the future? I have =E2=80=9Cskip=E2=
[#379945] TCPSocket: how to realize that the other endpoint has closed the connection? — Iñaki Baz Castillo <ibc@...>
Hi, I open a TCP connection with a server:
It's possible that your first send() is stuck in a buffer. See if
On Thu, Mar 17, 2011 at 3:38 AM, 7stud -- <bbxx789_05ss@yahoo.com> wrote:
After the server closes its side of the socket, there must be some
[#379948] How to View Output - Stop App — Rob Gu <flyingv786@...>
Greetings, total noob question I'm sure. I'm trying to run a simple
[#379973] taking content from arrays to open a .3ds file — stephanie borg <borg.stef@...>
This is part of my program. what it is intented to do is get the first
hello,
What it's outputing is :
[#379976] raindrops 0.5.0 - TCP/UNIX listen queue stats for Linux — Eric Wong <normalperson@...>
Raindrops is a real-time stats toolkit to show statistics for Rack HTTP
Polishing up the last (0.5.0) release
Hi Eric,
Ben Bleything <ben@bleything.net> wrote:
[#379998] Inserting hash value slows down as table gets larger — Philip Rhoades <phil@...>
People,
I suspect is it the memory related to object creation for Array.new(2){ =
Dave Baldwin wrote in post #987924:
Brian,
> The other thought I had was putting the data into a sqlite3 db - I will
[#380007] Replacing elements in an array? — Jen <jen.bottom@...>
Hello,
[#380008] What is p's real behavior? — Yu-Hsuan Lai <raincolee@...>
I read the RDoc and it says:
[#380035] "10 Minutes to Your First Ruby Application" Deconstructed! — "Shangz B." <shangbaby@...>
Hello and warm wishes to everyone who reads my post :)
[#380037] matching a word in any number of characters — Chad Perrin <code@...>
I have need of some code to match any of a number of words in any number
> I have need of some code to match any of a number of words in any =
On Fri, Mar 18, 2011 at 05:15:08PM +0900, Ryan Davis wrote:
> Your opening made you come off like a jackass with
On Fri, Mar 18, 2011 at 05:59:20PM +0900, Andrea Dallera wrote:
[#380053] Array range values assignment — Ruby Fan <sweensonti@...>
a = ["A","A","A","A","A", "A","A","A","A","A"]
[#380074] Method Call from inside a file. — Tridib Bandopadhyay <tridib04@...>
I coded a new method within gc.c file defining as--
[#380076] Fwd: Using value from variable in .times method? — Jen <jen.bottom@...>
[#380085] A question about Ruby 1.9's "external encoding" — Albert Schlef <albertschlef@...>
I have the following program:
On 03/20/2011 01:38 AM, Albert Schlef wrote:
Robert K. wrote in post #988404:
On 20.03.2011 14:19, Brian Candler wrote:
Robert K. wrote in post #988429:
On Sun, Mar 20, 2011 at 6:39 PM, Brian Candler <b.candler@pobox.com> wrote:
On 21.03.2011 16:00, Robert Klemme wrote:
On Wed, Mar 23, 2011 at 12:24 AM, Markus Fischer <markus@fischer.name> wrot=
[#380090] newbie understanding blocks — Neubyr Neubyr <neubyr@...>
I am learning Ruby and having some difficulty understanding blocks. I
[#380103] Name generator | I need feedback — "Justin D." <justin.domingue@...>
Hello!
Thanks a lot anurag! Your answer is exactly what I wanted =)
[#380116] The best practices to learn Ruby — Fily Salas <fs_tigre@...>
Hi,
I specifically run a project about teaching Ruby: http://hackety-hack.com/
[#380149] scope of assignments with lambda — Fearless Fool <r@...>
This isn't a question -- it's just a comment that I find it awesome and
Fearless Fool wrote in post #988575:
[#380156] Run CGI scripts in own webserver — Kevin Kevin <kevin_de_valck@...>
Hello,
[#380157] Search files on windows shares — Tee Dubb <teedubb@...>
Did some googling and didn't see much on this topic, any ideas?
[#380160] fxri for windows? — Michael Smith <smiley.mikey@...>
Hi,
[#380190] Difference between for and someclass.each do |var| — "Tyrel R." <tyrel@...>
Hello everyone,
[#380196] summing values in a hash? — Jen <jen.bottom@...>
Hi,
On Tue, Mar 22, 2011 at 12:57 PM, Jen <jen.bottom@gmail.com> wrote:
On Tue, Mar 22, 2011 at 2:01 PM, Adam Prescott <mentionuse@gmail.com> wrote:
[#380205] How could I make the Ruby 1.9 string ignore the invalid utf-8 byte sequence in split? — Stanley Xu <wenhao.xu@...>
Dear buddies,
Sorry, I just mis-sent the half-typed mail by a short-cut in gmail.
[#380220] Ruby corrupts after a period of time — Chip Burke <cburke@...>
I have recently upgraded from Ruby 1.8.7 to 1.9.2p180 on Fedora. After a
Ryan Davis wrote in post #988782:
On Thu, Mar 24, 2011 at 1:58 PM, Chip Burke <cburke@innova-partners.com> wrote:
unknown wrote in post #989053:
Some more news. I built a clean Fedora 13 x86_64 box last night to test
On Fri, Mar 25, 2011 at 10:43 AM, Chip Burke <cburke@innova-partners.com> wrote:
[#380232] How to use String.split to split a mixed encoding string(part encoded in gbk, part encoded in utf-8) — Stanley Xu <wenhao.xu@...>
Dear Buddies,
[#380236] Dynamically calling a certain set of methods — Vicente Bosch Campos <vbosch@...>
Hi,
You can save yourself some CPU cycles by pre-compiling the list of
[#380241] Nil can't be coerced into Fixnum (TypeError) — "Mayank K." <mayank.kohaley@...>
I am trying to execute the following code and it seems like the array is
[#380262] Converting PHP to Ruby — "Jack W." <jack.whitman403@...>
Hi all,
If you'd like, here's an updated code with real variable names and some
[#380276] iteration question — felix chang <funal.zhang@...>
Dear all:
[#380299] Can I use MacRuby without knowing Objective-C — Fily Salas <fs_tigre@...>
Hi,
[#380300] logging 1.5.0 — Tim Pease <tim.pease@...>
logging version 1.5.0
[#380306] shortcut for add unless nil ? — Iain Barnett <iainspeed@...>
Hi,
You could do something like this (untested):
On Fri, Mar 25, 2011 at 7:02 AM, Iain Barnett <iainspeed@gmail.com> wrote:
On Fri, Mar 25, 2011 at 7:52 AM, Robert Klemme
On Fri, Mar 25, 2011 at 4:42 PM, Iain Barnett <iainspeed@gmail.com> wrote:
...personally i think it would be nice to be able to define new operators
On 25.03.2011 20:06, serialhex wrote:
An alternative for the original poster's ENV variables potentially
On Sat, Mar 26, 2011 at 07:21:25PM +0900, Robert Klemme wrote:
[#380325] Regexp, matching only the content within parentheses — Emil Kampp <ekampp@...>
Hi.
perl's regexes have a recursive feature, which can solve your problem.
On Fri, Mar 25, 2011 at 2:58 AM, 7stud -- <bbxx789_05ss@yahoo.com> wrote:
[#380338] mkmf have_func usage — Iain Barnett <iainspeed@...>
Hi,
[#380341] break from select — Venkat Surabhi <surabhiamar.mech@...>
Hi,
Hi Venkat,
[#380353] Pid of the other end of a popen3? — Alex Young <alex@...>
Is it possible to get the pid of a process at the other end of an IO
[#380359] How to get the value of a singleton class? — Joey Zhou <yimutang@...>
Here is a sample code:
On Fri, Mar 25, 2011 at 1:23 PM, Joey Zhou <yimutang@gmail.com> wrote:
Robert Dober wrote in post #989182:
On Sat, Mar 26, 2011 at 12:31 AM, 7stud -- <bbxx789_05ss@yahoo.com> wrote:
On Sat, Mar 26, 2011 at 4:44 AM, Robert Dober <robert.dober@gmail.com> wrot=
On Sat, Mar 26, 2011 at 1:15 PM, Aaron D. Gifford <astounding@gmail.com> wrote:
[#380361] Do I need to upgrade to the latest version of Ruby — Fily Salas <fs_tigre@...>
Hi,
[#380364] NArray install fail with DevKit on Win — Chris Lervag <chris.lervag@...>
Hi All
> Attempting to install narray however failed (pasting the command prompt
[#380368] Dynamic classes — PsiPro <arjesins@...>
So I am working on some metaprograming and have some questions about
Vicente Bosch Campos wrote in post #989219:
I understand how it works at the moment. Still if you are doing =
On 26.03.2011 15:38, Vicente Bosch Campos wrote:
[#380401] How to "find" new lines — Damir Sigur <damir@...>
I am new to ruby, and was trying to make a small code which would check
[#380423] Re: gem list --remote --details gives "ERROR: While executing gem ... (NoMethodError)" — Markus Fischer <markus@...>
I probably should have added the version of gem ...
Hi,
I guess we should bring this conversation back around to the heart of the
[#380429] critique please — Charles Oppenheimer <choppen5@...>
Folks, the first ruby I've written that I actually needed (I shortened
[#380430] Clearer errors in 1.9's minitest — spiralofhope <spiralofhope_rubyml@...>
Hello!
[#380451] trying to require nokogiri — Ted Flethuseo <flethuseo@...>
Hi everyone,
[#380492] amalgalite 1.1.1 Released — Jeremy Hinegardner <jeremy@...>
[#380500] win32ole outlook run macro — zak <u.gotzes@...>
Hi,
[#380511] with block in ruby — Mario Ruiz <tcblues@...>
is there any way in ruby to do something like:
[#380520] A two-minute Ruby flavoured survey to help shape a new service. — "Mic P." <micpringle@...>
Please take a few seconds to fill out the following survey ...
On Tue, Mar 29, 2011 at 03:46:17AM +0900, Mic P. wrote:
well this is a forum so why not have the questions entered here since
Stu wrote in post #989698:
On Tue, Mar 29, 2011 at 9:34 AM, Mic P. <micpringle@gmail.com> wrote:
[#380536] YARV bytecode switch loop — Carter Cheng <cartercheng@...>
Hello,
[#380558] Why can a floating point number be used as an array index? — Jeff Dik <s450r1@...>
Why can a floating point number be used as an array index? Anybody
On Wed, Mar 30, 2011 at 03:35:21AM +0900, Jeff Dik wrote:
It may do integer truncation, but we need to think of what an Array
On Tue, Mar 29, 2011 at 10:38 PM, <me@kmwhite.net> wrote:
[#380573] Encoding issues when parsing HTML in 1.9 — ctdev <ctdev421@...>
Hi, I'm having some encoding problems while parsing HTML with Nokogiri
[#380575] Getting an Error with local variable — "Cheryl M." <cherylminor85@...>
class String
now im getting the error:
> multiple values for the block paramater(0 for 1)
On Wed, Mar 30, 2011 at 5:00 AM, Haruka YAGNI <hyagni@gmail.com> wrote:
[#380586] functional paradigm taking over — Robert Klemme <shortcutter@...>
Hi,
Although a Ruby fan, I must say I'm spending all my time looking at
On Wed, Mar 30, 2011 at 06:38:19PM +0900, Mike Stephens wrote:
On Wed, Mar 30, 2011 at 4:49 PM, Chad Perrin <code@apotheon.net> wrote:
On Thu, Mar 31, 2011 at 12:19:25AM +0900, Robert Klemme wrote:
On Thu, Mar 31, 2011 at 1:24 AM, Chad Perrin <code@apotheon.net> wrote:
On Thu, Mar 31, 2011 at 12:30:07PM +0900, Phillip Gawlowski wrote:
Chad Perrin wrote in post #990130:
On Thu, Mar 31, 2011 at 5:08 AM, Mike Stephens <rubfor@recitel.net> wrote:
Josh Cheek wrote in post #990579:
On Sun, Apr 3, 2011 at 7:29 AM, Mike Stephens <rubfor@recitel.net> wrote:
On 03.04.2011 09:48, Phillip Gawlowski wrote:
On Sun, Apr 3, 2011 at 1:00 PM, Robert Klemme
*Let's not pay too much attention to the code snobs on here. I've yet to
On Sun, Apr 3, 2011 at 2:17 PM, Everett L Williams II
Phillip Gawlowski wrote in post #990664:
On Sun, Apr 3, 2011 at 1:44 PM, Mike Stephens <rubfor@recitel.net> wrote:
On Sun, Apr 3, 2011 at 1:18 PM, Phillip Gawlowski
On Sun, Apr 03, 2011 at 10:13:29PM +0900, Martin DeMello wrote:
On Mon, Apr 4, 2011 at 1:30 AM, Chad Perrin <code@apotheon.net> wrote:
This thread has been touching upon three issues - functional languages
On Mon, Apr 4, 2011 at 11:05 AM, Mike Stephens <rubfor@recitel.net> wrote:
*Mike,*
On Mon, Apr 04, 2011 at 08:31:08PM +0900, Everett L Williams II wrote:
Chad Perrin wrote:
On Fri, Apr 08, 2011 at 12:51:35AM +0900, Everett L Williams II wrote:
On Thu, Apr 7, 2011 at 10:51 AM, Everett L Williams II
> But, as I have said, I have seen some absolutely
> I've seen some absolutely amazing things done with befunge! Networked
On Mon, Apr 04, 2011 at 09:29:13PM +0900, Johnny Morrice wrote:
> I have not seen "befunge" as a euphemism for brainfuck before. Is
On Tue, Apr 05, 2011 at 12:42:20AM +0900, Johnny Morrice wrote:
On Mon, Apr 4, 2011 at 8:07 PM, Chad Perrin <code@apotheon.net> wrote:
Aren't all programs languages as the program describes a particular problem
On Tue, Apr 12, 2011 at 8:18 AM, Kevin <darkintent@gmail.com> wrote:
No I'm not confusing them, all programs provide the vocabulary (Means of
On Tue, Apr 12, 2011 at 04:47:17PM +0900, Kevin wrote:
Why don't you actually go take a look at the definition of language,
On Wed, Apr 13, 2011 at 12:53 AM, Kevin <darkintent@gmail.com> wrote:
That is all well and good. But does that fact make the definitions I am
On Wed, Apr 13, 2011 at 8:38 AM, Kevin <darkintent@gmail.com> wrote:
@Phillip: Yes they are applicable, jargon does not supersede the rest of the
On Wed, Apr 13, 2011 at 4:59 PM, Kevin <darkintent@gmail.com> wrote:
No a jargon or slang does not put aside the language it exists inside of.
On Wed, Apr 13, 2011 at 03:38:23PM +0900, Kevin wrote:
Ah yes, the old "Oh look specific context" therefore stop reading
What we've seen here is some people - but not all - have a fixed frame
On Tue, Apr 12, 2011 at 09:31:34PM +0900, Mike Stephens wrote:
[#380607] Net::HTTP.get_response - No Response — Jeff Bowen <ja_bowen@...>
This was working but stopped. I've made no upgrades to my system.
[#380623] string/array slices — Patrick Tyler <patrick.a.tyler@...>
Hello,
Patrick Tyler wrote in post #990031:
I might add, that *feature* is clearly a mistake in the ruby language
[#380642] numerical ruby? — serialhex <serialhex@...>
does anybody know of any good, high-speed numerical ruby libraries, kind of
ruby and 'high speed' are sort of antithetical terms.
[#380643] How can I generate new variables? — "Kyle X." <haebooty@...>
Hello, this is not so much a sketchup question as a Ruby one that I
Kyle X. wrote in post #990090:
[#380648] whats the best gui you can get for ruby — Austin Vetter Austin <stnvttr@...>
I do not like shoes i have all ready tried it .
[#380656] Automating simple web forms — Eric Christopherson <echristopherson@...>
What would be the best headless web testing/automation library to use,
Excerpts from Eric Christopherson's message of Thu Mar 31 04:06:32 +0200 2011:
[#380665] Troubles with autotest and rspec2 — Tony Arcieri <tony.arcieri@...>
I'm trying to use autotest in conjunction with RSpec 2. Almost everything
[#380684] Dereferencing instance variables vs local variables/methods — "Josep M. Bach" <josep.m.bach@...>
Hello,
Josep M. Bach wrote in post #990178:
[#380689] how to refine the code to avoid using fork on windows? — Ethan Huo <firewall888@...>
here is the thing, i need to move a previous ruby program from Linux to
On 3/31/2011 09:18, Ethan Huo wrote:
Jeremy Bopp wrote in post #990214:
On 31 March 2011 16:49, Ethan Huo <firewall888@hotmail.com> wrote:
[#380710] Simple array.each do |x| question — "Kyle X." <haebooty@...>
Hello, I am new to ruby and cannot understand why this code is not
Hi
Roger Braun wrote in post #990270:
attribute is a method, so try z.attribut('id')
Thank you all for your responses. I have a second part question. I
[#380716] Announce: ruby-perl gem released — Andrea Campi <andrea.campi@...>
Hi all,
[ANN] posix-spawn 0.3.0 -- first public release (codename, "tigers blood")
<https://github.com/rtomayko/posix-spawn>
$ gem install posix-spawn
tmm1 and I are pleased to announce the initial release of posix-spawn,
a small extension library that implements a subset of Ruby 1.9's new
Process::spawn [1] in a way that takes advantage of fast process
spawning (IEEE Std 1003.1 posix_spawn(2) systems interfaces [2]) where
available and runs on all MRI Rubys >= 1.8.7.
- Fast, constant time process spawning across a variety of platforms
- A largish compatible subset of Ruby 1.9's Process::spawn interface
as well as 1.9 enhancements to Kernel#system, Kernel#`, etc. under
Ruby >= 1.8.7.
- High level and hopefully portable POSIX::Spawn::Child class for
quick and dirty (but correct!) non-streaming IPC scenarios.
See the README for usage and graphs of benchmark results on Linux and
Darwin, or run them yourself:
$ uname -a
Linux aux1 2.6.26-2-xen-amd64 #1 SMP Thu Aug 20 2009 x86_64 GNU/Linux
$ ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
$ gem install posix-spawn
$ posix-spawn-benchmark
benchmarking fork/exec vs. posix_spawn over 1000 runs at 100M res
user system total real
fspawn (fork/exec): 0.080000 14.920000 38.040000 ( 39.029493)
pspawn (posix_spawn): 0.040000 0.010000 0.560000 ( 0.939422)
Work on the library started when tmm1 found, through the use of his
brilliant rbtrace [3] program, a number of slow points in the GitHub
codebase where fork/exec is used heavily to spawn processes. In some
cases, a single fork() system call was using >30ms while in others
using only ~1ms. Our testsuite fork()'d especially slowly. Hmmm.
On Linux, fork(2) slows down as the parent process uses more memory
due to the need to copy page tables for COW. In many common uses of
fork(), where it is followed by one of the exec family of functions to
spawn child processes (Kernel#system, IO::popen, Process::spawn,
etc.), this overhead can be removed by using posix_spawn() or vfork()
instead.
After implementing a simple fast process spawner extension using
posix_spawn() and gaining some familiarity with the posix_spawn family
of C functions, we noticed that it could potentially be used to
implement a large subset of features provided by Ruby 1.9's
Process::spawn.
We love Process::spawn.
We love Process::spawn so much in fact that over the past few months,
even before surfacing any of the issues with Linux fork() slowness, an
effort had been underway at GitHub to move two key libraries (Grit,
the Ruby interface to Git, and Albino, a Ruby wrapper around the
excellent Pygments syntax highlighter) to use Process::spawn
compatible method invocations (implemented with fork/exec under
Ruby 1.8.7) so that we could take advantage of Process::spawn under
Ruby 1.9.
Once we had a basic Process::spawn interface implemented on top of
posix_spawn(), we were able to take some higher level utility classes
from this work on the Grit and Albino projects and include them in
posix-spawn as a nice POSIX::Spawn::Child class. It is:
- Simple, requiring little code for simple stream input and capture
- Internally non-blocking (uses select(2)), so it handles all pipe
hang cases due to exceeding PIPE_BUF limits on one or more streams
- Potentially portable, due to the abstraction over lower-level
process and stream management APIs
We hope to now remove large bodies of Ruby 1.8.7 spawn emulation code
and replace it with posix-spawn.
As the project continued to take shape, we noticed how much more
feature-rich the Kernel#system, IO.popen, etc. methods were in Ruby
1.9. Having been built on the foundation of the new Process::spawn,
they allow for setting up the child's environment, redirecting
arbitrary fds, and all the other great stuff in Process::spawn. We
were able to write Ruby 1.8.7 compatible subset implementations of
those as well and put them under the POSIX::Spawn module.
Now, about that subset. As of this initial release, we were able to
implement the following arguments and options to spawn:
> spawn([env,] command... [,options]) => pid
>
> env: hash
> name => val : set the environment variable
> name => nil : unset the environment variable
> command...:
> command : /bin/sh -c 'command'
> cmdname, arg1, ... : exec argv (no shell)
> [cmdname, argv0], arg1, ... : exec argv (no shell)
> options: hash
> clearing environment variables:
> :unsetenv_others => true : clear environment vars not in env
> :unsetenv_others => false : don't clear (default)
> redirection:
> key:
> FD : single fd in child process
> [FD, FD, ...] : multiple fd in child process
> value:
> FD : redirect to fd in parent process
> :close : close the fd in child process
> string : redir w/ open(string, "r" or "w")
> [string] : redir w/ open(string, File::RDONLY)
> [string, open_mode] : redir w/ open(string, open_mode, 0644)
> [string, open_mode, perm] : redir w/ open(string, open_mode, perm)
> FD is one of follows
> :in : the fd 0 which is the standard input
> :out : the fd 1 which is the standard output
> :err : the fd 2 which is the standard error
> integer : the fd of specified the integer
> io : the fd specified as io.fileno
> current directory:
> :chdir => str
We have NOT yet implemented these options:
> options: hash
> process group:
> :pgroup => true or 0 : make a new process group
> :pgroup => pgid : join to specified process group
> :pgroup => nil : don't change the process group (default)
> resource limit: resourcename is core, cpu, data, etc.
> :rlimit_resourcename => limit
> :rlimit_resourcename => [cur_limit, max_limit]
> umask:
> :umask => int
> redirection:
> value:
> [:child, FD] : redirect to the redirected fd
> file descriptor inheritance: close non-redir non-standard fds > 3
> :close_others => false : inherit fds (default for system and exec)
> :close_others => true : no inherit (default for spawn and popen)
We have ideas for some of these (:pgroup, :umask, [:child, FD]) and
may implement them in future releases; others, like :rlimit, are not
supported by posix_spawn() and have no clear implementations strategy
outside of falling back to fork/exec when detected.
[0] https://github.com/rtomayko/posix-spawn
[1] http://www.ruby-doc.org/core-1.9/classes/Process.html#M002230
[2] http://pubs.opengroup.org/onlinepubs/009695399/functions/posix_spawn.html
[3] https://github.com/tmm1/rbtrace
Ryan Tomayko
Aman Gupta