Displaying 20 results from an estimated 158 matches for "pickaxe".
2006 Jul 05
2
[Newbie] The pickaxe book and benchmark
Hello,
I was reading the pickaxe book and then I arrived to the chapter
"When trouble strikes" in the Benchmark section.
I have this code:
#!/usr/bin/ruby -w
require ''benchmark''
include Benchmark
LOOP_COUNT = 1_000_000
bm(12) do |test|
test.report("normal:") do
LOOP_COUNT.times do...
2006 Mar 09
15
regular expressions slay me
I am furiously trying to find what I am looking for in Pickaxe book and
not finding it.
I''m getting some values back from a posted form and I need to get the
''id'' number off the backend. The ''String'' will always come back to me
as...
Some_name\r\n123
where 123 is actually the id number which I need to execute the...
2007 Apr 02
19
Pref for beginner book: Wrox (Holzner) or Ruby for Rails?
I''m a beginner. I''ve done the apple tutorial, Agile ROR (the depot
app, I stopped after that, a little to advanced with no base knowledge
of Ruby), Why''s guide and my copy of Chris Pine''s book today. After
Pine, I''m going to buy either the Wrox book or Ruby for Rails book. I
did a search and there''s not too much on the Wrox book (Holzner)
2006 Feb 15
7
Ackbar - ActiveRecord Adapter for KirbyBase
...er pass 100% of the tests because
KirbyBase does not support all required functionality.
Ackbar includes a SQL fragment translator, so that simple cross-database code
should be maintainable. For example the following will work as expected,
Book.find :all, :conditions => "name = ''Pickaxe''"
Book.find :all, :conditions => ["name = ?", ''Pickaxe'']
Additionally, you can also provide blocks:
Book.find :all, :conditions => lambda{|rec| rec.name == ''Pickaxe''}
or even:
Book.find(:all) {|rec| rec.name == ''Pickax...
2004 Apr 05
1
Changes to ClassViewer
Kevin,
Very cool. I initially tried to figure out how to do it without those
evals, but I failed (thanks for picking up the slack :) Your changes
definitely improved the code, and made it much cleaner. Thanks.
By the way, what is pickaxe? I''m not familiar with that term.
_________________________________________________________________
Free up your inbox with MSN Hotmail Extra Storage! Multiple plans available.
http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/
2006 Apr 06
8
Fastest learning path to RoR
hi!
with a 4GL background, wanting to learn RoR, what is the fastest
learning path i should take? should i go grab a RoR tutorial, and learn
Ruby along the way, or start with plain Ruby first?
thanks for any inputs!
2006 Mar 19
0
Ackbar 0.1.1 - ActiveRecord Adapter for KirbyBase
...er pass 100% of the tests because
KirbyBase does not support all required functionality.
Ackbar includes a SQL fragment translator, so that simple cross-database code
should be maintainable. For example the following will work as expected,
Book.find :all, :conditions => "name = ''Pickaxe''"
Book.find :all, :conditions => ["name = ?", ''Pickaxe'']
Additionally, you can also provide blocks:
Book.find :all, :conditions => lambda{|rec| rec.name == ''Pickaxe''}
or even:
Book.find(:all) {|rec| rec.name == ''Pickax...
2006 Jul 20
19
Recipes versus Ruby for Rails: what''s best after Agile?
For expats from other languages, what''s the next best step after the
Agile Web Dev book:
Rails Recipes or Ruby for Rails?
Thanks,
--
Austin
--
Posted via http://www.ruby-forum.com/.
2006 Feb 08
5
Regular Expression Question
I have looked through the Ruby Pickaxe book as well as done a search
but can''t figure out how to validate the format of a field. The field
I want to validate is a credit card expiration date field. Based on
our user study (going around the office and asking everyone the way
they like to fill out that particular field ty...
2006 Nov 13
3
(A bit offtopic): A good starting book for ruby programming?
Hi all
Guess it''s time for me to dig a bit deeper into the ruby language.
Can you recommend some good starting books on ruby programming?
Thanks.
--
Med venlig hilsen
Juri Rischel Jensen
Fab:IT ApS
Vesterbrogade 50
DK-1620 København
Tlf: 70 202 407 / Fax: 33 313 640
www.fab-it.dk / juri@fab-it.dk
2006 May 02
4
ordering after a inject
...ect function it gets out of
alpha order:
=> {"new"=>3, "name"=>29, "new test for tags"=>4, "serial"=>4, "test"=>1, "
baseball"=>2}
I can''t figure out why or how to correct it. I don''t have the latest pickaxe
book which documents the inject function and can''t find much documentation
on it on the web. I could turn it into an sorted array using "count =
count.sort_by { |r| r.name }", but I don''t want it in an array. In need it
in a hash.
Any ideas?
Kind regards,
Steve Odom
h...
2006 Feb 18
6
Why doesn''t my "action" take action?
I have the following code in my index.rhtml:
<div id="how_many_images" style="background-color:#eee;">
<%= render(:partial => ''form'') %></div>
...and the following in my _form.rhtml
<%= form_remote_tag(:update => "images_div_main",
:url => { :action =>
2006 Jun 08
21
"Rails recipes" vs "Rails cookbook"
Reviews Wanted.
I''ve read the tables of contents and haven''t yet made up my mind.
Is one book clearly better than the other? Is one clearly full of bugs? Is one so much
further ahead that there is no choice? Are they both so incomplete that I should just
wait and only cook real food? Do trains still have dining cars?
Warren Fred
-------------- next part --------------
An
2006 Jun 14
5
Rails SOAP tutorial
Hi all..
I new in Ruby/Rails.. Where could i get some good tutorial about SOAP
using Rails?
I''ve been googling yet still did''nt find good tutorial.
Thank you in advance.. :)
--
Regards,
Ananda Putra
2006 Jul 14
6
Don''t understand :: in ActionController::Base
Maybe this should apply to Ruby forums directly, but I''ll try here.
I understand the concept of classes and subclasses thanks to the
excellent "Programming Ruby - The Pragmatic Programmer''s Guide".
However, I don''t understand what :: signify in terms of inheritance,
parent and child in e.g.
ActionController::Base
--
Posted via http://www.ruby-forum.com/.
2007 Sep 24
3
Custom type
Hi.
I have a small problem with the custom type I am working on. I define
method ''evaluate'' which is called after all data is been collected. Here
it is:
module Puppet
newtype(:test) do
newparam(:name) do
end
newparam(:listen) do
defaultto "silent"
end
def evaluate
puts "evaluating..."
return super.evaluate
end
2006 Aug 16
10
all I wanted was a class reference...
And I got this lousy LatexParser. Ah well...
A new cut of the automatic WxRuby documentation is now viewable online at
http://www.pressure.to/wxruby/.
There''s also a pdf version
http://www.pressure.to/wxruby/wxruby.pdf [3MB, 751 pages!]
and a tarball
http://www.pressure.to/wxruby/wxruby2.tar.gz [1.3MB]
In terms of output, it''s no advance on what Sean has already done.
2006 Jul 04
7
inverse of eval() ?
...9;', ''vette'']
puts eval(make)
--> What I need this to produce is
camaro
vette
Which of course it doesn''t ;-)
I''m still pretty new to Ruby and, while I''m sure there''s got to be an inverse to eval(), the hours I''ve spent in the Pickaxe book on this haven''t clicked for me.
Any assistance is greatly appreciated!!!
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060704/4b4a8abd/attachment.html
2007 Feb 13
5
default database schema and relationships
hi everyone..
i''m a high school teacher who wrote a webapp in PHP and MySQL for my
curriculum.. i use it to keep attendance, take notes per student or
class and keep track of activities. i would like to soup it up and
have read both the pickax and version 2 of agile web dev...
now i''m starting to work and i''d like to rename columns and
relationships in the database so
2006 Apr 25
11
How much Ruby?
I bought the pickaxe about 1 1/2 months ago, and I have been reading through
it and learning Ruby in my spare time. I''m about 200 pages into it, and I''m
starting to think I don''t need to know all of the in''s and out''s of Ruby to
get a good hang on Rails.
How much Ruby do I...