rake-compiler fails on Fedora 13 Hi there, I get the following: [root(a)li137-46 tenderlove-nokogiri-0e2a3d9]# rake-compiler /usr/lib/ruby/gems/1.8/gems/rake-compiler-0.7.0/lib/rake/ extensioncompiler.rb:28:in `mingw_host': No MinGW tools or unknown setup platform? (RuntimeError) from /usr/lib/ruby/gems/1.8/gems/rake-compiler-0.7.0/bin/../tasks... 24 Jun 2010 10:42
parsing the gutenberg index Project Gutenberg offers an index in RDF/XML format: http://www.gutenberg.org/wiki/Gutenberg:Feeds Has anyone written any ruby code to work with this? I'm mostly wondering which of the many xml and rdf libraries out there would be my best option. martin ... 23 Jun 2010 16:10
Finding a project's root directory As I continue to work project development tools I repeatedly run into the case of needing a reliable way to identify the project's root directory, i.e. to ascend up the directories until it is found. So far the best idea of come up with is to look for .git/, .hg/ or as a fallback, README*. Have any ideas for ... 24 Jun 2010 09:36
free videos to watch,download and subscribe if you are feeling bored but hot right now? well just click this safe and secured link for your privacy and enjoy. copy and paste it in your browser if it isnt linked -----> http://4e0d1ccb.ugalleries.net Watch free MAFIA AND FARMVILLE tutorial to increase your level!!! just click and watch these videos,... 23 Jun 2010 11:42
Recommended library for parsing RSS and Atom feeds On Jun 22, 8:09 pm, Richard Conroy <richard.con...(a)gmail.com> wrote: Hi, I am looking to sort through the various options for processing RSS/Atom feeds in Ruby. I did some basic research, and FeedTools looks like the incumbent option, though many (old) blog posts warned that it is only minimally ma... 23 Jun 2010 15:04
Iterate over specific keys in a hash Hi, I have a hash; cars{ "car0" => "bmw", "car1" => "seat", "car3" => "mercedes", "car4" => "renault"} What I want is to extract just the values of car0 and car3. Is there a way instead of doing cars.each_value of doing cars.each_value[0,3]? Thank you in advance. Ryan -- Posted via http://www.ruby-... 23 Jun 2010 07:18
SQLite placeholder problem Hi, I'm just learning Ruby with SQLite3 and I ran into this problem with the tutorial. After creating a database using this: $db = SQLite3::Database.new("dbfile") $db.results_as_hash = true def create_table puts "Creating people table" $db.execute %q{ CREATE TABLE people ( id integer primary key... 23 Jun 2010 16:10
nokogiri extract text? there is a simple file /home/pt/test.html such as the following <html> <body> <p> <br> hallo,world <br /> </p> </body> </html> i want to extract the text "hallo,world" in the /home/pt/test.html with nokogiri,how to write? require 'rubygems' require 'nokogiri' html = '/home/... 22 Jun 2010 23:43
[ANN] net-http-persistent 1.2.2 Released net-http-persistent version 1.2.2 has been released! * <http://seattlerb.rubyforge.org/net-http-persistent> Persistent connections using Net::HTTP plus a speed fix for 1.8. It's thread-safe too! Changes: ### 1.2.2 / 2010-06-22 * Bug Fixes * #request only finishes a connection instead of restarting i... 22 Jun 2010 22:38
ruby bounties update On 6/21/10, Roger Pack <rogerpack2005(a)gmail.com> wrote: * __DIR__ for 1.9.3 $50 I wrote a __DIR__ macro as one of the examples in RubyMacros. Idunno if that's what you really have in mind. See http://github.com/coatl/rubymacros/blob/master/example/__dir__.rb It expands __DIR__ to File.dirname(__FILE__). ... 23 Jun 2010 10:35 |