258922-262757
258635-260878 subjects 259137-269477
^ Returning part of a hash
258922 [barjunk attg] I have hash that has about 20 keys. I'd like to create a new variable
+ 258927 [barjunk attg] ["key1","key2","key3","key2"].each {|item| hash.delete_if { |
| 258931 [florgro gmai] There's also Hash#reject which is the same as h.dup.delete_if.
+ 258928 [cmshea gmail] class Hash
+ 258930 [ezmobius gma] Hey Mike-
| + 258942 [cdemyanovich] Ezra,
| | + 258945 [cdemyanovich] there's no conflict. The methods worked as advertised in my irb session just
| | + 258946 [ezmobius gma] There is not a conflict as it does do what's advertised, but it's
| + 258943 [apeiros gmx.] I wonder, are you aware that those are O(n^2)?
| 258964 [ruby anthrop] Actually, they are O(n*m) since the size of the arguments array is (almost
| 258980 [apeiros gmx.] IIRC we generally refered to O(m*n) as O(n^2) too, but can be that I
| 258991 [ezmobius gma] Yeah I was aware of the complexity. But for what I use it for it's
+ 258997 [nobu ruby-la] Hash#slice doesn't exist but Hash#select in recent 1.9 works
| 259004 [botp delmont] # Hash#slice doesn't exist but Hash#select in recent 1.9 works
+ 259019 [shortcutter ] irb(main):001:0> h={}
| 259129 [barjunk attg] On Jul 11, 11:57 pm, "Robert Klemme" <shortcut...@googlemail.com>
| 259134 [shortcutter ] Not sure what you mean by this. The effort for the solutions I proposed
+ 259140 [transfire gm] class Hash
259149 [apeiros gmx.] Hash[*something.flatten] will destroy any nested arrays (and if you're
259217 [transfire gm] Ah, nice catch thanks. I fixed it. But in the process, well, I just
^ XSD and XML
258923 [dominik.auma] Is there a way to deal with XML-files in Ruby? And further: is there a
258960 [adam.peters1] On Jul 11, 4:33 pm, "dominik.aum...@gmail.com"
258966 [brabuhr gmai] Also, I have used JRuby to use Java XML processing libraries.
259030 [dominik.auma] I finally found (after I googled "libxml-ruby xsd") a "Recipe" how to
^ Help with system() call and pipe
258939 [alex.doan wa] I'm using system call and pipping the output to a log. Something funny
258970 [rwl sas.upen] Isn't this because you need to escape the space, too? so that
259051 [skoot ideico] Isn't it better to use the system() with multiple parameters in this
259118 [alex.doan wa] Gentleman,
^ [SUMMARY] Hangman (#130)
258944 [james graypr] can be challenging to see where how your code is doing and to refine that.
258947 [james graypr] Sorry folks. This was an early, unedited release I made by
^ Rubys License
258957 [cypher.dp gm] I was just looking up something on the OSI website when I saw that the
+ 258961 [gregory.t.br] The only reason it's not listed on the OSI site is (AFAIK) no one has
| + 258974 [tpo2 sourcep] It meets the DFSG too, which are pretty strict, otherwise it wouldn't be
| + 258975 [perrin apoth] There are costs associated with OSI approval. It is, thus, probably in
+ 258972 [ jupp gmx.de] Ruby does not specify the GPL version therefore applies
258976 [ jupp gmx.de] Hmm, seems to depend on the Ruby version.
258983 [gregory.t.br] Right, I brought this up maybe a year ago and Matz decided to lock it
^ Abstract methods in ruby ?
258962 [cypher.dp gm] How do you implement something like the "abstract" keyword in Java ?
+ 258965 [james graypr] class Parent
| + 258984 [cypher.dp gm] Thanks a lot for the warm welcome, James :)
| + 259052 [robert.dober] Hmm, I would say no, you will be caught by #method_missing one day.
| | 259059 [james graypr] If someone adds a method_missing() implementation to a child class
| | + 259063 [george nutru] Not sure if this has been mentioned already, but you might also be
| | + 259070 [robert.dober] That does not work as you have intended, it is complaining about #one
| | 259082 [james graypr] You are right. My mistake.
| + 259054 [ymendel pobo] On Jul 11, 5:44 pm, James Edward Gray II <j...@grayproductions.net>
+ 261122 [thomas hafne] # interface
^ win32ole
258977 [aart_85 hotm] Desktop, clicking de Start button, like a macro.
+ 258998 [promos burch] I'm fairly new to to win32ole myself, but I see it as more of a "ole"
+ 259003 [list.push gm] You can move and click the mouse with AutoIt.
259067 [greg.kujawa ] Here's a link to the AutoIt website (http://www.autoitscript.com/
^ Cultural Factors in Software Names (was Re: God versus god )
258978 [james graypr] If a farmer starts complaining that the Hoe library implies we are
+ 258987 [mental rydia] While I don't personally know as many farmers as some people, I have
| 258989 [james graypr] I agree and do believe we should be having those discussions. That's
+ 259024 [robert.dober] James what about a Ruby Quiz?
^ Re: Digest Articles 258776-258986 (11/21) (ruby-talk ML)
258995 [bianster gma] On 7/12/07, ruby-talk-admin@ruby-lang.org <ruby-talk-admin@ruby-lang.org>
^ Re: Digest Articles 258776-258986 (10/21) (ruby-talk ML)
258996 [bianster gma] I'm referring to distributed/asynchronous messaging, got a reply from
^ [ANN] hype.rb
259005 [ara.t.howard] NAME
+ 259007 [aaron tender] [aaron@aaron-pattersons-powerbook58 aaron]$ sudo gem install hype
| 259008 [ara.t.howard] oh it's there.
| + 259010 [aaron tender] Must not have made it to all the mirrors yet. ;-)
| | 259011 [ara.t.howard] bingo. you can grab it off rubyforge, however.
| + 259083 [tim.pease gm] Nice revision number, Ara ;-)
+ 259016 [m.fellinger ] I really like it, thank you! (never experienced the hype before)
^ [ANN] open4-0.9.4
259009 [ara.t.howard] URIS
^ Re: What is the difference between ruby.exe and miniruby.exe
259013 [ycelik oytek] Nobody knows the answer?
259018 [botp delmont] ...
^ Having problem with jpg image delegate
259017 [y33zhang gma] I've been trying to get Rmagick working with Imagemagick for the last
^ UNSUBSCRIBE
259021 [junkmail iss] unsubscribe
^ Stripping columns / puts'ing columns
259025 [marc.hoeppne] still on my quest to learn ruby ;) And yet another question - more a
+ 259028 [list.push gm] Does this do what you want?
| 259032 [list.push gm] The rows need to have the same number of elements.
+ 259029 [stefano.croc] max_length = rows.map{|r| r.length}.max
| 259031 [marc.hoeppne] length, so that wont be an issue.
+ 259033 [shortcutter ] I'm missing one crucial bit of information: can your files grow so
259038 [marc.hoeppne] I am using single protein alignments, so that any single row should
^ exit from def?
259026 [mihai.bulhac] def bla
259027 [dan fluentra] for j in 1..5
^ recue-raise vs catch-throw
259034 [vineetraja g] Dear All
+ 259036 [florian.assm] imho, with rescue you catch exceptions and with catch and throw
+ 259039 [lists bertra] I never felt no need to use catch-throw anywhere.
| 259041 [vineetraja g] Thanks
| + 259044 [shortcutter ] raise / rescue is for error handling. catch / throw is for control
| + 259047 [skoot ideico] Some deep recursive search comes to mind..
| 259053 [vineetraja g] and that smells of a goto usecase !
| 259056 [shortcutter ] Oh no! He used the g-word!! Decontaminate the mailing list!
+ 259046 [skoot ideico] With raise you operate on descendants of Exception class.
^ Croquet
259035 [jrr_nl hotma] Is there any equivalent project in the Ruby-community to the Croquet
+ 259091 [sonoflilit g] There isn't an equivalent project to croquet in ANY community, as far as I know.
+ 259157 [perrin apoth] Frankly, I'm not sure Ruby is suited to that sort of project right now at
259160 [jameskilton ] I'd say Ruby is perfectly capable of such a project. It will definitely be
^ Re: unsubscribe
259037 [jmbennett gm] doh - apologies group - thought that would unsubscribe me.
^ Tempfile : delete problem
259049 [ronald.fisch] (Ruby 1.8.6 under Windows)
259057 [shortcutter ] ruby -r tempfile -e 'Tempfile.open("foo", ".") {|io| io.puts 123}'
259062 [ronald.fisch] Hmmm... I don't see how this solves my file rename problem. Don't forget
+ 259066 [shortcutter ] Ah, my bad: I overread that one. File renaming is a bad idea with tempfiles.
+ 259928 [florian.assm] Tempfile#path, it's standard for File...
+ 259931 [shortcutter ] Thanks for catching that! I looked for something like this but
+ 259958 [ronald.fisch] Thank you, this makes things clear now.
^ strange answer by YAML
259050 [michel demaz] x,xx = *nil
259064 [lparravi gma] irb -r yaml
259130 [michel demaz] Thanks, MD
^ Ruby and PHP code in html-page
259055 [veejar.net g] test.html
+ 259073 [jan.svitok g] It is possible if you run the code first through ERB and then through
| 259126 [dangerwillro] I've been thinking about this as well lately.
| + 259135 [james.britt ] Look at Ramaze or Nitro. Or IOWA or Cerise. Or Merb. Or Camping.
| + 259143 [onepoint sta] <%= IO.read "yes_it_does.txt" %>
| | 259144 [phrogz mac.c] <%=$foo%>
| | 259166 [onepoint sta] Good point!
| | 259171 [dangerwillro] That's OK I guess, but it's not as graceful as usual Ruby things.
| | + 259175 [logancapaldo] def erb_include(path, b = nil)
| | | 259176 [dangerwillro] Doesn't seem to work with DreamHost's eruby.cgi or with their
| | + 259178 [onepoint sta] I agree, though you can pretty it up somewhat (as is pointed out
| | 259181 [dangerwillro] charset=US-ASCII;
| + 259170 [warlickt ope] <html><body>
| 259173 [dangerwillro] Let me toy with it a bit and see how much I love/hate it.
+ 259642 [wayneeseguin] charset=US-ASCII;
262471 [veejar.net g] I want to include in html-file some php-code one of counter-systems
262496 [dangerwillro] It might be possible to use ERb (Ruby) to insert the PHP.
+ 262571 [jzakiya mail] On Jul 30, 12:22 pm, John Joyce <dangerwillrobinsondan...@gmail.com>
| 262588 [veejar.net g] With Erubis I can "convert" Ruby-code to PHP. I need to insert PHP-code
| 262704 [jzakiya mail] Did you look at the Erubis documentation?
| 262757 [dangerwillro] There are several forms of "eruby"
+ 262627 [veejar.net g] How can I use ERB for processig PHP-code? ERB parse only Ruby-code. Or
^ matrix problem
259058 [mihai.bulhac] i have a matrix :remember=Matrix[ [] ]
+ 259068 [apeiros gmx.] Matrix is immutable, so there is no method []= to assign values.
+ 259071 [caduceass gm] Hmm. It appears Matrix objects are supposed to be immutable. Use
^ XML file processing using REXML (beginner's question)
259065 [ronald.fisch] I try to understand REXML using the tutorial in
+ 259103 [caduceass gm] Your root variable represents your ns:toplevel so, either of these
+ 259113 [keith audiob] You seem comfortable with XPath, so let me strongly encourage the
259264 [ronald.fisch] Thanks a lot for the suggestion!
^ getting gdb backtrace from ruby exception
259069 [aff28 delete] I'm working on a C extension and somewhere in itsomething is raising a
+ 259074 [jan.svitok g] There was a way how to run ruby under gdb with the ability to debug at
| 259156 [alex deletem] Thanks for the pointer - that's really interesting stuff. I got round it
+ 259075 [detlef.reich] i don't know how to build stack traces, but you can start ruby in gdb.
+ 259161 [ara.t.howard] BEGIN{ at_exit{ Process.kill 'SIGSEGV', Process.pid if $! } }
259169 [vjoel path.b] Doesn't that only give you the C stack at the time the ruby process
259179 [ara.t.howard] yeah - it's a short leap though...
^ Unit test lines of code
259076 [benjohn fysh] I'd like to know people's opinions.
+ 259079 [jameskilton ] My accepted ratio is 2 lines of test code to 1 line of actual code. If you
+ 259081 [robert.dober] I do not have a lot of experience let me just count
^ Using TABs vs. spaces II. (the Philosophy flamewar reloaded ;-))
259077 [ mig 1984.cz] I read somewhere that good-style Ruby code is indented by 2 spaces. I'd like
+ 259084 [warrenb aqui] Jan,
| 259534 [djberg96 gma] As anyone who's ever read the Ruby source code can attest. :/
+ 259086 [gregory.t.br] Not coding style, indentation style. It's not enforced, but youpretty much should follow it if you have any interest in sharing codewith others.
+ 259090 [sonoflilit g] Since you can't see the difference, reinforcing use of only tabs when
+ 259162 [perrin apoth] That's the argument for using two spaces all the time rather than
| + 259165 [ruby philip.] Not sure where all 'expand' is available, but at least on FreeBSD you can
| + 259167 [gregory.t.br] I actually turn on expandtab, so that I can use the tab key still and
| 259172 [dangerwillro] Tabs/Spaces? is an age old debate as unimportant as where to put
| 259174 [gregory.t.br] Of course, it's only important if you want to work on (almost) any
+ 259389 [mkasick-rt c] I have similar vision issues. It takes me a while to parse two space
^ Yet another site_ruby question...
259085 [dan solideth] /usr/local/lib/ruby/site_ruby/1.8
+ 259098 [alin.popa gm] Did you tried by using "gem" command ?
| 259107 [dan solideth] Thanks Alin,
+ 259105 [cdcarter gma] You need to require 'rubygems' first. This probably isn't required
259108 [dan solideth] <86987bdf0707120938r7121cb59o3404386a44758cf8@mail.gmail.com>, Chris
+ 259109 [cdcarter gma] require 'rubygems'
| + 259111 [cdcarter gma] require 'rubygems'
| + 259114 [dan solideth] <86987bdf0707121014q884fa0dld5f91258a5d345e1@mail.gmail.com>, Chris
| 259117 [cdcarter gma] require 'flacinfo' (or 'flacinfo-rb') after the gem line. 'gem' just
| 259120 [dan solideth] <86987bdf0707121031p4268ce77v7b95cac792475a4b@mail.gmail.com>, Chris
| 259131 [caduceass gm] doesn't care if flacinfo.rb is under
| 259138 [dan solideth] <eaeff8c10707121111r36321e67o66a3e288dfb2e58c@mail.gmail.com>, Todd
+ 259125 [bulliver bad] As the author of flacinfo, and as one who is not overly familiar with the
259133 [dan solideth] It did actually occur to me along the way that I should ask you about
259147 [bulliver bad] Nope. It's a bug...
259148 [dan solideth] Darren, I'm glad I helped (if rather unwittingly). I'll look for the
^ Re: Using TABs vs. spaces II. (the Philosophy flamewar reloa
259088 [apeiros gmx.] I don't think there's really a solution to that problem as it is about
^ language transliteration help..
259094 [beingthexemp] What is a good place to read about language transliteration? I have a
+ 259096 [damnbigman g] Nothing I know of but it sounds like a good thing to use a hash for.
| 259185 [rlp1938 gmai] Maybe not. There is usually no 1 for 1 correspondence between words of
| + 259186 [al_batuul ya] I would like to see the code too. There are some transliteration sites such as http://www.word2word.com/translitad.html
| + 259195 [dangerwillro] Not words but phonetics. OP said transliteration.
| 259529 [rlp1938 gmai] You are right, I read the OP carelessly. Even so the argument still
+ 259180 [doug.ybarbo ] Here are a few sources (i can't say i've looked at all Sites of this
| + 259183 [dangerwillro] Hey this should be relatively painless, depending on the languages
| + 259184 [beingthexemp] Thanks for the help. I would definitley like to see those pieces of
| + 259187 [beingthexemp] So i just found out I don't need full transliteration. I need to support
+ 259681 [wayneeseguin] charset=US-ASCII;
259682 [beingthexemp] I think this is exactly what i'm looking for.. thanks much..
^ DRb and MySql
259095 [pshussain gm] Hai
259364 [drbrain segm] MySQL will drop the connection after a certain period of inactivity.
259443 [gethemant gm] True, also make sure that you are using C version of mysql bindings.
^ I'm looking for any! information about ruby and QT
259099 [kazaam oleco] I tried it severaly times now but always failed. I want to make a ruby
+ 259102 [caleb aei-te] You are mixing Qt versions, and that won't work. The UIC file you generated came
| 259373 [kazaam oleco] qtruby stuff? I just wanna use qt4 but where can I check which is used
| + 259375 [caleb aei-te] I can tell just by looking at the .rb file you generated when you ran "rbuic". On
| | 259634 [kazaam oleco] I got out what the mistake is. It's a ruby bug which makes it impossible
| | 259633 [kazaam oleco] A Ubuntu bug I meant, no ruby bug..
| + 259411 [robert.dober] Sure I did some lobbying because it was not completely clear what you
+ 259153 [robert.dober] Sorry for some lobbying here, but maybe it helps.
+ 259290 [stefano.croc] Qt is well documented. There's the qt reference
259291 [stefano.croc] I forgot, the examples are located in the ruby/qtruby/examples directory in
^ optparse. many-characters option with single dash
259101 [andreas_s ho] I looked at getoptlong and optparse and I don't think any of them allow mul=
259249 [nobu ruby-la] getoptlong is based on GNU getoptlong function, and optparse is
^ Re: hype.rb
259104 [transfire gm] program.rb for the win!
^ sanitizing input
259110 [sy1234 gmail] First, I'm sorry if this has been brought up before.. and I haven't done
259132 [ruby anthrop] Sanitizing for what purpose? Typically sanitization is a concern if you are
^ If I Hear "Agile" One More Time.
259112 [chris winsle] If I hear "Agile" one more time, I believe I will disgorge my bowels.
+ 259115 [tim.pease gm] We have a software tool at work called AGILE
| 259326 [alang cronos] There's a question I thought I'd never see on ruby-talk.
+ 259116 [ecomba mac.c] Is he? ;)
| 259119 [jameskilton ] Yes, the word is massively overused now. Care to offer a replacement?
+ 259121 [james.britt ] Putting aside whether your points have merit, this is not really a Ruby
| 259141 [gregory.t.br] Sadly, it seems we're running low on posts about that. I'm thinking
+ 259123 [ara.t.howard] (( 2 ** 31 - 1 )).times{ p :agile }
+ 259136 [Bil.Kleb NAS] $ yes agile!
+ 259151 [robert.dober] Who is posting in Ara's name here? Or is it really you Ara and you do
threads.html
top