search for: symetry

Displaying 20 results from an estimated 29 matches for "symetry".

Did you mean: symmetry
2006 Aug 27
6
how to get the words of a query
Hi, Using aaf to search pages, I wanted to present excerpts from the texts even when more than one term was used in the search. I came to some results, despite the difficulty caused by Unicode+ruby. The last problem I''m faced is to get the query words, without the logical articulation chars if any. Is there a clean way to get them ? -- Jean-Christophe Michel
2006 Dec 25
2
Active Record acts_as_tree and leaf depth
Using acts_as_tree, is it possible to get information of the depth a tree leaf in relation to the root? Or is available to derive information to save in the way "position" can be derived and saved for acts_as_list. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2007 Apr 29
1
better nested set and :through
Hello all, It''s been a while since i''ve been doing any rails development, so i''m a bit rusty. Having found this: http://opensource.symetrie.com/api/better_nested_set/ it looks really interesting and useful for solving something i''m trying to get working. What i have (essentially) is the following models: class Group < ActiveRecord::Base
2006 Sep 03
9
using highlight from aaf
Hi, I''m trying to use highlight ferret method with trunk aaf and 0.10.1 ferret. In my search display I use: Myindexedclass.ferret_index.searcher.highlight(@query, result_line.id, :content) * searcher is a protected method; how can I access to the searcher from aaf ? * is the doc id in aaf the same as my model id ? * is the first param, query, the string query or the query object ?
2006 Aug 06
2
better_nested_set plugin
Hi, I''m pleased to announce that the better_nested_set plugin is released. It ehances acts_as_nested_set, adding methods to move parts of the tree, like: * move_to_child_of * move_to_right_of * move_to_left_of Pass them an id or an object. Other methods added by this mixin are: * root - root item of the tree (the one that has a nil parent; should have left_column =
2006 Jul 09
3
Mongrel and proxying with Apache 2 mod_proxy
Hi all, I''ve just spent some time going through trying to get mongrel & apache 2.0 working with mod_proxy. I thought I''d share what I''ve found in case someone is going through the same exercise. Of late, I''ve been using mongrel (lovely, btw) to run my rails apps. Since I have a couple of different rails apps running on the machine, I thought it be nice to
2006 Aug 28
1
strange 10 limit
Hi, I have a max_results limit of 10, whatever value I pass to max_results, even if I drop this option in my class. Same limit using script/console Myclass.find_by_contents(query) Ideas ? Using aaf 9.5. Jean-Christophe Michel -- symetrie.com Better Nested Set for rails: http://opensource.symetrie.com/trac/better_nested_set
2006 Aug 29
1
float/decimal with dot or comma
Hi, I''m facing a really strange behaviour with rails 1.1.6. A model has a field declared as :float in schema.rb, as numeric in postgres 8.1. On save/update, rails makes the decimal point become a comma on the prod server only, hence making a sql error. This error was not there three weeks ago, i.e. when my prod server was in 1.1.4. Maybe something else changed, I cannot be sure
2007 Jan 13
0
better nested set 0.1
We are pleased to announce the 0.1 release of the plugin betternestedset. It greatly enhances ActiveRecord''s internal acts_as_nested_set. Install it with: script/plugin install svn://rubyforge.org/var/svn/betternestedset/tags/stable/betternestedset Join the mailing list: http://rubyforge.org/mailman/listinfo/betternestedset-talk Report bugs:
2020 Jan 09
4
mean
...,"2","3")) [1] 1 And also: > median(c("1","2","3")) [1] "2" But: > quantile(c("1","2","3"),p=.5) Error in (1 - h) * qs[i] : argument non num?rique pour un op?rateur binaire It sounds like a lack of symetry. Best regards. Jean-Luc LIPATZ Insee - Direction g?n?rale Responsable de la coordination sur le d?veloppement de R et la mise en oeuvre d'alternatives ? SAS
2020 Jan 09
1
mean
...t;)) >>> [1] "2" >>> >>> But: >>>> quantile(c("1","2","3"),p=.5) >>> Error in (1 - h) * qs[i] : >>> argument non num?rique pour un op?rateur binaire >>> >>> It sounds like a lack of symetry. >>> Best regards. >>> >>> >>> Jean-Luc LIPATZ >>> Insee - Direction g?n?rale >>> Responsable de la coordination sur le d?veloppement de R et la mise en oeuvre d'alternatives ? SAS >> >> >> Hi, >> >> It wo...
2020 Sep 25
0
[RFC PATCH 02/24] vhost-vdpa: fix vqs leak in vhost_vdpa_open()
...;> +static void vhost_vdpa_cleanup(struct vhost_vdpa *v) >> +{ >> + vhost_dev_cleanup(&v->vdev); >> + kfree(v->vdev.vqs); >> +} >> + > Wouldn't it be cleaner to call kfree(vqs) explicilty inside > vhost_vdpa_open() in case of failure and keep the symetry of > vhost_dev_init()/vhost_dev_cleanup()? That's also fine. See https://www.mail-archive.com/virtualization at lists.linux-foundation.org/msg42558.html I will use that for the next version. Thanks. > >> static int vhost_vdpa_open(struct inode *inode, struct file *filep) &...
2006 Jul 13
0
how to generate api.rubyonrails.com as local ?
Hi, I didn''t find how to generate rails api similar to api.rubyonrails.com. rake api:rails is really not as good. It would probably spare much bandwith to make the script public ;-) or at least propose a tar download, instead of the idea of wget -r that googles finds when searching for rake api :/ Jean-Christophe Michel -- Sym?trie, ?dition de musique et services multim?dia 30 rue
2006 Mar 12
2
engines in edge
Hi, Engines is not working correctly for me with edge. I get: vendor/plugins/engines/lib/dependencies_extensions.rb:28:in `require_or_load'':NoMethodError: undefined method `log'' for Engines:Module I tried playing with Engines.create_logger at the end of config/environment.rb, but without success. ANy ideas ? PS: the Mailing List pages on rails-engines.org is empty :/ --
2006 Mar 23
3
migrations: how to have all data dumped into rb ?
Hi, I dumped the schema using rake db_schema_dump. Now how do I create a migration containing all the data I have in my dev db ? -- Jean-Christophe Michel
2006 Aug 22
3
synonyms
Hi, Using ferret and acts_as_ferret. Great work. Is there a way to define some synonyms (searchable words that would not appear in the texts ? Like stop words, but instead of being removed from query and index, they would be added ;-) Can some synonyms be regexp ? I''d like for instance to have ? (oelig) be equivalent to oe in French. Or maybe an utf8 normalization could achieve
2020 Jan 09
0
mean
...","2","3")) >> [1] "2" >> >> But: >>> quantile(c("1","2","3"),p=.5) >> Error in (1 - h) * qs[i] : >> argument non num?rique pour un op?rateur binaire >> >> It sounds like a lack of symetry. >> Best regards. >> >> >> Jean-Luc LIPATZ >> Insee - Direction g?n?rale >> Responsable de la coordination sur le d?veloppement de R et la mise en oeuvre d'alternatives ? SAS > > > Hi, > > It would appear, whether by design or just incons...
2007 May 02
3
acts_as_tree related question
hi, I''ve a normal Category model implemented with acts_as_tree (name, parent_id) that has_many :products (name, category_id). What I''m asking for is a method to fetch every product that belongs fall into a particular category and its children, eg: if I''m asking for a root node (/category/show/1) I need to display every product that have category_id = 1 AND every product
2006 Jun 20
2
Converting from acts_as_tree to acts_as_nested_set
I''m currently using acts_as_tree to display threaded Comments on my forums-like site. It''s waaay too slow to display a page with 1,000 comments, as it''s issuing a TON of selects. I''m pretty sure I want to convert to the nested set model, using acts_as_nested_set or acts_as_threaded. This should give me the performance I''m looking for. The problem,
2005 Dec 30
6
call a method once per page request
Hi, I''m wondering if there is a simple solution to call a method once per page request. I tried to place my call in a before_filter in ApplicationController but it''d called a second time if I use render_component from a view. Seems to me that a hook should be added in Dispatcher#prepare_application. Context: working on i18n, I''m trying to check lang either from uri,