380734-381638

380581-381895 subjects 380902-382525

^ SImple question about file io
380734 [pjoyce whats] I am a little frustrated by a simple problem.  This the script below is
+ 380735 [hyagni gmail] I could not reproduce your error, but there is a obvious problem.
+ 380736 [hyagni gmail] I found another problem.  I am sorry not to include this in the previous po=
+ 380744 [pjoyce whats] Thank you for you help.  I guess its a good idea to initialise vars.
  380745 [hyagni gmail] As my code shows, the variables defined in a loop reset with nil on each lo=

^ How to call Ruby from non-interpreter native thread?
380742 [sungurik ram] Win32 platform. I embedded Ruby extension with SWIG. So my extension
380962 [sungurik ram] I've got skill with GIL (Global Interpreter Lock) and used

^ PostgreSQL and COPY FROM
380747 [yoann6 gmail] I use the 'pg' gem to send some data files to a postgresql database. I
381028 [ged FaerieMU] ''''")

^ [ANN] AffirmIt! 3.1.4 announced
380753 [egalluzzo gm] Are you a developer?  Testing framework got you down?
380811 [josh.cheek g] This made me smile. I love Affirmit's language :)
380814 [serialhex gm] wow... thats a very interesting way to write tests :P  *is checking it out
380815 [josh.cheek g] You prefer that there are more docs? Or maybe add more docs for bonus
380816 [serialhex gm] bonus points are cool!  i was looking at it on github & saw the simpson

^ Hello Friends
380756 [eaglebalti g] Surprise! Just Visit The following websites

^ computer hacking tips
380757 [rakishkrishn] www.rakishcan.blogspot.com

^ ANN: Sequel 3.22.0 Released
380758 [code jeremye] Sequel is a lightweight database access toolkit for Ruby.

^ Searching a CSV file - beginner seeking help
380762 [simon simonh] 1. I've used instance variables without a class, to make them visible
+ 380765 [seanh1313 tx] OK
+ 380769 [seanh1313 tx] Here you go.  This is VERY rough, but it should get you headed in the right direction
+ 380771 [simon simonh] Sorry, don't know your name. You're just appearing as 'guest'. Are you
+ 380772 [simon simonh] Got it!
+ 380776 [simon simonh] require 'csv'
| 380777 [jgabrielygal] this will always be true, since you are initializing results to an
+ 380797 [simon simonh] Thanks Jesus. I plan to improve script over coming days.
| 380800 [marcofognog ] a way very similar to ActiveRecord, but just doesn't work with ruby
+ 380834 [simon simonh] Thanks marco. Looks like it has potential. I can't think how it would

^ [ANN] hoe 2.9.3 Released
380770 [ryand-ruby z] hoe version 2.9.3 has been released!

^ Re: [SPAM] computer hacking tips
380774 [mike osdn.or] Reporting to google abuse team,
+ 380780 [spoon killer] SLAM!  This list gets a lot of spam so cheers for pissing him
| 380786 [code apotheo] Yeah!  Why would programmers want Rails?
| 380788 [spoon killer] I never thought of it as mismatched targeted advertising before,
| 380789 [code apotheo] People who run their own weblogs with comment forms tend to have to deal
+ 380842 [martindemell] As a reminder, please do not mark ruby-talk mails as spam in gmail;

^ [ANN] RubyGems 1.7.0
380775 [drbrain segm] rubygems-update version 1.7.0 has been released!

^ [ANN] hoe 2.9.4 Released
380779 [ryand-ruby z] hoe version 2.9.4 has been released!

^ Reading XML to relational tables
380782 [flethuseo gm] I need to build 3 relational tables from an xml text. In this tables, I
+ 380784 [jgabrielygal] What I'd do is parse the XML (use Nokogiri, for example) and get all p
+ 381252 [flethuseo gm] Thank you for your help. Right now I am stuck trying to traverse the
  381279 [jgabrielygal] require 'nokogiri'

^ [ANN] rubygems 1.7.1
380783 [drbrain segm] After much finger-pointing, rubygems-update version 1.7.1 has been =
380798 [botpena gmai] slight check
380799 [ryand-ruby z] released!

^ [ANN] Erubis 2.7.0 released
380787 [kwatch gmail] I released Erubis 2.7.0.

^ Tk and Tile with Tk8.5
380790 [foldes.laszl] I want to use Ruby 1.9.1 (Ubuntu 10.10) with Tk8.5 Tile, but this samle
+ 380792 [nagai ai.kyu] Thank you for your report.
| 380813 [foldes.laszl] $ ruby -r tk -e "p Tk::TK_PATCHLEVEL"
| 380817 [nagai ai.kyu] Are there tk-tile package for Tcl/Tk8.4 on Ubuntu 10.10 ?
+ 380822 [albertschlef] I'm using Ubuntu 10.04.1, but it probably isn't different than yours.
  380865 [foldes.laszl] Thanks, that solved it!
  380917 [albertschlef] Tk
  380944 [nagai ai.kyu] The following depend on an unofficial feature of ruby's dll loading.
  381004 [albertschlef] Hey, that's a nice trick. Thanks!
  381023 [nagai ai.kyu] It depends on "how to find an entry point function of a DLL".

^ Re: [Ruby] [ANN] rubygems 1.7.1
380791 [luislavena g] ed!

^ [ANN] test-loop 9.3.0
380793 [sunaku gmail] test-loop - Continuous testing for Ruby with fork/eval

^ (none)
380801 [lydianblues ] ...

^ How to make stand a lone Shoes apps (with require 'shoes')
380803 [superpelican] I'm working in Netbeans IDE 6.9 and tried the Shoes graphics toolkit
+ 380807 [serialhex gm] hey, i'm pretty sure you just need " require 'shoes' "  not shoes3...  at
| 380823 [ashbbb gmail] Oh, really?
| 380824 [serialhex gm] ashbb,
| 380829 [ashbbb gmail] Oh, sorry. I don't understand English well. xx-P
+ 380826 [superpelican] Yes, my platform is Linux, Xubuntu Linux 10.10 on an Asus Eee PC 900
  380830 [ashbbb gmail] I confirmed the following with ubuntu on VirtualBox on Windows 7 laptop.

^ Unable to Seed User Data in Authlogic
380804 [dan.king106 ] When I run rake db:seed in my Rails 3 application I get the following
380805 [bbxx789_05ss] So this is a Rails question?  Yet, this is not a Rails forum.  Hmmm...
380809 [dan.king106 ] I thought I had selected the 'Rails' forum in the mailing list

^ Ruby Newbie...
380810 [hgic geekazo] Good Day!  I am attempting to install Jobsworth on FreeBSD 8.1-RELEASE
380827 [stu rubyprog] use rvm over ports for something like this. works well in jails in
380835 [hgic geekazo] Thank You for your time Stu.  I am using rvm instead of ports.  rvm
380855 [stu rubyprog] I use the system iconv from the ports which seems to work better than

^ Using variables in modules
380818 [mail ssalews] Can I define a variable in a module, and access and redefine it later?
+ 380819 [mail ssalews] module Gravity
| 380828 [stefano.croc] You don't need to use attr_accessor or attr_writer to define methods ending
+ 380832 [b.candler po] If you want to do this with a constant then you probably want
+ 380847 [spiralofhope] You're not defining a variable.  You're defining a constant with the
  + 380861 [mail ssalews] I know.
  + 380862 [b.candler po] Before handing out advice I suggest you test it first. Hint: if you just

^ ami&bigchurch messages
380833 [amasif055 gm] ...

^ Using grep on subarrays - help!
380843 [simon simonh] Can anyone help with this? I thought grep would find any element that
+ 380844 [jgabrielygal] test.each {|x| puts x.grep /one/}
| 380846 [adam apresco] 2011/4/3 Jes=C3=BAs Gabriel y Gal=C3=A1n <jgabrielygalan@gmail.com>
| 380894 [shortcutter ] It seems we may want to match at the first position only, so I'd
+ 380845 [simon simonh] Thanks again Jesus. Is it just me or does that seem a bit longwinded.
+ 380871 [bbxx789_05ss] You are trying to use grep() to match strings, yet your test array does
| 380876 [bbxx789_05ss] new_arr = test.select do |arr|
+ 380937 [simon simonh] file_results = @films.select { |a, b| /#{@film}/i =~ a }
| + 380939 [Rob AgileCon] ["one", "three"]]
| + 380946 [bbxx789_05ss] Neither grep() or include?() depended on the size of the sub-arrays they
+ 380941 [simon simonh] "a quick, single block
  380943 [Rob AgileCon] Here's a little example from an error handler in a script (first

^ Why should I be a programmer, to program?
380848 [rubfor recit] Would that remark still apply if Excel had - let's say - a function
+ 380854 [cmdjackryan ] Just for giggles, let's compare Maple and Excel. Since you nicely
| 380868 [spoon killer] Perhaps he was thinking of the matrix of coefficients used when solving
+ 380858 [josh.cheek g] Hmm, when you post, it fragments into a new thread in my gmail. I assume
  + 380863 [serialhex gm] @Josh
  | 380869 [petite.abeil] Not quite magic, just the 'In-Reply-To' and 'References' email header.
  + 380881 [code apotheo] The snarky answer is that the reason it starts a new thread in Gmail is

^ Splitting each_cons?
380849 [simon simonh] one : vol1
+ 380850 [jgabrielygal] ruby-1.8.7-p334 :001 > films = [["one", "vol1"], ["one", "vol2"],
+ 380853 [simon simonh] assistance, I've now completed my first program that actually does
+ 380859 [bbxx789_05ss] films = [["one", "vol1"], ["one", "vol2"], ["three", "vol3"]]
| 380860 [b.candler po] can automatically assign them to individual variables if you wish (the
+ 380864 [bbxx789_05ss] Programming is a required skill.  Stick with it.   Next, you might try
+ 380870 [simon simonh] Thanks guys. More options to try and remember! That's one of the things
| + 380878 [josh.cheek g] I would suggest the last one "each |label, volume|" as it is the most
| + 380915 [Rob AgileCon] You should look at the Array#assoc method that lets you do exactly this.
+ 380872 [bbxx789_05ss] Jesus christ.  Beginning ruby is a breeze compared to C++.  And you
+ 380873 [simon simonh] I think the main thing that puts me off Python is having to import
+ 380874 [bbxx789_05ss] In ruby, the equivalent is require().  No difference.
+ 380877 [simon simonh] Personally, I think that if Python had succeeded in it's aim, then I'd

^ Re: Why should I be a programmer, to program? - OT
380866 [chris s-4-u.] mail headers
380875 [chris s-4-u.] +1 for this one, well written (but sad) and the uber-cool menu ;)

^ pipe question
380883 [wolf_volpi y] What does the pipe in this example do?
+ 380884 [johnf bitsbu] An expression like "foo || bar" works like this: First, evaluate the
| 380891 [shortcutter ] @first_name || @first_name =3D ""
+ 380885 [josh.cheek g] 1) In Ruby, false and nil are treated as falsy. Everything else is treated
| + 380900 [josh.cheek g] I just listed out a bunch of examples and then ran them.... But I'm looking
| | 380971 [b.candler po] Yes, this is a very ugly inheritance from Perl. Check out the flip-flop
| + 380947 [bbxx789_05ss] I think the story goes something like this:  when the parser sees any
|   + 380951 [josh.cheek g] lhs = rhs || "pass"
|   | + 381005 [code apotheo] Is that something we should be able to depend on, though -- or just an
|   | | + 381010 [shortcutter ] I think it's a language feature.  From the line where an assignment to
|   | | + 381034 [jgabrielygal] I think it's a language feature. In the Ruby Draft Specification
|   | |   381046 [code apotheo] =2E . .
|   | + 381030 [bbxx789_05ss] Remember, by rule instance variables and global variables have a default
|   + 381031 [josh.cheek g] Actually, I was thinking about it, and this contradicts that a||=b expands
+ 380887 [wolf_volpi y] Ha Ha.  I was interpeting the pipes as empty arguments of an empty

^ [ANN] rake-compiler 0.7.7 Released
380886 [luislavena g] rake-compiler version 0.7.7 has been released!

^ Hello Friends
380892 [eaglebalti g] What are you looking for. You can find everything

^ Re: functional paradigm taking over
380893 [rubfor recit] This thread has been touching upon three issues - functional languages
+ 380895 [spoon killer] Your argument is fap: programming isn't an abstract philosophy.
+ 380897 [spoon killer] E.g. which language in particular do you have beef with?  Why?
+ 380898 [stu rubyprog] is this a good book to read to grok functional programming,
| 380908 [robert.dober] It is, almost religously considered as such ;). I do not share this
+ 380901 [cmdjackryan ] A) Provide examples that functional programming leads to "terseness"
| + 380903 [spoon killer] As someone doing his math homework as we speak, I beg to differ :p
| | + 380904 [cmdjackryan ] That's why it's homework. :P
| | + 380922 [code apotheo] Some problems are hard (generally by virtue of being complex compositions
| + 380921 [code apotheo] I believe the ability to pick up the basic syntax of the language, and
+ 380907 [rett classic] *Mike,*
  + 380910 [spoon killer] I've seen some absolutely amazing things done with befunge!  Networked
  | 380913 [spoon killer] Sorry, what with all the bullshit I forgot to provide any evidence of
  | 380925 [code apotheo] Holy cow -- some of that actually looked like ASCII art.
  | 380926 [spoon killer] It's a different language, befunge is a 2d language.  Your text file is
  | + 380929 [hramrach cen] is
  | + 380933 [code apotheo] Thanks for the clarification.
  |   381261 [robert.dober] It was IIRC ;)
  |   381324 [darkintent g] Aren't all programs languages as the program describes a particular problem
  |   + 381326 [darkintent g] One more thing the SQL programming language as it currently exists was in
  |   | + 381329 [cmdjackryan ] ng
  |   | + 381354 [code apotheo] ng
  |   + 381330 [cmdjackryan ] em
  |   | 381331 [darkintent g] No I'm not confusing them, all programs provide the vocabulary (Means of
  |   | + 381335 [cmdjackryan ] h a
  |   | | 381341 [rubfor recit] What we've seen here is some people - but not all - have a fixed frame
  |   | | 381357 [code apotheo] That "fixed frame of reference" is called a "definition" -- and
  |   | | 381361 [cmdjackryan ] ke
  |   | | 381372 [code apotheo] like
  |   | + 381356 [code apotheo] I guess, by your phrasing, we simply do not "understand" your "language",
  |   |   381400 [darkintent g] Why don't you actually go take a look at the definition of language,
  |   |   + 381401 [josh.cheek g] The rest of us are talking about definition twelve.
  |   |   | 381403 [darkintent g] That is all well and good. But does that fact make the definitions I am
  |   |   | + 381404 [darkintent g] Before anyone bothers syntax would still apply even if one could simply use
  |   |   | + 381406 [josh.cheek g] Yes. In the way that your equivocal definition is meaningless in context.
  |   |   | + 381408 [cmdjackryan ] It's worse: They are not applicable.
  |   |   | | 381433 [darkintent g] @Phillip: Yes they are applicable, jargon does not supersede the rest of the
  |   |   | | + 381435 [cmdjackryan ] the
  |   |   | | | 381442 [darkintent g] No a jargon or slang does not put aside the language it exists inside of.
  |   |   | | | 381453 [code apotheo] In short . . . yes, you're saying that driving a nail is the same as
  |   |   | | | 381457 [serialhex gm] AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH=
  |   |   | | | + 381459 [gregory_vell] Phillip makes the assertion that Excel is not Turing-complete,
  |   |   | | | | 381465 [darkintent g] Thank you for that.  I personally find language construction interesting.
  |   |   | | | | 381467 [code apotheo] That's not the case at all, from what I've seen.  People just recognize
  |   |   | | | + 381464 [darkintent g] This post was less constructive than any of the others I have seen so far.
  |   |   | | + 381436 [peterhickman] There seems to be an inverse relationship between number of words
  |   |   | | | 381439 [jwise draga.] Speaking as a relatively new member of the list, I feel the whole thread
  |   |   | | + 381452 [code apotheo] Well, in that case, you are no longer allowed to use "programming
  |   |   | + 381451 [code apotheo] It does not make them incorrect definitions.  It does, however, pertain
  |   |   |   381476 [darkintent g] Ah yes, the old "Oh look specific context" therefore stop reading
  |   |   |   + 381478 [code apotheo] blah blah blah sophistry
  |   |   |   | 381505 [darkintent g] So I take it you are taking your ball home now?  You invent a magic
  |   |   |   | 381512 [code apotheo] Nope.  You're just trolling, and it took me a while to accept that fact.
  |   |   |   | 381514 [rubfor recit] Longest post for at least a year.
  |   |   |   | 381518 [shortcutter ] Nicely put.  As the originator of this thread I am sorry where all
  |   |   |   | 381521 [josh.cheek g] IDK, likening your adversaries to terrorists seems a bit extreme to me.
  |   |   |   + 381522 [hramrach cen] This is not about world views, it's about term borders nitpicking, really.
  |   |   |     381606 [rubfor recit] Michal, there have been many such non-sequiturs in this thread, but that
  |   |   |     381638 [code apotheo] I think a lot of people on this list, newsgroup, and forum are interested
  |   |   + 381449 [code apotheo] Let's see . . . definitions three, four, and five there support my usage,
  |   + 381353 [code apotheo] A program is more like an essay or book written in a language.  One does
  + 380914 [josh.cheek g] I haven't gone through it yet, but I have a PDF version I can upload if you
  | + 380916 [hramrach cen] It is not HTML vs PDF, it is the problems inherent in SICP which are
  | + 380970 [stu rubyprog] I'd be interested in the pdf formatted version. Thank you.
  |   380972 [cmdjackryan ] Here you go. :)
  |   381026 [stu rubyprog] thank you very much!
  + 380924 [code apotheo] If the best tool for the job is not a programming language, feel free to
    381130 [rett classic] *Somebody earlier suggested listening to Robert Martin's address to the
    + 381149 [code apotheo] You clearly didn't read a word I said.
    | 381163 [rubfor recit] Chad , you have a rather prejudiced view of languages that don't look
    | + 381171 [code apotheo] [snip a bunch of irrelevancies]
    | + 381189 [spoon killer] Your argument stinks.  You're saying that Excel is a programming
    | + 381213 [rett classic] *Mike,
    |   381225 [rubfor recit] Everett
    |   381229 [josh.cheek g] Or spreadsheets ;)~
    + 381152 [josh.cheek g] I haven't seen it denigrated at all, I'm honestly surprised that people have
      381154 [astahl hi5.c] Not that I've been following this thread, but I saw the comment at the end =
      381158 [code apotheo] 3d_.php
threads.html
top