[#370825] Syntax error — Anthony Ob <vidgametester@...>
ERROR
What are you expecting the "x:y" statement to do? I ask because I'm not
Alex Stahl wrote:
>
Got it - in your code, you typed ":", while the example uses ";".
[#370844] how can we make a ruby compiler — Robin <r@...1.net>
how can we make a thing that compiles ruby into c++ source code?
On Fri, Oct 1, 2010 at 6:40 AM, Robin <r@thevoid1.net> wrote:
You just ruined the "awesome" by asking them. Didn't you? Just kidding.
On Fri, Oct 1, 2010 at 7:52 PM, Ryan Davis <ryand-ruby@zenspider.com> wrote:
Tony Arcieri wrote:
On 5 October 2010 07:10, Clifford Heath <no@spam.please.net> wrote:
Dear Ryan,
On Tue, Oct 5, 2010 at 8:31 AM, Samuel Williams
Rick DeNatale wrote:
Bill,
On 5/10/2010 8:02 AM, Tony Arcieri wrote:
On Tue, Oct 5, 2010 at 9:54 PM, Mohit Sindhwani <mo_mail@onghu.com> wrote:
On Wed, Oct 6, 2010 at 12:13 AM, Tony Arcieri <tony.arcieri@medioh.com> wrote:
[#370878] New to Ruby, Looking for Help With Basic Program — Mica Koizumi <monkeymica@...>
I am teaching myself Ruby and am trying to figure out why this program
On Fri, Oct 1, 2010 at 2:05 PM, Mica Koizumi <monkeymica@yahoo.com> wrote:
Thanks Rick -
On 10/01/2010 01:29 PM, Mica Koizumi wrote:
[#370892] Can't convert Float into String — Anthony Ob <vidgametester@...>
The error is p018arrays.rb:37:in '[]=' can't convert Float into String
[#370897] Ruby String: How do I strip anything between two parenthesis — Frank Guerino <frank.guerino@...>
Hi,
[#370912] The Third Ruby - Ever Comes Out at Night? — Mike Stephens <rubfor@...>
Often you see that Ruby can be object-oriented, functional or
I guess you could work only with modules and class methods, and avoid
On Sat, Oct 2, 2010 at 11:27 AM, elise huard <huard.elise@gmail.com> wrote:
2010/10/2 Jes=FAs Gabriel y Gal=E1n <jgabrielygalan@gmail.com>:
On Sat, Oct 2, 2010 at 12:56 PM, Mike Stephens <rubfor@recitel.net> wrote:
The Ruby 'require' functionality is much closer to the C paradigm of
[#370940] MetaRegexp: experimental extensions to Regexp (requesting feedback) — Ammar Ali <ammarabuali@...>
Fellow Rubyists,
On 10/2/10, Ammar Ali <ammarabuali@gmail.com> wrote:
[#370952] Pass by reference and copy on write — Ralph Shnelvar <ralphs@...32.com>
I see
On Sat, Oct 2, 2010 at 6:41 PM, Ralph Shnelvar <ralphs@dos32.com> wrote:
I've written a post about this topic:
On Sat, Oct 2, 2010 at 8:13 PM, Xavier Noria <fxn@hashref.com> wrote:
On 10/2/10, Josh Cheek <josh.cheek@gmail.com> wrote:
On Sat, Oct 2, 2010 at 8:56 PM, Caleb Clausen <vikkous@gmail.com> wrote:
On 10/2/10, Josh Cheek <josh.cheek@gmail.com> wrote:
On Sat, Oct 2, 2010 at 10:57 PM, Caleb Clausen <vikkous@gmail.com> wrote:
On 10/2/10, Josh Cheek <josh.cheek@gmail.com> wrote:
[#370964] ODBC app in Ruby - I don't believe it. — Ed Reed <joebananas10@...>
I'm trying to figure out what's so cool about Ruby. I need to create a
Hi Ed,
On Oct 3, 4:26=A0am, Ed Reed <joebanana...@gmail.com> wrote:
WOW! Thanks for all the responses and please accept my apologies for
Okay I've decided to start from scratch,... again. It's the start of a
On 10/4/2010 1:30 PM, Ed Reed wrote:
My mistake on the gem commands. I did use the correct ones with dbd
On 10/04/2010 04:29 PM, Ed Reed wrote:
The history.txt file for the mysql gem says
Thanks for the extensive reply Dave. I certainly appreciate it.
Ed Reed wrote:
Brian Candler wrote:
On Fri, Oct 8, 2010 at 9:09 PM, Ed Reed <joebananas10@gmail.com> wrote:
Phillip Gawlowski wrote:
On Sat, Oct 9, 2010 at 12:38 AM, Ed Reed <joebananas10@gmail.com> wrote:
I was going to suggest to the Windows 7 Developer, that using a virtual box
On Wednesday, October 06, 2010 02:40:38 am Dave Howell wrote:
On Tuesday, October 12, 2010 08:51:21 pm Dave Howell wrote:
On Wednesday, October 13, 2010 07:03:04 pm Dave Howell wrote:
[#370984] Object.object.method() — Johan Soderholm <teisto@...>
Hello, obviously it's a time for a noobie question. What the following
[#370991] install ruby on the mac — Basi Lambanog <basi.lambanog.tuba@...>
hello,
[#371020] save only first line from string? — Terry Michaels <spare@...>
Hi. What's the most simple and elegant way to remove all the contents of
Terry Michaels wrote:
Terry Michaels wrote:
On 4 October 2010 04:19, Terry Michaels <spare@frigidcode.com> wrote:
Benoit Daloze wrote:
On Thu, Oct 7, 2010 at 7:44 AM, Terry Michaels <spare@frigidcode.com> wrote:
[#371023] How to suppress display of specific code in irb?? — Don Norcott <dnorcott@...>
I am very new to ruby (but a retired experienced C programmer) and am
Don Norcott wrote:
On Mon, Oct 4, 2010 at 12:20 PM, Brian Candler <b.candler@pobox.com> wrote:
Thanks these all did the trick. I especially like the toggle.
[#371034] gems should *not be case sensitive.. or should they? — botp <botpena@...>
why are gem names case sensitive?
[#371049] how do i delete files in particular directoryin ruby ??? — Amit Tomar <amittomer25@...>
Hii all,
On Monday 04 October 2010, Amit Tomar wrote:
Thanks for your help Stefano
Amit Tomar wrote:
Steel Steel wrote:
On Mon, Oct 4, 2010 at 2:27 PM, Stefano Crocco <stefano.crocco@alice.it> wr=
Robert Klemme wrote:
On 10/05/2010 04:11 AM, Amit Tomar wrote:
Jeremy Bopp wrote:
On 10/05/2010 07:31 AM, Amit Tomar wrote:
Jeremy Bopp wrote:
[#371095] net:sftp 2.0.5 upload! does not work — "Peter (Guo) Pei" <peterpeiguo@...>
I tried to upload files from a windows box to a linux box, and I used
[#371101] Ruby on web without RoR — João Mello <jgnmello@...>
Is possible to use only Ruby without Rails on web?
On 10/04/2010 08:44 PM, Jo達o Mello wrote:
[#371147] Tooltip with css_tt — "Bla ..." <bianca.stephani@...>
Using "css_tt" gem, I was able to create a tooltip.
[#371168] Calling a method with an instance — Paul Roche <prpaulroche@...>
Hi. I'm playing around with creating methods and then creating an
[#371181] How can I count number of elements in an HTML page — Paul <tester.paul@...>
Hi there, I'm using net/http to retrieve some html pages and now I
On Tue, Oct 5, 2010 at 10:45 PM, Paul <tester.paul@gmail.com> wrote:
[#371190] How to call a method within another method — Paul Roche <prpaulroche@...>
Hi, I have a method...
[#371192] Writing a Nim game in ruby — King Kong <kingkongkill@...>
wondering does anyone know how to help with this problem
[#371210] Error defining UI_need help urgently — Atul Dongargaonkar <datulravi@...>
Please find the .txt file attached. I have been trying to build a
[#371215] how do i detect END OF FILE file in ruby — Amit Tomar <amittomer25@...>
Hi all,
[#371221] setting local variables in a binding — Martin DeMello <martindemello@...>
Why does this not work?
Martin DeMello wrote:
On Thu, Oct 7, 2010 at 12:38 AM, John Sikora <john.sikora@xtera.com> wrote:
Note that "binding" is the default argument of eval if you don't specify
Tony Arcieri wrote:
On Thu, Oct 7, 2010 at 4:19 AM, John Sikora <john.sikora@xtera.com> wrote:
Robert Klemme wrote:
On Fri, Oct 8, 2010 at 6:06 AM, John Sikora <john.sikora@xtera.com> wrote:
[#371226] XML-RPC WEBrick problem (error during method invocation) — Nikita Kuznetsov <moog_master@...>
I have a university assignement, and i am stuck. I am supposed to create
On 10/6/2010 5:13 AM, Nikita Kuznetsov wrote:
On 10/06/2010 04:47 PM, Nikita Kuznetsov wrote:
I attempted a fresh start without using WEBrick.
[#371239] "map" a deeply nested structure: Object#deep_map — Guido De Rosa <guidoderosa@...>
Hi,
On Wed, Oct 6, 2010 at 4:43 PM, Guido De Rosa <guidoderosa@gmail.com> wrote=
> What about keys? Hash#map allows to map keys and values
On Wed, Oct 6, 2010 at 6:05 PM, Guido De Rosa <guidoderosa@gmail.com> wrote=
Robert Klemme wrote:
On Thu, Oct 7, 2010 at 10:22 AM, Guido De Rosa <guidoderosa@gmail.com> wrot=
Robert Klemme wrote:
[#371250] A Real World example for Ruby to "compiled" version discussion — Philip Rhoades <phil@...>
People,
On Thu, Oct 7, 2010 at 2:57 AM, Ryan Davis <ryand-ruby@zenspider.com> wrote=
People,
[#371255] Error when using class variables with operators — Paul Roche <prpaulroche@...>
Hi. When I use class variables with operators I get the following error
On Wednesday 06 October 2010, Paul Roche wrote:
[#371277] minitest randomization — Alex Chaffee <alexch@...>
Minitest was intended to be a minimal replacement for Test::Unit and =
[#371280] Missing @ for instace variable in class, but no error message — Stefan Salewski <mail@...>
Some days ago I was defining a class, but forgot to use the leading @
attr_accessor actually defines a public instance method, named 'a'. That
[#371286] Why does Module#include exclude the module's metaclass? — John Mair <jrmair@...>
When classes are inherited in Ruby the singleton classes are also
[#371293] how many seconds old am i? — Austin Delauney <penta2100@...>
for some reason line 6 doesnt work.i converted it into a integer but
heres the file
You didn't save the result of .to_i.
[#371301] rescuing a function — Courtland Allen <courtlandallen@...>
Hello,
Are you sure that you don't have *args in your code instead of just args ?
[#371310] Benchmarks Project and example for `||=` — Intransition <transfire@...>
Has anyone ever put together a suite of benchmarks that simply measure
On Thu, Oct 7, 2010 at 7:28 AM, Intransition <transfire@gmail.com> wrote:
On 10/7/2010 8:28 AM, Intransition wrote:
On Thu, Oct 7, 2010 at 12:05 PM, Jeremy Bopp <jeremy@bopp.net> wrote:
[#371317] "Load" Works, But "Require" Doesn't? — Tom Wardrop <tom@...>
Can someone please explain what's going on here. No matter what I try,
On Thu, Oct 7, 2010 at 8:19 AM, Tom Wardrop <tom@tomwardrop.com> wrote:
[#371322] how do i close a file that is open in ruby — Amit Tomar <amittomer25@...>
Hi all,
[#371344] Ruby and windows GUI — spaghetticode@... (spaghetticode)
hello,
[#371353] Can anyone give a an example of this please — Kaye Ng <sbstn26@...>
"code blocks may accept none, one, or more parameters"
On Thu, Oct 7, 2010 at 2:01 PM, Kaye Ng <sbstn26@yahoo.com> wrote:
On Thu, Oct 7, 2010 at 2:14 PM, Phillip Gawlowski
[#371364] how do i configure this code — Amit Tomar <amittomer25@...>
Hii all ,
[#371366] Maximum length of array#hash — Jim Burgess <jack.zelig@...>
I have a large array and want to calculate its hash-code using
On Thu, Oct 7, 2010 at 2:54 PM, Jim Burgess <jack.zelig@gmail.com> wrote:
2010/10/7 Jes=FAs Gabriel y Gal=E1n <jgabrielygalan@gmail.com>:
[#371371] 2011 Fukuoka Ruby Award Competition — Yukihiro Matsumoto <matz@...>
Hi all,
[#371393] popen hangs out for user input — "felix.leg" <felix.leg@...>
Hi,
[#371409] regexp issue — Idealone Ideally <shekarls@...>
Hi All,
[#371419] each_with_index — Pavel Varela <impulse221@...>
hello everybody! i'm working on a programm that has that peace of code:
On Fri, Oct 8, 2010 at 10:41 AM, Pavel Varela <impulse221@yandex.ru> wrote:
[#371425] How to change interactive ruby background? — Tony Lee <menasx@...>
Hi, i'm newbie in programming...just started. So anybody can tell me how
On Fri, Oct 8, 2010 at 11:48 AM, Tony Lee <menasx@gmail.com> wrote:
[#371432] how do i add an instance variable to a class in Ruby — Amit Tomar <amittomer25@...>
Hii all ,
On Fri, Oct 8, 2010 at 9:12 AM, Amit Tomar <amittomer25@yahoo.com> wrote:
[#371446] require error — Paul Roche <prpaulroche@...>
Hi, I'm getting the following error.......
[#371476] Getting the size of a block device — Terry Michaels <spare@...>
In Linux at least, one cannot simply get the size of a block device file
[#371485] irb question — Darren Nickerson <darren@...>
Hi,
Darren Nickerson wrote:
[#371488] Better way to remove all occurrence of matches on a String — Benoit Daloze <eregontp@...>
Hi Rubyists !
[#371491] Finding all cycles in a directed graph — Noé Alejandro <casanejo@...>
Hello everybody.
[#371512] Re: minitest randomization — Alex Chaffee <alexch@...>
I guess this comes down to idempotency. I expect that if I do
[#371527] More readable array querying — Andrew Wagner <wagner.andrew@...>
All,
[#371533] Why does a lot of code not include parenthesis? — egervari <ken.egervari@...>
I just started playing around with ruby and rails, and one thing I've
In the case of the sqrt line, those parenthesis are not required, and
On Mon, Oct 11, 2010 at 6:04 AM, egervari <ken.egervari@gmail.com> wrote:
On Oct 10, 8:21=A0pm, egervari <ken.egerv...@gmail.com> wrote:
vim completion works with, or without, the '(' and ')'. same with
On Monday, October 11, 2010 09:58:40 pm ara.t.howard wrote:
On Tue, Oct 12, 2010 at 6:20 PM, David Masover <ninja@slaphack.com> wrote:
On Thu, Oct 14, 2010 at 09:51:19AM +0900, Eric Christopherson wrote:
[#371552] Testing for subarrays — Michel Demazure <michel@...>
I want to check whether a given array contains a given subarray and
[#371554] Some newbie questions - bare with me ;) — egervari <ken.egervari@...>
Question 1
[#371570] Can DRbUndumped be disabled for certain return types? — Josh Mcdade <josh.ncsu@...>
I have server model classes that definitely need DRbUndumped. Except
On 10/11/2010 05:39 AM, Josh Mcdade wrote:
On Mon, Oct 11, 2010 at 8:16 PM, Joel VanderWerf
[#371580] more idiomatic way to avoid errors when calling method on variable that may be nil? — Charles Calvert <cbciv@...>
I'm using Ruby 1.8.7 patchlevel 249
On Mon, Oct 11, 2010 at 2:05 PM, Charles Calvert <cbciv@yahoo.com> wrote:
Haskell solves the "may be nil" problem with the Maybe monad (from Haskell).
On Mon, Oct 11, 2010 at 10:59 PM, Tony Arcieri <tony.arcieri@medioh.com> wrote:
On Tue, Oct 12, 2010 at 6:39 AM, Rick DeNatale <rick.denatale@gmail.com>wrote:
On Mon, 11 Oct 2010 22:01:43 -0500, "ara.t.howard"
On 10/11/2010 08:44 PM, Charles Calvert wrote:
On Mon, Oct 11, 2010 at 10:04 PM, Joel VanderWerf
[#371586] Ruby 1.9.2: How to sanitize text with invalid characters? — "Andreas S." <x-ruby-lang@...>
I process a lot of text files of which I know the encoding, but that
Code / Data samples?
[#371599] Ruby Sanity Check — flebber <flebber.crue@...>
HI
[#371609] map-1.3.0 — "ara.t.howard" <ara.t.howard@...>
NAME
[#371623] Helping with Ruby, where to start? — Rajinder Yadav <devguy.ca@...>
How does one start to help the Ruby community? I figure the best way to
On 10/11/2010 11:31 PM, Rajinder Yadav wrote:
On 10-10-12 10:01 AM, Jeremy Bopp wrote:
On 10/13/2010 3:53 AM, Rajinder Yadav wrote:
On Wed, Oct 13, 2010 at 12:29 PM, Jeremy Bopp <jeremy@bopp.net> wrote:
[#371633] rake aborted! Validation failed: — Anders Nguyen <nguyen.anders@...>
Trying to populate a database with some users using rake db:populate.
On Oct 12, 5:42=A0am, Anders Nguyen <nguyen.and...@gmail.com> wrote:
Luis Lavena wrote in post #949462:
[#371642] How to do this — Damjan Rems <d_rems@...>
I don't know how to explain so I will just code:
[#371661] if the variable is set. — "Leonel *.*" <leonelsantos.me@...>
How can I create an if statement to check if a variable contains a
Looks like you're checking whether or not the variable itself exists, as
[#371700] Do you need a cert to make a gem? — Paul Bergstrom <pal@...>
I'm trying to learn how to make my own gem. I just wondered about
[#371702] sort_by: multiple fields with reverse sort — Rahul Kumar <sentinel1879@...>
I need to use *sort_by* to sort a table, since the user could select
[#371704] Excel and Ruby — "Dan Sr." <djonavarro@...>
Hello all,
oops sorry I initialized alot of Constants there.
[#371713] Cannot install a gem on Windows x64 — Esen Sagynov <kadishmal@...>
Hi,
[#371728] Options in a class — Paul Bergstrom <pal@...>
I have some problems understanding the basics of classes and modules in
[#371730] A use case for strmask gem? — Intransition <transfire@...>
String::Mask is a library I created not for a specific use case, but
[#371749] How to overwrite standard puts method — Arkady Itkin <aitkin@...>
I'm pretty new to ruby.
On 10/13/2010 07:31 PM, Arkady Itkin wrote:
[#371766] net-http-persistent 1.4.1 Released — Eric Hodel <drbrain@...7.net>
net-http-persistent version 1.4.1 has been released!
[#371803] Object Identification in Watir — Manjunath Ra <manjunath.rp@...>
Hi,
[#371804] How do i provide password for su command while using net/telnet in ruby — Amit Tomar <amittomer25@...>
Hii all ,
On 10/14/2010 5:22 AM, Amit Tomar wrote:
[#371810] Setting local variables for 'erb' command-line tool — Brian Candler <b.candler@...>
I have a bunch of *.erb files which I would like to expand using the
[#371817] Freeze method doesn't work — "Sergey U." <2ys.pro@...>
Freeze should prevent further modifications to 'var'...
[#371825] 1.9.2 irb and readline problem on ubuntu — GregD <gditrick@...>
All,
[#371836] <Class info> from a String. — Huw Taylor <huw_taylor@...>
If I were to have this:
[#371860] RubyGems and ruby versions — Denny Britz <dennybritz@...>
Hello,
What does "which gem" say?
[#371865] Kind of nested loops — Veedo Dream <vikadik@...>
I am trying to get this going where i have this build array and then I
[#371878] Is it possible to find out if an identifier is a method alias? — Ammar Ali <ammarabuali@...>
>> def method; end
On 10/14/10 4:48 PM, Ammar Ali wrote:
On Fri, Oct 15, 2010 at 2:17 AM, Daniel Berger <djberg96@gmail.com> wrote:
On Fri, Oct 15, 2010 at 1:03 PM, Ammar Ali <ammarabuali@gmail.com> wrote:
On Sat, Oct 16, 2010 at 3:19 PM, David A. Black <dblack@rubypal.com> wrote:
[#371892] How do I highlight Ruby code on a GitHub wiki? — Albert Schlef <albertschlef@...>
I understand this question is a little off-topic here, but the
[#371897] How do i split a file by newline — Amit Tomar <amittomer25@...>
Hi all,
[#371909] Process for optimizing ruby code — Andrew Wagner <wagner.andrew@...>
So, I've got a chunk of code which needs optimizing. Yes, it really needs
[#371918] test-loop - Continuous testing with fork/eval — Suraj Kurapati <sunaku@...>
test-loop - Continuous testing for Ruby with fork/eval
[#371921] Ruby Standard Environment — Don Norcott <dnorcott@...>
I am running windows XP professional with Ruby 1.92. I have a Ruby
[#371936] check contents of a pointer. — John Smith <edvelez.g@...>
Hi everyone,
How should I get 1.9.1,
On Sat, Oct 16, 2010 at 1:10 PM, John Smith <edvelez.g@gmail.com> wrote:
[#371940] My First Time — Travis Tslib <travis.garris@...>
I have Perl and PHP experience. I love the idea of true OO and wanted
[#371942] Most elegant way: array of files from array of directories — Terry Michaels <spare@...>
I have a array of directories passed into my program. I want a new array
[#371943] Is this an executable code? — Kaye Ng <sbstn26@...>
Time.local(year, month, day, hour, min, sec, msec)
Hi,
I think I get it now. I typed Time.local(2010,10,16,15,50,33)
[#371978] mechanize - extract href — Corey Watts <cwatts@...>
Hey there everyone. I'm having a slight problem using Mechanize. I'm
[#371982] What's the opposite of << — Paul Roche <prpaulroche@...>
Hi, what's the opposite the concatenate sign << ?
[#371983] require behavior change from 1.8.7 p299 to 1.9.2 p0 — Bharat Ruparel <bcruparel@...>
requiring a file is causing problems for me in Ruby 1.9.2 p0. This
[#372006] autotest, rspec with rails 3 — Rajinder Yadav <devguy.ca@...>
Hello I am on Kubuntu and autotest doesn't seem to run the rspec tests
[#372016] unable to preload "rbconfig" in my irb session — "Sandeep K." <uniqueembassy@...>
I'm using Ruby 1.9.2 with Windows XP as host, I ran the command
[#372021] ruby-forum.com attachments don't show up in mails anymore — Quintus <sutniuq@...>
-----BEGIN PGP SIGNED MESSAGE-----
On 10-10-17 06:39 AM, Quintus wrote:
[#372033] github: maintain multiple releases of a gem — Rahul Kumar <sentinel1879@...>
(Apologies if i've posted before. Can't find it here).
[#372039] simple question: pointer equivalent in ruby — Shea Barton <shea@...>
learned ruby a few months ago - is there a pointer equivalent in ruby
[#372052] data type for a string value — Jack Su <jackxxu@...>
when humans look at a string, they will know whether it is a date, a
This problem is too generic. Are we talking only numbers vs strings or
Xavier Noria wrote in post #955025:
[#372064] Ubuntu, SSL, Ruby 1.9.2 — "Gerald A." <gander@...>
Having a problem with SSL on ruby 1.9.2, Ubuntu 10.10. Think it's a
Gerald A. wrote in post #955125:
[#372070] su {block of code.} — Guido De Rosa <guidoderosa@...>
Hi!
I'd suggest spawning a new Ruby instance which runs under sudo and talking
Tony Arcieri wrote in post #955183:
On Mon, Oct 18, 2010 at 4:18 PM, Guido De Rosa <guidoderosa@gmail.com>wrote:
Tony Arcieri:
[#372079] Rye - how to use passphrase? — Terevos Gmail <terevos@...>
Hi All,
[#372083] A question about require when using Shoes — Ruby Student <ruby.student@...>
I am playing with Shoes and Ruby and wanted to use the Math library on my
I think Justin is right, in that you should be able to just use Math,
[#372097] How can I play sound using ruby? — Ted Flethuseo <flethuseo@...>
I want to build a program where I will need to play sound from a wav
[#372103] unable to download file from rubyforge.org — Heesob Park <phasis@...>
Hi all,
[#372117] Constant Lookup Confusion — Josh Cheek <josh.cheek@...>
Trying to dynamically set a constant, but I seem to either be defining it in
[#372128] Find block in a long string — Greg Ma <gregorylepacha@...>
Hi,
[#372157] YAML serialization of Hash with Set key not loadable — Tim Garnett <tgarnett@...>
YAML serialization seems to be failing for me with any structure that
[#372163] Separator in $PATH — Stefano Mioli <stefano.mioli@...>
Hello everyone,
[#372175] Comparison error — Jake Alucard <zrgms@...>
so i'm writing a program for class that tells the user if the person is
[#372176] Folder Update Triggering — "Brandon P." <born2run000@...>
Hi All,
how about ruby-inotify ? http://raa.ruby-lang.org/project/ruby-inotify/
[#372181] Help missing something BASIC — Don Norcott <dnorcott@...>
This code is conceptually what I want to do with the nokogiri code below
On Wed, Oct 20, 2010 at 3:40 AM, Don Norcott <dnorcott@mts.net> wrote:
Thanks Robert
On Wed, Oct 20, 2010 at 4:14 PM, Don Norcott <dnorcott@mts.net> wrote:
Thanks for your help
On 20.10.2010 18:10, Don Norcott wrote:
I have actualy taken this first tutorial plus a few more
[#372188] ruby and java — Ruben Herman <nedumeritulcj@...>
I have a .jar file and want to use some methods form this jar file in
[#372190] Removing files if those exists — "Simo M." <simo.maatta@...>
Hi,
[#372200] Concurrent Ruby webservices from wsdl2ruby — "Catherine S." <pazuzule@...>
Hi,
[#372213] how do i use JS.Class in ruby — Amit Tomar <amittomer25@...>
Hii all,
[#372221] Messagebox on client side — Amit Tomar <amittomer25@...>
Hii all,
[#372232] about handling args in block — salamond <jarodzz@...>
Hi, guys.
On Oct 20, 11:41=A0am, Robert Klemme <shortcut...@googlemail.com> wrote:
On Thu, Oct 21, 2010 at 6:10 AM, w_a_x_man <w_a_x_man@yahoo.com> wrote:
Thanks Jeremy, wax, and robert.
[#372234] Long conditional statements — Courtland Allen <courtlandallen@...>
Some parts of my code call for really long conditional statements of the
On Wed, Oct 20, 2010 at 10:26 PM, Courtland Allen
[#372239] best practice for redefining methods at runtime? — Chuck Remes <cremes.devlist@...>
I have a class that I would like to "freeze" when it reaches a particular state so that it becomes read-only. I do *not* want to use the existing #freeze method because it raises an exception when there is an attempted mutation on a frozen object and I want the attempt to be silent. It appears that the best way to enforce this (state machine pattern) is by redefining the accessors and other methods that cause mutations to be no ops.
[#372289] generating random argument lists — Melody Class <rmiddlehouse@...>
Hi,
> now i just want to randomly generate a random number of arrays of random
On Thu, Oct 21, 2010 at 8:11 AM, Y. NOBUOKA <nobuoka@r-definition.com> wrot=
[#372295] scope when reopening method — Rahul Kumar <sentinel1879@...>
Here is a dummy class with a method "meth".
Rahul Kumar wrote in post #956000:
[#372314] Wired on sources of creativity — Robert Klemme <shortcutter@...>
Hi,
[#372332] get blinking cursor in Console, but not in SciTE — RichardOnRails <RichardDummyMailbox58407@...>
Hi,
[#372340] How to pass/return a string to calling program? — Tony De <tonydema@...>
Greetings,
On 10/21/2010 3:20 PM, Tony De wrote:
Jeremy Bopp wrote in post #956168:
On 10/21/2010 06:12 PM, Tony De wrote:
[#372342] Help needed with this code please — Paul Roche <prpaulroche@...>
Hi. I have a number of classes that use a module as a mixin. Not sure if
[#372352] Ruby compile failing at make ("LIBRUBY_EXTS: command not found") — Jonathan Gold <jgold.bg@...>
Anyone have any ideas why ruby compile (1.9.1-p430) is failing for me near what
Jonathan Gold wrote in post #956225:
On Fri, Oct 22, 2010 at 05:25:28PM +0900, Brian Candler wrote:
Brian -- I forgot to also give you some other details:
[#372361] Why is top-level an object rather than just Object? — John Mair <jrmair@...>
Why is it that top-level isn't just the Object class itself? what's the
On Fri, Oct 22, 2010 at 11:51 AM, John Mair <jrmair@gmail.com> wrote:
But, for most cases main already behaves like Object:
On Fri, Oct 22, 2010 at 5:07 PM, John Mair <jrmair@gmail.com> wrote:
Thomas Sawyer wrote in post #956386:
[#372376] Ruby Compile. — Tridib Bandopadhyay <tridib04@...>
I am running Ruby 1.8.1 on CentOS release 4.8(Final)..
On Fri, Oct 22, 2010 at 11:57 AM, Tridib Bandopadhyay
On Fri, Oct 22, 2010 at 3:03 PM, Rajinder Yadav <devguy.ca@gmail.com> wrote:
@Rajinder Yadav
On Mon, Oct 25, 2010 at 7:40 PM, Tridib Bandopadhyay <tridib04@gmail.com> wrote:
[#372377] cannot load watir — Junkone <junkone1@...>
as you can see, i have the watir gem installed but cannot load it in
[#372412] Database connection String Using 'win32ole' — Ruby Mania <prateek123@...>
My Connection String:
What type of authentication does your SQL Server use? Windows or SQL
[#372426] Scraping database — Railsfid <railsfid@...>
Hi, I was trying to figure out Mckenzie =
[#372431] Regexp Unicode property names strange behavior? — Ammar Ali <ammarabuali@...>
On 1.9.2, I'm seeing an "invalid character property name" error from Regexp
[#372447] Non-Hard Coded File.open(newFile) — Grant Curell <grantcurell@...>
Like a lot of people I'm new to Ruby and I'm trying to do something I
[#372451] global hotkeys in windows. — Ted Flethuseo <flethuseo@...>
I built a script that does a job for me, and I'd like to call from time
On Sat, Oct 23, 2010 at 9:11 AM, Ted Flethuseo <flethuseo@gmail.com> wrote:
Eric Christopherson wrote in post #956560:
[#372462] No key set in openstruct ? — jney <jeansebastien.ney@...>
Hello,
[#372481] Convert Array to nested Hash — Zhi-Qiang Lei <zhiqiang.lei@...>
Dear All,
[#372486] Workaround for gem push — Brian Candler <b.candler@...>
I've got an updated gem to push out, but I've got a problem.
[#372487] A way to code a HUD in Linux? — "Javier V." <javiervalencia80@...>
I want to code some sort of HUD, this is, a transparent desktop layer
[#372493] Utilizing data from a csv file — Paul Roche <prpaulroche@...>
Hi I basically want to create a function that takes in data that has
On 10/24/2010 09:34 AM, Paul Roche wrote:
[#372525] Placing new names under standard namespaces? — Ammar Ali <ammarabuali@...>
Someone recently pointed out that placing new classes and modules
[#372535] Need help with class variables and inheritance — John Doe <bl4.929b@...>
Hi,
[#372536] Class eval does not work with self — Andy Frank <ridingwithrails@...>
I am experimenting with a test class to figure out why self.class_eval
[#372556] DSL and indirection question — Matt Lawrence <matt@...>
I'm trying to figure out the best way of writing a script that describes
[#372568] Can't get ruby serial port to work — Dd Dd <dd25@...>
I recently installed Ruby Version 1.9.2 on my PC. I am trying to get
[#372572] Extraction of single subarrays from multidimensional array — Maurizio Cirilli <mauricirl@...>
Hi there,
Thanks a lot Robert for your clear explanation and help.
Thank you all for the very very instructive replies-
[#372582] Web App with Windows GUI — Mike Stephens <rubfor@...>
I am trying to design an application that scripts a GUI to expose its
[#372592] require in instance_eval — unexist <unexist@...>
[#372633] Ruby gc.c Code Help — Tridib Bandopadhyay <tridib04@...>
Hello everyone..
Any one.!! Who has the knowledge of gc.c file?
[#372635] require unable to load existing file? — Mohammad El-abid <mohammad.elabid@...>
irb(main):001:0> File.exists? 'models/user.rb'
[#372652] Delete the files from mac system connected by windows. — Arihan Sinha <arihan_sinha@...>
Hi All,
Mac is Unix, so the file path is going to be different - it's a forward =
Rilindo Foster wrote in post #957435:
[#372656] Regular expression quirk? — Ammar Ali <ammarabuali@...>
Hello,
On Wed, Oct 27, 2010 at 12:44 PM, Ammar Ali <ammarabuali@gmail.com> wrote:
[#372679] TCPServer bug? — Yan Bernatsky <releu@...>
Hello.
[#372696] Problem installing win32-api gem on Windows — "Mike G." <goldsby@...>
I'm behind a firewall that prevents me from just doing
[#372704] rsruby install trouble — Guybrush Threepwood <deadpool93@...>
Hello, trying for no particular reason to create a K constant calculator
[#372705] FasterCSV - illegal quoting error - thought it was correct? — Gabriel Saravia <gabe.saravia@...>
I'm running:
[#372720] Defining nested Method in single class — Arun Kumar <jakheart001@...>
Hi All,
[#372726] ctype functionality without a gem? — Ammar Ali <ammarabuali@...>
Hello,
On Thu, Oct 28, 2010 at 9:50 AM, Ammar Ali <ammarabuali@gmail.com> wrote:
[#372734] Word starts by a vowel — Greg Ma <gregorylepacha@...>
Hi,
[#372760] undefined method `find' for.:Module — John Hammink <john@...>
Hello,
[#372780] map-1.5.0 — "ara.t.howard" <ara.t.howard@...>
NAME
[#372796] Ruby 1.9.1 linear memory increase in a simple for loop. — Ritwik Banerjee <ritwik.banerjee@...>
The following text code shows a linear rise in memory usage. Since this
On Fri, Oct 29, 2010 at 3:17 PM, Ritwik Banerjee
Calamitas wrote in post #958065:
On Sat, Oct 30, 2010 at 12:12 PM, Ritwik Banerjee
[#372801] operator bug (or not)? — Robert Pankowecki <robert.pankowecki@...>
ruby-1.9.2-head > ary.object_id
[#372820] Is this an effective loop — Ted Flethuseo <flethuseo@...>
I was wondering if a loop of this sort would be
On 10/29/2010 4:28 PM, Ted Flethuseo wrote:
On Fri, Oct 29, 2010 at 11:34 PM, Jeremy Bopp <jeremy@bopp.net> wrote:
On 10/29/2010 4:59 PM, Ammar Ali wrote:
On Sat, Oct 30, 2010 at 12:24 AM, Jeremy Bopp <jeremy@bopp.net> wrote:
[#372826] Constant lookup as-if toplevel — Intransition <transfire@...>
I'm evaluating a ruby script against a testing DSL that I wrote. Now I
[#372835] Dynamically reference instance vars — Greg Willits <lists@...>
If I need to dynamically reference instance vars, is this the only way
[#372841] Range of hex values? — Ammar Ali <ammarabuali@...>
Hello,
[#372842] What does ruby.exe do? — Kaye Ng <sbstn26@...>
In my folder C:\Ruby192\bin , there is ruby.exe
On 10-10-30 05:34 AM, Kaye Ng wrote:
Rajinder Yadav wrote in post #958380:
[#372862] Undocumented feature: Array#one? (ruby 1.9.2) — Siep Korteling <s.korteling@...>
In (my) ruby 1.9.2 class Array has an undocumented method #one? . It
[#372866] "<-----/strings/----->" my ruby http client, link search. — Bigmac Turdsplash <i8igmac@...>
im not sure how to ask this question...
[#372886] the dark side of inherited methods — timr <timrandg@...>
Let's say I want to make a new class, Vector (that will function,
On Sun, Oct 31, 2010 at 11:30 PM, timr <timrandg@gmail.com> wrote:
On 10-10-31 06:42 PM, Phillip Gawlowski wrote:
On Oct 31, 2010, at 5:30 PM, timr wrote:
On Sun, Oct 31, 2010 at 5:49 PM, James Edward Gray II <james@graysoftinc.com
On Tue, Nov 2, 2010 at 4:29 AM, Tony Arcieri <tony.arcieri@medioh.com> wrote:
On 02.11.2010 17:37, Intransition wrote:
On Nov 2, 1:40=A0pm, Robert Klemme <shortcut...@googlemail.com> wrote:
On 02/11/2010 17:40, Robert Klemme wrote:
On Nov 1, 2010, at 10:29 PM, Tony Arcieri wrote:
On Tue, Nov 2, 2010 at 11:19 AM, James Edward Gray II <james@graysoftinc.com
On 11/02/2010 10:02 AM, Josh Cheek wrote:
On Nov 2, 2010, at 1:04 PM, Joel VanderWerf wrote:
On 11/02/2010 11:12 AM, James Edward Gray II wrote:
[ANN] Sinatra 1.1 released!
We are happy to announce that Sinatra 1.1 has just been released! This
release introduces a small number of new features and fixes for all
known bugs that came up since the 1.0. This release is expected to run
1.0 apps without changes and to work seamlessly with the latest releases
of Ruby, Rails and Rack.
To upgrade your version via rubygems, simply run:
gem install sinatra
Thanks to everyone who has contributed to Sinatra directly:
Markus Prinz, Chris Schneider, Gabriel Andretta, S. Brent Faulkner,
Nicolas Sanguinetti, Adam Wiggins, Nickolas Means, Doug Ireton, Damian
Janowski, TJ Holowaychuk, Matte Noble, Wu Jiang, Rein Henrichs, Dylan
Egan, burningTygerrans, Ben Bleything, Bob Aman, Brandon Dimcheff, David
Balatero, Davide D'Agostino, Harry Vangberg, Jon Crosby, Karel Minarik,
Kouhei Yanagita, Krekoten' Marjan, Pat Nakajima, Sylvain Desv=C3=A9, kema=
tzy,
raggi, Jeremy Evans, John Barnette, kektre, Joshua Peek, Jos=C3=A9 Valim,=
Julio Capote, t_huehn@gmx.de, Homer Simpson, mig, pangel, Lee Jarvis,
Erik Kastner, Mathew Cucuzella, Matias K=C3=A4kel=C3=A4, Eric Marden, Mic=
hael
Jones, Michel, Nick Sutterer, Doug Richardson, Dopin, yaanno, Patrick
Collison, Pedro Menezes, Peter Suschlik, Devlin Daley, Danny Tatom,
Chris Wanstrath, Sam Roberts, Samuel Goebert, Scott Wisely, Caio
Chassot, Steve Shreeve, scottj97, Bernhard Essl, Tim Carey-Smith, Tom
Hartwell, Trevor Dawe, Victor Hugo Borja, Widi Harsojo, Wlodek Bzyl,
Aupajo, Yoji Shidara, a_user@mac.com, Anthony Williams, Andrey
Savchenko, Andreas Haller, cylence, Ian Dees, Igal Koshevoy, JP
Hastings-Spital, Jack Danger Canty, Jason Stewart, Jean-Philippe Garcia
Ballester, Jens Alfke, Jimmy Schementi
Or to the website:
Markus Prinz, Konstantin Haase, Karel Minarik, nesquena, Dylan Egan,
Scott Wisely, zapnap, Victor Igumnov, Alexander Kahn, micah rich,
Andreas Schacke, Chris Schneider, Dan Croak, Guido De Rosa, Jon Maddox,
Kevin Fullerton, Michael Koukoullis, Mike Breen, Nat Welch, Nate, Neal
Lindsay, Nicolas Sanguinetti, Ramanan Sivaranjan, Tanner Burson, Wlodek
Bzyl, ai, hallison, nakajima, shtirlic, tanner, will bailey, Chris Mear,
klondike, Mike Stenhouse, lenary, madx, Alex Reisner, Nicholas J
Humfrey, waferbaby, Prabhakar Chaganti, Q R, Andy Herbert, Robert Crim,
Brian Deterling, Sausheong Chang, Ben Schwarz, Anton Mironov, Stuart
Henry, norr, Tim Carey-Smith, Tom=C3=A1s Pollak, Vesa V=C3=A4nsk=C3=A4, A=
ngel N.
Sciortino, Wagner Andrade, pcorliss, Andrew Neil, bcarlso, beenimble,
blair christensen, blindgaenger, bmizerany, brdavs, Daniel Hofstetter,
Dan Ryan, Emanuele Vicentini, Eric Kidd, Etienne Vallette d'Osia, Evan,
Geoffrey Grosenbach, Graham Ashton, dbr, Hans Oksendahl, Jarin Udom,
Jason Stewart, Jesse Cooke, foca, Damian Janowski, gabrielf, Corey
Donohoe, winton
Or to the book:
Chris Schneider, Markus Prinz, Karel Minarik, Attila Csisz=C3=A1r,
Christopher Schneider, Scott Wisely, Zachary Scott, Nicolas Sanguinetti,
Max Aller, Louis Nyffenegger, gruner, ichverstehe, bryanwoods, Syd, jdp,
syd, Deepak Kumar, Hunter Gillane, John Croisant, Jordan Elver, Kumar
Gaurav, Neal Lindsay, Robert Peterson, Rohit Arondekar, Ryan Tomayko,
burningTyger, karmi, lucasjosh, root, Andy Atkinson
And thanks of course to everyone who has reported bugs, suggested
features, wrote extensions or simply uses Sinatra.
It would not have been possible without you!
Everything that happened since 1.0, from the CHANGES:
* Before and after filters now support pattern matching, including the
ability to use captures: "before('/user/:name') { |name| ... }". This
avoids manual path checking. No performance loss if patterns are
avoided. (Konstantin Haase)
* It is now possible to render SCSS files with the `scss` method, which
behaves exactly like `sass` except for the different file extension and
assuming the SCSS syntax. (Pedro Menezes, Konstantin Haase)
* Added `liquid`, `markdown`, `nokogiri`, `textile`, `rdoc`, `radius`,
`markaby`, and `coffee` rendering methods for rendering Liquid,
Markdown, Nokogiri, Textile, RDoc, Radius, Markaby and CoffeeScript
templates. (Konstantin Haase)
* Now supports byte-range requests (the HTTP_RANGE header) for static
files. Multi-range requests are not supported, however. (Jens Alfke)
* You can now use #settings method from class and top level for
convenience. (Konstantin Haase)
* Setting multiple values now no longer relies on #to_hash and therefore
accepts any Enumerable as parameter. (Simon Rozet)
* Nested templates default the `layout` option to `false` rather than
`true`. This eases the use of partials. If you wanted to render one haml
template embedded in another, you had to call `haml :partial, {},
:layout =3D> false`. As you almost never want the partial to be wrapped i=
n
the standard layout in this situation, you now only have to call `haml
:partial`. Passing in `layout` explicitly is still possible. (Konstantin
Haase)
* If a the return value of one of the render functions is used as a
response body and the content type has not been set explicitly, Sinatra
chooses a content type corresponding to the rendering engine rather than
just using "text/html". (Konstantin Haase)
* README is now available in Chinese (Wu Jiang), French (Mickael Riga),
German (Bernhard Essl, Konstantin Haase, burningTyger), Hungarian (Janos
Hardi) and Spanish (Gabriel Andretta). The extremely outdated Japanese
README has been updated (Kouhei Yanagita).
* It is now possible to access Sinatra's template_cache from the
outside. (Nick Sutterer)
* The `last_modified` method now also accepts DateTime instances and
makes sure the header will always be set to a string. (Konstantin Haase)
* 599 now is a legal status code. (Steve Shreeve)
* This release is compatible with Ruby 1.9.2. Sinatra was trying to read
non existent files Ruby added to the call stack. (Shota Fukumori,
Konstantin Haase)
* Prevents a memory leak on 1.8.6 in production mode. Note, however,
that this is due to a bug in 1.8.6 and request will have the additional
overhead of parsing templates again on that version. It is recommended
to use at least Ruby 1.8.7. (Konstantin Haase)
* Compares last modified date correctly. `last_modified` was halting
only when the 'If-Modified-Since' header date was equal to the time
specified. Now, it halts when is equal or later than the time specified
(Gabriel Andretta).
* Sinatra is now usable in combination with Rails 3. When mounting a
Sinatra application under a subpath in Rails 3, the PATH_INFO is not
prefixed with a slash and no routes did match. (Jos=C3=A9 Valim)
* Better handling of encodings in 1.9, defaults params encoding to
UTF-8. (Konstantin Haase)
* `show_exeptions` handling is now triggered after custom error
handlers, if it is set to `:after_handlers`, thus not disabling those
handler in development mode. (pangel, Konstantin Haase)
* Added ability to handle weighted HTTP_ACCEPT headers. (Davide
D'Agostino)
* `send_file` now always respects the `:type` option if set. Previously
it was discarded if no matching mime type was found, which made it
impossible to directly pass a mime type. (Konstantin Haase)
* `redirect` always redirects to an absolute URI, even if a relative URI
was passed. Ensures compatibility with RFC 2616 section 14.30.
(Jean-Philippe Garcia Ballester, Anthony Williams)
* Broken examples for using Erubis, Haml and Test::Unit in README have
been fixed. (Nick Sutterer, Doug Ireton, Jason Stewart, Eric Marden)
* Sinatra now handles SIGTERM correctly. (Patrick Collison)
* Fixes an issue with inline templates in modular applications that
manually call `run!`. (Konstantin Haase)
* Spaces after inline template names are now ignored (Konstantin Haase)
* It's now possible to use Sinatra with different package management
systems defining a custom require. (Konstantin Haase)
* Lighthouse has been dropped in favor of GitHub issues.
* Tilt is now a dependency and therefore no longer ships bundled with
Sinatra. (Ryan Tomayko, Konstantin Haase)
* Sinatra now depends on Rack 1.1 or higher. Rack 1.0 is no longer
supported. (Konstantin Haase)
Enjoy!
The Sinatra Team
Blake Mizerany
Ryan Tomayko
Simon Rozet
Konstantin Haase
-- =
Posted via http://www.ruby-forum.com/.=