Displaying 20 results from an estimated 500 matches similar to: "call method of superclass"
2006 Jun 01
3
more questions: human_name
One more question:
Is there some way to set the human_name of a column? e.g.: human_name
for column address1 shouldn''t be Address1 but "Address, line 1".
If not, should I make a hash with my custom names?
Best regards,
--
----------------------------------------------------------------------
Yannick Majoros http://www.inma.ucl.ac.be/~majoros
Informaticien UCL/INMA-MEMA
2006 Jun 01
9
access model from controller
Hello,
Rather new to RoR, so I''m not sure about the terminology and such :-/ .
My question is: how could I know the model which is associated to a
controller?
For example:
- controller class is TestController, which is a subclass of
ApplicationController
- associated model class is Test
How could I write some code in a method of ApplicationController to
dermine the current
2005 Sep 14
3
mailbox corruption
Hello,
Here is the description of a problem we habe been having for some time.
Originally posted on the postfix-users mailing list, but no solution
found to date.
>>>> We have been having problems with our mail system for a couple of
>>>> months. Every now and then, some mailboxes get corrupted: a
>>>> half-truncated message, usually without headers, is at
2005 Jul 01
1
bug: very strange behavior with pop3
Hello,
We have some strange problem which could be related to authentication here.
All our user info is in an openldap directory. We normally use
pam/getpwent in dovecot to access our user accounts, via
nss_ldap/pam_ldap, but we tried to connect directly to the ldap server,
with the very same results.
We have one user (out of 100) which just cannot use dovecot with pop3.
His
2006 Jun 16
1
attributes and views
Hello,
I always have the same kind of design problem, which I am not sure how
to solve correctly:
- say I have a variable, "status", which I want to calculate once in my
controller, and access a couple of times in my view
- "status" variable initialization could happen in a subclass,
overriding the regular method for that
What I do now is using an instance variable
2006 Jun 09
0
bizarre problem
Hello,
I have following code in a helper:
def custom_ajax(link, options)
target = "target_" + options[:target_id]
loading = "loading_" + options[:target_id]
visible = "visible_" + options[:target_id]
#options[:url] = {:inline => 1 }.merge(options[:url])
test = {:inline => 1 }.merge(options[:url])
link_to_remote(
link,
{
2006 Jun 21
0
development / production
Hello again,
How to switch from development to production?
Regards,
--
----------------------------------------------------------------------
Yannick Majoros http://www.inma.ucl.ac.be/~majoros
Informaticien UCL/INMA-MEMA
4, avenue G. Lema?tre
B-1348 Louvain-la-Neuve
Tel: +32-10-47.80.10
Fax: +32-10-47.21.80
----------------------------------------------------------------------
Mon calendrier
2006 Jun 21
5
module and cache/restarting server
Hello,
It seems I need to restart webrick everytime I modify a module in order
for my modifications to be taken into account. Is this normal and is
there a workaround?
Regards,
--
----------------------------------------------------------------------
Yannick Majoros http://www.inma.ucl.ac.be/~majoros
Informaticien UCL/INMA-MEMA
4, avenue G. Lema?tre
B-1348 Louvain-la-Neuve
Tel:
2006 Jul 12
12
pass hash as parameter
Hello,
How can I pass a hash as parameter from a template with url_for?
e.g. : if I have
test = { :a => "a", :b => "b" }
How can I pass that with my request? Is it possible to pass nested
hash''es to?
Right now,
url_for :action => :test, test
doesn''t seem to work.
Thank you,
--
2006 Jul 05
19
associations question
Hello,
I have a People table and a Addresses table. A person can have one or
more addresses, but should at least have one, so there is a address_id
field in People.
Now, I would like to have a form to fill the name of a new person and
its address from the same place. I could use person.address.country, for
example (it works), but I would like to simply use person.country for
some reasons
2009 Nov 10
1
source() vs attach()0
Hello,
After hours of googling I could not resolve the following (although it
seems simple):
I would like to put subfunctions in a separate .R file that is then
called with source() from inside several "main" functions. A crude
example would be as follows:
**** file subtest.R **********
subtest <- function() {
foo <<- foo+1
}
******************************
*** main
2005 Feb 18
1
eapply weirdness/bug
The following looks like an 'eapply' bug to me:
t/subtest> e <- new.env()
t/subtest> e$tempo <- quote( 1+'hi')
t/subtest> lapply( ls( e), function( x) length( get( x,e)))
[[1]]
[1] 3
# seems reasonable-- e$tempo is a 'call' object of length 3
t/subtest> eapply( e, length)
Error in 1 + "hi" : non-numeric argument to binary operator
2010 Apr 23
4
basic table statistics
Hi,
I have a very simple question, but I'm obviously not able to solve the
problem on my own.
I have a data.frame like
sample(c("A","B","C"),size=20,replace = T)->type
rnorm(20)->value
data.frame(ty=type,val=value)->test
There must be some built in functions, that will do some descriptive
statistics with tabular output, in the end I like to have
2019 Jun 25
2
Emails not visible after renaming folders
Hello,
I have strange problem with "losing" emails after rename mail
folder(s) (via imap client: thunderbird, roundcude, etc..)
How to reproduce:
1. Create some folder name, like TEST
2. Create sub-folder under TEST (like SUBTEST)
Structure:
TEST
|--SUBTEST
# doveadm mailbox list -u postmaster at testmailbox
Spam
Trash
Sent
Drafts
INBOX
TEST
TEST/SUBTEST
3. Move (or copy)
2019 Jun 26
2
Emails not visible after renaming folders
Copying or moving with email client: thunderbird, roundcube (webmail), mutt or any other email client via imap protocol.
25.06.2019 22:10, Germ?n Herrera ?????:
> Are you copying/moving the emails with {cp|mv} or with "doveadm {copy|move}"?
>
> On 2019-06-25 12:00, Aleksandr via dovecot wrote:
>> Hello,
>>
>> I have strange problem with "losing"
2006 Jul 14
3
Accessing the Model class from Controller
Hi,
I wonder if there''s an easy way to access the associated Model class
from its Controller. Something that would allow me to write snippets
like the following:
class PeopleController < ApplicationController
def some_method
person_model_class =
self.some_method_to_retrieve_the_person_model_class()
end
end
Cheers,
Marco
--
Posted via
2006 Jun 09
2
How to mail decrypted password to user?
Hi,
I am using acts_as_athenticated plugin for my rails application. That
plugin is using "SHA1" algorithm to encrypt password & stroe it into
database. Now in future suppose user requsted his password through
email, hhow should I decrypt that password in my application & for
sending it through mail?
Please help me.
I am trying this since last 2 days. But still not
2012 Sep 26
3
rows extraction
Dear all,
I want to extract rows from a data frame shown here as "test". For example:
rows with with sorting
PKB123 PKB22 PKB23 PKB32 CTV19 CTV20 PKB11 PKB11
> dput(test)
structure(list(Name. = structure(c(1L, 2L, 3L, 4L, 5L, 6L, 7L,
8L, 9L, 10L, 11L, 12L, 12L, 13L, 14L, 15L, 16L, 17L, 18L, 19L,
19L), .Label = c("CTV10", "CTV11", "CTV12",
2016 Sep 29
2
[cfe-dev] improving test-suite`s FP subtests to be able to compare both exact-match outputs and more-optimized builds that may have different outputs due to FP optimizations
Dear all,
I would like some help, please, with implementing Hal`s excellent suggestion, which I have
reworded as below. Hal has confirmed a previous version of my rewording as a correct
interpretation. [I made minor changes since then, e.g. for grammar.]
[Abe wrote:]
>> I think you [Hal] are suggesting something like this:
>> 1) compile the program with FP fusion off,
2016 Sep 29
2
[cfe-dev] improving test-suite`s FP subtests to be able to compare both exact-match outputs and more-optimized builds that may have different outputs due to FP optimizations
----- Original Message -----
> From: "Matthias Braun via cfe-dev" <cfe-dev at lists.llvm.org>
> To: "Abe Skolnik" <a.skolnik at samsung.com>
> Cc: "llvm-dev" <llvm-dev at lists.llvm.org>, "cfe-dev" <cfe-dev at lists.llvm.org>
> Sent: Thursday, September 29, 2016 6:20:09 PM
> Subject: Re: [cfe-dev] [llvm-dev] improving