## 190687-193342

190457-191344 subjects 190874-192450

^ How to decode the following string
190687 [hi2005 gmail] when i work on a pop mail client program, i met the following string at
190772 [rforum gmail] Doing some quick googling shows that the quoted-printable format for
190847 [sroberts uni] Email me off line if not, and I'll send it to you.
190906 [drbrain segm] I believe TMail supports this.
192960 [hi2005 gmail] thank you all. i will dig those links...

^ Multiplexed I/O
190689 [vladgalu gma] I'd like to use Ruby for a quite high performance networking tool.
+ 190690 [shortcutter ] No. You can have a multi threaded application that uses blocking IO
| + 190692 [vladgalu gma] Basically polling the socket within each thread, right ? I did this
| | 190695 [shortcutter ] I though of a different architecture: have one thread select'ing and
| + 190822 [minkoo.seo g] I can't understand this. If ruby uses non native multithreading, then
|   + 190826 [shortcutter ] This is true only if the interpreter itself uses blocking IO - which
|   + 190833 [james graypr] I'm pretty sure Ruby selects over sockets under the hood, to keep the
|   | 190849 [shortcutter ] Theoretically yes, but in practice this works pretty well. Could even
|   | + 190857 [billk cts.co] Also, from looking at differences in the Ruby socket code
|   | + 190860 [james graypr] I can remember at least one post from a person who ran into this
|   + 191187 [eliben gmail] This is indeed an interesting question, one that hasn't been cleared
|     191192 [garbagecat10] If you look at the implementation of Ruby's select, you'll see that it
+ 190698 [benjohn fysh] I don't understand why you can't use c++ here, so I guess I'm missing
+ 190719 [sroberts uni] Ruby threads are basically wrappers for select() aka. multiplexed i/o.
| 190720 [vladgalu gma] Thank you! It's all clear now!
| 190726 [sroberts uni] Probably nobody has ever run into a select scalability problem. select
+ 190786 [logancapaldo] I'd just like to point at another option, IO::Reactor

^ How To / Tips / FAQ (was: Multiplexed I/O)
190699 [benjohn fysh] A few people have suggested that we compile answers to (frequent)
190700 [work ashleym] I only came in to check my e-mail because I was reading in the garden

^ Long weekend (was: Re: How To / Tips / FAQ (was: Multiplexed I/O))

^ .rhtml from .cgi
190704 [mirek.rusin ] Greetz!
190713 [rforum gmail] template = File.open( "mypage.rhtml", "r" ) { |f| f.read }
190714 [rforum gmail] Erm, of course you also would need a
190718 [mirek.rusin ] Of course! Thank you Mike, that's exactly what I was looking for.

^ Two quick posts on Shaping code after language and DSLs - Was: interested in metaprogramming?
190706 [kiaroskuro g] metaprogramming which I hope you will find useful.

