372823-374017
372585-373931 subjects 373022-374503
^ Gem dependencies issue
372823 [wagner.andre] Ok, I'm trying to install gem A. I could give you the names of the gems, but
+ 372824 [jeremy bopp.] What happens if you explicitly install C first and then try to install A?
+ 372837 [luislavena g] but
^ Constant lookup as-if toplevel
372826 [transfire gm] would have loved to run the scripts at the toplevel, but the
+ 372839 [tony.arcieri] I ran into this same problem today myself, although attempting something
+ 372871 [jrmair gmail] Why not add a const_missing() to your Scope class and explicitly lookup
+ 372872 [jrmair gmail] class Scope
| 372885 [transfire gm] Nice. I removed `self.` b/c Scope is a self extended module, and it
+ 372875 [robert.dober] yup
^ [ANN] configurability 1.0.2
372834 [ged FaerieMU] Version 1.0.2 of configurability has been released.
^ Dynamically reference instance vars
372835 [lists gregwi] If I need to dynamically reference instance vars, is this the only way
+ 372836 [jeremy bopp.] How about backing the accessors with a hash that also has an accessor?
| 372845 [wagner.andre] C'mon, this is ruby! Revel in it!
| 372851 [jeremy bopp.] Excellent point! Thanks!
+ 372855 [lists gregwi] Appreciate the effort, but the point has been lost. Don't focus on the
| + 372856 [jgabrielygal] class A
| + 372857 [tony.arcieri] This breaks the encapsulation that objects are supposed to provide for their
| + 372858 [ryand-ruby z] You're confusing methods and variables. They're not the same, but you're =
| 372860 [lists gregwi] I wasn't confusing them, I was hoping Ruby's send would be flexible
| 372877 [shortcutter ] Here are two other approaches using widely underused class Struct and
+ 372859 [jrmair gmail] You realize that instance_variable_set isn't private right?
^ Range of hex values?
372841 [ammarabuali ] ("\x00".."\x7F").to_a
+ 372846 [ara.t.howard] you are relying on String#succ! there. read the docs to understand
| 372852 [ammarabuali ] Thanks for the tip. I read the docs and it did shed some light on what is
+ 372878 [shortcutter ] The ".to_a" is superfluous here. Here are other options
372879 [ammarabuali ] Thanks Robert. Another great example of the "TIMTOWTDI-ness" of ruby
^ What does ruby.exe do?
372842 [sbstn26 yaho] In my folder C:\Ruby192\bin , there is ruby.exe
+ 372844 [cmdjackryan ] The way you drag and drop files when copying them, except you release
+ 372890 [devguy.ca gm] just put "C:\Ruby192\bin" at the end of your path environment, open up
| 372898 [sbstn26 yaho] May I ask why 'ruby.exe example1.rb' when 'example1.rb' alone is
| + 372904 [luislavena g] That only works if during installation of Ruby you check the box to
| + 372905 [jeremy bopp.] It works because there must be a file association for files with the .rb
| | 372927 [mo_mail ongh] Or you could associate .jeremy with a program that parses the "shebang"
| | 372928 [jeremy bopp.] That's actually a great idea. Can you recommend such a program? It
| | 372929 [mo_mail ongh] I've never used one for it, but I was just a bit offended by the "This
| + 372950 [devguy.ca gm] because someone here posted once that .rb extension failed to get
+ 372930 [mo_mail ongh] Just since no one else has actually answered this last bit, you could
^ Rdoc problem on some gems (like ruby-graphviz)
372847 [jean-christo] One of my computers is running Fedora 12, where I compiled ruby 1.9.1p376.
372848 [sutniuq gmx.] The error you get during gem installation has nothing to do with the
^ Informational link related to Computer programming Language
372849 [alamzeborakz] For Free Download lectures and Presentation of all types of
^ Informational link related to Computer programming Language
372850 [alamzeborakz] For Free Download lectures and Presentation of all types of
^ [ANN] sqlite3-ruby 1.3.2 Released
372854 [aaron tender] sqlite3-ruby version 1.3.2 has been released!
^ How to write this in ruby
372861 [al3xandro.g ] /**
^ Undocumented feature: Array#one? (ruby 1.9.2)
372862 [s.korteling ] In (my) ruby 1.9.2 class Array has an undocumented method #one? . It
372863 [james grayso] $ ri -T Enumerable#one?
372864 [s.korteling ] Ah, it takes a block. That certainly makes more sense.
^ defining allocate is deprecated; use rb_define_alloc_func instead
372865 [brian.takita] rb_define_alloc_func()
374017 [headius head] Not really. Most impls, including MRI and JRuby, don't actually
^ "<-----/strings/----->" my ruby http client, link search.
372866 [i8igmac aim.] im not sure how to ask this question...
372873 [m.fellinger ] require 'nokogiri'
372967 [shortcutter ] Or even
^ Rails application Webservices
372868 [alumsimporta] I have a rails application at http://electric-sky-98.heroku.com/products
^ post requests in ruby
372869 [robmckennie ] writen a php script to test it. when a request gets sent, its saves all
^ [ANN] amalgalite 0.15.0 Released
372874 [jeremy hineg] amalgalite version 0.15.0 has been released.
^ new guy needs help
372883 [info.atwater] place. I am a director and filmmaker (www.prothemovie.com
372884 [cmdjackryan ] You aren't in the wrong place. :)
^ the dark side of inherited methods
372886 [timrandg gma] Let's say I want to make a new class, Vector (that will function,
+ 372887 [cmdjackryan ] Define "consistent behavior". That #collect returns an Array is
| 372888 [devguy.ca gm] I see how Vector is-a Array, I don't see how Array is-a Vector? I would
| 372889 [cmdjackryan ] Array#collect returns a new Array. Array#collect! returns the existing
| 372894 [devguy.ca gm] Thanks Phillip, yes I agree with respect to the implementation, i get
+ 372893 [james grayso] just have to live with the dark side of inherited methods?
| + 372895 [timrandg gma] It is a problem with inheritance and another reason why inheritance is
| + 372938 [robert.dober] Completely agree with this. Apart of the code you suggested I would
| + 372941 [djberg96 gma] On Oct 31, 5:49=A0pm, James Edward Gray II <ja...@graysoftinc.com>
| | 372942 [james grayso] classes.
| | 372944 [shortcutter ] +1 (me too)
| + 372951 [tony.arcieri] That's a pretty extreme position to take. Inheritance is an indispensable
| + 372958 [robert.dober] I cannot speak for Edward but would like to defend my (+1) on this.
| + 372964 [shortcutter ] I believe this is what James wanted to stress: inheritance is used far
| | 372986 [transfire gm] c.com
| | 372995 [shortcutter ] I would not subscribe to that. Although Bertrand Meyer is a big fan of
| | + 373023 [ian.hobson n] There are, IIRC, two places where is a, is not well implemented by
| | | 373032 [shortcutter ] sent,
| | | 373077 [ymendel pobo] ht
| | + 373090 [transfire gm] Mixins are just another way to do inheritance. It has the same issues.
| | + 373108 [usenet istik] What I would like to have are Mixins (especially Enumerable) behaving some
| | | 373111 [shortcutter ] Of course there are ways that could be used to implement what you want, e.g.
| | | 373113 [usenet istik] This is why I would not want this as _default_ behavior. I would expect
| | | 373129 [shortcutter ] ng
| | + 373109 [shortcutter ] I am not sure I get your point. What do you mean by access to
| | | 373125 [transfire gm] That is what I am referring.
| | + 373158 [robert.dober] =A0I
| + 372981 [james grayso] <james@graysoftinc.com
| 372991 [josh.cheek g] Can you give some examples of where it has its place? I have been trying to
| + 372996 [joelvanderwe] class A < Struct.new :x, :y, :z
| | 372997 [james grayso] II<james@graysoftinc.com
| | 372999 [joelvanderwe] How do you fix this?
| | 373000 [james grayso] self[:x] = new_x
| | 373033 [shortcutter ] ... as is wasting a class because one wants to spare the typing IMHO. :-)
| | 373084 [joelvanderwe] My suggestion is not just for reducing typing: the super construct gives
| | 373107 [shortcutter ] That's true. It's just that it feels itchy to me to use a class this way.
| + 373004 [james grayso] <james@graysoftinc.com
+ 373082 [danrbr gmail] Scala solved this problem (which can viewed as a lack of the "uniform
^ Using Java Casses without JRuby
372891 [qwhatelse gm] I am a newbie in ruby.
372896 [joelvanderwe] ...
^ gems install failed
372900 [wroxdb gmail] Sorry I'm totally new in ruby and gems.
372901 [wroxdb gmail] Sorry I have got it installed correctly.
372903 [jeremy bopp.] In the version of Ruby you're using, the rubygems module is not loaded
372906 [wroxdb gmail] t fail.
^ URI:HTTP and read()
372902 [billbrasky66] I'm new to ruby and running 1.8.7 on Mac OSX 10.6. From the Ruby docs
^ data::dumper for ruby?
372908 [wroxdb gmail] how to dump a complicated data structure with ruby?
+ 372915 [shortcutter ] I believe Marshal and Yaml are what you want.
+ 372918 [cmdjackryan ] Alternatively to YAML, JSON (in Ruby 1.9: require "json";
373008 [b.candler po] There is also pp / prettyprint in the standard library.
373436 [vbosch gmail] Also awesome print is ... pretty awesome too :-) =
^ Why Ruby 1.9.2 double the speed on 2.53GHz vs 2.2GHz Core 2 Duo?
372909 [blueskybreez] The following program will take 3.6 seconds to run on a Macbook that has
+ 372925 [x-ruby-lang ] Some of your rubies are built with the old i386 (32 bit) instruction
+ 373007 [b.candler po] 64-bit environments are not "obviously" faster than 32-bit. In fact,
^ If you have new Macbook Air 11 or 13 inch, do you mind running this to see the speed?
372910 [blueskybreez] If you can run Ruby 1.9.2 on your Macbook Air 11 or 13 inch. I can go
^ create a shell within an app
372911 [sentinel1879] I have a client application - often i am needing to explore/inspect the
+ 372916 [shortcutter ] IIRC you can embed IRC pretty easily. The issue then might be how you
| 372917 [piyush.pr gm] check out hijack
| 372921 [sentinel1879] I did come across both hijack and live-console.
+ 372924 [sentinel1879] live_console has made it very easy for me to plug in a shell (using irb
^ access remote mysql DB
372912 [dglnz2 gmail] I have been given a job to put a local mysql to a remote server and then
372922 [jeremy bopp.] Using Net::HTTP implies that you're using HTTP. HTTP is what you use to
^ [ANN] kramdown 0.12.0 released
372914 [t_leitner gm] ## About kramdown
^ Evented programming
372919 [christoph.ja] Awaken by the node.js hype and the possibilities and performance of
372931 [tony.arcieri] I'd like to write a crash course on evented programming as part of the
372933 [christoph.ja] That would be Great. I could motivate you by a call, each day at 3am,
^ File.ctime returns no subseconds
372934 [anotheronema] When calling File.ctime(path).to_f on ruby 1.8.6 or 1.8.7 it returns a
^ Ruby 1.8.7, checkinstall and gem
372935 [byrnejb hart] OS = CentOS-5.5
372937 [ryand-ruby z] Usually this means that your shell cached the old location and can be =
372939 [byrnejb hart] Thank you very much. That was exactly the problem and the solution. I
^ Standard Base62 Encoding?
372936 [transfire gm] Is there a standard encoding for base62? I've been using 0..9a..zA..Z,
+ 372940 [w_a_x_man ya] Where is base 62 used?
+ 372945 [shortcutter ] irb(main):003:0> "0x%02X" % 255
+ 372946 [steve stevek] Even easier, for base64, no requires needed.
+ 372980 [transfire gm] I'm not using it as such. My question is for my Radix project which
^ images to pdf
372947 [percent20 gm] I am wanting to write a script to convert a series of images into a pdf
+ 372952 [djonavarro g] While I've never done this type of project below is a link to help get you
+ 372955 [boesemar gmx] ImageMagick's (http://www.imagemagick.org/) command line tool simply
^ Implicitly convert Symbols to Strings?
372949 [jrmair gmail] Is there a good reason why Symbols are not implictly converted to
372957 [shortcutter ] But you can do eval(x.to_s) for any type of x - including Symbols.
^ Strange whitespace parsing behavior on Ruby 1.8.7 (patchlevel 249/302)
372953 [ehsanul_g3 h] An issue pops up when I use a method's integer return value in a function a=
372956 [shortcutter ] argument while performing arithmetic on that value. Then missing whitespac=
+ 372969 [colinb2r goo] That seems to be a correct diagnosis. See below for the OP's irb session
| 372974 [shortcutter ] ger, expecting ")"
+ 372978 [ehsanul_g3 h] on argument while performing arithmetic on that value. Then missing whitesp=
372993 [shortcutter ] (irb):72 from :0irb(main):074:0> ok(4,x.size + 3)=> nil
373006 [ehsanul_g3 h] tion argument while performing arithmetic on that value. Then missing white=
373025 [justincollin] Robert was right.
373026 [ehsanul_g3 h] l 249/302)
+ 373027 [justincollin] evel 249/302)
+ 373031 [cmdjackryan ] One whitespace or an infinite number is rather irrelevant. A small
+ 373054 [colinb2r goo] Subject to correction by Robert - or anyone else! - to summarise I think the
373057 [shortcutter ] ert
^ Vimeo API Error, `gem_original_require
372954 [avijit.shand] When I follow this.
^ get method name when aliasing
372961 [sentinel1879] def write
+ 372962 [ryand-ruby z] a == b ? true : false
| 372966 [sentinel1879] My apologies. i typed that in a hurry just to give an idea.
| 373001 [ryand-ruby z] rather
+ 372963 [ryand-ruby z] Why not? What's wrong with that? And if you're just at "might", why are =
+ 372968 [ammarabuali ] If I understood your purpose correctly, then this recent thread sheds
^ Re: Extracting some text from HTML
372965 [djonavarro g] Basically I would like to go through a whole bunch of links and text on
^ Extra RubyConf Ticket
372972 [jamie dang.c] I'm not able to attend RubyConf, but have a ticket. If you'd like to buy
^ dynamical change of proxy
372973 [rajnus hotma] I would like to open IE with predefine proxy settings.
372989 [rogerdpack2 ] You may get some traction by changing registry settings between runs.
^ Local server-client communication
372977 [jvalencia cl] line tool to communicate with it.
372979 [joelvanderwe] Unix sockets are fine for this purpose. You can write your own protocol
372990 [rogerdpack2 ] Drb might work for you, as well.
372998 [joelvanderwe] Just so the OP knows, drb and druby are the same thing. (I'm sure you
^ Printing out contents of 2 arrays using a loop
372982 [prpaulroche ] print array1[0] array2[0]
+ 372984 [jgabrielygal] irb(main):001:0> a1 =3D ["joe blogs", "peter smith"]
+ 372985 [rick.denatal] names =3D %w(joe sam john fred)
| 372994 [shortcutter ] irb(main):005:0> names.zip(occupations){|name, occupation| puts "#{name}
+ 372987 [prpaulroche ] Great. Thanks a million
^ Generating rdocs
372983 [grantcurell ] How does one go about generating rdocs? Whenever I press generate rdocs
372988 [rogerdpack2 ] ...
^ [ANN] bike 0.2.3
372992 [akira funai.] Bike is a web application framework that can make feature-rich apps by =
^ Fort Worth, TX Ruby Job
373002 [fregas gmail] Looking for a senior Ruby on Rails developer for a full time, on site
^ Inversion of Control in Ruby by passing classes - does it make any sense?
373003 [manuel kiess] I'm quite new to Ruby, with a strong background in PHP.
+ 373005 [cremes.devli] it "should create instance of OtherClass" do
+ 373009 [jeremy bopp.] What I'm about to suggest will generate warnings from Ruby and is
| 373035 [shortcutter ] tic language. However, right now I'm a bit stuck regarding the issue of loo=
| 373047 [jeremy bopp.] I agree, but I was approaching this from a minimal unit test standpoint
| 373048 [shortcutter ] I cannot really tell. Maybe, if you need different loggers in
| 373052 [jeremy bopp.] I'll keep that in mind. Thanks for the tips. ;-)
+ 373010 [joelvanderwe] class SomeClass
^ Speech Recognition
373011 [webmaster in] Where would I start if I wanted to create some small programs/scripts
+ 373012 [eric sempere] Take a look at http://cmusphinx.sourceforge.net
| 373014 [eric sempere] Q29ycmVjdGVkIGphdmFkb2MgdXJsIGZvciBzcGhpbng0IDoNCg0KaHR0cDovL2NtdXNwaGlueC5z
+ 373015 [cmdjackryan ] By buying Dragon Naturally Speaking and scripting that (via COM, if
+ 373064 [webmaster in] Let me be clear: I /don't/ want to create my own voice recognition
| 373068 [webmaster in] Oh, and I'm running Gentoo Linux, so a Linux-only solution is fine.
+ 373089 [x-ruby-lang ] The most seamless solution would be Sphinx4 with JRuby. But I would
374015 [headius head] Performs better at command line instead of direct invocation from
^ Regular Expression
373013 [dv.mymail gm] I am trying to write a reqular expression to match a word with my input
373016 [richard.conr] You are going to need some more advanced regexes to get a match in the way
+ 373017 [ammarabuali ] Take a look at looakahead and lookbehind assertions. They used to
+ 373018 [zettabyte gm] The above works so long as each of ABC or D must come in said order,
+ 373019 [dv.mymail gm] Yes, you are correct, this expression doesnt match words like CA or BAD
| + 373020 [zettabyte gm] In theory, any language/grammar/syntax construct of finite length can
| + 373021 [wishdev gmai] Afternoon,
| 373034 [shortcutter ] e a
| 373036 [jgabrielygal] 1) > 1
| 373040 [shortcutter ] =3D 1) > 1
| 373065 [w_a_x_man ya] =3D 1) > 1
| + 373106 [shortcutter ] =3D 1) < 0
| + 373151 [w_a_x_man ya] def check input
+ 373127 [mike cargal.] regex =3D /^(A(?!A)|B(?!B)|C(?!C)|D{1,2}(?!D))+$/
373148 [zettabyte gm] ["ABA", "DADD", "CAC"].each do |string|
373150 [zettabyte gm] regex =3D /^(A(?=3D[^A]+$)|B(?=3D[^B]+$)|C(?=3D[^C]+$)|D{1,2}(?!D))+$/
373161 [mike cargal.] do |string|
373162 [zettabyte gm] o |string|
373164 [mike cargal.] grrr......
373165 [mike cargal.] double grrrrr..... (I messed up the parentheses on the last last one)
373167 [zettabyte gm] Mike, I think you deserve a prize.
373180 [shortcutter ] The regexp is really cute! I'd just suggest to replace ^$ by \A\z
threads.html
top