Displaying 20 results from an estimated 1000 matches similar to: "Conditional pluralize without the number"
2006 Apr 12
1
pluralization issue? (taxes/taxis)
Hi all,
Here''s an odd one. I have a "Tax" model which is related via a habtm
relationship to a "Storefront" model. In my view_store rhtml file, I
have the line :
@storefront.taxes.each do |tax|
This line returns the following error:
NameError in Admin#view_store
Showing app/views/admin/view_store.rhtml where line #52 raised:
uninitialized constant Taxis
See
2006 Jan 19
4
Using RoR pluralization rules
Hello,
RoR seems to be aware of plurals like category=>categories etc..I Want to
be able to use this in my application to relate some keywords.Is it possible
?or does RoR itself use some ruby library?
Thanks
Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060119/d5660663/attachment.html
2020 Oct 09
0
2 D density plot interpretation and manipulating the data
Hi Abby,
Thanks for getting back to me, yes I believe I did that by doing this:
SNP$density <- get_density(SNP$mean, SNP$var)
> summary(SNP$density)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0 383 696 738 1170 1789
where get_density() is function from here:
https://slowkow.com/notes/ggplot2-color-by-density/
and keep only entries with density > 400
2006 Sep 05
1
Inflector::pluralize("Agencies")=="Agency" ?
The result of Inflector::pluralize("Agency") is correctly "Agencies",
but pluralize again and it goes back to the singular ?
Is this as expected ?
Also, I have a need to know if a word is singular or plural, and to
convert it to one or the other regardless of it already being so.
Anyway, I''ve written these which seem to work. Do they already exist
somewhere ?
def
2010 Jul 28
1
Problem loading YAML files and using pluralize method in Rails3rc
Hi,
I just upgraded my rails app from rails3.0.0beta4 to rails3.0.0rc and
I''m having problems loading a yaml file. I have a load_config.rb in
the initializers folder which loads a yaml file. The basic loading
code is:
FACEBOOK_CONFIG = YAML.load_file(File.join(Rails.root, ''config'',
''facebooker.yml''))[RAILS_ENV]
This stopped working when I moved to
2006 Jan 09
2
Pluralizations
Hi, I''m new to Ruby and Rails, and I''m running Ruby 1.8.4 with Rails 1.0
on Ubuntu 5.10 (breezy).
I wanted to have a model Software, with the table as software (since
''software'' is the plural too). I appreciate one can simply use something
like use_table or whatever (can''t remember the exact command) in the
Model file, but I''d much rather
2006 Apr 16
5
Newbie Problems with pluralization
Hi,
I have a many to many relationship incorporating the following tables:
taxes --> taxes_tax_groups --> tax_groups
I have a model named tax with the following declaration:
has_and_belongs_to_many :tax_groups
and I have a model named tax_group with the following declaration:
has_and_belongs_to_many :taxes
I am attempting to run the following unit test:
require
2020 Jan 14
4
as-cran issue ==> set _R_CHECK_LENGTH_1_* settings!
> On Jan 14, 2020, at 3:29 PM, Abby Spurdle <spurdle.a at gmail.com> wrote:
>
>> I do want to entice people to have a long look beyond closed
>> source OS into the world of Free Software where not only R is
>> FOSS (Free and Open Source Software) but (all / almost) all the
>> tools you use are of that same spirit.
>
> And while everyone is talking about
2020 Oct 09
0
2 D density plot interpretation and manipulating the data
Hi Abby,
thank you for getting back to me and for this useful information.
I'm trying to detect the outliers in my distribution based of mean and
variance. Can I see that from the plot I provided? Would outliers be
outside of ellipses? If so how do I extract those from my data frame,
based on which parameter?
So I am trying to connect outliers based on what the plot is showing:
s <-
2020 Oct 09
3
2 D density plot interpretation and manipulating the data
You could assign a density value to each point.
Maybe you've done that already...?
Then trim the lowest n (number of) data points
Or trim the lowest p (proportion of) data points.
e.g.
Remove the data points with the 20 lowest density values.
Or remove the data points with the lowest 5% of density values.
I'll let you decide whether that is a good idea or a bad idea.
And if it's a
2012 Jul 19
20
Rails' inflections are messy
Yesterday, I opened a GitHub Issue<https://github.com/rails/rails/pull/7071> about
moving Rails inflections to an initializer. The idea wasn''t received well,
understandably, as generating a large initializer with new Rails apps is
pretty unappealing. However, the core members seemed open to the discussion
of alternatives continuing here.
For those of you not in the know,
2020 Oct 09
2
2 D density plot interpretation and manipulating the data
I recommend that you consult with a local statistical expert. Much of what
you say (outliers?!?) seems to make little sense, and your statistical
knowledge seems minimal. Perhaps more to the point, none of your questions
can be properly answered without subject matter context, which this list is
not designed to provide. That's why I believe you need local expertise.
Bert Gunter
"The
2019 Jun 14
2
Halfway through writing an "IDE" with support for R; Proof of concept, and request for suggestions.
On Sat, 15 Jun 2019 at 01:24, Abby Spurdle <spurdle.a at gmail.com> wrote:
>
> None of the tools that I've looked at satisfy these constraints.
> But if you know of some, I'd like to know... And I would consider contributing...
What about Atom, VS Code and the like? Or what about taking a project
that meets most of the constraints and pushing to cover all of them,
or even
2019 Jul 08
5
Format printing inside a matrix
Hi Abby,
Thanks a lot for your paraphrasing and your suggestion!
The problem of wrapping the list into a S3/S4 object, i.e. subclassing array
or matrix, is that one also has to define a bunch of methods for subsetting,
joining, etc, in order to make it behave like a list array. The reason is that
most R functions for subsetting, joining, etc. do not preserve class
attributes of the input, which
2020 Jun 07
1
[External] Re: use of the tcltk package crashes R 4.0.1 for Windows
sorry, release "versions"
On Mon, Jun 8, 2020 at 11:17 AM Abby Spurdle <spurdle.a at gmail.com> wrote:
>
> On Mon, Jun 8, 2020 at 4:09 AM Fox, John <jfox at mcmaster.ca> wrote:
> > Does it make sense to withdraw the Windows R 4.0.1 binary until the issue is resolved?
>
> Yes, it does.
> All the release reversions should be removed.
2006 Feb 13
5
Acts_as_taggable pluralize
I am implementing a messaging system, which requires broadcast to group
feature.
Instead of a relatively clunky habtm group structure, I am using tags.
Form a usability standpoint, it would be helpful to avoid redundant
tags. Like, friend vs friends OR client vs. clients.
Is it practical to filter tags, before entry, to avoid duplicate tags
like plural vs. singular?
--
Posted via
2013 Mar 22
1
Sen's slope - fume package different output than zyp or wq
Hello,
I am trying to decide which package to use to calculate the non-parametric
Sen's Slope for identifying trends in rainfall data (determine the slope
between all pairs of points and take the median of those slopes). I have
found three packages that output Sen's: "zyp", "wq" and "fume". The
outputs of "zyp.sen()" and "mannKen()" from
2020 Oct 09
0
2 D density plot interpretation and manipulating the data
Hi Bert,
Another confrontational response from you...
You might have noticed that I use the word "outlier" carefully in this
post and only in relation to the plotted ellipses. I do not know the
underlying algorithm of geom_density_2d() and therefore I am having an
issue of how to interpret the plot. I was hoping someone here knows
that and can help me.
Ana
On Fri, Oct 9, 2020 at
2011 Apr 05
4
Rails 3.0.5 gives SQLite3::SQLException for the same code that works on 3.0.3
Hello,
I recently updated Rails to 3.0.5. The very same code that worked on
3.0.3 now gives error.
The code is:
def kategorialista
Kategoria.where(:elfogadva => TRUE).order("nev").collect {|s|
[s.nev, s.sefuri]}
end
It is in application_controller.rb with
helper_method :kategorialista
The error it gives on 3.0.5:
SQLite3::SQLException: no such table: kategoria: SELECT
2011 Sep 19
6
64.31.19.48 attempt to break into my computer
>From my secure log:
Sep 19 01:16:44 lin12 dovecot-auth: pam_unix(dovecot:auth): check pass; user unknown
Sep 19 01:16:44 lin12 dovecot-auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser= rhost=::ffff:64.31.19.48
Sep 19 01:16:44 lin12 dovecot-auth: pam_succeed_if(dovecot:auth): error retrieving information about user aaron
Sep 19 01:16:45 lin12