nder and CIO for an already successful
ruby-based Internet startup that is the first and best in the health2.0
space for helping couples save, revitalize, and enrich their relationships.
Yours truly, for justice and the planet,
Gary Krane PhD, cofounder, co-director, the* FightBackWisel
I'm with a growing RoR shop in Washington state. We're looking for a
senior RoR developer who would like to work from home. If you'd like
more info, visit our website at
http://www.k3integrations.com/news-blog/news/were-growing
Thanks,
Gary
--
Posted via http://www.ruby-forum
I'm with a growing RoR shop in Washington state. We're looking for a
senior RoR developer who would like to work from home. If you'd like
more info, visit our website at
http://www.k3integrations.com/news-blog/news/were-growing
Thanks,
Gary
--
Posted via http://www.ruby-forum
convention.
Linux is like a dragster waiting at the start line for newbies. Raw
power waiting for you to take control
Regards
Gary
On Mar 8, 3:55 pm, Julio Figueiredo
wrote:
> I am a newbie at RoR and am disappointed by the fact that I couldn't
> install it in my Ubuntu 10.10 usin
to set aside a few hours to install the system, because there
may be some incompatibilities to be fixed.
As regards IDE's you may want to look at Rubymine, because Netbeans
will may have less support for Ruby in future.
Regards
Gary
On Mar 8, 3:55 pm, Julio Figueiredo
wrote:
> I am
Is there any way to create IP address range? like 192.168.0.1/24.
It's too annoy to create a data each time.
I find a Rubygems' ipaddress.
http://rubygems.org/gems/ipaddress.
I would like to take this to created IP range.
in new.heml.erb
<%= f.lable :iprange %>
<%= f.text.field :iprange %>
I don
://guides.rubyonrails.org/layouts_and_rendering.html
and search for RJS)
Cheers
Gary
On Oct 28, 4:53 am, bertly_the_coder wrote:
> Hey guys,
>
> This seems pretty simple, but I cannot seem to find an answer online.
> I have a user model and would like to use a user object in the js
> file. Any
By the time this posts it will be my birthday and I'll be 45. Been in IT
for 27 years. Started out on mainframes (IBM radiator cooled 3090) and
mini's (DEC Vax).
Wrote a program to get rid of Avon's last Hollerith punch card reader in
1990. (Yeah, they were a little lat
maybe try .cdatas on the parent node rather than children. Not sure
about Nokogiri but such a method exists for rexml/document.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this g
One way would be to check the children until you get the CData node:
parent_node = xml_request_doc.xpath("//attached_document")
# this assumes parent_node is not nil
cdata_node = parent_node.children.detect {|n| n.cdata?}
# i think you can then just do:
cdata_node.value
--
Posted via http://w
You need ruby 1.8.7-p299. Earlier versions don't compile against openssl
1.0.0 without patching.
ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p299.tar.gz
Cheers,
Gary.
On 08/08/2010 12:01 PM, Adam wrote:
I use Fedora Core 13
--
You received this message because you are subsc
version error, I get version 1.3.4 when I type gem -v
at the command.
Yes, but it's the rack version it is complaining about, not rails.
gem install rack -v=1.0.1
Cheers,
Gary.
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk"
format.xml { render :xml => @business }
end
end
What have I missed?
Errm... I guess you've missed the fact that you haven't actually loaded
or assigned @addresses in your controller?
Cheers,
Gary.
--
You received this message because you are subscribed to the Google Grou
Rails 1.1.6 that you seem to be using is not compatible with ruby 1.9
which you also seem to be using.
If you are just starting out with rails you really ought to be using the
latest version, not an ancient version.
Cheers,
Gary.
On 18/02/2010 7:28 PM, Spencer Spence wrote:
anyone
Is there a document anywhere on how to migrate merb w/ datamapper and
haml to rails3?
Any known gotchas?
Thanks,
Gary
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rub
I'll post the
recipe and the vhost.conf file.
Gary
On Feb 1, 5:26 pm, rubybox wrote:
> Correction on above, I login as git user for my ssh Forgot to add that
> sorry about that.
> It all works so if syntax above is not correct its just typo.
>
> I think i Need Cap to do
ails 3
compliant) or simply 'mountable apps / plugins'.
Can anyone give me some direction on this one please ?
Many Thanks
Gary
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email
:current_theme]=theme
prepend_view_path([
::ActionView::ReloadableTemplate::ReloadablePath.new
(Rails::public_path + "/themes/#...@theme}/views")])
end
Regards
Gary
On Jan 24, 4:24 pm, eugenio wrote:
> what is the easiest way to achieve t
s = Member.find(:all,
:conditions => ["LOWER(CONCAT(first_name,last_name)) LIKE ?",
'%' + params[:member][:name].downcase + '%'])
This will behave identically to your postgres example as you are adding the two
fields together and then comparing with the se
t
version of thin. I had the same problem when I updated rack to 1.1.0.
After uninstalling rack 1.1.0 and reverting back to rack version 1.0.1
all worked OK again.
Cheers,
Gary.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
T
how can we force
this behavior?
-Gary
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe f
t', 'exslt'
Not sure if there are missing gems, and if so, what to install. Any ideas how
to fix this?
Thanks very much.
Gary M.
Program -- main.rb:
--
## Google
require 'rubygems'
require 'mechanize'
a = WWW::Mechanize.new { |ag
Thanks lads.
I'll check that when I finish work.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrail
Hi,
I've come across a strange issue with one of my views.
Simple login form,
<% form_tag do -%>
Login
<%= text_field_tag 'login' %>
Password
<%= password_field_tag 'password' %>
<%= submit_tag 'Log in' %>
<% end -%>
But browsers are rendering the te
Jian Lin wrote:
> Gary Doades wrote:
>> "Starting inserting records"
>> 31.996000 0.639000 32.635000 ( 35.356000)
>> 3
>>
>> For 3 inserts with all indexes:
>>
>> "Starting inserting records"
>> 32.795000 0.
is the hash lookup code or ActiveRecord that is
gobbling up the time, but it certainly isn't the database.
You'll need to tinker with, or better profile your code to find out what
is sucking up the time.
Cheers,
Gary.
--~--~-~--~~~---~--~~
You recei
run your code with your sample data
against MySQL and Postgres to give you some ideas. I don't really know
much about sqlite, but I must admit I'm curious as to where the time has
gone in such an apparently simple situation.
Don't forget to include th
You can always do "select * from phrases where length(s) > 3" or
something like.
Are you sure your overall run time is not limited by CPU rather than IO?
How much CPU time is used to run your code?
Cheers,
Gary.
--~--~-~--~~~---~--~~
You r
Jian Lin wrote:
> Jian Lin wrote:
>
>> i was doing it like this:
>>
>>
>> all_phrases = frequencies.keys
>> Phrase.transaction do
>> all_phrases.each do |phrase|
>> recordPhrase = Phrase.new(:s => phrase, :frequency =>
>> frequencies[phrase], :length => lengths[phrase])
>> recordPhrase.sav
Jian Lin wrote:
> Gary Doades wrote:
>
>> If you have made the change to count up words first and then *insert*
>> all the (word,count) records into the database in a *single* transaction
>> then it ought to take less than a second. I would expect that the total
>>
d as
a *single* transaction.
If it is still taking minutes then you are probably not doing the above
somehow. I think in that case you need to post your code again so we can
see what it is doing now.
Cheers,
Gary.
--~--~-~--~~~---~--~~
You received this message bec
ase engine doesn't do
this you risk losing part or all of your database if some kind of
failure happens part way though your updates.
If you don't care if you lose part or all of your database, most
database engines also have a setting for this.
Cheers,
Gary.
--~--~-~--
Yes, an index/caching will make the lookup faster, but even at the
optimum you are looking at 6000 transactions. Never in two seconds
unless you have some unsafe (buffered, no fsync) setting on your db engine.
Cheers,
Gary.
Colin Law wrote:
> Would not the index make the lookup faster but
you might get it to
go quite a bit faster.
Cheers,
Gary.
Jian Lin wrote:
> i am writing a test program for ActiveRecord, and it reads a document
> which is like 6000 words long. And then i just tally up the words by
>
> recordWord = Word.find_by_s(word);
> if (r
Whenever I go to the rubyonrails.org website, it has been replaced
with a page which is like a search engine for all things rails. I
can't find the documentation or anything ???
I am assuming that everyone has this problem or is it just me ?
Cheers
Hassan Schroeder wrote:
> On Sat, Apr 18, 2009 at 12:35 AM, Gary Doades wrote:
>
>>> So if someone knows MySQL well, s/he may not want to put the time
>>> into learning the gotchas of another DB. I would charge more just to
>>> cover the aggravation of using
never found PgAdmin then :)
Cheers,
Gary.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from thi
l call xchg_source with a nil value. Since you
haven't posted the code for xchg_source it's hard to tell what's
happening in there.
did you mean:
if !source
puts "this is source = #{source} #{source.class}"
puts "do we get here? why?"
Linux and FreeBSD. Windows is fine as long as you use the
postgres-pr gem, mainly because the binary adapters for ruby are not
well supported under Windows. Using Linux and FreeBSD, never had a problem.
I'm sure you will find support for the combination and even commercial
support for post
if so how. I do not find a moderator address at the bottom of your
emails, otherwise i would have written that person.
Yours truly for love, justice, and the planet,
Gary Krane PhD
Director/Founder, David vs Goliath Services (Fundraising and
Publicity), Smarter More Fun Ways To Organize
CEO
x27; - and to my amazement, everything worked.
I do wish the rails guys had made this a little less painful though -
I bet it puts off some newbies from even venturing into rails.
Hope this helps
Gary
On Apr 5, 8:19 am, Scott Corgan wrote:
> I've tried a million different tutorials and I
butes=, then straight away it complains
that the method build_owner is missing.
Regards
Gary Taylor
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this g
Hi everyone,
I'm trying to create an application to take pictures from the users'
webcam and save them into the database.
This is my actionscript code :
Code :
1. import flash.display.BitmapData;
2. localCamera = Camera.get();
3. myCam.attachVideo(localCamera);
4.
5. var bitm
blems with MySQL
5.1 and the mysql gem with ActiveRecord. Switching back to MySQL version
5.0.67 and re-installing the MySQL gem seemed a lot better.
I mainly use postgresql anyway which has no such problem nuder Windows
or Linux.
Cheers,
Gary.
--~--~-~--~~~---~--~---
e_name "module_user_map"
belongs_to :user, :foreign_key => "user"
belongs_to :project_module, :foreign_key => "module"
end
we're good. Thank you so much! It would be great if this gave better
error messages.
<>< gary
Bill Walton wrote:
> I
I've searched for information about this and compared what I have to the
solutions I can find, here and elsewhere. I found some good and useful
information, yet my stuff still doesn't work. I was hoping somebody here
could spot something. I'm using rails 2.1.2 and I'm pretty new to ruby
and rails.
46 matches
Mail list logo