[#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,
Hi,
Hi Jan,
Sebastjan H. wrote in post #1059226:
Ok, thx. Just so I understand correctly, these two lines are just
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:
[#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=21
[#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, F=F6ldes L=E1szl=F3 <lists@ruby-forum.com> =
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, I=F1aki 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,=0A=0AI'm not new to ruby or Sinatra=A0but I have no idea how to ge=
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.
Hi,
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, I=F1aki 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,
hi David,
[#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
Hi,
How do I iterate through a Class so that I can perform some action on each object? For example...
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:
[#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=C3=B1aki Baz Castillo <ibc@aliax.net>:
2012/5/17 I=C3=B1aki Baz Castillo <ibc@aliax.net>:
2012/5/17 I=C3=B1aki Baz Castillo <ibc@aliax.net>:
2012/5/17 I=C3=B1aki Baz Castillo <ibc@aliax.net>:
On May 17, 2012, at 12:24, I=F1aki 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=C3=B1aki 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:
[#395902] rb_protect() with more than a single parameters — Iñaki Baz Castillo <ibc@...>
Hi, rb_protect() is declared as:
you could use something like this:
[#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
[#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"
yuck the first example has issues I just realized, how about this way:
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,
[#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=C3=B1aki Baz Castillo <ibc@aliax.net>:
Re: break down of differences between interpreters?
On Sat, May 19, 2012 at 09:44:56PM +0900, Charles Oliver Nutter wrote: > On Sun, May 6, 2012 at 11:20 AM, Chad Perrin <code@apotheon.net> wrote: > > * Licensing concerns may come into play. ubinius, MIR/YARV, and > > surprisingly) IronRuby are all distributed under more permissive > > icenses than JRuby these days. his might turn out to be important > > or some deployment scenarios. > > This is false. JRuby is licensed under three licenses, and you can > pick whichever you want to use: GPL, LGPL, and CPL. The CPL is a more > permissive license like Apache or BSD. > > http://www.opensource.org/licenses/cpl1.0 It is quite different from the Apache License v1.x through v2.x. Similarities include patent license. Differences, at first glance, appear to invovle the fact the Apache License 2.0 (for instance) includes modification notes in all modified files and a limited form of advertising clause, and the fact that the CPL requires notice of where to receive sources if it is distributed in "object code" form (equivalent to the upstream source provisions of the GPL in the case of noncommercial redistribution). Maybe I misread something when I skimmed the license. Meanwhile, the Revised BSD License and Simplified BSD License are both certified as compliant with the Copyfree Standard Definition, and impose no substantive restrictions on recipients of the software apart from the simple requirement to keep the license with the software. To be fair, though, I had never seen any notice of the CPL as a disjunctive multi-license option for JRuby, so thank you for letting me know about that option. > > > > * The fact the JRE is tied to Oracle now, and Oracle has been going > > round rattling its litigation saber at anyone dealing with alternate > > ava implementations makes a lot of people wary about using the JRE > > here it is not strictly necessary. > > Oracle is going after *one* alternative Java implementation (Android, > which Google tries to sell as not being Java) largely because they > (Oracle) failed to successfully come up with a way to recreate mobile > Java and want a piece of this pie. It will likely come to almost > nothing in the courts. Oracle also imposed limitations on its Community Process implementation working group that forced the Apache Foundation to cease development of its Harmony project and drop out of that group. There are also rumors of Oracle demanding that Boeing start paying royalties on contracted deployments of Java software with the Oracle implementation of Java. > > Sun/Oracle has also stated a few times that Android could or could > have used OpenJDK, and they encourage forking and experimentation on > top of the GPL-based OpenJDK codebase. This isn't a fight about the > JRE...it's just politics and greed. What's the "politics and greed" component here? How is reimplementation to better suit the Android platform, rather than using the OpenJDK as distributed by Oracle (which depends on some less-free files for most deployment use cases), a matter of "politics and greed"? It sounds to me like the "politics and greed" characteristics of the fight are over Oracle's desire to keep others from making use of the Java language in a way that does not positively affect its bottom line directly. > > > > * Rubyists in general tend to target MRI/YARV first and foremost, and > > ther implementations are often treated as second-class citizens for > > urposes of compatibility testing. y impression is that Rubinius will > > ave the least problem with this long-term, because it will probably be > > he closest thing to MRI/YARV for purposes of compatibility. Ruby is > > n apple that falls rather farther from the tree than that. > > The fact that JRuby falls far from the tree is a good thing. > > Implementations dependent on C extensions are going to always have > that cross to bear, for example, dealing with badly-behaving C code, > reduced parallelism, and GC complications. JRuby + JVM language-based > extensions have no such limitations. If I assume you're talking about the technical benefits of Java, I think that's a matter for the person choosing an implementation to decide. It's also not really relevant to what I said. I'm not sure whether you're trying to dispute what I said with this statement; if so, I think you're off-target, and if not, I don't have a specific opinion on this matter at this time. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]