[#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 Work

From: Josh Cheek <josh.cheek@...>
Date: 2010-09-29 04:46:17 UTC
List: ruby-talk #370681
On Tue, Sep 28, 2010 at 7:53 AM, =C1lvaro Bernart
<alvaro_bernart@hotmail.com>wrote:

> *Ruby's main uses as a code language.
>

Rails, because you can install Ruby on your server, your clients don't need
to have it. Also, with caching, speed of the app is less important. Also,
people cannot see your source code when it is running on a server. So this
addresses the biggest reservations to Ruby.


> *Tools used for coding Ruby
>

A text editor is sufficient, though there are some IDEs. If you search the
archives, you can find a google doc with an enormous list comparing
different IDEs and editors. I also keep a browser open, and reference the
docs often.


> *Ruby's pros and cons
>

Pros:
* Expressive yet terse syntax. There are some exceptions (File methods, for
example) but Ruby code has a tendency towards beauty, the Ruby community is
also largely dedicated to this.
* Its dynamic nature allows it to support very powerful abstractions. You
probably couldn't have a framework like Rails in a static language.
DataMapper, for example, will look at the state of your code at runtime, an=
d
write SQL to update your database's schema to match. In ActiveRecord, if yo=
u
have a database table called "users" and users have an attribute called
"name" then ActiveRecord would give you a method User.find_by_name("Josh")
and it would look in the users table for the record with the name of "Josh"=
.
You get that for free, because that is how your database is structured, you
didn't have to write any code for it. Whats more, in older versions (I don'=
t
think they still do it this way), that method would not even exist until th=
e
first time you called it, then ActiveRecord would go create the method for
you.
* Smalltalk like pure object oriented implementation (everything is an
object), you can say things like 5.times { puts "hello world" }, you can
pass around methods and classes as parameters, operators are objects,
numbers are objects, classes are objects.
* Operator overloading, namespaces, memory management, single inheritance
with mixins, useful built-in classes like regex and hash
* Built-in support for functional programming (Ruby's code blocks, the
source of so much power)
* Structured enough for large apps where purely scripting languages (ie
bash) are not
* It is fun to program in :) you will really get excited
* Though it has some problems, rubygems provides a standard interface to
third party gems, making it much easier to find and install libraries that
can provide huge functionality gains (Rails, for example, is acquired
through rubygems)

Cons:
* As a dynamic language, it is slower than static compiled languages, thoug=
h
JRuby and MRI1.9 have speed on par with other dynamic languages.
* As a dynamic language, your source code is interpreted, which means it
must be present on the computer running it, so if you have proprietary
information in there, then to run your program, people need your code, and
therefore access to your information (it is possible that Rubinius addresse=
s
this with its byte-code system, I'm not sure)
* As a dynamic language, people need the Ruby runtime installed, most
systems do not come with it (Mac does, but its an older version), and most
people are not going to install it. As Joel Spolsky says in regards to
installing the .NET runtime "If we asked our trial users, usually small
organizations and home users, to go through a movie-length installation hel=
l
just to try our app, I think we'd probably lose 95% of them. These are not
customers *yet* (http://www.joelonsoftware.com/articles/PleaseLinker.html),
they're prospects, and I can't afford to give up 95% of my prospects just t=
o
use a nicer development environment." Perhaps some tools can package it wit=
h
your app such that this is not the case, I am pretty sure Shoes does this,
but I'm not sure about that. Static languages don't have to worry about
this, because they get compiled directly to machine code. They also give up
a lot of power through this, though I'm not sure how much is due to being
static, and how much is due to culture. For example, the D programming
language looks like it has addressed a lot of the shortcomings of other
static languages, though at this point it is still unfortunately immature.
Mirah, a language with Ruby syntax that compiles to Java, has got my hopes
up too, though I suppose you could argue about whether JVM languages deserv=
e
to be classified with static languages, and its unfortunately even less
mature than D.
* Green threads (JRuby uses Java's native threads, IDK about the other
implementations)

*Examples of programs coded on Ruby, aside from Rails
>

Rails isn't really a program (though, I suppose it technically has an
executable -- emasculated though it has been for most of its existence). It
is a framework that you can use, a bunch of libraries and conventions. In
that regard, Puppet for  and Metasploit are two well known frameworks
written in Ruby. If you are really wanting programs, then Rails' site (
http://rubyonrails.org/) gives examples of Twitter, Github, and Yellow Page=
s
(among others), though that is Rails. My text editor TextMate has
significant portions of it coded in Ruby.

In This Thread