305756-313759

305624-308482 subjects 305883-316180

^ wierd problems with Win32API and dlls
305756 [mechacrash h] i am currently developing a more advanced audio and input system for the

^ how to force a decimal
305757 [nephish gmai] Hey there all,
305760 [micathom gma] "%.2f" % 3.5
305764 [nephish gmai] cool, thanks much !

^ File question
305759 [tekmc hotmai] File name: some_random_report.2008-06-20.csv
+ 305761 [martindemell] this should get you started
+ 305799 [jjbuckley gm] block, to which the filename gets passed. ri Dir::glob has pretty
  305818 [tekmc hotmai] Thanks for the detailed explanation Bryan. I've figured out how to use
  305819 [jjbuckley gm] Hmm, well they're named nicely, so you can probably do something like

^ Ruby Quiz delayed one day
305762 [matthew.moss] Apologies, will have the quiz available tomorrow.
305813 [matthew.moss] Sorry, I wasn't feeling well yesterday, and hoped it would pass before

^ Problem with while loop.
305766 [rumpy mrbitt] I'd greatly appreciate feedback on the following code.
305769 [stefano.croc] To understand what's going on, one should understand what the error
+ 305771 [rumpy mrbitt] rch
+ 305772 [rumpy mrbitt] Just a quick update: a friend ran my entire code on Mac/Unix and it =20
  305803 [davebass mus] I'd be highly suspicious of the file names, looking for things like
  305841 [rumpy mrbitt] Thanks Dave. I'll give this a try. I almost choked when my friend told

