Displaying 20 results from an estimated 300 matches similar to: "How to use arbitrary relationships in Activerecord"
2016 Apr 09
5
Slow reading of large dovecot-uidlist files
Hi there,
(context: I was optimizing Roundcube mailbox list server response, and in
that 300-400ms response time, around 170ms is spent on single fgets() call
which is waiting IMAP repsonse to "SELECT MyMailbox" command)
I straced dovecot and of the whole request/response process, around 30ms is
spent for everything else, and overwhelming majority of time (150-170ms) is
spent for
2013 Jul 10
1
[LLVMdev] Problem Adding New Pass to Alias Analysis Group
On 7/10/13 3:43 PM, Cristianno Martins wrote:
> Hello John,
>
> What opt command line arguments are you using?
I'm not using opt. I'm manually scheduling a pipline within a tool.
The code looks like this:
PassManager pm;
MyAlias * aa = new MyAlias();
pm.add(aa);
pm.add(new MyAliasUsingPass());
Both MyAlias and MyAliasUsingPass are now ModulePass'es. MyAlias is an
alias
2013 Jul 10
0
[LLVMdev] Problem Adding New Pass to Alias Analysis Group
Hello John,
What opt command line arguments are you using?
If you follow this
link<http://llvm.org/docs/Passes.html#no-aa-no-alias-analysis-always-returns-may-alias>,
you can see that -no-aa is the default alias analysis implementation if you
do not manually specify which AA passes you want to use. Note that you can
pass as many different implementations of AA as you want, and each of them
2013 Jul 10
2
[LLVMdev] Problem Adding New Pass to Alias Analysis Group
Dear All,
I'm trying to add a new alias analysis to the alias analysis group in
LLVM 3.2. This new pass is linked statically into a tool that lives
outside the LLVM source tree, so I'm trying to avoid making patches to
the LLVM sources.
I've added the INITIALIZE_AG_PASS_BEGIN() and INITIALIZE_AG_PASS_END()
code to the pass, manually scheduled it before the
2013 Nov 11
2
[LLVMdev] What's the Alias Analysis does clang use ?
Hi, LLVM community:
I found basicaa seems not to tell must-not-alias for __restrict__ arguments
in c/c++. It only compares two pointers and the underlying objects they
point to. I wonder how clang does alias analysis
for c/c++ keyword restrict.
let assume we compile the following code:
$cat myalias.cc
float foo(float * __restrict__ v0, float * __restrict__ v1, float *
__restrict__ v2, float *
2014 May 10
1
One mailbox for multiple extensions with individual greetings
Hi,
Is there a way in Asterisk 11 to use a single voicemailbox for multiple
extensions while still hearing each extension's individual greeting?
Use case: someone has 2 numbers and wants all voicemail messages for
both numbers to end up in one mailbox. So when dialing 1234 and NOANSWER
you would hear "the person at extension 1234 is unavailable" and the
message would be stored
2013 Nov 12
0
[LLVMdev] What's the Alias Analysis does clang use ?
Hi,
Your problem is that the function arguments, which are makes as noalias, are not being directly used as the base objects of the array accesses:
> %v0.addr = alloca float*, align 8
> %v1.addr = alloca float*, align 8
> %v2.addr = alloca float*, align 8
> %t.addr = alloca float*, align 8
...
> store float* %v0, float** %v0.addr, align 8
> store float* %v1, float** %v1.addr,
2016 Apr 12
2
Slow reading of large dovecot-uidlist files
On 04/10/2016 10:27 AM, Adrian Minta wrote:
> It will be nice if the "SELECT MyMailbox" command will be "SELECT
> mymailbox LIMIT 100" or something, to get the first files since only the
> last messages are shown to the user.
SELECTing a mailbox has nothing to do with FETCHing messages, so above
does not make much sense.
I don't know dovecot's code, but I
2006 Jun 27
3
Weird ActiveRecord Foreign Key Problem
Hello to all,
I ran into a weird problem with an ActivRecord. I have a table named
"build_order" with a column named "type" that is a foreign key to a
table called "building_type". In a controller I try to read all the
build_orders with "BuildOrder.find :all" and get the following error and
stack trace:
(eval):1:in `instance_eval'': compile
2015 Feb 16
4
OT: Extracting Subject Lines from IMAP Mailbox
Looking for a command-line way to extract only the Subject lines from my
mailbox on my ISP's IMAP server, without actually downloading/modifying
the contents of the mailbox. Sort of the remote equivalent of locally
doing:
$ grep ^Subject /var/spool/mail/mymailbox > subjectlistfile
Thanks.
--
Tim Evans | 5 Chestnut Court
UNIX System Admin Consulting | Owings Mills, MD 21117
2005 Aug 29
9
can a class find out it''s instance name?
Hi friends - a javascript question....
Does the prototype object add some way for a class to find out the
variable name of its instance variable?
Or does javascript have some built in way to do this?
This is confusing to describe - but if I define a variable as some
object:
var myVariable= new Widget(''fdfa'');
can some built-in method inside the Widget class be
2006 Feb 22
15
Fixtures and Relationships
In my daily development, I migrate back and forth between versions, and
often do: rake load_fixtures...
... in order to populate my development database with fun data.
Now, with any HABTM relationship, there are failures, as there is no way to
say "which" fixtures to load first.
Within an actual functional or unit test case, you could simply load them in
the proper order, but
2006 Aug 18
9
Rails is doing what I want - but I don''t understand how.
Hi guys, I have the strangest thing happening. The funny part is its
doing exactly what I want to do, I just don''t understand how.
Basically here is my model.
class Role < ActiveRecord::Base
has_and_belongs_to_many :users
has_and_belongs_to_many :rights
def self.names
names = Array.new()
for role in Role.find :all
names << role.name
end
return
2004 Jan 15
1
Ownership lost: linux -> windows -> linux
Hi,
I have a problem of loss of file ownership with rsync.
For some odd reasons, I have to use a windows machine
as rsync server, and to backup/restore a filesystem
from/to a linux client.
All files in my linux filesystem are owned by root,
with gid root.
If I save the files onto the windows rsync server from
linux using rsync, and then restore them back to
linux, the ownership for all files
2020 Jan 21
2
imap panic: file array.c: line 10 (array_idx_modifiable_i)
Hello,
I just migrated a few dovecot IMAP mailbox (Maildir format) from a Dovecot 2.1.7 (Debian 7) mailbox server to a Dovecot 2.3.4 (Debian 10) mailbox server and one particular mailbox does not work properly and generates the following error log entries:
Jan 21 09:39:21 Panic: imap(EMAIL_ADDRESS)<7741><UTsrWKKcasoAAAAAAAAAAAAAAAAAAAAB>: file array.c: line 10
2020 Jan 27
3
imap panic: file array.c: line 10 (array_idx_modifiable_i)
Hello,
Does anyone one have any idea? Aki maybe?
Regards,
Mabi
??????? Original Message ???????
On Wednesday, January 22, 2020 11:37 AM, mabi <mabi at protonmail.ch> wrote:
> Hello,
>
> Are there any chances that I could fix this issue by running a "doveadm force-rsync" (https://wiki2.dovecot.org/Tools/Doveadm/ForceResync) on this problematic mailbox?
>
> Best
2009 Nov 09
2
Missing 'mailbox' variable ?
Hi,
I'm using Dovecot with LDAP.
My users have an home directory and a field named 'mailMessageStore'.
Then the full mailbox path is 'homeDirectory/mailMessageStore'
In dovecot-ldap.conf i configured as follows :
user_filter = (&(objectClass=qmailUser)(cn=%u))
user_attrs =
qmailUID=uid,qmailGID=gid,homeDirectory=home,mailMessageStore=mail=maildir:~/%$
Everything is
2006 Jan 30
5
Action Mailer woes
Hi gang,
Im having my first stab at ActionMailer and not having any luck. Perhaps
someone could help me out.
I generated a a mailer called ItemMailer - its purpose is to take some
information that I''ve already gathered in a ToDo list form and to mail
it out to the person who is nominated for the task
In environment.rb I have;
ActionMailer::Base.server_settings = {
:address =>
2006 Aug 07
1
chown errors?
> Hi--
>
> I just tried my first rsync operation. I got a couple of errors I don?t
> understand. Could someone explain what might be happening here?
>
> Please know that I am working in rsync for Mac OS 10.4, which includes a few
> odd options discussed in previous posts.
>
> The original command was:
>
> time rsync -a -v -e ssh /'Applications'
2007 Feb 01
6
Using a nonstandard foreign key
Hopefully this is an interesting question.
I have a "user" table with a field "email_address". I would like the
part of "email_address" after the ''@'' to be a foreign key to a
"companies" table populated by a companies that are clients.
Any pointers on how to do this in rails?
--~--~---------~--~----~------------~-------~--~----~
You