^ Setting $? manually - possible? 190711 [djberg96 gma] Ruby 1.8.4 190764 [phasis68 hot] Something like this is possible but not recommended. 190784 [djberg96 gma] Heh, that's awesome. I may just add that, though I'll toss in some ^ can a ruby script perform a chdir on win xp? 190712 [agorilla gma] I want to run a ruby script, and end up in a different directory. Possible? + 190716 [phasis68 hot] There was the same question in ruby-talk | 190722 [agorilla gma] I was hoping for a simpler solution, but that'll work. | 190736 [shortcutter ] I don't know why this complex stuff was suggested. Dir.chdir does the | 190737 [djberg96 gma] Dir.chdir doesn't change your directory in the shell it's running in | 190739 [ljz asfast.c] Unfortunately, no program running in any language can change the | + 190740 [curi curi.us] I probably just don't understand what you meant, but what about the | | + 190741 [curi curi.us] man cd | | + 190744 [ljz asfast.c] "cd" is not a program. It's a command that is implemented within the | + 190742 [agorilla gma] Thanks for the detailed answer. | 190747 [ljz asfast.c] Well, back in the days of MS-DOS, an executable program could go through | 190748 [ljz asfast.c] Actually, here's a sort-of clever way to get ruby to change your shell's | 190749 [ljz asfast.c] for /f "usebackq" %%i (my-ruby-prog.rb) do cd %%i | 190750 [agorilla gma] (cdir.rb) was unexpected at this time. | 190752 [ljz asfast.c] Hmm ... I wonder if this needs to run in a .cmd file instead of a .bat | 190756 [agorilla gma] Same results. Deleted the .bat file, and called it explicitly | 190757 [ljz asfast.c] \path\to\ruby.exe cdir.rb instead of just cdir.rb | 190763 [agorilla gma] Nope, that didn't help (yet). Not sure that 'unfortunately' applies here btw ;) | 190769 [danielbaird ] a slightly less trickey way to do it (and apologies if this was already | 190782 [agorilla gma] Why was that so obvious _after_ I read it? Thanks much. Works like a charm. | 190801 [danielbaird ] Hey.. I just *helped* someone on ruby-talk! First time -- woohoo! | 190804 [agorilla gma] Sure it was, it's how I got Rake to drop me off in the newly created + 191247 [wfspoet appl] system("cmd") ^ Odd problem involving rubygems / classifier and Windows 190721 [Nuralanur ao] Dear all, ^ Win32API, CreateProcess and environment 190723 [djberg96 gma] Ruby 1.8.4 190760 [phasis68 hot] The 'notepad' process requires 'SystemRoot' environment variable. ^ Unrequireable and Rubygems - problem 190724 [Nuralanur ao] Dear all, ^ Re: Ruby & Emacs 190751 [Eric.Armstro] Hmm. The only thing that turned me off to Emacs was the + 190753 [jmg3000 gmai] [fixed top-posting] | 192918 [Eric.Armstro] Fascinating. I'm familiar with plugins for writing + 191327 [jesusrubsyou] Hm. There _are_ editors that can be scripted and extended in Ruby. As 191335 [jmg3000 gmai] I just had a brief look at Diakonos. Seems nice and clean: just one + 191337 [logancapaldo] The config file is pretty easy on the eyes, you can pick up the + 191369 [jesusrubsyou] You are absolutely correct: There is very little user documentation. I 192916 [Eric.Armstro] First, thanks to John for pointing out that FreeRide + 192923 [james_b neur] Similar to what I call "comment-driven development" | 192940 [Eric.Armstro] Similar, but with an important difference. The user | 192955 [james_b neur] Well, comments that just describe what the code is doing aren't always | 193341 [Eric.Armstro] Ah ha. VERY nice. I see the integration now. + 193063 [jesusrubsyou] Interesting points; thanks for sharing. I've absorbed them, and will 193342 [Eric.Armstro] Cool! I look forward to finding out more. ^ [ANN] MinDI 0.3 190755 [vjoel path.b] This version of MinDI adds a new container type, InjectableContainer, 190768 [chneukirchen] So, if I get that right... the Transformer instance gets extended with 191236 [vjoel path.b] The Transformer instance is not extended with the TransformerContainer. ^ Constant in Ruby. 190758 [peckcharlie ] Don't get me wrong, I love Ruby. But, the idea that a constant is not a + 190759 [wilsonb gmai] That article is horrible. Don't worry about it. + 190761 [rforum gmail] It's constant in that you can't reassign a different instance to the + 190762 [halostatue g] Well, that's not *quite* true. Ruby complains, but allows the reassignment. + 190765 [peckcharlie ] X = 20 + 190766 [Gennady.Byst] Ruby issues a warning when assigning to already initialized constant. + 190770 [daniel.schie] => 10 | 191539 [peckcharlie ] A = 10 => 10 | + 191541 [halostatue g] I'm not really sure you're understanding what was said. | + 191543 [lukfugl gmai] => 10 | + 191546 [wfroelich db] I think I'm might be missing something here. | | 191549 [halostatue g] Yes. That's a typo. | + 191551 [peckcharlie ] Okay, just one more go ... | 191552 [halostatue g] A = "Foo" B = A B.freeze A << "Bar" | 191623 [peckcharlie ] I show the object_id just for clarity, to show that A and B is | + 191624 [Gennady.Byst] 10 << 20 does bit-wise left shift 20 times. | + 191631 [peckcharlie ] Sorry, the leftshift results were consistent, but why doesn't the | | 191636 [halostatue g] Because it's not leftshift on a string. And A isn't a pointer. It's a binding. | + 191634 [halostatue g] I'm going to start from a few basic principles, because Ruby worksdifferently than you think it does, and that's kinda obvious from howyou're not getting this. + 190771 [rforum gmail]$ cat spork
| 190775 [peckcharlie ] \$ cat spork
+ 190795 [halostatue g] Variables -- and by implication, constants -- aren't themselvesobjects. You're not freezing X. You're calling #freeze on the objectreferenced by X, essentially 10.freeze.

