242654-244527
242352-244124 subjects 242807-245250
^ [ANN] image_science 1.1.1 Released
242654 [ryand-ruby z] image_science version 1.1.1 has been released!
^ Efficient processing of binary data streams in Ruby?
242665 [theosib gmai] I'm writing a Ruby program that has to process binary data from files
+ 242671 [tim.pease gm] def unpack_16( str )
+ 242676 [ara.t.howard] this will be __extremely__ fast for even huge buffers of data
^ [ANN] Facets / Multiton 2.0.0
242667 [transfire gm] Facets / Multiton 2.0.0
242672 [ara.t.howard] ^^^^^^^^^^^^ undoubtedly, the code was bit rotting, but what?
^ Hi, I'm Ricardo & I need some Help...
242668 [ricardokakas] =94 Matsumoto's (Ruby-lang.org) (Creator & Founder of the Programming Langu=
^ Hi, I'm Ricardo & I need some Help...
242669 [ricardokakas] =94 Matsumoto's=0A=0A=0A=0A(Ruby-lang.org) (Creator & Founder of the Progra=
^ Re: Facets / Multiton 2.0.0
242677 [transfire gm] # == Previous Behavior
^ [ANN] ActiveWarehouse ETL 0.6.0 Released
242678 [anthonyeden ] ActiveWarehouse ETL 0.6.0 has been released.
^ Need help with if statement in helper class and view.
242682 [jimjohnlists] I don't know if this is a ruby only question or a rails question. I
242684 [anthonyeden ] The equality operator in Ruby is ==
^ rjust alignment
242683 [mondomunchie] I think I'm going crazy. I tried to write a fairly simple program to
+ 242685 [botp delmont] # I think I'm going crazy. I tried to write a fairly simple program to
| 242686 [mondomunchie] Thanks. I am using FreeRIDE and the output shows up differently, but if
+ 242707 [dangerwillro] Maybe you're looking at the numbers wrong.
^ Vijil E Chenthamarakshan is out of the office.
242688 [vijil.e.c in] I will be out of the office starting 03/08/2007 and will not return until
242708 [dangerwillro] So will this get sent again and again until then?
^ 2 lines in one...
242689 [josselin wan] Could I write it in just 1 line ?
+ 242690 [rretzbach go] I think you want an alternative to select + index, right?
+ 242691 [stefano.croc] What about this?
+ 242695 [benjohn fysh] (Math.log(d)/Math.log(2) + 1).ceil
+ 242696 [B.Candler po] a = [0.5,1.0,2.0,4.0,8.0,16.0,32.0,64.0,128.0,256.0,512.0,1024.0,2048.0]
+ 242699 [shortcutter ] irb(main):015:0>
^ Input syntax
242692 [jean.moser n] puts "In which city do you stay ?"
242715 [chris.hulan ] This kind of interaction doesn't work in SciTe, try running it from a
242718 [jean.moser n] "In the above example when you run it in SciTE, click on the output
+ 242734 [mforal.news ] SciTE wasn't designed for this. It was originally designed to accept CVS
+ 242737 [chris.hulan ] Just gave it a try, and the trick is to type in your response in the
242750 [jean.moser n] It functions exactly as you write. Many thanks
^ File open, read and store in Hash, efficient?
242697 [griffin.kev ] I am writing a class and I require it to open a file, and store the
242698 [griffin.kev ] Unfortunately thats what I call finger trouble, as I was saying this
+ 242701 [shortcutter ] Efficiency is ok. Using the block form of File.open is safer, i.e.
| 242704 [griffin.kev ] Excellent.
+ 242705 [GGarramuno a] Well, your code is more or less okay. It may be buggy in that you are
242706 [griffin.kev ] gga,
^ [QUIZ] SimFrost (#117)
242714 [james graypr] 1. Please do not post any solutions or spoiler discussion for this quiz until
+ 242717 [jameskilton ] Quick clarification, I would assume you mean "turn 90 degrees", not 90%, as
| 242719 [james graypr] Ick, yes. Good catch. I'll fix it on the web site...
| 242721 [robert.dober] Maybe you would like to clarify what the center is too (I'll just use
| 242723 [james graypr] That's what my diagrams are for, I hope. ;)
| + 242727 [dangerwillro] these examples are rotation. Anything else would be permutations.
| | 242732 [james graypr] Correct. This was just another way to describe it.
| + 242728 [robert.dober] Sorry if I was not clear, I meant the center where to put the initial freezer :)
| + 242730 [james graypr] Oh, THAT center. ;)
| + 242762 [matthew.moss] Strictly speaking, as this is a torus, you could put it anywhere and
| 242779 [ jupp gmx.de] Actually it only looks as if we are acting on a torus. The reason is
| + 242781 [doug.meyer s] Could somebody point me in the right direction so I can find out how
| | 242783 [james graypr] because it's dang easy and I'm dang lazy. Then I just joined them
| + 242794 [matthew.moss] My fault for getting technical... someone else was bound to get even
| + 242819 [rajsahae gma] How do we split the neighborhoods if the grid dimensions aren't
| + 242820 [rajsahae gma] Lol, sorry, forget what I just asked.
| + 242828 [m_goldberg a] No, I think your observation is fundamentally sound. Since the
| 242849 [rajsahae gma] Any standard for the pixel width/height we should use for the
| + 242852 [robert.dober] I failed to see one impact of where to put the initial freezer so far.
| | 242918 [rick.denatal] Although, it's been pointed out that the reason it's being modeled as
| | 242947 [robert.dober] But now I got acquainted to the torus idea although I know that an
| | 242978 [twinwing gma] Greetings and Salutations to each and all!
| + 242880 [james graypr] I say use whatever looks the best.
+ 242758 [ jupp gmx.de] z until
| 243032 [kbloom gmail] By all means, use it.
| 243033 [james graypr] Ah, I somehow glazed over this message when it originally came in,
+ 242979 [lerno dragon] charset=US-ASCII;
| 242980 [twinwing gma] right, code got mangled, here's the file
| 242982 [robert.dober] Code's slow :(
| 242988 [robert.dober] Interesting case of the profiler showing bad design, the Neighborhood
+ 242995 [dave burt.id] # SimFrost
| 242996 [james graypr] This is the solution I used to build the quiz movie. It works in a
| 243016 [robert.dober] It doesn't get any faster
| 243055 [danfinnie op] A little trick you can use is setting a class method for class Torus
+ 243030 [lerno dragon] It's interesting that it looks like everyone populated their grid
| + 243034 [robert.dober] no Sir not me ;) but my code is longer and I wonder if it was worth
| + 243039 [james graypr] What's a "small grid" and what's "quite a bit"? ;)
| | 243119 [lerno dragon] For 10x10 with 10% vapour, the number of particles typically range
| | 243164 [james graypr] Sure, but a 10x10 isn't a sure interesting simulation. ;)
| | 243180 [twinwing gma] Any suggestions for a complete beginner in generating graphics for a more
| | 243185 [james graypr] Did you take a look at my solution that outputs PPM graphics? PPM is
| | + 243198 [benjohn fysh] I was hoping to write PPMs a while ago, but OS X's Preview doesn't seem
| | | 243201 [james graypr] Yeah, I don't think preview does. Graphic Converter does though.
| | | + 243203 [twinwing gma] Thanks James Edward Gray II, that's a lot faster.
| | | + 243207 [benjohn fysh] Ah, good tips. Thanks!
| | | | 243213 [twinwing gma] Did some testing, and came out with this...
| | | | + 243214 [james graypr] Weird, I can't think how that is possible...
| | | | + 243215 [twinwing gma] seems like the mailing list doesn't like ppm attachments, ate my last
| | | | 243217 [james graypr] The list has a size limit. Try zipping the file.
| | | | 243218 [twinwing gma] I'll try it out on the Linux side as soon as this 500x500 sim's done :)
| | | | 243222 [robert.dober] My 512x512 sim took 2 hours :( but the ppm files will stay for
| | | | 243226 [twinwing gma] Given a square SimFrost, what's the average vapor% so that the number of
| | | + 243221 [robert.dober] Talking about netpbm, I used it from Linux and I had no problem to
| | | 243229 [james graypr] I'm going to pass just because I already have one movie up there and
| | + 243443 [doug.meyer s] Here's my SimFrost solution. It was done by Saturday night, but I so
| | 243464 [twinwing gma] Sorry for the noise ppl, but this was kinda bugging me...
| | + 243466 [robert.dober] P6 is the raw format I use the text format P3, that should avoid your
| | + 243468 [james graypr] As an interesting aside, Graphic Converter reports the image as
| | 243498 [email55555 g] # http://davidtran.doublegifts.com/blog/?p=10
| + 243043 [fred lacave.] #! /usr/local/bin/ruby
+ 243062 [its.sec gmx.] here is my solution. Runs in a Terminal.
| 243068 [twinwing gma] Right, here's the graphical version, using RMagick (thanks for the idea,
+ 243820 [ jupp gmx.de] My aim was not to solve the task in a very object-oriened way or to
+ 243901 [SimonKroeger] this isn't realy what you wanted, right?
| 243920 [ jupp gmx.de] Well, I wanted no lines longer than 69 chars :-)
+ 243915 [SimonKroeger] i don't want to start a flamewar here, trust me.
^ Arrays - Storing User Input
242716 [wood_yee12 h] Easy one but I can't figure this out! I'm trying to ask someone to
+ 242724 [dangerwillro] space bar?
| 242729 [wood_yee12 h] (blushing) Yes; I want to press Enter.
| + 242735 [stefano.croc] text1 [press enter]
| + 242736 [listguy popl] something = []
| + 242738 [dangerwillro] Oh! Well, friend, you need more program.
+ 242725 [B.Candler po] You mean 'Enter' rather than 'Spacebar' ?
^ [ANN] Piston 1.3.1: Fixed switch subcommand
242733 [francois.bea] = What is it ?
^ [ANN] Piston 1.3.2: More switch corrections
242741 [francois.bea] Sorry for the double message, but I found another bug in the pistonswitch subcommand. This warranted another patch release, or else itwould have been unusable.
+ 242742 [gethemant gm] Ok, say I have checked out code from some remote repo using piston in
| 242751 [francois.bea] 2007/3/9, hemant <gethemant@gmail.com>:> Ok, say I have checked out code from some remote repo using piston in> "/vendor/plugins" directory of rails and have modified the plugin.> Now, I want to checkin these modifications to the remote repository,> so that other people can also get the new code.>> So, how does piston solve this problem? can i checkin my plugin from> RAILS_ROOT, assuming RAILS_ROOT is associated with different SVN repo> and plugin has been downloaded from different svn repo?
+ 242752 [christoph.st] here's what happens when i try to switch my rspec_on_rails plugin from
^ gem packaging documentation
242747 [B.Candler po] I'm probably being stupid, but I can't find it. Can somebody point me in the
242753 [lyle.johnson] I'll defer to someone with more experience on the question of native
^ Which memcache client?
242748 [B.Candler po] 1. Ruby-MemCache
242749 [ruby philip.] memcache-client
^ Basic Windows Deployment
242757 [rubfor recit] Is there any documentation on what files need to be deployed on a client
+ 242767 [ml.chibbs gm] Curt
+ 242768 [frankschmitt] Depending on whether your end users want to edit the script or just need
243116 [rubfor recit] Frank/Curt
^ OptionParser patch
242766 [tomp earthli] I wanted to submit a patch for optparse.rb to make it easier to add
242780 [tpo2 sourcep] I only comment on the last item, since I don't know OptionParser enough.
243178 [tomp earthli] Thanks.
^ Getting to the last file in a chain of symlinks
242770 [djberg96 gma] Here's a little code snippet I thought I'd share. It follows a chain
+ 242764 [djberg96 gma] Alright, here's a modified File.readlink method. This is an improved
+ 242765 [artur_spruce] require 'pathname'
242769 [djberg96 gma] Oh, dang, forgot about that.
^ [ANN] cooloptions 1.1.1 Released
242772 [ntalbott gma] cooloptions version 1.1.1 has been released!
^ Free webcasts on Ruby and Rails from CodeGear
242773 [jmcglynn cod] Next Week, March 12-16, CodeGear will be hosting a "live virtual
242778 [jmcglynn cod] Maps on Rails New Session by Lori Olson
^ "Goto line" function?
242775 [nitrohelgso ] Ok, I've read through the forum but I haven't got my answer. If a value
+ 242776 [sonoflilit g] You don't want to do this. This is an old bad practice from BASIC days
| 242872 [B.Candler po] Less mind-bending is catch/throw, or 'redo' within a block.
+ 242786 [Paul.vanDels] #!/usr/bin/env ruby
242788 [tendingcows ] Fortunately the "goto" has been deprecated. It always results in spaghetti code. Check out 'case' control structure instead. You may want to think through the program flow so that you have each possibility and a default case for unanticipated situation. You will need to wrap your code inside the case structure. It's mo' better solution than coding ad hoc.
242790 [hugows gmail] Where has this guy been the last decade?
242818 [twinwing gma] don't blame him, I'm still learning TASM and GOTO's just like JMP
^ WEBrick::Daemon and WEBrick
242777 [beingthexemp] Is it possible to use the WEBrick::Daemon with WEBrick::AbstractServlet.
244182 [drbrain segm] Servlets run in a server, so daemonize after you've started the
244192 [beingthexemp] server = WEBrick::HTTPServer.new(
^ Code organisation "template" interference(?) with RUBYLIB envar
242785 [Paul.vanDels] (Warning: this post is waaaaay longer than I intended)
+ 242787 [tendingcows ] If you don't need ADMIN rights to shuffle files from place to place, you might want to point your browser to http://www.obsession.se/gentoo and give gentoo file manager a try. It is fast and has all the features conveniently in one place. It appears that you are trying to manage a graphical IDE style hierarchy that may not easily accomodate a complex file structure. I don't know if there is a single solution, one approach from Debian is managing different versions of software using /etc/alternatives. You can write a simple bash script to integrate files. I would not recommend setting env vars for every project, env should rather accomodate lib or system files. I would much rather have one system-wide config across different projects.
| 243182 [Paul.vanDels] Thanks for the input, but the projects run on a bunch of different platforms -- various
+ 242873 [B.Candler po] I'd suggest putting a single entry in your load path, for the very top level
+ 243179 [Paul.vanDels] Your suggestion is how I first thought about "fixing" my problem. But when other folks
+ 243188 [Paul.vanDels] I just tried adding
^ Theming Tk with tile
242791 [sy1234 gmail] I have a dream: My own GUI applications looking like other applications.
242989 [nagai ai.kyu] If your Tcl/Tk can load the tile libraries which you installed,
242992 [sy1234 gmail] I think you're right. pkg_checker.rb gave me errors [1]
242993 [nagai ai.kyu] Then, possibly, your Ruby/Tk will expect that all Tcl/Tk extensions
^ Find.find --- returns directories/files backwards
242792 [bradaskins g] Find.find('/user/name/documents') {|path| puts path}
+ 242833 [m_goldberg a] That's just the way Fine.find works. My experience is that, for most
| 242845 [dangerwillro] You could also use a system call to the tools "which" or "locate" or
| 242846 [choong stell] Here's a little something I happened to stumble upon yesterday though. I
| 242848 [dangerwillro] Indeed! Those should always be considerations when making calls to
+ 242834 [GGarramuno a] You are probably using the wrong api. If you want to get a list of
+ 242855 [shortcutter ] As others said already, the order is dictated by how the OS returns
242869 [bradaskins g] Thank you everyone! There were several posts that worked and did what
242878 [tendingcows ] Try something like this
242887 [sepp2k googl] It doesn't work because you pass a block that accepts only one argument to
242890 [shortcutter ] There is also a class method entries, so the above code can be rewritten as
^ ntlm example
242799 [seannakasone] Can someone please provide me with a simple ntlm example?
243311 [koheik gmail] The following chunk of code works in my environment: IIS 6.0, ruby
^ GUI With Ruby
242800 [yannick_gram] Just a quick question: I'm sick of using Command Prompt for my little
+ 242802 [dennisne gma] Currently, there is no clear winner in the "GUI for Ruby" category. A
| 242803 [yannick_gram] Thanks a lot for the hints! I'll give Tk a bit of a try first up.
| 242804 [yannick_gram] Forgive the double-post, but I was just wondering if there was a Ruby/Tk
+ 242805 [lyle.johnson] Hope this helps,
| 242806 [yannick_gram] FXRuby looks very interesting: any chance of there being an FXRuby book?
| + 242809 [lyle.johnson] Possibly someday, but not in the immediate future. For the time being,
| | 242840 [dangerwillro] You might consider the Dashboard Widgets or Windows Gadgets as a
| + 242814 [phillipsds y] There's a qtRuby book available (PDF, for US$8.50)
| + 242822 [beingthexemp] for macs you can use RubyCocoa.
| | 242825 [phillipsds y] Thanks, just playing with it now. I like the idea of using interface
| | 242826 [yannick_gram] I've been playing around with FXRuby, but I find that the tutorial is
| | + 242827 [rajsahae gma] I've been learning FXRuby in the last two months, and you really just
| | | 242866 [caleb aei-te] Agreed. FX and FXRuby are indeed great GUI toolkits (this coming
| | | 242885 [lyle.johnson] Sending the love for Qt back your way. ;)
| | | 242888 [victor.reyes] Although I don't regularly don't program much, mainly due to time, I also
| | | 242891 [sepp2k googl] Don't the qt designer (fot qt) and glade (for gtk) do what you want?
| | + 242879 [lyle.johnson] The lack of tutorial-style documentation is indeed a problem. As far
| + 242842 [dangerwillro] Actually, Qt has gotten a lot better, and does work on Windows and
| | + 242884 [lyle.johnson] Aren't the licensing fees for Qt waived if you're using it for
| | | 242895 [dangerwillro] There is an Education License allowed on faith, but you do have to
| | | 242896 [lyle.johnson] Oh, sure, I definitely agree that people need to understanding the
| | + 242903 [B.Candler po] That's called the BSD licence.
| | | 242906 [twinwing gma] Um, how close is the BSD license to this "my code, don't need to quote me,
| | | + 242911 [TimHunter nc] ...
| | | | 242933 [twinwing gma] Thanks Hunter, very informative
| | | | 242935 [TimHunter nc] It is very close to the license I use for RMagick. My personal
| | | + 242976 [eleanor game] Well there's always the "public domain", i.e. no license and
| | | + 243000 [stack.tcpip ] Eleanor McHugh DE I. P.
| | | | + 243014 [eleanor game] Interesting. So in those jurisdictions a widely distributed anonymous
| | | | | + 243025 [TimHunter nc] To be honest, in the U.S. I would not consider anonymous works to be in
| | | | | | 243148 [eleanor game] Well you learn something new every day :)
| | | | | + 243028 [stack.tcpip ] Eleanor McHugh DE I. P.
| | | | | | 243056 [perrin apoth] Neither am I.
| | | | | + 243054 [perrin apoth] If it's public domain *and anonymous*, one typically would cover one's
| | | | + 243053 [perrin apoth] Oddly enough, licenses that include attribution requirements are legally
| | | + 243052 [perrin apoth] That disclaimer is something you can just attach to the code. If
| | + 243058 [perrin apoth] wanted to drink anyway
| | | + 243270 [robert.dober] I have heard of that and I was quite alarmed about it. I do not
| | | | + 243328 [perrin apoth] Of course -- historical context is important to understanding any trends
| | | | + 243487 [gregory.t.br] Using the License of Ruby (so long as you follow it exactly),
| | | + 243288 [rick.denatal] Yes, that is a concern.
| | | 243329 [perrin apoth] How do you feel about people having a (legally protected) right to
| | | + 243383 [robert.dober] Gentlemen
| | | | 243478 [perrin apoth] Heh. I'm not an anarchist -- haven't been since shortly after high
| | | | + 243479 [martindemell] I've often thought that Heinlein's "Coventry", which deals with this
| | | | | 243483 [perrin apoth] I'm a huge fan of Heinlein, but I haven't read that one. I'll take this
| | | | + 243496 [robert.dober] That is a reasonable position well explained. Sorry for using a word
| | | | + 243523 [gregory.t.br] Please take this discussion off list. It's far beyond gone.
| | | | | 243528 [perrin apoth] I think that particular part of the discussion is finished, anyway. I
| | | | + 243527 [perrin apoth] Source code distribution is enforced any time you choose to distribute
| | | + 243421 [rick.denatal] That's not requred by the GPL, the requirement is that if you
| | | + 243425 [robert.dober] That might be so, but they have the delete button, while I think that those
| | | + 243481 [perrin apoth] No . . . but it's *easier* to distribute it immediately, for a single
| | | 243524 [rick.denatal] It's often easier to do all kinds of things which are either illegal,
| | | 243530 [perrin apoth] Ethically (as opposed to legally) speaking, I have a very difficult time
| | | + 243597 [rick.denatal] Have you actually read the GPL in its entirety? You seem to think
| | | | 243600 [perrin apoth] Have you actually read what I've been saying? You seem to think I've
| | | | 243630 [eleanor game] Which if course is the main point of contention between the BSD and
| | | | + 243659 [no spam.plea] Ellie,
| | | | | 243724 [perrin apoth] I'm not entirely sure what sort of restrictions you want, but you might
| | | | + 243670 [robert.dober] That is not so, you do not have to contribute there is no obligation.
| | | | | 243739 [eleanor game] Apparently not. My reference to feudalism was to the notion of a
| | | | + 243723 [perrin apoth] Oooh . . . "feudal patent" is an interesting turn of phrase. Is that
| | | | + 243744 [eleanor game] It's probably original in this context, although it may have some
| | | | | 243760 [perrin apoth] Excellent. Thanks.
| | | | + 243764 [perrin apoth] One need not use the GPL to ensure that.
| | | | 243794 [perrin apoth] Sorry, I think I got a little snarky there. That was sort of a
| | | | + 243803 [google andre] Great Idea. Why care about licenses at all, when we can just
| | | | | 243864 [perrin apoth] Thank you for your sarcasm, and for completely ignoring the actual
| | | | | 243869 [google andre] Forgive me my sarcasm, but I just think that your arguments against
| | | | | 243872 [perrin apoth] Far-fetched?
| | | | + 243804 [google andre] Great Idea. Why care about licenses at all, when we can just
| | | + 243603 [google andre] The release of the Linksys router source code was a direct reaction to
| | | 243728 [perrin apoth] Not in a vacuum.
| | + 243149 [eleanor game] I must admit that I don't have any interest in my 'old' code at all,
| + 242865 [caleb aei-te] I'm using Qt4 QtRuby on the Mac and Linux wonderfully. I've started
| + 242881 [lyle.johnson] FOX works on both Windows and OS X, but the OS X version runs under
+ 242839 [unbewusst.se] what about X-platform ?
| 242915 [dennisne gma] I haven't tried it myself, but wxWindows bills itself as being useable on
+ 242871 [reid.thompso] Ruby + gtk2
+ 243267 [ramsayw1 com] No one has mentioned Gtk, which I'm now using with Ruby with great
+ 243269 [lyle.johnson] Just curious, what exactly about the upgrade caused everything to
+ 244333 [martin.portm] I have had success with Ruby/Gtk/ruby-gnome2 on a Mac, OS X 10.4 and Windows.
244350 [unbewusst.se] It seems we'll get the GTK2 & Cairo "Quartz" variant in a near future,
244527 [martin.portm] Nope. Well, nothing Gtk specific, just the usual stuff. The themes on each machine
threads.html
top