Message from Tom Machinski Most recent post: 10/28/2007 8 authors and 17 replies. Hi group, I'm running a very high-load website done in Rails. The number and duration of queries per-page is killing us. So we're thinking of using a caching layer like memcached. Except we'd like something more sophisticated than memcached. Allow me to explain. memcached is like an object, with a very limited API: basically #get_value_by_key and #set_value_by_key. One thing we need, that is not supported by memcached, is to be able to store a large set of very large objects, and then retrieve only a few of them by certain parameters. For example, we may want to store 100K Foo instances, and retrieve only the first 20 - sorted by their #created_on attribute - whose #bar attribute equal 23. We could store all those 100K Foo instances normally on the memcached server, and let the Rails process retrieve them on each request. Then the process could perform the filtering itself. Problem is that it's very suboptimal, because we'd have to transfer a lot of data to each process on each request, and very little of that data is actually needed after the processing. I.e. we'd pass 100K large objects, while the process only really needs 20 of them. Ideally, we could call: memcached_improved.fetch_newest( :attributes => { :bar => 23 }, :limit => 20 ) and have the improved_memcached server filter and return only the required 20 objects by itself. Now the question is: How expensive'd it be to write memcached_improved? On the surface, this m read more about A memcached-like server in Ruby - feasible?
Message from Shuaib Zahda Most recent post: 10/28/2007 5 authors and 8 replies. Hello I am trying to output the duplicate elements in an array. I looked into the API (application programming interface)of ruby I found uniq method which outputs the array with no duplication. What I want is to know which elements is duplicated. For example array = ["apple", "banana", "apple", "orange"] => ["apple", "banana", "apple", "orange"] array.uniq => ["apple", "banana", "orange"] I want the method to tell me that apple is the duplicated element I tried this but it doesn't work array - array.uniq any idea Regards Shuaib -- Posted via http://www.ruby-forum.com/. read more about Duplicate elements in array
Message from ry dahl Most recent post: 10/28/2007 3 authors and 4 replies. This is a library which provides a single function. The function takes as input an IP address and it outputs a hash containing best-guess geographical information (like city, country, latitude, and longitude). Actually this is only a Ruby binding to a C library which provides this function. Also, you must download a large binary database with all this mapping information. It is kindly provided free of charge by MaxMind.com. There are other attempts at providing this functionality in Ruby but mine is very simple and fast. http://s3.amazonaws.com/four.livejournal/20071026/GeoIPCity-0.0.1.tgz http://s3.amazonaws.com/four.livejournal/20071026/GeoIPCity-0.0.1.gem ry read more about [ANN] GeoIP C lib bindings
Message from Aaron Patterson Most recent post: 10/28/2007 3 authors and 4 replies. Hi everyone, I'm writing a racc parser, and I need to recover from parse errors. Basically I'm writing a CSS parser, and I need to handle poorly formatted CSS. Unfortunately I can not seem to find any good documentation or examples on error recovery. I have read the Racc documentation about on_error and entering "error recovering mode", as well as calling yyerrok to leave error recovering mode, but I do not know what that actually means. I have also discovered the "error" rule, but I do not want to explicitly add that rule to every rule that could possibly have an error. Any tips'd be greatly appreciated. Thanks! -- Aaron Patterson http://tenderlovemaking.com/ read more about Racc error recovery
Message from Tim Hunter Most recent post: 10/28/2007 2 authors and 4 replies. I have just uploaded RMagick 2.0.0 beta5. This beta release can be built with the latest rev of Ruby 1.9.0. RMagick 2.0.0 Highlights ------------------------------ o New installation uses setup.rb exclusively o Requires Ruby 1.8.2 or later o Requires ImageMagick 6.3.0 or later o GraphicsMagick not supported o New Image#destroy! method destroys individual image objects, making the memory available for reuse o New Magick.trace_proc method helps monitor memory usage o Many new methods added o Two GraphicsMagick-only methods removed. o Many deprecated, outdated, and mostly undocumented methods and constants removed. See the Change Log for information about new features and bug fixes since RMagick 1.15.10. Please read the Release Notes before downloading. Please report problems to the RMagick Help Forum on RubyForge: http://rubyforge.org/forum/?group_id=12. This beta release isn't available as a RubyGem. RMagick 2.0.0 is available as always from RubyForge: http://rubyforge.org/projects/rmagick/. Please wait a few hours for the mirrors to catch up. RMagick 2.0.0 is an interface to the ImageMagick (www.imagemagick.org) image processing library. RMagick 2.0.0 supports more than 100 image formats, including GIF, JPEG, and PNG, and comes with comprehensive HTML documentation. The RMagick home page is http://rmagick.rubyforge.org. -- RMagick OS X Installer [http://rubyforge.org/projects/rmagick/] RMagick Hints & Tips [http://ruby read more about [ANN] RMagick 2.0.0 beta5 builds with Ruby 1.9.0
Message from Junkone Most recent post: 10/28/2007 2 authors and 3 replies. I got an exception E:/TradingTools/CODE/ImportTrade.rb:20:in `execute' The associated piece of code is st= dbConn.prepare("insert into raw_data (SYMBOL,ACTION,SIZE,PRICE,DATE_TIME_OF_TRADE ,EXECUTION,ACCOUNT_ID) VALUES(?,?,?,?,?,?,?)") st.execute(dataArray[0],dataArray[1],dataArray[2],dataArray[3],tradeDate,dataArray[5],dataArray[6]) st.close How do I find out what the exception details were that was triggered at st.execute in this case. any assistance will be appreciated read more about how to find what the sql excepion was with mysql
Message from SpringFlowers AutumnMoon Most recent post: 10/28/2007 43 authors and 79 replies. How fast does your Ruby run? I got 53648 iterations per second running the following program, on an Intel 3.2 GHz HT, Win XP machine: -------- C:\> ruby calculate.rb 55 Ruby 1.8.6 patch 0 on i386-mswin32 It took 18.64 seconds to run. 53648 iterations per second. -------- n = 1_000_000 start_time = Time.now for I in 1..n t = (1..10).inject {|x, y| x + y } end finish_time = Time.now p t puts print "Ruby ", RUBY_VERSION, " patch ", RUBY_PATCHLEVEL, " on ", RUBY_PLATFORM puts print "It took #{finish_time - start_time} seconds to run." print " #{(n / (finish_time - start_time)).to_i} iterations per second.\n" -- Posted via http://www.ruby-forum.com/. read more about How fast does your Ruby run?
Message from Laurent Sansonetti Most recent post: 10/28/2007 19 authors and 33 replies. Hi, Leopard, Mac OS X 10.5, will very soon be available to everyone! Many of you've been wondering about the changes that will impact the Ruby environment. We preventively compiled a list of all changes, and you can now access it from here: http://ruby.macosforge.org http://trac.macosforge.org/projects/ruby/wiki/WhatsNewInLeopard As you can see we also just created a new Ruby project on MacOSForge, with the aim of providing more information regarding the usage of Ruby on the Mac in the future. Enjoy! Laurent read more about [ANN] Ruby Changes in Leopard
Message from Charles Oliver Nutter Most recent post: 10/28/2007 4 authors and 6 replies. For the most part, we have been pretty good about keeping JRuby discussions off the ruby-talk list, because in general it seemed like the right thing to do. But lately, it seems like people are missing information about what JRuby can do, how complete the implementation is, and where we're going with it. So I'd like to start talking more about JRuby on this mailing list. I will start it off with a little introduction to JRuby and what it can do right now. JRuby is Ruby for the JVM, also known as the JAVA Virtual Machine. It's written mostly in JAVA, though there's some libraries written in Ruby, and we include the entire Ruby 1.8.x (currently 1.8.5) stdlib. In the 1.0 line, JRuby operates primarily as an interpreter comparable to the standard Ruby 1.8.x implementation. In 1.1, JRuby includes a 100% complete Ruby-to-bytecode compiler, that increases performance substantially. JRuby runs Rake, RubyGems, Rails, Mongrel, and nearly all pure-Ruby libraries and apps that are out there. Compatibility has gotten closer and closer to 100% over the past year. There are a number of organizations rolling out real production Rails apps on JRuby rather than on regular Ruby, usually because JRuby fits better into JAVA-oriented organizations, but increasingly because JRuby offers libraries, stability, and performance characteristics in many ways better than running on the standard implementation. It's not better across the board, but it's s read more about Talking more about JRuby
Message from Charles Oliver Nutter Most recent post: 10/28/2007 5 authors and 12 replies. As some of you may have heard, we're considering disabling ObjectSpace.each_object by default in JRuby. Primarily, this is for performance; to support each_object, we've to bend over backwards, maintaining lists of weak references to all objects in the system and periodically cleaning out those lists. Here's some example performance, from a fractal benchmark in the JRuby source: With ObjectSpace: Ruby Elapsed 45.967000 Without ObjectSpace: Ruby Elapsed 4.280000 What's most frustrating about this is that almost *no* libraries or apps use each_object, and it's a terrible performance hit for us. The one really visible use of each_object is in test/unit, where the default console-based runner does each_object(Class) to find all subclasses of TestCase. Because this is a heavily-used library (to say the least), I have made modifications to JRuby to always support each_object(Class) by maintaining a bidirectional graph of parent and child classes. So that much would not go away (but I'd prefer an implementation that uses Class#inherited, since it'd be cleaner, faster, and deterministic). So...I'm writing this to see what the general Ruby world thinks of us having ObjectSpace disabled by default, enableable via a command line option (or perhaps through a library? -robjectspace?). I think more and more of you may want to give JRuby another look over the next few months, so I think we need to involve you in such decisions. - Charlie read more about JRuby disabling ObjectSpace: what implications?
Message from Randy Kramer Most recent post: 10/28/2007 3 authors and 5 replies. Does anyone have an email address for the Huihoo site (http://www.huihoo.com/) or the owner of the site? I found their summary of Ruby Syntax, and the first part was helpful to me, but there are some what I will call Japanese Englishisms (???) and I was going to offer some corrections. That page is: http://docs.huihoo.com/ruby/ruby-man-1.4/syntax.html Much of the site is in Japanese, some isn't, but I could not find anything that looked like an email address while using my mouse to hover over the links. Randy Kramer read more about Email address for Huihoo site (http://www.huihoo.com/)?
Message from Jacob Burkhart Most recent post: 10/28/2007 3 authors and 6 replies. So I struggled through the installation of swig, subversion and the ruby bindings, and now I want to connect to subversion from ruby. It turns out this is usually done through the filesystem with: Svn::Repos.open But, I do not have filesystem access to my repository, I only have web access So I need to do something like this: url = 'http://trac-hacks.swapoff.org/svn' ctx = Svn::Client::Context.new cb = Svn::Ra::Callbacks.new(ctx.auth_baton) cb.auth_baton = Svn::Core.auth_open([]) CFG = Svn::Core::config_get_config(nil) s = Svn::Ra::Session.open(url, cfg, cb) st = s.stat(", 1) (from: http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/#comment-137) The problem with that one, is that there's no way to pass in my username and password for htaccess Looking at the swig and other documentation It seems I need to pass a C struct struct svn_auth_provider_object_t To Svn::Core.auth_open([]) And that C struct needs to also contain a function pointer to a function that then returns username and password somehow? 00149 typedef struct svn_auth_provider_object_t 00150 { 00151 const svn_auth_provider_t *vtable; 00152 void *provider_baton; 00153 00154 } svn_auth_provider_object_t; http://svn.collab.net/svn-doxygen/group__auth__fns.htmlSo it seems I need to figure out how to implement a C function pointer from ruby over swig, I'm guessing this is not possible.... So, if that's the case I was t read more about Subversion Ruby Bindings access to URL
Message from Helder Ribeiro Most recent post: 10/28/2007 3 authors and 3 replies. Does anyone know if there's a sort of library for the game Checkers in Ruby? Something that'd, at least: 1. given a board state and a player, tell me what the legal moves are; 2. given a board state and a move, tell me if it's legal; 3. given a board state, tell me if it's a draw or a win (and who won). Also, if there is not a library (very likely), a complete game that's open source, from which I could extract that,'d be good enough. Cheers, Helder P.S.: for the curious, I'm looking for this because I want to implement the checker player from Mitchell's "Machine Learning" book for a course assignment, but I do not want to trouble with the checkers rules themselves. -- XING profile: https://www.xing.com/profile/Helder_Ribeiro LinkedIn profile: http://www.linkedin.com/in/helderribeiro Blog: http://obvio171.wordpress.com read more about Checkers library
Message from Raymond OConnor Most recent post: 10/28/2007 3 authors and 5 replies. The net/ftp size method is supposed to return the size of a remote file, but when the size of the remote file is > 4GB it seems to return the wrong size. The size of the remote file I'm testing is about 4.5 GB and size() returns about 0.5 GB. Anyone having the same problems? Is there somewhere I can report this problem? Thanks -- Posted via http://www.ruby-forum.com/. read more about FTP size incorrect for files > 4GB
Message from Devi Web Development Most recent post: 10/28/2007 4 authors and 8 replies. I am trying to write a parser for a text-based file format. Files in this format frequently become very large. While the specification specifically allows applications to crash on large files, I know several people who have taken to editing these files by hand in Notepad or other basic text editors. This format isn't at all friendly for this type of editing, and it is extremely tedious work, but their programs all crash due to the size of these files. What I really want to know is: I had been using File.readline and saving a lot of temporary files via tempfile.rb (http://www.ruby-doc.org/stdlib/libdoc/tempfile/rdoc/index.html). However, I have heard that File.readline is in fact equivalent to File.read.split('\n').each, which'd really ruin my purpose of not loading the whole file. I'd really like to keep this in ruby, as I want to package the whole thing via the wonderful rubyscipt2exe, as well as, of course, a standard rubygem. What I'd actually really love is if there was a way to read lines 4 through 7 without reading the whole file. My current method has made the program not nearly as beautiful as ruby ought to be. ------------------------------------------- Daniel Brumbaugh Keeney Devi Web Development Devi.WebMaster@xxxxxxxxxxx ------------------------------------------- read more about NOT reading an entire file into memory
Message from Gary Most recent post: 10/28/2007 4 authors and 8 replies. I'm using cygwin to try to build an extension in C++. I have stripped down the pickaxe book's example (http://www.rubycentral.com/pickaxe/ ext_ruby.html) to the bare minimum. It looks like: #include "ruby.h VALUE cTest; void Init_Test() { cTest = rb_define_class("Test", rb_cObject); } If I name the file Test.c, it works nicely. If I name the file Test.cpp I get the following error when I try to require the file in irb. LoadError: No such file or directory - /usr/lib/ruby/site_ruby/1.8/ i386-cygwin/Test.so from /usr/lib/ruby/site_ruby/1.8/i386-cygwin/Text.so from (irb):1 For the whole proceedure I do: make clean ruby extconf.rb make make install irb require "Test" Any helpful ideas? read more about Building an extension in C++
Message from Junkone Most recent post: 10/28/2007 9 authors and 17 replies. Hello I have a date like 20070801 in a string. how do I change it to 2007/08/01 using regex thanks read more about convert string format
Message from Dave River Most recent post: 10/27/2007 5 authors and 6 replies. I know ruby treat an object as false whenever it is nil or false. However, I wonder if there are any other ways to change this behavior. For example, I define a class called AreYouOk. class AreYouOk def initialize(ok) @xxxxxxxxxxx = ok end end x = AreYouOk.new(false) puts "you are ok" if x Since x isn't nil, ruby prints " you are ok". However, I want ruby to make the decision based on the @xxxxxxxxxxx instance variable. Are there any ways to do that? I know that there is a method called __bool__ in Python. You can define your __bool__ method in your class. The truth value of an object is based on the return value of __bool__. Does ruby provide similar mechanism? -- Posted via http://www.ruby-forum.com/. read more about Truth value evaluating of an object
Message from Greg Willits Most recent post: 10/27/2007 2 authors and 3 replies. Is there a way to add a path to $: permanently so I do not have to append a path at the start of every script that needs it? -- Posted via http://www.ruby-forum.com/. read more about how modify $: permanently?
Message from Greg Willits Most recent post: 10/27/2007 5 authors and 7 replies. '1sqHmb5b8G9mN' < '1Xv5LeB9bMdar' Would not you think that is supposed to be TRUE ? All my text editors and Excel and Numbers all sort it so that 1s... comes before 1X... But Ruby says the above comparison is false. What am I missing? -- gw -- Posted via http://www.ruby-forum.com/. read more about Error in Ruby text comparison?
Message from Thufir Most recent post: 10/27/2007 6 authors and 11 replies. "code_words.each do |real, code| idea.gsub!( real, code ) end You see the each method? The each method is all over in Ruby. It's available for Arrays, Hashes, even Strings. Here, our code_words dictionary is kept in a Hash. This each method will hurry through all the pairs of the Hash, one dangerous word matched with its code word, handing each pair to the gsub! method for the actual replacement." from page 33 of whys-poignant-guide-to-ruby.pdf Is this similar to nested for statements? I do not think so. In the first line, why are both "real" and "code" part of the interation? From my understanding of a hash, you can iterate through the keys only and then find the corresponding bit of the hash. Why'd this fail: code_words.each do |real| idea.gsub!( real, code ) end would not the corresponding code get looked up by during the loop? Or, how could the above be changed so that it'd work? thanks, Thufir read more about .each do |foo, bar| what does bar do?
From my understanding of a hash, you can iterate through the keys only
Message from Ruby Quiz Most recent post: 10/27/2007 6 authors and 8 replies. The three rules of Ruby Quiz: 1. Please don't post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. 2. Support Ruby Quiz by submitting ideas as often as you can: http://www.rubyquiz.com/ 3. Enjoy! Suggestion: A [QUIZ] in the subject of emails about the problem helps everyone on Ruby Talk follow the discussion. Please reply to the original quiz message, if you can. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= by Eric Mahurin Have you ever wondered how a text buffer might be represented in a text editor or word processor? A simple string to represent text buffer is not efficient enough because inserting (i.e. typing) and deleting (backspace) in the middle would result in moving all of the text to the end for each operation. A data structure that can efficiently insert and delete in the middle is needed. The task is to implement data structures for efficiently editing text. One common data structure is a gap buffer: http://en.wikipedia.org/wiki/Gap_buffer Other options to consider include: ropes (see quiz #137), linked lists, simple strings, or a multi-level combination of data structures (i.e. for lines vs. characters in a line). There are many data structures that may work efficiently with simple editing operations, but not all of those data structures will work well for more complex functionality. All of the basic operations occu read more about [QUIZ] Editing Text (#145)
Message from forgottenwizard Most recent post: 10/27/2007 4 authors and 12 replies. This is an odd problem, I admit. I'm currently working on a short script to sort a set of JPEGs by size, but right now I'm just trying to move them from point A to point B (I'm still learning Ruby, so I do this to try and figure things out before getting into the big stuff), and so far I have gotten so far as: ####################CODE#################### #!/usr/bin/ruby -wd require "RMagick" require "fileutils" Dir.chdir(ARGV[0]) for pix in Dir.glob("*.{jpeg,jpg,png}") filetype = Magick::Image::read(pix).first.format workdir = Dir.pwd If File.directory?(filetype) then FileUtils.move("#{pix}", "#{workdir}/#{filetype}") else Dir.mkdir(filetype) FileUtils.move("#{pix}", "#{workdir}/#{filetype}") end end ####################//CODE#################### The error I keep getting these error messages: Exception 'Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:1420 - no such file or directory - <insert pathname to where jpg is being moved to> Exception 'Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:1200 - no such file or directory - <insert pathname to where jpg is being moved to> for every file. These errors come, while the file is STILL moved. I'm not sure what the error is, but its a noisy one (testdir I made for trying this out has ~1900 files in it). Any clue as to the problem? read more about Problem using FileUtils to sort JPEG files
Message from Devi Web Development Most recent post: 10/27/2007 3 authors and 3 replies. I just stumbled across this. It's an absolute beginning programmer's tutorial (for programming and ruby), supposedly in the style of A Little Lisper (or A Little Schemer)(I have not read either). Anyhow, I have never seen it referenced anywhere. A Little Ruby, A Lot of Objects http://www.visibleworkings.com/little-ruby/------------------------------------------- Daniel Brumbaugh Keeney Devi Web Development Devi.WebMaster@xxxxxxxxxxx ------------------------------------------- read more about A Little Ruby, A Lot of Objects
Message from Matthew Lagace Most recent post: 10/27/2007 2 authors and 3 replies. Hello, I am usring open-uri to open an https:// link and when it tries to read it, I get the 'connect' : certificate verify failed error. How can I bypass this SSL verification? Thanks, M -- Posted via http://www.ruby-forum.com/. read more about open-uri + OpenSSL
Message from SpringFlowers AutumnMoon Most recent post: 10/27/2007 7 authors and 16 replies. I thought it is said that Mac OS X Tiger comes with Tk? when I do ruby require 'tk' it gives the following dyld: NSLinkModule() error dyld: Library not loaded: /usr/X11R6/lib/libX11.6.dylib Referenced from: /usr/lib/ruby/1.8/powerpc-darwin8.0/tcltklib.bundle Reason: image not found Trace/BPT trap -- Posted via http://www.ruby-forum.com/. read more about Mac OS X Tiger comes with Tk?
Message from Pokkai Dokkai Most recent post: 10/27/2007 5 authors and 6 replies. how to find all members list(member functions & member variables for all access specifiers like public, private and protected) ? -- Posted via http://www.ruby-forum.com/. read more about find all member in a class
Message from Ari Brown Most recent post: 10/27/2007 6 authors and 6 replies. Hey all, I adore Ruby. I love everything about it. The debugging, the community, the syntax.... But my code sorta looks like VBScript - simple and generic. I have seen some really great Ruby code - some I can understand, others I just can not wrap my mind around. But how do you learn to think like that? Can anyone recommend a book or site that teaches you to write Ruby succinctly and rubily? thanks, aRi --------------------------------------------| If you're not living on the edge, then you're just wasting space. read more about Learning the fine points of Ruby
Message from Jayson Bailey Most recent post: 10/27/2007 3 authors and 5 replies. I'm trying to use ActiveRecord with SQL Server and ADO in a regular ruby script, but can not get it working. I have seen a bunch of examples but can not get them to work. Here's what I have got: require 'rubygems' require 'active_record' class TestMO < ActiveRecord::Base ActiveRecord::Base.establish_connection( :adapter => "sqlserver", :mode => "ado", :database => "mydb", :username => "user", :password => "pass" ) set_table_name "test_mo" end I have got the ADO.rb in the right place I believe. Here's the error I'm getting: custom_require.rb:27:in `gem_original_require': no such file to load -- Posted via http://www.ruby-forum.com/. read more about ActiveRecord / SQL Server / ADO
Message from Robert Klemme Most recent post: 10/27/2007 3 authors and 3 replies. Hi, I seem to receive messages with garbled headers. Does anybode else experience this? Kind regards robertSample: <empty line> Delivered-To: shortcutter@xxxxxxxxxxx Received: by 10.142.158.20 with SMTP id g20cs16864wfe; Thu, 25 Oct 2007 14:29:55 -0700 (PDT) Received: by 10.141.53.1 with SMTP id f1mr1200373rvk.1193347792451; Thu, 25 Oct 2007 14:29:52 -0700 (PDT) Return-Path: <ruby-talk-admin@xxxxxxxxxxx> Received: from carbon.ruby-lang.org (carbon.ruby-lang.org [221.186.184.68]) by mx.google.com with ESMTP id b21si5062013rvf.2007.10.25.14.29.10; Thu, 25 Oct 2007 14:29:52 -0700 (PDT) Received-SPF: pass (google.com: domain of ruby-talk-admin@xxxxxxxxxxx designates 221.186.184.68 as permitted sender) client-ip=221.186.184.68; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ruby-talk-admin@xxxxxxxxxxx designates 221.186.184.68 as permitted sender) smtp.mail=ruby-talk-admin@xxxxxxxxxxx Date: Thu, 25 Oct 2007 14:29:52 -0700 (PDT) Message-Id: <47210ad0.15b38c0a.2af6.ffffdb2eSMTPIN_ADDED@xxxxxxxxxxx> Received: from carbon.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by carbon.ruby-lang.org (Postfix) with ESMTP id CBCC63C2296D3; Fri, 26 Oct 2007 06:27:56 +0900 (JST) Received: from polis.nbtsc.org (albireo.theinternetco.net [204.10.126.251]) by carbon.ruby-lang.org (Postfix) with ESMTP id 07C153C21E2EF for read more about Garbled Email
Message from Richard Kilmer Most recent post: 10/27/2007 4 authors and 6 replies. All, Just to let you know there is an unknown problem right now with the gems service on RubyForge that folks thought was Leopard related but its not...I get the same thing in Tiger (and other OSes may get the same): gem search --remote jabber *** REMOTE GEMS *** Bulk updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem ... (TypeError) can not instantiate uninitialized class We'll identify the problem as soon as is possible and fix it...just want to let folks know so you can know that your shinny new OS is OK ;-) Best, Rich read more about Problem with RubyForge and gems
Message from 360percent Most recent post: 10/27/2007 2 authors and 2 replies. irb(main):001:0> require 'rubygems' => true irb(main):002:0> gem 'ruby-opengl' => true irb(main):003:0> require 'gl' LoadError: Failed to lookup Init function /usr/local/lib/ruby/gems/1.8/ gems/ruby-opengl-0.40.1/lib/gl.bundle from /usr/local/lib/ruby/gems/1.8/gems/ruby-opengl-0.40.1/lib/ gl.bundle from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:32:in `require' from (irb):3 irb(main):004:0> require 'glut' LoadError: Failed to lookup Init function /usr/local/lib/ruby/gems/1.8/ gems/ruby-opengl-0.40.1/lib/glut.bundle from /usr/local/lib/ruby/gems/1.8/gems/ruby-opengl-0.40.1/lib/ glut.bundle from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:32:in `require' from (irb):4 irb(main):005:0> What dependencies should I look at in order to correct this problem? I have the apple dev tools, x11, etc... Thanks! read more about ruby-opengl on a g4 mac 10.4