+ 191179 [pollak gmail] You're freezing the Object that is assigned to X.  If you want to freeze th=

^ Ruby based editor
190776 [phil shellar] I've started to write my own editor (in c) which shall be extendible by via
+ 190779 [phurley gmai] My thoughts are implement the whole thing in Ruby and then only bother
| 192020 [m4 polite.se] This doesn't answer the question. But I'd just like to point out that
+ 190806 [rhkramer gma] * What is your goal for this editor--is it a learning project or intended
190810 [phil shellar] I think you may have mis-understood my question (or I didn't explain
+ 190817 [jmg3000 gmai] (I don't have an answer to your original question, however...)
| 190855 [neoneye gmai] syntax coloring is not easy to add.
| 190863 [jmg3000 gmai] Understood. Also, I can guess that it might be easier or harder to add
| 190877 [neoneye gmai] I cannot recall. Something about that I wanted a lightweight editor,
| + 190879 [ruby anthrop] } I cannot recall. Something about that I wanted a lightweight editor,
| | 190881 [neoneye gmai] I know. Nevermind.
| + 190882 [phil hagelb.] You're not the first person to want these things, that's for sure.
| | 190892 [jmg3000 gmai] I use vim often these days, and have tried emacs for a time, but
| | 190904 [phil hagelb.] IIRC the vi navigational keys are arranged such that they all fall on
| | 190916 [robin nibor.] I also use Dvorak and Vim, and the key bindings never bothered me. The j
| + 191296 [jesusrubsyou] I'm surprised a bit at your responses in this thread.  :)  I thought you
|   191339 [neoneye gmai] Even though TextMate has many interesting things, it still feels like I am
|   191362 [james graypr] I've always been impressed by how well it interacts with cli apps
+ 190820 [ara.t.howard] well, if you choose A you'll be following in the footsteps of vim, which is
+ 190861 [rhkramer gma] I think I understood your question ;-)

