[#326447] Python to Ruby Tutorial (need collborators) — r <rt8396@...>

Hello all,

20 messages 2009/02/01

[#326520] Minor 1.8 <-> 1.9 performance comparison gotcha — Gregory Brown <gregory.t.brown@...>

Excited and inspired by the Ruby 1.9.1 release, I wrote a blog post

10 messages 2009/02/02

[#326548] Quicker finding strings? Alternative for array, hash, set? — Patrick Put <patrick.put@...>

I've been searching for this information already, but cannot really find

10 messages 2009/02/02

[#326553] Variable declarations on one line — Frisco Del rosario <friscodelrosario@...>

a="al", b="bob", c="carl"

11 messages 2009/02/02

[#326570] Native gem roundup! — Charles Oliver Nutter <charles.nutter@...>

I'm curious what native gems/extensions people are typically using. In

40 messages 2009/02/02
[#326654] Re: Native gem roundup! — Tom Cloyd <tomcloyd@...> 2009/02/02

Charles Oliver Nutter wrote:

[#326607] How to tell if one is running 32 or 64 bit Ruby on Mac OS X? — Wes Gamble <weyus@...>

All,

14 messages 2009/02/02

[#326646] Hash counting — Stuart Clarke <stuart.clarke1986@...>

I am trying to load some data into a hash and then count how many times

22 messages 2009/02/02
[#326655] Re: Hash counting — Robert Klemme <shortcutter@...> 2009/02/02

On 02.02.2009 21:43, Stuart Clarke wrote:

[#326665] Re: Hash counting — Stuart Clarke <stuart.clarke1986@...> 2009/02/02

Thanks Robert.

[#326669] Re: Hash counting — Stuart Clarke <stuart.clarke1986@...> 2009/02/02

I have worked out the problem but I am a little unsure how to solve it.

[#326717] Re: Hash counting — Robert Klemme <shortcutter@...> 2009/02/03

2009/2/3 Stuart Clarke <stuart.clarke1986@gmail.com>:

[#326756] Re: Hash counting — Stuart Clarke <stuart.clarke1986@...> 2009/02/03

Thanks for replying and sorry for the confusion.

[#326758] Re: Hash counting — Robert Klemme <shortcutter@...> 2009/02/03

2009/2/3 Stuart Clarke <stuart.clarke1986@gmail.com>:

[#326762] Re: Hash counting — Stuart Clarke <stuart.clarke1986@...> 2009/02/03

Ok I will get straight to the code causing the problem, so first off you

[#326680] Is there an 'offical' Ruby binary for Windows? — Heesob Park <phasis@...>

I know that there are at least three Ruby Windows distributions.

12 messages 2009/02/03

[#326703] A Tk window — Albert Schlef <albertschlef@...>

I have a program that run in the terminal. But once in a while I need it

22 messages 2009/02/03

[#326761] 1.9.1? — yuckysocks <alex.m.mcpherson@...>

Hi there,

26 messages 2009/02/03

[#326858] Using a Class (not an instance) into threads — Iñaki Baz Castillo <ibc@...>

Hi, i'm using Ragel parser generating Ruby code. The generated code

19 messages 2009/02/04

[#326897] Making object methods available externally — David Stanford <dthomas53@...>

Hi all,

14 messages 2009/02/04

[#326953] a simple command that splits up a string into numbers and letters — shawn bright <nephish@...>

Hey all,

10 messages 2009/02/05

[#326957] Watir is acting retarded — Daniel Waite <rabbitblue@...>

This...

13 messages 2009/02/05

[#327048] Full Ruport Book manuscripts now on Github — Gregory Brown <gregory.t.brown@...>

Hi folks,

14 messages 2009/02/05
[#327088] Re: [ANN] Full Ruport Book manuscripts now on Github — Robert Dober <robert.dober@...> 2009/02/06

On Thu, Feb 5, 2009 at 11:51 PM, Gregory Brown

[#327103] Re: [ANN] Full Ruport Book manuscripts now on Github — Gregory Brown <gregory.t.brown@...> 2009/02/06

On Fri, Feb 6, 2009 at 6:08 AM, Robert Dober <robert.dober@gmail.com> wrote:

[#327171] Re: [ANN] Full Ruport Book manuscripts now on Github — Rick DeNatale <rick.denatale@...> 2009/02/06

On Fri, Feb 6, 2009 at 8:50 AM, Gregory Brown <gregory.t.brown@gmail.com>wrote:

[#327172] Re: [ANN] Full Ruport Book manuscripts now on Github — Gregory Brown <gregory.t.brown@...> 2009/02/06

On Fri, Feb 6, 2009 at 4:46 PM, Rick DeNatale <rick.denatale@gmail.com> wrote:

[#327060] Method Precedence — Daly <aeldaly@...>

Hello all,

15 messages 2009/02/06

[#327126] Mathematical Image Generator (#191) — Daniel Moore <yahivin@...>

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

11 messages 2009/02/06

[#327129] Special Hash Constructors — Robert Klemme <shortcutter@...>

15 messages 2009/02/06

[#327146] eval statement — Jonathan Wills <runningwild@...>

Trying to switch a project of mine from python to ruby. Love ruby so

26 messages 2009/02/06

[#327215] Module#=== vs Object#is_a? — Peter Fitzgibbons <peter.fitzgibbons@...>

HI All,

14 messages 2009/02/07

[#327223] cannot remove multiple spaces — Tom Cloyd <tomcloyd@...>

I'm baffled by this strange outcome - I cannot reduce multiple spaces

16 messages 2009/02/07

[#327224] Ruby vs Perl performance — Vetrivel Vetrivel <vetrivel.bksys@...>

I have downloaded perl and ruby program in net.I run both the

77 messages 2009/02/07
[#327260] Re: Ruby vs Perl performance — Igor Pirnovar <gooigpi@...> 2009/02/07

Vetrivel Vetrivel wrote:

[#327393] Re: Ruby vs Perl performance — Chad Perrin <perrin@...> 2009/02/09

On Sun, Feb 08, 2009 at 03:22:20AM +0900, Igor Pirnovar wrote:

[#327444] Re: Ruby vs Perl performance — Robert Klemme <shortcutter@...> 2009/02/09

Chad, I generally agree, however...

[#327471] Re: Ruby vs Perl performance — David Masover <ninja@...> 2009/02/09

Robert Klemme wrote:

[#327483] Re: Ruby vs Perl performance — Robert Klemme <shortcutter@...> 2009/02/09

On 09.02.2009 19:15, David Masover wrote:

[#327489] Re: Ruby vs Perl performance — David Masover <ninja@...> 2009/02/09

Robert Klemme wrote:

[#327564] Re: Ruby vs Perl performance — Robert Klemme <shortcutter@...> 2009/02/10

2009/2/9 David Masover <ninja@slaphack.com>:

[#327573] Re: Ruby vs Perl performance — David Masover <ninja@...> 2009/02/10

Robert Klemme wrote:

[#327306] ruby interpreter written in ruby.. — Eelco <catsquotl@...>

Hi there,

13 messages 2009/02/08

[#327332] calling random — Boris Schmid <borisschmid@...>

Apologies, I have been out of using ruby for a while, and ran into

12 messages 2009/02/08

[#327346] best way to protect class instance variables — Barun Singh <barunio@...>

Suppose I generate a class instance variable and create an accessor

10 messages 2009/02/08

[#327403] Ruby file to Executable file -- for all OS — jazzez ravi <jazzezravi@...>

Hi All,

13 messages 2009/02/09
[#327521] Re: Ruby file to Executable file -- for all OS — jazzez ravi <jazzezravi@...> 2009/02/10

[#327525] Re: Ruby file to Executable file -- for all OS — David Masover <ninja@...> 2009/02/10

jazzez ravi wrote:

[#327419] Which is the best development environment? Windows Vs Linux — priyankeshu <priyankeshu.parihar@...>

I just started learnign Rails and i think it's quite cool! I have just

14 messages 2009/02/09

[#327434] regexp problem — Joao Silva <rubyforum@...>

how i can extract:

21 messages 2009/02/09

[#327492] Got SystemStackError exception: stack level too deep — Bezan Kapadia <bezan99@...>

I have master Process that is forking 2 child processes in the

16 messages 2009/02/09
[#327494] Re: Got SystemStackError exception: stack level too deep — Tony Arcieri <tony@...> 2009/02/09

On Mon, Feb 9, 2009 at 4:12 PM, Bezan Kapadia <bezan99@gmail.com> wrote:

[#327498] Re: Got SystemStackError exception: stack level too deep — Bezan Kapadia <bezan99@...> 2009/02/10

I see ...

[#327510] Ruby GUI Survey: Results — Alex Fenton <alex@...>

The results of the survey of Ruby GUI programming carried out at the end

13 messages 2009/02/10

[#327522] a better way to do this job? — Zhenning Guan <g.zhen.ning@...>

topics.each do |f|

34 messages 2009/02/10
[#327532] Re: a better way to do this job? — Ryan Davis <ryand-ruby@...> 2009/02/10

[#327542] Re: a better way to do this job? — Julian Leviston <julian@...> 2009/02/10

First doesn't take an argument I'm ruby. It does

[#327560] Float in Spreadsheet — Jim Burgess <igsnhelp@...>

Hi,

15 messages 2009/02/10
[#327852] Re: Float in Spreadsheet — Jim Burgess <igsnhelp@...> 2009/02/12

Can no one help me?

[#327610] how to do the recursion — Li Chen <chen_li3@...>

Hi all,

14 messages 2009/02/11

[#327704] If you are unhappy with the direction of Ruby 1.8.7+, respond — Gregory Brown <gregory.t.brown@...>

I am setting up two threads in the hopes that we can see names

188 messages 2009/02/11
[#327721] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — "M. Edward (Ed) Borasky" <zznmeb@...> 2009/02/11

I've posted my opinions on Ruby-Core, but I'll summarize them here:

[#327756] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — Rick DeNatale <rick.denatale@...> 2009/02/11

On Wed, Feb 11, 2009 at 12:10 PM, Gregory Brown

[#327769] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — Pit Capitain <pit.capitain@...> 2009/02/11

2009/2/11 Rick DeNatale <rick.denatale@gmail.com>:

[#327774] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — James Gray <james@...> 2009/02/11

On Feb 11, 2009, at 3:42 PM, Pit Capitain wrote:

[#327892] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — Stefan Lang <perfectly.normal.hacker@...> 2009/02/12

2009/2/11 James Gray <james@grayproductions.net>:

[#327897] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — James Coglan <jcoglan@...> 2009/02/12

>

[#327901] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — Stefan Lang <perfectly.normal.hacker@...> 2009/02/12

2009/2/12 James Coglan <jcoglan@googlemail.com>:

[#327905] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — James Coglan <jcoglan@...> 2009/02/12

>

[#327910] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — Stefan Lang <perfectly.normal.hacker@...> 2009/02/12

2009/2/12 James Coglan <jcoglan@googlemail.com>:

[#327914] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — Ezra Zygmuntowicz <ezmobius@...> 2009/02/12

[#327918] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — Gregory Brown <gregory.t.brown@...> 2009/02/12

On Thu, Feb 12, 2009 at 12:22 PM, Ezra Zygmuntowicz <ezmobius@gmail.com> wrote:

[#327954] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — Pit Capitain <pit.capitain@...> 2009/02/12

2009/2/12 Gregory Brown <gregory.t.brown@gmail.com>:

[#327957] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — Gregory Brown <gregory.t.brown@...> 2009/02/12

On Thu, Feb 12, 2009 at 1:59 PM, Pit Capitain <pit.capitain@gmail.com> wrote:

[#327919] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — Rick DeNatale <rick.denatale@...> 2009/02/12

On Thu, Feb 12, 2009 at 12:22 PM, Ezra Zygmuntowicz <ezmobius@gmail.com>wrote:

[#328043] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — "William James" <w_a_x_man@...> 2009/02/13

James Coglan wrote:

[#328073] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — Rick DeNatale <rick.denatale@...> 2009/02/13

On Fri, Feb 13, 2009 at 4:53 AM, William James <w_a_x_man@yahoo.com> wrote:

[#328076] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — "David A. Black" <dblack@...> 2009/02/13

Hi --

[#328079] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — James Coglan <jcoglan@...> 2009/02/13

2009/2/13 David A. Black <dblack@rubypal.com>

[#328082] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — "David A. Black" <dblack@...> 2009/02/13

Hi --

[#328084] Re: If you are unhappy with the direction of Ruby 1.8.7+, respond — James Coglan <jcoglan@...> 2009/02/13

>

[#327705] If you are happy with the direction of Ruby 1.8.7+, respond — Gregory Brown <gregory.t.brown@...>

I am setting up two threads in the hopes that we can see names

31 messages 2009/02/11

[#327754] Array uniq — Stuart Little <stuart_clarke1986@...>

I am having some troubles with the uniq method for arrays. This is a

18 messages 2009/02/11

[#328065] Meaning of "<<"? — Chris Davies <chris-usenet@...>

Hi,

15 messages 2009/02/13

[#328140] Good GUI documentation — Ruby Student <ruby.student@...>

Hello all you happy GUIsher!

27 messages 2009/02/13

[#328261] Multidimensional hash - get all not blank keys — "Michael .." <xinu@...>

Hello.

13 messages 2009/02/15

[#328279] Iterating a changing Hash under 1.9.1 — Phrogz <phrogz@...>

The following code shows that Hash#each under 1.9.1p0 does not iterate

18 messages 2009/02/15

[#328320] invalid byte sequence in US-ASCII (ArgumentError) — Luther <lutheroto@...>

I'm having some trouble migrating from 1.8 to 1.9.1. I have this line of

20 messages 2009/02/16
[#328321] Re: invalid byte sequence in US-ASCII (ArgumentError) — Tim Hunter <TimHunter@...> 2009/02/16

Luther wrote:

[#328333] Re: invalid byte sequence in US-ASCII (ArgumentError) — Luther <lutheroto@...> 2009/02/16

On Mon, 2009-02-16 at 09:19 +0900, Tim Hunter wrote:

[#328349] Re: invalid byte sequence in US-ASCII (ArgumentError) — Tom Link <micathom@...> 2009/02/16

> but now I know my program will puke

[#328323] ffi-ncurses version 0.3.0 — "Sean O'Halpin" <sean.ohalpin@...>

ffi-ncurses version 0.3.0

10 messages 2009/02/16

[#328338] vim for ruby — Bharat Ruparel <bcruparel@...>

I am using Ubuntu 7.10. I installed vim-ruby package to get the ruby

19 messages 2009/02/16
[#328397] Re: vim for ruby — Bertram Scharpf <lists@...> 2009/02/16

Hi,

[#328345] What are your favorite Ruby features? — Tony Arcieri <tony@...>

I'm creating a new language which borrows heavily from Ruby, and I'm curious

71 messages 2009/02/16
[#328379] Re: What are your favorite Ruby features? — Robert Dober <robert.dober@...> 2009/02/16

On Mon, Feb 16, 2009 at 5:26 AM, Tony Arcieri <tony@medioh.com> wrote:

[#328382] Re: What are your favorite Ruby features? — "David A. Black" <dblack@...> 2009/02/16

Hi --

[#328395] Re: What are your favorite Ruby features? — Robert Dober <robert.dober@...> 2009/02/16

On Mon, Feb 16, 2009 at 12:36 PM, David A. Black <dblack@rubypal.com> wrote=

[#328400] Re: What are your favorite Ruby features? — "David A. Black" <dblack@...> 2009/02/16
[#328419] Re: What are your favorite Ruby features? — Robert Dober <robert.dober@...> 2009/02/16

On Mon, Feb 16, 2009 at 2:13 PM, David A. Black <dblack@rubypal.com> wrote:

[#328452] Re: What are your favorite Ruby features? — Brian Candler <b.candler@...> 2009/02/16

Tony Arcieri wrote:

[#328473] Re: What are your favorite Ruby features? — Tony Arcieri <tony@...> 2009/02/17

On Mon, Feb 16, 2009 at 1:31 PM, Brian Candler <b.candler@pobox.com> wrote:

[#328498] Re: What are your favorite Ruby features? — David Masover <ninja@...> 2009/02/17

Tony Arcieri wrote:

[#328523] Re: What are your favorite Ruby features? — Juan Zanos <juan_zanos@...> 2009/02/17

[#328532] Re: What are your favorite Ruby features? — Rick DeNatale <rick.denatale@...> 2009/02/17

On Tue, Feb 17, 2009 at 9:44 AM, Juan Zanos <juan_zanos@talkhouse.com>wrote=

[#328541] Re: What are your favorite Ruby features? — David Masover <ninja@...> 2009/02/17

Rick DeNatale wrote:

[#328596] Re: What are your favorite Ruby features? — Rick DeNatale <rick.denatale@...> 2009/02/18

On Tue, Feb 17, 2009 at 2:40 PM, David Masover <ninja@slaphack.com> wrote:

[#328600] Re: What are your favorite Ruby features? — Robert Dober <robert.dober@...> 2009/02/18

On Wed, Feb 18, 2009 at 2:38 PM, Rick DeNatale <rick.denatale@gmail.com> wrote:

[#328373] How to do this complicated logic in ruby — Valentino Lun <sumwo@...>

Dear all

10 messages 2009/02/16

[#328560] Tree structure - how do we link nodes together? — Aldric Giacomoni <"aldric[removeme]"@...>

I know I could just use rubytree, which looks quite nice, but I'd like

19 messages 2009/02/18

[#328702] literal syntax for array of arrays of strings — Joel VanderWerf <vjoel@...>

17 messages 2009/02/19

[#328775] How to do conditional compile for Ruby 1.9 in a C extension? — Jason Garber <jg@...>

I'm working on updating RedCloth for Ruby 1.9. Since the output of

14 messages 2009/02/19

[#328808] How does one generate a "main page" for rdoc documentation? — Kenneth McDonald <kenneth.m.mcdonald@...>

I tried

21 messages 2009/02/19
[#328814] Re: How does one generate a "main page" for rdoc documentation? — Rick DeNatale <rick.denatale@...> 2009/02/19

On Thu, Feb 19, 2009 at 4:24 PM, Kenneth McDonald <

[#328815] Re: How does one generate a "main page" for rdoc documentation? — Joel VanderWerf <vjoel@...> 2009/02/19

Rick DeNatale wrote:

[#328817] Re: How does one generate a "main page" for rdoc documentation? — Igor Pirnovar <gooigpi@...> 2009/02/19

Where did you get the syntax for your:

[#328825] Re: How does one generate a "main page" for rdoc documentation? — James Britt <james.britt@...> 2009/02/20

Igor Pirnovar wrote:

[#328833] Re: How does one generate a "main page" for rdoc documentation? — Tom Link <micathom@...> 2009/02/20

> > | rdoc --main maindocpage rex.rb |

[#328840] Re: How does one generate a "main page" for rdoc documentation? — James Britt <james.britt@...> 2009/02/20

Tom Link wrote:

[#328902] what Ruby version to use on Windows for a 1.2.x RoR app? — neongrau __ <neongrau@...>

hi there!

20 messages 2009/02/20
[#328947] Re: what Ruby version to use on Windows for a 1.2.x RoR app? — Roger Pack <rogerpack2005@...> 2009/02/21

> isn't there any memory stable ruby version for windows?

[#329156] Re: what Ruby version to use on Windows for a 1.2.x RoR app? — neongrau __ <neongrau@...> 2009/02/23

Roger Pack wrote:

[#329172] Re: what Ruby version to use on Windows for a 1.2.x RoR app? — Roger Pack <rogerpack2005@...> 2009/02/23

[#329275] Re: what Ruby version to use on Windows for a 1.2.x RoR app? — neongrau __ <neongrau@...> 2009/02/24

Roger Pack wrote:

[#329530] Re: what Ruby version to use on Windows for a 1.2.x RoR app? — Roger Pack <rogerpack2005@...> 2009/02/25

neongrau __ wrote:

[#329592] Re: what Ruby version to use on Windows for a 1.2.x RoR app? — neongrau __ <neongrau@...> 2009/02/26

Roger Pack wrote:

[#329685] Re: what Ruby version to use on Windows for a 1.2.x RoR app? — Roger Pack <rogerpack2005@...> 2009/02/26

> and don't have any compiler on my XP vmware installation yet.

[#329801] Re: what Ruby version to use on Windows for a 1.2.x RoR app? — neongrau __ <neongrau@...> 2009/02/27

i have no experience with git, i just did this:

[#328967] encoding problem with tr() and hash keys — Do One <do1@...>

Please help to understand solution to this problem (ruby 1.9.1):

17 messages 2009/02/21
[#329141] Re: encoding problem with tr() and hash keys — Brian Candler <b.candler@...> 2009/02/23

Do One wrote:

[#328981] How to call a module method dynamically — Adrian Klingel <adrian.klingel@...>

I know about object instantiation and the send method, but the methods I

11 messages 2009/02/21

[#329029] Nexus Programming Language — Avatar <acampbellb@...>

A new object-oriented programming language has been unofficially

133 messages 2009/02/21
[#329048] Re: Nexus Programming Language — Ken Bloom <kbloom@...> 2009/02/22

On Sat, 21 Feb 2009 15:37:34 -0800, Avatar wrote:

[#329136] Re: Nexus Programming Language — Chad Perrin <perrin@...> 2009/02/23

On Mon, Feb 23, 2009 at 01:09:34AM +0900, Ken Bloom wrote:

[#329138] Re: Nexus Programming Language — Eleanor McHugh <eleanor@...> 2009/02/23

On 23 Feb 2009, at 12:38, Chad Perrin wrote:

[#329177] Re: Nexus Programming Language — Chad Perrin <perrin@...> 2009/02/23

On Mon, Feb 23, 2009 at 09:48:44PM +0900, Eleanor McHugh wrote:

[#329183] Re: Nexus Programming Language — Eleanor McHugh <eleanor@...> 2009/02/23

On 23 Feb 2009, at 19:47, Chad Perrin wrote:

[#329184] Re: Nexus Programming Language — "M. Edward (Ed) Borasky" <zznmeb@...> 2009/02/23

On Mon, Feb 23, 2009 at 12:21 PM, Eleanor McHugh

[#329218] Re: Nexus Programming Language — Avatar <acampbellb@...> 2009/02/24

On Feb 23, 3:21=A0pm, Eleanor McHugh <elea...@games-with-brains.com>

[#329297] Re: Nexus Programming Language — Tom Cloyd <tomcloyd@...> 2009/02/24

Avatar wrote:

[#329365] Re: Nexus Programming Language — Eleanor McHugh <eleanor@...> 2009/02/25

On 24 Feb 2009, at 13:44, Tom Cloyd wrote:

[#329317] Re: Nexus Programming Language — pjb@... (Pascal J. Bourguignon) 2009/02/24

Gregory Brown <gregory.t.brown@gmail.com> writes:

[#329067] Improving hexadecimal escaping performance — Iñaki Baz Castillo <ibc@...>

Hi, I've a module with two methods (thanks Jeff):

11 messages 2009/02/23

[#329179] pointer and other questions — Daniel Schoch <trash@...>

Hi,

16 messages 2009/02/23
[#329182] Re: pointer and other questions — Robert Klemme <shortcutter@...> 2009/02/23

On 23.02.2009 21:00, Daniel Schoch wrote:

[#329187] Re: pointer and other questions — Daniel Schoch <trash@...> 2009/02/23

>

[#329330] Can Ruby interact with the shell sh ? — Raimon Fs <coder@...>

Hello,

12 messages 2009/02/24

[#329332] error trying to install ruby gems 1.3.1 — 7stud -- <bbxx789_05ss@...>

~/my_tar_extractions/rubygems-1.3.1$ sudo ruby setup.rb

12 messages 2009/02/24

[#329426] Where is splat implemented? / How does it work? — Mischa Fierer <f.mischa@...>

Hi --

12 messages 2009/02/25

[#329478] What is the Qur窶凖「n? — al albani <imanway123@...>

20 messages 2009/02/25

[#329532] Religious discussion — Julian Leviston <julian@...>

Hi all. I've thought quite a long time bout this, and I hope this is a

13 messages 2009/02/25
[#329657] Re: Religious discussion — Kyle Schmitt <kyleaschmitt@...> 2009/02/26

On Wed, Feb 25, 2009 at 4:19 PM, Julian Leviston <julian@coretech.net.au> wrote:

[#329554] Sample Chapter from "Ruby Best Practices" — Gregory Brown <gregory.t.brown@...>

== The short story

12 messages 2009/02/26

[#329671] Letter writing campaign to Jim — Aaron Patterson <aaron@...>

"Rake version 0.8.4 has been released!" is what you would be reading if

16 messages 2009/02/26
[#329683] Re: [ANN] Letter writing campaign to Jim — Gregory Brown <gregory.t.brown@...> 2009/02/26

On Thu, Feb 26, 2009 at 1:33 PM, Aaron Patterson

[#329710] Re: [ANN] Letter writing campaign to Jim — Aaron Turner <synfinatic@...> 2009/02/26

On Thu, Feb 26, 2009 at 11:37 AM, Gregory Brown

[#329715] Re: [ANN] Letter writing campaign to Jim — Aaron Patterson <aaron@...> 2009/02/26

On Fri, Feb 27, 2009 at 05:49:08AM +0900, Aaron Turner wrote:

[#329672] Any plans for a "OneClickInstaller for Ruby 1.9.1? — Ruby Student <ruby.student@...>

TWIMC,

10 messages 2009/02/26

[#329759] Setting the contents of a file to a variable? — Stefan Codrescu <fixxie.wits@...>

Ok so...

16 messages 2009/02/27
[#329766] Re: Setting the contents of a file to a variable? — Justin Collins <justincollins@...> 2009/02/27

Stefan Codrescu wrote:

[#330556] Re: Setting the contents of a file to a variable? — Stefan Codrescu <fixxie.wits@...> 2009/03/06

ok, thanks ill try that but i also found

[#330680] Re: Setting the contents of a file to a variable? — Brian Candler <b.candler@...> 2009/03/08

Stefan Codrescu wrote:

[#329804] How to find the specific row of CSV file. — Salil Gaikwad <salil@...>

I want to change or read only specific row of CSV file, i don't know how

18 messages 2009/02/27
[#329822] Re: How to find the specific row of CSV file. — James Gray <james@...> 2009/02/27

On Feb 27, 2009, at 8:19 AM, Salil Gaikwad wrote:

[#329883] Re: How to find the specific row of CSV file. — Salil Gaikwad <salil@...> 2009/02/28

My code is as follows

[#329905] Re: How to find the specific row of CSV file. — Craig Demyanovich <cdemyanovich@...> 2009/02/28

First, let's create a rough, high-level solution to your problem.

[#329985] Re: How to find the specific row of CSV file. — Salil Gaikwad <salil@...> 2009/03/01

thanx james & craig

[#329987] Re: How to find the specific row of CSV file. — Craig Demyanovich <cdemyanovich@...> 2009/03/01

On Sun, Mar 1, 2009 at 8:06 AM, Salil Gaikwad <salil@cipher-tech.com> wrote:

[#329990] Re: How to find the specific row of CSV file. — Salil Gaikwad <salil@...> 2009/03/01

thanx for quick reply

[#329871] Marshal.load does not create new instances? — Ian Trudel <ian.trudel@...>

Marshal does not seem to instantiate given class(es) on load. Moreover,

18 messages 2009/02/27
[#329875] Re: Marshal.load does not create new instances? — 7stud -- <bbxx789_05ss@...> 2009/02/28

Ian Trudel wrote:

[#329878] Re: Marshal.load does not create new instances? — Ian Trudel <ian.trudel@...> 2009/02/28

7stud -- wrote:

[#329900] Re: Marshal.load does not create new instances? — Pit Capitain <pit.capitain@...> 2009/02/28

2009/2/28 Ian Trudel <ian.trudel@gmail.com>:

[#329907] Re: Marshal.load does not create new instances? — Robert Klemme <shortcutter@...> 2009/02/28

2009/2/28 Pit Capitain <pit.capitain@gmail.com>:

[#329896] Hi..About Gsoc 2009 project ideas... — usw wickramasinghe <mastershield2007@...>

Hi,

15 messages 2009/02/28

[#329909] How to put multiple values into a variable. — Harry Nash <hjnash@...>

I am new to coding, I have tried to place a number of data strings into

11 messages 2009/02/28

[#329942] Priorities for JRuby 1.3 — Charles Oliver Nutter <charles.nutter@...>

With JRuby 1.2 almost out the door, we should talk a bit about where to

17 messages 2009/02/28

ANN: Sequel 2.10.0 Released

From: Jeremy Evans <code@...>
Date: 2009-02-03 19:15:57 UTC
List: ruby-talk #326785
Sequel is a lightweight database access toolkit for Ruby.

* Sequel provides thread safety, connection pooling and a concise DSL
  for constructing database queries and table schemas.
* Sequel also includes a lightweight but comprehensive ORM layer for
  mapping records to Ruby objects and handling associated records.
* Sequel supports advanced database features such as prepared
  statements, bound variables, stored procedures, master/slave
  configurations, and database sharding.
* Sequel makes it easy to deal with multiple records without having
  to break your teeth on SQL.
* Sequel currently has adapters for ADO, DataObjects, DB2, DBI,
  Firebird, Informix, JDBC, MySQL, ODBC, OpenBase, Oracle, PostgreSQL
  and SQLite3.

Sequel 2.10.0 has been released and should be available on the gem
mirrors.  The 2.10.0 release adds numerous improvements:

New Supported Adapters and Databases
------------------------------------

* A DataObjects adapter was added that supports PostgreSQL,
  MySQL, and SQLite.  DataObjects is the underlying database
  library used by DataMapper, and has potential performance
  advantages by doing all typecasting in C.

* A Firebird Adapter was added, it requires the modified Ruby
  Fb adapter found at http://github.com/wishdev/fb.

* An H2 JDBC subadapter was added, based on the code used in JotBot.
  H2 is an embeddable Java database, and may be preferable to using
  SQLite on JDBC because SQLite requires native code.

New Core Features
-----------------

* Sequel now has database independent migrations.  Before, column
  types in migrations were not translated per database, so it was
  difficult to set up a migration that worked on multiple databases.
  Sequel now accepts ruby classes as database types, in addition to
  symbols and strings.  If a ruby class is used, it is translated
  to the most appropriate database type.  Here is an example using
  all supported classes (with Sequel's default database type):

    DB.create_table(:cats) do
      primary_key :id, :type=>Integer # integer
      String :a                       # varchar(255)
      column :b, File                 # blob
      Fixnum :c                       # integer
      foreign_key :d, :other_table, :type=>Bignum # bigint
      Float :e                        # double precision
      BigDecimal :f                   # numeric
      Date :g                         # date
      DateTime :h                     # timestamp
      Time :i                         # timestamp
      Numeric :j                      # numeric
      TrueClass :k                    # boolean
      FalseClass :l                   # boolean
    end

  Type translations were tested on the PostgreSQL, MySQL, SQLite,
  and H2 databases.  The default translations should work OK for
  most databases, but there will probably be a type or two that
  doesn't work.  Please send in a patch if Sequel uses a column type
  that doesn't work on your database.

  Note that existing migrations still work fine, in most cases.  If
  you were using strings or symbols for types before, they should
  still work.  See the Backwards Compatibility section below for
  details.

  Also note that this doesn't relate solely to migrations, as any
  database schema modification method that accepts types will
  accept one of the above classes.

* A ton of internal work was done to better support databases that
  fold unqouted identifiers to uppercase (which is the SQL standard).
  Sequel now allows you to set a method to call on identifiers going
  both into and out of the database.  The default is to downcase
  identifiers coming out, and upcase identifiers going in, though
  this is overridden by the PostgreSQL, MySQL, and SQLite adapters
  to not do anything (since they fold to lowercase by default).

  The settings are called identifier_input_method and
  identifier_output_method, and like most Sequel settings, they can
  be set globally, per database, or per dataset:

    # Global (use uppercase in ruby and lowercase in the database)
    Sequel.identifier_input_method = :downcase
    Sequel.identifier_output_method = :upcase
    # Per Database (use camelized names in the database, and
    #               underscored names in ruby)
    DB.identifier_input_method = :camelize
    DB.identifier_output_method = :underscore
    # Per Dataset (obfuscate your database columns!)
    class String; def rot_13; tr('A-Za-z', 'N-ZA-Mn-za-m') end end
    ds = DB[:table]
    ds.identifier_input_method = :rot_13
    ds.identifier_output_method = :rot_13

* Schema parsing support was added to the JDBC adapter, using the
  JDBC metadata methods.  This means that models that use the
  JDBC adapter will typecast data in their column setters and
  automatically select the correct primary key column(s).  This is
  currently the only adapter that supports schema parsing when using
  an MSSQL or Oracle database.

* Database#create_table now takes options, which you can use to
  specify a MySQL engine, charset, and/or collation.  You can also
  set a default engine, charset, and collation for MySQL to use:

    Sequel::MySQL.default_engine = 'InnoDB'
    Sequel::MySQL.default_charset = 'utf8'
    Sequel::MySQL.default_collate = 'utf8'

  The defaults will be used if the options are not provided.  If a
  default engine is set, you can specify :engine=>nil to not use it
  (same goes for charset and collate).

* The Sequel::DatabaseConnectionError exception class was added.  It
  is raised by the connection pool if there is an error attempting
  to instantiate a database connection.  Also, if the adapter returns
  nil instead of raising an error for faulty connection parameters,
  DatabaseConnectionError will be raised immediately, instead of the
  connection pool busy waiting until if gives up with a
  PoolTimeoutError.

* Database#tables is now supported on the JDBC adapter, returning
  an Array of table name symbols.

* Sequel now converts the following Java types returned by the JDBC
  adapter into ruby types: Java::JavaSQL::Timestamp,
  Java::JavaSQL::Time, Java::JavaSQL::Date,
  Java::JavaMath::BigDecimal, and Java::JavaIo::BufferedReader.

* When using the PostgreSQL adapter with the postgres-pr driver,
  Sequel will use a custom string escaping routine unless
  force_standard_strings = false.  This means that using Sequel's
  defaults, postgres-pr will correctly escape strings now.

* The SQLite adapter now returns float, real, and double precision
  columns as Floats.

* The SQLite adapter logs beginning, committing, and rolling back
  transactions.

* Sequel now has an internal version (before, the only way to tell
  the version was to look at the gem being used).  It is accessible
  at Sequel.version.

New Model Features
------------------

* A new validates_not_string validation was added for Sequel Models.
  It is intended to be used with the raise_on_typecast_failure =
  false setting.  In this case, for a non-string database column,
  if there is a string value when the record is going to be
  saved, it is due to the fact that Sequel was not able to typecast
  the given data correctly (so it is almost certainly not valid).
  This should make Sequel easier to use with web applications.

* An :allow_missing validation option was added to all standard
  validations.  This option skips the validation if the attribute
  is not in the object's values.  It is different from :allow_nil,
  which will skip the value if it is present but nil in the values.
  The intended use case for this option is when the database provides
  a good default.  If the attribute is not present in values, the
  database will use its default.  If the attribute is present in
  the values but equals nil, Sequel will attempt to insert it into
  the database as a NULL value, instead of using the database's
  default.  If you don't want Sequel to insert a NULL value in the
  database, but you want the database to provide the default, this
  is the option to use.

* validates_each now accepts :allow_nil and :allow_blank options,
  so it is easier to create custom validations with the same options
  as the standard validations.

* Before_* hooks now run in the reverse order that they were added.
  The purpose of hooks is to wrap existing functionality, and making
  later before_* hooks run before previous before_* hooks is the
  correct behavior.

* You can now add you own hook types, via Model.add_hook_type.  This
  is intended for plugin use.  All of the standard hooks are now
  implemented using this method.

* The value of new? in a after_save hook now reflects the
  previous state of the model (so true for a create and false for an
  update), instead of always being false.  This makes it easier
  to have a complex after_save hook that still needs to
  differentiate between a newly created record and an updated record,
  without having to add separate after_create and after_update
  hooks.

* The value of changed_columns in an after_update hook now reflects
  the value before the update occurred, instead of usually being
  empty.  Previously, to have this functionality, you generally had
  to save the value to an instance variable in a before_update hook
  so you could reference it in the after_update hook.

Other Improvements
------------------

* Sequel now longer overwrites the following Symbol instance methods
  when running on ruby 1.9: [], <, <=, >, and >=.  One of Sequel's
  principals is that it does not override methods defined by ruby,
  and now that ruby 1.9 defines the above methods on Symbol, Sequel
  shouldn't be overwriting them.

  Sequel already provides a way to work around this issue when
  another library adds the same methods to Symbol that Sequel does.
  For example, you need to change the following:

    dataset.filter(:number > 1)
    dataset.filter(:number >= 2)
    dataset.filter(:name < 'M')
    dataset.filter(:name <= 'I')
    dataset.filter(:is_bool[:x])

  To:

    dataset.filter{|o| o.number > 1}
    dataset.filter{|o| o.number >= 2}
    dataset.filter{|o| o.name < 'M'}
    dataset.filter{|o| o.name <= 'I'}
    dataset.filter{|o| o.is_bool(:x)}

  The argument provided to the block is a Sequel::SQL::VirtualRow.
  This class uses method_missing so that any methods called on it
  return Sequel::SQL::Identifiers (if no arguments are provided)
  or Sequel::SQL::Function (if arguments are provided).

  If you were using one of the above symbol methods outside of a
  filter, you can to call sql_string, sql_number, or sql_function
  on the symbol.  So the following would also work:

    dataset.filter(:number.sql_number > 1)
    dataset.filter(:number.sql_number >= 2)
    dataset.filter(:name.sql_string < 'M')
    dataset.filter(:name.sql_number <= 'I')
    dataset.filter(:is_bool.sql_function(:x))

  Using the block argument makes for a nicer API, though, so I
  recommend using it when possible.

  Note that if you are running ruby 1.8 or jruby without the --1.9
  flag, you don't need to worry.  If you are running ruby 1.9 or
  jruby --1.9, or you plan to at some point in the future, you
  should inspect your code for existing uses of these methods.
  Here are a couple command lines that should find most uses:

    # Find :symbol[]
    egrep -nr ':['\''"]?[a-zA-Z_0-9]*['\''"]?\[' *
    # Find :symbol (<|>|<=|>=)
    egrep -nr '[^:]:['\''"]?[a-zA-Z_0-9]*['\''"]? *[<>]=?' *

* Database#quote_identifiers now affects future schema modifications
  when using the database.  Previous, it only affected future
  schema modifications if a schema modification method had not yet
  been called.

* Literalization of Times and DateTimes is now correct when using the
  MySQL JDBC subadapter.

* Literalization of Blobs is now correct when using the PostgreSQL
  JDBC subadapter.

* Index and table names are quoted when creating indices in the
  PostgreSQL adapter.

* Dataset#delete was changed in the SQLite adapter to add a
  where clause that is always true, instead of doing an explicit
  count first and the deleting.  This is simpler, though it
  could potentially have performance implications.

* The sequel command line tool now supports symbol keys and unnested
  hashes in YAML files, so it should work with Merb's database.yml.
  It also includes the error class in the case of an error.

* The integration type tests were greatly expanded.  Generally,
  running the integration tests is a good way to determine how well
  your database is supported.

* Dataset#quote_identifier now returns LiteralStrings as-is, instead
  of treating them as regular strings.

* Sequel no longer modifies the MySQL::Result class when using the
  MySQL adapter.

Backwards Compatibilty
----------------------

* If you were previously using a database that returned uppercase
  identifiers, it will probably return lowercase identifiers by
  default now.  To get back the old behavior:

    DB.identifier_output_method = nil

* The module hierarchy under Sequel::SQL has changed.  Now,
  modules do not include other modules, and the following modules
  were removed since they would have been empty after removing
  the modules they included: Sequel::SQL::SpecificExpressionMethods
  and Sequel::SQL::GenericExpressionMethods.

* Sequel no longer assumes the public schema by default when
  connecting to PostgreSQL.  You can still set the default
  schema to use (even to public).

* The ability to load schema information for all tables at once
  was removed from the PostgreSQL adapter.  While it worked, it had
  some issues, and it was difficult to keep it working when some
  new features were used.  This ability wasn't exposed to the user,
  and was purely an optimization.  If you have any code like:

    DB.schema

  by itself after the Database object was instantiated, you should
  remove it.

* The Database#primary_key API changed in the PostgreSQL shared
  adapter, it now accepts an options hash with :server and :conn keys
  instead of a server symbol.  Also, quite a few private Database
  instance methods changed, as well as some constants in the
  AdapterMethods.

* It is possible that some migrations will break, though it is
  unlikely.  If you were using any of the classes mentioned above
  as a method inside a migration, it might be broken.  However,
  since String, Float, and Integer wouldn't have worked as methods
  before, it is unlikely that anyone used this.

* The meaning of #String, #Integer, and #Float inside
  Sequel::SQL::Generator (i.e. inside a Database#create_table
  block) has changed.  Before, these used to call private Kernel
  methods, now, they set up columns with the appropriate database
  type.

* The Database#lowercase method in the DBI adapter was removed,
  as its use case is now met by the identifier_output_method support.

* Database#uri is now aliased explicitly via a real method, to
  allow for easier subclassing.

* You can no longer pass nil as the second argument to
  Database#create_table.

Thanks,
Jeremy

* {Website}[http://sequel.rubyforge.org]
* {Source code}[http://github.com/jeremyevans/sequel]
* {Bug tracking}[http://code.google.com/p/ruby-sequel/issues/list]
* {Google group}[http://groups.google.com/group/sequel-talk]
* {RDoc}[http://sequel.rubyforge.org/rdoc]
-- 
Posted via http://www.ruby-forum.com/.

In This Thread

Prev Next