342735-353662

342541-343079 subjects 342935-345579

Re: previous value in array block - facets issue
342735 [zyzygy@te st] I was recently reading through the facets docuementation and so thought

instance_eval
342740 [abhisheksing] i'm using instance_eval inside method_missing to define a new method at
342741 [robert.dober] It would be easier to help you if you posted your code.
342744 [abhisheksing] def method_missing(method_name,*args)
342746 [dblack@ru yp] A typical pattern is to redefine the method and then call it using
342795 [abhisheksing] thanx...i got that. :)

GPS Tracking
342747 [sijo@ma xi n] Is there any equivalent application in Ruby like this

Method question
342759 [stuart.clark] Struggling a little with the concept of an exercise I am doing.
+ 342761 [pjb@in or at] field3=changeIfLongerThan(data[2],100)
+ 342762 [dblack@ru yp] field3 = changer(field3) if field3.size >= 100
+ 342764 [zyzygy@te st] First off, assigning field3=field3 and field5=field5 is not terribly
  342801 [furetto76@gm] But changer returns nil (just output something)...

How to add a header to xml file
342767 [bill.z.li@gm] <project name="test" default="run">
342778 [drbrain@se m] Try an ant mailing list?

wxruby problem
342770 [wolf.rainer@] I have a problem trying to get wxruby to work with Ruby 1.9.1 on
342772 [sutniuq@gm .] gem install wxruby-ruby19
342775 [wolf.rainer@] thank you for the quick reply! Unfortunately, it didn't work. When I
342804 [sutniuq@gm .] What's the version of RubyGems you are using?
342805 [sutniuq@gm .] Sorry, I meant Ruby, not WxRuby. :-)
342812 [wolf.rainer@] thanks for the reply. I had already looked up your posting on the
342822 [sutniuq@gm .] Some minuts ago I had the same problem. If you try to update RubyGems to
342843 [wolf.rainer@] Cheers,

Dynamically mixins?
342776 [navouri@gm i] So I'm trying to figure out how I can allow an end user to decide which
+ 342780 [spox@mo sp x] module Thing
| 342807 [shortcutter@] This does not work as it defines a member of module Thing with value 5.
+ 342834 [b.candler@po] Use "extend" rather than "include" if you want to add a module to a
  342848 [shortcutter@] That's a nice idea to use #extended!
  342872 [b.candler@po] Yes, that's a good idea. I'm in the habit of writing things like

Trying to understand periodically_call_remote() javascript prototype  helper
342777 [keburgett@gm] I have the following code snippet on the documents#index view page of
342836 [b.candler@po] Please ask Rails questions on the Rails mailing list in future. This

[ANN] johnson 1.1.2 Released
342779 [jbarnette@gm] johnson version 1.1.2 has been released!
342783 [tony@me io .] Cool to see that Johnson has a Google Group.  For some reason I had trouble
342785 [jbarnette@gm] It's there! It's in the URL list at the very top. :)
342786 [tony@me io .] OIC

