Displaying 20 results from an estimated 1000 matches similar to: "URL rewriting"
2008 Aug 14
1
error in passing an argument to do.call when do.call is in a for statement
Dear R-users,
I am having a problem with passing an argument to a function in a do.call function which itself is in a for statement.
I am building a function to upload question pools to the blackboard learning environment.
This function which transforms questions to XML style output should be generic and allow for any function to generate questions. Therefore I use do.call in this function.
2006 Apr 20
4
Many to Many Category structure with itself
Basically, I''m trying to have a table called "categories" have a many to
many relationship with itself. But I also want each catagory to be able
to be "copied" into another category so it is essentially a child
category to more than one parent. To me the obvious way of doing this is
by creating another table called category_maps (and a model called
CategoryMap).
2006 Mar 29
4
Scaffold generator: create vs. new
Can anyone supply me with a simple, succinct explanation of what the
difference is between the "new" controller and the "create" controller
that the scaffold generator produces?
I run:
> script/generate scaffold modelname controllername
And now I need to do some work inside the controllername.rb file. For
example, pulling a list from another database table to supply
2000 Mar 28
1
openssh X11Forwarding problem solution
Hi!
Several people noticed problems with openssh Version 1.2.2 through 1.2.3
related to X11 forwarding under Linux. For example:
Magnus Holmberg <pucko at lysator.liu.se> wrote:
> I have just installed openssh-1.2.2p1-1
> on two of my machines and I have one problem.
>
> I have
> X11Forwarding yes
> in my /etc/ssh/sshd_config
>
> but when I try to ssh to that
2006 Feb 07
5
homepage instead of welcome page?
Got a noob question for ya...
When I visit http://localhost:3000/
I get the nice "Welcome to rails" page. To get to a controller I have to
go to:
http://localhost:3000/controllername
What if I don''t want the welcome message and want / to resolve to a
controller?
How do I set that up?
Thanks,
Dave
--
Posted via http://www.ruby-forum.com/.
2011 Mar 03
2
Greek character and R
Dear R users.
In a loop, I set the title of my graph with :
mytitle = expression(paste(delta^13,'C Station ', i)
title(mytitle)
However, instead of using value of i, it will literally use "i" character.
Any one know the way to concatenate the value of i to the mathematical
expression?
With regards,
Phil
--
View this message in context:
2007 Mar 04
1
Problem using callNextMethod() in S4
Dear all,
Maybe, I am doing something wrong, but using R-2.5.0 on my Intel-Mac, I
have problems
using function callNextMethod() in method initialize.
I am loading the following code as file "testS4.R":
setClass("baseClass",
representation(myname = "character",
mydir = "character",
"VIRTUAL"),
2006 Jan 23
2
Routes question
Newbie here, I am trying to set up Routes so that it will look up a
listing in my directory by sanitized phone number, like the following:
www.domiain.com/5405551212
which will in turn list all the listings with that phone number (though
they might be in the Db table with parenthesis and hyphens), if one
listing, then make it a special render
If anyone could help with my Routes code and my
2006 May 02
1
Accessing Parameters - Params (nil)
I''m trying to render a component that pulls information based on a
parameter that is passed by a link_to item, but my params object is nil
for the following code in the controller:
records = ControllerName.find(params[:id])
but the error page also has this: Parameters: {"id"=>"7"}
I''ve tried to access it (in the controller) using:
variable =
2006 Jan 25
4
html special char conversion
I''ve stucked to such problem:
I have html entities in database, after using scaffold I''ve got these
chars not converted (I have strictly " and & in page source). It is what
I need, but after making ./script/generate scaffold modelname
controllername (recreating controller) I''ve got all special chars
converted into entities like (" and others). How can
2007 Apr 26
2
SweaveInput and absolute paths
Hi,
Is there a way to turn off the automatic inclusion of "./" at the
beginning of a path specified in an \SweaveInput{} instruction?
I'd like to create some reusable "template modules" of Sweave code and
put them in a standard directory like
/Resources/Affymetrix
Then the corresponding file that uses one of these would include a
command like
2006 May 28
1
Changing module name - help!
When I started developing my application I grouped my controllers in the
followin g fashion: User::ControllerName.
Now I''ve realized that the ''User'' module is a misnomer for my current
controllers and I need to use the User module for something else, so I
decided to change the controllers in the ''User'' module to ''Data''.
2008 Sep 25
2
ggplot, qplot in loop
Dear List,
yes, me again trying to work with qplot ;-)
I would like to make several single plots within a loop, like this
(simplified and so on...):
trials <- c("A","B","C")
mycolours <- ("wheat","darkolivegreen","lightgreen",
2017 Mar 14
2
gráfico jpg png
Estimados
Hace unos días envié un correo porque tenía problemas para guardar los gráficos en el disco rígido, utilizando R server 9, comentaba que el código antes funcionaba pero que tenía fallas.
No encuentro mi mensaje en la lista para continuar el hilo, encontré el problema, no lo comprendo del todo pero cambiando jpg por png funciona, aparentemente hay un inconveniente para guardar en jpg.
2006 Feb 01
3
Testing components
I''m using template components to modularize an application I''m working
on and am really happy with the way it''s going. Unfortunately, all my
attempts at writing functional tests for them fail. Trying to duplicate
my normal controller tests I have:
require File.dirname(__FILE__) + ''/../test_helper''
require File.dirname(__FILE__) +
2012 Feb 03
1
incomplete final line found on <name of my sourced function file>
Dear R-ers,
I hope there is a really simple solution to my problem.
I've written a function that I saved in an .r file. I source this file
in my code. For a while it worked fine. But then when I run the line:
source("F mylineplot.r")
I started getting a warning:
In readLines(file) : incomplete final line found on 'F mylineplot.r'
I have no idea why - I tried to check and
2006 May 09
1
Session mgmt. bug - ActiveRecord & MemoryStore session store
Windows XP Pro
Rails 1.1.2
I need some help verifying this behavior that I''m seeing.
BUG: Objects in session which are descendants of ActiveRecord::Base lose
attributes on subsequent requests when using CGI::Session::MemoryStore.
TO REPRODUCE:
0) Set up MemoryStore as the session database manager in the appropriate
environment.rb file in config
1) Create a model object X that
2006 Feb 12
6
Including another helper
I need to include another helper module apart from the normal two
(ApplicationHelper and [controllername]Helper). The inclusion needs to
be dynamic and based on external parameters (ie what helper that get
included differ from request to request).
Is it possible? How?
/Marcus
2010 Nov 16
1
Sweave: \Sexpr and variables with special chars
I am using \Sexpr to include a variable in a title of a Sweave document:
\documentclass[a4paper]{article}
<<echo=false, results=hide>>=
#mytitlevar <- "Stuff" # case 1, everything is find
mytitlevar <- "Stuff_first" # case 2, f is turned into sub-text
@
\title{MyTitle: \\ \Sexpr{mytitlevar} }
\begin{document}
\maketitle
\end{document}
When doing this, the
2010 Apr 03
0
Deployment problem with apache + fastcgi
Hi! I''m from Russia. It''s my first post in this forum. Execuse for my
bad language, but i hope you''re help me!
I try to deploy rails app on apache + fastcgi hosting.
.htaccess file contents:
AddHandler fcgid-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]