[#362036] Can I do this with Ruby? — Marlon Ng <sbstn26@...>
I have very little knowledge in programming. I tried to learn Visual
[#362075] Sendmail, semicolons and new lines — Toby Rodwell <trodwell@...>
I know the tile doesn't sound very Ruby-related but please bear with me!
[#362083] Teaching Programming Languages (including Ruby) — Samuel Williams <space.ship.traveller@...>
Hello,
Awfully ambitious!
yeah the links given are good..
Dear Aamir,
On 05/02/2010 02:28 PM, Samuel Williams wrote:
Dear Robert,
In message <35D31281-C741-411C-AA3B-0C51C2303B0A@gmail.com>, Samuel
[#362098] Main working window for Ruby is DOS? — Kaye Ng <sbstn26@...>
I know nothing about programming and am not a techy person, so please
Kaye Ng wrote:
On 2010-05-03, Kaye Ng <sbstn26@yahoo.com> wrote:
[#362116] School teacher still at it learning programming language — Hilary Bailey <my77elephants@...>
Now I while glimpsing at the beauty of Ruby, there is the software of
Dear Hilary,
Samuel Williams wrote:
Dear Hilary,
Samuel Williams wrote:
[#362144] Nokogiri bug or intended effect?? — Jeremy Woertink <jeremywoertink@...>
I'm trying to parse this (poorly formatted) page, and when I look at the
[#362155] * splat error — Kerwin Franks <kerwinfranks@...>
Hello, i need some help here, when i run the following code i get the
2010/5/4 Kerwin Franks <kerwinfranks@yahoo.co.uk>:
>
[#362166] Something I expected to work, but didn't! — Kurtis Rainbolt-greene <kurtisrainboltgreene@...>
irb(main):001:0> x = 2
Kurtis Rainbolt-greene wrote:
> should be allowed. "Path of least surprise" and all that, plus this
Gavin Sinclair wrote:
[#362168] Calculation in a block — Chandramouli Parasuraman <contactmouli@...>
Hi,
[#362192] Download version 1.8? — Cameron Smith <velvetpixel@...>
Where can I download the latest version of the 1.8 branch?
Cameron Smith wrote:
[#362215] for-in vs. map closures — Mike Austin <mike_ekim@...>
I was experimenting with closures and JavaScript's and Ruby's
On May 5, 9:01濛m, Jes俍 Gabriel y Gal疣 <jgabrielyga...@gmail.com>
On Wed, May 5, 2010 at 11:50 PM, Mike Austin <mike_ekim@yahoo.com> wrote:
On Wed, May 5, 2010 at 8:35 AM, Mike Austin <mike_ekim@yahoo.com> wrote:
[#362222] Why can't I do a "to_i?" — Peter Bailey <pbailey@...>
Hello,
[#362229] sudo gem install mysql problem — Pen Ttt <myocean135@...>
today i have installed ubuntu10.04.
[#362234] Using array instead of hash and still have efficient cross-referencing — Intransition <transfire@...>
Have a look at this class:
On 5/5/10, Intransition <transfire@gmail.com> wrote:
[#362235] do Rails/gems updates break applications? — enos76 <enos76@...>
Some time ago I started experimenting with Ruby on Rails.
[#362249] How to use Ruby portable? — "balzer" <nospam@...>
I downloaded Ruby binaries, ruby-1.8.7-p72-i386-mswin32.zip I' wondering
[#362257] Ruby Equivalent of "Pythonista" — Martin Rinehart <martinrinehart@...>
A savvy and enthusiastic Python programmer is called a "Pythonista."
[#362266] rmagick install fail — Rajinder Yadav <devguy.ca@...>
I can't seem to install rmagic on ubuntu 9.10 using ruby 1.9, I have
[#362273] How can I call String#replace (rb_str_replace()) in C API? — James Masters <james.d.masters@...>
Hi all,
[#362286] ri on sqlite — Intransition <transfire@...>
What do others think of a creating a new ri tool which uses a SQLite
Have you looked at fastri?
[#362332] Include? on array of objects — Greg Ma <gregorylepacha@...>
Hi,
[#362341] ease of porting (translating) ruby to C (vs. python)? — bwv549 <jtprince@...>
In a very small bioinformatics group I know of, they are deciding
On Fri, May 7, 2010 at 10:20 AM, bwv549 <jtprince@gmail.com> wrote:
On Fri, May 7, 2010 at 16:43, Tony Arcieri <tony.arcieri@medioh.com> wrote:
On Fri, 7 May 2010 09:16:36 -0700 (PDT), bwv549 <jtprince@gmail.com>
On 5/13/10, Charles Calvert <cbciv@yahoo.com> wrote:
[#362353] Is Ruby ready to embrace new Linux face and UI realities? — Igor Pirnovar <gooigpi@...>
I may be utterly out of line expecting sympathy for my concerns about
[#362360] Modify Class Instance Inside Another Class (scope problem?) — Leon Theremin <thephist@...>
First, I've not used a forum before, but I want to be more involved.
[#362369] Interactive Mode BASIC Interpreter (#232) — Daniel Moore <yahivin@...>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[#362375] Strings iteration — Viorel <viorelvladu@...>
I have some names like aaxxbbyy where xx is '01'..'10' and yy is also
[#362378] Tk Images - Transparency — Jesse Jurman <e.j.jurman@...>
I'm making a game with Ruby and Tk, but the transparency in the .gif
[#362381] Is 'require "rubygems" necessory? — mengjiang Liu <liumengjiang@...>
I create a sample app in padrino. orm is sequel and db is sqlite3 as
> I create a sample app in padrino. orm is sequel and db is sqlite3 as
[#362401] how to remove duplicates from hash — Lucky Nl <lakshmi27.u@...>
Hi ,
[#362414] Files — David Chapman <ideabolt@...>
Hi folks,
r+ will open the file and give you read-write access iff the file is
* iff the file exists.
Thanks. Question #2.
[#362415] wxruby2 - Error Message — Ivo Roupa <iroupa@...>
Hi all
[#362419] wcswidth, ruby 1.9, and string encodings — William Morgan <wmorgan-ruby-talk@...>
Hello all,
2010/5/10 William Morgan <wmorgan-ruby-talk@masanjin.net>:
[#362425] Any future for curses applications/toolkits like rbcurse ? — "R. Kumar" <sentinel.2001@...>
Have apps moved over to the web (or GUI) totally ? Will there be any
Thomas Sawyer wrote:
On May 10, 10:31m, "R. Kumar" <sentinel.2...@gmx.com> wrote:
On Mon, May 10, 2010 at 2:13 PM, R. Kumar <sentinel.2001@gmx.com> wrote:
interface and/or the installation itself is terrible.
On Mon, May 10, 2010 at 10:28 PM, R. Kumar <sentinel.2001@gmx.com> wrote:
botp wrote:
Strange. I cant push a gem even after yanking.
On Tue, May 11, 2010 at 12:01 AM, R. Kumar <sentinel.2001@gmx.com> wrote:
On Tue, May 11, 2010 at 12:24 AM, botp <botpena@gmail.com> wrote:
botp wrote:
[#362429] how to implement 20 - point and point - 20 using coerce()? — Jian Lin <blueskybreeze@...>
In Ruby, the operation of
[#362445] IO select. Reconnect procedure. — Walle Wallen <walle.sthlm@...>
Hey, I have a minor problem with my IRC bot. It disconnects every while
[#362452] Unit Test of method calling system() - how? — Martin Hansen <mail@...>
How can I unit test the two methods:
On 5/10/10, Martin Hansen <mail@maasha.dk> wrote:
@Caleb
On 5/11/10, Martin Hansen <mail@maasha.dk> wrote:
OK, I am getting closer, but are still a bit confused. I feel like
Martin Hansen wrote:
> AFAICS this will always raise, since $? will never be nil. I think you
Martin Hansen wrote:
[#362455] VISIT A URL PROGRAMATICALLY — kevid <alumsimportant@...>
hi all,
[#362478] puts bug? — Roger Pack <rogerpack2005@...>
With this file:
[#362483] Question about rdoc (2.5.8) — byrnejb <byrnejb@...>
The answer is probably 'No! Why on earth would you want to do that?'
[#362492] How to Plot Data? — Ivo Roupa <iroupa@...>
Hi all,
[#362496] Problem renaming files — Jacob Davis <ismyhc@...>
Hi Everyone,
On Tue, May 11, 2010 at 5:10 AM, Jacob Davis <ismyhc@gmail.com> wrote:
[#362497] Ways to compare the performance of different Ruby implementations — Carter Cheng <cartercheng@...>
Greetings,
The best benchmark is your own application. Synthetic benchmarks are
Thanks for the reply. I guess perhaps my original post might not have
On 05/13/2010 12:51 AM, Carter Cheng wrote:
[#362498] In Ruby, can the coerce() method know what operator it is th — Jian Lin <blueskybreeze@...>
In Ruby, it seems that a lot of coerce() help can be done by
On 5/10/10, Jian Lin <blueskybreeze@gmail.com> wrote:
On Tue, May 11, 2010 at 4:46 PM, Caleb Clausen <vikkous@gmail.com> wrote:
On Wed, May 12, 2010 at 12:16 PM, Colin Bartlett
On Wed, May 12, 2010 at 6:13 PM, Rick DeNatale <rick.denatale@gmail.com> wrote:
Hi,
On Thu, May 13, 2010 at 2:07 PM, Benoit Daloze <eregontp@gmail.com> wrote:
On 13 May 2010 16:08, Colin Bartlett <colinb2r@googlemail.com> wrote:
[#362499] Need help using Savon gem! (SOAP) — ghettoiam <iamghetto@...>
I'm trying to use this "Sendfax" method defined here:
ghettoiam wrote:
Brian Candler wrote:
[#362508] Has dl/import change in 1.9? — Steve Andrews <salinhans@...>
Hi.
[#362513] help to run Ruby — "balzer" <nospam@...>
I am on windows XP.
[#362516] How to compair two object values.plz help me i write that co — Zubair Ansari <sweetzubair@...>
How to compair two object values.plz help me i write that code but not
[#362523] Differences in Time v1.8.6 and 1.9.1 — Daniel He <firekilroy@...>
Hello,
Write the smallest test program you can which demonstrates the issue. In
[#362545] interested in writing a commandline option parser for ruby? — William Morgan <wmorgan-ruby-talk@...>
Don't.
On Wed, May 12, 2010 at 12:39 AM, William Morgan
[#362552] How to read data in text file and put into the web page — Zubair Ansari <sweetzubair@...>
Hi i want to read data in the text file like.
[#362557] Super simple newbie Q about methods — Henry Oss <oss.hcs@...>
If I write:
[#362569] Timeout Error in pingecho — Sajjad Po <magicc0d3r@...>
hi.
[#362579] How to create the log — KingMaker KingMaker <sweetzubair@...>
How to create the log in ruby.
[#362608] How to synchronize files, from FTP to computer ? — Marc-antoine Kruzik <kadelfek@...>
Hello,
[#362612] about ruby -d script/server — Anqi Su <suaq@21cn.com>
any ruby and any rails ,when using ruby -d script/server,appear a lot of
[#362617] reading file after a particular line in file — Vandana <nairvan@...>
Hello All,
Robert Klemme <shortcutter@googlemail.com> wrote:
2010/5/13 Une B騅ue <unbewusst.sein@google.com.invalid>:
[#362635] Command Line Arguments problem — Derril Lucci <derril.lucci@...>
Greetings,
[#362647] Reading Data From Excel File — KingMaker KingMaker <sweetzubair@...>
I write some code for Reading data from excel file and put into the
Keyword, Object_Prop_Name ... there are constant values in Ruby.
Ayumu Aizawa wrote:
[#362652] How to read id3 tags from files — Benedikt Müller <benemue@...>
Hi
[#362657] Asynchronous HTTP request — Daniel DeLorme <dan-ml@...42.com>
Does anyone know how to do the following, but without threads, purely
On 13 May 2010 17:37, Daniel DeLorme <dan-ml@dan42.com> wrote:
Daniel N wrote:
On 18 May 2010 16:56, Daniel DeLorme <dan-ml@dan42.com> wrote:
Daniel N wrote:
Daniel DeLorme wrote:
Brian Candler wrote:
Daniel DeLorme wrote:
Brian Candler wrote:
So you didn't want a Thread, but you'll happily use a Fiber...
On Thu, May 13, 2010 at 1:37 AM, Daniel DeLorme <dan-ml@dan42.com> wrote:
[#362697] segmentation fault while using Ruby::DL — Jarmo Pertman <jarmo.p@...>
Hello.
[#362698] Citrus ~ Parsing Expressions for Ruby — Michael Jackson <mjijackson@...>
Hi all,
[#362708] RubyGems 1.3.7 — Eric Hodel <drbrain@...7.net>
rubygems version 1.3.7 has been released!
[#362712] Play audio file (AAC) from ruby program — "R. Kumar" <sentinel.2001@...>
I need to play, pause and resume AAC files from a ruby console program
if its for the mac, you could use MacRuby with QTKit.
[#362718] Range on strings. — Vikrant Chaudhary <nasa42@...>
Hi,
Hi --
[#362721] Comparing elements within an array — Toby Rodwell <trodwell@...>
I'm familiar with the enumberable sort method ...
On Fri, May 14, 2010 at 12:47 PM, Toby Rodwell <trodwell@iee.org> wrote:
[#362727] Reporting Bugs about REXML ? — Hadmut Danisch <hadmut@...>
Hi,
Just FYI, REXML is probably the worst possible XML library available
[#362739] Rake versus Ruby? — Mohit Sindhwani <mo_mail@...>
I was thinking of this on my way home, but could not come up with a good
[#362741] Problem ruby pwd in different directory — Gianluca Rettore <gladenko@...>
Hi my problem is this
[#362751] Propogate variable up to included module — James Hans <slush314@...>
Hey folks,
[#362782] Hash method in ruby — Tarun Yadav <sameeryadav.eck2003@...>
Hello group,
On 15.05.2010 12:45, Tarun Yadav wrote:
Hi Sebastian,
[#362786] Converting hexadecimal string to character — Michael Jackson <mjijackson@...>
If I have a string that represents some character in hex, what is the
[#362787] class best way for getters ? — unbewusst.sein@... (Une B騅ue)
i have a class "HFSFile" initialized by a parsed string
[#362795] Wx Ruby - MenuBar. What's wrong with my code? — Ivo Roupa <iroupa@...>
Hi all,
[#362804] Is Bundler Overkill? — Intransition <transfire@...>
This morning I thought about Bundler for a long time. I ended up
[#362813] chomp like Perl operator in Ruby — Parag Kalra <paragkalra@...>
Is there a chomp like Perl operator in Ruby using which I can literally
[#362833] user defined if condition — Mark Kirby <mark42@...>
hi iv just started to learn ruby 2 days ago and have no programing exp
[#362837] Array conversion — "Paul A." <cyril.staff@...>
Hi,
[#362839] iterating over sub arrays — James Harrison <oscartheduck@...>
Hey folks,
[#362854] Pick the value from the table. — KingMaker KingMaker <sweetzubair@...>
Hello Friends,
[#362869] Trying to install ruby-gtk2 on ubuntu 9.10 — Michel Revesche <michel.revesche@...>
I didn't find the gtk2 library on the ubuntu repositories and searching with
[#362873] Bundler Groups — Intransition <transfire@...>
I'd like to ask a more specific question about Bundler, pertaining to
I don't know, I have the same feeling. Also, even if you're in a production
[#362884] opening my files with a ruby program — Mark Kirby <mark42@...>
i was just wondering if i wanted my program to open a file on my pc what
[#362890] Opening a stream to multiple (possibly zipped) files — Martin Hansen <mail@...>
Hello,
[#362896] Dynamically adding methods to a class — Sam Uel <cannedlobstah@...>
Hi!
Thanks very much guys!
[#362912] require': No such file to load -- rubygems — Gerard Harte <gerharte@...>
Hey,
[#362918] Regexp help — Andrea Carmisciano <andrea.carmisciano@...>
Hi, I'm newbie to ruby, but I try searching a lot for my problem...
[#362920] rake gem : rake aborted! No Rakefile found — Draggy Draggy <johncsl82@...>
Hello People,
[#362921] Re: gui with ruby — Alex DeCaria <alex.decaria@...>
Mark Kirby wrote:
[#362922] (Net::SSH::HostKeyMismatch — Kamal Ahmed <kamal2222ahmed@...>
Hi,
[#362929] YAML validation — Kevin Austin <nitsuanivek@...>
I am sorting through a heap of yaml files looking for the following
[#362934] class arrays — poseid <mulder.patrick@...>
Hello,
[#362965] opening urls — Mark Kirby <mark42@...>
hi could any one tell me how to open a web page in ruby i can open files
On Tuesday, May 18, 2010 01:47:39 pm Mark Kirby wrote:
[#362979] curl library? — Xeno Campanoli / Eskimo North and Gmail <xeno.campanoli@...>
Two questions:
On 10-05-18 02:35 PM, Xeno Campanoli / Eskimo North and Gmail wrote:
On Tue, May 18, 2010 at 6:56 PM, Xeno Campanoli / Eskimo North and
Well, I got that -dev thing installed with apt-get, and then I tried again and
>>>>
On 10-05-18 04:12 PM, James Harrison wrote:
On 10-05-18 04:28 PM, Xeno Campanoli / Eskimo North and Gmail wrote:
2010/5/19 Xeno Campanoli / Eskimo North and Gmail <xeno.campanoli@gmail.com>:
On 10-05-20 02:37 AM, Robert Klemme wrote:
2010/5/20 Xeno Campanoli / Eskimo North and Gmail <xeno.campanoli@gmail.com>:
[#362993] 64 bit ruby interpreter — Bruno Sousa <brgsousa@...>
Since when does 64bit ruby interpreter exists?
It was 64 bit since you have the possibility to build it from source :)
Ops :P
[#363006] How to print out all of an object's instance variables? — Jian Lin <blueskybreeze@...>
When it is RoR, we can use ActiveRecord's attributes method to get a
[#363009] passing values from partial to controller — Ravi Dtv <venkataravi.tdomarouthu@...>
I am trying to pass login and group_name from partial to controller, but
hi,
Gregor Panek wrote:
Hi,
Gregor Panek wrote:
yeah that's because you pass only one parameter to the hidden_field_tag so you got this:
[#363027] Retrieve instance — Walle Wallen <walle.sthlm@...>
Quick question. Can I somehow retrieve the instance of the class Test in
2010/5/19 Walle Wallen <walle.sthlm@gmail.com>:
On Wednesday, May 19, 2010 09:54:03 am Robert Klemme wrote:
2010/5/19 David Masover <ninja@slaphack.com>:
On Wednesday, May 19, 2010 01:53:58 pm Robert Klemme wrote:
[#363035] Agile web Development with Rails section 9.3 — Angel Dinar <dinar603@...>
Hello
[#363062] define_method inside instance_eval — Adriano Nagel <anr@...>
Hi,
Well the first thing that I see is that your missing the (*args) in the
Ok I reread your problem.
[#363067] method returning a hash, is the hash in the heap? — Jian Lin <blueskybreeze@...>
For this program:
[#363076] Scrape javascript content — Phil Mcdonnell <phil.a.mcdonnell@...>
I'm trying to scrape a page that hides some data behind a javascript
On Thu, May 20, 2010 at 1:48 AM, Phil Mcdonnell
The other trick here is that this page is behind a login. Mechanize
[#363089] Executing Password Change over Ruby Net-SSH — Tyler Smart <tyleresmart@...>
[#363105] Ruby/Tk-Kit for RubyInstaller 1.9.1p378rc2 — Hidetoshi NAGAI <nagai@...>
Hi.
> Now, you can download a trial version of Ruby/Tk-Kit for RubyInstaller
From: Roger Pack <rogerpack2005@gmail.com>
[#363111] Merging two arrays -> array of arrays — Allen Walker <auswalk@...>
Example:
[#363115] OMG, why are there so many Strings in ObjectSpace! — timr <timrandg@...>
I was playing around looking at ObjectSpace in irb and was astounded
On Fri, May 21, 2010 at 1:35 AM, timr <timrandg@gmail.com> wrote:
I would rather count like this
Hei everyone,
[#363126] Ruby gem for Growl — Dimitri Df <ddefrenne@...>
I'm looking for a gem that's able to send Growl notifications and
[#363142] Validation for feed links using by 'rss' — Swapna Ch <swapna.ch@...>
Hi all,
[#363145] Application Name / Process Name — 12345678 123456789 <nonstickglue@...>
Is there any way to set the application name or process name that
[#363153] Eval, SAFE, and Sandbox — Simon Mcbryan <smcbryan@...>
Hello Ruby Forum.
[#363159] Internal string storage and Encoding::Converter#convpath — Patrick Thomson <pthomson@...>
Hi, everyone:
[#363169] rubygems freezes with expand_path error — Bruno Sousa <brgsousa@...>
Hi,
[#363178] Ruby one-file launcher that sets up environment? — Michal Suchanek <hramrach@...>
Hello
Michal Suchanek wrote:
On 23 May 2010 13:55, Henning Bekel <h.bekel@googlemail.com> wrote:
[#363196] Does rubyscript2exe still work? — Mark Marksest <marksest@...>
I'm trying to get rubyscript2exe to work.
[#363199] IPAddress: new IP manipulation library — bluemonk <ceresa@...>
Hi,
[#363203] Ruby Newbie...Classes and Objects, oh my! — fuglyducky <fuglyducky@...>
I'm very new to Ruby and I'm trying to create a program that will take
On May 24, 8:57m, Robert Dober <robert.do...@gmail.com> wrote:
[#363225] Redefine a Class? — Mark T <paradisaeidae@...>
Currently this raises: superclass mismatch for class Soda (TypeError)
Mark T wrote:
Hi Marcin,
Mark T wrote:
I'm looking for something... kinda 'destructive'....
[#363227] The order of garbage collection — Ali Polatel <alip@...>
[#363239] Get methods params type soap4r — Marco Sangiorgi <ingegnerlillo@...>
Hello everybody, I'm using the following to get a driver to call to some
[#363240] Funny IO.select behaviour — Dennis Nedry <dennis@...>
I've been debugging my full screen console ruby editor.
Dennis Nedry wrote:
On Tue, May 25, 2010 at 5:23 PM, Joel VanderWerf
On Tue, May 25, 2010 at 8:57 PM, Dennis Nedry <dennis@cortex-media.info> wrote:
No takers I guess. Code must be worse than I thought... (;
Hi,
On Thu, May 27, 2010 at 3:23 PM, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
[#363249] Looking for a 3D physics engine — Marc-antoine Kruzik <kadelfek@...>
Chipmunk seems to be a pretty cool 2D physics engine, but does a 3D
[#363264] In-code data — Jerome David Sallinger <imran.nazir@...>
Hi,
[#363279] how to achieve parallelism, using threads? — Walle Wallen <walle.sthlm@...>
Hey,
On Wed, May 26, 2010 at 12:07 PM, Walle Wallen <walle.sthlm@gmail.com> wrote:
> So you want the main thread to do some work in parallel with the other
[#363285] Regarding Arrays — Sourav Haldar <sourav.haldar2010@...>
2010/5/26 Sourav Haldar <sourav.haldar2010@hotmail.com>:
[#363287] round the floating point to nearest halfpoint — Lucky Nl <lakshmi27.u@...>
Hi ,
[#363295] Money 3.0.1 — Shane Emmons <shane.emmons@...>
Money 3.0.1 Released
[#363322] Badly organized code? — Martin Hansen <mail@...>
Hi all,
2010/5/27 Martin Hansen <mail@maasha.dk>:
Hi Robert,
[#363324] how to call gnuplot from ruby? — Pen Ttt <myocean135@...>
i want to call gnuplot from ruby,my ruby script:
[#363348] Ruby as Client Side Language in Web Browser (replacing JS) — "Simone R." <k5mmx@...>
Hi everybody,
Simone R. wrote:
You're on a hiding to nothing I think; if you can't rely on it being
[#363364] Ruby confused about current directory? — Brian Hartin <brian.hartin@...>
Hi all,
[#363369] RubyInline folder — Bruno Sousa <brgsousa@...>
Hi!
[#363376] Win32::Screenshot (old name win32screenshot) 0.0.4 — Jarmo Pertman <jarmo.p@...>
Hello.
[#363378] permissions problem when running Ruby — Bev Bev <beverley.hinkle@...>
I am having a permissions problem which no one else on the developement
[#363391] Insecure operation - chdir — Yang Zhang <yanghatespam@...>
When running rake from a suid binary:
[#363392] Ruby Core - Lambda function — "Paul A." <cyril.staff@...>
Hi,
On 5/27/10, Paul A. <cyril.staff@gmail.com> wrote:
[#363411] Reports & Graphs — Stuart Clarke <stuart.clarke1986@...>
Hey all,
[#363412] A better way to write this function? — Jason Lillywhite <jason.lillywhite@...>
Here is my attempt at Newton's second law in Ruby:
Jason Lillywhite wrote:
On Fri, May 28, 2010 at 4:20 PM, Jason Lillywhite <
[#363417] Interrupting the evaluation of a ruby script — Emmanuel Emmanuel <emmanuel.bacry@...>
This is my problem :
Emmanuel Emmanuel wrote:
On 5/29/10, Emmanuel Emmanuel <emmanuel.bacry@polytechnique.fr> wrote:
Caleb Clausen wrote:
On 5/31/10, Emmanuel Emmanuel <emmanuel.bacry@polytechnique.fr> wrote:
Caleb Clausen wrote:
[#363426] A complete beginners question — Ant Walliams <anthonywainwright@...>
Hi there,
puts 'What is your favourite number?'
On Sat, May 29, 2010 at 03:29:15AM +0900, Ant Walliams wrote:
On 28/05/10 19:29, Ant Walliams wrote:
Hi, i am in Osx and i had installed Ruby 1.8.7. I want to make a
On Sat, May 29, 2010 at 2:43 PM, Emma Pidre <equisigriegazeta@gmail.com>wrote:
Il 30/05/10 13.20, Josh Cheek ha scritto:
Hi, trhans for the answer. This is not working. I saw that already had
[#363432] Dynamic SVG with Ruby/Tk — Yotta Meter <spam@...>
The example I'm looking for in regards to ruby/SVG differs from the
Yotta Meter schrieb:
[#363443] Suggestion to design specific network client — Francesco Vollero <ravenz@...2.ie>
Hi,
On 5/28/10, Francesco Vollero <ravenz@o2.ie> wrote:
[#363445] .rb security — Ed Gallagher <ameliorable@...>
Hi All,
[#363457] Source Code for puts(..) — Derril Lucci <derril.lucci@...>
Dear all,
[#363467] Date.today problem on linux with Ruby 1.8.6 — Jarmo Pertman <jarmo.p@...>
Hello.
Time.now works correctly
Also, found one very similar problem, but no solutions...
On Sat, May 29, 2010 at 1:03 PM, Jarmo Pertman <jarmo.p@gmail.com> wrote:
jarmo@jarmo-laptop:~/Downloads$ gcc -v
i executed make test and it seems that some of the tests are also
[#363479] Inject Loop Syntax — Intransition <transfire@...>
I wonder if any other languages have any sort of "multiplicative
[#363480] Square Root — Angus Hammond <angushammond@...>
Is there a way to get an accurate square root?
[#363493] `require': no such file to load on Windows — Toshiro Miballza <toshiromiballza@...>
Hello, I'm new to Ruby and came across this error when trying to run:
[#363508] How to load code converters? — O01eg Oleg <o01eg@...>
When I try to encode string in program I got
On 5/30/10, O01eg Oleg <o01eg@yandex.ru> wrote:
[#363520] uninitialized constant error... trying to create a TCPsocket in a module — Dennis Nedry <dennis@...>
Okay, forget about the editor thing.. (;
On 5/30/10, Dennis Nedry <dennis@cortex-media.info> wrote:
On Mon, May 31, 2010 at 2:36 AM, Caleb Clausen <vikkous@gmail.com> wrote:
[#363524] enumerator problem in 1.9.1 — Bug Free <amberarrow@...>
The following line:
On Mon, May 31, 2010 at 9:04 AM, Bug Free <amberarrow@yahoo.com> wrote:
2010/5/31 botp <botpena@gmail.com>:
On Mon, May 31, 2010 at 10:34 AM, Robert Klemme
Robert Dober wrote:
Robert Dober wrote:
I am afraid that is incorrect :(
On Mon, May 31, 2010 at 4:34 PM, Robert Klemme
[#363529] Does Rails 3.0.0 beta3 work with ruby 1.9.1 on Windows XP? — "Dave.Hurrell@..." <dave.hurrell@...>
Does Rails 3.0.0 beta3 work with ruby 1.9.1 on Windows XP?
[#363540] 1.9.1-p376 vs. 1.9.1-p378 — Jeremy Henty <onepoint@...>
I just noticed that both http://www.ruby-lang.org/en/ and
[#363558] Ruby 1.9.2-preview3 is out — "Yugui (Yuki Sonoda)" <yugui@...>
Hi,
ANN: Sequel 3.11.0 Released
Sequel is a lightweight database access toolkit for Ruby.
* Sequel provides thread safety, connection pooling and a concise DSL
for constructing database queries and table schemas.
* Sequel also includes a lightweight but comprehensive ORM layer for
mapping records to Ruby objects and handling associated records.
* Sequel supports advanced database features such as prepared
statements, bound variables, stored procedures, master/slave
configurations, and database sharding.
* Sequel makes it easy to deal with multiple records without having
to break your teeth on SQL.
* Sequel currently has adapters for ADO, Amalgalite, DataObjects,
DB2, DBI, Firebird, Informix, JDBC, MySQL, ODBC, OpenBase, Oracle,
PostgreSQL and SQLite3.
Sequel 3.11.0 has been released and should be available on the gem
mirrors.
= New Features
* A few new features were added to query logging. Sequel now
includes execution time when logging queries. Queries that
raise exceptions are now logged at ERROR level. You can now
set the log_warn_duration attribute on the Database instance
and queries that take longer than that will be logged at WARN
level. By using different log levels, you can now only log
queries that raise errors, or only log queries that take a long
time.
# The default - Log all successful queries at INFO level
DB.log_warn_duration = nil
# Log all successful queries at WARN level
DB.log_warn_duration = 0
# Log successful queries that take the database more than half a
# second at WARN level, other successful queries at INFO level
DB.log_warn_duration = 0.5
All adapters included with Sequel have been modified to support
the new logging API. The previous API is still available, so
any external adapters should still work, though switching to the
new logging API is encouraged.
* Sequel::Model now has a require_modification flag. If not set
explicitly, it is enabled by default if the dataset provides an
accurate number of rows matched by an update or delete statement.
When this setting is enabled, Sequel will raise an exception if
you attempt to update or delete a model object and it doesn't end
up affecting exactly one row. For example:
DB.create_table(:as){primary_key :id}
class A < Sequel::Model; end
a = A.create
# delete object from database
a.delete
a.require_modification = false
a.save # no error!
a.delete # no error!
a.require_modification = true
a.save # Sequel::NoExistingObject exception raised
a.delete # Sequel::NoExistingObject exception raised
Like many other Sequel::Model settings, this can be set on a
global, per class, and per instance level:
Sequel::Model.require_modification = false # global
Album.require_modification = true # class
album.require_modification = false # instance
* An instance_filters plugin was added to the list of built in
plugins, allowing you to add arbitrary filters when updating or
destroying an instance. This allows you to continue using models
when previously you would have had to drop down to using datasets
to get the desired behavior:
class Item < Sequel::Model
plugin :instance_filters
end
# These are two separate objects that represent the same
# database row.
i1 = Item.first(:id=>1, :delete_allowed=>false)
i2 = Item.first(:id=>1, :delete_allowed=>false)
# Add an instance filter to the object. This filter is in effect
# until the object is successfully updated or deleted.
i1.instance_filter(:delete_allowed=>true)
# Attempting to delete the object where the filter doesn't
# match any rows raises an error.
i1.delete # raises Sequel::Error
# The other object that represents the same row has no
# instance filters, and can be updated normally.
i2.update(:delete_allowed=>true)
# Even though the filter is now still in effect, since the
# database row has been updated to allow deleting,
# delete now works.
i1.delete
* An :after_connect database option is now supported. If provided,
the option value should be a proc that takes a single argument.
It will be called with the underlying connection object before
connection object is added to the connection pool, allowing you
to set per connection options in a thread-safe manner.
This is useful for customizations you want set on every connection
that Sequel doesn't already support. For example, on PostgreSQL
if you wanted to set the schema search_path on every connection:
DB = Sequel.postgres('dbname', :after_connect=>(proc do |conn|
conn.execute('SET search_path TO schema1,schema2')
end))
* A :test database option is now supported. If set to true, it
automatically calls test_connection to make sure a connection can
be made before returning a Database instance. For backwards
compatibility reasons, this is not set to true by default, but it
is possible that the default will change in a future version of
Sequel.
* The Dataset#select_append method was added, which always appends
to the existing selected columns. It operates identically to
select_more, except in the case that no columns are currently
selected:
ds = DB[:a]
# SELECT * FROM items
ds.select_more({:id=>DB[:b].select(:a_id)}.as(:in_b))
# SELECT id IN (SELECT a_id FROM b) AS in_b FROM a
ds.select_append({:id=>DB[:b].select(:a_id)}.as(:in_b))
# SELECT *, id IN (SELECT a_id FROM b) AS in_b FROM a
* The Dataset#provides_accurate_rows_matched? method was added which
allows you to see if the dataset will return the actual number of
rows matched/affected by an update or delete call.
* Sequel will now emulate DISTINCT ON support using GROUP BY on
MySQL. On MySQL, GROUP BY is similar to DISTINCT ON, except that
the order of returned rows is not deterministic.
* Support for connecting to Microsoft SQL Server using the JTDS JDBC
driver was added to the jdbc adapter.
* JDNI connection strings are now supported in the JDBC adapter.
* The JDBC adapter should now work in situations where driver
auto-loading has problems, just as when using Tomcat or Trinidad.
* Sequel's JDBC adapter schema parsing now supports a :scale option,
useful for numeric/decimal columns.
* Sequel's schema parsing on Microsoft SQL Server now supports
:column_size and :scale options.
* When connecting to SQLite, a Database#sqlite_version method is
available that gives you the SQLite version as an integer (e.g.
30613 for 3.6.13).
= Other Improvements
* Sequel no longer raises an error if you give Dataset#filter or
related method an empty argument such as {}, [], or ''. This allows
code such as the following to work:
h = {}
h[:name] = name if name
h[:number] = number if number
ds = ds.filter(h)
Before, this would raise an error if both name and number were
nil.
* Numeric and decimal columns with a 0 scale are now treated as
integer columns by the model typecasting code, since such columns
cannot store non-integer values.
* Calling Database#disconnect when using the single threaded
connection pool no longer raises an error if there is no current
connection.
* When using the :ignore_index_errors options to
Database#create_table, correctly swallow errors raised by Sequel
due to the adapter not supporting the given index type.
* The JDBC adapter no longer leaks ResultSets when retrieving
metadata.
* You can now connect to PostgreSQL when using ruby 1.9 with the
-Ku switch.
* When using the native MySQL adapter, only tinyint(1) columns are
now returned as booleans when using the convert_tinyint_to_bool
setting (the default). Previously, all tinyint columns would
be converted to booleans if the setting was enabled.
* Correctly handle inserts returning the autogenerated keys when
using MySQL JDBC Driver version 5.1.12 with the jdbc adapter.
* The native MySQL adapter now supports :config_default_group and
:config_local_infile options.
* When connecting to SQLite, you can provide the :auto_vacuum,
:foreign_keys, :synchronous, and :temp_store options for
making the appropriate PRAGMA setting on the database in a
thread-safe manner. The previous thread-unsafe PRAGMA setting
methods are available, but their use is discouraged.
* Sequel will not enable savepoints when connecting to SQLite
unless the version is 3.6.8 or greater.
* Using limit with distinct now works correctly on Microsoft SQL
Server.
* Database#rename_table now works correctly on Microsoft SQL Server.
* If you specify an explicit :provider when using the ADO adapter,
transactions will now work correctly. The default :provider uses
a new native connection for each query, so it cannot work with
transactions, or things like temporary tables.
* If you specify an explicit :provider when connecting to Microsoft
SQL Server using the ADO adapter (e.g. SQLNCLI10 or SQLNCLI),
Sequel is now able to provide an accurate number of rows modified
and deleted.
* Using set_column_allow_null with a decimal column with a precision
and scale now works correctly when connecting to Microsoft SQL
Server.
* You can now connect to Microsoft SQL Server using the dbi adapter.
* Sequel now recognizes the NUMBER database type as a synonym for
NUMERIC and DECIMAL, which may help some Oracle users.
* Transactions can now be rolled back correctly when connecting to
Oracle via JDBC.
* The active_model plugin now supports ActiveModel 3.0.0beta2.
* Many documentation improvements were made, including the addition
of a dataset basics guide, an association basics guide, an expanded
virtual row guide, and the separation of the Sequel::Dataset RDoc
page into sections. Additional, the RDoc class/method
documentation now contains links to the appropriate guides.
= Backwards Compatibility
* When connecting to SQLite, Sequel now automatically sets the
foreign_keys PRAGMA to true, which will make SQLite 3.6.19+ use
database enforced foreign key constraints. If you do not want
the database to enforce the foreign key constraints, you should
use the :foreign_keys=>false option when connecting to the
database.
* Sequel no longer creates #{plugin_name}_opts class, instance, and
dataset methods for each plugin loaded. No built-in plugin used
them, and I couldn't find an external plugin that did either.
* The Model#associations method is no longer available if the
default Associations plugin is not loaded due to the
SEQUEL_NO_ASSOCIATIONS constant or environment variable being set.
* DISTINCT ON support is turned off by default, and only enabled when
using PostgreSQL, since that appears to be the only database that
supports it. Previously, it was enabled by default and most common
adapters turned it off.
Thanks,
Jeremy
* {Website}[http://sequel.rubyforge.org]
* {Source code}[http://github.com/jeremyevans/sequel]
* {Blog}[http://sequel.heroku.com]
* {Bug tracking}[http://code.google.com/p/ruby-sequel/issues/list]
* {Google group}[http://groups.google.com/group/sequel-talk]
* {RDoc}[http://sequel.rubyforge.org/rdoc]
--
Posted via http://www.ruby-forum.com/.