Displaying 7 results from an estimated 7 matches for "some_const".
Did you mean:
some_concat
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 scrub...
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
...= mid = 0;
+ oid = 0;
+ mid = 0;
mask = prep_fp_attrib(pc, fcrd, r_usage[1],
&mid, &aid, &oid);
pc->p->cfg.fp.regs[1] |= (mask << 24);
pc->p->cfg.fp.map[0] += 0x04040404 * fcrd;
+ oid = 0;
}
/* should do MAD fcrd.xy, fcrd, SOME_CONST, fcrd */
if (perspect_loads) {
pc->iv_p = alloc_temp(pc, NULL);
-
- if (!(pc->p->cfg.fp.regs[1] & 0x08000000)) {
- pc->p->cfg.fp.regs[1] |= 0x08000000;
+ pc->iv_p->rhw = aid - 1;
+ if (!(pc->p->cfg.fp.regs[1] & (1 << 27)))
pc-&g...
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
...d, &mid, &aid,
+ &oid);
pc->p->cfg.fp.regs[1] |= (mask << 24);
- pc->p->cfg.fp.map[0] = 0x04040404 * fcrd;
+ pc->p->cfg.fp.map[0] += 0x04040404 * fcrd;
}
- pc->p->cfg.fp.map[0] += 0x03020100;
/* should do MAD fcrd.xy, fcrd, SOME_CONST, fcrd */
@@ -2228,18 +2153,13 @@ nv50_program_tx_prep(struct nv50_pc *pc)
}
for (c = 0; c < 4; c++) {
- /* I don't know what these values do, but
- * let's set them like the blob does:
- */
- if (fcol != 0xffff && r_usage[1][fcol * 4 + c])
- pc->p...
2009 Sep 12
0
[PATCH 10/13] nv50: proper linkage between VP and FP
...d = 0;
- mask = load_fp_attrib(pc, fcrd, &mid, &aid,
- &oid);
- pc->p->cfg.fp.regs[1] |= (mask << 24);
- pc->p->cfg.fp.map[0] += 0x04040404 * fcrd;
- }
+ if (p->type == PIPE_SHADER_VERTEX) {
+ int rid = 0;
- /* should do MAD fcrd.xy, fcrd, SOME_CONST, fcrd */
-
- if (perspect_loads) {
- pc->iv_p = alloc_temp(pc, NULL);
-
- if (!(pc->p->cfg.fp.regs[1] & 0x08000000)) {
- pc->p->cfg.fp.regs[1] |= 0x08000000;
- pc->iv_p->rhw = aid++;
- emit_interp(pc, pc->iv_p, NULL,
- INTERP_LINEAR);
- e...