[#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,
Re: The best practices to learn Ruby
On 3/20/11 5:27 PM, Fily Salas wrote: > > Hi, > > > > I'm currently trying to learn Ruby by watching tutorial reading books an > > articles on the internet but I was wondering what would be the best way > > to practice it if you dont use Ruby on Rails or dont have any projects > > to work on > > > > 1-Where and how can I practice Ruby? There are lots of ways to practice, and a lot of places to do it. It really depends on what your interests are and what sort of things you want to build. I would say though, that tutorials, books, and articles should be used as learning aides, not as a way to learn. If you study programming concepts in isolation of active practice on real things you care about, and don't actually build stuff, you may learn the concepts but not get anything out of your effort. Once you have an idea for a project to work on, your ability to make the most out of tutorials and books will go way up, since you can automatically filter the information and seek out the stuff most relevant to you, or at least come up with good questions so that others can help point you in the right direction. > > 2-What kind of project can you do to get better on Ruby? Any project you work on will improve your programming experience if it's something that is useful and interesting to you. What kind of work do you do day to day? Can you think of a way that some software could improve your daily life? If your hands are tied at work, what are your hobbies? Is there a way you can write programs to support those activities? If you're just looking to program for the joy of learning, is there any kinds of software out there that really excite you and that you'd like to learn more about? You might learn a lot about those programs if you attempt to build something similar yourself, but only focus on the features you really need. Or, you could build a tool to compliment some existing software you use in some way, something that takes something you like and makes it even better. If none of those things spark any ideas, you could consider working on some puzzles. You could try any of the following: * http://projecteuler.net/ * http://rubyquiz.com/ * http://ipsc.ksp.sk/ * http://puzzlenode.com (Just launched, this is a project of mine) I love working on puzzles and programming challenges, but I'll confess that I don't think they're as valuable as learning tools as people tend to make them seem. You will learn a ton from a puzzle, but not necessarily about specific skills that you can use to build tools that make your life better. That puts them in the same category as other sorts of entertainment/personal development for me, such as meditation practice, exercise, and playing board games. Just because something is fun and good for you doesn't mean it's going to make you good at something that matters to you. Of course, if you're new to Ruby, you will need to do a certain amount of practice with the fundamentals. I think that working on real code is the best way to do that, but it really helps to do some drills too. For that, something like Ruby Koans or Hackety Hack are really going to give you some good base knowledge to work from: * http://rubykoans.com/ * http://hackety-hack.com/ Finally, I should mention that I run a school for intermediate Ruby developers which is very supportive of helping people learn. You may not be at the level yet where you could make the best use of our resources, but there are lots of problems and exercises listed on our website at http://university.rubymendicant.com that can at least help you benchmark your own skillset. We also have lots of nice people in the #rmu channel on IRC, and do occasional public events for helping beginners, which might be worthwhile for you. > > 3-How did you learn Ruby? At first, I was learning Perl from a very good mentor (James Edward Gray II). He and I both got into Ruby at the same time, and he was a much more experienced programmer than I was at the time, so I leaned on him a lot and asked him a lot of questions. This was back in 2004, and I'd say that a huge amount of my Ruby learning was thanks to this mailing list as well. But mostly, I wrote a lot of code on projects that I cared about, and talked to people / read things to try to improve my craft. As I learned more, I tried to teach more, because that's a very good way to learn. Try to write even the most basic tutorial or advice for someone else and you'll discover lots of holes in your own knowledge that need filling, > > 4-What you use Ruby for? I mostly program exclusively in Ruby these days, only because I don't have a particularly need for using other languages. When I was doing active consulting work, I used Ruby to do backend work for a lot of complex business applications, especially reporting related stuff. I'm the original author of the now-outdated Ruby Reports library and the not-outdated PDF generation library Prawn. These days, I use Ruby for supporting the infrastructure of Ruby Mendicant University, but I confess that most of our actual coding work is done by our technical co-founder Jordan Byron. So my programming has become more about building things like games and simulators for the students at RMU to play with, and of course, whatever scripting makes my day to day life easier. Ruby can be used for pretty much anything, and as a programmer, I try to write code whenever a solution to my problem doesn't exist or isn't to my liking. That puts me all over the map in terms of the code I write. -greg NOTE: I'm not as active on ruby-talk as I once was, but you can follow @seacreature on twitter to keep up with my latest projects and updates if you'd like. I'm going to try to check out posts here once or twice a week and get back into the swing of things, but in case I disappear again, that's where you'll find me.