similar to: include once in partial

Displaying 20 results from an estimated 20000 matches similar to: "include once in partial"

2006 Mar 16
1
include once in partials
Hi! I have to include javascript code into my partial but I should do it once. How can I do that? What is the rule of thumb? G?bor
2006 Feb 21
4
rekord id-je .create után
Hali! Mi a legegyszer?bb m?dja annak, hogy egy pl. note = Notes.create(...) ut?n megkapjam az adott note ActiveRecord id-j?t (primary key)? Sajnos ez ugye 0, mivel frissen lett l?trehozva... ?tlet? G?bor
2006 Mar 08
5
@params["aKey"] and multiple aKeys in request
Hi, I''ve actually run into an interesting problem and no idea how to fix it. In request parameters i have multiple "url" keys like this: url=www.abc.com&url=cnn.com&url=.... But @params[:url] has only the latest value for "url" key instead of having values kept in array. So what''s next? Is there way out of this issue? Thanks, G?bor PS.: I use rails
2006 Apr 02
16
12 / 16 = 0
Hi, Just thought it was weird that Ruby doesn''t automatically cast ints to floats. Seems so un-rubyish irb(main):006:0> 12/16 => 0 irb(main):007:0> 12.to_f / 16.to_f => 0.75 Jeroen
2005 Oct 24
3
bogus find_all in Rails 0.14.1
I have the following statement cl = ChatEvent.find_all("ev_type <> #{t} and chat_id = #{@params [:chat_id]} order by created_at") which produces the following error: #42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''order by created_at)'' at line 1: SELECT * FROM
2008 Dec 04
1
Comparing survival curves with "survdiff" "strata" help
ExpeRts, I'm trying to compare three survival curves using the function "survdiff" in the survival package. Following is my code and corresponding error message. > survdiff(Surv(st_months, status) ~ strata(BOR), data=mydata) Error in survdiff(Surv(st_months, status) ~ strata(BOR), data = mydata) : No groups to test When I check the "strata" of the variable. I get .
2010 Feb 05
2
number of Excel worksheets
Dear All, I would like to count or list the names of the existing worksheets within an .xls file. Any hints? Thaks, Gabor -- Pozsgai G?bor www.coleoptera.hu www.photogabor.com
2007 Feb 09
3
Re: URL issues
hello... On 2/8/07, cdvr <codecraig-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > I watched the rails screencast on creating a blog in 15 minutes. > I followed along got it working on my home PC and I then uploaded it > to my web host. So I have, > > /home/<username>/blog > > I had to change some config in the blog app (i.e. production
2009 Aug 24
1
How to generate more triangles in sequences?
Hi everyone, I want to plot some pattern. For example, I have some coding as below, plot(0:11,type="n") polygon(c(6,8,10), c(7,3,5),bor=6) polygon(c(2,4,6), c(5,3,7),bor=6) polygon(c(6,10,8), c(7,9,11),bor=6) polygon(c(2,6,4), c(9,7,11),bor=6) This coding will give me four triangles, but how to generate more triangles in sequences so that not need to mention the coordinate for each
2019 Aug 25
2
Conventions: Use of globals and main functions
This seems like a nice idiom; I've seen others use? ? if(!interactive()){? ? ? ? main()? ? }to a similar effect. Best,CG On Sunday, August 25, 2019, 01:16:06 AM CDT, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote: This is what I usually put in scripts: if (is.null(sys.calls())) { ? main() } This is mostly equivalent to the Python idiom. It the script runs from Rscript, then it
2023 Apr 14
1
Package Caret
Or is there any similar function to split the dataframe to trainDF and testDF? G?bor Malomsoki <gmalomsoki1980 at gmail.com> schrieb am Fr., 14. Apr. 2023, 09:45: > > This is the error then: > error in prettyseq(1:ncol(out)) : could not find function "prettyseq" > > > > > Eric Berger <ericjberger at gmail.com> schrieb am Fr., 14. Apr. 2023, 09:06:
2005 Aug 25
1
newbie questions about hosting address
Dear Rails groups, thank you for all the previous helps in this group, and me being a newbie is getting more comfortable with rails and now I finish most of the scaffold modification without much problem. My question is(I know it''s absolutely basic questions but I''m a real outsider :~( ) I have been developing in my own pc, now my office ''s other people will test on it,
2023 Apr 16
2
Package Caret
Many thanks Bert, now is ok, i did not know that "Namensraum" should mean a package Am So., 16. Apr. 2023 um 23:44 Uhr schrieb Bert Gunter < bgunter.4567 at gmail.com>: > So update the vctrs package to the latest version first before loading > R-tools (or the caret package, specifically)? > > -- Bert > > On Sun, Apr 16, 2023 at 1:57?PM G?bor Malomsoki >
2023 Apr 14
2
Package Caret
This is the error then: error in prettyseq(1:ncol(out)) : could not find function "prettyseq" Eric Berger <ericjberger at gmail.com> schrieb am Fr., 14. Apr. 2023, 09:06: > What happens if you do the following? > > library(caret) > > ?caret::createDataPartition > > i.e. to confirm that caret is loaded, seek help on this function > > > On Fri, Apr
2020 Jun 09
2
r-project.org SSL certificate issues
Was this resolved upstream or is this something that R should/could fix? If the latter, could this also go into the "emergency release" R 4.0.2 that is scheduled for 2020-06-22? My $.02 /Henrik On Sun, May 31, 2020 at 8:13 AM G?bor Cs?rdi <csardi.gabor at gmail.com> wrote: > > Btw. it would be also possible to create a macOS R installer that > embeds a static or
2023 Apr 16
1
Package Caret
So update the vctrs package to the latest version first before loading R-tools (or the caret package, specifically)? -- Bert On Sun, Apr 16, 2023 at 1:57?PM G?bor Malomsoki <gmalomsoki1980 at gmail.com> wrote: > > I have newly installed R, R-tools, RStudio, but still not working: > > library(caret)Lade n?tiges Paket: latticeError: Laden von Paket oder > Namensraum f?r
2014 Jan 22
4
After USB boot problems on Gigabyte GA-M55Plus-S3G
> > Both sticks show very unusual factors for heads and sectors > > which are hardly intentional. If BIOS gets confused like fdisk, > > then the failure to find files is quite plausible. > > > > ------------------------------------------------------------- > > > > Could you please exercise what is described for Linux in > >
2023 Apr 14
1
Package Caret
You should post the result of running sessionInfo(), and tell us how you installed R. Your installation seems very broken. Duncan Murdoch On 14/04/2023 3:45 a.m., G?bor Malomsoki wrote: > This is the error then: > error in prettyseq(1:ncol(out)) : could not find function "prettyseq" > > > > > Eric Berger <ericjberger at gmail.com> schrieb am Fr., 14.
2023 Apr 16
1
Package Caret
I have newly installed R, R-tools, RStudio, but still not working: library(caret)Lade n?tiges Paket: latticeError: Laden von Paket oder Namensraum f?r ?caret? in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): fehlgeschlagen Namensraum ?vctrs? 0.5.2 ist bereits geladen, aber >= 0.6.0 wird gefordert Error in createDataPartition(hypotezis_df$X, p = 0.75, list = FALSE, times
2017 Mar 04
5
can we override "if" in R?
I'm just curious. Why making "if" generic is even more dangerous? Best, Da On Sat, Mar 4, 2017 at 1:22 PM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote: > `!` is a generic, `if` is not. You can define an `if` that is generic, > but this might be even more dangerous.... > > ? `if` <- function(a, b, c) UseMethod("if") > ? `if.default` <-