[#365105] Synchronized Circular Buffer — Sam Dalton <mail@...>
I'm relatively new to Ruby, having switched from a PHP and Java
[#365112] Fast searching of large files — Stuart Clarke <stuart.clarke1986@...>
Hey all,
[#365147] Running a shell command from ruby — Steve Pauly <stevepauly@...>
I am experimenting with running bash commands from within ruby. The
[#365148] ANN: zozo 1.0.0 Released — Jeremy Evans <code@...>
= What?
[#365151] Handling File.open exceptions — Carl Jenkins <carljenkins@...>
I was reading the pick axe book (for 1.9 version of ruby) and on page
On 01.07.2010 22:24, Carl Jenkins wrote:
[#365153] synchronize a "mocked" clock in a distributed system — Chuck Remes <cremes.devlist@...>
I've been banging on a problem for a few days now and don't feel any closer to solving it. I'm hoping some of the big brains on the ruby ML can shed some light. Following are a few paragraphs with a brief system overview before I state the problem. I apologize in advance for this question being only tangentially related to Ruby the language. :)
On Thu, Jul 1, 2010 at 3:10 PM, Chuck Remes <cremes.devlist@mac.com> wrote:
Chuck Remes wrote:
On Mon, Jul 5, 2010 at 7:44 PM, William Rutiser <wruyahoo05@comcast.net> wrote:
On Jul 5, 2010, at 2:12 PM, Robert Dober wrote:
On Mon, Jul 5, 2010 at 2:06 PM, Chuck Remes <cremes.devlist@mac.com> wrote:
On Mon, Jul 5, 2010 at 3:15 PM, Chuck Remes <cremes.devlist@mac.com> wrote:
[#365181] FasterCSV - Merge CSV — Christian Smith <christian.essner@...>
I have 3 CSVs with the same content with say 10 rows. There is a slight
Christian Smith wrote:
[#365214] RubyGoLightly Progress Report — Eleanor McHugh <eleanor@...>
I seem to have been missing in action for the best part of six months so =
On Sat, Jul 3, 2010 at 4:27 AM, Eleanor McHugh
[#365216] redirect_to(user_contacts_path(@current_user)) error — Aashish Kiran <aashishkiran8@...>
Hi, I am getting exception with
[#365219] How to easily upgrade to new Ruby 1.9 patch level — Alex DeCaria <alex.decaria@...>
I currently have Ruby 1.9.1 p378 installed on Windows. If I want to
[#365230] name correspondence — Intransition <transfire@...>
The proposed Ruby Package Standard states:
[#365231] Permanent script hosting ? — Manu Cap <darksniper2003@...>
Hello,
[#365247] Garbage Collection on Windoze — Thierry Lambert <thyresias@...>
Minasan konbanha
> ObjectSpace.each_object(Test) { |o| puts o.inspect }
[#365260] speeding up "gem1.9 install" during development — "R.. Kumar 1.9.1 OSX" <sentinel1879@...>
During development, I keep running rake install. The following command
[#365262] File data extraction — Rolf Pedersen <rolfhsp@...>
Hi
[#365284] undefined local variable or method `code_words' for main:Ob — Abder-rahman Ali <abder.rahman.ali@...>
I have the problem:
[#365288] extending a core class cleanly [noobish alert] — Fearless Fool <r@...>
Assume I'd like to create a statistics package designed to work on
[#365297] Golf on CLI code — Intransition <transfire@...>
I have a registry (array) of CLI classes. Each class has a class
[#365301] RCR getch — Roger Pack <rogerpack2005@...>
It would be quite convenient to have a getch method in Ruby.
[#365309] MiniTest test case execution — George Thomas <george.thomas@...>
Hi,
[#365315] WTF? Case statement disfunctional? — Pieter Hugo <pieter@...>
Hi
On Tuesday 06 July 2010, Pieter Hugo wrote:
Hi guys
[#365320] Why am I not getting the expected output? — Abder-rahman Ali <abder.rahman.ali@...>
I have the following code: http://pastie.org/1032525, but always getting
On Tuesday 06 July 2010, Abder-rahman Ali wrote:
Stefano Crocco wrote:
Did you change the '===' operator maybe?
[#365351] best way to make .rb into an executable for linux? — David Ainley <wrinkliez@...>
I have a pretty basic .rb script that I would like to turn into an
On Tue, Jul 6, 2010 at 2:42 PM, David Ainley <wrinkliez@gmail.com> wrote:
I see. Well I could use that as a last resort I suppose, but won't the
On Tue, Jul 6, 2010 at 4:26 PM, David Ainley <wrinkliez@gmail.com> wrote:
[#365358] rubygarden? — Roger Pack <rogerpack2005@...>
Anybody know what happened to rubygarden.org?
[#365374] Hashes don't allow preceding commas by design? — Iain Barnett <iainspeed@...>
This is the output from irb that shows ruby 1.9.1 doesn't like hash =
It's not hashes it is the parser in general. When it parses a line (up to
On Wed, Jul 7, 2010 at 3:36 AM, Peter Hickman <
On 7 July 2010 10:15, Josh Cheek <josh.cheek@gmail.com> wrote:
On Wed, Jul 7, 2010 at 4:36 AM, Peter Hickman <
[#365386] Ruby switches — Kenneth <ken70r@...>
Let's say I have something like this
Kenneth wrote:
Hi, the point I was trying to make was sending a boolean method to the
[#365392] New, but this seems odd... — Andrew Wagner <wagner.andrew@...>
Ok, granted that I'm pretty new to ruby, but this seems odd to me:
[#365413] What is meant by those lines of code in this script? — Abder-rahman Ali <abder.rahman.ali@...>
I came across the following script from "Why's poignant guide to Ruby".
On Wed, Jul 7, 2010 at 5:48 PM, Abder-rahman Ali
Hi,
On Sun, Jul 11, 2010 at 5:26 PM, Abder-rahman Ali <
Colin Bartlett wrote:
[#365414] Symbols vs. variable — Abder-rahman Ali <abder.rahman.ali@...>
What is the main difference between using a symbol (begins with :), and
[#365430] ri and rdoc....like perldoc? — Derek Smith <derekbellnersmith@...>
Hi All,
On Wed, Jul 7, 2010 at 10:10 PM, Derek Smith
Xavier Noria wrote:
[#365448] Regular expressions, capture repeated groups — Iain Barnett <iainspeed@...>
I'm trying to emulate something I've done in .Net many moons ago, which =
[#365454] Standalone Ruby executable with GUI — Ralph Shnelvar <ralphs@...32.com>
I have been using Ruby in a Rails environment.
[#365474] Where can I find shoes? — Reece Machin <modtarget@...>
Hey. Just wondering if anybody knows where I can find Shoes? I've
[#365489] from functions to classes, where should I start? — salamond <jarodzz@...>
Guys, I'm not sure if this is the right place to ask questions like this.
Hi JaordZZ,
On 09.07.2010 19:11, Jay wrote:
[#365504] FIRST PROGRAMMING PROBLEM Array — Francisco Martinez <calabazag@...>
Hi...I'm trying to solve a very simple exercise but this is one of my
On Fri, Jul 9, 2010 at 1:22 PM, Francisco Martinez <calabazag@hotmail.es> w=
unknown wrote:
[#365513] what about allowing to specify, which end belongs to which start? — Jan Lelis <prog@...>
Hi Ruby mailing list,
On 09.07.2010 21:17, Ryan Davis wrote:
On 7/9/10, Jan Lelis <prog@janlelis.de> wrote:
On 10.07.2010 17:54, Caleb Clausen wrote:
On 7/11/10, Robert Klemme <shortcutter@googlemail.com> wrote:
On 11.07.2010 13:32, Caleb Clausen wrote:
On 7/11/10, Robert Klemme <shortcutter@googlemail.com> wrote:
2010/7/11 Caleb Clausen <vikkous@gmail.com>:
> [...] I question the balance of effort and benefit.
On Mon, Jul 12, 2010 at 12:59 PM, Jan Lelis <prog@janlelis.de> wrote:
> > def test
[#365527] if statements and case statements questions — John Crichton <a2533488@...>
I am fairly new to Ruby and programming and had a couple questions about
[#365550] how to convert it into utf-8? — Pen Ttt <myocean135@...>
in my linux comsole:
[#365556] sample ruby program to talk to an exchange server — Dani Dani <laguna53@...>
Hi, I'm looking for a sample programm to test the communication with an
Dani Dani wrote:
On Mon, Jul 12, 2010 at 10:44 AM, Dani Dani <laguna53@ymail.com> wrote:
[#365562] Basic Question: How do you check to see if gets is a number? — Adam Bourg <adam.bourg89@...>
I wrote a basic script that asks for your age then converts it into
On Sun, Jul 11, 2010 at 12:34 PM, Adam Bourg <adam.bourg89@gmail.com> wrote=
Rick Denatale wrote:
[#365570] How to pass a hash as a param to a method called through eval? — Alex Stahl <astahl@...5.com>
Hi Folks - I've got a data-driven app I'm building, and I'd like to be
On Sun, Jul 11, 2010 at 10:57 PM, Alex Stahl <astahl@hi5.com> wrote:
Thanks, but... tried that already and it fails without even calling the
On Sun, Jul 11, 2010 at 11:29 PM, Alex Stahl <astahl@hi5.com> wrote:
Just use 'puts' instead of 'eval' to see what's happening.
On Jul 11, 2:57=A0pm, Alex Stahl <ast...@hi5.com> wrote:
Thanks. You're actually the second response to suggest doing it that
On Mon, Jul 12, 2010 at 12:41 AM, Alex Stahl <astahl@hi5.com> wrote:
[#365600] How to create keybinds? — Erik Lindstahl <makire@...>
My Rubyknowledge is somewhat limited, so im in need of some help with
[#365601] Arrays and Hashes — Abder-rahman Ali <abder.rahman.ali@...>
In "Why's poignant guide to Ruby" it mentions the following:
[#365609] Adding cookies to my http client — Safas Khkjh <ryandewhurst@...>
Hi,
[#365614] Substitution — Abder-rahman Ali <abder.rahman.ali@...>
I have this part of code from "Why's poignant guide to Ruby" that is
What that says is use the gsub! method on the object pointed to by idea
Let me give an example I'm making similar to that, where I would like
I think my MAIN point is this.
[#365615] Try Ruby is back online. — andrew mcelroy <sophrinix@...>
Greetings,
On Mon, Jul 12, 2010 at 6:53 PM, andrew mcelroy <sophrinix@gmail.com> wrote:
On Mon, Jul 12, 2010 at 12:23 PM, Xavier Noria <fxn@hashref.com> wrote:
On Mon, Jul 12, 2010 at 7:43 PM, andrew mcelroy <sophrinix@gmail.com> wrote:
[#365642] regex to match similar strings — John Butler <johnnybutler7@...>
Hi,
[#365662] I'm trying to get the keys, but why values appear? — Abder-rahman Ali <abder.rahman.ali@...>
I'm trying to write a script that lists ONLY the keys in a hash as
[#365668] Why do I get undefined method? — Abder-Rahman Ali <abder.rahman.ali@...>
I'm trying to write a script such that when you enter a year, you get
[#365678] ruby & flash — Ce Vau <adi@...>
Hello there.
[#365679] Consuming a SOAP Service using Savon Gem — Saeed Bhuta <saeed.bhuta@...>
Hi,
[#365686] Errors in Ruby — Abder-Rahman Ali <abder.rahman.ali@...>
In the following sentence: The raise method is from the Kernel module.
[#365687] Ruby 1.9.2 float precision — Diogo Almeida <diogo.borges.almeida@...>
Hello,
2010/7/13 Diogo Almeida <diogo.borges.almeida@gmail.com>:
[#365697] Shouldn't this be called a global constant? — Abder-Rahman Ali <abder.rahman.ali@...>
In "why's poignant guide to Ruby" book, it mentioned that: $LOAD_PATH is
On Tue, Jul 13, 2010 at 2:42 PM, Abder-Rahman Ali
[#365721] Ruby garabage collector — Abder-Rahman Ali <abder.rahman.ali@...>
In the "Why's poignant guide to Ruby" book, it states the following:
The simplest way to think of it is if something falls out of scope.
James Harrison wrote:
Thanks a lot James for your clarification.
Thanks a lot James for your advice. Yes, think have to read more deeply
On Tue, Jul 13, 2010 at 11:24 AM, Abder-Rahman Ali
On 13-07-2010 17:30, Abder-Rahman Ali wrote:
[#365752] What does this do? — Abder-Rahman Ali <abder.rahman.ali@...>
I have this portion of code from "Why's poignant guide to Ruby" book.
On Tue, Jul 13, 2010 at 4:26 PM, Abder-Rahman Ali <
[#365764] How can I get the result of this equation — Abder-Rahman Ali <abder.rahman.ali@...>
I have written this a script like this:
[#365775] How to update Ruby >>> CentOS — Ehab Diab <admin@...>
Hello,
[#365776] Stdout as IO object — Jonathan Bale <webmaster@...>
Okay, real simple question, but somehow I am missing it in the API: how
[#365782] gets() -- Need to skip when no response after 20seconds — "Raveendran .P" <jazzezravi@...>
Code:
Raveendran .P wrote:
Hi,
Hi Park,
[#365799] I have some questions about this modified String class — Abder-Rahman Ali <abder.rahman.ali@...>
I have the following script that I just have only slight changes in the
[#365801] what's proble with ruby-mysql-prepare? — Pen Ttt <myocean135@...>
when i run p1 ,i can get something like:
[#365811] Modules in Ruby — Abder-Rahman Ali <abder.rahman.ali@...>
I have this script with slight change from "The Little Book Of Ruby":
And, a small thing here. Can we say that "Modules" in Ruby are like
[#365828] click a javascript dialog window in Firefox — Mario Ruiz <tcblues@...>
Hi,
On Wed, Jul 14, 2010 at 6:39 PM, Mario Ruiz <tcblues@gmail.com> wrote:
But the thing is... if you click first.. ff keeps waiting and doesn't
On Fri, Aug 13, 2010 at 1:53 PM, Mario Ruiz <tcblues@gmail.com> wrote:
So there is no way to click the buttons on a javascript window
On Fri, Aug 13, 2010 at 2:07 PM, Mario Ruiz <tcblues@gmail.com> wrote:
[#365837] Cpp Complier — Allan Davis <javaalley@...>
I am trying to figure out which would be the best C++ compiler to install on
On Wed, Jul 14, 2010 at 2:55 PM, Allan Davis <javaalley@gmail.com> wrote:
[#365844] Return nothing when looking outside the bounds of 2D array? — Shawn W_ <shawnw@...>
I have a 2D Array. I have written a method
On Jul 14, 3:56=A0pm, Shawn W_ <sha...@internode.on.net> wrote:
Thx. Don't quite understand that code. I tried plugging in some nils but
A better way to describe it.
I was going to suggest using the 'case' statement instead of all those =
Okay, just found out that...
On Fri, Jul 16, 2010 at 11:11 AM, Shawn W_ <shawnw@internode.on.net> wrote:
Martin DeMello wrote:
OK, let's try this from the top. {grin} Here's some fresh new code:
[#365847] Ruby best practice for "always on" app/service? — yermej <yermej@...>
I'm building an app that will essentially be a web service client. It
On Wed, Jul 14, 2010 at 11:10 PM, yermej <yermej@gmail.com> wrote:
[#365849] HighLine freezes when using wrap_at and page_at — LAMBEAU Bernard <blambeau@...>
Hi all,
[#365852] Ruby 1.9.1-p129 — Wesley Wong <wesley.mw.wong@...>
I was trying to install ruby 1.9.1-p129 through RVM and got this error
[#365863] what is the advantage is to use class methods over object me — Arun Kumar <jakheart001@...>
Hi All,
[#365879] Ruby for Windows Mobile (Win CE, CeGCC) — Maxim Sokolovsky <a.x.e.1@...>
Hi,
[#365889] Sending packets over TCP server — Zsdfhdfgasdf Gsfgsdgsdgsd <hikay_akira@...>
I'm making a TCP server in Ruby, and I still haven't figured out how I
Zsdfhdfgasdf Gsfgsdgsdgsd wrote:
[#365904] Ruby 1.9.1 Array#combination kinda lazy — Phrogz <phrogz@...>
C:\>type tmp.rb
[#365906] Triggernig the debugger — Ralph Shnelvar <ralphs@...32.com>
In Rails I can use the
[#365915] Setting configuration until end of parent bash session — Intransition <transfire@...>
Any advice on how a ruby script can set a config info that's per
[#365920] Triggering the debugger II — Ralph Shnelvar <ralphs@...32.com>
I'm still having trouble with the debugger and debugging
[#365937] help please with REXML — Ben Morse <cornflaik@...>
hello,
[#365949] Recurse through array of arrays — Iain Barnett <iainspeed@...>
Hi,
[#365972] Hpricot test for equivalence of two xml segments? — Xeno Campanoli / Eskimo North and Gmail <xeno.campanoli@...>
I'm looking through what documentation I can find for Hpricot (nokogirl wouldn't
On Sat, Jul 17, 2010 at 12:28 AM, Xeno Campanoli / Eskimo North and Gmail <
On 10-07-16 03:16 PM, Ammar Ali wrote:
On Fri, Jul 16, 2010 at 6:52 PM, Xeno Campanoli / Eskimo North and Gmail <
[#365988] client-side Ruby on iPad/iPhone? — Jeff Pritchard <jp@...>
I've seen jRuby and IronRuby, and really want to use them since i really
On Friday, July 16, 2010 10:35:17 pm Jeff Pritchard wrote:
On Sat, Jul 17, 2010 at 12:46 AM, David Masover <ninja@slaphack.com> wrote:
On Saturday, July 17, 2010 11:43:52 am Tony Arcieri wrote:
On Sat, Jul 17, 2010 at 9:41 PM, David Masover <ninja@slaphack.com> wrote:
On Sunday, July 18, 2010 09:30:37 pm Tony Arcieri wrote:
[#365994] Infinite Loop in Code -- Logic Error — James Rasmussen <jamesrasmus@...>
Hi all,
Hi --
[#365997] Driving irb from IO.popen — Jean-Julien Fleck <jeanjulien.fleck@...>
Hello,
[#366004] Instance eval in 1.8 and 1.9 — Gavin Sinclair <gsinclair@...>
Hi,
On Saturday 17 July 2010, Gavin Sinclair wrote:
>
[#366015] ruby abstraction — "James O'Brien" <jeob32@...>
Hi,
On Saturday, July 17, 2010 08:21:10 pm James O'Brien wrote:
On 07/18/2010 06:53 AM, David Masover wrote:
[#366041] The price of a modern list architecture? — Jacko <jackokring@...>
http://groups.google.co.uk/group/comp.lang.forth/browse_thread/thread/ef39e59023a8ae4c/9eb9f6b99139a5df#9eb9f6b99139a5df
[#366053] LoadError: no such file to load -- tk — Rich Leblanc <rl001@...>
I'm trying to install Ruby on a 64 bit Windows 7 machine following this
Roger Pack wrote:
On Mon, Jul 19, 2010 at 3:26 PM, Rich Leblanc <rl001@pacbell.net> wrote:
Eric Christopherson wrote:
Roger Pack wrote:
Rich Leblanc wrote:
Roger Pack wrote:
From: Rich Leblanc <rl001@pacbell.net>
Rich Leblanc wrote:
From: Rich Leblanc <rl001@pacbell.net>
Hidetoshi NAGAI wrote:
From: Rich Leblanc <rl001@pacbell.net>
On Wed, Jul 21, 2010 at 1:27 PM, Rich Leblanc <rl001@pacbell.net> wrote:
Roger Pack wrote:
[#366058] capture STDOUT data to a variable — Shaun Paul <kv.bijesh@...>
Hello
[#366077] REXML Input File Question — Mike Pe <mikep123@...>
Hi,
On 19.07.2010 21:13, Mike Pe wrote:
Robert Klemme wrote:
2010/7/24 Mike Pe <mikep123@gmail.com>:
[#366084] Error Compiling Ruby — Kota Weaver <kota.weaver@...>
Hello,
[#366091] how to judge web exists or not with open-uri? — Pen Ttt <myocean135@...>
would you mind to tell me how to fix it, to make the following program
[#366100] Editing a FAT/FAT32 Partition Table — Philip Wright <sulligogs@...>
Hi,
This may work for you.
Very fast. Thanks for the heads up.
[#366102] How to uninstall ruby on FreeBSD 8.0? — Wilson Wang <wilsonwang111@...>
Dear all,
[#366115] Count occurences of vars in array — Vitaliy Yanchuk <fuksito@...>
Hello, everyone.
Hello,
Jean-Julien Fleck, thanks.
2010/7/20 Vitaliy Yanchuk <fuksito@gmail.com>:
Jean-Julien Fleck wrote:
[#366118] File.basename — "James O'Brien" <jeob32@...>
File.open('myfile') do |f|
[#366119] Ruby Shoes tray icon? — MrZombie <mrzombie@...>
Hi all!
[#366152] Can't get ruby 1.9 to work after install on OSX — Musdev Musdev <devrubygem@...>
Hello
Joseph E. Savard wrote:
RVM is your best bet.. The work is already done for you through scripts and
Joseph E. Savard wrote:
Musdev,
Or you can always default to the Ruby you want to use.
[#366165] Friday Night at My House — John Barnette <jbarnette@...>
Attendees: Me, Aaron Patterson, Ben Bleything, Eric Hodel, Ryan Davis, =
[#366172] How to avoid black-windows using system() ? — Rémi Cools <remi@...>
Hi,
R辿mi Cools wrote:
Roger Pack wrote:
[#366187] File class documentation — "James O'Brien" <jeob32@...>
Hi,
anyone? :)
James O'Brien wrote:
[#366192] mechanzie submit fails at gmail login — Chugm 456789 <chugm456789@...>
Hallo everybody,
On Wed, Jul 21, 2010 at 6:12 AM, Chugm 456789 <chugm456789@googlemail.com>wrote:
thiago damasceno wrote:
On Thu, Jul 22, 2010 at 3:33 AM, Chugm 456789 <chugm456789@googlemail.com>wrote:
[#366193] How to check if x is a multiple of y — Tom Ha <tom999@...>
Hi there,
On Wed, Jul 21, 2010 at 12:12 PM, Tom Ha <tom999@gmx.net> wrote:
2010/7/21 Xavier Noria <fxn@hashref.com>:
[#366196] how to make "gem install rmagick" work? — Jian Lin <blueskybreeze@...>
I wanted to install rmagick on Win7 but it can't install:
[#366226] Text to Binary — Umm Whyshouldisay <kipthemudkip@...>
Hi! I'm new to the forums. I'm also a bit new to Ruby. I already know
On Thu, Jul 22, 2010 at 1:12 AM, Umm Whyshouldisay
> "some text".unpack('b*')
See String#unpack http://ruby-doc.org/core/classes/String.html#M000760
Alright, new question. How do you take each individual character and use
See String#[], String#split, String#match and a much more on String
Ricardo Panaggio wrote:
[#366234] Writing to file delay — Matt Triviski <matt.triviski@...>
Hello All,
Matt Triviski <matt.triviski@gmail.com> wrote:
[#366245] Enumerators and generators — Hal Fulton <rubyhacker@...>
Hi, all...
Hello Hal
[#366254] finding last line in a file — Ted Flethuseo <flethuseo@...>
Hi everyone,
Take a look at the doc for File.readline.
(2010/07/22 14:08), Urabe Shyouhei wrote:
On 07/22/2010 07:10 AM, Urabe Shyouhei wrote:
(2010/07/22 15:35), Robert Klemme wrote:
2010/7/22 Urabe Shyouhei <shyouhei@ruby-lang.org>:
(2010/07/22 22:06), Robert Klemme wrote:
[#366281] Two Question — Amir Ebrahimifard <amiref@...>
Hi everybody
[#366303] documentation from inside irb — Eugen Ciur <eugen@...>
Hi,
[#366319] Typical Ruby (non-rails) project structure. — Carl Jenkins <carljenkins@...>
What is/are the best-practice(s) for a Ruby project structure?
Carl Jenkins wrote:
On Thu, Jul 22, 2010 at 6:41 PM, Carl Jenkins <carljenkins@gmail.com> wrote:
[#366336] HowTo get ruby to report a sumbolic link? — James Byrne <byrnejb@...>
I am creating a series of symbolic links to target directories. I wish
[#366378] how to convert the string? — Pen Ttt <myocean135@...>
i want to convert a string "-34\n \302\240" into "-34"
On 07/23/2010 03:45 PM, Pen Ttt wrote:
irb(main):001:0> "-34\n \302\240".match(/\S+/).to_s
[#366401] rmagick for Ruby 1.8.6 won't work for Ruby 1.8.7? — winter heat <blueskybreeze@...>
if i install
[#366418] Ruby books designed especially for beginngers — Kaye Ng <sbstn26@...>
Hey experts, i need your advice.
[#366422] re-organize original text data then write in files — Junhui Liao <junhui.liao@...>
Dear all,
[#366430] Design Question — Mochi Mochigome <jbw+mochigome@...>
Hi guys,
[#366451] basic beginner help needed — Karl Halvorson <karl.halvorson@...>
I am new to Ruby and have been looking for some basic beginner help. I
[#366466] syntax — Raghu Maddali <raghu1216@...>
Hi all,
On Sun, Jul 25, 2010 at 5:23 AM, Raghu Maddali <raghu1216@yahoo.co.in>wrote:
I apologize for miscommunication.I know that Ruby will not have any
On Sun, Jul 25, 2010 at 7:41 AM, Raghu Maddali <raghu1216@yahoo.co.in>wrote:
[#366478] nmap-1.1.0 — "ara.t.howard" <ara.t.howard@...>
NAME
[#366487] General delimiters — "Иван Сташко" <johns@...>
I would like to create a new general delimiter.
[#366488] * operator, Float — "Иван Сташко" <johns@...>
Where is the * operator defined for Float?
[#366493] Module inclusion and class macro problem — Rolf Pedersen <rolfhsp@...>
Hi
[#366494] soap with ruby 1.9 ? — Dani Dani <laguna53@...>
Hi all, does anyone know how can I implement soap to access web services
[#366519] ruby calc.rb or just calc.rb — Kaye Ng <sbstn26@...>
Beginner here (in ANY programming language), so pls bear with me.
You need to set your path top the Ruby bin directory. The error: 'ruby' is
[#366521] stop program with entering a key... — hazal Ates <niyaziates77@...>
i m a new in Ruby . sorry may be its a silly question.
The following code doesn't do exactly what you need, but it should be
Michael Jackson wrote:
[#366525] RubyGems.org Still Down? — Intransition <transfire@...>
http://rubygems.org/
[#366541] Directory structure best practice? — MrZombie <mrzombie@...>
Hi all!
[#366543] Issue with mongrel and apache. — Allan Davis <javaalley@...>
I just upgraded rails to 2.3.8 on my test server and now the apache is
[#366544] Help: How to pass a struct as a pointer to Win32API? — Jing Li <thyrlian@...>
Hi all,
[#366546] interactive ruby development — Seshu Yamajala <syamajala@...>
As someone who has used lisp, emacs, and slime in the past, I get
[#366558] Beginner help needed: use a class def to create new instance — "Steve P." <stevepauly@...>
I am attempting to put as much code inside classes as possible, to
On Tue, Jul 27, 2010 at 6:36 AM, Steve P. <stevepauly@comcast.net> wrote:
[#366590] Where can I find the 'shebang' line? — Ast Jay <azzzz@...>
I seem to be having trouble with RVM (after an update to Rails 3 RC),
On Tue, Jul 27, 2010 at 12:10 PM, Ast Jay <azzzz@gmx.net> wrote:
[#366611] Which Ruby is in use? — Hassan Schroeder <hassan.schroeder@...>
Is there a way to tell from within a program which executable is being
On Tue, Jul 27, 2010 at 2:20 PM, Joseph E. Savard
Hassan Schroeder wrote:
On Tue, Jul 27, 2010 at 3:10 PM, Joel VanderWerf
Hassan Schroeder wrote:
On Tue, Jul 27, 2010 at 3:52 PM, Joel VanderWerf
Hassan Schroeder wrote:
On Tue, Jul 27, 2010 at 4:45 PM, Joel VanderWerf
hope I did not misunderstand the question, but would this work??
On Tue, Jul 27, 2010 at 7:03 PM, Fabian Marin <fmg134s@yahoo.com> wrote:
On 07/28/2010 11:20 AM, Hassan Schroeder wrote:
Edward Middleton wrote:
On 7/27/10, Fabian Marin <fmg134s@yahoo.com> wrote:
On Tue, Jul 27, 2010 at 11:41 PM, Caleb Clausen <vikkous@gmail.com> wrote:
[#366618] Chat client — Daniel Flores <soloparamsn2@...>
hello i was learning about ruby and on the book i am reading it shows
[#366629] tool to compare DB schema against DDL file — Fabian Marin <fmg134s@...>
First of all any feedback from you guys will be of tremendous help.
On 28.07.2010 03:57, Fabian Marin wrote:
Robert Klemme wrote:
[#366630] multidimensional array insert syntax — Dave Castellano <dcastellano1@...>
Hi,
On Wed, Jul 28, 2010 at 4:02 AM, Dave Castellano
Jesús Gabriel y Galán wrote:
On 28.07.2010 12:56, Dave Castellano wrote:
[#366658] Problem in loop do — Amir Ebrahimifard <amiref@...>
Hi
[#366673] Object#tap (was Nice algorithm for 'spreading' indexes across an array?) — Harry Kakueki <list.push@...>
On Wed, Sep 2, 2009 at 1:41 AM, Max Williams<toastkid.williams@gmail.com> wrote:
[#366692] rubyw, RuntimeError, capturing the stack, FXRuby — Ralph Shnelvar <ralphs@...32.com>
Let's say I'm running rubyw and a RunTimeError is raised ...
[#366699] how to determine array element number in a each loop — Kaya Aykut <kaya.aykut@...>
Hello all, newbie here.
[#366707] 64 bit ruby installation on 64 bit windows — Ichigo Poi <dxtrdrosario@...>
hi, could anyone help me answer the following questions.
[#366709] hitimes 1.1.0 Released — Jeremy Hinegardner <jeremy@...>
hitimes version 1.1.0 has been released.
[#366718] Problem with concurrency — Tasos Laskos <zapotek@...>
Hi guys,
On 07/29/2010 07:55 AM, Tasos Laskos wrote:
[#366727] my script just read one line? — Junhui Liao <junhui.liao@...>
Dear all,
On Thu, Jul 29, 2010 at 1:43 PM, Junhui Liao <junhui.liao@uclouvain.be> wro=
Dear Jes炭s Gabriel y Gal叩n and all,
On Fri, Jul 30, 2010 at 1:58 AM, Junhui Liao <junhui.liao@uclouvain.be> wro=
On Fri, Jul 30, 2010 at 2:18 PM, Junhui Liao <junhui.liao@uclouvain.be> wro=
Dear Jes炭s Gabriel y Gal叩n,
On Fri, Jul 30, 2010 at 4:00 PM, Junhui Liao <junhui.liao@uclouvain.be> wro=
Hi, Jesus.
On Sun, Aug 1, 2010 at 11:10 PM, Junhui Liao <junhui.liao@uclouvain.be> wro=
Hi, Jesus,
On Tue, Aug 3, 2010 at 12:15 AM, Junhui Liao <junhui.liao@uclouvain.be> wro=
Hi, Jesus,
[#366730] ruport, reading a csv whose column name have white spaces — Fourchette Fourchette <alexisdal@...>
hi there,
[#366751] how to read password from keyboard — Bruno Sousa <brgsousa@...>
Hi everyone!
[#366752] Problem with a lambda not executing immediately — Fernando Perez <pedrolito@...>
Hi,
On Thu, Jul 29, 2010 at 10:38 PM, Fernando Perez <pedrolito@lavache.com> wr=
> Given that the key in the hash is
[#366755] .any?{} Behavior — John Sikora <john.sikora@...>
I find the following behavior interesting (so interesting that I
On Thu, Jul 29, 2010 at 5:27 PM, John Sikora <john.sikora@xtera.com> wrote:
On Fri, Jul 30, 2010 at 10:49 AM, Rick DeNatale <rick.denatale@gmail.com>wrote:
Josh Cheek wrote:
On Sun, Aug 1, 2010 at 12:28 PM, Maurizio De Santis
On Sun, Aug 1, 2010 at 11:46 AM, Rick DeNatale <rick.denatale@gmail.com>wrote:
On Sun, Aug 1, 2010 at 12:24 PM, Hal Fulton <rubyhacker@gmail.com> wrote:
Hi --
what about "all_and_not_empty" ?
[#366769] binary encode 7 ([7].pack("C")) as "\007" instead of "\a" — Woody Peterson <woody.peterson@...>
I have a problem that's on the borders of ruby and erlang, but I'm
[#366785] Compiling Ruby through JRuby? — MrZombie <mrzombie@...>
Hi! I'm currently building a program which will be mostly standalone,
[#366790] how to find difference between two strings — Priyank Shah <shahpriyank01@...>
Hi,
[#366793] Will paginate question — "Bla ..." <bianca.stephani@...>
I have the following code:
[#366798] SVG generation gem? — Rick DeNatale <rick.denatale@...>
I've recently started playing with an Epilog laser cutter, and I find
[#366822] multiple connections with DBI and Mysql — Dave Lilley <dglnz2@...>
Can anyone here advise me the best way to have two classes access mysql
[#366829] Ruby Webbrowser — Kai Dölger <kgd92@...>
Hey Guys,
On Sat, Jul 31, 2010 at 8:13 AM, Kai D=F6lger <kgd92@msn.com> wrote:
[#366837] Mocking a method with a block — Fernando Guillen <fguillen.mail@...>
Hi people,
On Sat, Jul 31, 2010 at 5:38 PM, Fernando Guillen
Fernando Guillen wrote:
Brian Candler wrote:
Re: re-organize original text data then write in files
I'm putting this at the top of my post because I think the basic problem here may be intensive numeric calculations, and - even more so - disk (inpu= t and) output of about 16 MiB x N bytes of data, where N is 8 bytes (? for Floating point numbers), so about 128 MiB in total, and other people will have a better knowledge of some possibly useful links. On Sun, Jul 25, 2010 at 11:15 PM, Junhui Liao <junhui.liao@uclouvain.be>wro= te: > Actually, I developed two versions of C++ script. > One is opening 4096 files at the same time. This cost 3 hours. > Another version is saving all of the data in a big vector, > then scanning the vector to pick the right items to write > in files. This cost 2 hours and 45 minutes. :-). > Sorry - in my post I misunderstood what you meant by "cost". I think it is (very?) unlikely that any Ruby (or Perl or Python, etc?) program will run faster than your C++ scripts. Where Ruby (or Python - I'm not so sure about Perl, I haven't used it) does have an advantage is that I think development may be quicker. So there are trade-offs. (Incidentally, I'm not an expert, but those timings suggest to me that the major processing cost may be in writing the results out to disk, so changing the language for all or part o= f the processing is unlikely to make a large difference?) But I'm open to correction: there are people who have used Ruby for fairly intensive large data sets processing, but my understanding is that they use a mixture of Ruby as "glue" with any intensive calculations in C, etc. For example, from some limited experience I have the speed of Ruby reading strings of bytes in from files is similar to the speed of Java or compiled Pascal, but for calculating CRCs of files the speed of pure Ruby calculatin= g the CRCs once the bytes had read in was much slower than Java or compiled Pascal: so I used Ruby (or rather JRuby) to read in the strings of bytes from the files, and then called Java code from Ruby to calculate the CRC from the bytes. Overall the speed of this was similar to a pure Java or pur= e compiled Pascal program. Piet Hut and Jun Makino have been using Ruby to model dense star clusters. (Note that this is something I know nothing about! I'm just intrigued by th= e underlying principle of using Ruby for intensive numerical calculations by developing in Ruby without worrying about speed by using smaller unrealisti= c models, and then using more realistic models by translating part (or all!) of the Ruby code to a faster language.) http://www.kira.org/index.php?option=3Dcom_content&task=3Dview&id=3D124&Ite= mid=3D154 ...MODEST is the new name for the Stellar Dynamics workshop. It stands for: MOdeling DEnse STellar systems ... The basic idea is to start a kind of N-body wikipedia, as a group's process= . It should be self contained, a place to gather all the basic information that is currently missing from the literature. Up till now, if you want to write a decent N-body code from scratch, you have to somehow catch the oral knowledge that is floating around in the community, most of which has never been written down. We want to change that. One place to start is the open-source introductory text written over the last several years by Piet Hut and Jun Makino, "Moving Stars Around"; see http://www.artcompsci.org/#msa where we give pointers to two versions. The older one is written using C++ and the newer one, with even more detailed background, uses Ruby. We propose to use the basic text, and to translate the (rather short) pieces of code into other languages, starting with LSL, the Linden Scripting Language, and then to move on to OpenSim. ... http://www.manybody.org/wiki/index.php/Moving_Stars_Around http://www.artcompsci.org http://www.artcompsci.org/kali/pub/msa/title.html http://www.artcompsci.org/kali/pub/msa/ch16.html#rdocsect123 16.7. Conclusion Dan: This confirms our earlier conclusions. At least on this particular computer, that we are now using to do some speed tests, the unoptimized C version takes 50% more time than the optimized version, the simplest Ruby version takes about 50 times more time, the Ruby array version about 100 times more, and finally the Ruby vector version takes more than 250 times more time than the optimized C version. Carol: But even so, for short calculations, who cares if a run takes ten millisecond or a few seconds? I certainly like the power of Ruby in giving us vector classes, and a lot more goodies. We have barely scratched the surface of all the power that Ruby can give us. You should see what we can do when we really start to pass blocks to methods and . . . Dan: . . . and then we will start drinking a lot of coffee, while waiting for results when we begin to run 100-body experiments! Is there no way to speed up Ruby calculations? Carol: There is. By the time we use 100 particles, we are talking about 10^= 2 * 10^2 =3D 10^4 force calculations for every time step. This means that the calculation of the mutually accelerations will take up almost all of the computer time. What we can do is write a short C code for computing the accelerations. It is possible to invoke such a C code from within a Ruby code. In that way, we can leave most of the Ruby code unchanged, while gaining most of the C speed. Erica: I certainly like the flexibility of a high-level language like Ruby, at least for writing a few trial versions of a new code. In order to play around, Ruby is a lot more fun and a lot easier to use than C or C++ or Fortran. After we have constructed a general N-body code that we are really happy with, we can always translate part of it into C, as Carol just suggested. Or, if really needed to gain speed, we could even translate the whole code into C. Translating a code will always take far less time than developing a code in the first place. And is seems pretty clear to me that development will be faster in Ruby. Dan: I'm not so sure about all that. In any case, we got started now with Ruby, so let us see how far we get. But if and when we really get bogged down by the lack of speed of Ruby, we should not hesitate to switch to a more efficient language. > ... > Thanks a lot for your encourage, > I tried to read something on ruby already. > Since this language is very simple and beautiful, > no matter it works for my case or not. > (But I hope it could be.) > To quote something Damon Runyon quoted/adapted: The race is not always to the swift nor the battle to the strong - but that=92s the way to bet. http://www.barrypopik.com/index.php/new_york_city/entry/the_race_is_not_alw= ays_to_the_swift_no_the_battle_to_the_strong_but_thats_t/ Or to continue that analogy, "horses for courses"! (Translation: for parts of a task that are heavy numerical processing a "lower level" language is likely to be faster. That said, sometimes the slower higher level language is fast enough: I was doing some actuarial programming in JRuby, and intended to have some intensive numerical calculations in Java. It turned out that JRuby was actually quite fast enough for those particular calculations, although (for portability reasons= ) I will be translating that numerical code from Ruby to Java.) > Maybe it partly depends on what standard methods/functions are > available: for example, in Ruby you can read a line from a file > into a String, and then use a builtin method on the String > to split it into an array of values using a specified delimiter, > so in your case a space character? > I need this kind of comment seriously, saying, what are the knowledge > which is necessary and enough to do my job. If there are some special > and powerful methods or stances to do this kind of stuff. > Or be better, give a example just very close my case. > I can get the detailed by reading book(s) or googling. For your particular problem you've already written the C++ code to do the splitting and the processing, so (ignoring maintainability issues) I don't think Ruby will speed up the development, and - for the reasons above - I think it is unlikely to result in faster processing. But you might find it worth looking at integrating Ruby (or Python or Perl) with C, C++ or Java for other processing problems. I don't have any experience with C or C++, but I have found integrating Ruby with Java fairly easily. (Once I found my way round some initial misunderstandings I had with how to package Java to be used by Ruby.) Anyway, good luck with your task(s)!