Displaying 20 results from an estimated 30000 matches similar to: "how to delete session (hash) member?"
2006 Jul 13
5
ActiveRecord inheritance
How to create a super class based on ActiveRecord::Base?
For example:
class ParentRecord < ActiveRecord::Base
end
class ChildRecord < ParentRecord
end
Rails always asks for ''parent_records'' table. Which has absolutely no
need to exist at all. It''s intentionally made as a super class to be
inherited.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2023 Aug 04
2
print only first level directory name when copying files
Hello,
I am copying /mnt/foo to /mnt/bar/
rsync --info=name1,del2 -rl /mnt/foo /mnt/bar/
/mnt/foo contains deep directory structure, ie:
/mnt/foo/aaa/
/mnt/foo/aaa/somestuff/
/mnt/foo/aaa/somestuff/file1
/mnt/foo/bbb/
/mnt/foo/bbb/someotherstuff/
/mnt/foo/bbb/someotherstuff/file2
I am not interested in details which individual files were copied, just
the main directory.
2023 Aug 04
1
print only first level directory name when copying files
Fourhundred Thecat via rsync <400thecat at lists.samba.org> wrote:
> I am copying /mnt/foo to /mnt/bar/
>
> rsync --info=name1,del2 -rl /mnt/foo /mnt/bar/
>
> /mnt/foo contains deep directory structure, ie:
>
> /mnt/foo/aaa/
> /mnt/foo/aaa/somestuff/
> /mnt/foo/aaa/somestuff/file1
>
> /mnt/foo/bbb/
> /mnt/foo/bbb/someotherstuff/
>
2009 Aug 06
2
duplicate model object with associations ?
class Patient < AR::Base
has_many :aaas
has_many :bbbs ,:through=>:aaas
end
class Aaa < AR::Base
has_many :bbbs
end
-------
i want like this
@patient=Patient.find(id)
@new_patient=@patient.duplicate
now the
@new_patient should have their own copy of patient,aaas,bbbs (new
records in corresponding tables)
there is one options is that
we can create seperate object for each
2012 Jul 15
5
variable (column) in a data frame
To the R help list,
When using a data frame, there is no warning or error message
when I refer to a non-existent variable inside the data frame.
Example:
##----------------------------------------------
a <- c(1,2,3)
b <- c(11,22,33)
df <- data.frame(a,b)
df
## correct: there is a column in df named 'a'
## the sum is correctly performed
sum(df$a==2)
## incorrect: there is
2010 Mar 24
1
--delete question.
Please advise on rsync usage. --delete doesn?t work without recursion(--recursion). The recursion is causing huge overheads for me. My directory trees are huge. Any suggestions through which I can cut overheads. It used to work well in rsync-v2.5.5
/opt/rsync-v2.5.5/bin/rsync --delete --checksum -lptgoD --rsync-path=/opt/rsync-v2.5.5/bin/rsync --hard-links --timeout=5184000 --exclude=.snapshot
2016 Jun 08
1
keytabs basics linux <=> AD ?
hi users
a novice here hoping to grasp fundamentals soon
I have a samba+sssd as a client to an AD - I have all the
keytabs for a host(I think) but I noticed weird(to me at
least) smbclient behavior.
when I do:
$ smbclient -L swir -U me at AAA.PRIVATE.DOM -k
all works, clients sees local samba's shares, when I do:
$ smbclient -L swir.private.aaa.private.dom -U
pe243 at AAA.PRIVATE.DOM -k
2010 May 07
1
Bug in R -e "command"
Hi all:
since about a month we encountered a problem with R -e command: spaces
in the "command" of R -e "command" are no more tolerated. This same
issue affects 2.11 patched (05-05-2010), 2.10.1, and current devel (at
least the one of two weeks ago).
(I skip the mid of the printouts, replaced with ...)
* R -e "message('aaa aaa')"
ARGUMENT
2004 May 05
3
sip.conf and SIP client host= not recognized in some cases
I am seeing an issue with getting certain sip devices to be recognized as
defined SIP clients host= in the sip.conf and the only deference that I can
find btw sources that work and don't work is that devices that send packets
with an Initial Via header of themselves appears to work and pick the
context correctly but those that don't have the Via just get dropped in the
context of the
2008 Mar 04
2
Missing IMAP folders
Hi,
I'm fresh starting to use dovecot.
Before this I used bincimap, mainly because it was very simple to config.
I've tried to find the FAQ's and tried searching the archives, but little came up.
My current config:
server
FreeBSD i386, postfix 2.4
dovecot 1.0.10
client:
windows 2000
thunderbird 2.0.0.12
after some inital config this starts up, and I even have the
2012 Apr 17
3
Can a matrix have 'list' as rows/columns?
After a lot of processing I get a matrix into M. I expected each row and
column to be a vector. But it is a list.
R-Inferno says...
"Arrays (including matrices) can be subscripted with a matrix of positive
numbers. The subscripting matrix has as many columns as there are dimensions
in the array—so two columns for a matrix. The result is a vector (not an
array)
containing the selected
2007 Mar 08
1
Searching and deleting elements of list
Hi,
I have a problem. Please, look at example and try to help me!!
> A<-c("aaa","bbb","ccc","ddd","eee")
> B<-c("vvv","ooo","aaa","eee","zzz","bbb")
> C<-c("sss","jjj","ppp","ddd")
> D<-c("bbb","ccc")
2005 Mar 07
4
simple if...else causes syntax error
I am trying to do the simplest thing in the world. The following works:
aaa <- ifelse(aaa==5, 6, 7)
But if I want to change the if...else syntax instead, it gives errors
and assigns 7 to aaa. Here is the problem code:
aaa <- 5
if ( aaa==5 ) {
aaa <- 6
}
else {
aaa <- 7
}
Here is the output:
> aaa <- 5
> if ( aaa==5
2002 Oct 25
3
Neighbour table overflow
--kXdP64Ggrk/fb43R
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hello everyone,
I''m using Shorewall 1.2.12-1 on Debian 3.0, with the 2.4.17 kernel. I
am seeing some interesting log entries, and after reading the
documentation at Google and netfilter.org I have a couple questions.
To begin, here are the entries I am
2010 Nov 26
1
How to save a data set as .txt on fly?
Hi folks,
Win7 64bit
I tried to save DNase, a data set on database, as .txt file for future use with
load.
I can't do it on fly;
> save(DNase, file="C:/Users/satimis/Documents/aaa.txt")
> load(file="C:/Users/satimis/Documents/aaa.txt")
> aaa
Error: object 'aaa' not found
> aaa.txt
Error: object 'aaa.txt' not found
I must perform following
2013 May 15
3
exclude a pattern but only in the top level
Consider the following directory structure
/foo/aaa/*/*
/foo/bbb/*/*
/foo/ccc/*/*
I want to sync all of /foo,
but exclude /foo/aaa
but not exclude any other occurances of "aaa" or "foo/aaa" (be they
files or dirs) that might occur within the other dirs /foo/bbb/*
/foo/ccc/* etc
I don't want to exclude /foo/bbb/aaa or /foo/ccc/111/aaa or
/foo/ccc/111/foo/aaa etc...
2010 Nov 30
2
xyplot : superimposed 2 groups in different panels
Hello,
I would like to plot the following xyplot : for each date of fff (1 date per
panel), bbb=f(aaa) for the two groups (ddd=1 and ddd=2) superimposed.
I can do it by group (see below) but not together.
I looked at http://lmdvr.r-forge.r-project.org/figures/figures.html but I
haven't found what I was looking for (to be honest, I haven't understood all
the examples).
Any help will be
2017 Jun 14
8
[WISH / PATCH] possibility to split string literals across multiple lines
Hi,
I would really like to have a way to split long string literals across
multiple lines in R.
Currently, if a string literal spans multiple lines, there is no way to
inhibit the introduction of newline characters:
> "aaa
+ bbb"
[1] "aaa\nbbb"
If a line ends with a backslash, it is just ignored:
> "aaa\
+ bbb"
[1] "aaa\nbbb"
We could use
2017 Jun 14
4
[WISH / PATCH] possibility to split string literals across multiple lines
On Wed, 14 Jun 2017 06:12:09 -0500, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
> On 14/06/2017 5:58 AM, Andreas Kersting wrote:
> > Hi,
> >
> > I would really like to have a way to split long string literals across
> > multiple lines in R.
>
> I don't understand why you require the string to be a literal. Why not
> construct the long
2010 Jul 12
3
need information
Dear All.
I want to become a wholesale VoIP traffic Provider , and i don't have a
experience about the software used this career .
I ask about Freeside billing system , FreeRADIUS AAA server and Asterisk
telephony server gave me all i need to start my business .
thanks
--
Best Regards
Mohamed Daif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: