Displaying 10 results from an estimated 10 matches for "blezard".
Did you mean:
bleazard
2006 Jun 06
5
ruby mathematical expression parser
Hi,
Has anyone come across a Ruby mathematical expression parser, capable
of parsing out token, replacing them with values then executing the
mathematical formula? Nothing too heavy, A * (44/12) * ... etc. where
A is can be replaced with a value.
In Java there are serveral, like JEP, but I''d prefer it we could get a
Ruby one now we have moved over to Rails, otherwise we will have to
2006 Jun 17
4
Textmate Madness
Has anyone come across this problem... I created some Ruby files in Textmate
on my Mac - and everything works fine. However, when I run those files on a
Windows machine I get e.g.
compile error
./script/../config/../app/views/station/consumption/new.rhtml:2:
Invalid char `\002'' in expression
./script/../config/../app/views/station/consumption/new.rhtml:4: parse
error, unexpected
2006 Apr 12
2
unit testing with model inheritence
Having jotted down some models, with some inheritence I tried to run some
unit tests. After waiting for rake test_units to run I got a rake of errors
(if you''ll forgive the play on words). The errors were to do with unknown
tables in the tear down stage. The unknown tables corresponded to sub-types
where single table inheritence was used. In other words, these tables
*shouldn''t*
2006 Mar 28
7
Is Ruby stable for production use?
Hi,
I realise that Windows is a poor platform and that Webrick is a development,
not production, server. However, we have started seeing this crop up when
perfectly simple page to page links are invoked...
[2006-03-28 08:32:21] ERROR Errno::ECONNABORTED: Software caused connection
abort
/usr/lib/ruby/1.8/webrick/httpresponse.rb:324:in `write''
2006 Mar 28
2
plural to singular blunder
I just got this error:
uninitialized constant PriceCurf
After much head scratching I remembered the Rails plural to singular
mapping rules. My table is price_curves, my object is PriceCurve ...
whereas I am guessing Rails thinks the singular ought to br PriceCurf
?!
I''m sure there is a simple way around this linguistic blunder that
doesn''t involve the use of pigeon English.
2006 Apr 11
1
Mixins?
As is often the case when I tackle a new platform/language, I get the big
picture very quickly (because frameworks are frameworks are frameworks) but
its the nitty-gritty of the language that bogs me down...
So I have some similar methods on a few of my model classes that I wanted to
push into a helper. Now I reckoned that the Ruby way was to create a module
and mix it in with include. However, I
2006 Jun 12
2
dom id on form_remote_tag
I want to make use of a form_remote_tag to submit a form
asynchronously. Easy done. However, we also want to add an
observe_form tag to check for some value changes while the form is
being entered.
The observe_form tag needs a dom id to work on but I can''t see how to
enter an html option for the dom id of the form on the
form_remote_tag.
Any ideas?
Here is the form tag so far...
2006 Mar 26
3
Charts and Java servers
Hi,
As a long time Java/J2EE exponent I wanted to give Rails a fair crack of the
whip and after we evaluated it for several weeks I have to say I like it.
The installation process for the base system/framework is straightforward on
the two platforms we''ve tried (Windows and Mac OS X). However, the charting
components available, relying on ImageMagick or GraphicsMagick seem less
clear
2006 Apr 04
4
Threads vs. Processes and Rails
Hey all,
I need to launce a rather lengthy process from a small Rails application.
It''s the sort of thing (sending out an email newsletter) that would need to
be launched from a browser window, but the browser doesn''t need to stick
around to see it through.
I played around with Thread.new, but I think, based on limited testing, that
the threads need to complete before the view
2006 Apr 14
0
Gruff on Windows
Has anyone achieved a stable deployment of Gruff with Rmagick on Windows?
I''ve been playing around with this on Instant Rails and after installing the
RMagick win 32 gem (local gem install as per instructions on web) and then
Gruff on top of that. I did a test controller method that rendered the fruit
pie chart as per the examples on the gruff site. This worked. However, when
I refreshed