Displaying 7 results from an estimated 7 matches for "some_constant".
2005 Oct 11
8
resize images
Hi,
I am looking for the best solution to resize images to fit within a
certain area. The images will only be made smaller if they will not
fit within a fixed size area. It is important to maintain the same
proportions.
This ImageMagick extension looks promising:
http://vantulder.net/rails/magick/
However, I believe it may be overkill for just resizing images
sometimes. I have also seen a
2006 Jun 27
0
Using passed-in locals in observe_field in a partial
I need to be able to assign a value to the field_id field of observe_field inside a partial. Ideally, it would look something like:
<%= observe_field(local_variable_name1, :url => {:action => ''some_constant'', :id => local_variable_name2}) %>
I''m not having a problem with the assignment to :id of local_variable_name2. But I can not figure out how to use a local in the field_id field. Any ideas?
TIA,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
2006 Feb 23
8
SQL quoting for :order parameter
When I construct a query using variables I do something like this:
@users = User.find(:all, :conditions => ["location = ?", location])
I would like to do the same sort of thing in the :order parameter.
@users = User.find(:all, :order => ["? ASC", location])
When I try this though I get a SQL error and I see that the items in the
array were concatenated together and
2009 Jun 24
0
[PATCH] nv50: fix previous patches
This fixes the previous patches, and add some debugging output
if NV50_PROGRAM_DUMP is un-commented.
Will merge this into the patches, later.
---
src/gallium/drivers/nv50/nv50_program.c | 94 +++++++++++++++++++------------
1 files changed, 58 insertions(+), 36 deletions(-)
diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index 4b05075..caf03c9
2008 May 01
20
link_to meta programming question
I am trying to create a dynamic menu using the following construct:
<%- menu_list = [ ''first'', ''second'', ''third''] -%>
<ul>
<%- menu_list.each do |m| -%>
<%= link_to "List All #{m.titlecase.pluralize} <m>_path %>
<%- end -%>
</ul>
What I cannot determine is what I have to do to replace
2009 Sep 12
0
[PATCH 09/13] nv50: move allocation of pc regs
Make use of tgsi_shader_info to determine how many nv50_regs
we need to allocate, if program uses KIL, or writes DEPR.
---
src/gallium/drivers/nv50/nv50_program.c | 284 ++++++++++++++-----------------
1 files changed, 129 insertions(+), 155 deletions(-)
diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index e2adeca..c8157f1 100644
---
2009 Sep 12
0
[PATCH 10/13] nv50: proper linkage between VP and FP
This moves construction of the mapping between VP outputs
and FP inputs into validation.
The map also contains slots for special outputs like clip
distance and point size, so we need to at least merge the
VP related and FP related parts on validation if we want
to support those.
Now we match every single FP input component with results
from the VP and leave those not read out of the map, or