Displaying 20 results from an estimated 20000 matches similar to: "Calculating string length in a model"
2014 May 16
0
(Beginner) ActionController::UrlGenerationError - No route matches
(Using Rails 4.1.1 with Ruby 2.1.1 on Mac OSX 10.6 Snow Leopard)
I'm doing a Rails tutorial (in case you are interested in: It's
http://guides.rubyonrails.org/getting_started.html), and I'm stuck on
the following:
I create in some erb file a link using
<%= link_to 'Add new weird stuff', controller: new_article_path %>
and this raises the exception
2014 May 19
0
Installing rvm on SLES 11 sp3(SUSE Linux Enterprise Server 11)
Hello everyone.
Does anyone had experience of installing rvm for this linux server?
During rvm installation an error pops up that says i dont have the
following libs: sqlite-devel gdbm-devel zlib-devel openssl-devel
ncurses-devel readline-devel. Sudo zypper update says that its already
up to date. When i try to install all of these libs it can't find any of
them. Do i need some specific
2005 Dec 04
1
R and databases - a comment
1. That was a part of a private email exchange. It has
been suggested that more people may be interested.
2. I did use various databases (significant part of my
job) for the last 15 years. Some with R for the last 3
years as a hobby. Some comments on the ones used
below. Sorry, no links - I am time-constrained at the
moment - please google if interested in details. The
remarks are from the point
2013 Nov 14
1
Dovecot antispam unable to call dspam since dovecot upgrade to 2.X
Hello,
Running Gentoo AMD64 2013 with postfix, mysql, dovecot and dspam, i
finally upgraded to dovecot 2.X.
I'm running dovecot 2.2.6, dspam 3.10.2-r1 and
dovecot-antispam-2.0_pre20130429.
My DSPAM configuration hasn't changed between dovecot 1.X and 2.X.
When i'm moving a mail to or from the Spam folder, Igot this error in my
logs :
Nov 14 10:33:25 srv1 dovecot: imap(ghilt at
2005 Dec 25
3
SQLite primary key schema
So after successfully getting the test SQLite db to run from memory, I
tried running some tests but found that somewhere in the schema
translation from Postgres (my devel database) and SQLite Rails fails
to properly set the ''id'' column, which breaks all kinds of things.
Take as an example my ''users'' table. In Postgres the schema is
(generated with pgAdmin III):
2006 Mar 30
2
database.yml and Dreamhost
I am unable to connect to my databases.
Here is the error I am getting:
MysqlError (Can''t connect to local MySQL server through socket
''/var/run/mysqld/mysqld.sock'' (2)):
Here is my database.yml:
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql --
2014 May 19
0
Can ActiveRecord::Base.connection.schema_search_path be set per process?
I am building an app that every company has it own private
schema(Postgresql).
For every requisition, I set the Postgres search path in a before_action
like this:
ActiveRecord::Base.connection.schema_search_path = 'company_id, public'
If I have multiple Unicorn workers, and one worker 'A' set the path, while
another work 'B' set the path before worker A has finish, I
2014 Oct 20
0
dbHasCompleted() always returns TRUE for POSTGRES Database with RJDBC?
Hello Simon, Hello everyone,
I have a problem with retrieving database-queries chunkwise. In my query
(Postgresql-Database, Postgres-Version 9.1) dbHasCompleted seems to
always return TRUE.
dbGetQuery works for smaller tables, but not for the whole query, since
then a Heap-Overflow-Error will occur (and a Error:
"java.lang.OutOfMemoryError: GC overhead limit exceeded" when trying to
2013 Sep 15
1
Why does Rails convert scopes to downcase
I found a strange behavior in Rails 4 with scopes when I use postgres.
I have a Object with saleStartDate and saleEndDate attributes.
scope :active, -> { where(isActivate: true) }
> scope :activeDate, -> { active.where("? BETWEEN saleStartDate AND
> saleEndDate", Date.today)}
When I use sqlite, all works when I want to get the object with the
activeDate scope.
When
2014 Apr 26
0
jquery_ujs.js 404
I am getting this annoying error which relates to jquery_ujs.js not
being served. Any clues?
This is the site link:
http://test.kopy.com.br/home/index
GET http://test.kopy.com.br/assets/jquery_ujs.js?body=1 404 (Not Found)
index:11
GET http://ads.panoramtech.net/loader.js?client=tac
net::ERR_BLOCKED_BY_CLIENT rev.js:4
Error in event handler for (unknown): Cannot read property 'state' of
2006 Mar 14
4
ruby-postgres: can''t convert string to integer
Hi everybody,
I''m experiencing trouble when trying to use ruby-postgres with a legacy
database I need access to. To me it seems the problem is the VARCHAR
columns used there as primary keys. On a simple
me = User.find(''PS12345'')
I get a type error exception with the message ''can''t convert String into
Integer''. The trace is:
2008 Sep 14
2
Postgres adapter issues with Rails 2.1: ruby-pg is the answer!
While upgrading Rails 2.0.2 sites to Rails 2.1.1, I encountered a
weird postgres adapter problem. Although the old postgresql adapter
(aka ruby-postgres) works fine with Rails 2.1.1 on my Mac dev box
(running PG 8.2.6) and also works fine with Rails 2.0.2 apps on a
Debian etch staging server (running PG 8.2.1), this error occurs when
trying to cap deploy 2.1.1 apps on the Debian box:
2008 Mar 09
0
replace astdb with a cluster-capable sql database engine (was: Re: asterisk-users Digest, Vol 44, Issue 22)
unix-odbc with Asterisk Realtime is one good way to use a different
backend DB than MySQL. I haven't heard of "bit rot" problems running it
over long times, but I'd like to if there are any. I'm particularly
interested in seeing reports of Asterisk Realtime backed by Postgres.
The problem with pointing dialplan DB functions like Set(DB) at
unix-odbc (or any relational
2014 Apr 21
0
Trying to get DSpam+Dovecot working with Postfix and local/virtual domains
Hi,
I'm hoping that someone might be able to help, as I've been going in
circles with trying to get the right configuration done here. I'm also
not sure whether this is more of a Dovecot or DSpam question, so I'm
posting the same to both mailing lists.
My goal is to have a mail setup that is as follows:
[Incoming email] --> [Postfix] --> [Amavis] --> [DSpam] -->
2012 Jun 29
1
Fastest way to find the total length of your postgres query
Hello,
I know in ruby that when you want to find the size of your query say
[1,2,3,4,5,6] would provide 6 as the total size, length, or even count.
When I try to use size, length, or count on my application, I would get
a pretty darn slow performance (takes around 10 seconds to load each
count and I do it twice). Is there another faster way to get the total
size from the postgres query?
I am
2006 Mar 31
14
[newbi] Create a Model
Hello All,
Yesterday i put RoR with Locomotive. I am very happy :p.
So I follow this tuto
(http://developer.apple.com/tools/rubyonrails.html). I used Sqlite.
my database.yml
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql -- --include=/usr/local/lib)
# And be sure to use new-style password
2008 Sep 13
4
Setting up RoR with Postgresql ---heeellpp!
Hi there, I''ve been trying for a few hours now to get RoR and postgresql
talking - but I''m very confused about what''s going on (I''m running
windows btw).
I haven''t created a database in postgresql (I''m assuming that RoR will
do that?)
my database.yml looks like this:
production:
adapter: ruby-postgres
database: rails_production
2014 Nov 23
0
R string comparisons may vary with platform (plain text)
> On 23 Nov 2014, at 01:05 , Henrik Bengtsson <hb at biostat.ucsf.edu> wrote:
>
> On Sat, Nov 22, 2014 at 12:42 PM, Duncan Murdoch
> <murdoch.duncan at gmail.com> wrote:
>> On 22/11/2014, 2:59 PM, Stuart Ambler wrote:
>>> A colleague?s R program behaved differently when I ran it, and we thought
>>> we traced it probably to different results from
2019 May 19
4
Dict issue with PostgreSQL for last_login plugin (duplicate key)
On 19/05/2019 22:45, John Fawcett via dovecot wrote:
> On 19/05/2019 22:37, John Fawcett via dovecot wrote:
>> On 19/05/2019 20:31, mabi via dovecot wrote:
>>>
>>> ??????? Original Message ???????
>>> On Sunday, May 19, 2019 7:36 PM, John Fawcett via dovecot
>>> <dovecot at dovecot.org> wrote:
>>>>
>>>> Attached is a
2014 Nov 23
0
R string comparisons may vary with platform (plain text)
For many scientific applications one is really dealing with ASCII characters and
LC_COLLATE="C", even if the user is running in non-C locales. What robust
approaches (if any?) are available to write code that sorts in a
locale-independent way? The Note in ?Sys.setlocale is not overly optimistic
about setting the locale within a session.
Martin Morgan
On 11/23/2014 03:44 AM, Prof