Displaying 20 results from an estimated 1000 matches similar to: "Fuzzy searching"
2005 Oct 28
4
find_by_sql column types
Hello--
There must be a better way to do this. I have a class method in my model
that finds averages and does a few calculations using find_by_sql. The
problem I¹m encountering is that all computed columns from MySQL come back
as type string. E.g.,
def self.find_averages(domain_id)
if @@domain_average
return @@domain_average
else
@@domain_average =
2005 Dec 20
9
Rails Configuration Question
Hello Everyone,
I have been reading this mailing list for a while and am impressed with the
generous help that many here are eager to provide. Perhaps someone will be
able to shed some light on a configuration issue I am having. Thank you in
advance for any assistance.
First, system setup details:
#System Setup#
* OS: Fedora Core 4 running in a VMWare box on Windows XP
* Database: MS SQL
2005 Dec 15
5
Action Mailer - connection refused - connect(2)
hi:
I am on Mac OSX 10.4 using locomotive.
My ActionMailer configuration is
ActionMailer::Base.delivery_method = :smtp # or :sendmail or test
ActionMailer::Base.server_settings = {
:address => "mail.albertafilmworks.com",
:port => 25,
:domain => "brucebalmercanada.com"
}
ActionMailer::Base.perform_deliveries = true
2005 Dec 15
2
Checking the existance of a NOT NULL constraint from Active Record
Hi,
I'd like to check the existance of a NOT NULL constraint for a given
attribute using ActiveRecord. Is this possible or do I have to
painstakingly query the information_schema myself? I need this for
some reflection in a custom association.
Thanks,
- Rowan
--
Morality is usually taught by the immoral.
_______________________________________________
Rails mailing list
2005 Dec 15
4
rake migrate ignores '':null => false'' on mysql
I wanted to add a login string column to an existing table
=> I created a migration :
...
def self.up
add_column "members", "login" , :string, :null => false
end
...
remark: it shouldn''t work, as the table is not empty (=> ''login'' would
be null in the existing rows.)
problem:
rake migrate didn''t complain
2005 Dec 11
62
PROPOSAL: The list needs to fork (desperately).
I''d like to propsoe that the RubyOnRails mailing list forks into three
lists.
PROBLEM:
* The list is getting swamped with traffic, making it hard to use and
even harder to follow.
* Many, many messages get lost, with no reply.
* Due to the overwhelming traffic, it''s hard for beginners to get the
help that they need, since their messages get lost in the shuffle, and
2006 Jan 07
2
can store array or hash in cookies?
Hi
According to rdoc: value - the cookie''s value or list of values (as an
array).
So, I can use arrays, briliant.
But.... It does not work (at least on webrick)
I wrote a controller:
def check_cookies_first
cookies[:chef] =
{:value => ["first", "second"], :expires => Time.local
(2020)}
render_text ":)"
end
def
2014 Jan 21
3
Asterisk Fax detection *11.7
Hello everybody
I'm trying to enable the Digium res_fax app at my *11.7 Server.
a fax show stats comes up with
FAX Statistics:
---------------
Current Sessions : 0
Reserved Sessions : 0
Transmit Attempts : 0
Receive Attempts : 1
Completed FAXes : 1
Failed FAXes : 1
Digium G.711
Licensed Channels : 1
Max Concurrent : 0
Success : 0
Switched to
2011 Jan 14
2
Some direction of Samba4 Sid to Uid/Gid ?
Did a git-pull and built samba4, up and running with winbind.
I have a file server, which will be access by windows. Say I have a
user named "abcde" (uid = 1000), under group "abcde) (gid = 1000).
When I created a user with samba-too (samba-tool newuser abcde xxxxx),
it creates an account "abcde" with mapped uid 300018 under group user
users.
I am really wondering if
2005 Dec 18
8
Invoking Rails from an API
Hi,
I am trying to use ruby int an embedded web server. The environment
does not have the luxury of CGI or WebBrick. I find limited
documentation on how to get this to work. As a test program on windows,
I tried the code in the section below.
I have the issues.
1. Is public/dispatch.rb the right script to invoke a rails app? If
so, what is the right way to invoke dispatch.rb?
2.
2005 Dec 15
2
:session_expires usage
Hi everyone, I''m new to Rails and web development. I just bought up the
Agile book and I''ve got a question about the :session_expires option.
In the book, page 317, it says the :session_expires "option should
probably not be used." Does anyone know why? The book doesn''t explain
or give any indication as to why.
In an application I''m working on
2003 Aug 27
4
read.spss (package foreign) and character columns
Dear R users!
I am using R Version 1.7.1, Windows XP, package "foreign" (Version: 0.6-1),
SPSS 11.5.1.
There is one thing I noticed with "read.spss", and I'd like to ask if this
is considered to be a feature, or possibly a bug:
When reading character columns, character strings seem to get filled with
blanks at the end.
Simple example:
In SPSS, create a file with one
2006 Sep 26
2
FLAC CD Archive
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>
> I've been working on this sort of approach using abcde as a front-end,
> and have run into several issues. What I finally decided on doing is
> ripping the CD to a single flac file with embedded cue sheet using a
> variety of tools (more details later). The single flac file is then
> enough to pretty much reconstruct the
2006 Sep 26
3
FLAC CD Archive
On Tue, Sep 26, 2006 at 04:39:51PM -0500, Charles Steinkuehler wrote:
> Further abcde and cuefile discussions should probably find a new home...
Well, I can't speak for Josh, but I've found it a relevent and
productive discussion.
-r
2006 Sep 28
2
FLAC CD Archive
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The recent discussions about archiving CDs with flac prodded me to get
abcde working again. I've filed a debian bug report with patches to the
latest abcde that enable generating a toc file from the disc with cdrdao
(rips CD-TEXT data and creates index points from subcode data).
Combined with my patches to toc2cue, this is enough to rip even
2006 Jan 01
3
Single Table inheitance doesn''t show subclasses ?
Hi, I am a Rails noob.
Suppose you have:
---
class Animal < ActiveRecord::Base
end
class Mammal < Animal
end
class Cow < Mammal
end
---
I provide Animal,Mammal and Cow controllers with the scaffolding, just
to test and to fill up the Animal table. I can see the "type" column
getting it''s value set with the class name.
So far, soo good.
Now, since listing Animals
2017 Jan 23
3
metaflac crashes adding cuesheet
Erik,
The command used by abcde is
metaflac --no-utf8-convert
--import-cuesheet-from=/home/me/Audio/abcde.50107806/cue-50107806.txt
--import-tags-from=- /home/me/Audio/abcde.50107806/track1.flac
but I get the same result re-trying without the --no-utf8-convert
and -no-utf8-convert.
Here's the cuesheet:
PERFORMER "William Shakespeare"
TITLE "A Midsummer
2017 Jan 24
1
metaflac crashes adding cuesheet
Erik,
I don't know what abcde would be providing as tags, or why on Earth it
would be importing that from stdin. Unfortunately, abcde is a bash
script, and so not exactly easy for me to read. I haven't gotten any
response from posting on their mailing list.
I do get the same crash when running metaflac without the
--import-tags-from,
so I'm not sure this is the problem. Unless
2010 Apr 30
2
drop last character in a names'vector
Hi, i have a vector filled with names:
[1] Alvaro Adela ...
[25] Beatriz Berta ...
...
[100000] ...
I would like to drop last character in every name.
I use the next program:
for (i in 1:100000) {
? ? ? ? ? ? ? ? ? ? ? ? ? largo <- nchar(names[i]-1)
? ? ? ? ? ? ? ? ? ? ? ? ? names[i] <- substring (names[i],1,largo]
? ? ? ? ? ? ? ? ? ? ? ? ?}
Is another and faster way of do it?
Thanks,
2006 Sep 26
4
FLAC CD Archive
I have read some posts about using FLAC to archive CD collections and
would like to get some feedback. I am torn between creating a bin and
cue file with CDDB info and compressing that down with FLAC as a single
file or the second method of ripping all the files out to wav and
converting to FLAC and maybe saving the cue file in attempt to use it later.
The first method I believe will pretty much