Displaying 20 results from an estimated 10000 matches similar to: "Finding matching words in a word game"
2005 Dec 23
4
OO model style: inheritance
Hi everybody
I am totally new to rails and I am trying to start a
tiny project to get familiar with rails. But I already
got my first problem and I would be happy if somebody
could point me in the best and cleanest direction.
I am trying to develop a small gallery app. Since I
would like to add more features in future I am trying
to design a clean OO architecture of my models:
The base object
2015 Jan 20
1
Mailbox password change problem on realtime engine
Hello,
I am struggling with what seems a common unresolved problem, changing the
password from voicemailman when using a realtime engine (adaptive_odbc in
my case, connected to mysql).
I have seen messages dating back to 2007 with this problem and the last one
was bug 5168, reported as closed, but without explaining the fix
2006 Sep 14
0
Lost default value of timestamp field.
I''m using postgresql, I found some problems when running unittest.
file: db/migrate/001_create_post.rb:
--------------------------------------------------------
class CreatePosts < ActiveRecord::Migration
def self.up
execute <<-EOS
create table posts (
id serial not null primary key,
title varchar(255),
created_at timestamp not null
2018 Nov 15
1
Dovecot proxy: per user/domain 'namespace/inbox/prefix' from MySQL
As a way to try and avoid using "prefix = INBOX." ad infinitum for the
inbox namespace, I'm looking for ways to move on to "prefix =" for new
mail accounts, and grandfather the existing ones. Previously running
Courier-IMAP, now Dovecot, I looked at
https://wiki.dovecot.org/Namespaces#Backwards_Compatibility:_Courier_IMAP
and decided it's too risky to go down that
2005 Jul 07
3
NameError Exception
Ruby/Rails n00b here so go easy on me...
I''ve been wracking my brain trying to figure out what is wrong here.
I''ve checked all my models for the appropriate belongs_to, has_many,
etc. I''ve checked to make sure I''m using singular and plurals in the
right spot. I''ve checked my syntax around all my "within"''s and nothing
seems to fix
2006 Nov 17
1
SQLite3 put a parse error in my schema.rb for timestamps
Railsers:
I switched from MySQL to Sqlite3 for Test-Driven Development. It meant
the difference between
(Long term, I want to understand the db:migrate system well enough
that I can run a long test, occassionally, that migrates everything to
MySQL and retests it there. That will prevent nasty surprises at
deployment time. But that''s not the current question!)
Because I don''t
2006 Aug 18
3
Understanding MVC - view customization after using scaffolds
All,
I have ordered AWDWR and am anxiously awaiting its arrival. In the
meantime I still am playing with ROR using radrails. I have a few
questions ...
I create a table named customers with the following details:
Field Type Null Key Default Extra
id int(11) NO PRI auto_increment
customer_name varchar(50) NO
inbound_retention int(11) NO
outbound_retention int(11) NO
unix_admin_email
2008 Apr 15
1
Dovecot LDA / Deliver question
Problem described:
I am trying to get Postfix + Dovecot + MySQL setup to work together in a
virtual mail hosting platform. I am running Postfix 2.3.x, and MySQL 5.0.x.
I am trying to use Dovecot's LDA for delivery to the users vmail home
directory -- usually under /var/vmail/domain.com/j/jdoe for home and
/var/vmail/domain.com/j/jdoe/.maildir for mail location, using MAILDIR
format.
2009 Jun 25
2
Dovecot v1.2rc6 dict-server socket path problem & pgsql crash
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I find this in the logs:
2009-06-25 14:10:37 IMAP(dvtest) [29566]: Error:
net_connect_unix(/usr/local/dovecot-1.2.rc6acl-hook2/var/run/dovecot/dict-server)
failed: Permission denied
2009-06-25 14:10:37 IMAP(dvtest) [29566]: Error: acl: dict iteration
failed, can't update dict
although base_dir is just /var/run/dovecot/ .
Dovecot v1.2
2005 Aug 11
5
Realtime + MYSQL
I'm having a few issues with the MySQL realtime configuration in
CVS-HEAD. I tested it initially with realtime extensions (realtime_ext
=> mysql,asterisk,extensions) and a realtime switch in extensions.conf
and that works fine, So I though I'd go back and test a static
configuration mapping.
I used the table structure from the asterisk guru postgres howto to
create something
2006 Apr 25
0
Migrate default now()
I want to set default value to current time of database:
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
# ...
t.column :created_at, :timestamp, :null => false, :default => ''now''
end
end
#...
end
On postgresql, it is converted to:
created_at timestamp NOT NULL DEFAULT ''2006-04-25
2013 May 19
3
Error: dict client sent broken reply
I've been mucking about, experimenting with the expire plugin and using a
dictionary. I've got the iteration query working when I do a normal
expunge using:
doveadm expunge -A mailbox "INBOX.Trash" savedbefore 1w
and expunging works as expected. However, I've got over 12,000 accounts
on this server, so I was hoping using the expire plugin to could help out.
I've
2014 Feb 19
1
Dovecot, mysql, and quota
Hello,
I'm running dovecot 2.2 and wanting to get quotas going. I've got the
plugins loaded appropriately and am wanting to configure a dictionary
backend to talk to my mysql database.
I've got a single database called mail which has all the mail-related
items in it. One table is for virtual users which postfix uses. It
looks like this:
CREATE TABLE `virtual_users` (
`id` int(11)
2006 Apr 20
0
Sqlite3 migration and CURRENT_TIMESTAMP
I''m trying out migrations for the first time, and I''m having a problem
with my sqlite3 db. A trivial example of what I''m seeing:
class InitDb < ActiveRecord::Migration
def self.up
create_table :mytable, :force => true do |t|
t.column :lname, :string
t.column :created_at, :string, :default =>
2006 Jun 12
2
on_update current_timestamp in Migrations
Is there any way to set database columns to auto update a timestamp
column on update?
Can I do something like
t.column "timestamp", :datetime, :default => :current_time, :null
=> false, :on_update => :current_timestamp
or do i need to just use custom sql like
sql = "ALTER TABLE `table` CHANGE `timestamp` `timestamp` TIMESTAMP ON
UPDATE CURRENT_TIMESTAMP NOT NULL
2006 Feb 28
0
Confusion with counter and single table inheritance
I''m having trouble getting the magical counter to work in a rails app
with single table inheritance.
following is the relevant code.
thank you
class declarations
class Job < ActiveRecord::Base
has_many :vents
end
class Vent < ActiveRecord::Base
belongs_to :job, :counter_cache => true
validates_numericality_of :width
end
class Rectangular < Vent
2006 Mar 07
0
a2billing problem with call duration
Regards!
During the use of areski a2billing software I'm getting same problem all the time.
Actually, after 15 minutes of speaking to someone over calling card, connection brakes.
Installation was as smooth as it could be so I don't think I made same kind of a mess in that domain. This is the only problem in the aplication.
In the logs everything seems to be fine.
I'am sending You
2018 Mar 07
0
last login tracking
Hello,
I've got dovecot going with postfix and MySQL database for user and
domain storage. Dovecot handles the authentication.
My last login is not working, does anyone have a table example and
configs? I looked at the wiki page on the lastlogin plugin but
obviously what I'm doing isn't working, I keep getting message write
was unsuccessful for the lastlogin ip.
I'd appreciate
2010 Sep 21
1
expire_tool trouble + howto part sasl from 1.1.7 -> 2.0.1?
Hello!
Let me smuggle 2 questions in 1 email:
1) I upgraded from 1.1.7 to 2.0.1, but couldn't get it to work, because the 'dovecot + postfix sasl howto' doesn't seem to be updated and the old sasl settings are incompatible with new version. How do I set up sasl with dovecot2 ? Is there any updated howto available?
2) In dovecot 1.1.7: my expire_plugin seems to work fine,
new
2019 Jun 06
3
Last Login Plugin Help
Hi,
I'm configuring Last_Login plugin whith Mysql back end and all works fine.
I just wonder to track besides time_stamp, user and domain, the remote
IP and proto (imap or pop3)
I tried in dovecot.conf:
plugin {
...
...
??? # Track last login time on imap and pop3
??? last_login_dict = proxy::lastlogin
??? last_login_key = last-login/%u/%d/%r
}
dict {
...
??? lastlogin =