similar to: How to pass strings to functions? [once once more, now With content I hope...]

Displaying 20 results from an estimated 2000 matches similar to: "How to pass strings to functions? [once once more, now With content I hope...]"

2004 Aug 11
1
Fwd: Enduring LME confusion… or Psychologists and Mixed-Effects
In my undertstanding of the problem, the model lme1 <- lme(resp~fact1*fact2, random=~1|subj) should be ok, providing that variances are homogenous both between & within subjects. The function will sort out which factors & interactions are to be compared within subjects, & which between subjects. The problem with df's arises (for lme() in nlme, but not in lme4), when
2007 Sep 26
2
How to 5ubscribe with modules
Ok.. munging the tag below to get pas the agressive mailbot administrivia filter. I have a manifest the following: module::foo{"$someVariable": param1=>"x" } modul::bar{"data": 5ubscribe => [Module::Foo["$someVariable"]] } The only way to get past the parsing seems to be to do one of the following: 5ubscribe
2008 Feb 29
1
Optional data argument for a function
Dear All, I am working on a function that has an optional data argument, just like lm(). If the user sets the data argument equal to some dataframe, then the function should look inside the dataframe for the variables given to other arguments, otherwise the variables should be accessible from what I believe is called the parent frame from which the function was called. I looked at the source code
2004 Aug 10
4
Enduring LME confusion… or Psychologists and Mixed-Effects
Dear ExpeRts, Suppose I have a typical psychological experiment that is a within-subjects design with multiple crossed variables and a continuous response variable. Subjects are considered a random effect. So I could model > aov1 <- aov(resp~fact1*fact2+Error(subj/(fact1*fact2)) However, this only holds for orthogonal designs with equal numbers of observation and no missing values.
2005 Feb 24
3
Inheriting variables
I'm trying to set a channel variable and make it available to another channel: I thought that if I SetVar(_SomeVariable=SomeValue) or SetVar(__SomeVariable=SomeValue) then SomeVariable would be available in the destination channel. However __SomeVariable, _SomeVariable and SomeVariable are all blank. The scenario: Agents logon to the queue using callbacklogin. From what I can gather
2018 Jun 08
3
rpmbuild --define | some rpm sorcerer around?
On 08/06/18 19:38, Phil Perry wrote: > On 08/06/18 15:54, lejeczek wrote: >> hi >> >> how do you pass vars to rpmbuild for definition? eg >> >> rpmbuild --define \'"${_definition2}"\' >> >> I've been fiddling with ways to escape, but none is >> fricking working.. >> I mean, rpmbuild rushes to work(no errors nor
2009 Feb 05
1
plans for lenny-cran? can I help?
Hi, I'm running a highschool network with Debian etch and the etch-cran "backports" on top of it. Being bio-informatics, the newest R is essential to us. I did some upgrading experiments; switching to ubuntu is not an option, neither is fetching the sid debs for r. When trying to upgrade from etch to lenny with etch-cran packages installed things block on etch-cran dependencies.
2004 Dec 21
1
Call routing based on remote ip address.
While setting up my first dial plan, I find that notions like remote ip, network, or incoming network interface seem to be totally lacking regarding calling parties, where * still seems to fully rely on the easily spoofable caller id. Especially, allowing only certain ips or networks to enter a specific context in the dial plan is apparently not possible, at least in the h323 world. Don't
2006 Jan 18
4
Ruby "htmlentities" replacement: code review please!
Hi Railers, For some time now I''ve been looking for a decent Rails equivalent of PHP''s "htmlentities" command, because ERB''s html_escape (or more commonly called as just "h", eg. <%=h @somevariable %> ) just doesn''t go far enough for me. Back in PHP land, I actually had an extended version of the htmlentities command to deal with
2006 Aug 09
2
Gruff gives font-related error
Hello Railslist, I''m trying to get Gruff running on OSX Tiger (intel) with edge Rails. I''ve installed ImageMagick, Rmagick, FreeType and all their dependencies, or so I believe. (I''ve compiled them from source mostly, following a recent tutorial for Rails and ImageMagick on Intel Macs) While following the sample on the Gruff downloadpage (the one with the fruit), Rails
2006 May 24
4
AR foreign key problem.
Hello Railslist, (I''m using RadRails 0.6.3 on Windows XP with Ruby 1.8.4, Rails 1.1 and SQLite3) I have two tables in the database: "locations" and "customers": customers.sql --- id INT PRIMARY KEY name VARCHAR 255 address VARCHAR 255 postal_code VARCHAR 255 city VARCHAR 255 --- locations.sql --- id INT PRIMARY KEY postal_code TEXT longitude FLOAT latitude FLOAT
2009 Mar 27
1
Strange warning message
Can anyone give me any idea on where to start looking for this ? 1.4 svn (ish) It has appeared twice in the last hour on a system that gets numerous inbound calls to the same number TIA Julian [Mar 27 17:21:07] WARNING[3239]: ast_expr2.fl:407 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input: = 2 ^ [Mar 27 17:21:07] WARNING[3239]:
2005 Dec 16
6
Switchtower for production?
Hello, The company that I work for will be developing a large webbased survey (for a government institution) somewhere in Q1/Q2 of 2006. I''m investigating the technological possibilities and Rails is certainly a candidate. The survey application will have to perform under very high peak load, and the exact specifications of the hardware are not known at this point. I''m assuming
2012 Feb 03
3
replicate rows
Hello, I have a matrix of 17 rows and 20 columns. I want to replicate this matrix 20 times, but I only want to replicate the rows. How do I do that? Kind regards / Met vriendelijke groet / Med venlig hilsen, Dr. Gijs Schumacher Postdoctoral Researcher Department of Political Science and Public Management, University of Southern Denmark & Department of Political Science, VU University
2006 Jul 12
2
(Re-)designing a CMS
Hello Rails-list, I''m working on a CMS in Rails. The company that I work for currently uses a CMS written in PHP, and I want to mimick it in Rails, and improve along the way. The PHP variant works with templates like this: In the root of the webdir, there are the template files, named cms_news.html for example. This page contains custom tags, in the form of definitions and
2006 Jan 22
6
SwitchTower with public key authentication?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, BEWARE: this is not a Rails question, but a SwitchTower question. I am asking here because SwitchTower is usually employed with Rails. I am developing what we may call a "distributed video player" in Ruby (this is NOT a Rails application). It works this way: I have several boxes that play videos and one server, where I store the
2005 Nov 15
11
Collecting thread: Too many open files (Rails+SCGI crash)
I have a problem with running Rails 0.13.1 with scgi_rails 0.4.3 and Apache. After running for some time (more than a day), the SCGI process stops with the following error (from scgi.log): -- [ERR][24189] Collecting thread: Too many open files [ERR][24189] /usr/local/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:188:in `accept''
2010 Feb 22
2
Re-assigning variables stored as character strings in another variable
Is there any way to get the last line of this code to double the contents of a and b without naming them directly? #create variables a and b a<-5 b<-10 #store variable names a and b in variables c and d c<-"a" d<-"b" e<-c(c,d) #loop through both variables for (i in e){ #print the numbers five and ten using only the variables c and d #this line works fine
2006 Nov 04
1
acts_as_tree repeats
Hello Railslist, I want to draw a simple single-table Acts_as_tree model. I''ve read some articles about it and read the API docs, and now I''ve got this running: in controller I have: --- def index @pages = Page.find(:all) end --- in the model for Page I have ofcourse: --- acts_as_tree :order => "position" --- in the helper I have; --- def
2011 Jul 02
8
err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "File[]"
I''m running Puppet 2.7.1 on the master as well as the agent and just received a new error which doesn''t actually reference a module or a file, so I''m somewhat stuck as to how to debug this. Any pointers? The error is err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target