^ Fwd: [QUIZ] cat2rafb (#77)
190780 [james graypr] charset=US-ASCII;

^ [SOLUTION] Re: [QUIZ] cat2rafb (#77)
190783 [dave burt.id] # nopaste.rb - a command-line interface to http://rafb.net/paste

^ [SOLUTION] cat2rafb (#77)
190785 [aaron_patter] Here's my solution, also available at http://rubyurl.com/XxX

^ OT: Convention (was: how to use curly brackets vs. 'end' in Ruby)
190787 [curi curi.us] How about Sati
190789 [logancapaldo] Whoa. How about we all pretend their was an implicit "coding" in
190799 [curi curi.us] How can a (coding) convention be *wrong*, instead of just less
+ 190876 [shortcutter ] Now, this has become an interesting discussion!  Let's take this a bit
+ 190934 [logancapaldo] [snip lots of interesting and good stuff]

^ MySQL with windows
190791 [jdale58 yaho] I am new to both ruby and am trying to install the API for mysql using
190813 [zdennis mkte] Run irb, and see what version your client is..

^ So I got a binary file...
190808 [tcdevlin bc.] Sorry for being such a NEWB. I'm a pretty prolific PHP writer however
+ 190809 [billk cts.co] Not sure what you mean.  Do you want an ASCII hex dump of the
+ 190845 [wfspoet appl] Do you just want a hexdump of the contents were only the standard
190873 [tcdevlin bc.] f 80 00 00 bf 80 00 00  bf 80 00 00 c0 00 00 00  |................|
+ 190891 [billk cts.co] But... there's no ASCII in that data.  Except for some @ signs and
+ 190912 [paul iconopl] That output is perfectly acceptable hex/ASCII representation of the
+ 190920 [tcdevlin bc.] mydata = String.new
190932 [paul iconopl] What? You tell us you have a 'binary file' that you need to convert
191219 [tcdevlin bc.] After beating around a little.
191320 [logancapaldo] Please don't forget to close your files. Better than that, use the

^ What's "new" in drb?
190812 [hal9000 hype] What's "new" in distributed Ruby? And by "new" I mean
190905 [drbrain segm] This weekend I made DRb work using YAML serialization [1] (but

^ Possible Bug in mysql-ruby 2.7
190814 [zdennis mkte] I am trying to store very small gzipped files in my mysql database. The storage works great, but when I retreive the data some
190815 [zdennis mkte] This does not appear to be a bug in mysql-ruby... appears to be some of my code...
190936 [logancapaldo] Are you on windows? If so, are you using the "b" (binary) flag when

^ Bay Cities Ruby Group
190819 [xmitchx gmai] Seeing that the nearest Ruby User Groups around me are at least an hour

^ Latex and Ruby
190823 [etienne.dura] I am looking for a library to convert Latex content to png and PDF. Does
190825 [Bil.Kleb nas] Seems like most folks rely on having the pdflatex executable
190839 [bothari gmai] On a slightly related topic:  Does anyone know of a good way to show
+ 190842 [ruby-talk ba] No, but (even further off-topic) if the original source that the PDFs
+ 190984 [wybo servaly] pdftotext file1.pdf # maybe with

^ Re: Object browser, Smalltalk like Ruby environment
190824 [krisleech in] Can Miner work on Windows, it appears to use KDE...

^ Re: how to create Class object with name determined at runti
190827 [bill.roberts] John - thanks, also a neat solution.  Having had experience mainly in
+ 190828 [ruby anthrop] } > irb(main):001:0> a='String'
| 191162 [ruby-talk fj] I=B4m another newcomer to Ruby and this kind of tips are gold to me.
| 191173 [wilsonb gmai] Mostly speed, but many people (myself included) find it easier to read.
+ 190933 [polypus yaho] Having had experience mainly in

^ YAML in limbo?
190829 [lutzky gmail] When I was writing a simple DNS Sniffer/IDS (for a university project),
191347 [lutzky gmail] Much thanks. That IS simpler... how do I handle the importing though?

^ GetText.update_pofiles: seeking help with error message
190830 [raphael schw] Following the guide at http://manuals.rubyonrails.com/read/chapter/105,
190832 [raphael schw] Follow-up: sorry for the double post. Still having issues with the new

^ GetText.update_pofiles: seeking help with error message
190831 [raphael schw] Following the guide at http://manuals.rubyonrails.com/read/chapter/105,

^ Re: Possible Ruby Bug?
190836 [Daniel.Berge] Sorry for the late reply.  There's a bug fix in CVS that we haven't

^ Betfair API library?
190838 [paul iconopl] For those of you in jurisdictions where access to gambling sites is
+ 191581 [nickdainty g] I'm writing an application that uses the betfair api for a friend ofmine. As part of this i've put together a very simple library to talkto their SOAP api. If you're interested in using this i'd be happy tocontribute it. At the moment it only directly supports the read-onlyservices as those are the ones I need, but the wsdl classes andsession handling are taken care of, which is certainly what took upthe most time.
| 191858 [paul iconopl] I'd certainly be interested in seeing that if possible Nick - adding
+ 191604 [psyonic gmai] Paul,
191644 [leavengood g] I am a Ruby Summer of Code mentor and I doubt we mentors would approve
191655 [psyonic gmai] Hmmm... chances are you are right, although I don't know that the choice of

^ Shortcut for [string].pack("p*").unpack("l").first ?
190840 [Daniel.Berge] If I want to get the underlying pointer address of a
+ 190871 [shortcutter ] What do you want with a memory address in Ruby-land?  If you're in an
| 190875 [Daniel.Berge] Short answer: Win32API
| 190878 [shortcutter ] Here you got me convinced.
| 190883 [Daniel.Berge] Yes, pointers to pointers.  Typically for unraveling data structures.
+ 190886 [steve waits.] Insert standard confusion about someone worried about pointers in Ruby.
+ 190896 [vjoel path.b] Even if you can munge object_id and get a pointer to the object, still,

^ More explicit Ruby code
190841 [rtilley vt.e] I'm not a long time Ruby coder, but I have coded for quite some time. I
+ 190843 [james_b neur] You write code to express ideas and intentions to other developers.
| 190844 [james graypr] I think that's right.  I use to name my for loop control variables
+ 190846 [pit capitain] Brad, the two code snippets are not the same. The second sends the :puts
+ 190848 [shortcutter ] IMHO you make Ruby more verbose than necessary. One of Ruby's
+ 190852 [daniel.schie] def puts(*objects)
+ 190856 [minkoo.seo g] I'm not that experienced Ruby programmer (I've just checked LoC of my
| 190993 [jes luretank] programmer.
+ 190866 [jesusrubsyou] I personally would never put Kernel in front there.  If I'm going to
+ 190872 [ruby-talk wh] One nice thing about using a bare 'puts' in your code is that you can
| 190919 [florgro gmai] Nice thinking!
+ 190962 [john.carter ] Relax, drink a bottle of wine, and all that Java induced trauma will
+ 191061 [miken700 yah] In this case if I wanted to be more explicit I would use,

^ BSTR data type
190854 [Jamal.Mazrui] I have some Windows DLLs that include functions where the BSTR data type
190858 [Daniel.Berge] BSTR is a wide string, so your declaration would be 'P' (or
190864 [Jamal.Mazrui] An example of a DLL that uses the BSTR data type is the free spell

^ ruby-dev summary 28495-28605
190859 [ttate ttsky.] Here is a summary of the articles posted to ruby-dev.

^ Generate unique filenames
190862 [one.three gm] What is the best/easiest way to generate unique filenames ? Couln't
+ 190865 [phil shellar] filename = random_number()
+ 190867 [michael.gors] I'd do something w/ rand() or do a hash of the current system time.
+ 190868 [ara.t.howard] i use this
+ 190870 [shortcutter ] You can use tempfile
190880 [one.three gm] Tempfile creates an empty file (in /tmp by default) even if I don't
+ 190884 [steve waits.] You're entitled to your opinion.. but..
| 190889 [one.three gm] Steve, you're right !
+ 190885 [agorilla gma] It's creating the file immediately to prevent other processes or
| 190887 [ara.t.howard] it seems like that, but it does not.  File::EXCL is broken on many filesystems
| 190893 [khaines enig] The link implementation in your lockfile lib won't work right on, at the very
| 190894 [ara.t.howard] cool.  i've never even attempted this on any windowsy platform.  maybe we
| 190908 [agorilla gma] Perhaps it could replace tempfile?  Anyway, thanks for the heads up,
+ 190888 [petite.abeil] Cheers
+ 190890 [paulymer5ml ] Rather than trying to setup a random number based solution, how about
191649 [shortcutter ] - tempfile ships with every ruby install
191678 [ara.t.howard] mostly i agree with all of this.  however, i've had serious issues with