similar to: How to check an input String is a number or not in ruby?

Displaying 20 results from an estimated 1100 matches similar to: "How to check an input String is a number or not in ruby?"

2006 May 22
2
selectively disabling parameter logging in controllers
By default, Rails logs all parameters passed to a controller method. As far as I can tell, this happens in both development and production modes. I have a form that collects some sensitive data. I don''t want that data sent to the log, at least not in production mode. Of course, I''d still like to log everything else. Is there a way to accomplish this? -- Posted via
2007 Jul 22
18
db:fixtures:load order
I was trying to deal with foreign key issues related to order of fixture loading when I came across this: http://techpolesen.blogspot.com/2007/04/rails-fixture-tips.html This got me looking deeper into rails and I noticed that db:fixtures:load calls Fixtures.create_fixtures once for each fixture file. However, Fixtures.create_fixtures is capable of taking multiple files and also handle the
2006 Jan 10
3
Serving lots of images to only registred users
Hello guys, I am building a photo website and I have some questions before I really start programming the site. My system will be Debian + lighttpd + mysql +fastcgi + ImageMagick I plan to use file_column for image handling/verification and thumbnail creation. My question is; I need to store images in a place outside of webroot so only registered members can see them. To serve them secure
2006 Jun 16
1
Is there a way of retrieving all req parameters without name
Is there a way of retrieving all the request parameters without name in the controller. Thanks & Regards, Asem -- Posted via http://www.ruby-forum.com/.
2007 Dec 01
10
Fixtures Cleanup
All, I''ve been playing a bit with some patches to make the fixture loading and management code a little bit easier to maintain. If I were to start chopping out features, how would you feel about losing: Fixture instantiation, Old school single-file fixtures, CSV fixtures, The ability to specify a subset of fixtures (everything''s always loaded instead), The ability to
2006 Jun 16
3
Not able to recognize helper class method in controller!
Hi, Not able to recognize helper class method in controller! When I try to call some method "get_formatted()" in my controller, it says local method not recognized. Please help me out. Thanks, josua -- Posted via http://www.ruby-forum.com/.
2006 Feb 20
8
Downloading Files
I''m building a rails app that will create .xml documents for the users of a particular intranet. My question is two fold 1. The files are in /public/files/something.xml, etc... How can I create a link_to in rails to access these files? 2. How I can I force the file to be downloaded (bring up a save dialog) as opposed to displaying in the browser? Thanks for hte help. -- Posted
2008 Apr 11
4
Object.isNumber() returns true on NaN??
Hi, Object.isNumber() returns true on NaN. I don''t think that''s true.... NaN is Not a Number so it''s not a number... right? By the way, I''m using Prototype 1.6.0.2. Satoru --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this
2014 Jun 13
2
[PATCH] Support for ASEM UPS on Linux/i2c
As said in previous mail, I just finished a first working version of a driver for the UPS found on ASEM PB1300 device (http://www.asem.it/prodotti/industrial-automation/box-pcs/performance/pb1300/) Linux only, accessed through i2c/SMBUS. If you can spare some time, please review. Expecially my autotools skills are ehm... a bit rusty. -- Giuseppe Corbelli WASP Software Engineer,
2014 Jun 23
4
[PATCH] Support for ASEM UPS on Linux/i2c
On 18/06/2014 04:17, Charles Lepple wrote: > On Jun 13, 2014, at 2:53 AM, Giuseppe Corbelli <giuseppe.corbelli at copanitalia.com> wrote: > >> As said in previous mail, I just finished a first working version of a driver for the UPS found on ASEM PB1300 device >> (http://www.asem.it/prodotti/industrial-automation/box-pcs/performance/pb1300/) >> Linux only, accessed
2014 Jun 18
0
[PATCH] Support for ASEM UPS on Linux/i2c
On Jun 13, 2014, at 2:53 AM, Giuseppe Corbelli <giuseppe.corbelli at copanitalia.com> wrote: > As said in previous mail, I just finished a first working version of a driver for the UPS found on ASEM PB1300 device > (http://www.asem.it/prodotti/industrial-automation/box-pcs/performance/pb1300/) > Linux only, accessed through i2c/SMBUS. > If you can spare some time, please review.
2014 Jul 07
0
[PATCH] Support for ASEM UPS on Linux/i2c
Giuseppe Corbelli <giuseppe.corbelli <at> copanitalia.com> writes: > Nevermind, please try the one attached, just created by > > git diff -p 80d9534 configure.ac data/driver.list.in drivers/Makefile.am > drivers/asem.c > asem.patch > > Just applied it on current master (80d9534a133da170cade150700407920450a9753) > and seems ok. Sorry I did not test this
2006 Feb 09
1
Shapefiles
Dear List, I have examined the sp, maptools, and shapefiles packages (Windows) but cannot seem to figure out a solution for writing shapefiles for 'curvy shapes'. The scenario is that I generate a series of polygons, circles, and ellipses on a plot and would like to convert them to shapefiles. Since the circles and ellipses are do not return a coordinate list during the plotting
2005 May 30
1
Unique arrangements of a vector
Dear List, Running on a PC (Windows 2000) with 256 MB RAM, Version R1.9.1 I have a relatively simple problem, which I can solve for relatively small datasets, but run into difficulties with larger ones. I believe that my approach is a hack rather than something elegant and I was hoping that somebody on this list might help me improve my code. Basically, given a vector of values (e.g.,
2011 Sep 20
1
Boxplots from 4 dimensional array
Hello list members, I am working with simulated data for landscape pattern analysis. I have 1000 replicates of binary (2 colour) gridded landscapes at each combination of 9 levels of class proportion and 11 levels of spatial autocorrelation. The results are stored in an array as follows: > dim(surfaces) [1] 38 9 11 1000 The dimensions are defined as follows: [x,,,] 1:38, integers
2006 May 15
2
retrieving hashes key & values (ASAP)
Hi, I want to retrieve the set of key & values which returns from a stored procedure : connection.select_all "exec common.dbo.scr_lookupric ''AAP.N'' ". The results i want to display in a view screen call result.rhtml. Please help me out ASAP. Thanks in advance. joshua... -- Posted via http://www.ruby-forum.com/.
2014 May 28
2
New driver for ASEM UPS
Hi all I'm developing a NUT driver for a custom UPS found on ASEM PB 1300 devices (http://www.asem.it/prodotti/industrial-automation/box-pcs/performance/pb1300/) It's based on some custom charger and a bq2060 battery monitor, talk to it on i2c bus. I will have something usable in a few days. Got some questions/considerations, though: *) interested in integrating into NUT? *) would you
2006 Jan 19
7
validates_numericality_of positive integer
Hi, What is the simplest way to validate a positive integer? validates_numericality_of :foo, :integer_only => true how do I add the positive part? Do I need another validation statement for pattern matching or do I have to write a validate() funciton for my model? Thanks, Peter
2006 May 25
1
Building Libraries
Dear List, I have just compiled my first R library for submission to CRAN; however, I have a tiny problem with 'R CMD check' that is holding me back. I have read extensively the PDF document on Writing R Extensions and the 'Making R Packages Under Windows' tutorial by P. Rossi. All functions are given in R code (no C/C++/Fortran) with two very simple demonstration datasets. My
2006 Apr 03
4
validates_numericality_of, :allow_nil => true?
Is there a way to use validates_numericality_of and still allow null values? I have a model with some optional values that can be nil, but if they''re present, they must be numbers. Will I need to construct a custom valiation for this, or is there some method built in? Seems like it would be a common enough need. Jeff -- Posted via http://www.ruby-forum.com/.