362753-366914

362552-363293 subjects 362996-364019

^ Ruby Midwest Early Bird Ends Tomorrow
362753 [lpillow gmai] The Ruby Midwest Conference Early Bird pricing ends tomorrow, Saturday, May

^ ANN: guirb 0.01, a multi-toolkit Irb wrapper collection
362755 [martindemell] * What?

^ WX Ruby - How to Create a MenuBar
362769 [iroupa gmail] I have created a basic frame and I'm trying to create a MenuBar inside

^ [ANN] Redis-rb 2.0.0
362772 [michel sover] Redis-rb 2.0.0 is out. It's the result of a big refactoring and it now

^ difference between $0 and __FILE__
362778 [unbewusst.se] /Users/yt/bin/path_test.rb
+ 362779 [josh.cheek g] 2010/5/15 Une B=E9vue <unbewusst.sein@google.com.invalid>
+ 362780 [shortcutter ] Because the shell will also expand full names.  How does your PATH look=20
  362781 [unbewusst.se] OK, i see.

^ Hash method in ruby
362782 [sameeryadav.] I have been working in java and ruby is new to me. While trying some
+ 362783 [josh.cheek g] I think your confusion lies more in the object model than the hash method.
+ 362784 [sepp2k googl] public class A {
  362790 [sameeryadav.] I understand the case where I call has method on new Object.
  362793 [jeanjulien.f] The class of A is "Class" (which is itself an object different from
  362794 [sameeryadav.] Thanks Jean,
  + 362798 [sepp2k googl] A is an object of class Class. Thusly A.class returns Class.
  + 362812 [jgabrielygal] No. This calls the hash object on *an instance* of A.

^ Converting hexadecimal string to character
362786 [mjijackson g] If I have a string that represents some character in hex, what is the
+ 362788 [rikiji playk] This should work
+ 362789 [gf.bozzetti ] c="41"
  362797 [mjijackson g] Excellent. Both of these suggestions work beautifully. Clearly I need
  362806 [b.candler po] irb(main):001:0> ["41"].pack("H*")

^ class best way for getters ?
362787 [unbewusst.se] i have a class "HFSFile" initialized by a parsed string
+ 362791 [ben bleythin] def []( a_key )
| 362792 [lparravi gma] def [](key)
+ 362799 [robert.dober] depends (I know this is too long, but anyway)
+ 362811 [shortcutter ] irb(main):017:0> o =3D Object.new
| 362824 [unbewusst.se] First, thanks a lot for your answer !
| 362825 [unbewusst.se] i had a first look and i wonder how to use it in order to get a new
| + 362826 [robert.dober] no, but you could forward to the OpenStruct.new( @attr )
| + 362827 [shortcutter ] There is no need for delegation here: you only need one instance and the =
|   362829 [unbewusst.se] OK, i see it's really fine of u helping that way !
+ 363100 [jw mustmodif] class HFSFile < Valuable
  363101 [unbewusst.se] fine, thanks a lot, it was what i was looking for !

^ Wx Ruby - MenuBar. What's wrong with my code?
362795 [iroupa gmail] I have created a basic frame and I'm trying to create a MenuBar inside
362796 [thiagobranda] have to write you code in another way to achieve what you want.
362800 [iroupa gmail] If the Wx::MenuBar doesn't accept arguments then I will have to create a
362803 [sutniuq gmx.] I'm not sure about what you mean by that, but have a look at this
362846 [iroupa gmail] Marvin Gülker,

^ Is Bundler Overkill?
362804 [transfire gm] This morning I thought about Bundler for a long time. I ended up
+ 362807 [jeremy bitsw] 'Primary of these [...] The rationalized benefit being that you need
| 362870 [transfire gm] Is that a common need? I doubt I'd use a host that make it necessary
| 362885 [ninja slapha] Yes.
+ 362817 [matthew byte] You're not the only one, but I think we're in the minority.  gems have
  362871 [transfire gm] Sounds interesting. I'd like to know more. How does it compare to
  362875 [james grayso] I believe it was called RPA.

^ chomp like Perl operator in Ruby
362813 [paragkalra g] Is there a chomp like Perl operator in Ruby using which I can literally
+ 362814 [ben bleythin] $ ri chomp
| + 362816 [paragkalra g] str="Hello\n"
| + 362819 [ninja slapha] Not the whole story. If you know you're not going to use the original string,
+ 362815 [josh.cheek g] The online docs (plus a few examples) for the method Ben showed the ri of

^ Accessing elements of a ruby array with javascript
362818 [brandonfrate] So I'm very new to both ruby and javascript, but the basic problem is. I
+ 362822 [walton vyper] First off, since you didn't specify anything I'll assume your using Rails.
+ 362823 [ninja slapha] Since someone else already offered a solution, I'm going to be a bit critical.
+ 362830 [kai kairicha] You cant access the ruby array from javascript because it gets

^ how to read pointer data with Win32::API
362820 [jarmo.p gmai] GMEM_FIXED = 0
362866 [rogerpack200] Suggest FFI since it has things like get_pointer (though I'm not too

^ [ANN] sqlite3-ruby 1.3.0.beta.2 Released
362821 [luislavena g] sqlite3-ruby version 1.3.0.beta.2 has been released!

^ user defined if condition
362833 [mark42 live.] so sorry if this is a stupid question
+ 362834 [mark42 live.] sorry this is what i ment
+ 362835 [josh.cheek g] Having a little bit of difficulty following, I assume you meant "if the user
  362836 [mark42 live.] yhea i did sorry bin at this for hours thanks mate

^ Array conversion
362837 [cyril.staff ] array = [1717922406, 543519338, 543585641, 1701343776, 1718969704,
362838 [sepp2k googl] Group the array into slices of 4 and then "concatenate" each slice
362840 [cyril.staff ] Awesome! Many thanks, Sebastian!
362841 [cyril.staff ] Just a last question: how can we do the oposite operation?
362845 [eregontp gma] array_32bit = [1717922406, 543519338, 543585641, 1701343776,

^ iterating over sub arrays
362839 [oscartheduck] Hey folks,
362842 [ninja slapha] Minor nit: by convention, Ruby people tend to use CamelCase for constants
362848 [oscartheduck] constants=20
362889 [ninja slapha] The second is _defaulted_ to be an empty array. You can override it -- and the

^ Buscar todos los .pdf que hayan en un directorio dado
362843 [munichxxi ho] who are in a given directory. I explain: I'm doing a project in Ruby on
362844 [ben bleythin] If you just need to search in the given directory, there are a number

^ [ANN] antlr3 1.7.2 ( improved ANTLR v3 language recognition for Ruby )
362847 [kcy5b yahoo.] There have been a hand full of releases since I have posted an announcement

^ Re: Problem with SOAP and Commision Junction web services
362849 [mikyd412 gma] I have to use the commission junction as a affiliator for my upcoming

^ Real life use of each_cons? (... follow up)
362851 [jakub.hozak ] (following up the discussion from last year)
362853 [dblack rubyp] Are you sure you don't want each_slice rather than each_cons? With

^ S3 2010 Workshop on Self-sustaining Systems (Call for Papers)
362852 [ko1 atdot.ne] This is a CFP for Workshop on Self-sustaining Systems (S3) 2010.  This
366914 [ko1 atdot.ne] Submission of papers: *EXTENDED* August 13, 2010

^ Pick the value from the table.
362854 [sweetzubair ] Help me to pick value from the tables.i m confused because of the button
362855 [b.candler po] What are you using to parse the web page: Nokogiri? Mechanize? Hpricot?
362857 [sweetzubair ] I dont know because i m new in ruby.
362859 [rick.denatal] For those of us who know Ruby, it's very difficult to decipher what

^ Anonymous class
362860 [wladjmir gal] in a little macruby-cocoa app when i try to save a simple hash

^ Trying to install ruby-gtk2 on ubuntu 9.10
362869 [michel.reves] I didn't find the gtk2 library on the ubuntu repositories and searching with
+ 362878 [axabert hotm] Have you already tried the package ruby-gnome2 ?
+ 362879 [oscartheduck] searching with=20
  362880 [axabert hotm] Not quite. It will only list the packages containing the string
  362910 [michel.reves] Thanks for your help.

^ Strange error in ruby 1.9.1
362872 [branden.tang] I just compiled ruby 1.9.1 from source on my computer (osx snow
+ 362874 [rogerpack200] bug maybe? try trunk and see if it does the same...
+ 362876 [alexg rugged] You don't check that index < recipient_array.size so if enough last names
  362881 [branden.tang] Aaaah, that makes perfect sense. Thanks for the help.

^ Bundler Groups
362873 [transfire gm] I'd like to ask a more specific question about Bundler, pertaining to
362877 [vinibaggio g] I don't know, I have the same feeling. Also, even if you're in a production
362943 [transfire gm] On May 17, 12:12=A0pm, Vin=EDcius Baggio Fuentes <vinibag...@gmail.com>
362948 [fxn hashref.] That's talking about Rails itself. If you are contributing to the
362957 [transfire gm] I see. So ActiveRecord's tests are designed to test against these
362962 [fxn hashref.] The rest of adapters have their own projects. Rails core is not tested

^ Scraping html behind a log-in
362882 [phil.a.mcdon] I've used libraries, such as hpricot, to scrape html from public sites.
362883 [jgabrielygal] You can try Mechanize. I've used it to login into a Wiki and edit pages.

^ opening my files with a ruby program
362884 [mark42 live.] i was just wondering if i wanted my program to open a file on my pc what
+ 362888 [sutniuq gmx.] You've to find out what the Media Player's executable is named and if it
+ 362892 [gymbrall gma] Besides the ones Marvin mentioned, you also have a couple of other options.
  362893 [gymbrall gma] And actually, I don't think you need the "cmd /c"

^ Opening a stream to multiple (possibly zipped) files
362890 [mail maasha.] I am interested in opening a single data stream to multiple (possibly
362895 [lparravi gma] Maybe you could reimplement the Perl code trying to decompress always
362904 [mail maasha.] That is a good idea (I don't think you can rescue exceptions in Perl).
362924 [fred lacave.] require "zlib"

^ Dynamically adding methods to a class
362896 [cannedlobsta] I'm trying to add a method dynamically to a class by opening an existing
+ 362897 [josh.cheek g] It is not being defined for the Array class, but rather for instances of the
+ 362905 [eule space.c] class Array
+ 362930 [cannedlobsta] Thanks very much guys!
  + 362933 [rick.denatal] Really?  I ran your Test.rb program in its entirety and got the
  | 362944 [cannedlobsta] Yup, I run the code in its' entirety too.
  | 362947 [rick.denatal] I'm guessing you are using Ruby 1.9, which would explain it.
  | 362952 [cannedlobsta] That worked perfectly!
  + 362935 [robert.dober] Well it is not missing anymore as you define it when it is missing, it

^ How to read data in text file and put into the web page
362907 [sweetzubair ] I want to read the Radio button value or drop down value from the text

^ can ruby-spreadsheet  read\write  open office ods files?
362908 [myocean135 y] there are two files :/home/pt/test/codetable.xls
+ 362913 [soman.abhiji] According to homepage of spreadsheet gem (http://spreadsheet.rubyforge.org/)
+ 362949 [ninja slapha] This gem allows you to access the content of

^ require': No such file to load -- rubygems
362912 [gerharte gma] Hey,
362915 [mark42 live.] all i can say mate is to load gems i use this sytax note tho im on
362916 [mark42 live.] also you must dclare your gem in command prompt first
362942 [gerharte gma] Hey, thanks. I did see somewhere about needing to require rubygems

^ Read text file and set the radio button values.
362917 [sweetzubair ] i write this code for getting radio button value from text file but the

^ Regexp help
362918 [andrea.carmi] I need to extract from an enormous text file, in natural language, for
362923 [lparravi gma] o.it -
362928 [andrea.carmi] Thank you, but 'couse I'm quiet stupid, can you write me a pseudo-coded
+ 362958 [a5hpip3 gmai] Posted via http://www.ruby-forum.com/.
+ 363025 [shortcutter ] It's a bit difficult to guess which parts of your line are stable and

^ how to add time to date
362919 [lakshmi27.u ] Am using javascript calender to select date.am saving same date into
362927 [wolskint o2.] irb(main):011:0> s="2010-18-05 00-00-00"

^ [Rake v 0.8.7] rake gem : rake aborted! No Rakefile found
362920 [johncsl82 ya] $ rake gems:refresh_specs --trace
+ 362963 [josh.cheek g] Rake works by looking in your dir for a file called rakefile, Rakefile,
+ 362964 [josh.cheek g] Also, if you genuinely don't have a rakefile (ie it got deleted), you can

^ Re: gui with ruby
362921 [alex.decaria] I've written programs in both Tk and FXRuby, and dabbled with wxruby.  I
362925 [robert.dober] I am surprised to read, this Tk is built into Rub1.9 and works
+ 362926 [wolskint o2.] If you need relatively simple gui I would recommend Shoes (
+ 362932 [alex.decaria] I'm on the Windows side (XP and Windows 7).  When I installed Ruby 1.9
  362937 [robert.dober] That's what I feared, thx for sharing.

^ (Net::SSH::HostKeyMismatch
362922 [kamal2222ahm] false, :forward_agent => true ) do|ssh, err |
+ 362941 [walton vyper] This is the important error.  You forgot to require 'net/ssh'. (and
+ 362975 [b.candler po] Yes - see Net::SSH::Verifiers::Null, which should be selected by
  362978 [kamal2222ahm] false ) do|ssh |
  362981 [hassan.schro] You seem to have misspelled "DOS vector" :-)

^ YAML validation
362929 [nitsuanivek ] I am sorting through a heap of yaml files looking for the following
362931 [transfire gm] Don't think there is any way to do this. I suppose it might be nice if
362939 [nitsuanivek ] That's what I thought was the case.
362945 [transfire gm] probably 'next' would do if your looping over files. Also there is
362954 [nitsuanivek ] Working (kind of)
+ 362956 [jos catnook.] feeds.compact!
+ 362959 [transfire gm] If you show us the code in question we may be able to help more.
  362970 [nitsuanivek ] Actually the rest of the problem appears to be 1.8.6 on my development

^ class arrays
362934 [mulder.patri] how does this work?
+ 362936 [mrzombie the] Erh, not that way. Sorry.
| + 362938 [mulder.patri] Hm... ok, this is more or less what I expected as well, when reading
| | 362940 [jonathan jmn] field_helpers is neither a class nor an instance variable... it is a
| + 362946 [mulder.patri] Hm... ok, this is more or less what I expected as well, when reading
|   363106 [paul pqmf.co] I'm not familiar with the old actionview methods, but it strikes me
+ 362950 [ninja slapha] Nope. It's a local variable. That means it disappears as soon as the

^ Deaf grandma - almost there
362953 [hellostephen] **
362955 [jonathan jmn] It doesn't work because of scope.  When you set 'byes =3D 0' in def
362960 [hellostephen] Thanks Jonathan, that fixed it! I guess I got ahead of myself by using a

^ opening urls
362965 [mark42 live.] on my pc IO.popen(wmp){file location}
362966 [ninja slapha] require 'open-uri'
+ 362967 [mark42 live.] sorry i use IO.popen(file location here) to open files works fine i
+ 362968 [mark42 live.] yes this is what i want please help me
  362971 [alex.decaria] There is a pretty good blog devoted to automating Windows using Ruby.
  362974 [mark42 live.] thanx ill try this
  362976 [alex.decaria] As an example, here is a program that will open internet explorer,

^ directing browser
362972 [mark42 live.] all i want to do is use my program to open a web page in my browser i am
+ 362977 [ninja slapha] Reposting your question as a new thread is obnoxious, especially when someone
+ 363879 [jeremy hineg] ========================================================================

^ [ANN] bones 3.4.2
362973 [tim.pease gm] bones version 3.4.2

^ curl library?
362979 [xeno.campano] 1.  How do I install the curl library for Ruby?  I thought there was one...???
362980 [xeno.campano] # gem install curl-multi
362982 [lparravi gma] Anyway, you need the ruby development packages. In ubuntu / debian its
362984 [xeno.campano] Well, I got that -dev thing installed with apt-get, and then I tried again and
362985 [oscartheduck] charset=us-ascii
362988 [xeno.campano] Thank you.  That appears to have gotten me going...
362989 [xeno.campano] So, I installed rubycurl, that being the listed package of greatest maturity,
363083 [shortcutter ] 2010/5/19 Xeno Campanoli / Eskimo North and Gmail <xeno.campanoli@gmail.com=
363092 [xeno.campano] Yes, but I am trying to move from using curl on shell to getting the same
363094 [shortcutter ] 2010/5/20 Xeno Campanoli / Eskimo North and Gmail <xeno.campanoli@gmail.com=
363103 [xeno.campano] Among other things we have built the tool around curl facilities like the
363107 [drbrain segm] On May 20, 2010, at 10:45, Xeno Campanoli / Eskimo North and Gmail =
363110 [xeno.campano] I'm sorry.  That is not pertinent to what I said.  Perhaps you should learn curl.
363265 [drbrain segm] On May 20, 2010, at 20:23, Xeno Campanoli / Eskimo North and Gmail =

^ About proc and binding
362983 [blambeau gma] I'm currently working on a _dsl_ method that allows writing expressions

^ Handling Events - Help
362990 [iroupa gmail] I have crated a application with two TextCtrl boxes (One for write and
+ 363044 [mark42 live.] Could you post a sytax for this and i will see if i can help.
+ 363045 [mark42 live.] Could you post a sytax for this and I will see if I can help.
  363061 [iroupa gmail] Mark Kirby,

^ how to change ri1.8  to ri  in shell command?
362991 [myocean135 y] ruby1.8 and ri1.8 were installed in my computer ,there is strange thing
362992 [jonathan jmn] Well, if you install the 'ri' package in Ubuntu it installs a symbolic

^ 64 bit ruby interpreter
362993 [brgsousa gma] Since when does 64bit ruby interpreter exists?
363005 [  sim me.com] It was 64 bit since you have the possibility to build it from source :)
363022 [brgsousa gma] Ops :P
363026 [hramrach cen] I can say I noticed improvement in the amount of available memory.
363028 [hramrach cen] Also you will notice that 64bit systems can do integer arithmetics on
+ 363034 [brgsousa gma] Thanks!
+ 363036 [vikkous gmai] Integer math on even larger integers should be roughly twice as fast too.
threads.html
top