340699-358068

340446-341590 subjects 340885-379671

file.seek and unused bytes
340699 [lists@gr gw ] Ruby 1.8.6
+ 340701 [lists@gr gw ] Argh. those should look equal length in non-proportional font.
+ 340707 [eleanor@ga e] Unfortunately you're getting lucky. A seek adjusts the file pointer
| + 340726 [shortcutter@] Actually it should not matter what those bytes are.  Your record format
| + 340751 [b.candler@po] I don't believe that's the case today. If it were, then you would have a
|   340761 [lists@gr gw ] 80's micros too with BASIC :-P
+ 340737 [lists@gr gw ] Thanks, I figured as much (just thought I'd see if Ruby was any
+ 340763 [gwtmp01@ma .] I don't think anyone has answered this question directly but on POSIX-
  340764 [lists@gr gw ] If in deed this is a fact (and it's consistent with my observation),
  340766 [b.candler@po] Well, those aren't POSIX references. But from "Advanced Programming in
  340767 [lists@gr gw ] I see, you guys are saying it's an OS-level detail, not a Ruby-specfic
  340769 [b.candler@po] Unless you seek over entire blocks, in which case the filesystem can
  340771 [lists@gr gw ] OK. But the file system doesn't keep track of aything smaller than the
  + 340774 [gwtmp01@ma .] You should expect null bytes (at least on Posix-like file systems).
  | 340782 [lists@gr gw ] I wasn't separating the read from the write. The spec talks about
  | 340786 [b.candler@po] All disk I/O is done in terms of whole blocks (typically 1K)
  | 340789 [lists@gr gw ] Ah. That's what I was looking for. thanks.
  + 340787 [shortcutter@] I would not expect anything in those bytes for the simple reason that
    340792 [lists@gr gw ] Understood. In this case, I'm making a concious decision to go with
    + 340794 [b.candler@po] To me, this approach smells. For example, it could have *really* bad
    | + 340799 [b.candler@po] I dug out some old CDB-building code; it's actually very simple with
    | + 340803 [lists@gr gw ] Eeek. Opened a can of worms!
    |   + 340804 [b.candler@po] Ah, so this is a 4GB process limit not file limit.
    |   + 340817 [shortcutter@] From my experience doing one at a time is efficient enough.  Of course
    |   + 340818 [chust@we .d ] reading this I wonder why you don't dump the records into a database
    |     340826 [lists@gr gw ] That would actually require a much larger rewrite than what I've done.
    |     340828 [shortcutter@] I'd be interested to learn the outcome of that exercise.
    |     340833 [lists@gr gw ] In my original system, I used the row lengths and the number of rows per
    |     340835 [james@gr yp ] The more I read in this thread, the more I feel it's crying out for a
    |     + 340838 [vjoel@pa h. ] Does this install as a gem for you? I get this...
    |     | 340839 [ezmobius@gm ] Get redis from github as far as I know there is no redis gem on
    |     | 340840 [vjoel@pa h. ] $ rake redis:start
    |     | 340841 [ezmobius@gm ] Yeah sorry dtach is another piece of software to install, you can get
    |     | 340916 [vjoel@pa h. ] Thanks, that works. Nice to see that little notes.rb sinatra app in
    |     + 340844 [lists@gr gw ] I think if you saw the whole thing you'd see why the db is more of a
    |       340847 [shortcutter@] I have to admit that I thought of a database as well.  Keywords that
    |       340897 [lists@gr gw ] Heh. No, it's not huge, certainly not by today's standards of huge.
    + 340795 [shortcutter@] Did you actually measure significant differences in time or are you
      340797 [b.candler@po] My reading of the description was that each "chunk" was a separate file,
      340798 [shortcutter@] But he writes "the file" which makes me think that there is only one

Re: RDoc 2.3 now with Darkfish, without CHM and extra HTML t
340703 [rogerpack200] I like darkfish.  Thought I'd pipe in a couple suggestions.
340704 [tomcloyd@co ] I totally concur about the low contrast fonts. Accessibility gurus say

ruby beginner...
340711 [padysrini@gm] I have ruby 1.8.6 installed on windows. I want to view the doc
340713 [james.britt@] It's old. :(
340715 [james.britt@] Done.  Updated the rdoc .tgz downloads for the 1.8.6 docs.
340717 [padysrini@gm] Generated the docs.

Re: nfc 1.0.0 Released
340716 [thaeger@gm i] I'm really intrigued by this gem, and have been trying to get it to
+ 340718 [ryand-ruby@z] nfc (the gem) uses ffi to attach to a C library of the same name. You
| 340722 [thaeger@gm i] Thanks, Ryan. I had the C library in place. Aaron Patterson's PATH
+ 340719 [aaron@te de ] You need to have libnfc installed, and make sure that the dylib (or so)
  340723 [thaeger@gm i] Thanks for the reply. That gave me enough to get there.
  340739 [aaron@te de ] Hrm.  ffi uses dlopen for loading the dynamic library.  The man page for

How to remove/delete/destroy class variable in Ruby 1.9?
340720 [bartoszwais@] Ok, code below shows better what I am talking about, I understand that
+ 340725 [dblack@ru yp] You're trying to maintain and alter state on a per-class basis, which
| 340727 [shortcutter@] The only commonality I can think of off the top of my head is the fact
| 340728 [dblack@ru yp] But you're always within an instance of something. You can access
+ 340731 [lists@be tr ] I cannot reproduce it here with Ruby 1.8.6. Are you using 1.9?
| 340732 [dblack@ru yp] I forgot all about that method. I guess I'm rusty on class variables,
| 340735 [lists@be tr ] I don't use them either. Sometimes I wonder about that because
| 340741 [dblack@ru yp] Yes; I definitely think it's a case where the "classes are objects
| 340753 [bartoszwais@] Thank you guys, all your tips were very useful.
+ 340734 [dblack@ru yp] The first time through I didn't even quite pick up on what you were

[ANN] allgems.ruby-forum.com "release 440ca77a867a317bd9b35"
340729 [rogerpack200] Pleased to announce release version "commit

WORLD BEAUTIFUL ARTICAL AND WALLPAPERS
340733 [goldengodss@] And beautiful wallpapers And fantastic Actres Pics...

Newbie help
340742 [ouikoto@ya o] no such file to load -- mysql
340746 [hassan.schro] e sorry, but something went > wrong.We've been notified about this issue an=
340747 [ouikoto@ya o] tnx hassan,
+ 340748 [hassan.schro] Looks like you're running Windows, so I can't help much with the
+ 340750 [bbxx789_05ss] Posted via http://www.ruby-forum.com/.

to_proc and Proc/block conversion with &
340743 [russ@ps ex c] words = %w(ardvark   anteater   llama)
+ 340744 [dblack@ru yp] There's no such thing as returning a block. A block is a syntactic
| 340754 [robert.dober] It might be interesting to note that in Ruby1.9 the to_proc is not
| 340755 [dblack@ru yp] I guess it's an optimization. So take my explanation as behavioral
| 340756 [dblack@ru yp] Also, it seems to be the same in 1.8. So I guess a refinement of the
| + 340760 [robert.dober] Absolutely agree, but maybe this should go into rubyspec...
| + 340770 [russ@ps ex c] Thanks.  Interesting discussion.
|   + 340775 [dblack@ru yp] I'm still not sure whether the lack of calling to_proc on the object
|   + 340776 [vjoel@pa h. ] That still makes & sound like an operator method that can be called on
|     340777 [dblack@ru yp] It's not exactly a conversion, though, since as you point out, blocks
|     340778 [vjoel@pa h. ] "Eigenproc" ?  :P
+ 340745 [vjoel@pa h. ] It may be helpful to think of the & in
  340752 [dblack@ru yp] That's not going to access the caller's code, though, since you're
  340757 [lists@be tr ] Proc.new
  340758 [dblack@ru yp] How odd. I wonder what the point of that is. I'd rather be warned if I
  340765 [vjoel@pa h. ] Maybe it should be deprecated in practice. It's not apparent what's

Convert an Character to the ASCII Character Code
340772 [teckirocker@] I have Ruby 1.9.1p129 and I want to convert an ASCII character to an
340780 [aaron@te de ] "e".getbyte(0)
+ 340781 [teckirocker@] That is perfect, thanks a lot!
+ 340790 [b.candler@po] irb(main):001:0> "e".ord

[QUIZ][SUMMARY] Plot the Shape (#211)
340773 [yahivin@gm i] There were many good solutions to this week's quiz, but Chris Howe's

Re: (paypal payment)( www.niketrade08.cn )Discount  Nike Air Jordan 12 Factory
340785 [dlzc1@co .n ] jwuptownman@163.com

[ANN] looksee 0.0.1 Released
340788 [george.ogata] looksee version 0.0.1 has been released!
340807 [dvdplm@gm il] Very very nice. Really like it.
341015 [george.ogata] Thanks for the feedback!

AUTO: Joe Grastara is out of the office (returning 07/07/2009)
340791 [Joe.Grastara] ...

Web Designing
340793 [hiuwihb@gm i] ***************************************************************************************************************

Selenium, secure connection failed, security certificate
340796 [lord_kga@ya ] I am doing some testing with Selenium, and i have a problem.
+ 357961 [amarkosian@l] Has somebody actually posted a solution for this problem? I an
+ 357979 [jazzezravi@g] Have you tried this solution -->
  358068 [amarkosian@l] Thanks Raveendran, setting a special firefox profile for Selenium RC to

How to test %x[] calls?
340800 [dvdplm@gm il] how can I set an expectation on an external command execution?
340811 [b.candler@po] I guess it's because Kernel isn't the receiver of the call. It's the
340812 [b.candler@po] ... or inside your own object, it's that object which is the receiver
340816 [dvdplm@gm il] Totally works! You rock! :)

String conversion, from a base to an other new one
340801 [z4n9ief@gm i] Is there a way, in Ruby, to convert this kind of value: "3m74jnfu9f"
340805 [robert.dober] ars)?
340815 [z4n9ief@gm i] Work perfecly.  Thanks!

Downloading the files shows data instead of download box.
340802 [vamsikrishna] i'm saving a file in the database( the content of file.) and i provided
340810 [b.candler@po] Probably you need 'attachment' not 'attachement'

several replacing problems
340806 [dracoola4u20] Take 1 xls file witch contains 2 columns. column A contains several
340809 [b.candler@po] Are your loops nested right? You seem to have an outer loop which reads
340850 [dracoola4u20] this is exactly what i'm trying to do but can't seem to get it right.
340962 [dracoola4u20] I managed to figure out how to do the hash and get rid of those annoying
340964 [dracoola4u20] forgot the new code :D

Regexp-engine: ruby vs. perl
340808 [aschmalowsky] I've got a question about ruby's regexp-engine: I'm wondering why ruby's
340823 [vikkous@gm i] Just guessing here, but usually when regexes are slow it's because of

A define_method question
340814 [justondavies] I have a question about define_method, more specifically how to bend
+ 340819 [ryand-ruby@z] in almost all cases I'm prolly going to suggest using eval instead of
+ 340820 [vjoel@pa h. ] Are you sure mixins won't work?
  340824 [justondavies] I did think of that, and it's probably the route I wind up taking
  340825 [vjoel@pa h. ] I'd still avoid eval-ing code and try to use data structures of procs,
  340829 [justondavies] That looks pretty sharp actually, after reading more about proc
  340911 [justondavies] I can't seem to get Ruby2Ruby to work, and despite my efforts I can't
  340913 [vjoel@pa h. ] Yes. The result isn't a proc/lambda, but it is callable.
  340915 [justondavies] That'll do, after looking at the doc looks like you an .to_proc a
  340917 [vjoel@pa h. ] Maybe you don't even need to call #to_proc. From a duck-typing

How to upgrade ruby to a specific version
340822 [tom999@gm .n] What's the correct linux command for upgrading ruby to a specific
+ 340855 [tom999@gm .n] Anybody...?
+ 340862 [stefano.croc] That depends on which linux distribution you use. Without knowing that, we
  340865 [tom999@gm .n] Sorry, I didn't know that...
  340886 [spox@mo sp x] And while Ubuntu has confirmed the bug, and it has been fixed in Debian
  340892 [tom999@gm .n] Thanks for your answer.
  340896 [rick.denatal] Assuming you mean via apt-get or it's brethren, no.  You're limited to
  + 340898 [tom999@gm .n] Thanks!
  + 340943 [headius@he d] It does...and I patched around one vector for it, but the fact that

Help with rdoc - generate documentation for Ruby 1.9.1 Standard  Library?
340827 [bjoerngt@go ] since it isn't available online anywhere (afaik), I tried to generate
+ 340831 [bjoerngt@go ] Found my mistake - should habe run rdoc on the installed ruby, not the
| 340852 [drbrain@se m] That's wrong.  You need to run rdoc against the source, and you should
+ 340853 [drbrain@se m] Looks like ext/.document wasn't updated for 1.9.1.
  340858 [bjoerngt@go ] That would explain a lot, thanks!
  + 340864 [rogerpack200] Nice I hadn't noticed those before for some reason [adding a mention to
  | 340926 [ryand-ruby@z] You mean something like this?
  | 340929 [rogerpack200] Yeah that's the one.
  | 340976 [ryand-ruby@z] Ah... I see... then why'd you ask for it when it is already there?
  | 340986 [rogerpack200] Because I didn't see it the first time I looked through the docs.
  + 340914 [drbrain@se m] RDoc itself handles this just fine, but sometimes the files themselves
    340925 [james.britt@] Depends on what is meant by "fine."

Getting Started with Ruby 1.9, Rails and SQLite3, All on Windows.
340830 [luislavena@g] Hey Everybody,
340836 [thucdat@ho m] ...
340843 [luislavena@g] I think my Windows background will not provide the cleanest answer to

Re: Help with rdoc - generate documentation for Ruby 1.9.1 S
340832 [rogerpack200] Did it get the Gem class and such?  I've been having some trouble
340834 [bjoerngt@go ] Yes it seems to have the Gem class.
340842 [bjoerngt@go ] I have now tried to use the horo template from rails, but without

Getting Started with Ruby 1.9, Rails and MySQL, All on Windows.
340837 [luislavena@g] Hey Guys,

[ANN] ri_cal 0.7.2 Released
340845 [rick.denatal] ri_cal version 0.7.2 has been released!

Speeding up virtual keycode scanning
340846 [globyy3000@h] GetAsyncKeyState = Win32API.new('user32','GetAsyncKeyState', ['i'], 'i')
340854 [ryand-ruby@z] so you're cycling through all the virtual keycodes twice per loop and

Ruby Module
340848 [vetrivel.bks] I have written some of the funcions in a file . The filename is test.rb
+ 340849 [shortcutter@] Do you have set the shebang line properly?  Did you make sure that
+ 340851 [b.candler@po] Can you paste the *exact* and *complete* error message you see? This

[ANN] jake 1.0.0 Released
340856 [jcoglan@go g] jake version 1.0.0 has been released!

Breaking the loop in case of EOF
340859 [agormar@gm i] I need to break a loop when program gets an EOF from STDIN.  For example
340863 [b.candler@po] gets will return nil in this case.
+ 340867 [shortcutter@] I believe a more idiomatic way would be
| 340877 [agormar@gm i] Thanks for your answers.
+ 340891 [sepp2k@go gl] STDIN.each_line do |str|

Upgrading Ruby on Unix
340866 [bpenrose112@] Do I need to re-install gems after upgrading from Ruby 1.8.6 to 1.8.7 on
340908 [ryand-ruby@z] pure ruby ones: no

Ruby 1.8 - character encoding
340868 [thomas@th mt] I write Ruby plugins for Google Sketchup.
+ 340870 [thomas@th mt] Looking at http://en.wikipedia.org/wiki/ISO-8859-1
| 340873 [thomas@th mt] Sorry, I just realised that the extra number was the octal variant.
+ 340878 [gregory.t.br] error
| 340879 [thomas@th mt] I have seen that series. I still can't work out how Ruby determines what
| 340880 [gregory.t.br] I  missed why you wouldn't just set $KCODE="U" and stick w. UTF-8?
| + 340881 [gregory.t.br] Also, since you know the original encoding, you can use IConv to
| + 340884 [thomas@th mt] Because Sketchup uses Ruby to allow users to write plugins for the
|   340899 [thomas@th mt] I've been doing some testing on the 128-255 range, and from what I can
|   340978 [thomas@th mt] I checked the $KCODE variable and it returns "UTF8".
|   340981 [james@gr yp ] ary
|   340983 [thomas@th mt] What does the IO method require? Is it the Ruby IO methods or the system
|   340985 [james@gr yp ] That's a good question.  I'm not sure what it does on Windows.
|   + 340987 [thomas@th mt] Any clues what I does on OSX? The scripts will run on macs as well.
|   | 340992 [billk@ct .c ] Unlike that other OS, both OS X and Linux have taken an approach
|   | + 340995 [billk@ct .c ] Hmm, I take it back; even for 8-bit it appears slightly more complicated
|   | | 341001 [thomas@th mt] Ok. Thanks for the feedback. This gives me some pointers to where I
|   | + 341509 [thomas@th mt] I found from the Windows API that you actually are meant to call the
|   + 340988 [billk@ct .c ] It's only begun to improve as of the ruby 1.9.2 development version.
|     340989 [thomas@th mt] I see. So Ruby calls Win32 APis that doesn't handle UTF-8. But what do
|     340991 [thomas@th mt] I just tried on a Mac - It worked fine with Norwegian letters there. So
+ 340882 [james@gr yp ] What you are doing there is transcoding from UTF-8 to Latin-1 (or =20
+ 340883 [chust@we .d ] how Windows interprets file paths depends on which API calls you use

[ANN] siren 0.2.0 Released
340869 [jcoglan@go g] siren version 0.2.0 has been released!

Mechanize: How to scrape accented chars that weren't entered as  entities?
340871 [patlaj@gm il] I'm trying to scrape links using Mechanize. Sometimes accented characters
340893 [aaron@te de ] What version of nokogiri / mechanize do you have installed?  I ran your
340940 [patlaj@gm il] Thanks Aaron - I thought I was up-to-date, but I guess I not. I did a gem

Can't build Ruby 1.9.1p129 on a 64 bit openSUSE 11.0 system
340874 [roland.crues] I tried to build Ruby 1.9.1p129 on a 64 bit openSUSE 11.0 system.
340907 [ryand-ruby@z] 1) Don't thread-hijack, ever.
342382 [peter.fitzgi] I'm confused where the thread-hijack is in this?  I recieved the message as
342421 [ryand-ruby@z] In-Reply-To: 	<332f9d412da78954650be79c435f4472@ruby-forum.com>

App fails on Windows, but works on OS X.
340876 [randygeneral] I've been working on a query app for Battlefield 2142 servers, and the
+ 340902 [lists@gr gw ] Sounds suspiciously like a networking issue -- firewall, port conflict,
| 340904 [randygeneral] Thanks for responding.
| 340905 [garryfre@pa ] ...
| 340912 [randygeneral] I gave that a shot after compiling the script using OCRA. Unfortunately
+ 340918 [rogerpack200] I assume flipping the order doesn't help? I would probably next make
  340947 [randygeneral] Thank you so much, Roger! Setting Basic_Socket.do_not_reverse_lookup to
threads.html
top