java.text api parallel in Ruby
342781 [venkatram.ak] Is there a parallel to Format/NumberFormat/DecimalFormat in ruby?
342810 [shortcutter@] printf, sprintf and % operator for String comes to mind.
342851 [venkatram.ak] Thanks for the reply. But as you know java.text api provides the
+ 342858 [james.herdma] Did you look at stftime? Perhaps you could provide a concrete example of
| 342861 [venkatram.ak] I am trying to translate an application from java to ruby. The actual
| 342869 [james.herdma] Okay. So sample input and output? Normally I'd parse through the Java, but
+ 342909 [shortcutter@] Well, that's what you get with incomplete specifications.  You did not
  342916 [venkatram.ak] Lesson Learned: Better the specification better the answer. In my
  + 342930 [sakuro@22 8c] Have a look at mutoh's gettext package[1], a rubyish implementation of
  | 342950 [venkatram.ak] Thanks for the information Ozawa. I have noticed that you are
  | + 342951 [venkatram.ak] I realize that the gettext gem is a simili to java's resourcebundle
  | + 343024 [sakuro@22 8c] I don't have much, but firstly I recommend you to visit GNU's gettext page
  + 342979 [shortcutter@] LOCALE_SYMBOLS_US = {

How to check / list gem dependency before install anything?
342782 [arifsaha@ya ] Is there anyway in RubyGem to check / list / query a gem's
342798 [drbrain@se m] gem help dep
342802 [ryand-ruby@z] I'm starting to sense a pattern with Eric's emails... hrm...

unscubscribe
342784 [garryfre@pa ] ...

[ANN] xcapclient 1.0 released
342788 [ibc@al ax ne] xcapclient 1.0 has been released

How to save string to a file as UTF-8
342789 [bill.z.li@gm] s1 = "good"
+ 342792 [pierr.chen@g] If your ruby version < "1.9"
| 342793 [bill.z.li@gm] pierr, Thanks! But looks like it is not working for me.
| + 342796 [dominikho@gm] How do you test that it is an UTF-8 encoded file anyway? Ruby won't write
| + 342820 [a99.googlegr] You can try
+ 342833 [b.candler@po] What do you mean by "ANSI encoded"? Do you mean "ASCII"?

inserting into sqlite3
342790 [derekbellner] I have a text file, called maillog that I want to insert into a table.
342791 [zyzygy@te st] Not bad Derek.  If you are only ever going to use sqlite3 then perhaps
343379 [derekbellner] It did help, but I am having issues still.
343385 [phasis@gm il] require 'rubygems'

[ANN] omnifocus 1.2.0 Released
342803 [ryand-ruby@z] omnifocus version 1.2.0 has been released!

How Come Ruby is Text-Oriented?
342806 [rubfor@re it] I've just been re-reading Byte August 1981 - an edition dedicated to
+ 342808 [lists@be tr ] Learn the Vim editor and you know the differences. Sorry.
+ 342809 [shortcutter@] I do not know a programming language for which the basis is not text.
| + 342842 [rick.denatal] Well even in Smalltalk, you typed the program text into browser
| | 342846 [steve@st ve ] For an example of a popular and well-known graphical programming language,
| + 342854 [matt_neuburg] My favorite was Prograph. It wasn't just visual, it was dynamic: if you
+ 342811 [ian.hobson@n] This is because "all" languages are text based.
| 342831 [b.candler@po] Fantastic. That would let you store all programs as graphs, which could
| + 342837 [default@sp r] in the media/audio/video, what is called "dataflow" is a very popular
| + 342839 [xenogenesis@] But if we're going to the point of serializing the program as XML, why
| | + 342840 [b.candler@po] You are Pascal J. Bourguignon and I claim my five pounds.
| | + 342841 [keburgett@gm] I programmed in Smalltalk in the 80s, and I loved it.  But, Smalltalk was a
| | | 342845 [rick.denatal] as a
| | + 343008 [ian.hobson@n] Is that LISP, a (John) McCarthyism or simply humour ignored?  :)
| + 342847 [shortcutter@] Is it just me or did you actually forgot to include a smiley here?
|   342924 [b.candler@po] I thought it was sufficiently sarcastic as it was, but I could have been
|   342938 [shortcutter@] I was sarcastic - but because I couldn't see your face's expression so
+ 342817 [minilith@gm ] I once asked people on the Squeak smalltalk list about using Squeak
+ 342830 [rubyforum@we] Color coded text helps some.
+ 342899 [pjb@in or at] Because  Smalltalk, it was in the 5th generation of the Matrix.  Now
+ 342900 [pjb@in or at] I've got also another answer.  Perhaps you will find it more serrious,
| 343012 [ian.hobson@n] Sorry Pascal,
| + 343020 [luc@ho k- on] Wrong. It's the old farts of the "Acad=E9mie Fran=E7aise" who consider =20=
| | + 343025 [ian.hobson@n] I stand corrected!
| | + 343477 [robert.dober] I do not agree, the French have much more of a defense mechanisme (
| + 343026 [dblack@ru yp] 1/3 to 1/2 a million sure sounds like "up to 1,000,000 or more" to me
+ 342914 [fredjoha@gm ] You could also ask "why are we still reading books, when we can see
| 342976 [rubfor@re it] The point I really meant to get across is why are we typing text INTO AN
| + 342981 [dblack@ru yp] Then you have to start reading atypical Ruby books. I know a couple of
| | 342984 [usurffx@gm i] Graphical is very important ... for advertisements.
| + 342994 [huw@da kn on] Not everybody does using a simple text editor. Ruby In Steel (an IDE of
| + 343017 [james.britt@] Did you intend this parallel in your sentences?
|   343018 [vjoel@pa h. ] I read it the other way around, with the rubies doing the dazzling.
+ 343197 [tom@to mo ri] Don't fix what ain't broke.
  + 343229 [ninja@sl ph ] While true, this also misses the point of the various visual interfaces.
  | 343244 [rubfor@re it] Visual Basic is a good example of an attempt to be more integrated -
  | 343269 [ninja@sl ph ] On the other hand, Visual Basic also requires these things. At the very least,
  | 343295 [cwdinfo@gm i] ...
  | 343303 [shevegen@li ] I dont think this holds true. Sure, it may hold true in the context of
  | + 343328 [steve@st ve ] Are you proficient with the command line? I don't mean this in an insulting
  | + 343362 [ninja@sl ph ] I couldn't disagree more.
  + 343241 [karottenreib] Seems to me, you're using the wrong window manager :-)
  | 343475 [tom@to mo ri] On OS X and Windows, I use what comes out of the box. Admittedly, on OS
  | 343526 [karottenreib] Almost the same here. Tiling window managers under windows suck (especially
  | 343829 [njus@la sh u] In Linux I setup 12 workspaces, and switch between them using keys
  + 343275 [pjb@in or at] You should try ratpoison ;-)

What is the Hash datatype in Ruby?
342813 [prateek.agwl] What is the Hash datatype in Ruby? And what is it used for?
+ 342814 [shortcutter@] remember.guy do |as, often| as.you_can - without end
+ 342815 [rubfor@re it] A hash is a collection of pieces of data where you access any selected
+ 342816 [lists@be tr ] Bertram Scharpf

thread exec
342818 [alfonso.capo] domains = ['www.bim.com','www.bum.com','www.bam.com']
342823 [a99.googlegr] threads.each {|th|
342825 [alfonso.capo] ops! :)
342827 [a99.googlegr] Glad to hear!

Assignments
342824 [ftf3k3@gm il] a = b = 1
+ 342826 [gregory.t.br] This question actually applies to all Ruby versions.
| 342828 [ftf3k3@gm il] Thanks that's very helpful!
+ 342829 [pjb@in or at] Because a<<1 doesn't modify a. It sends the message << with the

Checking if String.scan does not match
342835 [Alex.Allmont] I'm extracting 3 words from a string delimited with colons using the follow=
342838 [b.candler@po] scan is the wrong tool here, because it is intended to match the pattern

ruby 1.8.6  puts  outputs  \000 chars
342849 [jhs408@gm il] I recently updated my gem library, now a simple program outputs \000
+ 342852 [Rob@Ag le on] Is the file system using UTF-16 perhaps?
+ 342853 [rick.denatal] Hmmmm, my first guess is that the null characters really ARE in the
+ 342855 [matt_neuburg] As others have said, it looks like your input is UTF-16. Either *treat*

1.9 upper-case for constants?
342859 [b.candler@po] I'm posting this here for some advice on whether this is a bug, or

1.9 inverse of String#ord
342860 [b.candler@po] Is there a simple inverse of String#ord in ruby 1.9?
342862 [james@gr yp ] irb(main):001:0> 322.chr("UTF-8")
342873 [b.candler@po] That's what I was missing. Thank you.

how to stop the subclass from overriding a method.
342865 [venkatram.ak] How would one create a method that is accessible from
342874 [matt_neuburg] Something like this?
342876 [robert.dober] ible from
342878 [tim.pease@gm] sible from
342885 [xenogenesis@] essible from
+ 342886 [venkatram.ak] It makes more sense in java. Let me prove my point with an example.
| 342887 [venkatram.ak] Very good article covering java's final keyword.
+ 342912 [shortcutter@] Making methods final makes sense if you apply the template method
  342919 [venkatram.ak] This was playing in the back of my head. But makes more sense when
  + 342931 [rick.denatal] This is a good move, and the right thing to do.  Some things just
  | 342955 [gary.yngve@g] Are you trying to prevent overriding a method from the security
  + 342985 [shortcutter@] I am not sure I qualify as purist.  I just tried to step back and think

rails training
342875 [derekbellner] I asked this in the Rails forum, but no replies, so....
+ 342879 [keburgett@gm] I did it the hard way, I bought the Agile Web Development with Rails book,
| 342928 [b.candler@po] For someone with 8 years Perl experience, that's the way I'd recommend
| + 343027 [derekbellner] Yeah, but I do program daily like some here. I use it as a tool in my
| + 343029 [derekbellner] Yeah, but I do not program daily like some here. I use it as a tool in
+ 342880 [rachel.nicho] There is an excellent course offered from the Big Nerd Ranch in Atlanta.

1.9 Installer
342877 [brgsousa@gm ] Why they don't release a ruby 1.8.7 or ruby 1.9 installer for windows?
342882 [luislavena@g] Luis Lavena
342881 [luislavena@g] Luis Lavena
342883 [brgsousa@gm ] Thanks!
342884 [brgsousa@gm ] What differs those binaries ones from a installed (from one-click) ruby
342888 [luislavena@g] The ones installed from former One-Click are built using Microsoft
342891 [brgsousa@gm ] Thanks for your reply Luis!
342894 [luislavena@g] download.php/18566/ruby186-25.exefrom thisftp://ftp.ruby-lang.org/pub/ruby/=
342920 [brgsousa@gm ] Thanks for your reply.
342921 [luislavena@g] vel

[ANN] fast_xs 0.7.1 Released
342892 [normalperson] fast_xs version 0.7.1 has been released!

`+': Range can't be coerced into Fixnum (TypeError)
342893 [prateek.agwl] I am getting the follower
+ 342895 [list.push@gm] What is your method returning?
+ 342926 [b.candler@po] You need to take a methodical approach to debugging. Fortunately, your
| 342927 [b.candler@po] P.S. It's not normal ruby practice to return 0 or 1 for boolean
+ 342946 [kbloom@gm il] def checkforcube(rem)

bluecloth 2.0.5 installation error on Windows
342896 [qweruiop@gm ] I am trying to install bluecloth on Windows XP, but got the following
+ 342910 [usurffx@gm i] IF YOU ARE USING VC2005 or VC2008, there maybe a problem of strcasecmp()
+ 342911 [usurffx@gm i] ... you need a C compiler to build native extensions ...
  342915 [qweruiop@gm ] Is there another way to get bluecloth on to Windows without gem or C
  + 342918 [luislavena@g] Please ask the gem author to use rake-compiler to generate native
  + 343403 [ged@fa ri mu] Sorry, I do actually have build targets for binary Windows-compatible
    + 343443 [luislavena@g] Michael.
    | 343445 [ged@Fa ri MU] But I'm already delivering them from the convenience of OSX! :)
    | 343492 [luislavena@g] Glad to hear that!
    | 343611 [ged@Fa ri MU] I have a single directory of rake tasks for all my other projects that
    + 345907 [tj@cr wd rs ] I'm trying to use the bluecloth-2.0.5-x86-mingw32.gem gem on Windows
      345933 [luislavena@g] =A0
      346118 [tj@cr wd rs ] =A0
      346125 [luislavena@g] le =A0
      353624 [harry.seldon] I am using rubyinstaller-1.8.6-p383-rc1.exe .
      353626 [luislavena@g] ngw32.gem
      353662 [harry.seldon] Thx Luis!

For GIS applications
342897 [sijo@ma xi n] Could anybody please suggest which is the most widely used gem for

how many thread?!
342898 [alfonso.capo] I've a question about threads counting... :)
342925 [b.candler@po] Yes.

Failed to compile ruby 1.9.1-p129 with MinGW 4.4.0
342901 [leledumbo_co] ./configure --prefix=/c/ruby --disable-pthread --enable-shared

How to include a string into a regex comparison?
342902 [ibc@al ax ne] valid_content_type      = "application/auth-policy+xml"
+ 342903 [ibc@al ax ne] received_content_type =~ /^#{Regex.escape(received_content_type)};?/
| 342906 [jgabrielygal] Oh, sorry, I missed you already solved it. Anyway I wanted to point
| 342908 [ibc@al ax ne] El 31 de julio de 2009 11:46, Jess Gabriel y
+ 342904 [fred@la av .] When you insert a string inside a regexp, it's evaluated as is by the
+ 342905 [jgabrielygal] -1"
  342907 [ibc@al ax ne] El 31 de julio de 2009 11:45, Jess Gabriel y

[ANN] heist 0.3.0 Released
342913 [jcoglan@go g] heist version 0.3.0 has been released!

Interesting behaviour
342917 [deepak.gole8] When I does following thing on irb console
+ 342922 [b.candler@po] I see the same with ruby 1.8.6.
+ 342923 [pjb@in or at] Why?  Ask youself why foo.foo.foo --> 1 in the irb console!
  342929 [b.candler@po] It's not quite as simple as just looking at 'self', and it took me a

Slow regular-expression engine
342932 [w_a_x_man@ya] BEGIN {
342933 [dominikho@gm] In Ruby 1.9 its 1/4 of the time (still slow).
342934 [w_a_x_man@ya] ... it is possible to write so-called "pathological" regular
+ 342936 [ben@bl yt in] So what?  I'm sure Ruby core would be happy to consider a patch.
| 342974 [shyouhei@ru ] Yes we do.  And if you could write a time-efficient NFA engine with back
| 342975 [robert.dober] You should prepare a mail template as inspired by this historic example
+ 342986 [shortcutter@] I am not sure as to what exactly your point is.  The awk you have been
threads.html
top