Displaying 20 results from an estimated 55 matches for "facad".
Did you mean:
faced
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(:pri...
2006 Aug 01
0
Validation of facade columns
I''m having difficulty understanding how to make validation of facade
columns consistent with validation of other active record columns. To
illustrate this, I''m going to extend the facade column example
discussed on pp. 284-5 of AWDR. Let''s say that there is a "rectangles"
table that has width and height columns. For some unknown reason,...
2006 Mar 02
6
Newb question about facade columns
...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
way to go here, but I am stuck on the fact that the inputs from the
facade type are multiparameter. This breaks the update_attributes call
in ActiveRecord::Base with a NoMethodError in my object''s controller''s
update method.
I have tried to add an additi...
2006 Jun 01
2
Hiding an attribute
I am using a smallint database column to store several boolean flags.
The flags are accessible thru facade column accessors. I''d like to
hide the database column so all access is thru the facade accessors.
How do I do it?
TIA,
Jeffrey
2009 Jun 09
6
[LLVMdev] Regular Expressions
...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 lib/System facade.
Designing that facade takes time and we probably won't get it right
the first or second time.
Another option is to just provide the OpenBSD regex code as an optional
library that gets compiled and linked for MSVC systems. I'm not at all
familiar with MSVC build procedures so I don't...
2009 Jun 09
0
[LLVMdev] Regular Expressions
...ince 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 lib/System facade.
> Designing that facade takes time and we probably won't get it right
> the first or second time.
I guess the standard regex library is PCRE (http://pcre.org). It has its own
api, but it also supports the POSIX interface. The regex syntax is Perl
compatible.
We bundle this library in...
2006 Mar 17
2
SOA on rails...
...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 functionality ActiveRecord provides for
free we like to bury the domain objects under a Facade Layer to promote
a higher level of abstraction between the Core Business Logic and the
higher level Application Logic. This allows us to provide a service
oriented API that can be used to build various applications.
Any thoughts on how one might achieve this in Ruby without giving up too
much...
2006 Jul 14
7
Form validation - keepin correct fields displayed on refresh
All,
I''m finally doing my first real form in Rails - the model object that
I''m entering information for has 8 validations so far.
If I type in good values for all the fields but one, I get the pretty
validation, and the nice field highlighting, but all of the fields are
cleared, forcing me to retype all of that info. That is a big drag.
Is there a standard way to get the
2004 Jul 05
3
Randy Bush is a destructive force with a hidden professional agenda
...t i
>> don't.
> Your up to no good again. Trying to troll? Look Bush it pretty easy - if
> you want a PBX use asterisk if not go away.
> regards
> joe
Watch out for this man Bush! He is a professional espionage troll
and hides his agent status behind his condescending facade.
What do you want Randy? Go back to Admiralty way with all your
ICANNite cronies if you're not going to behave here!
Your on notice as of now and you're being watched. Don't try to
destroy this community like the trail of destruction behind you!
If you wanna play nice in t...
2011 Jun 12
7
installation of Office 2007 under Arch x86_64 fails
Running x86_64 with multilib enabled and am unable to install office 2007 to a fresh wineprefix.
Code:
$ export WINEPREFIX=/home/facade/.wineprefix/office
$ wine /media/dvd/setup.exe
wine: created the configuration directory '/home/facade/.wineprefix/office'
err:module:load_builtin_dll failed to load .so lib for builtin L"winemp3.acm": libmpg123.so.0: cannot open shared object file: No such file or directory
err:...
2009 Jun 09
0
[LLVMdev] Regular Expressions
...d 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 lib/System facade.
> Designing that facade takes time and we probably won't get it right
> the first or second time.
>
> Another option is to just provide the OpenBSD regex code as an optional
> library that gets compiled and linked for MSVC systems. I'm not at all
> familiar with MSVC bu...
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
---------------------------------
Yahoo! Mail - Helps protect you from nasty viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://w...
2006 Apr 20
5
Integrating with Legacy Databases
This seems like it must have been asked before - I really _did_ try to
find it in the archives, so my apologies if it''s already out there.
Utilizing ActiveRecord, I would like to specify a prefix for the
column names in my table. For example, in ''Recipe 16 Integrating with
Legacy Databases'' (Rails Recipes, from PragProg, by Fowler) they deal
with integration with a
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.
The optimal solution would be to use Wine to link to these third-party...
2006 Jul 17
6
Best Practices: Splitting the "view model" from AR model
All,
I''m starting to see view state information creeping into my model class.
For example, I have text fields in my view that need to be set a certain
way depending on whether or not a checkbox is checked. And while the
values of these text fields ultimately do represent database columns
that are related to the backing AR object, the text_field values also
represent attributes on a
2015 Jun 17
3
[LLVMdev] design question on inlining through statepoints and patchpoints
...l flow semantics within a call
graph:
1. Model calls to statepoint, patchpoint and stackmap intrinsics as
calling the external node. Teach the inliner pass to
"devirtualize" calls through statepoints when posssible, except
that the "devirtualization" is only a facade (i.e. we don't
mutate the IR to change the statepoint to a direct call). We add
some abstraction to the inlining utility functions to inline
through something more general than a CallSite.
2. Introduce a new abstraction InlineSite (bikeshedding on the name
is welcome)....
2006 Jul 13
4
Does text_field go directly to attributes hash in AR object?
...nt_job, ''FAX'') %></TD>
Fax: crap[text field with numbers in it - the value of the call to
read_attribute]
So my question is:
QUESTION: Does text_field(:object, :method) call
object.read_attribute(method) or object.method
If it calls read_attribute, how can I get my facade method to be called
from the template?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2020 Mar 25
4
Multi-Threading Compilers
...ineAsm (huh, why is that not a constant?)
- MetadataAsValue (+ children)
- User
-- Instruction (+ children)
-- Constant
--- ConstantData (undef, token none, literals)
--- ConstantAggregate (non-literal aggregates)
--- BlockAddress
--- ConstantExpr
--- GlobalValue (+ children)
-- Operator (utility / facade, i.e. not real)
-- DerivedUser (extension point used by MemorySSA)
It seems to me that the only points of this hierarchy that are
guaranteed to be function-local are Argument and Instruction.
Everything else could end up having uses from multiple functions
and/or initializers of globals. DerivedU...
2006 Apr 14
1
rake test errors
...: warning: ambiguous first argument; put
parentheses or even spaces
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/helpers/
prototype_helper.rb:873: warning: `*'' interpreted as argument prefix
/usr/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/vendor/
tmail/facade.rb:486: warning: method redefined; discarding old create_reply
/usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/
action_web_service/protocol/xmlrpc_protocol.rb:6: warning: discarding
old message
/usr/bin/ruby18 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/
rake/rake_test_l...
2007 May 01
1
The unbelivable Civilizations of the World
...mega-structures.blogspot.com/>
<http://mega-structures.blogspot.com/>
Map Based on the Geography of Ptolemy <http://mega-structures.blogspot.com/>
<http://mega-structures.blogspot.com/><http://mega-structures.blogspot.com/>
<http://mega-structures.blogspot.com/>
Facade of a pagoda, Mingun, Myanmar <http://mega-structures.blogspot.com/>
<http://mega-structures.blogspot.com/><http://mega-structures.blogspot.com/>
<http://mega-structures.blogspot.com/>
Caesar Statue Near Traffic Light <http://mega-structures.blogspot.com/>
<htt...