[#376260] On Mac: File.file? behaves strangely — Ronald Fischer <rovf_via_ruby_forum@...>
Or, rather, I probably just made a silly mistake which I can't see
[#376272] Undefined local var hash not trapped — RichardOnRails <RichardDummyMailbox58407@...>
The following program:
[#376274] Best Linux Distro for Ruby? — Nick Hird <boondox@...>
What are some of the better linux distro's for ruby development? I know
On Jan 9, 10:10m, "Jon W." <django...@gmail.com> wrote:
Gentoo is good choice. I install ruby 1.9.2 from source code.
[#376277] 1.respond_to? :define_singleton_method # => true — timr <timrandg@...>
In 1.9,
hex,
[#376285] Problem with LOAD_PATH after gem update — Len Lawrence <lcl@...>
Mandriva 2010.1, ruby 1.8.7, gem 1.4.1
[#376310] Validates is exists — "Jose tomas R." <jtomasrl@...>
Event has_and_belongs_to_many :users
[#376329] Is singleton class of an object already created? — Samnang Chhun <samnang.chhun@...>
I would like to know is there any ways to check is singleton class of an
Could you simply count singleton_methods? If singleton_methods returns
[#376333] Threading in ruby — "Vishnu I." <pathsny@...>
Hi
On Tue, Jan 4, 2011 at 8:41 AM, Vishnu I. <pathsny@gmail.com> wrote:
Robert Klemme wrote in post #972187:
On Tue, Jan 4, 2011 at 10:53 AM, Vishnu I. <pathsny@gmail.com> wrote:
Hi Robert
On Thu, Jan 6, 2011 at 10:23 AM, Vishnu I. <pathsny@gmail.com> wrote:
[#376339] ripl - an irb alternative - 0.3.0 released — ghorner <gabriel.horner@...>
ripl, a light modular alternative to irb, has reached 0.3.0. ripl
Am 04.01.2011 14:55, schrieb ghorner:
On Jan 5, 10:55m, Michal Suchanek <hramr...@centrum.cz> wrote:
On 6 January 2011 02:10, ghorner <gabriel.horner@gmail.com> wrote:
On Jan 7, 5:18m, Michal Suchanek <hramr...@centrum.cz> wrote:
On 8 January 2011 06:10, ghorner <gabriel.horner@gmail.com> wrote:
[#376373] mixin technique overrides variables — "Konrad K." <konrad.krol89@...>
Take a look at code bellow:
[#376375] Rubygems, RVM and Bundler Confustion — lucky Developer <lakshmanan@...>
I am really confused with how these three (rubygems, rvm and bundler)
[#376382] Class Initialization? — Kedar Mhaswade <kedar.mhaswade@...>
I have a class and two class methods: self.encode and self.decode. The
On Wed, Jan 5, 2011 at 9:33 AM, Kedar Mhaswade <kedar.mhaswade@gmail.com>wrote:
Robert, Andrew,
On Wed, Jan 5, 2011 at 12:18 PM, Kedar Mhaswade <kedar.mhaswade@gmail.com>wrote:
Andrew Wagner wrote in post #972567:
[#376388] Petition to add Metasploit Project as Ruby success story — Christian Kirsch <Christian_Kirsch@...7.com>
I noticed the Ruby success stories on the Ruby website. I would like to make a petition to list the open source Metasploit Project as a success story for the Ruby website. The Metasploit Project has seen more than a million unique downloads in the past 12 months and has over 700,000 lines of code, compared to 100,000 lines of the highly successful Ruby projects Puppet and Ruby on Rails.
On Jan 5, 2011, at 8:52 AM, Christian Kirsch wrote:
Hi James,
On Jan 5, 2011, at 12:06 PM, Christian Kirsch wrote:
Hi James,
On Jan 5, 2011, at 1:40 PM, Christian Kirsch wrote:
[#376394] How to view the converted sql from Activerecord method in view — Arun Kumar <jakheart001@...>
Hi All,
[#376396] Getting the actual size of a sparse file — Daniel Berger <djberg96@...>
Hi,
[#376428] Execute Ruby code after Gem is installed — Bryan Richardson <btrichardson@...>
Hello All,
[#376452] ruby method definition — Rail Shafigulin <rail.shafigulin@...>
i'm somewhat new to ruby, and as it seems this language is redefining
2011/1/6 Rail Shafigulin <rail.shafigulin@gmail.com>:
[#376453] Block variable - How is it read in English? — SW Engineer <abder.rahman.ali@...>
Following the "Ruby on Rails Tutorial", and under section "6.1.1
I would have thought this discussion is symptomatic of a lot of Rails
[#376458] From UTF-8 to windows-1252 — "Noé Alejandro Castro Sánchez" <casanejo@...>
Hello.
[#376491] String#% is not working on Ruby 1.8.7 — Vikrant Chaudhary <nasa42@...>
To reproduce, I just copied the example right from ruby-doc
On Fri, Jan 7, 2011 at 1:02 AM, Vikrant Chaudhary <nasa42@gmail.com> wrote:
On Fri, Jan 7, 2011 at 12:23 AM, Josh Cheek <josh.cheek@gmail.com> wrote:
[#376499] proctable library bad install — Roman Mandeleil <roman.mandeleil@...>
Hi,
2011/1/7 Roman Mandeleil <roman.mandeleil@gmail.com>:
zimbatm ... wrote in post #973161:
[#376503] More gems than CPAN modules? — Robert Klemme <shortcutter@...>
Hi,
[#376511] Is there any chance of getting the oniguruma patch into ruby 1.8.6 for windows — Zeno Davatz <zdavatz@...>
Hi
[#376515] Help with RubyGems — Institute For human continuity <misplaced.muse@...>
I am new to Ruby and programming, so please bear with me.
[#376526] File Dialog Box — Christopher Howard <christopher.howard@...>
I'm writing some scripts that do most everything from the command-line.
[#376550] Regarding the Versioning of Ruby — Su Zhang <zhangsu@...>
There are versions of ruby such as -
[#376552] file list sorted by creation date — Rajarshi Chakravarty <raj_plays@...>
Hi,
[#376574] Best way for Array#find+transform ? — "Jonas Pfenniger (zimbatm)" <jonas@...>
There is a pattern that I'm using quite regularly, but I'm not
> I know I can come up with a new method on Array that would shorten this to:
> paths.map{|path| File.join(path, filename)}.select{|name| File.exist?(path)}
2011/1/8 Anurag Priyam <anurag08priyam@gmail.com>:
Excerpts from Jonas Pfenniger (zimbatm)'s message of Sat Jan 08 16:05:05 -0800 2011:
2011/1/9 David J. Hamilton <groups@hjdivad.com>:
Excerpts from Jonas Pfenniger (zimbatm)'s message of Sun Jan 09 04:08:10 -0800 2011:
2011/1/10 David J. Hamilton <groups@hjdivad.com>:
On Mon, Jan 10, 2011 at 11:14 PM, Jonas Pfenniger (zimbatm)
Excerpts from botp's message of Mon Jan 10 18:48:14 -0800 2011:
On Tue, Jan 11, 2011 at 2:49 PM, David J. Hamilton <groups@hjdivad.com> wrote:
Excerpts from botp's message of Tue Jan 11 08:02:45 -0800 2011:
[#376583] Draw Line chart — Fan Jin <jeff_yq@...>
Hi:
Hi,
I know I'll get hate mail as soon as I press Submit but don't ignore the
[#376598] Confusion regarding boolean operators. — Kedar Mhaswade <kedar.mhaswade@...>
Apologies if this has been asked before (I tried to search).
[#376599] Programming exercises — serialhex <serialhex@...>
Hi, I was wondering if anyone knows any good programming
[#376611] RDoc and encoding — Claus Folke Brobak <cfb@...>
Hi,
[#376627] quickl 0.2.0 Released — Bernard Lambeau <blambeau@...>
quickl version 0.2.0 has been released !
[#376629] noe 1.0.0 Released! — Bernard Lambeau <blambeau@...>
noe version 1.0.0 has been released !
[#376665] Finding best way to pretty print XML files — "Pk Z." <k@...>
Havn't found best soultion to pretty print XML:
[#376680] Parallel Assignments and Elegance/Complexity Ratio. — Kedar Mhaswade <kedar.mhaswade@...>
In SICP, I read that "Programs should be written for people to read, and
On Tue, Jan 11, 2011 at 3:29 PM, Kedar Mhaswade
On Tue, Jan 11, 2011 at 8:29 AM, Kedar Mhaswade <kedar.mhaswade@gmail.com>wrote:
> literals, you would, of course, use the equivalent way, but if your data
On Tue, Jan 11, 2011 at 3:30 PM, Robert Klemme
On Wed, Jan 12, 2011 at 10:44 AM, Colin Bartlett
[#376682] JRuby 1.6.0.RC1 released — Thomas E Enebo <tom.enebo@...>
The JRuby community is pleased to announce the release of JRuby 1.6.0.RC1.
Stu wrote:
On Tue, Jan 11, 2011 at 4:04 PM, Thomas E Enebo <tom.enebo@gmail.com> wrote:
On Tue, Jan 11, 2011 at 9:59 AM, Robert Klemme
[#376703] Read csv file. Beginner's HELP!! — Kamarulnizam Rahim <niezam54@...>
Hai,
[#376707] Ruby 1.9.2-p0: segmenfault in multithreading when using a custom C extension — Iñaki Baz Castillo <ibc@...>
Hi, I've coded a SIP protocol parser (very close to the Ragel HTTP
2011/1/11 I単aki Baz Castillo <ibc@aliax.net>:
2011/1/12 I単aki Baz Castillo <ibc@aliax.net>:
2011/1/12 I単aki Baz Castillo <ibc@aliax.net>:
2011/1/12 Iñaki Baz Castillo <ibc@aliax.net>:
[#376713] :: -- operator or not? — Kedar Mhaswade <kedar.mhaswade@...>
::
[#376719] Read .csv file. Cant obtain data — Kamarulnizam Rahim <niezam54@...>
Here is the code i use:
[#376744] Case statements - Just beautification — flebber <flebber.crue@...>
I just want to clarify case statements the name after the word case is
[#376755] minitest --name regexp troubles — Suraj Kurapati <sunaku@...>
Hello,
[#376758] Exception Handling in Blocks — Bryan Richardson <btrichardson@...>
Hello All,
[#376764] String.strip with UTF-8 — "Erik E." <erik.eide@...>
Hi
Erik E. wrote in post #974416:
[#376765] random orc game — Steve Rees <stevoreesimo@...>
I am learning, slowly, how to use ruby.
[#376779] Threaded Socket communication problem. — Dominic Gatzen <dominic.gatzen@...>
Hi all.
[#376785] simple name of a class? — Kedar Mhaswade <kedar.mhaswade@...>
The name method of class Class returns the full name of a class (e.g.
[#376788] Weird error using String#[] — Jason Mcdonald <finn0013@...>
Please check out the attached file. I am writing a script to notify me
[#376792] Ruby is interpreted and scripting language? — Sai Babu <sateesh.mca09@...>
I am ruby fresher.
2011/1/13 Sai Babu <sateesh.mca09@gmail.com>:
As I see it, a language that is interpreted utilizes a middle-man to make
My personal definition of a compiled language is one that is outputted
[#376797] improvements on mixins — Joseph Lenton <jl235@...>
I'm currently building a Ruby-like language, heavily influenced by Ruby.
> If you do that, it would be nice if you could register any number of
[#376803] What is the difference between inject and reduce methods — Edmond Kachale <edmond.kachale@...>
Rubysters,
On Thu, Jan 13, 2011 at 1:59 AM, Edmond Kachale <
[#376808] Embedding Ruby Interpreter + RUBYGEMS — Christoph Müller <ruunhb@...>
Hello everybody,
[#376816] Thread Variable race condition — Karan Rajput <ganeshgirase@...>
Hi,
[#376818] Why {} is much faster than Hash.new ? — Iñaki Baz Castillo <ibc@...>
Hi, a simple benchmark:
[#376831] Setting the Excel workbook name through my Ruby Code. — Ankit Gupta <ankit.gupta8898@...>
Hi all,
Hi Ankit,
[#376855] Retrieving and copying element from array — Simon Harrison <simon@...>
If I have an array like this:
[#376858] Ruby without Tcl/Tk. — Glen Johnson <gjohnson@...>
Ruby-talk subscribers,
[#376860] Reading a CSV file with UTF-16LE encoding — Daniel de Angelis Cordeiro <dcordeiro@...>
Hy all,
[#376889] Best practice to require external code dependency ? — Bernard Lambeau <blambeau@...>
Hi Rubyist,
[#376898] What are your ruby rough cuts ? — "Jonas Pfenniger (zimbatm)" <jonas@...>
Hi rubyists,
On Friday, January 14, 2011 07:34:04 am Jonas Pfenniger (zimbatm) wrote:
David Masover wrote in post #975080:
On Saturday, January 15, 2011 04:42:58 am Joseph Lenton wrote:
On Sat, Jan 15, 2011 at 3:45 PM, David Masover <ninja@slaphack.com> wrote:
On Sat, Jan 15, 2011 at 2:59 PM, Tony Arcieri <tony.arcieri@medioh.com> wrote:
On Sat, Jan 15, 2011 at 5:34 PM, Christopher Dicely <cmdicely@gmail.com>wrote:
On Sat, Jan 15, 2011 at 4:45 PM, David Masover <ninja@slaphack.com> wrote:
[#376902] Ruby iterative depth. — Marcello Henrique <faraohh@...>
Hello,
[#376916] array dynamic intersection and union — Jamal Soueidan <jamal@...>
Hello,
[#376949] what's the difference between these two snippets of ruby? — "Mr. Bill" <mrbillhaxor@...>
Sorry I couldn't help the line wrapping. Thanks in advance.
[#376955] Dealing with TimeZones — "Thomas A. Moulton" <tom@...>
What is the easies to use package for dealing with time zones and DST
Hi Thomas,
[#376956] Find memory leak in 1.9 app — Julien Schmurfy <schmurfy@...>
Hello,
[#376983] Current class — Josh Cheek <josh.cheek@...>
Going through Metaprogramming Ruby, and the author, Paolo Perrotta points
[#376986] New String rules? — "felix.leg" <felix.leg@...>
I have just updated my Ruby into 1.9.0, and tried to run one of my
[#376996] Problem populating a hash with regex results — RichardOnRails <RichardDummyMailbox58407@...>
Hi,
[#377007] A tad of meta-programming needed — RichardOnRails <RichardDummyMailbox58407@...>
I've got the following hash set up and it works fine. But this took
[#377008] Why Ruby Does Not Support Method Overloading? — Peter Pk <rubyonrails37@...>
Hi Sir's,
[#377020] Obscure syntax error — Rolf Timmermans <molfie@...>
Hi all,
The format
On 17 January 2011 22:35, Ryan Davis <ryand-ruby@zenspider.com> wrote:
[#377040] initialize() in a module, is it correct? — Iñaki Baz Castillo <ibc@...>
Hi, for some exotic reason I need to define initialize() method in a
On Mon, Jan 17, 2011 at 6:51 PM, Iki Baz Castillo <ibc@aliax.net> wrote:
[#377048] Add value inside 'Nested Mappings String' — Kamarulnizam Rahim <niezam54@...>
Hi,
[#377052] Calling by Reference - Two Questions — Mike Stephens <rubfor@...>
I know I'm not the first person to get stumped by how to get Ruby to
On Mon, Jan 17, 2011 at 6:07 PM, Mike Stephens <rubfor@recitel.net> wrote:
Josh Cheek wrote
On Tue, Jan 18, 2011 at 2:06 PM, Mike Stephens <rubfor@recitel.net> wrote:
[#377072] The most recommended way of naming methods in Ruby — Edmond Kachale <edmond.kachale@...>
Rubists,
On Tue, Jan 18, 2011 at 9:16 AM, Edmond Kachale
> - Interrogative methods get phrased as questions:
On Tue, Jan 18, 2011 at 5:21 PM, Shadowfirebird
[#377097] Books and/or Tutorials — Karch <dimeneira@...>
Hello Fellow Ruby Users!
[#377121] Improving performance of hash math — dblock <dblockdotorg@...>
I am trying to improve performance of Euclidian distance between two
[#377148] local copy of rubyforge — CraftyTech <hmmedina@...>
Hello All,
[#377159] Each roll-over in File? — Don Wilde <dwilde1@...>
fellow, Rubyists:
[#377167] Unsupported digest algorithm (sha256). — yf kuanfai <kuanfai_yf@...>
Hi,
Hi,
[#377173] How to reference a different epoch. — Phil Henley <dantes990@...>
I'm trying to use the 'at' method in Time on some data pulled from an
[#377183] sorting songs to directories — Mikhail Slyusarev <slyusarevmikhail@...>
I've got a bunch of music that is in one directory and I wanted to sort
[#377185] Array within array question — Josh Rowe <joshua@...>
Hello everyone, this is my first post on this forum and I'm quite new to
[#377208] help on find over find — Mauricio Alcayaga <gusantor@...>
hi all
[#377213] Deleting from hashes — Josh Rowe <joshua@...>
Hi all!
[#377215] Installable Mac Application — Jim Freeze <jimfreeze@...>
Hi
[#377226] Totally lost in learning Ruby — Hilary Bailey <my77elephants@...>
This is my second attempt to understand Ruby. I completely read 1)
On Friday 21 January 2011 19:13:47 Hilary Bailey wrote:
Stefano Crocco wrote in post #976481:
On Saturday, January 22, 2011 10:44:56 pm Hilary Bailey wrote:
David Masover wrote in post #976879:
Hilary Bailey wrote in post #976477:
Hi David,
Hi Mike,
Based on the responses received I am leaned toward the following study
Hi everybody,
On Tue, Feb 8, 2011 at 3:16 AM, Hilary Bailey <my77elephants@gmail.com> wrote:
Robert Klemme wrote in post #980210:
On Tue, Feb 8, 2011 at 5:11 PM, Hilary Bailey <my77elephants@gmail.com> wrote:
Robert Klemme wrote in post #980520:
[#377235] execution expired - timeout — "Luis G." <l17339@...>
Hello guys.
[#377236] using gems installed via 'sudo gem install' — "Piotr S." <thisredoned@...>
I've installed ruby-opengl through sudo gem install because there were
[#377244] Spreadsheet -0.6.5.1 "invalid encoding" Problem — Tadeusz Bochan <tad.bochan@...>
Hi,
[#377260] Using net/HTTP - How to login and then retrieve data? — "Bob C." <rgc3679@...>
I'm new to Ruby, coming from Java. I need to write an HTTP client in
[#377268] Lexical vs Dynamic Scope — Tim Morgan <tim@...>
Forgive this very basic question, but Googling has not answered my
[#377272] swig and ruby — Alessandro Barracco <bomastudio@...>
Hi all, does anyone use swig to bind to C/C++ library? I would like to
[#377300] FastCSV fcsv and how to keep imported field format (or how to convert it) — Dot Baiki <dot_baiki@...>
Dear Community,
On Jan 23, 2011, at 5:47 AM, Dot Baiki wrote:
[#377304] Enumerable.inject_with_index? — redstun <redstun@...>
Enumerable.inject is pretty cool, but it treat the elements as if they have
On Sun, Jan 23, 2011 at 10:31 PM, redstun <redstun@gmail.com> wrote:
On Sun, Jan 23, 2011 at 11:00 PM, botp <botpena@gmail.com> wrote:
Cool! thanks!
[#377312] Help! Please, I'm lost! — Dark Haukka <lord_dark_haukka@...>
Well, I'm a spanish user, so I'm sorry if my English isn't good
[#377323] How to convert letters to uppercase? — Richard Sandoval <skolopen@...>
Im unfamiliar with regular expressions.
[#377335] Obtain 'CSV' data — Kamarulnizam Rahim <niezam54@...>
Hi guys,
[#377343] reverse engineering: "property[name=steps] > array" — Dan Thomas <danthom1000@...>
Hi,
[#377352] class_eval — Lorenzo Brito Morales <lorenzo.brito@...>
I cant not understand why these code is well
[#377362] pg gem 0.10.1 wth Ruby 1.9.2 does not work with method @pg_conn.exec_prepared(stmt_name, parameters) — Zeno Davatz <zdavatz@...>
Hi
[#377384] FileUtils writing to stderr — "Mark L." <marcuslamb@...>
Hi there,
[#377388] The finer points of postfix conditionals. — Jon Leighton <j@...>
Hi,
On Mon, Jan 24, 2011 at 3:22 PM, Jon Leighton <j@jonathanleighton.com> wrote:
Thanks for the explanation. FWIW I think it is a shame that postfix
On Mon, Jan 24, 2011 at 7:18 PM, Jon Leighton <j@jonathanleighton.com> wrote:
Robert Klemme wrote in post #977336:
On Tue, Jan 25, 2011 at 7:09 PM, Jon Leighton <j@jonathanleighton.com> wrote:
[#377399] Worker pool - what to use? — "Christoph B." <ch.blank@...>
Hey,
[#377411] Obtain data from .csv — Kamarulnizam Rahim <niezam54@...>
Sample of .csv file:
[#377413] Surely there's a better way to do this... (implementing a DSL) — Tony Arcieri <tony.arcieri@...>
I'm trying to write a method that builds a class and takes arguments from
On Tue, Jan 25, 2011 at 4:10 AM, Tony Arcieri <tony.arcieri@medioh.com> wrote:
[#377427] Add new value to top of an Array — "Sam T." <samtreweek@...>
Hi, Does anyone know how to add a new value to the top of an array,
[#377440] module_function and Object include. — Kedar Mhaswade <kedar.mhaswade@...>
I understand that the use of the Module's class method "module_function"
[#377461] Newbie moving from other language - simple inline Rails conditional — Peter D Bethke <peter.bethke@...>
Hi All,
[#377469] IO from text file — Michael Litton <macentricruby@...>
Info:
[#377472] to use AR or not? — Jason Cameron <cameronjc2000@...>
Hmmm I've been scratching my head at this for a little while and maybe
[#377476] writing on yaml file — Kamarulnizam Rahim <niezam54@...>
Hi guys,
[#377489] midiator 0.4.0 Released — Ben Bleything <ben@...>
midiator version 0.4.0 has been released!
On Wed, Jan 26, 2011 at 10:55 AM, Ben Bleything <ben@bleything.net> wrote:
On Tue, Jan 25, 2011 at 9:57 PM, botp <botpena@gmail.com> wrote:
Am 26.01.2011 07:13, schrieb Ben Bleything:
On Wed, Jan 26, 2011 at 5:48 AM, Quintus <sutniuq@gmx.net> wrote:
On Thu, Jan 27, 2011 at 12:12 AM, Ben Bleything <ben@bleything.net> wrote:
[#377510] Rails: Problem with test-environment and mysql2 database — vivec manavortex <ilikerubies@...>
Hi list,
[#377523] Coercion in Ruby — zdennis <zach.dennis@...>
A fellow rubyist, Zach Church, wrote a great article on coercion in
Just a small nitpick:
[#377527] Issues with Time.parse — Jens Finnäs <jens.finnas@...>
Hi,
[#377535] link to .erb file, from .erb file — Dan Thomas <danthom1000@...>
Hello,
[#377554] rhtml and apache trouble — Mitul Ti <mitultiwari@...>
I am trying to run embedded ruby inside rhtml.
[#377558] how to build gem whose dependencies depend of the platform? — Jarmo Pertman <jarmo.p@...>
Hi!
[#377574] Adding contents on yaml file without overwriting actual contents — Kamarulnizam Rahim <niezam54@...>
Hi,
[#377600] which Ruby is in use? — Hassan Schroeder <hassan.schroeder@...>
How can I tell from within a running program which interpreter is being
RUBY_DESCRIPTION will give you something like this:
[#377603] Modules acting up after relocating code — Walle Wallen <walle.sthlm@...>
Hello,
[#377608] performance question — klochner <klochner@...>
sorry for the cross-post from RoR, but I actually think this is more
On Jan 27, 11:37m, Chuck Remes <cremes.devl...@mac.com> wrote:
[#377609] why is overloading invalid in ruby. — Ted Flethuseo <flethuseo@...>
I don't understand why when I try to overload I get an error. Can I
On Friday 28 January 2011 04:22:47 Ted Flethuseo wrote:
Ah that's too bad... I knew I could put some default values for x and y
Adam Prescott wrote:
On Thu, Jan 27, 2011 at 11:22 AM, Ted Flethuseo <flethuseo@gmail.com> wrote:
On Thu, Jan 27, 2011 at 8:48 PM, Ben Bleything <ben@bleything.net> wrote:
So far I don't believe I've heard anyone make the obvious case against method overloading -- that unless done very carefully indeed, it makes the code much, much more difficult to read. One method does one job is the sane way to go, thanks.
On Mon, Jan 31, 2011 at 9:00 AM, Gary Wright <gwtmp01@mac.com> wrote:
[#377623] HELP! New to Ruby and need to debug for work! Chomp! Error — Doug Blackman <wdblackman@...>
Hi,
Thanks for replying Sam. I just tried it and got the same error
[#377634] Obtaining specific .csv data (one data at a time) — Kamarulnizam Rahim <niezam54@...>
Im using the following code:
[#377645] If you had the choice between Ruby & Groovy — Noah Cutler <sit1way@...>
Hey All.
[#377650] IDE? — <johan.tempelman@...>
Hi,
[#377653] Group elements by category — poles_apart <sergi.villanueva@...>
Hi! I'm a newbie on RoR, i'm just starting with it but i like it! But
[#377666] Alias method in module — Dagnan <dagnan@...>
Hi.
[#377668] Each Array Method Skipping first Array position — "Chris R." <chris.gogreen@...>
Could someone tell me why in the following code, when it iterates on the
[#377690] Simple way to detect 32bit vs 64bit? — Intransition <transfire@...>
Anyone have simple means for checking if the running arch is 32bit or 64bit?
[#377691] Packaging a Ruby file into a stand alone application — "Ajay R." <ajay.ravindrakumar@...>
Hello,
[#377703] Zlib::GzipReader and multiple compressed blobs in a single stream — Jos Backus <jos@...>
Hi,
On Jan 28, 2011, at 15:09, Jos Backus wrote:
On 02/02/2011 07:33 PM, Eric Hodel wrote:
On Thu, Feb 03, 2011 at 02:03:49PM +0900, Jeremy Bopp wrote:
On 2/3/2011 3:57 PM, Jos Backus wrote:
[#377761] New to programming AND new to Ruby — "Cassandra K." <cassandra.k@...>
Hello. I am trying to teach myself Ruby. I have no background in
[#377781] Regex Searching on Arbitrary Sequences — Michael Edgar <adgar@...>
Good day Rubyists,
[#377785] 2011: Which Ruby books have you read? And which would you recommend? — "Aston J." <azzzz@...>
I know there are a lot of threads about books, but some of them are as
1)For Beginners:
> I know there are a lot of threads about books, but some of them are as
I have Beginning Ruby and Beginning Rails. but no training as a programmers the real world do not want to help us with the questions about Ruby
[#377800] How to know the exit status within at_exit() block? — Iñaki Baz Castillo <ibc@...>
Hi, my program invokes "exit true" or "exit false" and I want to catch
On Tue, Feb 1, 2011 at 12:09 AM, Iki Baz Castillo <ibc@aliax.net> wrote:
2011/2/1 Robert Klemme <shortcutter@googlemail.com>:
On Wed, Feb 2, 2011 at 11:49 AM, Iki Baz Castillo <ibc@aliax.net> wrote:
On Jan 31, 2011, at 15:09, Iki Baz Castillo wrote:
2011/2/1 Eric Hodel <drbrain@segment7.net>:
On Wed, Feb 2, 2011 at 4:46 AM, Iki Baz Castillo <ibc@aliax.net> wrote:
2011/2/2 Josh Cheek <josh.cheek@gmail.com>:
On Feb 2, 2011, at 06:34, Iki Baz Castillo wrote:
2011/2/3 Eric Hodel <drbrain@segment7.net>:
Re: [poll] What are your ruby rough cuts ?
On Friday, January 14, 2011 07:34:04 am Jonas Pfenniger (zimbatm) wrote:
> this is a general census to get developer feedback. Please post the
> issues you encounter when developing in ruby. This can range from
> syntax issues, to library support, documentation, or anything that is
> a roadblock when developing in ruby.
In no particular order...
I wrote a long post because I don't have time to write a short one. To
summarize:
RubyGems:
- Play nice with other package managers
- Better installers for end-users
- gems/rvm/bundler confusion
Library management:
- Better namespacing
- Better handling of monkeypatching
Multithreading:
- Threads are too primitive
- Actors would be cool, but have issues
Wish list:
- Lisp-style Macros.
- Ruby-in-Javascript.
And now the rant:
Right now, Rubygems is both the biggest win and the biggest blocker for
newbies. I haven't been keeping track, so I find I now have to learn RVM and
Bundler just to keep up with the best practices for deploying a Rails app. And
how do these interact with the system Ruby? If I install a system package that
depends on a particular version of Ruby, will it get the version it expects,
or will it get my default RVM version?
Unfortunately, I don't have a good answer for this, and I don't really know
much about the solutions that do exist, but nearly every one I've tried has
been very messy in many ways. Installing gems to my home directory is just not
a good idea.
Another thing that I'd like to see more work on -- though I think alright
solutions exist, especially for JRuby -- is the ability to distribute Ruby
clients. It seems like there are two solutions, one for developers, and one
for end-users. The developer solution is to build it as a gem, but it's not
reasonable to ask an end-user to install Ruby, Rubygems, and then your gem.
The end-user solution is to build it as a giant monolithic file which includes
all relevant gems. Surely there's a middle ground -- a nice, intuitive
installer, but one which actually sets up a system Ruby and Rubygems for the
user, so that multiple programs don't have to separately download and install
the same libraries.
And Rubygems itself -- while it seems it's capable of understanding reverse
dependencies, I want to be able to automatically clean stuff that I don't need
anymore. Gemfiles are kind of a decent start, but I'm thinking something along
the lines of "manual" vs "automatic" in Debian, or even better, Gentoo's
/var/lib/portage/world. In particular, I want to be able to install a gem just
to see what it does, and if I don't like it, uninstall that gem and then clean
up every gem that was only installed because it was depended on.
RVM's gemsets are kind of cool, but they seem to be a workaround for not
having that functionality. The only other reason to have them seems to be when
developing a gem.
One more thing about gems: How do we know what a good gem is? I love how
decentralized it is now, at least in theory, but occasionally it means I need
to go through two or three gems and try each of them before I find either that
none of them does what I want, or some oddly named and maybe semi-obscure gem
is perfect.
Moving away from rubygems and installation, and to semantics...
A bit more namespacing would be awesome. The current practice of just dumping
something you hope is appropriate into the global namespace of constants is
bad enough. It's worse when we start monkey-patching other stuff.
I don't know how big a problem this actually is. It doesn't seem to actually
cause problems in practice, so maybe I'm overreacting. Still, I like how Perl
and Python handle this, where there's a difference between loading a library
and importing it into your namespace.
Namespacing constants aggressively shouldn't be too much of a burden, as Ruby
has the same shortcuts JavaScript does. Take JRuby. Sure, you can do this:
import java.util.PriorityQueue
But you can also do this:
pq = java.util.PriorityQueue
That's locally-scoped, which means you aren't polluting any namespace past the
end of the current block. Or you could do something like:
module MyMod
PQ = java.util.PriorityQueue
...
end
In both of these cases, you aren't affecting anything else in the same
runtime. But if you 'import' it globally, you've declared it, well, globally.
Point is, I don't think we should be afraid to do stuff like this, though we
could use just a bit of sugar to make it easier:
module FooCo
module LibFooVersion213
class Foo
...
end
end
end
Ok, yes, people will get sick of typing that, but again:
foo = FooCo::LibFooVersion213::Foo
Problem solved.
Monkey-patching is harder. Is there a way we can scope things like
Activesupport's hacks? Stuff like:
'bird'.pluralize
5.days.ago
foo.should be_valid
I love these things, but I wish there was a way I could declare them to be
only available in a certain context or scope. This seems like it needs some
language support to be really effective -- we could fake it now by mixing them
in and out of the core classes as needed, but that would affect any other
threads, so it kind of defeats the purpose if you're using multithreading.
Essentially, the idea here is that when multiple libraries inevitably end up
using the same name for something, we should be able to work around it. When
they don't, we don't want it to be a burden. (I think JQuery is a perfect
example of this done right.)
Let's get some proper multithreading, to start with. It's 2011. There is
really no excuse for a GIL. Either drop it or mainstream COW GC -- otherwise,
JRuby becomes the only real option for multicore on Ruby.
How about some higher-level threading constructs, too. There are a few gems
which add interesting ideas... However, there are limits to what you can do
with Ruby as it is, and these are partly due to the fact that it's not Erlang.
Again, I'm not sure of the best way to do this, but...
We have objects, and objects can, in principle, completely encapsulate their
state. We've actually got that implemented properly -- just look at send,
method_missing, the fact that we _need_ accessors, etc. This would be a
perfect fit for the actor model, and it's something I tried to do once, but
never really finished -- but essentially, why not "just" make all Ruby objects
actors?
Aside from performance issues, but I was going to do a proof-of-concept and
ignore those...
Well, I didn't quite finish it, but one problem I ran into in the design phase
is the fact that there's entirely too much Ruby code which wouldn't work at
all with this kind of design. For example:
foo.a += 1
Sure, you can override foo.a and foo.a= and either add a giant mutex, or push
them off to a separate thread. Either way, you're still going to have a race
condition between getting the value of a and setting it again. Something like
this might work:
foo.increment! :a
If you were to view each object as an actor, and each method call as a
message, stuff like that works very, very well. I still want to finish my
idea, because I think you could get a lot of mileage out of new objects which
were designed from the start to be actors. I think you could do that without a
lot of language overhead. I had a proof-of-concept partly done.
But that still doesn't change the fact that this will never work:
foo.some_hash[:a] += 1
Even after you make sure foo is an actor, and the some_hash it returns is some
sort of proxy object that serializes all access, you still have the race
condition between the call to [] and the call to []=.
I think that this kind of problem is exactly the kind of thing Ruby should be
concerned with. The typical Ruby battle cry has been "Hardware is cheaper than
programmers!" Well, alright, here's a machine with a few thousand cores. How
is Ruby going to handle that? Can the language itself be fixed, or does there
need to be a new one that combines the best of Ruby with the best of (say)
Erlang? (In other words, is something like Reia the way forward?)
I don't know, but while it's sort of workable now, it's probably _the_ single
language flaw that keeps me up at night.
There is one other that just annoys the purist in me...
Is there any way we can get anything like Lisp sexps? As I understand it, we
have a few Ruby parsers, but nothing standardized to the point where I can ask
the runtime itself to give me a parse tree for a given expression. The closest
I could find was various implementation-specific things and ruby_parser, which
is cool but buggy, missing a few of the 1.9 features.
But that I can live without. My rationale is, pretty much any syntactic
ugliness can be worked around with a preprocessor if it's _really_ bugging me
(see lazibi), and Ruby is pretty anyway. It's semantic ugliness that's tricky.
Ruby doesn't have GOTO, it doesn't have pointers or malloc, it's done away
with pretty much every bit of low-level nastiness associated with single-
threaded programming -- but the Thread system makes me feel like I'm in C
again, where the slightest mental mistake could lead to my entire program
screwing up in unimaginably arcane ways.
A final point: Browsers are getting fast enough that we should be able to do
Ruby in Javascript. And not a server-side implementation, either -- I want the
equivalent of JRuby. But this isn't really a limitation of Ruby, it's a
limitation of browsers that we'd be working around. The above rants are things
I actually feel are broken about Ruby as it is today.