search for: barbudas

Displaying 20 results from an estimated 20 matches for "barbudas".

2008 Nov 10
3
to_xml and helper methods
Hi, I have an array with objects and I want to generate an XML like: <objects> <object> <category_id>1</category_id> <helper-method>result 1</helper-method> </object> <object> <category_id>2</category_id> <helper-method>result 2</helper-method> </object> </objects> The helper
2010 Apr 19
3
which views are rendered for an URL
Hi, Is there a way I can figure out which files are run for a specific URL? Given http://www.planet.com/countries files like: countries/ index.html.erb, countries/_country.html.erb, layouts/ application.html.erb and so on. Thank You -- M. -- 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
2011 Jan 05
2
real time R
Hi, We're using R in an application where asking for a probability of an event takes about 130ms. What could we do to take that down to 30ms-40ms? The query code uses randomforest, knn. -- M.
2009 Mar 29
2
after_create and after_save
Hi, AFAIK after_create is called after_save if the entry does not exist in the DB. Is there a way to tell if a specific model is new or not in after_save? I have to do something like: def after_save add_to_history ''save'' end def after_create add_to_history ''create'' end However after_save is called when creating too. -- cheers, M.
2009 Mar 08
3
scaling full text indexing(ferret vs solr vs hyperstraier)
Hi, Does any have experience scaling full text search in RoR? Right now our project is running a simple setup with ferret and acts_as_ferret. We are thinking about deploying a feature that would send 50x more search requests. So we probably have to rethink our solution. How do services like search.twitter.com (the former Summize) use? Or in what direction should I look? -- Thanks, M.
2007 Mar 26
1
Handling Multiple Select Lists
Hi All, After much searching and head scratching I post you this! I can''t seem to find a generic way to handle multiple select data. The function I use to receive form values will only pass the first selected value from a multiple select. I have pasted part of the form and the function below. Thanks for any pointers, Vince // Example selectbox <select
2008 Oct 24
7
combining data from different datasets
Hi, I have two tables: > iso continent code code3 codenum country 1 EU AD AND 20 Andorra, Principality of 2 AS AE ARE 784 United Arab Emirates 3 AS AF AFG 4 Afghanistan, Islamic Republic of 4 NA AG ATG 28 Antigua and Barbuda 5 NA AI AIA 660
2010 Apr 02
2
Uncaught exception failed to allocate memory
Hi! I have a recipe that''s supposed to download ree from a master and install it. It looks like: # Install ree file { "/root/puppet-setup/ruby- enterprise_1.8.7-2010.01_amd64.deb": source => "puppet://$servername/files/ruby- enterprise_1.8.7-2010.01_amd64.deb", mode => 0644, owner => root, group => root, notify =>
2007 Jul 07
2
How to calculate the index "the number of species combinations"?
I want to analyze the co-occurrence of some species. In some papers, the authors said that the index"the number of species combinations (COMBO)" is a good index. I try to calculate the index by R language. But I can not get the right value. I think that I do not understand the concept of the index because my english is not good. The concept: *The number of species combinations *This
2007 Sep 06
1
multi_search with dfferent model conditions
Hi, Is there a way to pass multi_search separate conditions for each model? -- R. -- Posted via http://www.ruby-forum.com/.
2009 Feb 01
1
activerecord access raw serialized data
Hi, I have a model with a serialized field ''other_data''. How can I add raw YAML data to that field? If i try: model[other_data] = yaml_formatted_data yaml_formatted_data gets YAML formatted again. -- cheers, M. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2012 Dec 04
6
Help for a function
Hello all, I need a help. I am modeling a disease and a create a R function like that: Lambda<-function (x,date1,r,h,a){ ndate1 <- as.Date(date1, "%d/%m/%Y") t1 <- as.numeric(ndate1) x[order(x$i),] t <-x[,"t"] i <-x[,"i"] CONTAGIEUX <-x[,"CONTAGIEUX"] while ( t1 < min(t) ){ for (i in 1:length(i) ){ {for (j in
2008 Dec 28
0
RJS form validation
Hi. I''m trying to add and validate objects using RJS. I have a page where if a user clicks on a link a form partial is inserted via javascript(depending on the click). If that form is valid I would like to remove it and display the object, otherwise rewrite the form with the errors inline(next to each field). I''m stuck at the point where I don''t know how to rewrite
2009 Apr 10
0
p3p policy and rails 2.3
Hi, Has anyone encountered a problem where IE6 rejects all P3P policies sent by Rails/Nginx? I had a simple setup that worked in 2.2.2 and it doesn''t anymore: Server: nginx/0.6.32 Date: Fri, 10 Apr 2009 00:03:36 GMT Content-Type: text/html; charset=utf-8 Connection: keep-alive Set-Cookie: _app_session=BAh7BjoPc2Vzc2lvbl9pZCIlNjZjMTU0Nzk0YWFiMmQ2N2IxOGQ2ZjJhNjgzMmM3ZTI
2009 Apr 25
0
ferret, will_paginate and group by
Hi, Is it possible to use "find_with_ferret" and GROUP BY together? Count(*) doesn''t return what will_paginate expects when using GROUP BY, and AFAIK a workaround for that is to manually get total_entries and pass it to Model.paginate. However how does that work with find_with_ferret where I have no idea how to find total_entries? Is it even possible? -- M.
2009 May 28
0
i18n and count question
Hi. What is the proper way to handle situations where you need pluralization with and without adding the count? The best I could think of is to write it twice: item: one: ''item'' other: ''items'' c_item: one: ''one item'' other: ''{{count}} items'' It''s not very DRY. I guess there should be a better way of
2009 Sep 12
3
maintaining multiple API versions
Hi. What''s beautiful about Rails is that it provides the incredibly easy system for API building. At the same time once you grow and production test the application you start finding that you can make the API interface even better. But you have to break backward compatibility. How do you handle this situation? I was initially planning something like DNS versioning and multiple rails
2010 Sep 24
0
template.base_path in rails3
Hi! With Rails 2 template.base_path and template.name were available in views. What are the Rails3 equivalents? -- M. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2010 Sep 30
0
upgrade to Rails3 question
Hi! After upgrading to Rails3 and the latest plugins, two of the plugins: delayed_job and oauth_plugin don''t work. They display a similar problem, I am not able to use methods they provide. In delayed_job''s case I can''t use Model.delay.method (undefined method) and with oauth_plugin adding oauthenticate in the controller returns undefined method too. Could I have
2011 Sep 15
0
streaming with rails 3.1 and ruby 1.8.7
Hey! I''m working with an app where migrating to ruby 1.9.2 is currently not an option, so I can not use Rails 3.1 streaming. One of the features is sending large XML and CSV files. In Rails 3.0 I used the self.response_body {} hack which worked pretty OK. This stopped working in Rails 3.1. How can I do streaming with Rails 3.1 and ruby 1.8.7? -m. -- You received this message