First
|
Prev |
Next
|
Last
Pages: 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
Use of STDOUT.flush after puts I've seen several examples on this forum where folks have used STDOUT.flush after printing a query to a terminal. For example: puts "Delete indicated item [yes, no]" STDOUT.flush response = gets.chomp What is the purpose of the 'STDOUT.flush', and is it always necessary to use it? What are the possible prob... 30 Apr 2010 12:49
cannot freeze my gems i cannot freeze my rails. i am running rails E:\TradingTools\torontotrader>rails --version Rails 1.2.5 E:\TradingTools\torontotrader>gem --version 1.3.6 E:\TradingTools\torontotrader>ruby --version ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] E:\TradingTools\torontotrader>rake rails:freeze:g... 28 Apr 2010 11:42
navigate through folders Hello everyone, ok... I have file (file.txt) which is written by a script. In this given file there's a path (c:/path/path1/path2) and I have the following code in another script: File.open('file.txt').each_line do |p| Dir::chdir("#{p}") { bunch of code } What I want to do after this is to go up ... 29 Apr 2010 13:31
Mutex Hi all, I've been reading the RailsDispatch blog, and have been looking at this code. class BlacklistConstraint def initialize @ips = Blacklist.retrieve_ips @mutex = Mutex.new @last_update = Time.now end def matches?(request) @mutex.synchronize do if (Time.now - @last_update) ... 28 Apr 2010 10:34
Bulk SMS Messages Hello!! I came across a cheap and reliable bulk sms service that covers 801 networks worldwide. All you need to do is sign up to power-bulk-sms.com and request a free demo SMPP, HTTP API or a Web account. You can send sms with PHP, ASP, ASP .NET, Java, SOAP and XML. It is a really great service and you should ... 28 Apr 2010 06:08
Adding days to date Hello, Does anyone know what the problem with the following code ??? Date.today.to_s => "2010-04-28" (Date.today + 1.day).to_s => "2246-11-17" (Date.today + 2.days).to_s => "2483-06-07" Thanks in advance -- Posted via http://www.ruby-forum.com/. ... 28 Apr 2010 06:08
uninitialized constant ActiveRecord (NameError) Hi All, I am running a script from console line with command as ruby script/abc.rb. But i am getting error "uninitialized constant ActiveRecord (NameError)". Why so .. ? My first line of the script is class- CronJobs < ActiveRecord::Base ... ... end -- Posted via http://www.ruby-forum.com/. ... 28 Apr 2010 06:08
Date.parse(nil) raises TypeError Hello, in Ruby 1.9 (ruby 1.9.1p378 (2010-01-10 revision 26273) [i386- mingw32]) the following code require 'date' Date.parse(nil) raises TypeError: can't dup NilClass. I think it should be "ArgumentError: invalid date", same as what Date.parse reports for strings with invalid date formats. Should I file... 28 Apr 2010 03:56
* Tight Teens Getting Plonked * Tight Teens Getting Plonked Hi-Res photos, videos , clips, and articles free downloads! http://www.liquid-cash.net ... 27 Apr 2010 22:24
[ANN] json 1.4.2 - Fixes a memory leak in versions 1.4.0 and 1.41,please upgrade There was a memory leak in the two previous versions that is triggered by calling the JSON#generate method and friends. If you use the affected versions, please upgrade to the newest version, 1.4.2. The new version can be downloaded from these URLs: http://rubygems.org/gems/json/versions/1.4.2 http://github.co... 27 Apr 2010 20:11 |