First
|
Prev |
Next
|
Last
Pages: 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
[ask]How to remove HTML part of a text i'm using Hpricot to parsing html and my output is: Größe: 37 - 54<br><a href="#" onclick="javascript:mass = window.open('/nutzwert/masstabellen.html','Masstabelle','status=no,toolbar=no,scrollbars=yes,location=no,menu=no,width=800,height=600')">Maßtabelle</a> does anyone knows how to get the string "Größe... 25 Dec 2009 09:19
Dir.chdir does not work on windows (xp) Hi all , I am using Dir.chdir to change my current working directory. class Test def initialize spin end def spin dire = "/c/Target/tioga-1.11/samples" dire2 = "c:\Target\tioga-1.11\samples" Dir.chdir(dire2) #system("cd", dire) end end My original project inundates w... 25 Dec 2009 15:48
bluecloth 2.0.5 installation error on Windows Hi, I am using rubyinstaller-1.8.6-p383-rc1.exe . When I install bluecloth (gem install bluecloth), I get: Building native extensions. This could take a while... ERROR: Error installing bluecloth: ERROR: Failed to build gem native extension. C:/Ruby1.8.6/bin/ruby.exe extconf.rb checking for srand... 25 Dec 2009 13:38
why this works not right Hi, Please take a look at below: def mytest return [1..10] end x = mytest x.each do |c| puts c end this works not as I expected. I want the output of: 1 2 3 4 5 6 7 8 9 10 But if I change return [1..10] to return 1..10 it will work. So what's the difference between 1..10 and [1..10]... 25 Dec 2009 10:23
log4r unpack problems I was just starting to use log4r and everything was going peachy until I tired to unpack it into my local vendor/gems. The next time I tried to load my rails environment, I got: config.gem: Unpacked gem log4r-1.1.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this and: no s... 24 Dec 2009 11:51
Puts return Hello guys, i'm new in ruby and i'm trying to create an Address Book. (I'm from Brasil) When i put the book to print "puts lista" #lista is the Address Book the method to_s of the AddresBook class is like this: "def to_s puts "Lista Telefonica" puts "Numero de Contatos: " + @qtContatos.to_s @persons.each ... 30 Dec 2009 14:15
SoLVED Re: rest-client headers or cookies The secret sauce for cookies: resp = RestClient.post(server_url' + '/resource', :args => "") @session_cookies = resp.cookies Then when calling again: RestClient.put('#{server_url + '/resource/id', {:args => args}, {:cookies => @session_cookies}) You have to use a payload (:args => args) for PU... 23 Dec 2009 13:41
[ANN] Rainbows! 0.90.0 - Thread* fixes and RevFiberSpawn Rainbows! is an HTTP server for sleepy Rack applications. It is based on Unicorn, but designed to handle applications that expect long request/response times and/or slow clients. For Rack applications not heavily bound by slow external network dependencies, consider Unicorn instead as it simpler and easier to deb... 23 Dec 2009 13:41
Gems LoadError in Linux Hello, I'm new to Ruby and I wanna run a test a simple Gem in the latest Ubuntu. I've downloaded Ruby 1.9.1 and RubyGems, and the Gem I wanna test is NFC - which appears installed as a Local Gem after I did $ sudo gem install nfc.. The problem happens when I try to run my test code: require 'nfc' loop do... 24 Dec 2009 08:33
Help with gem ruby mysql error Hi, I downloaded & double clicked 3 files to install mysql 5.1 for MacOS, but i get the following errors, can someone advise please? Thanks! Ad ====================================================== sudo gem install mysql -- --with-mysql-config=/path/to/mysql_config Building native extensions. This co... 23 Dec 2009 15:09 |