Displaying 20 results from an estimated 1000 matches similar to: "bug in postgresql ''now'' time handling??"
2005 Mar 04
3
Boolean values
Hi,
I''m using SQL Server. I have a BIT field. I have a fix and a question.
This is a patch for a bug in the SQL Server adapter that causes any insert or
update to fail:
lib/active_record/connection_adapters/sqlserver_adapter.rb
@@ -239,2 +239,2 @@
- when TrueClass then (column && column.type == :boolean ?
"''t''" : "1")
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
2006 Mar 30
15
ActiveRecord 1.13.2 -> 1.14.0 breaks Postgres connectivity
To Whom It May Concern:
I have an ActiveRecord-based application (non-Rails). Life was grand
until I upgraded ActiveRecord yesterday, after which point I was getting
TONNES of these errors from my app and in PostgreSQL''s logs:
FATAL: terminating connection due to administrator command
According to Google searching, this happens when an external process
sends PostgreSQL SIGINT or
2009 Sep 15
3
Is This Really Legal?
I'm about to buy a new computer and give my old computer to my Mom. Because I will giving my old computer to my mom, I will be loosing my Windows XP license.
I can either get a nice computer with a Windows Lincense or I can buy and really honking mega awesome computer without a Windows License.
Naturally, I would rather buy a "honking mega awesome computer" instaed of a "nice
2006 Mar 07
1
PLEASE HELP ,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
2006 Jul 17
18
Inserting datetime value into SQL Server
I have a SQL Server column named StartTime of (SQL Server) type datetime
If I attempt to set the attribute using
public
def StartTime=(time)
write_attribute(:StartTime, "{ts ''1899-12-30
#{time.hour}:#{time.min}:#{time.sec}''}")
end
it''s inserting a NULL value.
Anyone else able to successfully insert a date time value into a SQL
Server table using
2014 Sep 26
3
Automatic Update of MP3 Files
Linked file means the original MP3 file posted on the server.
init script? Tell me where to find one? That?s what the Web guy evidently didn?t know, since he?s not experienced at Icecast.
Peace,
Gene
> On Sep 26, 2014, at 12:11 PM, Thomas B. R?cker <thomas at ruecker.fi> wrote:
>
> On 09/26/2014 01:57 PM, Gene Steinberg wrote:
>> Well, not quite. The radio network that
2014 Sep 26
5
Automatic Update of MP3 Files
So far I?m getting insults and claims that I don?t know what I?m doing and my Webmaster doesn?t know what he?s doing, even though he?s worked for large bluechip companies.
Please make an effort to actually respond to what I asked, and don?t presume to tell me what I did wrong and how it?s my fault ? or his fault.
I assume the distribution is the one on the Icecast site. I have a CentOS 6.5
2006 Jun 23
0
Multiparameter error
Hello,
What''s the best way to deal with dates prior to 1970 using Rails. I''ve
seen some suggestions for hacks to fallback to the Date class if Time
fails, but I''m not sure exactly how to implement them.
This is from the wiki
require ''date''
# It''s necessary to do this, because Time doesn''t
# support dates before 1970...
class
2006 Mar 13
2
relationship woes
I have two tables:
class PgmUpdate < ActiveRecord::Base
has_many :pgm_visits, :foreign_key => ''pgm_update_fk''
...
and
class PgmVisit < ActiveRecord::Base
belongs_to :pgm_update, :foreign_key =>
''pgm_update_fk'', :dependent => true
...
According to the has_many docs (http://api.rubyonrails.org/classes/
2008 Apr 23
1
Validation dependent on unsaved parent
I''m having trouble with a validation that depends on an attribute of a
belongs_to parent. If the child is added to an unsaved parent
(parent.children << new child), the has_many collection
parent.children includes the unsaved child. However the belongs_to
attribute child.parent appears to be nil until the parent has been
saved. Without access to the parent attributes, the validation
2008 Apr 28
1
OSX R GUI visual interface tweak (PR#11318)
Full_Name: Ana Nelson
Version: R 2.7.0 GUI 1.24 (5102)
OS: OSX 10.5.2
Submission from: (NULL) (213.94.201.89)
The R GUI close button has a solid circle. Screenshot is here:
http://skitch.com/ananelson/kmxj/r-console
On OSX this indicates that there are unsaved changes pending. Please see page
201 of the Apple Human Interface Guidelines (version 2008-03-11):
2014 Sep 27
1
Automatic Update of MP3 Files
That?s better. This is helpful and I sent the information off to the Webmaster to review.
Peace,
Gene
> On Sep 27, 2014, at 1:05 AM, Thomas B. R?cker <thomas at ruecker.fi> wrote:
>
> On 09/26/2014 10:33 PM, Gene Steinberg wrote:
>> Please make an effort to actually respond to what I asked, and don?t presume to tell me what I did wrong and how it?s my fault ? or his fault.
2007 May 09
6
more_like_this
Hi,
I''m using acts_as_ferret in my rails application and I''d like to use
more_like_this to retrieve some ''similar'' item suggestions. I have a
class ''items'' which has a status field and I need to retrieve items that
only have one of the two possible statuses.
Looking at the more_like_this method indicates it supports an
:append_to_query
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
2014 Sep 26
2
Automatic Update of MP3 Files
Well, not quite. The radio network that carries my two radio shows does on-demand and live.
We just wanted an on-demand streamer for our own needs.
The code from our webmaster to update after a linked file is replaced is:
--------------------------------------------------------------
WHEN YOU UPLOAD A NEW SHOW:
--------------------------------------------------------------
1) You need to
2006 Mar 11
3
kde
im compiling kde from the ports for about the hundreth time and something
always goes wrong this time its more simple than most but i can't seem to
find what im looking for. It attempted to fetch a library called tiff.4 in
several places and found nothing. It asked me to find it and ive been
looking all over google and got nothing. Does anybody know where i can find
this library?
Thanx,
Max
2006 Jun 21
3
Simple range question
I have a model with a datetime field called start_date. I''d like to do
a find on the model so that it returns only records with the start_date
equal to the current day.
Something like this:
@foos = Foo.find(:all,
:conditions => //?? start_date equal to today''s date
??// ] )
Thanks in advance for any help.
-------------- next part
2014 Sep 26
2
Automatic Update of MP3 Files
So I have a new Icecast setup with two channels, each of which carries a link to MP3 files.
Whenever I update the .m3u file to reflect a changed link, I have to restart Icecast and the Icegenerator to make it recognize the change.
Is there a way to automate this process? So when I update the file link, that?s reflected in the stream, which auto updates too?
How do I go about this?
Peace,
Gene
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