[#395238] rubygem: ispunity (unite all your internet connections) — Arun Tomar <tomar.arun@...>
Dear friends,
Hi sir,
Hi!
[#395241] assert_equal ([:r, :u, :b, :e, :q, :u, :e] __), [:b, :q] — David Gustafson <daveg@...>
This is part of a online ruby quiz. Just doing it for my own
[#395250] Overwriting one Ruby array or arrays with another — Craig Law <lists@...>
Hi
[#395258] array of strings - finding letter combinations — "Sebastjan H." <lists@...>
Hi All,
for some reason the mailing list server rejected this post, so i'll
Thank you all for your kind help. I'll try to complete this task and
Sebastjan H. wrote in post #1059386:
Hi,
Hi Jan,
Sebastjan H. wrote in post #1059226:
Ok, thx. Just so I understand correctly, these two lines are just
[#395262] rb_errinfo() "captures" more than exceptions, but also Interrupt and SystemExit — Iñaki Baz Castillo <ibc@...>
Hi, my Ruby C extension use rb_protect() to rescue Ruby errors in the
[#395279] Psych dumping in binary — Jim Hranicky <jfh@...>
I've got an app that I use ascii-8bit encoding as the default to
[#395290] How can i load image and display it using ruby? — gmspro gmspro <lists@...>
Which library/api is used to load and display image using ruby?
[#395306] rspec-2.10 is released! — David Chelimsky <dchelimsky@...>
rspec-2.10 is released!
[#395311] install ruby 1.9.3 on Mac — Amidou NDIAYE <lists@...>
I would like to upgrade my actual ruby version 1.8.7 installed on my Mac
[#395335] proper way to create truly new dup/cloned object? — ruby gem <lists@...>
a = "pass"
[#395336] break down of differences between interpreters? — ruby gem <lists@...>
All I can ever find is performance comparisons, but it must be more than
On Sun, May 06, 2012 at 08:13:26PM +0900, ruby gem wrote:
[#395344] Ruby scripting? — "cristian d." <lists@...>
Hi my name is Christian,
[#395352] mkmf: how to include .c and .h files within a subdirectory? — Iñaki Baz Castillo <ibc@...>
Hi, having the following file tree under my ext/ directory:
[#395357] Why Enumerator#next does not return more than one value? — Földes László <lists@...>
If I have an Enumerator which yields elements of a mathematical series
On Mon, May 7, 2012 at 3:10 PM, Fdes L疽zl<lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1059863:
Florian Gilcher wrote in post #1059865:
[#395373] How to use Data_Wrap_Struct to assign the DATA VALUE to an exsiting Ruby object? — Iñaki Baz Castillo <ibc@...>
Hi, my code receives an arbitrary klass name (provided by the user)
I単aki Baz Castillo <ibc@aliax.net> wrote:
2012/5/9 Eric Wong <normalperson@yhbt.net>:
[#395402] How to make a given klass to include a module — Iñaki Baz Castillo <ibc@...>
Hi, simple code:
Am 09.05.2012 13:36, schrieb Iテアaki Baz Castillo:
2012/5/9 Quintus <quintus@quintilianus.eu>:
On Wed, May 9, 2012 at 1:52 PM, Iki Baz Castillo <ibc@aliax.net> wrote:
[#395413] Hooking into the VM's shutdown process — "Darryl L. Pierce" <mcpierce@...>
I've got a native extension that needs to run in a thread separate
Am 09.05.2012 17:44, schrieb Darryl L. Pierce:
[#395423] get pixel color of a screen — Ivan Vilches Basaul <ivan_vilches@...>
[#395429] passing via instance variable or regular () — sam jam <lists@...>
def first
[#395435] How to create a sinatra app that can create ebooks on heroku? — Kenley Tan <kenleytan@...>
Hi guys,
On Thu, May 10, 2012 at 12:54 AM, Kenley Tan <kenleytan@yahoo.com> wrote:
Hi Hassan,
[#395449] syntax error, unexpected ',' , expecting ')' — David Acosta <lists@...>
Hello people, i am new at ruby and ror developing and i need your help
[#395463] I'm looking for a Metaprogramming Project — Phil Stone <lists@...>
Hello,
Thanks for all the feedback!
[#395464] Why do you think of NilClass#to_proc? — Intransition <transfire@...>
I have two minds about using a NilClass#to_proc
[#395478] Beginner's questions — Manfredi Pivetta <lists@...>
Hello everyone.
[#395492] Is it safe to use rb_hash_delete() without having the GVL? — Iñaki Baz Castillo <ibc@...>
Hi, my code is a C event loop that runs without the GVL (so other Ruby
Hi,
2012/5/14 SASADA Koichi <ko1@atdot.net>:
[#395506] Accessing child variables — Sm sm <lists@...>
#!/usr/bin/env ruby-1.9.2
[#395528] net-ssh: Trouble forwarding local ports to a remote server — Maxwell Pray <lists@...>
Here's the plan: I need to forward a Samba connection on my machine to a
[#395536] Visibility of ruby applications — Kacper Borodziuk <lists@...>
I have a question. is there a ruby command or set of commands that can
[#395548] A million reasons why Encoding was a mistake — Marc Heiler <lists@...>
Newcomer wants to try Ruby.
I will add that the OP is not entirely alone in his opinion.
On Wed, May 16, 2012 at 9:02 AM, Brian Candler <lists@ruby-forum.com> wrote:
[#395549] Option Parser with an optional flag/switch for last argument — Neubyr Neubyr <lists@...>
I am using OptionParser to parse command-line options. I would like to
[#395551] How to ensure that a block runs entirely after other threads? (Thread.exclusive does not "work") — Iñaki Baz Castillo <ibc@...>
Hi, I expected that in the following example code, thread t1 would not
On Tue, May 15, 2012 at 5:36 PM, Iki Baz Castillo <ibc@aliax.net> wrote:
On 16 May 2012 17:27, Robert Klemme <shortcutter@googlemail.com> wrote:
[#395565] QtRuby: How to edit data in a TableModel/TableView? — Cristhian Boujon <lists@...>
Hello all,
[#395575] GUI with ruby on windows — David Acosta <lists@...>
hello friends, i am a begginer and i have a litlle question, how can i
hi,
[#395588] problem installing TkRuby on ubuntu 12.04 — Bharadwaj Srigiriraju <lists@...>
Might seem a little long, but it's actually pretty small...
From: Bharadwaj Srigiriraju <lists@ruby-forum.com>
Hidetoshi NAGAI wrote in post #1061107:
[#395604] what is going wrong here? — roob noob <lists@...>
Notice the initialization of both classes in each of the examples, if
First let me thank you for all of the help you have been :). It is much
On Thu, May 17, 2012 at 6:38 PM, roob noob <lists@ruby-forum.com> wrote:
Hi,
How do I iterate through a Class so that I can perform some action on each object? For example...
[#395611] Which exception classes does "rescue" trap? — Iñaki Baz Castillo <ibc@...>
Hi, using Ruby 1.9 I've realized that "rescue" traps more than
[#395646] rb_gc_register_address() or rb_gc_mark()? — Iñaki Baz Castillo <ibc@...>
Hi, I've bad experiences with rb_gc_register_address(), it does never
2012/5/17 Iñaki Baz Castillo <ibc@aliax.net>:
2012/5/17 I単aki Baz Castillo <ibc@aliax.net>:
2012/5/17 Iñaki Baz Castillo <ibc@aliax.net>:
2012/5/17 I単aki Baz Castillo <ibc@aliax.net>:
On May 17, 2012, at 12:24, Iki Baz Castillo wrote:
i create an hash from the C-side, mark them with rb_global_variable and
[#395664] why is else without rescue useless with statement modifiers? — roob noob <lists@...>
def sane?
[#395686] reading from and writing to a Unicode encoded file — "Sebastjan H." <lists@...>
Hi,
Hello,
Regis d'Aubarede wrote in post #1061272:
Sebastjan H. wrote in post #1061276:
Regis d'Aubarede wrote in post #1061277:
Hi,
Sebastjan H. wrote in post #1061483:
Hi Sebastjan,
ashbb shoeser wrote in post #1061501:
Hi Sebastjan,
ashbb shoeser wrote in post #1061510:
Hi Sebastjan,
ashbb shoeser wrote in post #1061553:
Hi Sebastjan,
[#395688] Methods as arguments? — Robinson Risquez <lists@...>
Hi, I was experimenting with the arguments of the methods and I have a
there are two ways:
Hans Mackowiak wrote in post #1061260:
You would have to implement def aaa a little differently.
[#395706] Ruby- puts with accents — "Mariano José G." <lists@...>
Hello Guys!,
[#395726] Rubygems problem on ubuntu 12 (server) — "cristian d." <lists@...>
Hi!
[#395733] Having trouble with instructions in The Pragmatic Programmers Learn to Program — "kerri l." <lists@...>
I have been reading the book (Pragmatic Programmers) and I'm having
[#395740] ? Ruby through CGI and Rails — Shaun Lloyd <list@...>
Hi everybody,
I would not consider CGI obsolete. Unless you are referring to ruby's
Shaun Lloyd wrote in post #1061455:
On 22/05/12 03:37, Brian Candler wrote:
Shaun Lloyd wrote in post #1061602:
On 23/05/12 19:36, Brian Candler wrote:
Shaun Lloyd wrote in post #1061834:
[#395744] ruby in a box — Martin DeMello <martindemello@...>
I've been thinking about the minimal feature set a beginner-friendly
[#395752] Why UBF() is called even if Ruby traps signals ?? — Iñaki Baz Castillo <ibc@...>
Hi, according to the doc of rb_thread_blocking_region() (or
2012/5/21 I単aki Baz Castillo <ibc@aliax.net>:
I単aki Baz Castillo <ibc@aliax.net> wrote:
2012/5/22 Eric Wong <normalperson@yhbt.net>:
[#395773] spawn a process and keep the output, but stdout -> $stdout — Roger Pack <lists@...>
Hello all.
[#395787] Changing self class from inside a method?? — David Madison <lists@...>
Let's start off with the assumption I want a method that allows an
[#395804] Disginguishing object types — Doug Jolley <lists@...>
Frequently hash values are a mixture of object types. In the case at
[#395806] Opinion on String#camelcase — Intransition <transfire@...>
Recently I adjusted Ruby Facets String#camelcase method to leave the first
[#395841] Memory-efficient set of Fixnums — George Dupre <lists@...>
Hi,
Thanks, but Hash has an even bigger memory imprint, so that won't do
Thank you for your help,
> I have to:
[#395842] How to replace a letter with a corresponding number — Rich McMullen <lists@...>
I am working through the Ruby Quiz website and I am already stuck on
[#395883] looking for a ruby idiom : r=foo; return r if r — botp <botpena@...>
Hi All,
botp wrote in post #1061908:
On Thu, May 24, 2012 at 7:30 AM, Llelan D. <lists@ruby-forum.com> wrote:
On 24 May 2012 19:30, Robert Klemme <shortcutter@googlemail.com> wrote:
thank you all, matt/llelan/robert.
On Thu, May 24, 2012 at 4:50 PM, botp <botpena@gmail.com> wrote:
[#395901] Don't override it - Use it — Doug Jolley <lists@...>
I am learning Ruby. It is my understanding that when we "override" a
Hi,
> And it *is* actually called overriding:
Doug Jolley wrote in post #1062056:
[#395902] rb_protect() with more than a single parameters — Iñaki Baz Castillo <ibc@...>
Hi, rb_protect() is declared as:
[#395904] Could Ruby GC my VALUE in while acquiring the GVL? — Iñaki Baz Castillo <ibc@...>
Hi, I'm in C land without GVL and give value to a static VALUE
[#395914] Modify an attribute in a method? — Robinson Risquez <lists@...>
Hi all, I write the following problem to see if you can clarify me:
Hello,
[#395929] accessing data in a ruby array — "Maksim D." <lists@...>
I have this array. I want to access the stuff in the hashes.
[#395960] SimpleCov error on Ruby 1.9.3 (but OK on 1.9.2) — Antoine Proulx <proulx.antoine@...>
Hi,
[#395961] looking for a ruby equivalent of python's ply — botp <botpena@...>
Hi all, subject says all. am looking a ruby equivalent of python's ply
[#395966] Am I justified to use a global variable if it must be used in all scopes? — Phil Stone <lists@...>
Hello,
On Sun, May 27, 2012 at 2:33 PM, Phil Stone <lists@ruby-forum.com> wrote:
[#395979] extconf.rg and #ifdef — Iñaki Baz Castillo <ibc@...>
Hi, depending whether my Ruby C extension is being compiled on *nix or
On May 28, 2012, at 03:57, Iki Baz Castillo wrote:
[#395991] Where is tcpserver.c Included By socket.c? — James Harrison <jam@...>
Hey folks,
[#396000] faster CSV writing — steven gre <lists@...>
trying to take scraped info business name address and phone# i can get
On Mon, May 28, 2012 at 9:21 PM, steven gre <lists@ruby-forum.com> wrote:
[#396010] does this leak more than the size of the string via timing side channels — rooby shoez <lists@...>
string1 = "string"
Yes but I imagine that Ruby returns false on the first mismatch. So
On May 29, 2012 7:28 AM, "rooby shoez" <lists@ruby-forum.com> wrote:
Ok, now I get it,
yuck the first example has issues I just realized, how about this way:
[#396038] Is it possible to avoid longjmp in exceptions, Thread#kill, exit(), signals? — Iñaki Baz Castillo <ibc@...>
Hi, my Ruby C extension runs a C loop (libuv) without GVL. At some
Please forget this for now. I've realized that my call to rb_protect()
Iñaki Baz Castillo писал 29.05.2012 22:37:
[#396051] Problem with duplicated values in writing to an array — Thiel Chang <schang@...>
Hi,
[#396061] Newbie question: command line to execute a method from .rb file — "n/a n/a" <lists@...>
Hi there -
[#396071] The last question about rb_gc_register_address(): a case in which in works with dynamic memory — Iñaki Baz Castillo <ibc@...>
Hi, what I understand (after some useful threads in this mailist)
2012/5/30 I単aki Baz Castillo <ibc@aliax.net>:
Re: From Python to Ruby
On Sat, May 05, 2012 at 01:25:24AM +0900, Massimiliano Tomassoli wrote:
> Hi everyone!
>
> I've been studying Python for a month or two but I didn't like it. I did
> some interesting things with it, though: I added some form of currying,
> pipelining and, eventually, code blocks.
> The reaction of the Python community wasn't very positive, to put it
> mildly, and I was accused of trying to ruin Python. Finally, someone
> told me to go to my OMG-RUBYCODEBLOCKS-FRIENDS and I understood what was
> happening.
> I would never have expected such a reaction, really.
>
> I decided to follow the kindly-put invitation and here I am!
> I've read a few articles about Ruby and hey... I like it pretty much.
> It reminds me of Perl (which I learned before Python) but is much
> cleaner. It is much more flexible than Python and you can even build
> DSLs!
>
> Python's community hate DSLs, by the way.
> Python is very high-level and yet, while using it, I began to miss many
> of the C++ capabilities that let you bend its syntax and do incredible
> things like those in the Boost libraries.
> I think that dynamic languages can do much more without all that noise
> (C++ templates are very hard to maintain). So, it's a pity when a
> language such as Python lacks many features just for the fear that they
> are misused or abused.
>
> Anyway, a friend of mine suggested that I pick up "The well-grounded
> Rubyist" and then "Metaprogramming Ruby".
> What do you think of them?
I have not read The Well-Grounded Rubyist, so I can't really comment on
it. I'll comment on Metaprogramming Ruby along with others, with URIs
for articles where I've reviewed them (to varying levels of detail)
before this.
The following five books were very briefly reviewed here:
http://blogs.techrepublic.com.com/programming-and-development/?p=3886
* Everyday Scripting With Ruby is an excellent introduction to the
language for people with an at least passing familiarity with
programming.
* Metaprogramming Ruby is a fantastic introduction to metaprogramming
with Ruby, but you might want to have a more basic book about Ruby on
hand before tackling this book. Unlike many books organized the way
this book was organized (see Ruby Best Practices), this thing is
eminently suitable to just picking it up and reading it straight
through from beginning to end. It also stands up to re-reading and use
as a reference when grasping for ideas on how to do something.
* Programming Ruby is pretty comprehensive. It is a bit dry by the
standards of most Ruby books, but pretty engaging by the standards of
most other languages' popular books, and the wealth of knowledge buried
in it is invaluable. It is definitely not for people new to
programming.
* Ruby Best Practices is a great book for expanding your knowledge of
Ruby some time after you've got a little bit of Ruby time under your
belt, and it's great for jumping around in it to read the parts that
happen to interest you Right Now. It conveys some real sense of how
real, talented Rubyists write code, as a means of imparting an
appreciation for good Ruby code on the reader.
* The Ruby Way is a cookbook that contains so many examples of how to
accomplish basic tasks that one might be able to build a career as a
professional Rubyist on just reproducing the snippets contained in it
and tying them together into programs (maybe). The best thing about
it, though, is the way it uses these recipes to illustrate idiomatic
Ruby coding styles.
Five other books were also reviewed there, though I tried to pick out a
selection that I thought would be most relevant to the sense I have of
what you want/need based on what you've said here.
The following two books were reviewed here:
http://blogstrapping.com/?page=2011.194.11.46.40
* Eloquent Ruby is a great book for both people new to Ruby with at least
a passing familiarity with programming *and* for people who have been
writing code in Ruby for a while and want to make sure they haven't
missed anything important.
* The Book of Ruby is a terrible book that tries to teach the reader bad
habits, includes code formatted in such a way that it is fairly
difficult to read, and explains things in a kind of haphazard manner
prone to digressions on irrelevancy and generally fails to do a very
good job of teaching people how to program well in Ruby.
I hope that helps.
--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]