[#407141] GEM variables — Peter Bailey <lists@...>
I'm going nuts with my Ruby editor because it's complaining about
[#407149] Collada gem for Ruby — Samuel Williams <space.ship.traveller@...>
Hi,
[#407153] Slow ruby 2.0.0-p0 under Ubuntu 13.04 — Fabio Kreusch <lists@...>
I had Ruby 2.0.0-p0 working with Ubuntu 12.10, in which a test suite of
[#407156] Files management with Ruby — sdsd asda <lists@...>
Hi there
[#407169] Hash return is not correct — Ruby Mania <lists@...>
class Router
Ruby Mania wrote in post #1107907:
[#407177] Downloading a CSV using URI - mechanize — Rochit Sen <lists@...>
Hi All,
On Mon, May 6, 2013 at 1:17 PM, Rochit Sen <lists@ruby-forum.com> wrote:
Obviously I can't test your code under the same conditions, but from the
[#407178] %tempdir% location and folder clean up? — "Abinash Y." <lists@...>
Hi Guys,
tamouse,
tamouse,
[#407187] Gem Help - Newbie Question — Michael Tepfer <lists@...>
Hi,
Thank you both for your help.
[#407197] The question about 'Range' as Condition — Haibin Shi <syunxi@...>
Hi All,
[#407199] can't find gems — Peter Bailey <lists@...>
Hi,
On Tue, May 7, 2013 at 6:54 AM, Peter Bailey <lists@ruby-forum.com> wrote:
[#407210] PROBLEMS CREATING AN SSH TUNNEL — Clem Rock <lists@...>
Hello,
On Tue, May 7, 2013 at 12:28 PM, Clem Rock <lists@ruby-forum.com> wrote:
[#407215] File Problem with pty and irb — Admin Tensor <lists@...>
Hi,
You're not waiting for the child process in cmd.rb so it's killed when
[#407234] Problem with FileUtils move command. — Peter Bailey <lists@...>
Hello,
"no implicit conversion of nil into String" means you're probably
Joel Pearson wrote in post #1108209:
how is the script invoked?
Chris Hulan wrote in post #1108213:
can you post some of the script?
Daniel Stephens wrote in post #1108224:
What do you get if you puts "ARGV == #{ARGV[0]}" ?
Daniel Stephens wrote in post #1108238:
So it's like the other guys mentioned, there appears to be no file(or
Daniel Stephens wrote in post #1108240:
On Wed, May 8, 2013 at 6:54 AM, Peter Bailey <lists@ruby-forum.com> wrote:
Hassan Schroeder wrote in post #1108253:
On Wed, May 8, 2013 at 8:22 AM, Peter Bailey <lists@ruby-forum.com> wrote:
Hassan Schroeder wrote in post #1108265:
On Wed, May 8, 2013 at 8:56 AM, Peter Bailey <lists@ruby-forum.com> wrote:
Maybe it's not in [0]?? Drop that loop at the top of your script as well
On May 9, 2013 2:51 AM, "Daniel Stephens" <danny.a.stephens@gmail.com>
excellent thanks Matthew!
[#407240] Recursion is not working well — Love U Ruby <lists@...>
Hi,
Finally I fixed it:
[#407258] Connect to a switch with SSH — "Rudá G." <lists@...>
I need connect to a Cisco Switch with SSH and Ruby. The main problem is
I can only authenticate with Putty.
[#407294] Installing Tomcat using Ruby — Lavanaya BJ <lists@...>
Hello,
[#407298] Trucking All Http Request from a web page — Ja Tse <lists@...>
Hi,
On Thu, May 9, 2013 at 2:10 AM, Ja Tse <lists@ruby-forum.com> wrote:
[#407333] Help convert sh -> rb — Micah Hoffmann <lists@...>
Hello, I am new to the forum and ruby, thank you for any help you may
[#407337] RubyExcel version 0.1.5 — Joel Pearson <lists@...>
For the rare breed who use the combination of Windows, Ruby, and
[#407366] How do I remove a setting from a YAML file? — "Rafal C." <lists@...>
I'm working on a small command line app project at the moment and I need
Am Sun, 12 May 2013 20:39:37 +0900
Yeah, why are you asking?
[#407369] difference Module#extend_object and Module#extended — Love U Ruby <lists@...>
Hi,
[#407383] Enum#each issue — Love U Ruby <lists@...>
I am not able to understand why I am getting the error for the method
[#407391] Unexpected output from Array#<< method. — Love U Ruby <lists@...>
I was writing a code,and doing so I got some unexpected result. Can
[#407394] Basic question about blocks — Esh Gun <lists@...>
Hello forum,
The order of execution is correct, you're calling "animals" twice, and
[#407419] Ruby 1.9.3-p426 is released (includes a security fix) — "U.Nakamura" <usa@...>
Hi, all rubyists
[#407422] ruby source code minifier/uglifier? — Nokan Emiro <uzleepito@...>
hi
[#407424] Need help for Kernel methods — Love U Ruby <lists@...>
http://www.ruby-doc.org/core-2.0/Kernel.html#method-i-__dir__
[#407431] Slow reading output from Open3.popen3?? — Thomas Luedeke <lists@...>
I've never tried using this function before, but I am now using as part
[#407432] Monkey patch Exception class — Sebastian Wy <lists@...>
What I want to achieve is, is that I can hook into the Exception class
[#407442] Help with time — "ricardo l." <lists@...>
If i have a date time like this "2013-04-01T12:01:03-07:00"
[#407452] n00b looking to learn from the best — Flex Philips <lists@...>
Hey Rubyians!
[#407462] Configure/Integration of MYSQL in Tomcat using Ruby script — Paramesh DS <lists@...>
Hi,
hii
[#407464] Is it 'safe' to upgrade to ruby 2.0 by now? — Panagiotis Atmatzidis <atma@...>
Hello,
[#407471] Could you give me some Website for Learning Ruby — haxuan lac <lists@...>
I'm learning Ruby and I search some Website for learning Ruby
Hello!
I would suggest leaving SaICP off until you k ow o e language well. That
[#407487] RubyInstaller 2.0.0-p195 released — Luis Lavena <luislavena@...>
In combination with the rest of the RubyInstaller team, I'm very
I installed ruby-2.0.0-p195 on Windows 7 Premium Home Edition (64-bit)
[#407517] Ruby Programming Practice — "buzz k." <lists@...>
Hey guys have been learning the basics of ruby and practicing some
Your scope of thinking is too narrow. You want general problems that can be
@Chad Perrin
On Wed, May 29, 2013 at 2:37 AM, buzz k. <lists@ruby-forum.com> wrote:
On Wed, May 29, 2013 at 05:26:44PM +0900, Stu wrote:
Skip FreeBSD and put armored plating on that bike by going OpenBSD.
On Thu, May 30, 2013 at 02:54:51AM +0900, Brandon Weaver wrote:
More of a warning because when it starts it goes fast
On Wed, May 29, 2013 at 1:08 PM, Brandon Weaver <keystonelemur@gmail.com> wrote:
--- flame on ---
Exactly, it's 2013. Flash is dying, unless you've just been living in a
[#407523] new, with an idea, and not sure what to learn next — Wendy Randquist <lists@...>
Hi. I've been going through the CodeAcademy courses for Ruby over the
What's even better than the solution provided by the above person is to
Am 20.05.2013 03:34, schrieb Dami叩n M. Gonz叩lez:
[#407527] How to run shoes built via gem — Ruby Student <ruby.student@...>
This is perhaps a silly question.
Hi Ruby Student,
Hi Asbb,
[#407536] Rename multiple files — Eivinas Norusaitis <lists@...>
Hi,
[#407556] Self adjusting windows in shoes — Ruby Student <ruby.student@...>
Is there a way with *shoes* to have a windows that will "grow" according to
[#407565] RubyDNS - asynchronous DNS client and server for Ruby. — Samuel Williams <space.ship.traveller@...>
Hi,
On Tue, May 21, 2013 at 9:05 PM, Samuel Williams <
Hi botp, you can create any configuration of DNS you like. RubyDNS doesn't
On Wed, May 22, 2013 at 7:02 AM, Samuel Williams <
Hi, you can use geo-ip for finding the location, geographically speaking.
On Wed, May 22, 2013 at 1:45 PM, Samuel Williams <
1.
Hello,
On Thu, May 23, 2013 at 4:08 AM, Panagiotis Atmatzidis
[#407613] Parsing info from url — Igor Andreev <lists@...>
Is there is a way to get page as text (like curl in php) and parse it to
[#407621] Regular expression to find a break in a pattern — Joel Pearson <lists@...>
I have a large file which lots of gibberish in and I'm trying to find
[#407625] new: a problem with type method not being undefined — David Munyaka <lists@...>
I am using ruby 2.0.0p195. I am, however, starting to think that
[#407637] Learning and stuck `OpenStruct` standard library of Ruby — Love U Ruby <lists@...>
Hi,
[#407639] On Green Shoes, do we have a broken arrow? — Ruby Student <ruby.student@...>
Team,
hi,
Sebastjan H. wrote in post #1110046:
Sebastjan H. wrote in post #1110047:
I forgot to mention I get the same error if I run your code, but the one
Off the top of my head, would it suite you to use an image of a broken
Thank you for your reply.
Ruby Student wrote in post #1110074:
[#407657] .NET Master Page like concept in Rails — Rohit Coder <passionate_programmer@...>
I am a .NET developer and starting with Rails. For my first web =0A=
[#407672] Wrong child process exit status if core dump / seg fault — Alexander Schaal <lists@...>
Hi all,
[#407682] Converting an xml file to byte array in ruby — Khudadad Kazi <lists@...>
Hi,
OK. to be more specific, here is my method:
On Mon, May 27, 2013 at 6:50 PM, Khudadad Kazi <lists@ruby-forum.com> wrote:
Thanks for the help Robert. I am really trying hard to understand the
On Tue, May 28, 2013 at 8:30 AM, Khudadad Kazi <lists@ruby-forum.com> wrote:
[#407689] How to show menu in application.html.erb on other pages? — Rohit Coder <passionate_programmer@...>
=0A=
On Mon, May 27, 2013 at 10:57 AM, Rohit Coder
Yes Schroeder=2C I referred Rails documentation but I am not able to solve =
On Mon, May 27, 2013 at 11:51 AM, Rohit Coder
[#407697] green_shoes initial woes — Baban By <lists@...>
Hi, just started with green_shoes this morning by installing the gem.
[#407708] GEM and module? Could a GEM be a module? — Denis BEURIVE <lists@...>
Hello,
[#407715] AAARRRRGH! s="#$" => SyntaxError: compile error — Tadeusz Bochan <lists@...>
Hi.
[#407738] sending a gmail using ruby — David Munyaka <lists@...>
please help analyzing this code and please give me some recommendations.
Try connecting first. That works for me.
thanks but it seems like you have a different version of Ruby because I
Do you have highline and import installed?
Can you please unsubscribe me? I keep getting this damn spam...
Dumb question is dumb.
Not really. There are several people who can't unsubscribe and are trying
[#407745] minitest warning — "Sebastjan H." <lists@...>
Hi,
[#407763] I can't unsubscribe, please help — Matthew Westerberg <matthew@...>
Hi,
Thanks, Ryan. I think my issue might be that my email (Outlook) was sending=
[#407783] >>> unsubscribe-confirm 201305300736321631415926 ryand-ruby zenspider.com — "Nicholas Meyler" <nickm@...>
>>> unsubscribe-confirm 201305300736321631415926 ryand-ruby zenspider.com
[#407794] ZenTest 4.9.2 Released — Ryan Davis <ryand-ruby@...>
ZenTest version 4.9.2 has been released!
Ryan Davis wrote in post #1110616:
[#407818] Bundle install question — "L. V. Lammert" <lvl@...>
Need to install nokogiri on production machines, .. is there a simple
On Thu, May 30, 2013 at 4:17 PM, L. V. Lammert <lvl@omnitec.net> wrote:
[#407820] Eloquent Ruby Kaprekar's Number — Alphonse 23 <lists@...>
Which way is the eloquent ruby way to write this algorithm?
>
Am 31.05.2013 01:59, schrieb Alphonse 23:
For me 2 and 3 are unreadable, not to mention overly complicated. I would
[#407833] installing FileUtils error — "Sebastjan H." <lists@...>
Hi,
[#407840] Question about displaying an image with green shoes — Ruby Student <ruby.student@...>
Hello team,
Re: Problem with FileUtils move command.
Daniel Stephens wrote in post #1108224:
> can you post some of the script?
Sure. Here it is.
require 'rubygems'
require 'fileutils'
require 'net/ftp'
Dir.chdir("F:/workflows/graphics/asura-non/RCSCR/in")
if Dir.glob("*.pdf").length == 0 then
exit
end
pdffile = ARGV[0]
######################## PDF Input Files #######################
#First, check to see if the PDFs are good PDFs.
pdfinfo = `alchemy #{pdffile} -x 2>&1`
pdfinfo.scan(/Error reading PostScript|Cannot identify file/) do |match|
if match
File.open("//mako/logs/statusreports/RCSCR.log", "a") { |f| f.print
" #{pdffile} is a BAD PDF file and can't be processed\n" }
FileUtils.mv(pdffile,
"F:/workflows/graphics/asura-non/RCSCR/badfiles")
end
end
puts pdffile
FileUtils.mv(pdffile, "F:/workflows/graphics/asura-non/RCSCR/scratch")
#Go to the scratch area and process the file.
Dir.chdir("F:/workflows/graphics/asura-non/RCSCR/scratch")
pages = `pdfinfo #{pdffile}`
pages.scan(/^Pages: ([0-9]{1,5})/) do |_|
$pagecount = $1
end
if $pagecount != "1"
puts "\n#{pdffile} is a multi-paged PDF file.\n"
pngfile = File.basename(pdffile, ".*") + ".png"
tifffile = File.basename(pdffile, ".*") + ".tif"
`alchemy #{pdffile} ---n9 -Za2 -Zc1 -Zm2 -Zd 300 300 -o`
`alchemy #{pdffile} -t1 -Zc1 -Zd 300 300 -U ---U`
else
puts "\n#{pdffile} is a single-paged PDF file.\n"
pngfile = File.basename(pdffile, ".*") + ".png"
tifffile = File.basename(pdffile, ".*") + ".tif"
`alchemy #{pdffile} -t1 -Zc1 -Zm1 -Zd 300 300 -o`
info = `alchemy #{tifffile} -x`
info.scan(/Image size \(inches\): ([0-9\.]{1,5})/) do |_|
info = $1
puts info
puts info.to_i
end
if info.to_i < 4
puts "#{pdffile} is less than 4 inches wide"
`alchemy #{pdffile} ---n9 -Za2 -Zc1 -Zm2 -Zd 300 300 -o`
else
puts "#{pdffile} is more than 4 inches wide"
`alchemy #{pdffile} ---n9 -Za2 -Zc1 -Zm2 -Zd 300 300 -o`
end
end
#Send to Orca
t = Time.now
begin
`curl -u production:prod --data-binary @#{tifffile} -H "Content-type:
application/image" -H "Expect: "
http://ps2000-graphics-test.bna.com/image/loader/#{tifffile}`
File.open("E:/logs/StatusReports/RCSCR.log", "a") { |f| f.print "Sent
to Orca: #{tifffile} at #{t.strftime("%m/%d/%y %H%M %p")}\n" }
rescue
File.open("E:/logs/StatusReports/RCSCR.log", "a") { |f| f.print "NOT
sent to Orca: #{tifffile} at #{t.strftime("%m/%d/%y %H%M %p")}\n" }
system("netmailbot -logfile E:/temp/netmailbot.log -appendlog -subject
\"RCSCR FILES: #{tifffile} did not go to Orca!\" -to prodadmin@bna.com
-fromfriendly \"MAKO Mail Server\" -from pbailey@bna.com -server
10.70.50.52")
end
begin
`curl -u production:prod --data-binary @#{pdffile} -H "Content-type:
application/image" -H "Expect: "
http://ps2000-graphics-test.bna.com/image/loader/#{pdffile}`
File.open("E:/logs/StatusReports/RCSCR.log", "a") { |f| f.print "Sent
to Orca: #{pdffile} at #{t.strftime("%m/%d/%y %H%M %p")}\n" }
rescue
File.open("E:/logs/StatusReports/RCSCR.log", "a") { |f| f.print "NOT
sent to Orca: #{pdffile} at #{t.strftime("%m/%d/%y %H%M %p")}\n" }
system("netmailbot -logfile E:/temp/netmailbot.log -appendlog -subject
\"RCSCR FILES: #{pdffile} did not go to Orca!\" -to prodadmin@bna.com
-fromfriendly \"MAKO Mail Server\" -from pbailey@bna.com -server
10.70.50.52")
end
begin
`curl -u production:prod --data-binary @#{pngfile} -H "Content-type:
application/image" -H "Expect: "
http://ps2000-graphics-test.bna.com/image/loader/#{pngfile}`
File.open("E:/logs/StatusReports/RCSCR.log", "a") { |f| f.print "Sent
to Orca: #{pngfile} at #{t.strftime("%m/%d/%y %H%M %p")}\n" }
rescue
File.open("E:/logs/StatusReports/RCSCR.log", "a") { |f| f.print "NOT
sent to Orca: #{pngfile} at #{t.strftime("%m/%d/%y %H%M %p")}\n" }
system("netmailbot -logfile E:/temp/netmailbot.log -appendlog -subject
\"RCSCR FILES: #{pngfile} did not go to Orca!\" -to prodadmin@bna.com
-fromfriendly \"MAKO Mail Server\" -from pbailey@bna.com -server
10.70.50.52")
end
#Send to BWD
#PDFs.
ftp = Net::FTP.open('genesis.bna.com')
ftp.login('pb4072', 'retep1')
ftp.chdir('/gateway/bwd/test/normal')
ftp.putbinaryfile(pdffile.downcase)
File.delete(pdffile)
#PNGs.
ftp = Net::FTP.open('genesis.bna.com')
ftp.login('pb4072', 'retep1')
ftp.chdir('/gateway/bwd/test/normal')
ftp.putbinaryfile(pngfile.downcase)
File.delete(pngfile)
#Delete the TIFF files.
FileUtils.rm(tifffile)
--
Posted via http://www.ruby-forum.com/.