[#342970] JRuby, ffi, bad file descriptor — Daniel Berger <djberg96@...>
Hi,
Hmm, did you post this to JRuby dev list or ruby-ffi list yet? Could
Got the source of that temp.rb handy? It looks like it's passing a
[#342989] Yet another MySQL issue on WinXP — Perdikis Perdikis <mmx38@...>
I know that my questions will NOT be answered even thogh are pretty
[#343006] using git for projects with multiple gems on rubyforge — Joel VanderWerf <vjoel@...>
[#343034] RUBY vs COMMON LISP — fft1976 <fft1976@...>
On Aug 1, 8:55=A0pm, p...@informatimago.com (Pascal J. Bourguignon)
fft1976 <fft1976@gmail.com> writes:
[#343041] qtruby overrides "to_s" depending on user's LOCALES — Iñaki Baz Castillo <ibc@...>
Hi, is it an appropiate list for asking about QtRuby?
On Sunday 02 August 2009, I=C3=B1aki Baz Castillo wrote:
El Domingo, 2 de Agosto de 2009, Stefano Crocco escribi=C3=B3:
[#343050] does anyone have Ruby 1.9 64b for Windows working? — Nick Brown <nick@...>
The "one click installer" is great, but the Ruby website provides no
2009/8/2 Nick Brown <nick@nick-brown.com>
[#343054] Inconsistency in Array#[] — Wojciech Piekutowski <w.piekutowski@...>
Disclaimer: I know what docs say, but I'd prefer a different
On Aug 3, 4:38=A0am, Harry Kakueki <list.p...@gmail.com> wrote:
Hi,
[#343087] Instant Rails Replacement? — frank peterson <fictionalperson@...>
Is there a standalone (non-installable) way to get Ruby to run?
[#343100] Good web design — Brian Candler <b.candler@...>
Sorry for the OT, but I figure there must be other people on this list
[#343113] Best way to implement animated chart in ruby — Diego Bernardes <di3go.bernardes@...>
I need to implement a animated chart in ruby, im using gtk.
[#343121] libxml in production — "Vince W." <vince71@...>
I'm having an issue loading libxml in production. On the same machine:
[#343128] How to extract only needed attribute from an array — "Thriving K." <superdisconnect@...>
[#343135] Kind of ParsTree for 1.9.1 — Macario Ortega <macarui@...>
On Tue, Aug 4, 2009 at 12:20 AM, Macario Ortega <macarui@gmail.com> wrote:
Tony Arcieri wrote:
On Tue, Aug 4, 2009 at 7:56 PM, Macario Ortega<macarui@gmail.com> wrote:
[#343172] Python and ruby together? — Gwen Morse <goldmooneachna@...>
Is it possible to set up python scripts in such a way that they can
[#343178] Loading precompiled code — Husam Senussi <husam@...>
Hi,
[#343183] Has anyoune tried Red Sun — Oren Shani <orenshani@...>
Hi All,
[#343186] Bizarre Range behavior — Scott Briggs <scott.br@...>
Can someone please explain this behavior in ruby (1.8.6p111):
On Aug 4, 1:47=A0pm, Scott Briggs <scott...@gmail.com> wrote:
On Aug 4, 2009, at 3:04 PM, Yossef Mendelssohn wrote:
On Wed, 5 Aug 2009, Rob Biedenharn wrote:
On Aug 4, 2009, at 3:45 PM, Matthew K. Williams wrote:
Hi,
Yukihiro Matsumoto wrote:
Hi,
Hi --
Hi,
On Wed, Aug 5, 2009 at 12:21 PM, Yukihiro Matsumoto<matz@ruby-lang.org> wro=
2009/8/5 Rick DeNatale <rick.denatale@gmail.com>
Hi,
On Sun, Aug 16, 2009 at 6:20 PM, Yukihiro Matsumoto<matz@ruby-lang.org> wrote:
Hi,
Yukihiro Matsumoto wrote:
Hi,
[#343204] QtRuby Questions: Why does — Matthew Borgeson <hibridmatthias@...>
Guten Tag, everyone-
[#343206] zero placeholder exponential sprintf? — Bil Kleb <Bil.Kleb@...>
Hi,
On Wed, Aug 5, 2009 at 7:00 AM, Bil Kleb<Bil.Kleb@nasa.gov> wrote:
[#343227] ParseException met when using Watir with xpath, please help. — Gong Jing <northnashi@...>
Hi all,
[#343235] remove commas from string — Jason Lillywhite <jason.lillywhite@...>
I have following string:
* Jason Lillywhite <jason.lillywhite@gmail.com> wrote:
2009/8/5 Lars Haugseth <njus@larshaugseth.com>:
On Aug 5, 2009, at 3:55 AM, Robert Klemme wrote:
[#343239] Any tool for examine ruby's thread? — femto Zheng <femtowin@...>
Hello all,I'm doing a multithreaded ruby application,
2009/8/5 femto Zheng <femtowin@gmail.com>:
Yes, at least I need how many threads there are,
Please do not top post.
On Thu, Aug 6, 2009 at 4:17 PM, Robert Klemme<shortcutter@googlemail.com> wrote:
[#343276] Change console forground to Red or Green — Laup-Dawg <adamlauper@...>
Hi All,
[#343288] including gems with standalone app — Eric Peterson <ericdp@...>
Morning,
On Wed, Aug 5, 2009 at 5:12 PM, Eric Peterson<ericdp@mac.com> wrote:
hmm.. well, something went wrong. I already have fastercsv installed,
On Thu, Aug 6, 2009 at 11:23 AM, Eric Peterson<ericdp@mac.com> wrote:
[#343293] How to logout when using Rake::Auth::Basic in Sinatra — Tony Tony <slythic@...>
Hi all,
[#343300] Trimming some string using ruby — Shekar Ls <idealone5@...>
Hi guys,
[#343305] Terminal escape sequences — James Coglan <jcoglan@...>
Hi all,
[#343316] Kernel's module methods? — 7stud -- <bbxx789_05ss@...>
According to pickaxe2, p516:
7stud -- wrote:
2009/8/6 Brian Candler <b.candler@pobox.com>
James Coglan wrote:
On Aug 6, 2009, at 7:32 AM, Brian Candler wrote:
[#343320] 1.9 String and M17N documentation — Brian Candler <b.candler@...>
I have put together a document which tries to outline the M17N
On Aug 6, 2009, at 6:47 AM, Brian Candler wrote:
James Gray wrote:
On Aug 6, 2009, at 08:57, James Gray wrote:
Eric Hodel wrote:
On Aug 7, 2009, at 00:52, Brian Candler wrote:
Eric Hodel wrote:
On Aug 12, 2009, at 02:02, Brian Candler wrote:
[#343386] What is wrong with this program? — Prateek Agarwal <prateek.agwl@...>
I don't understand what is wrong with this program. It gives an error:
[#343398] FFI, sysctl, pointer question — Daniel Berger <djberg96@...>
Hi,
[#343404] ruby thread is buggy while using serialport — Ashikali Ashikali <ashikali.m@...>
On Aug 12, 6:40=A0am, Ashikali Ashikali <ashikal...@gmail.com> wrote:
geidies@googlemail.com wrote:
[#343406] R1.9 mixed encoding in file — Vít Ondruch <v.ondruch@...>
Hello
On Aug 7, 2009, at 8:49 AM, V=C3=ADt Ondruch wrote:
James Gray wrote:
On Aug 7, 2009, at 9:47 AM, V=C3=ADt Ondruch wrote:
[#343409] how to "source" a file? — Ken Feng <hkkf1970@...>
I have a bash file ~/.myenv that contains environmental variables like:
[#343413] How can I copy an array and its elements? (call by value) — Janus Bor <janus@...>
Hi all,
[#343423] How do I add ? — chutsu <chutsu@...>
I've got a file that is in two columns, how do I add the second column
[#343429] CGI::Session just don't work — Bruno Sousa <brgsousa@...>
I got this file to a apache/mod-ruby server and nothing is being set to
[#343444] what is "stack level too deep (SystemStackError)" error — Mrmaster Mrmaster <mrsolarlife@...>
Hi,
[#343472] Soft realtime with EventMachine and timer resolution — Macario Ortega <macarui@...>
[#343490] How do I upload an image with Sinatra (like Paperclip)? — Tony Tony <slythic@...>
Hi all,
[#343509] Imagemagick, Rmagick hsla problem — Justin Bl <janthonyb1@...>
For any imagemagick users out there, I'm having trouble getting
[#343511] How to define doubles: Array-to-hash — Tom Ha <tom999@...>
Hi there,
Hi,
[#343519] Generate binary sequences of length n? — Tom Best <thomas.j.best@...>
I'm rather new to Ruby. I feel this should be very simple, but I'm
Hi --
[#343524] Making Hash a first-class citizen — Erik Michaels-Ober <sferik@...>
I've noticed a couple inconsistencies in the way Ruby hashes are treated
Erik Michaels-Ober wrote:
[#343553] Calling another Ruby script — Peter Bailey <pbailey@...>
Hi,
[#343566] Reading contents of a file and storing — Shekar Ls <idealone5@...>
Guys,
> I heard in java there is some get property which picks values after '='
Harry Kakueki wrote:
Joel VanderWerf wrote:
[#343577] Load & Execute Code From a Database — Paul F Fraser <paulf@...2zliving.com>
Hi,
I guess you could sandbox it? There are Ruby sandboxes out there...
Fabian Streitel wrote:
Brian Candler wrote:
Paul F Fraser wrote:
[#343591] ActiveRecord to_json encoding — Calvin Nguyen <calvin98115@...>
[#343592] Destroying related objects doubt ... basic oop question — Soh Dubom <sohdubom@...>
::Destroying related objects doubt
Soh Dubom wrote:
Yet another reason for steering well clear of object-relational mappers.
> Yet another reason for steering well clear of object-relational mappers.
Fabian Streitel wrote:
> It was shown (30 years ago) that assembler is noticeably less productive
Fabian Streitel wrote:
On Thu, Aug 13, 2009 at 12:26 AM, Mike Stephens<rubfor@recitel.net> wrote:
[#343596] instance_variables vs. local_variables — David Whetstone <rubyforum@...>
Can anyone offer a reasonable explanation for the difference in behavior
David Whetstone wrote:
So the implication here is that there is no way to define a local
David Whetstone wrote:
[#343625] Use Ruby to create Win executable? — Manuel Souto pico <m.soutopico@...>
Hi,
Sorry, I forgot to say goodbye and to thank you in advance for any
[#343649] Good editor for Windows Ruby — Peter Bailey <pbailey@...>
Hello,
Peter Bailey wrote:
Mohit Sindhwani wrote:
[#343658] Readline not working with Ruby — Stewart <stewart.matheson@...>
Stewart wrote:
[#343688] multiple projects - Apache — Joe <jj_stuart@...>
Hi,
[#343690] Which initialize method? (or, who is self?) — Daniel Waite <rabbitblue@...>
Hi. Consider the ruby-hmac gem:
On 11.08.2009 21:23, Daniel Waite wrote:
[#343696] Windows ENV object being corrupted — Herman Schultz <phermans@...>
I am running in rake ( I have reproduced the problem with a straight
Herman Schultz wrote:
2009/8/11 Herman Schultz <phermans@live.com>:
Robert Klemme wrote:
[#343711] sha1/base64 — ben ******* <babiben@...>
hello,
[#343738] Configuring Textmate for Ruby 1.9.1 — Mike Agres <mike.agres@...>
I had just installed Ruby 1.9.1 using MacPorts, but TextMate still
On Aug 12, 2009, at 9:41 AM, Mike Agres wrote:
After the error appeared, I had edited the directory location, taking
On Aug 12, 2009, at 10:26 AM, Mike Agres wrote:
Actually, no. I'm at work now (on a PC) and the Mac's at home.
[#343756] Class#descendants? — Jason Lillywhite <jason.lillywhite@...>
Ruby can do Class#ancestors but not Class#descendants.
Jason Lillywhite wrote:
On Wed, Aug 12, 2009 at 1:39 PM, Joel VanderWerf <vjoel@path.berkeley.edu>wrote:
Tony Arcieri wrote:
Oi, good catch.
[#343771] skip_before_filter (Do I need a lesson in modules/mixins?) — Cris Shupp <cshupp1@...>
Gurus,
On Wed, Aug 12, 2009 at 5:50 PM, Cris Shupp<cshupp1@yahoo.com> wrote:
On Aug 13, 10:19=A0am, Cris Shupp <cshu...@yahoo.com> wrote:
[#343783] move a file — Derek Smith <derekbellnersmith@...>
I looked around here and could not find a similar example. please help.
[#343785] in-memory implementation of IO class — Nathan Beyer <nbeyer@...>
Is there an implementation of the IO class that operates on in-memory
On Aug 12, 2009, at 10:07 PM, Nathan Beyer wrote:
[#343796] Background on why Ruby doesn't support ++ — Adam Lauper <adamlauper@...>
Hi All,
[#343800] Simple If — Pete Moran <pete@...>
Sorry for total newbie question here - in a method a particular id could
UPDATE:
On Wed, Aug 12, 2009 at 10:14 PM, Pete Moran<pete@zoborg.com> wrote:
On Thu, Aug 13, 2009 at 10:18 AM, Anthony Eden<anthonyeden@gmail.com> wrote=
[#343811] Ruby/DL question — Gin Mendi <gin18em@...>
Been trying to learn how to use ruby and Ruby/DL and I'm unsure how to
On Thu, Aug 13, 2009 at 07:06:51PM +0900, Gin Mendi wrote:
[#343814] noob question on combining variables — bingo bob <rcf1973@...>
Sorry for such an uber noob question but I could do with a quick pointer
On Thu, Aug 13, 2009 at 1:56 PM, bingo bob<rcf1973@fastmail.fm> wrote:
here's the real code I'm trying to fix...
Any ideas, it's this bit that's wrong,
[#343818] SOAP access Ruby — Gabriel Policiuc <gavri_gp@...>
Hey,
[#343831] newbie question making a folder with ruby — Simon Staton <simon@...>
ok well the program I am in the middle of programming I need it to
Hello,
Simon Staton wrote:
Lui Core wrote:
To give more of an idea this is the code that I have on the .rb file. it
Hello,
Fleck Jean-Julien wrote:
> ok I have got another error this is the error it is giving,
Fleck Jean-Julien wrote:
> where do I put the dir =3D "c:/temp"?
[#343845] ANN: Ruby 1.8.6 pl383 released — Kirk Haines <wyhaines@...>
I am happy to announce that Ruby 1.8.6 pl383 was been released.
On Aug 14, 12:06=A0am, Luis Lavena <luislav...@gmail.com> wrote:
[#343869] A few quick newbie questions — Peter Ehrlich <crazedcougar@...>
Hi
[#343870] New to ruby - how can I take this further? — Stuart Cullum <stuart.cullum@...>
Hi all
[#343886] ORM - Ruby Sequel v Python Sql Alchemy — flebber <flebber.crue@...>
Hi
[#343920] Class method aliased in superclass bypasses subclass overrides — Marcos <markjreed@...>
This seems like it should work:
Hi --
[#343923] Class/Module Naming Best Practice for Acronyms — Intransition <transfire@...>
If you are encapsulating something that is generally referred to by an
[#343947] Array#abbrev depreciated? — Jason Lillywhite <jason.lillywhite@...>
If you look at the core ruby doc, it says Array#abbrev will let you do
[#343953] regexp issue on parsing from file — Alpha Blue <jdezenzio@...>
Hi guys,
Hi Ben,
[#343965] ruby 1.9 side by side with 1.8 — Oren <orengolan@...>
I followed this guide that uses ruby switcher -
[#343966] Strange SimpleDelegator behaviour regarding blocks — Fabian Streitel <karottenreibe@...>
Hey folks, just stumbled across a little problem:
[#343976] todo — Slava Mikerin <mikerin.slava@...>
What is the correct (if any) way to mark code with todo sign (#todo,
[#343986] Can't execute shell commands in CGI — Luckystr Luckystr <psixxx@...>
It is necessary to execute linux command in CGI(apache)
[#343991] Parsing JavaScript to prevent maliciousness? — Mongoose Sir mongoose <mongoosehq@...>
Hello,
On Aug 15, 9:35=A0pm, Mongoose Sir mongoose <mongoos...@gmail.com>
On Sun, Aug 16, 2009 at 03:00:12PM +0900, pharrington wrote:
Yep, sounds quite dangerous to me as well...
[#344005] while !file.eof? — Derek Smith <derekbellnersmith@...>
How can I use a while loop in such as way where I want to process the
On Mon, Aug 17, 2009 at 10:03 AM, Derek
[#344009] start_with? Does someone need a grammar lesson? — 7stud -- <bbxx789_05ss@...>
String#start_with?-------------------------------
7stud -- wrote:
On Mon, Aug 17, 2009 at 1:59 AM, 7stud --<bbxx789_05ss@yahoo.com> wrote:
On Mon, Aug 17, 2009 at 2:35 PM, Rick DeNatale<rick.denatale@gmail.com> wro=
7stud -- <bbxx789_05ss@yahoo.com> writes:
On Mon, Aug 17, 2009 at 4:03 PM, Dominik Honnef<dominikho@gmx.net> wrote:
On Tue, Aug 18, 2009 at 8:05 PM, Todd Benson<caduceass@gmail.com> wrote:
[#344037] CSV import to hash to compare with database — John Mcleod <john.mcleod@...>
Hello All,
On Aug 17, 2009, at 10:54 AM, John Mcleod wrote:
Mr. Gray,
On Aug 17, 2009, at 11:56 AM, John Mcleod wrote:
James,
John,
[#344045] release: a "which" command written in ruby--very useful for windows users at least — Roger Pack <rogerdpack@...>
Announcing the release of "ruby which"[1]
[#344055] ANN: ThirdBase 1.2.0 — Jeremy Evans <code@...>
ThirdBase is a replacement for Ruby's standard Date/DateTime
[#344064] External Model Definition Using ActiveRecord — Elizabeth <elizabeth.buckwalter@...>
I've been Googling this topic, and I haven't found the answer.
[#344078] Including a module in an included module. — Prince Nez <prince.nez@...>
module M1; end
[#344088] fromdos dos2unix in ruby — Krzysztof Cierpisz <ciapecki@...>
how can I achieve in ruby the result of running:
>
2009/8/18 krzysztof cierpisz <ciapecki@gmail.com>:
On Tue, Aug 18, 2009 at 5:50 PM, Rob
2009/8/18 Robert Dober <robert.dober@gmail.com>:
On Tue, Aug 18, 2009 at 7:19 PM, Xavier Noria<fxn@hashref.com> wrote:
On 18.08.2009 21:46, Robert Dober wrote:
On Tue, Aug 18, 2009 at 10:15 PM, Robert
On Tue, Aug 18, 2009 at 10:39 PM, Xavier Noria<fxn@hashref.com> wrote:
[#344112] gem installation oddity — Pito Salas <rps@...>
I have been totally puzzled by what I think is a misconfiguration of my
[#344115] One-click Windows installer for Ruby 1.9. — Peter Bailey <pbailey@...>
Hi,
[#344118] Initial release of the desc_method gem--a "run time RI for methods" — Roger Pack <rogerdpack@...>
I am pleased to announce the release of desc_method.
[#344125] exercise in DRY — Peter Ehrlich <crazedcougar@...>
I have some simple code for a thumbs up/thumbs down functionality.
How 'bout that:
How about: (assumes rails and haml)
that's not quite correct
[#344133] Q re nokogiri - searching Google and counting web pages with specific text — Philip Rhoades <phil@...>
People,
On Aug 18, 2009, at 10:26, Philip Rhoades wrote:
[#344146] show a listing of methods unique to class — Jason Lillywhite <jason.lillywhite@...>
Often I find myself in IRB wanting to see a list of methods available to
[#344160] when run from cron, regex NEVER match, always give nil — James Dinkel <jdinkel@...>
I'm using ruby 1.8.6 on RHEL 5.3. I also had this problem with ruby
[#344175] if defined on var — Derek Smith <derekbellnersmith@...>
db =
[#344180] #has_arguments? — Intransition <transfire@...>
Messing with optional argument check for the umpteenth time, eg.
> =A0def meth(*a)
2009/8/19 Intransition <transfire@gmail.com>:
Robert Klemme wrote:
[#344193] ruby2c 1.0.0.7 Released — Ryan Davis <ryand-ruby@...>
ruby2c version 1.0.0.7 has been released!
> * translate.rb =A0- Translates a given file to C.
[#344202] Using a Model — Pete Moran <pete@...>
Not sure if this should be on the rails or ruby forum, so my apologies
[#344204] cannot install shotgun with RubyGems — Martin Gütlein <martin.guetlein@...>
Hello,
On Aug 19, 2009, at 03:17, Ryan Davis wrote:
[#344218] Confirm my Performance Test Against Java? — Ben Christensen <benjchristensen@...>
I'm evaluating Ruby for use in a variety of systems that are planned by
On Wed, Aug 19, 2009 at 9:31 AM, Ben Christensen
brabuhr@gmail.com wrote:
On Wed, Aug 19, 2009 at 11:07 AM, Reid Thompson<reid.thompson@ateb.com> wro=
Thanks everyone for your responses.
pharrington, in your response you stated:
On Wed, Aug 19, 2009 at 10:41 AM, <brabuhr@gmail.com> wrote:
Thank you very much for the excellent answers, and your well reasoned
On Wed, Aug 19, 2009 at 9:31 AM, Ben Christensen
On Wed, Aug 19, 2009 at 8:31 AM, Ben
[#344257] Class name as a variable — Im still <quietstill@...>
Hi all
[#344291] crown 1.0.0 — Joel VanderWerf <vjoel@...>
Quoting the README at http://github.com/vjoel/crown/tree/master :
[#344293] Ruby/DL - cross-thread violation on rb_thread_schedule() — Gin Mendi <gin18em@...>
I think I'm a little over my head here and was hoping someone more
[#344303] Ruby List Roast - A Tentative Attempt — Hope Less <iisca@...>
Dear ruby list members
[#344329] Encoding::CompatibilityError — Oleg Igor <graycardinalster@...>
Hello !
[#344342] extending ruby - handling errors — Jason Lillywhite <jason.lillywhite@...>
I want to raise an ArgumentError, "Function only takes numeric objects."
On Thursday 20 August 2009 11:49:03 Jason Lillywhite wrote:
On Aug 20, 2009, at 12:25 PM, Ben Giddings wrote:
On Aug 20, 2009, at 14:49, Gary Wright wrote:
[#344345] How do I estimate how long it will take a calculation to complete? — Paul <tester.paul@...>
Hi there, I wrote a short ruby script to calculate the prime factors
looooooooooooong! if it already takes days to calculate 19 digits, i'd guess
[#344366] Why, oh why, _why? — Karl von Laudermann <doodpants@...>
_why the lucky stiff appears to have disappeared from the internets!
On Aug 20, 2:08=A0pm, Karl von Laudermann <doodpa...@mailinator.com>
Karl von Laudermann wrote:
On Fri, Aug 21, 2009 at 4:24 AM, Ralf Mueller<ralf.mueller@zmaw.de> wrote:
On Fri, Aug 21, 2009 at 7:17 AM, Gregory Brown<gregory.t.brown@gmail.com> w=
On Fri, Aug 21, 2009 at 9:49 AM, Rick DeNatale<rick.denatale@gmail.com> wro=
On Fri, Aug 21, 2009 at 9:54 AM, Gregory Brown <gregory.t.brown@gmail.com>wrote:
On Fri, Aug 21, 2009 at 4:07 PM, Jason Roelofs<jameskilton@gmail.com> wrote:
On Fri, Aug 21, 2009 at 10:23 AM, Xavier Noria <fxn@hashref.com> wrote:
Hi,
On Aug 21, 2009, at 8:59 PM, Yukihiro Matsumoto wrote:
On Fri, 21 Aug 2009 09:35:47 -0500, Gregory Brown wrote:
On Thu, Aug 20, 2009 at 3:10 PM, Karl von
On Sat, Aug 22, 2009 at 7:43 AM, Todd Benson<caduceass@gmail.com> wrote:
On Aug 22, 2009, at 8:52 AM, Todd Benson wrote:
Rob Biedenharn wrote:
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, Jun 16, 2010 at 10:05 AM, Josef 'Jupp' Schugt <jupp@gmx.de> wrote:
On 16.06.2010 18:26, Rick DeNatale wrote:
Karl von Laudermann wrote:
[#344379] New to Classes — Scott Andrechek <scottandrechek@...>
Hello. I'm new to making and defining your own classes (well really to
[#344380] list of quiz questions — "lolveley" <lolveley@...>
hello,
[#344390] Showing dot each second until the script ends — Hunt Jon <jona.hunt777@...>
I have a ruby script, which takes about 20 seconds to execute.
[#344398] Regarding RDoc — Prateek Agarwal <prateek.agwl@...>
How to install RDoc in windows? Also tell me, after installing what is
[#344404] How to convert string "/regexp/i" to /regexp/i - ? — Joao Silva <rubyforum@...>
When i try to use:
Joao Silva <rubyforum@thisisnotmyrealemail.com> writes:
class String
Josh Cheek wrote:
[#344410] Output Manipulation — Ishan Nag <cool.ishan.nitt@...>
puts "\nMODULE : "
Ishan Nag wrote:
[#344462] Github and _why — John W Higgins <wishdev@...>
I'm about to get very nasty responses but this absolutely is a very bad
On Fri, Aug 21, 2009 at 10:38 AM, John W Higgins <wishdev@gmail.com> wrote:
On Fri, Aug 21, 2009 at 10:05 AM, Tony Arcieri <tony@medioh.com> wrote:
On 21.08.2009 19:05, Tony Arcieri wrote:
[#344468] ruby thread and gets — Im still <quietstill@...>
Hi all
On 21.08.2009 19:10, Im still wrote:
[#344507] ruby-prof on Ruby 1.9 woes — "Shot (Piotr Szotkowski)" <shot@...>
I=E2=80=99m trying to use ruby-prof with Ruby 1.9.1p243 on 64-bit Ubuntu.
[#344528] Where oh where is Enumerator? (1.9) — Intransition <transfire@...>
Err... in Ruby 1.9 is Enumerator at the toplevel or in the Enumerable
[#344533] Process or Thread? — Pito Salas <rps@...>
I have a parent application (which I think of as a test harness) that
Pito Salas wrote:
On Sat, Aug 22, 2009 at 16:47, 7stud -- <bbxx789_05ss@yahoo.com> wrote:
[#344545] 1.8.7 String#lines keeps new-line chars (say it ain't so in 1.9) — Intransition <transfire@...>
Ruby 1.8.7 p72
Thomas Sawyer wrote:
Thomas Sawyer wrote:
Hi --
[#344549] Parsing pdf files — Arun Kumar <arun.einstein@...>
hello all,
On Sat, Aug 22, 2009 at 12:33 PM, Arun Kumar<arun.einstein@gmail.com> wrote=
[#344550] Code integration MATLAB and Ruby — Djoudjou <julien.bieren@...>
Hi,
On Sat, Aug 22, 2009 at 12:50 PM, Djoudjou<julien.bieren@gmail.com> wrote:
On Sat, Aug 22, 2009 at 4:17 PM, Gregory Brown<gregory.t.brown@gmail.com> wrote:
[#344554] Ruby Editor — sasan <sasan.bahrieh@...>
I need a good software for ruby programming. please post message for
sasan wrote:
On Fri, 28 Aug 2009 07:19:56 -0500, Robert Dober wrote:
I can't say I disagree, but I do like being able to control mpd and read
Is it possible to add some text editors information on Ruby's official website?
[#344558] Search keywords inside of directories and files — Ahmet Kilic <ahmedkilic@...>
I need some help about keywords searching in directory and files.
[#344559] HTML posting to ruby script? — Brad Mr <oshybrid@...>
Ok new to Ruby.
[#344565] Interactive Commands — João Santos <norwat@...>
Hey
[#344573] ruby-debug does not hit breakpoints at class-methods — Sys Ppp <systemppp@...>
ruby-1.8.6-p369
...and more
> $ rdebug r2test.rb
Sys Ppp wrote:
...or I guess this would be a better example:
To 7stud. These are all normal, except class-method, as i wrote.
On Sun, Aug 23, 2009 at 11:50 PM, Sys Ppp<systemppp@gmail.com> wrote:
Rick Denatale wrote:
Oh. It makes something more clear.
Fixed in ruby-debug 1.9 (although it hasn't uploaded yet; GitHub is
Mark Moseley wrote:
7stud -- wrote:
Mark Moseley wrote:
It is very useful when there are many dynamically generated code-objects
[#344574] retrieving Yahoo mail with Net::IMAP — Tadeusz Bochan <tad.bochan@...>
Hi,
From my own experiments with Yahoo and a lot of investigation, I found
[#344580] Development - works, production not - why? — Joao Silva <rubyforum@...>
My development envrioment:
What you need to do is to make a single file which is a complete
Ok, here is my test.rb:
Joao Silva wrote:
If i put :
[#344581] Checking if a specific Unix/Linux command exists — Hunt Jon <jona.hunt777@...>
I want to check if a command "port" is installed on Mac.
[#344604] Re: Parsing pdf files — "Axel Etzold" <AEtzold@...>
Dear Arun,
[#344627] Instaling a gem without some dependences — Felix <felix.leg@...>
Hi,
[#344654] Stupid OpenStruct question — Terry Smith <tersmi1@...>
Ok - I know how to get the fields of an Openstruct object like so
got it
On 24.08.2009 06:02, Terry Smith wrote:
[#344658] OSX -flat_namespace issues show up in hitimes, nokogiri and amalgalite — Jeremy Hinegardner <jeremy@...>
I'm not sure if it is the problem, but it appears that because ruby is compiled
Hello
[#344664] Uninitialised Constant Files <NameError> — Deepika Yp <deepika_stars01@...>
Hi all,
Try Files without 's'.
[#344671] Array Troubles — Scott Andrechek <scottandrechek@...>
I've made this small table making program (not reall trademarked) and
On Mon, Aug 24, 2009 at 3:57 AM, Scott Andrechek
[#344680] Comparison Ruby, Python, Php, Groovy ecc. — Marco Mastrodonato <m.mastrodonato@...>
Comparison script languages for the fractal geometry, these are the
Marco Mastrodonato wrote:
On Tue, Aug 25, 2009 at 5:20 PM, Nathan Keel<nat.k@gm.ml> wrote:
Are those executables compiled with identical compilers + compile flags?
Urabe Shyouhei wrote:
Marco Mastrodonato wrote:
Urabe Shyouhei wrote:
Marco Mastrodonato wrote:
Urabe Shyouhei wrote:
[#344700] Is it possible to record and playback in ruby? — Rails List <balaa_uk@...>
hi, just wondering if it is possible to record and playback mouse
[#344717] _why's "suicide" note? — Graham Agnew <graham.agnew@...>
Just found this as _why's last tweet on the Google cached copy of _why's
[#344719] Modules setting values to nil in unprocessed conditional blocks? — Nate <n8agrin@...>
Hi everyone. We're noticing some strange behavior when including
[#344731] DRb Mysterious Stops — Darrin Thompson <darrinth@...>
I'm running a fairly complicated build and test system with DRb over
Darrin Thompson wrote:
Joel VanderWerf wrote:
2009/8/26 Darrin Thompson <darrinth@gmail.com>:
[#344737] help in understanding eval function — Ravi Kanth <ravi8485@...>
Hi
[#344750] Asynchronous process to process pipe IO — Pito Salas <rps@...>
This is slightly subtle question about how a process that reads from a
Pito Salas wrote:
On 24.08.2009 22:16, Joel VanderWerf wrote:
[#344761] Packaging - distribution — Pito Salas <rps@...>
I am looking for best practices for using a multi-file body of ruby code
[#344762] Calling method from another class — Kostas Lps <louposk@...>
Hi guys,
Hi guys,
On Tue, Aug 25, 2009 at 7:30 PM, louposk<louposk@gmail.com> wrote:
On Tuesday 25 August 2009 09:43:29 am Nilesh Trivedi wrote:
On Tue, Aug 25, 2009 at 12:53 PM, David Masover<ninja@slaphack.com> wrote:
[#344791] doubling numbers with Object#object_id — EbFFA <eflatffa@...>
I was playing with Ruby and wrote an interesting method:
AFAIK, FixNums are implemented as direct values and not C structs that
[#344795] Stuck on silly nil issue — Nick Wild <nickwild@...>
Banging my head on the desk over this..
[#344798] operators vs. methods — Sarah Allen <sarah@...>
Today I was just re-reading introductory Ruby docs as I prepare to teach
Sarah Allen wrote:
7stud -- wrote:
2009/8/25 Sarah Allen <sarah@ultrasaurus.com>:
[#344808] help directory name issue... — Ahmet Kilic <ahmedkilic@...>
I am searching inside of the files ,like this
[#344824] eventmachine and threads — Julien Schmurfy <schmurfy@...>
Hi,
[#344832] Working with openssl and files — Juston Davies <justondavies@...>
Let me start out by saying all I do is in the name of science, I only
[#344840] Ruby 1.8.7 automatically loads RubyGems? — Intransition <transfire@...>
Does Ruby 1.8.7 automatically load gems? I took -rubygems out of my
On Wed, 26 Aug 2009 03:33:35 +0900, Intransition wrote:
[#344850] unsubscribe [SEC=UNCLASSIFIED] — "Doyle, John" <John.Doyle@...>
# help=0D=0Aunsubscribe=0D=0A=0D=0A=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
[#344865] favourite irbrc tips? — Martin DeMello <martindemello@...>
Other than installing wirble, what ought I be doing to enhance my irb session?
[#344872] ||= with 1.8 and 1.9 ? — Aldric Giacomoni <aldric@...>
A friend of mine on Twitter recently posted this tidbit of code:
Aldric Giacomoni wrote:
Brian Candler wrote:
On Wed, Aug 26, 2009 at 12:15 PM, 7stud --<bbxx789_05ss@yahoo.com> wrote:
On Wed, Aug 26, 2009 at 11:08 AM, Brian Candler<b.candler@pobox.com> wrote:
Rick Denatale wrote:
Brian Candler wrote:
Joel VanderWerf wrote:
Aldric Giacomoni wrote:
Joel VanderWerf wrote:
On Wed, Aug 26, 2009 at 2:49 PM, Aldric Giacomoni<aldric@trevoke.net> wrote:
On Wed, Aug 26, 2009 at 3:46 PM, Rick DeNatale<rick.denatale@gmail.com> wrote:
Hi --
[#344874] Re: Global Mutex? — Brian Candler <b.candler@...>
Aryk Grosz wrote:
[#344881] # sign does not work as expected form irb — Salvador Sanjuan <salvador.sanjuan@...>
I have just started Ruby. I have tried to do some exercises usin irb but
Salvador Sanjuan wrote:
Aldric Giacomoni wrote:
Hi,
I've never heard of or seen this behavior.
Aldric Giacomoni wrote:
Salvador Sanjuan wrote:
Aldric Giacomoni wrote:
2009/8/27 Salvador Sanjuan <salvador.sanjuan@gmail.com>:
Robert Klemme wrote:
[#344883] gem installation-time dependency — Mark Moseley <mark@...>
Is there a way to build a gem in such a way so that dependencies can be
[#344891] find string, get line number or position, then restart at +1 — Derek Smith <derekbellnersmith@...>
Hi All,
[#344892] Help with C embedding — Khat Harr <myphatproxy@...>
I'm having trouble with a weird error that I don't understand the cause
[#344894] Platform independent distribution of Ruby apps — Pito Salas <rps@...>
I would like to take a Ruby app that I've written (that includes a bunch
[#344938] Rack must not dictate how to create a middleware — Sys Ppp <systemppp@...>
In current realization of Rack::Builder the method :use dictates that
Sys Ppp wrote:
Brian Candler wrote:
Sys Ppp wrote:
> With current Builder you just write:
Brian Candler wrote:
On Thu, Aug 27, 2009 at 11:37 AM, Sys Ppp <systemppp@gmail.com> wrote:
[#344943] automating online banking login & checking for new transactions - what's best approach? (e.g. which gems/libraries etc) — Greg Hauptmann <greg.hauptmann.ruby@...>
Hi,
On Aug 26, 2009, at 14:10, Greg Hauptmann wrote:
I'm in Australia & also my bank don't support notifications (hence why I
[#344944] ruby-debug-ide for Ruby 1.9 released — Mark Moseley <mark@...>
"gem install ruby-debug-ide" now works for both Ruby 1.8 and 1.9
Mark Moseley wrote:
Tom Cloyd wrote:
[#344996] regexp which matches nothing? — Joao Silva <rubyforum@...>
How i can construct regexp, which will always matches nothing?
[#345013] Found a ruby bug in the URI class, what do I do? — Victor Pereira <pelasaco@...>
Hi,
[#345037] Possible to use Ruby for Dynamic HTML sites without Rails? — Frank Peterson <fictionalperson@...>
How easy is this to do? I've been going though a Ruby book again (was
Jack Davis wrote:
>
Fabian Streitel wrote:
[#345051] RMagick reacts very oddly to an incorrect file — Pito Salas <rps@...>
I am not sure if this is me or Rmagick. I 'accidentally' used an input
[#345070] I need a string#all_indices method--is there such a thing? — timr <timrandg@...>
In ruby you can use string#index as follows:
Scan gives you the matches, not the indices (which is what I need).
[#345079] #map, #select semantics — James Coglan <jcoglan@...>
I imagine this has come up before, though I can't find anything about it. I
On Fri, Aug 28, 2009 at 5:42 AM, James Coglan<jcoglan@googlemail.com> wrote:
Hi --
Hi,
[#345081] data sctructure — Juliano 준호 <jjunho@...>
Hello guys.
[#345086] Mass Assignment on Clas — Pete Moran <pete@...>
Hi there,
On Fri, Aug 28, 2009 at 7:03 AM, Pete Moran<pete@zoborg.com> wrote:
[#345094] RubyGems - change location from local? — Adam Wilson <adam@...>
I am having a problem on my server with gems..
On Aug 28, 2009, at 05:08, Adam Wilson wrote:
Eric Hodel wrote:
OK Now I see where the problem came from.. I managed to update RubyGems
[#345097] How to call this method — Robert Dober <robert.dober@...>
Hi list
2009/8/28 Robert Dober <robert.dober@gmail.com>:
Hi,
On Fri, Aug 28, 2009 at 11:22 AM, Bertram
On 28.08.2009 17:22, Bertram Scharpf wrote:
[#345150] Error with an array of strings — Tom Smith <tn9000@...>
Hi,
[#345178] rev 0.3.0: Now with filesystem monitoring — Tony Arcieri <tony@...>
Rev is a high-performance event library for Ruby, providing event loops for
[#345184] gnuplot line color — Rob Redmon <rob.webinator@...>
How do I choose the color used to make a gnuplot?
[#345203] Updating gems for ruby 1.9 — Space Ship Traveller <space.ship.traveller@...>
Hi,
2009/8/29 Space Ship Traveller <space.ship.traveller@gmail.com>
Thanks.
On Aug 29, 2009, at 11:10, Space Ship Traveller wrote:
[#345207] Ruby 1.9 build requirements — "tirins.play" <tirins.play@...>
I have just installed Ubuntu 9.04 Server Edition. I followed the
[#345214] Having problems with Gem version on Snow Leopard — Rick DeNatale <rick.denatale@...>
So, the migration to Snow Leopard has gone well, except that it's
On Sat, Aug 29, 2009 at 8:43 PM, Ryan Davis<ryand@zenspider.com> wrote:
[#345222] Sorting an array by multiple elements? — Paul <tester.paul@...>
Hi there, I have an array of arrays that I want to sort by multiple
On Sun, Aug 30, 2009 at 1:30 AM, Paul <tester.paul@gmail.com> wrote:
[#345244] Programming Language History Visualization (#219) — Daniel Moore <yahivin@...>
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
[#345256] Loooong wordwrap — Arthur Rats <simon.jacobs.ams@...>
Hi all,
[#345266] Regex: Get Class Name — Ahmet Kilic <ahmedkilic@...>
This a C++ class name,
Ahmet Kilic wrote:
[#345267] What is the ruby conventions to name private method? — pierr <pierr.chen@...>
I name them like any other method. If you look at the Standard
Ryan Davis:
On Mon, Aug 31, 2009 at 4:49 PM, Shot (Piotr Szotkowski) <shot@hot.pl>wrote=
[#345268] ruby 1.9 compilation - question — Tom Cloyd <tomcloyd@...>
I'm following the instructions at -
[#345281] text lines manipulation — George George <george.githinji@...>
[#345286] install ruby 1.9-p243 from source in /usr/bin, ubuntu 9.04 — Rainer Kuhn <raineronrails@...>
What I expected: Ruby should install in /usr/bin and /usr/lib where the
[#345299] String replace — Shandy Nantz <shandybleu@...>
I wondering if there is a string replace function.
[#345304] Time Format Conversions — Alpha Blue <jdezenzio@...>
Hi all,
[#345322] help on phps $$ equivalent in ruby — Arthur Rats <simon.jacobs.ams@...>
i just cant find this anywhere, googling for a while and read up tons on
Arthur Rats:
gr8, ty so much, i missed this as a noobie!
its not quite right, can you see what I am doing wrong
On Aug 31, 2009, at 17:23, Arthur Rats wrote:
Re: RUBY vs COMMON LISP
On Aug 1, 10:26=A0pm, fft1976 <fft1...@gmail.com> wrote: > On Aug 1, 8:55=A0pm, p...@informatimago.com (Pascal J. Bourguignon) > wrote: > > > w_a_x_man <w_a_x_...@yahoo.com> writes: > > > On Aug 1, 9:32 am, Bata <batabo...@yahoo.ca> wrote: > > >> Use (cl-ppcre:split " " string-name) to get a list of the different > > >> words in the string. > > > >> Check out the cl-ppcre package's functionality, its quite amazing. > > > > Ruby: > > > > string_name.split > > > Don't you realize how ugly Ruby syntax is? > > > Here is in 150 lines of lisp, a simplified lisp reader that is able to > > read all the lisp syntax needed to write it. > > > Try to parse Ruby syntax in Ruby and see how useless a language it is. > > I much prefer CL to Ruby, but this argument is useless. How many lines > of code do you need to read Brainfuck in Brainfuck? > > (If you wanted to show the inferiority of Ruby to Common Lisp, the > shootout makes a much more compelling argument) > > > -----(simple-reader.lisp)----------------------------------------------= -------- > > ;;;; -*- mode:lisp;coding:utf-8 -*- > > ;;;;*******************************************************************= ******* > > ;;;;FILE: =A0 =A0 =A0 =A0 =A0 =A0 =A0 simple-reader.lisp > > ;;;;LANGUAGE: =A0 =A0 =A0 =A0 =A0 Common-Lisp > > ;;;;SYSTEM: =A0 =A0 =A0 =A0 =A0 =A0 Common-Lisp > > ;;;;USER-INTERFACE: =A0 =A0 NONE > > ;;;;DESCRIPTION > > ;;;; =A0 =A0 > > ;;;; =A0 =A0Simple Lisp Reader. > > ;;;; =A0 =A0This reader implements a subset of the Common Lisp reader, > > ;;;; =A0 =A0but it should be extensible enough to be able to read most > > ;;;; =A0 =A0of Common Lisp syntax. > > ;;;; =A0 =A0Not supported: the preserving whitespace flag, the recursiv= e flag > > ;;;; =A0 =A0(therefore no references), character traits (escapes). > > ;;;; =A0 =A0Otherwise, reader macros and dispatching =A0macros can be w= ritten > > ;;;; =A0 =A0to read most of CL syntax. > > ;;;; =A0 =A0Only integers, keywords and symbol tokens are parsed (a mor= e > > ;;;; =A0 =A0sophisticated parse-token function can be configured). > > ;;;; =A0 =A0 > > ;;;;AUTHORS > > ;;;; =A0 =A0<PJB> Pascal J. Bourguignon <p...@informatimago.com> > > ;;;;MODIFICATIONS > > ;;;; =A0 =A02009-08-02 <PJB> Created. > > ;;;;BUGS > > ;;;;LEGAL > > ;;;; =A0 =A0GPL > > ;;;; =A0 =A0 > > ;;;; =A0 =A0Copyright Pascal J. Bourguignon 2009 - 2009 > > ;;;; =A0 =A0 > > ;;;; =A0 =A0This program is free software; you can redistribute it and/= or > > ;;;; =A0 =A0modify it under the terms of the GNU General Public License > > ;;;; =A0 =A0as published by the Free Software Foundation; either versio= n > > ;;;; =A0 =A02 of the License, or (at your option) any later version. > > ;;;; =A0 =A0 > > ;;;; =A0 =A0This program is distributed in the hope that it will be > > ;;;; =A0 =A0useful, but WITHOUT ANY WARRANTY; without even the implied > > ;;;; =A0 =A0warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR > > ;;;; =A0 =A0PURPOSE. =A0See the GNU General Public License for more det= ails. > > ;;;; =A0 =A0 > > ;;;; =A0 =A0You should have received a copy of the GNU General Public > > ;;;; =A0 =A0License along with this program; if not, write to the Free > > ;;;; =A0 =A0Software Foundation, Inc., 59 Temple Place, Suite 330, > > ;;;; =A0 =A0Boston, MA 02111-1307 USA > > ;;;;*******************************************************************= ******* > > > (defstruct character-description > > =A0 non-terminating-p > > =A0 reader-macro > > =A0 dispatching-macro-characters) > > > (defstruct (simple-readtable (:constructor %make-simple-readtable)) > > =A0 (default-character-description (make-character-description)) > > =A0 (macro-characters (make-hash-table)) > > =A0 (parse-token (function identity)) > > =A0 (whitespaces =A0#(#\space #\tab #\newline #\linefeed #\return #\pag= e #\vt))) > > > (defun simple-get-macro-character (character &optional (readtable *simp= le-readtable*)) > > =A0 (let ((description (or (gethash character (simple-readtable-macro-c= haracters readtable)) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(simple-readtable-de= fault-character-description readtable)))) > > =A0 =A0 (values (character-description-reader-macro description) > > =A0 =A0 =A0 =A0 =A0 =A0 (character-description-non-terminating-p descri= ption)))) > > > (defun simple-set-macro-character (character function &optional non-ter= minating-p > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= (readtable *simple-readtable*)) > > =A0 (setf (gethash character (simple-readtable-macro-characters readtab= le)) > > =A0 =A0 =A0 =A0 (make-character-description :non-terminating-p non-term= inating-p > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= :reader-macro function)) > > =A0 't) > > > (defun simple-get-dispatch-macro-character (character subchar > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 &optional (readtable *simple-readtable*)) > > =A0 (setf subchar (char-upcase subchar)) > > =A0 (let ((description (gethash character (simple-readtable-macro-chara= cters readtable)))) > > =A0 =A0 (unless (and description > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(character-description-dispatching-m= acro-characters description)) > > =A0 =A0 =A0 (error "#\\~C is not a dispatching macro character" charact= er)) > > =A0 =A0 (gethash subchar (character-description-dispatching-macro-chara= cters description)))) > > > (defun simple-set-dispatch-macro-character (character subchar function > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 &optional (readtable *simple-readtable*)) > > =A0 (setf subchar (char-upcase subchar)) > > =A0 (let ((description (gethash character (simple-readtable-macro-chara= cters readtable)))) > > =A0 =A0 (when (or (null description) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 (null (character-description-dispatching-ma= cro-characters description))) > > =A0 =A0 =A0 (setf (gethash character (simple-readtable-macro-characters= readtable)) > > =A0 =A0 =A0 =A0 =A0 =A0 (make-character-description :non-terminating-p = t > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 :reader-macro (function simple-reader-dispatching-macro) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 :dispatching-macro-characters (make-hash-table))))) > > =A0 (let ((description (gethash character (simple-readtable-macro-chara= cters readtable)))) > > =A0 =A0 (setf (gethash subchar =A0(character-description-dispatching-ma= cro-characters description)) > > =A0 =A0 =A0 =A0 =A0 function)) > > =A0 't) > > > (defun simple-reader-dispatching-macro (character stream) > > =A0 (let* ((subchar =A0(read-char stream)) > > =A0 =A0 =A0 =A0 =A0(macro =A0 =A0(simple-get-dispatch-macro-character c= haracter subchar))) > > =A0 =A0 (assert macro () "~C~C is not a dispatching macro" character su= bchar) > > =A0 =A0 (funcall macro character subchar stream))) > > > (defun simple-read-vector-dmacro (char subchar stream) > > =A0 (declare (ignore char)) > > =A0 (let ((contents (simple-read-list-macro subchar stream))) > > =A0 =A0 (coerce contents 'vector))) > > > (defvar *character-names* (list (cons "SPACE" =A0 =A0(code-char 32)) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (cons "= NEWLINE" =A0(code-char 10)) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (cons "= RETURN" =A0 (code-char 13)) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (cons "= PAGE" =A0 =A0 (code-char 12)) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (cons "= VT" =A0 =A0 =A0 (code-char 11)) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (cons "= LINEFEED" (code-char 10)) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (cons "= TAB" =A0 =A0 =A0(code-char 9))) > > =A0 "An a-list mapping character names to characters.") > > > (defun simple-read-character-dmacro (char subchar stream) > > =A0 (declare (ignore char subchar)) > > =A0 (let ((object (read-char stream))) > > =A0 =A0 (if (alpha-char-p (peek-char nil stream nil #\space)) > > =A0 =A0 =A0 =A0 (loop > > =A0 =A0 =A0 =A0 =A0 =A0:with buffer =3D (make-array 8 :element-type 'ch= aracter :adjustable t :fill-pointer 1 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 :initial-element object) > > =A0 =A0 =A0 =A0 =A0 =A0:do (vector-push-extend (read-char stream) buffe= r) > > =A0 =A0 =A0 =A0 =A0 =A0:while (alpha-char-p (peek-char nil stream nil #= \space)) > > =A0 =A0 =A0 =A0 =A0 =A0:finally (return (or (cdr (assoc (string-upcase = buffer) *character-names* > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 :test (function string=3D))) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (aref b= uffer 0)))) > > =A0 =A0 =A0 =A0 object))) > > > (defun simple-parse-token (buffer) > > =A0 ;; We only deal with integers, keywords and symbols. > > =A0 (or (ignore-errors (parse-integer buffer :junk-allowed nil)) > > =A0 =A0 =A0 (if (char=3D #\: (aref buffer 0)) > > =A0 =A0 =A0 =A0 =A0 (intern (string-upcase (subseq buffer (position #\:= buffer :test (function char/=3D)))) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "KEYWORD") > > =A0 =A0 =A0 =A0 =A0 ;; We don't deal with other packages in this simple= parse-token. > > =A0 =A0 =A0 =A0 =A0 (intern (string-upcase buffer))))) > > > (defun simple-read-quote-macro (character stream) > > =A0 (declare (ignore character)) > > =A0 (list 'quote (simple-read stream))) > > > (defun simple-read-list-macro (character stream) > > =A0 (declare (ignore character)) > > =A0 (loop > > =A0 =A0 =A0:until (char=3D #\) (peek-char t stream)) > > =A0 =A0 =A0:collect (simple-read stream) > > =A0 =A0 =A0:finally (read-char stream))) > > > (defun simple-read-string-macro (character stream) > > =A0 (handler-case > > =A0 =A0 =A0 (loop > > =A0 =A0 =A0 =A0 =A0:with buffer =3D (make-array 8 :element-type 'charac= ter :adjustable t :fill-pointer 0) > > =A0 =A0 =A0 =A0 =A0:for ch =3D (read-char stream) > > =A0 =A0 =A0 =A0 =A0:until (char=3D character ch) > > =A0 =A0 =A0 =A0 =A0:do (vector-push-extend (if (char=3D #\\ ch) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0(read-char stream) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0ch) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0buff= er) > > =A0 =A0 =A0 =A0 =A0:finally (return (copy-seq buffer))))) > > > (defun simple-read-comment-macro (character stream) > > =A0 (declare (ignore character)) > > =A0 (read-line stream) > > =A0 (values)) > > > (defun make-simple-readtable () > > =A0 (let ((readtable > > =A0 =A0 =A0 =A0 =A0(%make-simple-readtable > > =A0 =A0 =A0 =A0 =A0 :default-character-description (make-character-desc= ription :non-terminating-p t) > > =A0 =A0 =A0 =A0 =A0 :parse-token (function simple-parse-token)))) > > =A0 =A0 (simple-set-macro-character #\( (function simple-read-list-macr= o) =A0 =A0 nil readtable) > > =A0 =A0 (simple-set-macro-character #\) nil =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 nil readtable) > > =A0 =A0 (simple-set-macro-character #\' (function simple-read-quote-mac= ro) =A0 =A0nil readtable) > > =A0 =A0 (simple-set-macro-character #\" (function simple-read-string-ma= cro) =A0 nil readtable) > > =A0 =A0 (simple-set-macro-character #\; (function simple-read-comment-m= acro) =A0nil readtable) > > =A0 =A0 (simple-set-dispatch-macro-character #\# #\\ (function simple-r= ead-character-dmacro) readtable) > > =A0 =A0 (simple-set-dispatch-macro-character #\# #\( (function simple-r= ead-vector-dmacro) =A0 =A0readtable) > > =A0 =A0 readtable)) > > > (defparameter *simple-readtable* (make-simple-readtable)) > > > (defun simple-read (&optional (stream *standard-input*) (eof-error-p t)= eof-value) > > =A0 (peek-char t stream nil) > > =A0 (let ((char (read-char stream nil nil))) > > =A0 =A0 (cond > > =A0 =A0 =A0 (char > > =A0 =A0 =A0 =A0(multiple-value-bind (macro non-terminating-p) (simple-g= et-macro-character char) > > =A0 =A0 =A0 =A0 =A0(if macro > > =A0 =A0 =A0 =A0 =A0 =A0 =A0(let ((object (multiple-value-list (funcall = macro char stream)))) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(if object (first object) (simple-read s= tream eof-error-p eof-value))) =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0(loop > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 :with buffer =3D (make-array 8 :element= -type 'character :adjustable t :fill-pointer 0) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 :for ch =3D (peek-char nil stream nil #= \space) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 :initially (vector-push-extend char buf= fer) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 :until (or (position ch (simple-readtab= le-whitespaces *simple-readtable*)) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(not (nth-value = 1 (simple-get-macro-character ch)))) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 :do (vector-push-extend (read-char stre= am eof-error-p eof-value) buffer) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 :finally (return (funcall (simple-readt= able-parse-token *simple-readtable*) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 buffer)))))) > > =A0 =A0 =A0 (eof-error-p (error 'end-of-file :stream stream)) > > =A0 =A0 =A0 (t eof-value)))) > > > -----------------------------------------------------------------------= --------- > > > (with-open-file (input "simple-reader.lisp") > > =A0 (loop > > =A0 =A0 =A0:for sexp =3D (simple-read input nil input) > > =A0 =A0 =A0:until (eq sexp input) > > =A0 =A0 =A0:do (pprint sexp) (terpri))) > > > -- > > __Pascal Bourguignon__ > > By the way, here is in 1 line of BF, a complete BF reader that is able to read all the BF syntax needed to write it: ,+[-.,+] Here's how to try it: $ sudo apt-get install bf $ cat > reader.bf ,+[-.,+] $ bf reader.bf < reader.bf Your 150 lines don't look very impressive now, do they? Ruby < Lisp <<< BF!