^ sqlite3-ruby problem accessing row values
305773 [thedoobs gma] I get a "can't convert String into Integer (TypeError)" error about the
+ 305795 [jjbuckley gm] # Rows is an array of arrays....
| 305823 [thedoobs gma] Using integer indices did the trick. Thanks! I was trying to use the
| 305826 [jjbuckley gm] You're welcome. :)
+ 305796 [leslieviljoe] Perhaps it would help if you uploaded places.sqlite somewhere (like
  305797 [leslieviljoe] Nevermind, it's easy to create such a database.
  305800 [leslieviljoe] #!/usr/bin/ruby

^ Sequel 2.1 and Windows
305774 [damnbigman g] Does anyone have Sequel 2.1 running in Windows?
305802 [luislavena g] rn
305961 [damnbigman g] Thanks Luis, that did the trick.

^ Freezing a Gem (not Rails)
305778 [emarthinsen ] I'm writing a fairly involved Ruby application. I want to stabilize the
305779 [drbrain segm] The easiest way to do this is to use gems itself.  It is smart.

^ Re: RubyGems 1.1.1
305780 [s0nspark gma] After updating I am seeing a bulk update every single time I install a
+ 305787 [ryand-ruby z] I did for a week or two... seems to be fixed for me. I assumed it was
+ 305836 [drbrain segm] RubyGems 1.2 comes out tonight Pacific Time.  Wait a few hours.
  305837 [s0nspark gma] Cool! Thanks a bunch!

^ Using actionmailer to send an email
305781 [APNelson.L g] require 'rubygems'
+ 305782 [dvohra09 yah] Seems like the actionmailer has a bug. I tested the actionmailer and the em=
| 305783 [APNelson.L g] so how would I go about writing a scrip to send an email then?
| 305861 [junkone1 gma] wn
| 305862 [junkone1 gma] own
| 313759 [epugh openso] I really like this plugin for doing this
+ 305790 [botp delmont] # ruby mail.rb
+ 305868 [ara.t.howard] you need to patch Net::SMTP to support tls, this is one of the easiest

^ Arbitrary code execution vulnerabilities
305784 [mberrow1 pac] You may want to take immediate action on this.
+ 305789 [botp delmont] RnJvbTogTWlrZSBCZXJyb3cgW21haWx0bzptYmVycm93MUBwYWNiZWxsLm5ldF0gDQojIFNvbWUg
| 305791 [jeremy bitsw] . wait for the rails upgrade. ask the rails list or dhh.
| 305822 [znmeb cesmai] 1. Is this on simple reproducible cases or do you need Rails to get a
+ 305857 [mberrow1 pac] Situation summary from RubyInside

^ Regex - Exclude Multiple Characters and Global Scanning
305785 [donttrustben] I have 2 problems.
305794 [dblack rubyp] irb(main):029:0> offsets = []
305850 [donttrustben] That will work, thanks. It would seem intuitive to me that scan (or a
305890 [botp delmont] RnJvbTogQmVuIFdvb2Rjcm9mdCBbbWFpbHRvOmRvbnR0cnVzdGJlbkBnbWFpbC5jb21dIA0KIyBE

^ Rex & Racc : howto?
305788 [fdelente mai] I'm looking for documentation on rex & racc, as what I have found up to now
305825 [nicholasmabr] I haven't run across any rex and racc tutorials online, but there are
305828 [ryand-ruby z] This is all good advice. For a more complicated racc example (doesn't
305832 [fdelente mai] Thanks for the answers.
306153 [no spam.plea] It is very sweet and clean and all kinds of good things, and since you're

^ socket not connected
305805 [mawiniarski ] require 'net/http'
305806 [gelios gmail] Yes

^ Printing with ruby under windows
305807 [shevegen lin] Anyone knows if there is an easy, straight-forward way to print a i.e.
305811 [AEtzold gmx.] Dear Marc,

^ Where does ruby excel?
305810 [francis.ramm] I have only used ruby for writing little scripts. Things that are
+ 305820 [vjoel path.b] As a high-level API wrapper (or domain-specific language) around some C
+ 305821 [znmeb cesmai] Well, certainly Rails is a large part of it, but I would say that the
+ 305824 [jjbuckley gm] Rails carries Twittr, apparently, and that's pretty huge - there are
| 305873 [shevegen lin] Any place perl is used, ruby beats it with ease.
| 305897 [ttmrichter g] (Ob. Disclaimer: I use Ruby for most of my programming except where
| 305914 [robert.dober] Agree 100%
| 305939 [ttmrichter g] dice
| 306040 [robert.dober] you probably did and I missed it, thx for reposting them.
+ 306504 [ninja slapha] The trick is, first of all, programmer time is more important than
| 306507 [znmeb cesmai] For some business models, this may be true. In general, it is not. If
| 306510 [dangerwillro] Basically, Ed is spot on with this.
| 306511 [mike huikau.] systems engineers (or anyone asked to choose software) usually go with a
+ 306515 [ara.t.howard] anything which requires high level abstraction - ruby is easily in a

^ Re: save file in win32 os
305812 [AEtzold gmx.] Dear Raphael,
305827 [jjbuckley gm] If you know how to do it in C/C++ using the Windows API, then you can

^ Changing the program to work with files
305831 [hisastro gma] I have a program that is working with Console ( input - output)
+ 305834 [gelios gmail] which difference with file i/o and stdio that confuse you?
| 305835 [hisastro gma] May I ask you to help me modify the program to take input form files
+ 305864 [davebass mus] Use the builtin File class.
  305940 [paqs140482 g] Just change ARGV values with variables from file. This example do the work

^ stone and concurrency
305839 [junkone1 gma] has anyone used the Stone gem before. http://stone.rubyforge.org/

^ [ANN] Initial release of amalgalite - v0.1.0
305844 [jeremy hineg] Amalgalite embeds the SQLite database engine in a ruby extension.
+ 305845 [vjoel path.b] Is that really better than linking with libsqlite?
| 305846 [jeremy hineg] That depends on what you mean by "better" :-).  If it is performane, I
| 305849 [vjoel path.b] You mean like postgis, but in a sqlite sized package? That would be
| 305851 [jeremy hineg] Yup, its in the source tree but not part of the released version of
+ 306053 [unbewusst.se] 2008/06/21/amalgalite-0-1-0-released.html
  306074 [ara.t.howard] Bulk updating Gem source index for: http://gems.rubyforge.org
  306083 [unbewusst.se] may be u aren't running Mac OS X 10.4.11 ??? :[
  306109 [unbewusst.se] just to say, finally i get it (ie. amalgalite), after mkrf update.
  306258 [jeremy hineg] That would be a bug on my part in amalgalite, thanks for fiding it.
  306261 [unbewusst.se] fine !
  306606 [jeremy hineg] The sqlite_master has information about tables and views, but no columnar
  306627 [unbewusst.se] fine, thanks !

^ In GServer will socket will be closed when Thread.exit?
305848 [ibc aliax.ne] def serve(io)

^ my idea to read my email from my cell phone
305852 [wbsurfver ya] I have an idea on how to read email from my cell phone, I want to do
305879 [justincollin] I did something like this a while back, but without the 2nd requirement
305899 [wbsurfver ya] I can get yahoo email, but it seems usefull to be able to read my

^ Multiple HTTP Sockets or Threads for file uploads.
305853 [gberz3 gmail] I have a client for whom I developed a small application using Ruby
+ 306029 [shortcutter ] You just need to fork multiple curl processes.
| 306030 [gelios gmail] you should use DRb with multi-process architecture since ruby uses
| 306051 [shortcutter ] This is not necessarily true for IO bound tasks. Also, if curl is used
| 306125 [gberz3 gmail] Alright, I'm currently using Threads and it has sped things up
| + 306148 [shortcutter ] But note that the speedup likely comes from using multiple curl
| + 308998 [todd.fisher ] This could be caused by a bad domain name causing a dns to take a long
+ 308997 [todd.fisher ] You could try the curb library.   This version included support for the

^ [ANN] KABLAME! 0.2.1 Released
305854 [jacob.dunphy] This is the first "announced release" of KABLAME!
+ 305859 [AEtzold gmx.] Dear Jacob,
+ 305860 [ttmrichter g] So... lines of code is good?  Cut-and-paste coding, here I come!
| + 305874 [znmeb cesmai] Dijkstra once said that he referred to that metric as "lines of code
| + 305875 [vjoel path.b] Adopt the practice of gnirotcafer.
+ 305865 [flo andersgr] This scheme is faulty not only because of the assumption that more
| 305869 [jacob.dunphy] I'd like to take the opportunity to apologize, here.  The original
| + 305870 [flo andersgr] Thats quite another way of putting it. From your original post, it
| + 306039 [eleanor game] You are aware that code 'quality' is a far more complex concept than
|   306062 [jeremymcanal] I'm sure he does.  I'm sure he also realizes that C0 analysis like
|   306068 [znmeb cesmai] Ah, but the perception outside of the Ruby and Rails communities was
+ 306075 [ara.t.howard] it would seem you've got the order reversed!?   seriously ;-)
  306102 [jacob.dunphy] The source is available.  Feel free to make modifications.  ;)

^ [ANN] RubyGems 1.2.0
305855 [drbrain segm] = Announce: RubyGems Release 1.2.0
+ 305904 [botp delmont] # =3D Announce: RubyGems Release 1.2.0
+ 305907 [leslieviljoe] Yahoo! I have been waiting for this!
| 305912 [sandro.pagan] Cool !
| 305913 [saji apcc21.] Great...thanks for the update!
| 305980 [drbrain segm] Why do you care?
| + 305982 [ara.t.howard] because it's been modified locally.
| + 305983 [ara.t.howard] also, because the environment may not be the same installing something
|   305987 [drbrain segm] RubyGems does not reinstall dependencies that already exist, so you
|   306012 [ara.t.howard] oh yeah i see that - i guess i just tend to install deps by hand so
+ 305975 [ara.t.howard] yes, we really all do love eric.
+ 305979 [jbarnette gm] FYI, You can include development dependencies during an install or
+ 305984 [unbewusst.se] ~%> sudo gem update --system
| + 305991 [unbewusst.se] ~%> sudo gem install amalgalite
| | 305997 [rick.denatal] I'm also having difficulties, it would appear that I can't successfully
| | + 306007 [cdemyanovich] Just to add a success story.... I'm on Mac OS X 10.5.3. I had no
| | + 306025 [unbewusst.se] I've heard, weeks ago, that rubygems is broken over Mac OS X 10.4.11,
| | | 306391 [sandor.szuec] I can not confirm this.
| | | 306397 [unbewusst.se] Yes, i'm using G5-PPC, and have installed ruby using MacPorts.
| | | 306407 [sandor.szuec] I am unsure, but I think you are right.
| | | 306415 [unbewusst.se] in my opinion, it's clear enough.
| | + 306217 [drbrain segm] RubyGems itself never accesses these URLs.  Forbidden here is ok.
| + 306218 [drbrain segm] As I responded to Rick's message, this should now be fixed.  If you =20
|   306259 [unbewusst.se] unfortunately, nope ))
|   306725 [drbrain segm] If you run sudo rubygems_update now, does it install 1.2.0?=
|   306878 [unbewusst.se] ~/gems%> sudo update_rubygems
+ 306395 [damphyr free] I run into an issue with multiple gem servers: I added the datamapper

