Displaying 20 results from an estimated 3000 matches similar to: "Hiding an attribute"
2004 May 10
3
sqlSave with underscores in table fieldname
Hi group,
I try to write a frame to a table (RODBC). I use
colnames(temp6) <- c("ind_id","ser_id","period_id","year","calc","mean")
sqlSave(channel, temp6, tablename = "series_indices_test",append= TRUE, rownames=FALSE, verbose = FALSE, test = FALSE, nastring = -999999, fast = FALSE)
This is giving me an error:
Error in
2006 Aug 19
5
Form helpers don''t work with facade columns?
Hello all,
I''ve been trying to use a facade column but I notice that the form
helpers don''t seem to respect the facade.
In the following example I''m trying to story the prices as Integer
values but present them to the user as decimals.
class Product < ActiveRecord::Base
def price=(new_price)
write_attribute(:price, Float(new_price)*100)
end
def price
2009 Jun 09
6
[LLVMdev] Regular Expressions
On Tuesday 09 June 2009 04:35, Török Edwin wrote:
> On 2009-06-09 12:27, Howard Su wrote:
> > This change break the MSVC build since no regex by default in Windows
> > MSVC platform.
>
> Perhaps we should add a regex implementation to lib/System?
That's potentially a lot of work. I started looking at it and it would
involve hiding the OpenBSD library under some other
2005 Oct 03
3
Boolean quoting, postgresql
http://dev.rubyonrails.org/ticket/1117
I''ve attached a patch to ticket 1117 which fixes it so that booleans
are escaped as booleans, not integers. Specifically, this situation
will now work
find_all(["send_date=? and sent=?", Date.today, false])
Which matches peoples expectations, but it causes some problems with
the postgresql unit tests. Specifically, the use of
2006 Mar 02
6
Newb question about facade columns
Hello,
I am trying to deal with a database table that contains a date in the
form of the number of seconds since epoch. Data is inserted in this
format by an existing script that I can''t change, so a schema change
isn''t realistic.
I would like to allow humans to view and edit this data in the form of
an actual human-readable date. I figured a facade column would be the
2004 Apr 19
3
encoding from 22050Hz source
Hi!
I'd like to encode from a 22050 Hz source wav file (only in that case),
but i get the following error message: "Invalid floating point operation"
I use delphi:
vorbis_encode_init_vbr(vi,2,22050,0.5)
.
.
.
While (i < readCount div 4) Do
Begin
buffer[0][i] := smallInt((pArray(@readbuffer)[i shl 2 + 1] shl 8) or pArray(@readbuffer)[i shl 2 + 0]) / 32768;
2009 Jun 09
0
[LLVMdev] Regular Expressions
> On Tuesday 09 June 2009 04:35, Török Edwin wrote:
> > On 2009-06-09 12:27, Howard Su wrote:
> > > This change break the MSVC build since no regex by default in Windows
> > > MSVC platform.
> >
> > Perhaps we should add a regex implementation to lib/System?
>
> That's potentially a lot of work. I started looking at it and it would
> involve
2007 Feb 07
2
Problems Generating Scaffolding
I am having trouble generating some of my scaffolding. I''m trying to
use PostgreSQL as my back-end. Some of my scaffolding generates with
no problem but for other parts I get this:
Before updating scaffolding from new DB schema, try creating a table
for your model
The tables do exist. At least I can see them from psql.
Here is the SQL I''m using to create my tables:
CREATE
2006 Mar 17
2
SOA on rails...
We are in the process of evaluating new development frameworks for our
future development platform. We currently use php and are evaluating
Java, Ruby, Mono and .NET.
We really like Ruby but unfortunately, we are having a hard time
implementing our layered Service Oriented Architecture using Ruby due to
the view being tightly bound to the ActiveRecord objects.
Although we love all the great
2004 Feb 13
10
Encoding into MONO (delphi)
Hi!
I have a problem. I hope, you can help me.
I use a Delphi conversion (from Aleksandr Shamray),
but it doesn't work when I'd like to convert a *.RAW into a
mono *.ogg file.
vorbis_encode_init_vbr(vi, 1, 44100, 0.5); //because of the mono
the program stops at line:
//* uninterleave samples */
.
.
buffer[1][i] := smallInt((pArray(@readbuffer)[i shl 2 + 3] shl 8) or
2006 Jan 05
8
Repost - Do dynamic finders work with legacy schemas?
Hello everyone,
I have another question related to a legacy schema I am working with.
Do dynamic finders work with legacy schemas in general? The schema I am
working with uses hungarian prefixes for column names. For example fOpen is
0 if a bug is closed and 1 if it is open (type smallint). When I try @bugs
= Bug.find_all_by_fOpen(1), I get the following exception:
undefined method
2006 Jun 08
2
Errata in the "Four Days with Rails"
Hi, I spent more than 4 days getting done with the "Four Days
with Rails" tutorial, mostly because I ran into a few issues that
seemed to stop me in my tracks. But, after looking around, I was able
to find the problems and solve them (in whatever way I thought best) :-)
I''m posting the whole list of problems that I ran into with "Four Days
with Rails" to the list so
2004 Jul 05
3
Randy Bush is a destructive force with a hidden professional agenda
. Monday, July 5, 2004
15:50:06 (-08:00hrs UTC)
Hello asterisk-users,
From the following post:
On Mon, 5 Jul 2004, Joe Baptista wrote:
> On Mon, 5 Jul 2004, Randy Bush wrote:
>> i did not criticize the protocol. remember, my question started
>> with
>>
>> >> i am looking at iax to
2020 Mar 25
4
Multi-Threading Compilers
On Wed, Mar 25, 2020 at 8:52 AM Doerfert, Johannes <jdoerfert at anl.gov> wrote:
> I think the solution space for the value/use-list issue might be larger
> than what was mentioned so far.
>
>
> Some random thoughts:
>
> If no pass ever walks the use list of a constant, except globals which
> we could handle differently, we could get rid of their use-list or
>
2012 Jul 25
0
help about quota config
hi all :
mysql mailbox below :
CREATE TABLE `mailbox` (
`username` varchar(255) NOT NULL DEFAULT '',
`uid` varchar(255) NOT NULL DEFAULT '',
`password` varchar(255) NOT NULL DEFAULT '',
`clearpwd` varchar(128) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL DEFAULT '',
`mailhost` varchar(255) NOT NULL DEFAULT '',
`maildir`
2006 Feb 04
1
Issues with sending HTML email
Hello,
I am using the SaltedLoginGenerator. Everything is working fine except the e-mail is being sent out as text instead of text/html. I have tried changing the Content-Type to text/html but to no avail.
I even tried changing the Content-Type in tmail/facade.rb but it didn''t help.
What am I missing? How can I get ROR to send a HTML email.
Thanks
Frank
2008 Nov 19
3
Using third-party dlls
I am in the process of trying to port a Windows library to Linux (maybe also to Mac, but let's not get ahead of ourselves). The existing library is essentially a facade layer to a number of third-party dlls (mostly COM-based, although one is .NET-based) over which I have no control. These third-party dlls have no UI of their own. Their purpose is to allow access to proprietary data formats.
2007 Aug 09
1
usage of each field
Hi all,
From the web, I can find a table scheme of sipusers for ARA using.
However, I can't find any meaning of each field, especially for the
field regserver which is new in the table. Can any tell me more
detail about the usage of each field?
CREATE TABLE `sip_buddies` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(80) NOT NULL default '',
`host` varchar(31) NOT NULL
2006 Nov 29
5
AR, find(:all), loops and memory usage
I''m a beginning programming using ActiveRecord outside of Rails to do
conditional processing of database records. So far, I''ve been
successful. However, my script loads all matching records into memory
first. There are hundreds of thousands of matching records so the
script quickly consumes over 500MB of RAM before any processing is
done. Is there a way to avoid this preloading
2006 Feb 22
0
Realtime queues with Firebird SQL through unixodbc
Hello,
I have a partially working Realtime Queue using unixODBC and Firebird. I
followed the steps on asterisk-guru and the voip-info asterisk message
boards but have been having no success.
I say that my queue is partially working because callers can join the
queue. However the calls do not go to the agents even if the agent is
not tied up and is available for calls. So the caller is stuck