208653-213144
208435-210359 subjects 208866-211220
^ Re: [ANN] Net::LDAP 0.0.4 released
208653 [Daniel.Berge] I originally posted this on your forum page but I'll post it here in
208658 [garbagecat10] Get version 0.0.4 and read the Rdoc for Net::LDAP#bind_as . It should do
208666 [Daniel.Berge] Works perfectly, thanks! I removed the parens from the filter, however.
208670 [garbagecat10] I noticed you had given your original code sample without parens around the
208677 [Daniel.Berge] I'm afraid I can't say much more than it's a 3rd party solution.
208680 [garbagecat10] I've talked to several people who have pointed out that the native LDAP
209252 [luke madstop] I don't do as much with LDAP these days (although I did a bunch of
209257 [garbagecat10] Thanks- improving the API and making it more Ruby-esque was a major
^ Re: [SOLUTION] [QUIZ] Pen and Paper (#90)
208664 [m_goldberg a] This is my submission for Ruby Quiz #90.
208710 [m_goldberg a] Just want to correct a misstatement. The worse-case behavior is
^ [QUIZ] Newbie doubts about the quiz
208669 [malvim gmail] Hey, People.
+ 208671 [curi curi.us] one way to do it is take the current position and add/subtract the
+ 208673 [collinsj sea] Or, you could initialize the array with some string (I used '.' in mine,
+ 208688 [m_goldberg a] Well, you might look at the solution I posted earlier today for
| + 208694 [james graypr] I'm uncomfortable with the word "pathetic" here.
| | + 208697 [malvim gmail] Yeah, that's exactly how I think, and I bet that's even how Morton thinks. :)
| | + 208713 [m_goldberg a] Pathetic is as pathetic behaves. :) And perhaps I should have put the
| + 208709 [bulliver bad] charset="iso-8859-1"
+ 208700 [james graypr] I think this solution would work out fine. Others have given you
+ 208728 [matthew.moss] I haven't submitted a solution... I started working on one, but just
+ 208734 [martin snowp] Note that what I did to solve this was at each step to copy the cells
208771 [simon.kroege] You know I like NArray, but perhaps there is an even
+ 208780 [martin snowp] Well, yeah, but in the context of the problem what you need is a
+ 208803 [malvim gmail] Yeah, I KNEW there should be something. :)
^ How do I get the creation date of a file?
208678 [marek4130 gm] atime, ctime and mtime. None of these will give me the creation date of
208684 [gwtmp01 mac.] There is no such thing as a creation time of a file. That is to say
+ 208691 [perrin apoth] That's not precisely true -- the actual creation time of a file is the
+ 208696 [jtregunna bl] That is incorrect. It is however, platform specific. On BSD systems,
208753 [nobu ruby-la] Isn't it the change time?
208770 [rimantas gma] atime - last access
+ 208832 [collinsj sea] "Returns the change time for the named file (the time at which directory
| 208834 [collinsj sea] File.ctime(file_name) => time
| 208848 [perrin apoth] That is, effectively, creation time (for a particular definition of file
| 208853 [ara.t.howard] man 2 stat
| 208859 [collinsj sea] Not to mention, on my Linux machine, just opening up a file and saving
+ 208835 [rakrok gmail] To clarify, as Jeremy indicated, this is actually the inode creation time.
208838 [gwtmp01 mac.] It isn't the inode creation time. It is the inode *change* time. So
^ block equality
208683 [tdjordan gma] Is there a way to compare two blocks with each other?
+ 208685 [tdjordan gma] ruby 1.8.4 (2006-04-14) [i386-mswin32]
+ 208702 [llasram gmai] I haven't dived into the code, but I'm pretty sure that (a) promoting
208706 [collinsj sea] Yes, it's kind of like asking if two equations or two methods are equal.
208807 [tdjordan gma] Thanks Marshall and Justin.
+ 208819 [collinsj sea] Well, I did find one instance where this works. If you use Proc#dup or
+ 208826 [dbatml gmx.d] If you really want to check if procs have the same or equivalent bodies,
^ Reading in files, keeping *ALL* info from file
208687 [cbinckly byc] I am trying to read in a file and parse it. It uses hex values, such
+ 208699 [sylvain.joye] Works fine here, maybe you should send how you do read your file
| 208708 [skurapat ucs] p ARGF.read
+ 208844 [shortcutter ] Since you're reading binary data, here's what I'd do
^ New to Ruby and Programming
208717 [hfashina hot] I am making yet another attempt at learning to program. I have a
208719 [james graypr] Hope it helps.
208794 [hfashina hot] I have very limited knowledge with databases (i.e. filemaker pro and
208801 [huw DELTHISB] I suspect you may be getting a bit too obsessive about those darn' blocks
+ 208810 [hfashina hot] Hey Thanks,
+ 208851 [toalett gmai] Ruby's standard library is filled with methods that (often optionally)
+ 208856 [collinsj sea] Perhaps not, but it's like that advice they give for taking tests...if
+ 208860 [huw DELTHISB] I would agree that the concept of a function (or method) is essential. I
+ 208871 [hfashina hot] Fortunately, I do understand functions. I tend to understand most
+ 208882 [chiology gma] Whether it is completely correct or not, I like to look at blocks as
+ 208893 [danielbaird ] you should watch what you say about _why.. I've heard he sends his
208895 [perrin apoth] Not just monkeys -- legions of mediocre code monkeys. They're in
208898 [chiology gma] Fortunately, _Why is masterful enough to confuse them with strange
^ Re: Newbie doubts about the quiz
208721 [rabbitblue g] What quiz are you referring to? I want to try! :)
208724 [bulliver bad] charset="utf-8"
208730 [bulliver bad] charset="iso-8859-6"
^ Debug tool?
208722 [krf Vega.com] I just started Ruby so I am not going to ask any dumb howto questions
208726 [ruby muerman] You can use RDT for eclipse, which has a decent graphical debugger for
208736 [krf Vega.com] Thanks. I am still looking. I got spoiled by Perl which is native to
^ how to access ruby app from rails
208723 [junkone1 gma] I have built a ruby app grabbing stock data. Now i want to integreate
^ Is there a Photoshop-like image handling library?
208729 [sam.s.kong g] My co-worker is trying to improve his application(in VB) which takes
208732 [no.spam plea] RMagick.
^ begin...rescue...retry next?
208737 [joeat303 yah] Is there some way to do this in Ruby?
+ 208738 [ruby muerman] not_tried_before = true
+ 208742 [logancapaldo] If you know only expression X will raise the exception you can use
208746 [joeat303 yah] Why is that evil?
+ 208747 [logancapaldo] Cause you can't specify which exceptions to catch with that form.
+ 208748 [collinsj sea] Because if something goes wrong in that call, you will get no
208755 [joeat303 yah] Yeah, but rescue nil is just usually to deal with null values from the
208760 [collinsj sea] Using rescue this way will rescue all exceptions, but simply return nil.
208840 [joeat303 yah] Aaahhh...all this time I thought I was rescuing nil rather than rescuing
^ =?WINDOWS-1252?Q?Re:_Dr_Nic=92s_Magic_Models?=
208744 [logancapaldo] Yeah they behave the same, but sometimes you don't want the overhead
208763 [fxn hashref.] =?WINDOWS-1252?Q?Re:_Dr_Nic=92s_Magic_Models?=
^ strange problem with ruby-dbi and arrays
208750 [snacktime gm] No clue what I am doing wrong here. It's hard to give a complete test
208751 [snacktime gm] tlist << row
+ 208752 [snacktime gm] Never mind, that doesn't work it flattens row before appending it.
| 208756 [snacktime gm] Ok I get it now. Each element I append onto tlist still references
+ 208754 [logancapaldo] Guessing but perhaps fetch reuses the same object to store the query
208757 [snacktime gm] `dup': can't dup NilClass (TypeError)
^ Re: strange bit of code
208759 [nobu ruby-la] I think it's a fixed bug. Can you try it with latest snapshot?
^ Re: Dr Nic”Ēs Magic Models
208761 [drnicwilliam] This might just be sacrifice of using the MMs. I'm not sure there's a
208772 [drnicwilliam] It generates a has_one if your method name is singular.
208786 [chneukirchen] Whoa, ouch. :-P
208799 [drnicwilliam] That's right, please stand behind the police line.
^ Is there some ruby equivalent of perl's /\Q...\E/?
208764 [smerk fi.mun] in Perl I have \Q and \E in regexps allowing me to "literally" insert
208767 [shortcutter ] irb(main):001:0> Regexp.quote "."
^ Why Ruby doesn't have some xor operator?
208768 [smerk fi.mun] #{subj} --- not only (False|True|Nil)Class#^, but some general one, like
+ 208774 [shortcutter ] What semantic do you expect that operator to have? If you want it for
+ 208785 [chneukirchen] When would that be useful?
+ 208790 [martin snowp] I'll note that I find the "and" and "or" operators primarily useful
^ Nooby question : multidimensional arrays.
208773 [marinho.tobo] Well am I right, that in Ruby there are only one dimensional arrays, and that i have to add an array into an array to get multidimensional arrays, or is there a simpler more ruby like way to create them ?
+ 208778 [canyonrat ma] Yep. You create them by just making arrays of arrays and you
| 208784 [cjkim jcnow.] One would have to think in Ruby. For a C programmer, it can be a hard
+ 208783 [martin snowp] Well, there's also the block that Array.new takes to give its initial
+ 208789 [james graypr] Others have given you great answers, but it's also worth pointing out
+ 208975 [david vallne] Or, if you need a speed burst, NArray [http://narray.rubyforge.org/]
^ Question about a multiple assignment statement used in Rails
208791 [zenshade gma] As I'm very much still a ruby newbie, I'm hoping someone can help me to
208798 [jan.svitok g] var1, var2 = fnc :sym1, :sym2 => 10
208857 [zenshade gma] Ah, I see. The method returns an object with multiple values that get
^ string equivalency
208792 [rtilley vt.e] What's the best way to check if a string is not exactly what you're
208796 [shortcutter ] b = 'brad'
208804 [rtilley vt.e] This is prefered over the String.eql? method?
+ 208812 [joiey.seeley] I don't believe it would matter in the case of a String. But it is
+ 208842 [shortcutter ] I prefer it and it seems most others, too. Looks better - and note that
^ Ruby is exploding onto the scene as Java did at the end of 1990s
208793 [enogrob hotm] Java is no longer the answer to every software development problem.
+ 208827 [matthew.moss] Java was never the answer to every software development problem, thank God.
| + 208828 [Daniel.Berge] Yes. We all know it was Ada. :-P
| | 208846 [robert.dober] Unfortunate typo of yours
| + 208924 [chneukirchen] However, it is the reason for a lot of software development problems. ;-)
+ 208885 [krf Vega.com] Yes. Do you remember the hype? Statements like "In a few years, 95
208919 [huw DELTHISB] I remember the hype very well. I was covering the 'Java phenomenon' at
+ 208922 [perrin apoth] It may well be that the absurd level of hype was intentionally well out
+ 208959 [znmeb cesmai] be due
+ 209020 [wrecklass1 g] I'm not sure I'd call what Ruby is doing an 'explosion' just yet. Lest
+ 209048 [garbagecat10] Part of what is happening to Java and Solaris is that Sun is flailing
+ 209055 [phurley gmai] Really?, I have never picked up an anti-business vibe from the Ruby
| 209091 [leslieviljoe] I would certainly love to program in Ruby professionally, and so would
| 209097 [perrin apoth] I've heard of it, and it sounds nifty, but I'm unlikely to ever pick it
| 209620 [robert.dober] Sorry to walk on your feet, I have heard from D too, maybe it is a great
| 209708 [robert.dober] Slightly off topic
+ 209062 [headius head] Personally I think if Sun (or other old-timers) were to realize the value of
209078 [garbagecat10] a compelling business reason to switch from language X, it will start to get
209079 [headius head] Without question. It needs to gain a little maturity, but that will only
209086 [garbagecat10] And what do you think that compelling business reason is? In Java's
+ 209092 [headius head] I think there's a short answer that would please almost everyone: Ruby makes
| + 209103 [garbagecat10] As interesting as your whole argument sounds, it's light on specific
| | 209105 [perrin apoth] I'm inclined to agree, re: Java.
| | 209111 [headius head] My point wasn't about Java, it was about what heavy backing like Java
| | 209117 [garbagecat10] Charles, once again I feel you are light on business drivers. Development
| | 209120 [headius head] Yes, IBM sells WebSphere, but not for very much. In some cases, if bundled
| + 209104 [perrin apoth] I disagree pretty strongly with that characterization. Java didn't
| 209309 [krf Vega.com] Perl/CGI is far more accessible to beginners, both as a
| 209431 [leslieviljoe] Interestingly, I found Ruby installed by default on my bother's
+ 209093 [pixelnate gm] Andrew Carnegie once said, " The men who have succeeded are men who have
+ 209099 [curi curi.us] Google thinks Python is useful. Ruby is similar to Python, but
209101 [Daniel.Berge] Google, Inc. hired Guido Van Rossum. I think they want some ROI. :)
^ Temporary failure in name resolution
208802 [inxs.hemant ] Within my rails application, I make exactly one connection to a drb server,
208805 [inxs.hemant ] Also, as a follow up,
^ Trying to figure out whats wrong with ActiveLDAP
208808 [elekktretter] Can I get help at this?
+ 208821 [elekktretter] I seem to have my some maybe progress by defining user.sn and commenting
+ 209521 [rick.denatal] I think that ActiveLDAP::Base wants a string argument to new to be of
^ My experience with RubyCocoa
208813 [chiology gma] So, I just installed RubyCocoa on my OS X machine here at work. Just
+ 208815 [pbattley gma] A Darwin Ports-installed Ruby works just fine for me. I haven't tried
| 208825 [ezmobius gma] The installer works fine for me with a custom built ruby in /usr/
| 208831 [chiology gma] Will do.
+ 208823 [jmg3000 gmai] Matt, you may want to update, edit, or tweak
+ 208839 [pere.noel la] /opt/local/bin/ruby
+ 208887 [Diego.Viraso] Thanks a lot.
| 208897 [chiology gma] If I HAD any experience, you bet I would. Unfortunately, this is
+ 209044 [ryand-ruby z] I followed the build instructions on the rubycocoa website and it
| 212814 [drbrain segm] Same. I believe it it took all of three three word commands and a
| 213144 [pere.noel la] and RubyCocoa is working within XCode ???
+ 209057 [rf.oodanaw s] Would you mind if I insert ma question here? I have had a successful
209343 [abergeron gm] Yes, upgrade to xcode 2.3 or later (it's at 2.4 now).
212693 [pjhyett gmai] cpp-3.3: installation problem, cannot exec `cc1obj': No such file or
212783 [abergeron gm] I cannot verify it to be working with xcode 2.4 because I don't have a
^ [OT] Website needs volunteer web guy
208814 [rubyhacker g] I know of an organization that needs help with its website.
^ [QUIZ] Some observations on Pen and Paper (#90) or to make it fast, choose your algorithm wisely
208816 [rick.denatal] 1) Those who have done best have recognized the relation between this
+ 208820 [collinsj sea] Elliot's solution uses 5x5 'pre-solved' solutions to fill the board.
+ 208824 [martin snowp] Yeah, I ran across that while working on an algorithm. Empirical
^ 2 questions from a beginner
208817 [Diego.Viraso] I am currently trying to find the solution to these two problems, but
208818 [jan.svitok g] 1. out = `ps` (Kernel#backtick)
208884 [Diego.Viraso] Thanks a lot. Both worked just as I needed them. :)
^ auto installing a gem
208829 [bpettichord ] I thought it would be clever to require a gem -- and then if it wasn't
208909 [gemma.camero] Gem
^ utahvalley.rb meeting Tue Aug 22 at 7PM
208830 [pat.eyler gm] utahvalley.rb monthly meeting
^ [Facets] Multiple arguments for Hash#delete
208833 [daniel.schie] class Hash
208965 [nobu ruby-la] What will be returned from `hsh.delete :a'?
208980 [daniel.schie] The value of :a
208992 [nobu ruby-la] The class of returned value varies according to the number of
209010 [daniel.schie] Yes. I don't see that as a big problem though, especially if there's a
209285 [drbrain segm] Then it probably shouldn't go into Ruby. Especially if you are
+ 209339 [daniel.schie] Well, I only seriously suggested to add it to Facets.
+ 209345 [nobu ruby-la] Possiblly, we have to wait until "true multi-value" is
^ Command line arguments in windows
208843 [joiey.seeley] If I execute my apps from a command line using a syntax like this
+ 208845 [david vallne] Not really. PATHEXT just means that try to append those extensions to a
| 208949 [halostatue g] rbFile="C:\Ruby\bin\ruby.exe" "%1" %*
| 208955 [joiey.seeley] Thanks to everyone for your input here. My ftype entry (rb_auto_file) was
+ 208880 [martin snowp] p ARGV
208901 [nobu ruby-la] IIRC, assoc command built in cmd.exe does it. Try assoc /?.
208902 [nobu ruby-la] Sorry, it was ftype.
^ Is there anything like FCKeditor for Ruby?
208847 [pixelnate gm] I am building a website for a client and they want to be able to edit
+ 208849 [toalett gmai] That's an HTML editor, and so it's language agnostic. You'll just have
| 208852 [pixelnate gm] Thanks.
+ 208864 [khaines enig] FCKeditor doesn't care what language your serverside code is in. I use it
+ 208879 [michael.moen] Here's one that you can use without jumping through a bunch of hoops
208985 [pixelnate gm] Excellent. This is exactly the kind of thing I am looking for. Well, I
^ open-uri timeout
208850 [jeff schwabc] I love open-uri, but does anyone know how to configure the time-out
208858 [ara.t.howard] the simple way is
208867 [jeff schwabc] Thanks, that's great. It seems to be working.
^ Google Calendar + ruby = timesheets
208865 [aleks0 gmail] I use Google Calendar to manage my hours and excel to push out
209028 [aaron_patter] Hey Aleks,
209224 [chris.lowis ] You could also use w32ole to automate the import into excel too ! Here's
threads.html
top