^ changing a file inline on Windows
305856 [jdinkel gmai] <code>
+ 305863 [shortcutter ] This is a killer because it will transform the whole file into a single
+ 305898 [lrlebron gma] You can use the rio library to simplify this
+ 305923 [lrlebron gma] There was a small error in my previous post. Here a more complete
  305945 [jdinkel gmai] Thanks for all the information.  I'll try out these methods and try to

^ rex: howto use the lexer class?
305858 [fdelente mai] I'm trying to get rex to parse my inputs. After reading some of the sample
306020 [nicholasmabr] Hey Fabrice,

^ WSDL Driver connection error / timeouts
305877 [rforum thisi] well but, how can I set a timeout and handle connection / timeout

^ Read THIS!
305878 [Wirelesselec] MAKE MONEY!!!MAKE MONEY!!!

^ extending a class
305880 [lcalje gmail] class Person
305881 [dblack rubyp] irb(main):001:0> class C; X = 1; end
305986 [lcalje gmail] class << Person

^ Is it ellegant to use a global variable to store a Logger object?
305882 [ibc aliax.ne] different places (into classes, into methods...) I use a global variable in=
+ 305884 [ snk gna.org] module Kernel
| 305885 [ibc aliax.ne] How ellegant is using Kernel module? Imagine you are programming a framewor=
| 305886 [ snk gna.org] True.  In that case, I would put the debug() method or the LOG object in
| 305888 [ibc aliax.ne] Humm, I don't like adding "include Logging" to every classes I use since=20
| 305889 [ snk gna.org] You could use meta programming to include Logging in all nested classes
| + 305891 [ snk gna.org] Hmm, I should have used duck-typing in the above line (all the Java
| + 305908 [shortcutter ] ce
|   + 305911 [ibc aliax.ne] MjAwOC82LzIzLCBSb2JlcnQgS2xlbW1lIDxzaG9ydGN1dHRlckBnb29nbGVtYWlsLmNvbT46Cj4g
|   + 305963 [ snk gna.org] Not really.  You can refactor that bit of meta programming into its own
|     305968 [ara.t.howard] this is a bad idea.  try to use rails' code with other code that uses
|     + 305992 [ibc aliax.ne] Could you please explain me what the last line does? (::Logger.new)
|     + 306000 [ snk gna.org] Perhaps they modify ruby's logging class directly?  I am proposing
|       306011 [ara.t.howard] yup.
+ 306058 [andrea.fazzi] Maybe and IMHO you can use a simple dependency injection pattern. You
| 306066 [ibc aliax.ne] That's a cool solution :)
| 306161 [shortcutter ] I do not think so.  Reasons: it clutters every instance with a
| 306168 [robert.dober] Could not agree more with you. May I add some other reasons.
| + 306173 [shortcutter ] Absolutely!
| + 306176 [andrea.fazzi] I would known if, in your opinion, DI is not DRY in general or you are
|   306180 [robert.dober] ive
|   + 306185 [andrea.fazzi] Don't worry :-)
|   | 306208 [cremes.devli] I typically provide a setter on my classes for configuring the log
|   | + 306266 [robert.dober] That is why my debugging or logging routines normally look like this
|   | + 306268 [andrea.fazzi] Ok, you're using setter injection instead of constructor injection.
|   |   306442 [cremes.devli] Correct. I haven't had a situation where I needed to do selective
|   + 306193 [shortcutter ] That's a classical bug: off by one. :-)
|     306265 [robert.dober] I fail to understand Robert, look at this IRB session, as you see I
|     306281 [shortcutter ] Amazing!  And I thought I knew something about numbers - at least below 100. :-)
+ 306267 [larsch belun] If Ruby handled modules more like namespaces in C++ or similar
+ 306288 [ shot hot.pl] One more elegant (IMHO) opinion, assuming you have a common namespace
  306351 [ibc aliax.ne] ur
  306387 [ shot hot.pl] No =E2=80=93 by using class << self, you=E2=80=99re operating on the Logger=
  + 306393 [robert.dober] Amen
  | + 306412 [ibc aliax.ne] It's not the first time I read this, but could I know a good reason for not=
  | + 306427 [robert.dober] l ;)"
  + 306414 [ibc aliax.ne] er object
  + 306416 [ibc aliax.ne] =2Edebug
    306499 [ shot hot.pl] ne
    306501 [ara.t.howard] ruby classes are evaluated top down at load time so, to achieve the =20
    + 306502 [ibc aliax.ne] Yeah! I just realized of that today doing some tests. It's really great!
    + 306550 [ shot hot.pl] =E2=80=A6
      306552 [ibc aliax.ne] The problem here is that those code is runned in load time, so if that code=
      306576 [ shot hot.pl] Right. I also figured out that in my case, I need to be able to reset
      310119 [cremes.devli] I hate to resurrect this thread, but I have a problem that I can't
      310126 [ara.t.howard] module Namespace
      310140 [cremes.devli] For lurkers, here is some slightly corrected code (the above doesn't
      310147 [cremes.devli] Hmmm... I puzzled through this all the way home and came to the
      310150 [cremes.devli] Here's proof it doesn't work as currently written. I'm hoping there's
threads.html
top