[#382478] Understanding Ruby Inside Out — Konstantin Ka <paranox3@...>
What makes Ruby work?
Hey, thanks for the rapid response guys.
[#382484] update variables based on own value - critique please? — Peter Ehrlich <crazedcougar@...>
Hey!
[#382503] Wrap external source file in a module — Alexey Muranov <muranov@...>
Hello, i have another question.
[#382528] LoadPath and require confusion, please explain — Lucky Dev <lucky.developer@...>
Guys,
But when i say require "something" , something.rb should be present in
[#382548] Help making a method more concise — Mark Hayes <mark@...>
Hello,
On Mon, May 2, 2011 at 11:17 AM, Mark Hayes <mark@deployfx.com> wrote:
[#382559] Object-Oriented Programming — Mike Chao <mchao1@...>
Hey guys, i'm trying to make a class in Ruby and I was wondering if it's
Mike Chao wrote in post #996303:
On Tue, May 3, 2011 at 1:45 AM, 7stud -- <bbxx789_05ss@yahoo.com> wrote:
On 05/03/11 11:13, Adam Prescott wrote:
On Mon, May 2, 2011 at 8:15 PM, Clifford Heath <no@spam.please.net> wrote:
[#382562] shoes3 and ubuntu install problem — jake kaiden <jakekaiden@...>
i've run into a problem installing shoes3 on ubuntu 10.04 lucid.
[#382586] NougakuDo - Ruby 1.9 and Rails installer for Windows x64 with fastest server — arton <artonx@...>
Hi,
[#382588] how to get variable text from browser — Joe Pizzanley <pizzazjoe@...>
The browser page I'm working with has a semi-variable text group: "Files
On Tue, May 3, 2011 at 7:14 PM, Joe Pizzanley <pizzazjoe@yahoo.com> wrote:
> So, you want to fetch the page calling the URL, locate that text and
On Tue, May 3, 2011 at 7:36 PM, Joe Pizzanley <pizzazjoe@yahoo.com> wrote:
[#382594] Problem installing shoes3 on RHEL 6 — Ruby Student <ruby.student@...>
I am trying to install/build shoes3 under Red Hat EL 6 and I am having heck
Two things:
Well friend, I can hardly put on a shoe. I am sure I can't build one!
Actually, I did try to build my own shoes using the instructions:
Hm, the last person that got that error said they were using 1.8, but you're
Hi Steve,
This means your ruby didn't get installed with ssl support. I don't know how
On Wed, May 4, 2011 at 3:24 PM, Ruby Student <ruby.student@gmail.com> wrote:
Brabuhr,
You have to then reinstall 1.9.2 after installing openssl-devel for it to
Well gents,
On Wed, May 4, 2011 at 2:21 PM, Ruby Student <ruby.student@gmail.com> wrote=
brabuhr,
> I downloaded your build.
Brabuhr,
On Thu, May 5, 2011 at 11:45 AM, Ruby Student <ruby.student@gmail.com> wrote:
> Also try:
Here is what I get:
On Thu, May 5, 2011 at 2:50 PM, Ruby Student <ruby.student@gmail.com> wrote:
> On Thu, May 5, 2011 at 2:50 PM, Ruby Student <ruby.student@gmail.com> wrote:
This is the output to the *iconv* command:
> */usr/local/shoes]$ ./shoes*
On Thu, May 5, 2011 at 5:16 PM, <brabuhr@gmail.com> wrote:
OK,
[#382601] Iterating over an Array of Hashes — Peter Hicks <peter.hicks@...>
All,
hi Peter -
Peter Hicks wrote in post #996483:
On Tue, May 3, 2011 at 20:34, 7stud -- <bbxx789_05ss@yahoo.com> wrote:
John Feminella wrote in post #996498:
Your example doesn't contain nested hashes, while mine does. That's
On Tue, May 3, 2011 at 7:08 PM, John Feminella <johnf@bitsbuilder.com> wrote:
On Wed, May 04, 2011 at 12:28:18PM +0900, Christopher Dicely wrote:
>>
On Thu, May 05, 2011 at 04:17:53AM +0900, Christopher Dicely wrote:
On Wed, May 4, 2011 at 1:50 PM, Chad Perrin <code@apotheon.net> wrote:
On Thu, May 05, 2011 at 06:21:00AM +0900, Christopher Dicely wrote:
[#382627] Run time programming — Karolis Juodele <zulupineapple@...>
Hi all,
On Wed, May 4, 2011 at 12:39 PM, Karolis Juodele
Robert K. wrote in post #996572:
[#382630] Encoding nightmare — comopasta Gr <granadojose@...>
Hi,
[#382631] Documentation about ruby-openssl — Iñaki Baz Castillo <ibc@...>
Hi, is there somewhere good documentation about ruby-openssl API? or
[#382650] Creating variables on an OpenStruct with dynamic names — "Jolyon R." <jolyonruss@...>
Hey guys,
Wow, thanks for the plentiful replies!
[#382671] rubygems-update 1.8.0 — Eric Hodel <drbrain@...7.net>
rubygems-update version 1.8.0 has been released!
[#382686] Lets play a guessing game. (how to code this better?) — Super Goat <ruby-forum@...33mail.com>
I am a new Rubyist. I told my friend that I was learning Ruby. He asked
There's a small bug:
On 05.05.2011 10:10, John Feminella wrote:
> You could even try to solve it with the functional pradigm.
Thanks everyone for taking the time to reply!
Thanks again for everyones input and thanks to Jesus for explaining and
On Sun, May 8, 2011 at 12:08 AM, Super Goat <ruby-forum@sgoat.33mail.com> w=
[#382716] Cross access between instance variables — Stefan Salewski <mail@...>
I am working on a larger Ruby program, where instance variables of one
On 05.05.2011 21:06, Stefan Salewski wrote:
On Fri, 2011-05-06 at 17:25 +0900, Johannes Held wrote:
2011/5/7 Stefan Salewski <mail@ssalewski.de>:
You add fish to a tank, not tanks to a fish. An alternative proposal,
[#382726] native ruby Levenberg窶溺arquardt (or other curve fitting) — Fearless Fool <r@...>
Sooner or later, my Rails app will need a good curve fitting algorithm
[#382743] newbie to using builder(xml) — Brad Symons <snomys@...>
Hi,
[#382764] rubygems-update 1.8.1 Released — Eric Hodel <drbrain@...7.net>
rubygems-update version 1.8.1 has been released!
[#382777] Ruby Activity — "Bobby S." <kajisakka@...>
Is ruby still being developed? The official site has last release in dec
Ruby comes with tk build in. While your investigating which toolkits
I'm using Ruby 1.8.7 and it does not contain TK...
On Tue, May 10, 2011 at 2:46 PM, Patrick Lynch <kmandpjlynch@verizon.net> wrote:
Hi,
> I'm actually using a Mac with Snow Leopard...
If you use macports this is how you enable the variant flag:
Good morning,
On Thu, May 12, 2011 at 7:45 AM, Patrick Lynch <kmandpjlynch@verizon.net> wrote:
Thank you Hassan...
On Thu, May 12, 2011 at 5:19 PM, Patrick Lynch <kmandpjlynch@verizon.net> wrote:
2011/5/12 Patrick Lynch <kmandpjlynch@verizon.net>:
[#382788] Help with while condition OR condition — "Bill W." <sirwillard42@...>
Hi everyone,
Hi,
[#382795] Threading Loops — "Bobby S." <kajisakka@...>
I understood how to thread functions, but I don't understand how to
[#382821] Help needed to start with RoR — Rushabh Hathi <rushabhhathi@...>
Hi,
[#382825] Capistrano deployment issue ? — kalyan <bdurgaprasad_nyros@...>
Hi ,
[#382841] Problem setting up heroku: "Unable to verify SSL certificate for api.heroku.com" — Max Williams <toastkid.williams@...>
Hi all. I'm trying to deploy a test app up to heroku. I've got a
On Sun, May 8, 2011 at 9:15 AM, Max Williams
Hassan Schroeder wrote in post #997393:
On Sun, May 8, 2011 at 10:06 AM, Max Williams
Hassan Schroeder wrote in post #997400:
[#382853] Index to coordinates conversion, according the matrix shape — "Paul A." <cyril.staff@...>
Hello,
[#382860] How to access ms-word hrough ruby — "abha t." <aabhaatiwari@...>
I already tried the word examples given here but nothing seems to work
[#382863] Crash with ruby1.9 on 64 bit system — Nitin kasture <nitin.kasture@...>
Hello
[#382868] Ruby Regex — flebber <flebber.crue@...>
I am new too using regex on files and I am not quite getting the
[#382876] Pdf Parsing Project Example — Felipe Espinoza <fespinozacast@...>
Hi,
[#382901] Starting Method/Class issues — TJ Wilkes <tjwilkes@...>
Hi I've been learning Ruby to help with scripting some tests, but the
TJ Wilkes wrote in post #997808:
[#382903] Ruby 1.9.3 documentation challenge — Eric Hodel <drbrain@...7.net>
With the freeze of Ruby 1.9.3 coming up near the end of the month I =
this is certainly a worthwhile effort - thanks for organizing it...
I'm not sure who makes these decisions for ruby-doc.org, but is there any chance that we could get Yardoc-formatted documentation (or at least a fresh stylesheet for standard rdoc output) this time around?
On Wed, May 11, 2011 at 14:32, David Jacobs <developer@wit.io> wrote:
Hi,
Markus Fischer wrote:
[#382904] Enumerable#find returns an enumerator? — Roger Pack <rogerpack2005@...>
Hello all.
The find method on an array takes a block and returns an enumerator if =
On 10.05.2011 22:33, Lars Schirrmeister wrote:
Robert K. wrote in post #997848:
On Wed, May 11, 2011 at 10:43 AM, Brian Candler <b.candler@pobox.com> wrote:
[#382913] Generate random string matching specific pattern and length — Kevin <darkintent@...>
I'm trying to generate a random set of strings to fill a database with that
On Tue, May 10, 2011 at 9:56 PM, Kevin <darkintent@gmail.com> wrote:
[#382916] gsub and multiple-replacement — Greg Hacke <greghacke@...>
So I have a file that I am replicating per user.
require 'stringio'
[#382931] faster_require 0.9.2 — Roger Pack <rogerpack2005@...>
Hello all.
On Wed, May 11, 2011 at 09:32:03AM +0900, Roger Pack wrote:
[#382934] How to get index&summary of remote gem library — John <jhs408@...>
Is there a command or a file which can be downloaded which contains a
[#382941] how to do task-level parallelism in Windows? — Zd Yu <zdyu2000@...>
I want to achieve better performance through parallelism. The
On 05/10/2011 08:38 PM, Zd Yu wrote:
Joel VanderWerf wrote in post #997899:
On Tue, May 10, 2011 at 9:43 PM, Zd Yu <zdyu2000@gmail.com> wrote:
Christopher Dicely wrote in post #997903:
On Wed, May 11, 2011 at 2:42 AM, Zd Yu <zdyu2000@gmail.com> wrote:
[#382974] How to get the IPs of all the interfaces in my host? — Iñaki Baz Castillo <ibc@...>
Hi, basically I'm looking for a way to find all the IP's in the
[#382978] RSpec is doing a Samoa on me — Iain Barnett <iainspeed@...>
Hi,
[#382991] Scope problem (?) in implementing Design Patterns in Ruby — RichardOnRails <RichardDummyMailbox58407@...>
Hi,
RichardOnRails wrote in post #998059:
7stud -- wrote in post #998081:
Hi 7Zip and David,
[#383006] Creating and Executing New Threads — Dan King <dan.king106@...>
I expected the script below to do the following:
[#383021] rubygems-update 1.8.2 Released — Eric Hodel <drbrain@...7.net>
rubygems-update version 1.8.2 has been released!
[#383025] how to make eval() faster? — Zd Yu <zdyu2000@...>
I use eval() to dynamically calculate performance metrics.
On 05/11/2011 09:53 PM, Zd Yu wrote:
[#383041] Learning Ruby advice needed — Rubist Rohit <passionate_programmer@...>
While learning a new language, I find it very boring to read again the
> ...I find it very boring to read again the
I don't understand how you all feel so comfortable with "irb". It is
On Fri, May 13, 2011 at 01:01:29AM +0900, Rubist Rohit wrote:
Rubist Rohit wrote in post #998271:
> I never use irb or python's irb. I consider them a complete waste of
[#383043] see me — "M.VENI NIRMALA" <mveni.nirmala@...>
veni.497@rediffmail.com
[#383046] where does the pure method defined when starting irb — Brian Xue <brxue.cn@...>
Hello,
On Thu, May 12, 2011 at 2:40 AM, Brian Xue <brxue.cn@gmail.com> wrote:
Christopher Dicely wrote in post #998250:
Thanks all for your kindly explanation. It really helps.
Brian Xue wrote in post #998397:
[#383047] RubyGems 1.8 treats warnings as errors for C extensions, fails to install RedCloth? — Quintus <sutniuq@...>
-----BEGIN PGP SIGNED MESSAGE-----
On Thu, May 12, 2011 at 23:00, Ryan Davis <ryand-ruby@zenspider.com> wrote:
[#383048] Digest::Base problem — Martin Hansen <mail@...>
I have the following problem:
On Thu, May 12, 2011 at 12:59 PM, Martin Hansen <mail@maasha.dk> wrote:
> Do you have OpenSSL devel packages installed? Are they found by
On Thu, May 12, 2011 at 1:55 PM, Martin Hansen <mail@maasha.dk> wrote:
> Yes. OpenSSL provides the crypto-backend that Ruby uses.
On Thu, May 12, 2011 at 2:45 PM, Martin Hansen <mail@maasha.dk> wrote:
> ./configure --help should, well, help.
On Thu, May 12, 2011 at 6:59 AM, Martin Hansen <mail@maasha.dk> wrote:
> Ubuntu: apt-get install libssl-dev
On Thu, May 12, 2011 at 9:22 AM, Martin Hansen <mail@maasha.dk> wrote:
On Thu, May 12, 2011 at 10:15 AM, <brabuhr@gmail.com> wrote:
[#383059] Optimize write of large file — "Yoann M." <yoann6@...>
Hello,
[#383093] Shell pipeline in Ruby? — Michal Suchanek <hramrach@...>
Hello,
Have you checked out Open3.pipeline?
In the spirit of the recent call for better ruby documentation, I wrote
On Thu, May 12, 2011 at 6:05 PM, Michal Suchanek <hramrach@centrum.cz> wrote:
On 13 May 2011 10:44, Robert Klemme <shortcutter@googlemail.com> wrote:
[#383098] Jruby -v failing with possible Java version issue — Ruby Student <ruby.student@...>
Hello team,
Hi,
On Fri, 13 May 2011, Ruby Student wrote:
But I have 1.6, I installed it.
On Fri, 13 May 2011, Ruby Student wrote:
OK gents, I installed Java 1.6 and pointed to it via the JAVA_HOME
[#383140] Email Parsing — Robert Johns <piratej74@...>
How would I only pull links from the email's body and not the full
[#383144] indenting "end" — Chad Perrin <code@...>
I've been seeing a lot of this lately:
[#383180] io_splice 4.0.0 - zero-copy pipe I/O for Linux and Ruby — Eric Wong <normalperson@...>
The splice family of Linux system calls can transfer data between file
[#383182] ruby.exe crashing on windows xp — "Glory L." <glory.lo778@...>
Hi there,
On May 13, 5:03=A0pm, "Glory L." <glory.lo...@gmail.com> wrote:
Luis Lavena wrote in post #998653:
On May 15, 6:10=A0pm, "Glory L." <glory.lo...@gmail.com> wrote:
Luis Lavena wrote in post #999023:
On Tue, May 17, 2011 at 12:08 AM, Glory L. <glory.lo778@gmail.com> wrote:
[#383186] help on threads synchronization — Zd Yu <zdyu2000@...>
How to make two threads do something in turn, i.e., A => B => A => B
[#383201] Calcul XOR : array , times. — aix aix <ruby.aix@...>
Hello ,
[#383217] Ruby socket does not get reply — Robert Garrido <rob_gar_esp@...>
Hi all,
> puts socket.read
Roger Pack wrote in post #998583:
[#383235] Any working translation framework available for Ruby — Michal Suchanek <hramrach@...>
Hello,
[#383238] no such file to load only in ruby 1.9.2 — "james b." <jamesbirtles@...>
I am making a gem and i have three files:
[#383243] rdoc 3.6 Released — Eric Hodel <drbrain@...7.net>
rdoc version 3.6 has been released!
[#383257] search nearest to elements in array (hash) — "Mateus .." <excanoe@...>
Hi!
[#383270] Counting how many times the same elements occurs in an array? — Thomas Greenwood <nedpointsman@...>
There's probably a fairly simple way to do this.
I'm sure your solutions are better than mine, what I ended up doing;
[#383271] Ruby Future Or? — Robert Johns <piratej74@...>
I was thinking today and I was wondering if ruby has a future when
Python and Ruby are pretty much in the same boat. Python won't be the
On Sun, 15 May 2011 20:31:39 +0900
On Mon, May 16, 2011 at 05:30:53PM +0900, spiralofhope wrote:
> The other thing is taste: I personally don't like the
[#383305] Linux utility with reverse index facility? — no.top.post@...
awk &stuff can "give me the the Nth element",
On 2011-05-16, no.top.post@gmail.com wrote:
[#383306] canonical/syntax-diagrams representation. — no.top.post@...
I started investigating ruby.
On 05/16/11 20:37, no.top.post@gmail.com wrote:
unknown wrote in post #998975:
[#383314] BARRIER - ruby gem - code converter not found (UTF-16LE to IBM737) — Ilias Lazaridis <ilias@...>
After visiting ruby-lang.org, I decided to get the actual 1.9.2
[#383369] Re: canonical/syntax-diagrams representation. — no.top.post@...
Well it's good to see that there are some adults on THIS group too.
> I love jazz: how it offers the oportunity for the artist to display
[#383371] LL(k) grammar for an interesting *subset* of Ruby ? — Jean-Christophe Le Lann <jean-christophe.lelann@...>
Hello
[#383380] Ruby/Sinatra - Variable inside erb calls — Scott Elwood <elwood32@...>
Hi there,
[#383383] Negotiating alert box in ruby — "manish t." <stallonespecial@...>
Hi
[#383394] File.open options hash "mode" as int — Roger Pack <rogerpack2005@...>
Hello.
Well, the docs say this:
[#383402] need help with "module" and variable — keinlezard <keinlezard@...>
hello
Don't use global variables--ever.
[#383403] Pdf Parsing Challenge — Felipe Espinoza <fespinozacast@...>
Hi Everyone,
[#383433] Making fibers enumerable — Rahul Kumar <rahulsinner@...>
Hi,
[#383442] Generating Functions in Ruby — Andreas Lundgren <andreas.lundgren.x@...>
Hi!
On Wed, May 18, 2011 at 3:46 PM, Andreas Lundgren
[#383468] Gambit REPL app for iPhone/iPod touch/iPad — Marc Feeley <feeley@...>
A version of the Gambit Scheme system for iPhone/iPod touch/iPad is
On May 19, 10:58=A0am, Brian Candler <b.cand...@pobox.com> wrote:
[#383476] Writing formulas to excel spreadsheet — Will James <ampclj9@...>
Hi, everyone. I've just started using ruby a couple of days ago, and
Have a look at :rubyonwindows.blogspot.com/search/label/excel
Will
Daniel Berger wrote in post #999984:
On Sat, May 21, 2011 at 11:28:26AM +0900, Will James wrote:
Chad Perrin wrote in post #1000098:
On Sun, May 22, 2011 at 06:14:10AM +0900, Mike Stephens wrote:
Chad Perrin wrote in post #1000266:
On 23 May 2011 23:38, Mike Stephens <rubfor@recitel.net> wrote:
On Sat, May 21, 2011 at 3:28 AM, Will James <ampclj9@hotmail.com> wrote:
> Actually, the original version of this used Microsoft Excel
[#383478] Using "class Object" for a project — "Markus H." <shevegen@...>
Hello.
[#383501] Ruby interpreter on the iPad — Franck Ditter <franck@...>
Is there any such beast, like Python, Scheme, CAML which are already there ?...
[#383510] mysql gem failure — Dave Lilley <dglnz2@...>
This is cross posted from ironruby where I've not had any replies.
[#383512] Another Couch potato question: Dealing with classic concurrency conflict — Oren Shani <orenshani7@...>
Hi All,
On Fri, May 20, 2011 at 12:50 PM, Oren Shani <orenshani7@gmail.com> wrote:
Robert K. wrote in post #999847:
[#383523] Looping n rows in table — "Ashok T." <tulachanashok@...>
Hello everyone,
[#383528] BARRIER - ruby yaml - utf-8 characters not human readable — Ilias Lazaridis <ilias@...>
After reading within some archives, it seems that the standard-
[#383534] Object-Oriented thinking — Michael Sokol <mikaa123@...>
Hello everyone,
On Friday, May 20, 2011 12:58:26 PM Michael Sokol wrote:
[#383556] Ruby Clasess — Ruby Users Ruby Users <unc88@...>
How do I get all the classes that descend from a parent class ? I found
[#383558] Teaching Ruby in CS1 — Franck Ditter <franck@...>
Who knows some good CS1 references for teaching Python ?
I was meaning "Ruby in CS1" of course. Ooops !
[#383572] Array.index with utf-8 — Misha Ognev <b1368810@...>
Hi. I have a problem.
[#383593] rubyscript2exe error message — Gavin Chen <dickyhide@...>
First I used "gem install reubyscript2exe" to install
[#383597] BARRIER - json, thin, eventmachine - do not install on windows — Ilias Lazaridis <ilias@...>
I use a fresh installation of ruby 1.9.2p180 to make some tests with
On 23 =CC=DC=FA=EF=F2, 02:27, Johnny Morrice <sp...@killersmurf.com> wrote:
[#383603] Coderr - Premium Ruby and Python Assets Marketplace. — gal harth <galharth960@...>
Check out coderr.net, my newest startup. We are changing the ruby and
[#383614] Ruby, Sinatra, DataMapper, and Heroku.what am I missing? — "Brandon G." <b.a.gerke@...>
All I'm trying to do is deploy an app I made using Heroku, because it
[#383629] Tools for Ruby code analysis — "Alex V." <alex.vpro@...>
Hello everyone,
Hello Ryan, thank you for your detailed answer. I still have a lot of
> Did you install the development libraries for zlib, OpenSSL, and
[#383678] "Local variable within code blocks do not interfere with those outside the block" — Kaye Ng <sbstn26@...>
I read this in a book.
I have jpg file Here the results are available(screen shot)
[#383686] Using sprintf() to print a Hash — Iñaki Baz Castillo <ibc@...>
Hi, I just have a single Hash and want to print it into the standar
2011/5/24 I=C3=B1aki Baz Castillo <ibc@aliax.net>:
2011/5/24 I=C3=B1aki Baz Castillo <ibc@aliax.net>:
On Tue, May 24, 2011 at 1:59 PM, I=F1aki Baz Castillo <ibc@aliax.net> wrote=
2011/5/24 Robert Klemme <shortcutter@googlemail.com>:
[#383712] Changes for Ruby in Debian (and Ubuntu) — Lucas Nussbaum <lucas@...>
Hi,
On Tue, May 24, 2011 at 4:48 PM, Lucas Nussbaum
2011/5/25 Eric Christopherson <echristopherson@gmail.com>:
On Tue, May 24, 2011 at 4:48 PM, Lucas Nussbaum <lucas@lucas-nussbaum.net>wrote:
On Mon, Jun 6, 2011 at 4:28 PM, andrew mcelroy <sophrinix@gmail.com> wrote:
On Tue, Jun 07, 2011 at 12:22:08AM +0900, Phillip Gawlowski wrote:
[#383760] Method that mutates object — jason solomon <solomon.jas@...>
Say we want to write a String method called clear that takes a given
I understand that using String#replace works for the String class, but
On Thu, May 26, 2011 at 2:34 PM, Gary Wright <gwtmp01@mac.com> wrote:
Thanks again for all replies as it has helped me to wrap my head around
[#383770] jruby --1.9 : Exception in thread "RubyThread-1: threadtest.rb:1" java.lang.LinkageError: loader (instance of org/jruby/util/JRubyClassLoader): attempted duplicate class definition for name: "threadtest$block_0$RUBY$true?" — Markus Fischer <markus@...>
Hi,
That's wacked. Please file a bug at http://bugs.jruby.org. Looks like
On 03.06.2011 18:51, Charles Oliver Nutter wrote:
On Sun, Jun 5, 2011 at 10:41 AM, Markus Fischer <markus@fischer.name> wrote:
[#383782] Net::Telnet into Net::SSH — Josh Hurtado <djotter@...>
Hi,
[#383784] how to mark color on csv file — Gavin Chen <dickyhide@...>
I can write/read the csv file by my ruby script.
[#383790] CORE - Object Instantiation and Location — Ilias Lazaridis <ilias@...>
#ruby 1.9
On 26 =CE=9C=CE=AC=CF=8A=CE=BF=CF=82, 13:31, Roger Braun <ro...@rogerbraun.=
On Thu, May 26, 2011 at 3:53 PM, Ryan Davis <ryand-ruby@zenspider.com>wrote:
[#383810] Need help bringing select array lines together — Paul <tester.paul@...>
Hi there, I am looking at some old, confusing ruby code that works but
> The code reads in each line of an array, looks for a closing/ending "
[#383817] Doing LSI at scale in Ruby — Chris Kottom <chris@...>
Hi all,
On 05/27/11 04:32, Chris Kottom wrote:
Starting about a week ago, ruby is crashing fairly often during rails =
[#383829] ruby fork (thread like) on windows — Adam Lauper <adamlauper@...>
Hi All,
[#383837] graph 2.1.0 Released — Ryan Davis <ryand-ruby@...>
graph version 2.1.0 has been released!
[#383838] require in 1.9.2 and 1.9.1 — Ill Everbe <illeverbe@...>
#i have a file 'user.rb' in the current directory. if i ...
On Thu, May 26, 2011 at 9:22 PM, Ill Everbe <illeverbe@yahoo.com> wrote:
[#383858] Gem::RemoteSourceException — unbewusst.sein@... (Une B騅ue)
I'm using :
[#383865] Read symbols from external file — Agent Mulder <mbmulder@...>
=begin
[#383890] porting Ruby to an embedded target — "Wilde, Donald S" <donald.s.wilde@...>
Greetings, Rubyists -
[#383897] Hash .each and different action for each key — Igor Nn <storm8000@...>
Hello -
[#383910] Variable scopes with code blocks. — "Patrick Lynch" <kmandpjlynch@...>
Hello!
[#383919] Problem in using %:whatever in enumumerations — RichardOnRails <RichardDummyMailbox58407@...>
Hi,
[#383944] We want to start translating ruby-dev, so please let us know where to start — Yutaka Hara <yutaka.hara@...>
Hello,
[#383961] CORE - Specialized Attribute Definition — Ilias Lazaridis <ilias@...>
ruby 1.9
[#383973] Error while installing GEM WMQ — Ruby Student <ruby.student@...>
Hi,
Do you have the ruby development libraries installed? In Debian like =
Kristofer,
[#383981] What editor or IDE do you use? — Mike Hansen <skrabbit@...>
I'm pretty new to Ruby. What editor or IDE do you use? I usually use VIM
(In the following, I will use "vi" to refer to vi-like editors in
New POLL!!!
Jeez... BSD or Linux... or Doze?=20
On Thu, Jun 02, 2011 at 03:09:06AM +0900, Wilde, Donald S wrote:
You made your point succinctly and eloquently Chad.
Let me add to this thread that the editors of dedicated IDEs are
On Thu, Jun 02, 2011 at 06:35:40AM +0900, Xavier Noria wrote:
On Thu, Jun 02, 2011 at 08:35:33AM +0900, Wilde, Donald S wrote:
Well, the argument "since Ruby is not as heavyweight as Java or C++,
On Thu, Jun 02, 2011 at 04:18:35PM +0900, Xavier Noria wrote:
Vim all the way. For me, fits the Ruby mantra of keeping things simple but flexible.
On 01.06.2011 00:36, David Jacobs wrote:
ANN: Sequel 3.23.0 Released
Sequel is a lightweight database access toolkit for Ruby.
* Sequel provides thread safety, connection pooling and a concise
DSL for constructing SQL queries and table schemas.
* Sequel includes a 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, savepoints,
two-phase commit, transaction isolation, master/slave
configurations, and database sharding.
* Sequel currently has adapters for ADO, Amalgalite, DataObjects,
DB2, DBI, Firebird, Informix, JDBC, MySQL, Mysql2, ODBC, OpenBase,
Oracle, PostgreSQL, SQLite3, Swift, and TinyTDS.
Sequel 3.23.0 has been released and should be available on the gem
mirrors.
= New Features
* Sequel now allows dynamic customization for eager loading.
Previously, the parameters for eager loading were fixed at
association creation time. Now, they can be modified at query
time. To dynamically modify an eager load, you use a hash with
the proc as the value. For example, if you have this code:
Artist.eager(:albums)
And you only want to eagerly load albums where the id is greater
than or equal to some number provided by the user, you do:
min = params[:min].to_i
Artist.eager(:albums=>proc{|ds| ds.where{id > min}})
This also works when eager loading via eager_graph:
Artist.eager_graph(:albums=>proc{|ds| ds.where{id > min}})
For eager_graph, the dataset is the dataset to graph into the
current dataset, and filtering it will result in an SQL query
that joins to a subquery.
You can also use dynamic customization while cascading to also
eagerly load dependent associations, by making the hash value
a single entry hash with a proc key and the value being the
dependent associations to eagerly load. For example, if you want
to eagerly load tracks for those albums:
Artist.eager(:albums=>{proc{|ds| ds.where{id > min}}=>:tracks})
* Sequel also now allows dynamic customization for regular
association loading. Previously, this was possible by using the
association's dataset:
albums = artist.albums_dataset.filter{id > min}
However, then there was no handling of caching, callbacks, or
reciprocals. For example:
albums.each{|album| album.artist}
Would issue one query per album to get the artist, because the
reciprocal association was not set. Now you can provide a
block to the association method:
albums = artist.albums{|ds| ds.filter{id > min}}
This block is called with the dataset used to retrieve the
associated objects, and should return a modified version of that
dataset.
Note that ruby 1.8.6 doesn't allow blocks to take block arguments,
so you have to pass the block as a separate proc argument to the
association method if you are still using 1.8.6.
* Sequel now supports filtering by associations. This wasn't
previously supported as filtering is a dataset level feature and
associations are a model level feature, and datasets do not depend
on models. Now, model datasets have the ability to filter by
associations. For example, to get all albums for a given artist,
you could do:
artist = Artist[1]
Album.filter(:artist=>artist)
Since the above can also be accomplished with:
artist.albums
this may not seem like a big improvement, but it allows you to
filter on multiple associations simultaneously:
Album.filter(:artist=>artist, :publisher=>publisher)
For simple many_to_one associations, the above is just a simpler
way to do:
Album.filter(:artist_id=>artist.id, :publisher_id=>publisher.id)
Sequel supports this for all association types, including
many_to_many and many_through_many, where a subquery is used, and
it also works when composite key associations are used:
Album.filter(:artist=>artist, :tags=>tag)
This will give you the albums for that artist that are also tagged
with that tag. To provide multiple values for the same
association, mostly useful for many_to_many associations, you can
either use separate filter calls or specify the conditions as an
array:
Album.filter(:tags=>tag1).filter(:tags=>tag2)
Album.filter([[:tags, tag1], [:tags, tag2]])
* A columns_introspection extension has been added that makes
datasets attempt to guess their columns in some cases instead of
issuing a database query. This can improve performance in cases
where the columns are needed implicitly, such as graphing. After
loading the extension, you can enable the support for specific
datasets by extending them with Sequel::ColumnIntrospection. To
enable introspection for all datasets, use:
Sequel::Dataset.introspect_all_columns
* A serialization_modification_detection plugin has been added.
Previously, Sequel could not detect modifications made to
serialized objects. It could detect modification if you assigned
a new value:
model.hash_column = model.hash_column.merge(:foo=>:bar)
but not if you just modified the object directly:
model.hash_columns[:foo] = :bar
With this plugin, such modifications can be detected, at a
potentially significant performance cost.
= Other Improvements
* When using a migration directory containing both older integer
migrations and newer timestamp migrations, where some integer
migrations have not been applied, make sure to apply the remaining
integer migrations before the timestamp migrations. Previously,
they could be applied out of order due to a lexicographic sort
being used instead of a numeric sort.
* If a model does not select all columns from its table, the
insert_select optimization is no longer used. Previously,
creating a new model object for such a model could result in the
object containing columns that the model does not select.
* You can now use :select=>[] as an option for many_to_many
associations to select all columns from both the associated
table and the join table. Previously, this raised an error and
required you do :select=>'*'.lit as a workaround. The default
remains to select all columns in the associated table and none
from the join table.
* The xml_serializer plugin now handles namespaced models by
using __ instead of / as the namespace separator. Previously, /
was used and caused problems as it is not valid XML.
* The :eager_grapher association option can now accept a proc that
takes a single hash of options instead of a fixed 3 arguments.
This is the recommended way going forward of writing custom
:eager_graphers, and all of the internal ones have been converted.
The previous way of using 3 arguments is still supported.
* A bug in the identity_map plugin for many_to_one associations
without full association reflection information has been fixed.
* Sequel is now using GitHub Issues for issue tracking. Old issues
have been migrated from Google Code.
= Backwards Compatibility
* The filter by associations support breaks backward compatibilty for
users who previously added an sql_literal instance method to
Sequel::Model. Usually, that was done to for reasons similar to
but inferior than the filter by association support. The following
code can be used as a temporary workaround until you can modify
your program to use the new filter by associations support:
Sequel::Model::Associations::DatasetMethods.
send(:remove_method, :complex_expression_sql)
* The private Sequel::Model#_load_associated_objects method now takes
an additional, optional options hash. Plugins that override that
method need to be modified.
Thanks,
Jeremy
* {Website}[http://sequel.rubyforge.org]
* {Source code}[http://github.com/jeremyevans/sequel]
* {Blog}[http://sequel.heroku.com]
* {Bug tracking}[http://github.com/jeremyevans/sequel/issues]
* {Google group}[http://groups.google.com/group/sequel-talk]
* {RDoc}[http://sequel.rubyforge.org/rdoc]
--
Posted via http://www.ruby-forum.com/.