Displaying 20 results from an estimated 7000 matches similar to: "Class Variable"
2011 Aug 26
17
strings issue
Hi everybody,
I ve got a problem with strings and the class File in rails
Indeed, when i try to do this:
File.new("archives/sequences/archives-2011.xml")
it works perfectly, however when i do
string = "archives/sequences/" + @filename => filename being
"archives-2011.xml"
File.new(string)
it doesn''t work!
ruby tells me it cannot find the file
does
2011 Aug 12
9
What is Ruby on Rails able to do?
Hello Everybody,
I am starting with Rails and I am wandering questions about Rails
possibilities. Actually, I want to design an application that has
particular needs and I would like to know wether Rails can do them. As I
am newbie with Rails, I ask you these questions.
Basically, it is possible to execute shell commands from a rails pages
(eg: I want to launch a c++ program)?
Can it define a
2005 Aug 11
1
Cross-subnet browsing...AGAIN!!!
Hi,
I've been struggling with getting subnet browsing to work on my home
network for some time and have decided to give it another go.
This is my network configuration:
Internet ----- Cisco SOHO97
(192.168.1.1)
| | |
+------------+ | +----------------+
| | | |
| (192.168.1.5) (192.168.1.250)
2011 Jul 30
22
Question about Helpers
Studying the RoR 3 Tutorial book by Michael Hartl
and on page 345 there''s the code inside the SessionsHelper:
_________________________________________________________
module SessionsHelper
def sign_in(user)
cookies.permanent.signed[:remember_token] = [user.id, user.sault]
self.current_user = user
end
end
__________________________________________________________
What is the purpose
2004 Sep 09
2
Legacy Toshiba Phones
I found some postings from Google (notably from Mark Spencer) about
successful integration of a legacy Toshiba Strata system and Asterisk.
I am also facing that current dilemma. The general legacy solutions that
I can come up with is very easy -- either making Asterisk a "proxy" (or
frontdoor) to the Toshiba system, or have it operate behind the Toshiba
via regular extensions.
I'm
2002 Apr 18
3
Variable definition problem
Hello, what does this error message indicate and how do I avoid this?
(sample code below)
Thank you.
-Tosh
#read in the data table
co<-read.table("co.txt",header=T,as.is=T)
for (i in 1:3){
paste("logco",i, sep="")<-log(co$co[co$day==i])
}
Gives the error:
Error: Target of assignment expands to non-language object
2002 May 16
3
Wind rose plots?
Just out of curiosity, has anyone created wind roses using R?
Thanks.
Tosh
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
2010 Mar 16
2
Mac OSX Leopard
People,
I installed Mac OS Leopard in my old computer. Installed perfect, but I want
to use pxelinux to choose boot to Mac OS. I have options to linux and
windows in pxelinux options. How can I use to boot Mac OS Leopard?
Samuel Rios Carvalho
2009 Jan 31
5
CentOS 5 PPC
There has been some discussion about PPC on this list, and I was
looking at the CentOS homepage, and it states that support for the PPC
architecture is in progress.
Is there actually a V5 (CentOS) PPC download? I have been looking for
it on the site without luck.
For example http://mirror.centos.org/centos/5/isos/ only has i386 and
x86_64.
I have an old G4 with dual processors I want
2011 Aug 11
17
f.collection_select: what are the parameters?
The rails docs are so horrible on the collection_select method. They
need to show a *complete* form, and show two examples: one that calls
f.collection_select(), and another that calls collection_select(), and
explain the differences.
Given this line:
f.collection_select :topic, Topic.all, :id, :category
What the !@#$!@#$ is :topic?
--
Posted via http://www.ruby-forum.com/.
--
You received
2008 Mar 27
1
Still get error 13 when mounting w2k3 share
##### BACKGROUND #####
I still cannot do basic share mapping between Samba 3.0.28 and a Windows
2003 AD Domain controller. When using mount.cifs, I get a permission
denied error 13. I have run it as root and as my own user account.
>From a windows workstation on a different domain, I can log on fine.
HELP!!!!!!!!!!!!
Thanks,
Mike Tosh
##### CAN VIEW, BUT NOT MAP, VIA SMB #####
#
2012 Mar 28
1
parallel bash scripts
Check out the redirection at the end of each command. 1>&2 redirects
the standard out of your child command to the standard error which then
appears in the parent shell. At the end the last & launches your
command into a background shell and then moves on to launch the next
command. The redirections don't care if the command ever terminates.
The result is that both commands
2012 Nov 24
2
Building factors across two columns, is this possible?
I am trying to make it so two columns with similar data use the same internal numbers for same factors, here is the example:
> read.csv("test.csv",header =FALSE,sep=",")
V1 V2 V3
1 sun moon stars
2 stars moon sun
3 cat dog catdog
4 dog moon sun
5 bird plane superman
6 1000 dog 2000
> data <-
2006 Aug 15
5
Hard time understanding the differences between "def self.foo" and "def foo"
Hi guys,
I''m having a little trouble understanding the differences and knowing
when to use "def foo" and "def self.foo" in my models. I don''t quite
understand them and was hoping someone could explain or give me
examples on how to use the "self." properly.
For example, I had "def foo" in my model "Account" and in one of
2006 Feb 08
2
lme syntax for P&B examples
Hi helpeRs,
I've been working through some examples in Pinhiero & Bates( 2000)
trying to understand how to translate to the new Lme4 syntax but without
much luck.
Below is what I think I should do, but either the answers don't come out
the same or I get errors.
In the Oxide problems I'm particularly interested in obtaining the
levels coeficients but this options no longer seems
2011 Aug 23
12
remove a table with migration
HI, guys,
How to remove a table with migration, i saw a drop down method in
migration created file , how can i use that ?
thank you.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email
2006 Oct 10
5
oddness when adding to index -
I was having some odd results when working with acts_as_ferret (current
trunk), so I decided to test with the current version of ferret to see
if I encountered the same problem. I did. Here are the details:
installed ferret 0.10.10 on debian sarge with ''sudo gem install ferret''
(btw, same results on OSX)
opened up an irb session:
irb(main):001:0> require
2000 Oct 12
2
getting a windows environment variable in r
hi-
I would like to get a value set with the dos set command (e.g. set dog=cow) in a rterm session on rterm 1011 under windows 2000. if I try in a dos window:
set dog=cow
echo %dog%
i get cow (what I want)
then i start rterm
system("echo %dog%",intern=T)
gives "%dog%"
I can of course do something like
set dog=cow
echo %dog% >jnk.rin
and then start rterm and
2008 Jul 24
2
factor question
Hi!
Suppose I have a factor:
> fac1 <- factor(rep(c("dog","cat","tree"),c(2,3,4)))
> fac1
[1] dog dog cat cat cat tree tree tree tree
Levels: cat dog tree
> length(fac1)
[1] 9
Now I want to get rid of the dogs:
> fac1 <- fac1[3:9]
> fac1
[1] cat cat cat tree tree tree tree
Levels: cat dog tree
>
How should I remove the dog from the
2008 Mar 26
2
Mount error 13
I am trying to connect a SLES9 server to a share on a Windows 2003
domain.
# mount -t cifs //server/share /mnt/share -o credentials=.cifs_creds
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
#cat .cifs_creds
username=remoteuser
password=remotepass
domain=W2K3ADDOMAIN
On the domain controller, I see:
Successful Network Logon:
User Name: