Displaying 20 results from an estimated 6000 matches similar to: "Back In Time"
2006 Jan 07
8
exposing id''d
I have been working on a small app that started with some scaffolding.
Some of my actions still have the structure where the id''s of things are
passed on the url for gets.
Whats the best way to avoid the security problems that this creates?
I am sure that there are many pages written on this topic but I guess I
have been searching for the wrong things.
Thanks
Gareth
--
Posted via
2006 Jan 04
7
variables in layouts
I have a layout that provides the basic outline of each page in my app.
It has a title, footer and a navigation bar.
In the title I want to put the name of the current user that is logged
in.
I could do something like @session[:username] but I would rather
encapsulate that into a single variable so that I can change the key in
the session map if I want without having to goto each page that
2006 Mar 16
9
Baffling AJAX issue
Ok, I''ve got some link_to_remote stuff working elsewhere just fine, but
this time it''s doing something very screwy. Here''s the view code to
create a link to remotely toggle a boolean value on a record:
<td class="contact_active">
<%= link_to_remote "<div id=''contact_active_#{cm.id}''><span
2006 Mar 03
5
Quick question about @params
I was looking through the loginGenerator code and noticed the following:
Login:
User.authenticate(@params[:user_login], @params[:user_password])
Signup
User.authenticate(@user.login, @params[:user][:password])
The syntax of the call in the signup code confused me...what exactly
does @params[:user][:password] this return to me? Is the params
structure a multi-dimensional array? I would have
2006 Mar 03
3
Switchtower not updating code...
When I deploy using switchtower the code does not update at all. It
does however copy the old release into its timestamped directory under
/releases/, but nothing in /currect/... is updated.
Any help at all would be much appreciated!
--
Posted via http://www.ruby-forum.com/.
2006 Mar 16
1
application_helper.rb vs application.rb
I find that I want to put the same methods into both of these files.
Whats the best way to get away with a single implemenation?
Gareth
--
Posted via http://www.ruby-forum.com/.
2004 Oct 05
1
QOS on each interface
I have a firewall with 3 interfaces DMZ, INTERNET, LAN.
Does anyone have an example script to do QOS on multiple intefaces using
htb?
Gareth Segree
mailto:Gareth.Segree@gleanerjm.com <mailto:Gareth.Segree@gleanerjm.com>
Technical Support Analyst
The Gleaner Company Ltd.
7 North Street
Kingston
Tel: 922-3400
2008 Aug 05
2
95% CI bands on a Lowess smoother
Hi there,
I'm plotting some glass RI values just by plotting
plot(x)
then I put on my lowess smoother
lines(lowess(x))
now I want to put on some 95% Confidence Interval bands of the lowess
smoother, but don't know how??
Thanks
--
Gareth Campbell
PhD Candidate
The University of Auckland
P +649 815 3670
M +6421 256 3511
E gareth.campbell@esr.cri.nz
gcam032@gmail.com
[[alternative
2008 Aug 13
2
Naming dataframes, vectors etc within a loop
Hi there,
I know this is probably a really simple question, but without the correct
keywords, or knowledge of the correct function it is hard to search for on
the net or within R.
How do I increment a dataframe (or similar) name within a loop and assign
data?
A simple example would be:
for(i in 1:10){
test<-i
}
BUT I want it to be test[i] --- in other words I want my stored data to
2008 Aug 10
2
ANOVA help
Hi,
I'm doing anova on a matrix of multivariate data where I want to assess the
effect of each column (element).
My matrix is 86 rows x 31 columns. I've created a grouping factor of length
86 containing group assignments of 6 types.
Then I run:
x<- aov(matrix~grouping.factor)
summary(aov.fit.raw, test="Wilks")
This is working fine enough, but I'm getting different
2004 Jul 08
1
Help with dual internet connection
I have 2 connections to the internet.
1 is an ADSL the other is a 3MB link over satellite.
This is a portion of my firewall script
ip route flush table 3 2> /dev/null
ip rule delete table 3 2> /dev/null
ip route add table 3 127.0.0.0/8 dev lo scope link
ip route add table 3 89.0.0.0/8 dev eth0 scope link
ip rule add fwmark 3 table 3
ip route add table 3 default via $isp2_ip dev eth3
ip
2008 Aug 05
3
Time series, least squares line
Hello,
I have a time-series of standards measured for Refractive index. They are
daily standards, however, I didn't run one everyday so some days have no
data. I can plot the values, but the x-axis does not represent the correct
time series (i.e. it's just an evenly spaced 1,2,3 type axis). I want to
plot the points with some form of representitive date line on the x-axis. I
don't
2008 Sep 21
2
Variable Selection for data reduction and discriminant anlaysis
Hello all,
I'm dealing with geochemical analyses of some rocks.
If I use the full composition (31 elements or variables), I can get
reasonable separation of my 6 sources. Then when I go onto do LDA with the
6 groups, I get excellent separation.
I feel like I should be reducing the variables to thos that are providing
the most discrimination between the groups as this is important
2003 Jun 04
3
Limiting Users
When using windows NT and Netware there are ways of limiting the logins of
users such as only allowing them on between 9am - 5pm and limiting maximum
concurrent connection to one. Is there a way of enforcing these
restrictions through samba or similar?
Many thanks
Gareth Norman
2002 Dec 30
2
Maildir format
Started using dovecot and I am very impressed by its speed. I am
confused by what it is expecting the format of the Maildir directory
to be in. I currently have ~/Maildir which contains new, cur, and tmp
all containing email that should be in my inbox and it pops up
correctly as such when I connect to dovecot using Mutt. After the
connection a new .INBOX is created under ~/Maildir with sym
2007 Nov 05
1
Combining Density plots
Hello,
What I am trying to do is:
Generate a density plot of a population of data. This data has a bimodal
distribution so I've isolated a couple of possible sub-populations and I
want to overlay these two density plots over the first to see whether they
are contributing to the bimodal population.
I can do this fine with plot(density(...)) and lines(density(...)) . But
the resulting plots
2008 Aug 10
1
using IF command
Hey team,
If I have a matrix:
1, 2,
3, 4,
4, 0,
1, 3,
0, 3
2 columns.
I want to write an if command that looks at (in this case) row 3 and looks
to see if either [3,1] or [3,2] has a zero in it. IF it does have a zero I
want the zero to be placed in another matrix in the same position. I know
how to do the latter part, I just can't get the if command to look at both
cells and deal with
2009 Jan 30
1
plotting lines with missing data for x values
I have some data (REE plots - geochemistry) where I have values 1:14 for the
x axis, but have no data for some x values. Here for example, let's say
that I don't have data for x=2,5,8.
So
x<-1:14
y<-c(4, NA, 5, 9, NA, 3.4, 8, NA, 19, 22, 12, 14, 15.3, 15)
if I plot the data
plot(x,y)
and then I want to join with lines
lines(x,y)
How do I get it so the points join across the
2008 Aug 10
1
Scripting - query
I have a vector:
alleles.present<-c("D3", "D16", ... )
The alleles present changes given the case I'm dealing with - i.e. either
all of the alleles I use for my calculations are present, or some of them.
Depending on what alleles are present, I need to make matrices and do
calculations on those alleles present and completely disregard any formula
or other use of the
2008 Sep 01
1
LDA predictions
I've made an LDA model on some data from one source. I have some new data
that I want to see if I can "place" to the sources in the LDA model.
I used the predict function as follows:
predict(wak.insitu.ld, wak.alr.alluvial)
where wak.insitu.ld is an LDA model generated from some data and
wak.alr.alluvial is new data of similar origin. When I look at the results,
there is 86