[Rails] For any serious activist coder in the group

2017-05-12 Thread Gary Krane
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

[Rails] Re: Telecommuting full-time opportunity

2012-11-30 Thread Gary Benton
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

[Rails] Telecommuting full-time opportunity

2012-11-30 Thread Gary Benton
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

[Rails] Re: RoR failure

2011-03-09 Thread Gary
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

[Rails] Re: RoR failure

2011-03-09 Thread Gary
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

[Rails] [Rails problem]create IP address range?

2010-11-30 Thread gary
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

[Rails] Re: Using Rails Objects in js file

2010-10-28 Thread Gary Taylor
://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

[Rails] Re: How old are you?

2010-10-11 Thread Gary L.
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

[Rails] Re: Re: Can not get CDATA out of XML node using Nokogiri

2010-08-13 Thread Gary Winklosky
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

[Rails] Re: Can not get CDATA out of XML node using Nokogiri

2010-08-13 Thread Gary Winklosky
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

Re: [Rails] Re: Ruby 1.8.7 and openssl failed compile

2010-08-08 Thread Gary Doades
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

Re: [Rails] server wont start

2010-03-24 Thread Gary Doades
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"

Re: [Rails] You have a nil object when you didn't expect it! Error!

2010-02-18 Thread Gary Doades
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

Re: [Rails] Re: rails error

2010-02-18 Thread Gary Doades
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

[Rails] migrating merb to rails3?

2010-02-11 Thread Gary Yngve
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

[Rails] Re: Deploying issues with plesk.. usergroups, permissions and mysql database creation

2010-02-01 Thread Gary Taylor
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

[Rails] Mountable Apps

2010-01-29 Thread Gary Taylor
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

[Rails] Re: same controller and database, different views based on domain name

2010-01-25 Thread Gary Taylor
: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

Re: [Rails] Re: Multi-column search in MySQL

2010-01-06 Thread Gary Doades
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

Re: [Rails] thin server claims I don't have correct rails gem installed

2010-01-05 Thread Gary Doades
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

[Rails] Question on caching

2009-11-04 Thread Gary Burke
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

[Rails] Load Error Using Mechanize Gem

2009-09-17 Thread Gary Massing
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

[Rails] Re: Strange View Problem

2009-08-07 Thread Gary Chris
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

[Rails] Strange View Problem

2009-08-06 Thread Gary Chris
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

[Rails] Re: updating the db 6000 times will take few minutes ?

2009-05-10 Thread Gary Doades
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.

[Rails] Re: updating the db 6000 times will take few minutes ?

2009-05-10 Thread Gary Doades
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

[Rails] Re: updating the db 6000 times will take few minutes ?

2009-05-10 Thread Gary Doades
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

[Rails] Re: updating the db 6000 times will take few minutes ?

2009-05-10 Thread Gary Doades
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

[Rails] Re: updating the db 6000 times will take few minutes ?

2009-05-10 Thread Gary Doades
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

[Rails] Re: updating the db 6000 times will take few minutes ?

2009-05-10 Thread Gary Doades
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 >>

[Rails] Re: updating the db 6000 times will take few minutes ?

2009-05-10 Thread Gary Doades
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

[Rails] Re: updating the db 6000 times will take few minutes ?

2009-05-09 Thread Gary Doades
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. --~--~-~--

[Rails] Re: updating the db 6000 times will take few minutes ?

2009-05-09 Thread Gary Doades
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

[Rails] Re: updating the db 6000 times will take few minutes ?

2009-05-09 Thread Gary Doades
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

[Rails] Rails Web Site

2009-04-23 Thread Gary Taylor
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

[Rails] Re: Ruby + Postgres = Bad Idea or Good Idea?

2009-04-18 Thread Gary Doades
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

[Rails] Re: Ruby + Postgres = Bad Idea or Good Idea?

2009-04-18 Thread Gary Doades
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

[Rails] Re: When is nil not false?

2009-04-17 Thread Gary Doades
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?"

[Rails] Re: Ruby + Postgres = Bad Idea or Good Idea?

2009-04-17 Thread Gary Doades
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

[Rails] can startups post equity-based techcofounder positions here and

2009-04-09 Thread gary krane (DavidvGoliath)
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

[Rails] Re: Just can't get Ruby on Rails to work in Leopard

2009-04-06 Thread Gary Taylor
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

[Rails] Polymorphic Nested Attributes In 2.3

2009-03-07 Thread Gary Taylor
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

[Rails] Take a picture from the webcam and save it into the database

2009-01-17 Thread Gary Gekko
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

[Rails] Re: rake aborted! undefined method `each' for #

2008-11-30 Thread Gary Doades
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. --~--~-~--~~~---~--~---

[Rails] Re: Yet another "NameError: uninitialized constant" problem

2008-11-28 Thread Gary Bisaga
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

[Rails] Yet another "NameError: uninitialized constant" problem

2008-11-28 Thread Gary Bisaga
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.