[#368826] ANN: home_run 0.9.1 Released — Jeremy Evans <code@...>

= home_run

14 messages 2010/09/01

[#368894] uninitialized constant NArray (Name Error) — Abder-Rahman Ali <abder.rahman.ali@...>

Following section (2) here:

12 messages 2010/09/02

[#368914] p vs. print — Abder-Rahman Ali <abder.rahman.ali@...>

I wrote the following scripts from section (2) here:

24 messages 2010/09/02
[#368915] Re: p vs. print — Alex Stahl <astahl@...5.com> 2010/09/02

Ruby uses "puts", not "print". "p" is short for "puts".

[#368977] Read cookie — Pål Bergström <pal@...>

How can I get the value of a browser cookie with Ruby?

29 messages 2010/09/03
[#368978] Re: Read cookie — Brian Candler <b.candler@...> 2010/09/03

P奪l Bergstr旦m wrote:

[#368984] Re: Read cookie — Pål Bergström <pal@...> 2010/09/03

Brian Candler wrote:

[#369036] ruby_archive 0.1.0 released — Jonathan Nielsen <jonathan@...>

After a summer of working on various ways to implement it, I'm happy to

10 messages 2010/09/03

[#369106] A better idiomatic way of doing this?! — Tim Romberg <tim.jakobsson@...>

Hi Im new at Ruby and been struggling with this lab I have for a course

12 messages 2010/09/05

[#369113] unable to open X server `' (Magick::ImageMagickError) — Abder-Rahman Ali <abder.rahman.ali@...>

I have written a Ruby script "dicom_info.rb", and when I try running

16 messages 2010/09/06
[#369119] Re: unable to open X server `' (Magick::ImageMagickError) — Brian Candler <B.Candler@...> 2010/09/06

On Mon, Sep 06, 2010 at 12:42:11PM +0900, Abder-Rahman Ali wrote:

[#369132] Re: unable to open X server `' (Magick::ImageMagickError) — Abder-Rahman Ali <abder.rahman.ali@...> 2010/09/06

Thanks a lot Brian.

[#369139] Re: unable to open X server `' (Magick::ImageMagickError) — Brian Candler <B.Candler@...> 2010/09/06

On Mon, Sep 06, 2010 at 11:55:32PM +0900, Abder-Rahman Ali wrote:

[#369140] Re: unable to open X server `' (Magick::ImageMagickError) — Abder-Rahman Ali <abder.rahman.ali@...> 2010/09/06

So, do you suggest installing "cygwin"?

[#369159] Re: unable to open X server `' (Magick::ImageMagickError) — Roger Pack <rogerpack2005@...> 2010/09/06

> you suggest installing "cygwin"?

[#369124] Odd functional programming question — Peter Hickman <peterhickman386@...>

Ok this is probably not really functional programming but I was just

10 messages 2010/09/06

[#369169] How do I request a HTTPS page? — Samuel Sternhagen <samatoms@...>

I would like to access a https page from irb

14 messages 2010/09/06

[#369226] What OS do you use for Ruby development? — Nick Hird <nrhird@...>

I don't want to start any OS wars. I was just curious as to what OS

67 messages 2010/09/07

[#369301] Nokogiri and LibXML — unbewusst.sein@... (Une B騅ue)

Each time i launch a script using Nokogiri i get :

12 messages 2010/09/08

[#369302] Receiving array naturally? — Terry Michaels <spare@...>

As I learn Ruby, I find a lot of flexibility in the syntax. I was

14 messages 2010/09/08

[#369389] Key Associated w/ Maximum Value in Hash — Timothy Baron <timothy.baron@...>

Simple question: what's the cleanest way to retrieve a key associated

11 messages 2010/09/09

[#369477] How to do foo.chomp!.rstrip!.downcase! ? — Geometric Patterns <geometric.patterns@...>

15 messages 2010/09/10

[#369623] Ruby packaging in Debian and Ubuntu: Mythbusting and FAQ — Lucas Nussbaum <lucas@...>

Hi,

11 messages 2010/09/12

[#369638] Declarative relations between object attributes — Knut Franke <knut.franke@...>

Some time ago I stumbled over Cells[1], a Common Lisp extension allowing

16 messages 2010/09/12

[#369710] Encoding error while installing rails on ruby 1.9.2 — Bek Bek <bekis3@...>

Hello everybody,

11 messages 2010/09/14

[#369796] Ruby Multi-threading? — Terry Michaels <spare@...>

I read a Ruby e-book recently that indicated that although Ruby has

12 messages 2010/09/15

[#369952] Developing for Ruby on Windows? — Tom Wardrop <tom@...>

I've heard a lot of criticism about developing for Ruby on Windows, but

11 messages 2010/09/17

[#370039] Ruby-based data language — Intransition <transfire@...>

Has anyone ever endeavored to create a data/configuration file format

14 messages 2010/09/19

[#370053] Getting GUI for ruby for Linux running (QT or wxWidget)? — Markus Fischer <markus@...>

Hi,

23 messages 2010/09/19
[#370054] Re: Getting GUI for ruby for Linux running (QT or wxWidget)? — Markus Fischer <markus@...> 2010/09/19

On 20.09.2010 01:14, Markus Fischer wrote:

[#370116] Re: Getting GUI for ruby for Linux running (QT or wxWidget)? — Quintus <sutniuq@...> 2010/09/20

-----BEGIN PGP SIGNED MESSAGE-----

[#370164] Re: Getting GUI for ruby for Linux running (QT or wxWidget)? — Ryan Melton <ryanmelt@...> 2010/09/21

qt does have a new gem I put together:

[#370205] QT works! (was: Re: Getting GUI for ruby for Linux running (QT or wxWidget)) — Markus Fischer <markus@...> 2010/09/21

Hi,

[#370127] An elegant way... — "F. Senault" <fred@...>

Hello everybody.

23 messages 2010/09/20

[#370210] The Great Ruby GUI Toolkit Roundup — Ed Howland <ed.howland@...>

Hi,

15 messages 2010/09/21

[#370257] having problems with open4 and stuck forked processes — Tim Uckun <timuckun@...>

I am running a batch process which uses the wkhtmltoimage-i386 binary

13 messages 2010/09/22
[#370268] Re: having problems with open4 and stuck forked processes — Robert Klemme <shortcutter@...> 2010/09/22

On Wed, Sep 22, 2010 at 2:31 PM, Tim Uckun <timuckun@gmail.com> wrote:

[#370294] Re: having problems with open4 and stuck forked processes — Tim Uckun <timuckun@...> 2010/09/22

> What do you mean by that? =C2=A0Goes the timeout undetected? =C2=A0Can't =

[#370309] Re: having problems with open4 and stuck forked processes — Robert Klemme <shortcutter@...> 2010/09/23

On 23.09.2010 01:59, Tim Uckun wrote:

[#370289] Sorting problem with an Array of Arrays — Paul <tester.paul@...>

Hi there, I have an array of arrays that looks like the following:

15 messages 2010/09/22

[#370296] Ruby Installation Error — Tridib Bandopadhyay <tridib04@...>

I am trying this command to build the ruby interpreter

20 messages 2010/09/23
[#370689] Re: Ruby Installation Error — Brian Candler <b.candler@...> 2010/09/29

Tridib Bandopadhyay wrote:

[#370319] to make dot method dot method work? — Pen Ttt <myocean135@...>

here is the class

14 messages 2010/09/23

[#370373] how do i force ruby to release memory — Amit Tomar <amittomer25@...>

Hi all,

19 messages 2010/09/24
[#370374] Re: how do i force ruby to release memory — Robert Klemme <shortcutter@...> 2010/09/24

On Fri, Sep 24, 2010 at 7:36 AM, Amit Tomar <amittomer25@yahoo.com> wrote:

[#370379] Re: how do i force ruby to release memory — Amit Tomar <amittomer25@...> 2010/09/24

Robert Klemme wrote:

[#370380] Re: how do i force ruby to release memory — Jes俍 Gabriel y Gal疣 <jgabrielygalan@...> 2010/09/24

On Fri, Sep 24, 2010 at 10:31 AM, Amit Tomar <amittomer25@yahoo.com> wrote:

[#370383] Re: how do i force ruby to release memory — Amit Tomar <amittomer25@...> 2010/09/24

Jes炭s Gabriel y Gal叩n wrote:

[#370388] How to delete the browser cache through ruby — Arihan Sinha <arihan_sinha@...>

Hi All,

11 messages 2010/09/24

[#370590] Point me to help w/ multithreading in 1.9.2-p0 — Alex Stahl <astahl@...5.com>

Hi Folks - A week or two ago, I pinged this list for recommendations on

11 messages 2010/09/28
[#370593] Re: Point me to help w/ multithreading in 1.9.2-p0 — Alex Stahl <astahl@...5.com> 2010/09/28

Nevermind... figured it out.

[#370640] puts and return — Jim Haungs <jhaungs@...>

10.times do |i|

14 messages 2010/09/28

[#370661] Color sequences in ri on Windows — Eric Christopherson <echristopherson@...>

After installing some gems, the system recommended that I refresh ri

11 messages 2010/09/28

[#370721] The beauty of Ruby through examples — Adriano Ferreira <adrfer@...>

Hey all,

33 messages 2010/09/29

[#370740] Can't upgrade ruby on Snow Leopard — Ast Jay <azzzz@...>

I've followed the instructions here:

13 messages 2010/09/29

[#370796] How to prevent overwriting methods by accident? — Stefan Salewski <mail@...>

In Ruby we can add new methods to existing classes.

13 messages 2010/09/30
[#370797] Re: How to prevent overwriting methods by accident? — Jeremy Bopp <jeremy@...> 2010/09/30

On 9/30/2010 2:15 PM, Stefan Salewski wrote:

[#370800] Re: How to prevent overwriting methods by accident? — Alex Stahl <astahl@...5.com> 2010/09/30

But is there a way to call the original method instead of just quitting

Re: Ruby packaging in Debian and Ubuntu: Mythbusting and FAQ

From: Ken Bloom <kbloom@...>
Date: 2010-09-12 22:43:45 UTC
List: ruby-talk #369643
On Mon, 13 Sep 2010 01:29:21 +0900, Lucas Nussbaum wrote:

> Hi,
> 
> As questions on the packages provided in Debian and Ubuntu for Ruby and
> Rubygems are often raised here, I thought I would write up a summary of
> the situation, and answers to the most frequently asked questions or
> myths.
> 
> See http://www.lucas-nussbaum.net/blog/?p=566

* Myth: Ruby is completely outdated in Debian and Ubuntu

It's a bit of a myth that the culture in the Ruby community is to always 
use the latest version. People were scared of Ruby 1.8.7 for a long time 
because it changed APIs dramatically. (I actually think Debian unstable 
was closer to the leading edge of adopting Ruby 1.8.7.) I doubt that 
1.9.x adoption is anywhere near 1.8.x adoption at this point.

I think that the Ruby community is aware of both of these trends, and I 
think that's why somebody wrote RVM in the first place. (I don't use RVM, 
somehow I suspect it would badly break my Debian.)

Ruby's adoption of an API version number for Ruby 1.9.x (which you are 
aware of -- it's reflected in your Debian packaging) is an 
acknolwedgement that APIs shouldn't be changed in breaking ways when so 
many people depend on them.

I personally think you're doing the right thing with Ruby versions. I 
just wish that I didn't have to remember to type irb1.9.1 all the time 
for a Ruby 1.9 interpreter. I had gotten used to having only 2 digits. 
Maybe for Ruby 2.0 (whenver it happens) they can stop making API changes 
at the x.x.1 level, and make new x.1 releases when they feel the need to 
change the API.

If there's enough demand for it (and it isn't too much work), maybe a 
ruby-snapshot package is worthwhile, like gcc-snapshot and llvm-snapshot.

* Myth: Rubygems is crippled in Debian

I think that allowing gem update --system is a bad idea. (Then again, 
disabling gem update --system was my request to begin with, #452547 if 
you recall.) If someone needs a more recent Rubygems vesion, they should 
go for backports.

By the way, the verison of Rubygems in lenny is quite outdated -- all of 
the gems in the archive now have a different way of expressing 
dependencies that the old version in lenny is incompatible with. I'm 
guessing that's the gemcutter thing that raggi is talking about in the 
comments to your blog. I had to get a backport for the lenny systems I 
administer. Any chance this can be upgraded in a lenny point release, or 
is lenny basically obsolete anyway as soon as squeeze is out?

It would actaually be pretty nice if people could tell us what advantage 
they would get from running gem update --system on a Debian system, aside 
from that warm fuzzy feeling of having the latest and greatest.

The thing that I think Rubygems *does* need is an "equivs" sort of 
feature. You've included lots of good ruby libraries in Debian's archive, 
but rubygems doesn't know about them. If I want to install a rubygem that 
depends on something that I've already installed from Debian's archive, 
rubygems pulls in another copy of that library. You and the Rubygems 
people need to develop a way of giving Rubygems metadata about libraries 
that are already installed on the system externally to Rubygems. That 
way, Rubygems can use that information for dependancy resolution. (So I 
think of this as having some sort of /usr/share/rubygems/externals.d 
which gets filled with YAML files listing the names of gems that a 
particular package provides.)

Also, I have Debian bug #529663 "Gem::Ext::RakeBuilder uses the wrong 
executable name for rake" outstanding for over a year. Has this been 
fixed?

* Why doesn’t Ruby use the alternatives system on Debian?

I just want to add to this (for the Ruby community to hear) that we treat 
GCC and Python versions the same way in Debian. There is a default 
version of the language, and if you want anything other than the default 
version of the language, you need to specify that version in the shebang 
line. Changing the symlink yourself can break things.

Changing shebangs from /usr/bin/ruby to /usr/bin/ruby1.8 should be a 
release goal in wheezy.

* /usr/local

I'm not sure to what extent the Ruby packagers have been looking at how 
Python and Perl solve the same sorts of issues (Python with its version 
numbers, and Perl with CPAN), but it's probably worth adopting approaches 
from both. Looking at how CPAN puts all of its stuff in /usr/local, 
that's probably the right approach for Rubygems.


Commenting on the comments now....

Raggi wrote "To be quite honest, the comment about smartphones and 
embedded systems is really an odd one." Debian developers tend to think 
about packaging in terms of how to break up a package into managable 
chunks that can be used on small(ish) embedded systems. Think Nokia 770s, 
Marvel Sheevaplugs, and Linksys NSLU2s and the like. The packaging level 
is usually where Debian's share of the responsibility for embedded 
systems ends. From there, it's up to the upstream developers to be 
embedded-systems friendly. Also, when Debian's packages this way, it can 
work as a good starting point for further tuning for embedded systems 
development.




Between RVM, Ruby 1.8.7 (and other such API breakage), and the big 
Gemcutter changes, I think that the Ruby developers have a lot to learn 
about good release engineering, and the Ruby community is getting 
militant at Debian, because Debian *can't* satisfy compatibility under 
the circumstances Ruby developers give them. An in-person summit between 
the Ruby core team, and the distributions that package Ruby (and maybe a 
Python packager and Perl packager to get their expertise on how things 
are done and why) might go a long way towards building sustainable 
release practices on all sides. (I can't imagine that other distributions 
don't have some of the same issues.)

The Ruby community needs to get used to distributions packaging their 
software in a way that is compatible across versions.

--Ken Bloom
(A mostly happy user of Debian's packaged Ruby and Rubygems.)



-- 
Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/


In This Thread