similar to: [OT] Comments wanted on use of bitwise op

Displaying 20 results from an estimated 2000 matches similar to: "[OT] Comments wanted on use of bitwise op"

2006 Mar 07
2
How to sort execution of multiple ajax-calls
Hi, currently I execute 2-3 AJAX-Calls (located at the end of html-body) on loading the page. I run into problems now because they are executed parallel of course :) How can I garuantee that the Calls are executed when the page has loaded completely ? And, more interesing, how can I make one AJAX-Call start when the previous has completely finished ? I''ve read about Effect.Queues - is
2006 Feb 23
2
find_by_sql aliasing issue when accessing attributes
I was recently having problems accessing attributes in an object. Can somebody explain to me why this is, and if it is a bug? I have the following code: @archives = RapturePost.find_by_sql "select distinct date_format(rapture_posts.date_created,''%Y-%m'') date_created from rapture_posts where rapture_posts.site_id = 1 order by rapture_posts.date_created desc" I
2006 Mar 21
8
AS/400?
Any success stories using rails against a DB2 database on an as400? If so, how? Thanks Ed Schechter -- Posted via http://www.ruby-forum.com/.
2006 Mar 07
11
maintaining application state/urls
Hi All Not specifically a scriptaculous question, but I was wondering how people were going about maintaining access to their applications via standard urls. Say for example I''ve a shop at www.shop.com, and its pure ajax to load in products. Now customer A wants to show a friend a product on the site - giving him the url www.shop.com and telling him to click on a series of links
2006 Mar 07
10
[PREVIEW] SmallCap
Somebody suggested SmallCap and that sounds great. This is by no stretch of the imagination Capistrano, so it might better be named MicroCap but it may be useful to some who have (as I do) modest needs in this regard, especially for on-server versioning. Here''s a preview of the usage: Usage: ruby smallcap.rb [options] -s, --server=SERVER Copies app to specified
2006 Feb 14
7
Action when database changes
Hello, Is it possible to trigger an action in a controller when a table from database changes? I thought about using an utility like cron (railscron) to check every, e.g. 2 s, if the table changed, but I am wondering if there is a solution a bit more ''elegant'': to trigger an action exactly when the change is made. Best regards, -- Kuba Nowak
2015 Jun 26
3
[LLVMdev] bitwise ops on booleans
Hi Language Lawyers! In PR23827 ( https://llvm.org/bugs/show_bug.cgi?id=23827 ), a bitwise op on booleans is considered equivalent to a logical op: if ((x < 3) & (y > 10)) effectively becomes: if ((x < 3) && (y > 10)) where x and y are of type 'int'. The second statement (&&) requires short-circuit evaluation to bypass the y comparison when the x
2008 Dec 22
2
queue simulation
Hi all, I have a multiple queing situation I'd like to simulate to get some idea of the distributions - waiting times and allocations etc. Does R has a package available for this - many years ago there used to be a language called "simscript" for discrete event simulation and I was wondering if R has an equivalent (or hopefully with graphics, something better!). Apologies if there
2006 Jun 02
1
Ajax: update multiple DIV''s
Hello. Is it possible to update multiple DIVs during? For example I have DIV for @flash[:notice], and one for content and I need to render both DIVs after executing action.
2006 Jun 04
1
Image links in stylesheets?
Guys, I understand the logic behind using image_tag in rhtml to maintain app portability, but how do you link to images in a stylesheet maintaining that same portability? Thanks for your help! B.A. -- B.A. Baracus: I thought you weren''t crazy no more? Murdock: Only on paper. -- Posted with http://DevLists.com. Sign up and save your mailbox.
2006 Mar 14
1
ActionMailer - help!
I want to send myself an email when someone comments on my site. I setup actionmailer in the environment.rb file, but how do I actually send an email? Is it right after "post.save" or something? If so, what''s the syntax? Thanks for any help. -- Posted via http://www.ruby-forum.com/.
2006 Mar 05
1
[patch] Effect.Move and a little experiment
i everybody! first at all, sorry about my poor english... i''m working in a little experiment about boucing objects using Effect.Move implementation and a couple Effect.Transitions'' but... i was stuck in the way how Effect.Move works. I need to move a object in two dimensions: X and Y, but in different times.... Effect.Parallel not work for me, because meanwhile the object
2006 Feb 22
1
Cursor position
How can I get the cursor position relative to the page, and store it in a variable? (Preferably without using javascript) Thanks, Chris -- Posted via http://www.ruby-forum.com/.
2015 Jun 26
2
[LLVMdev] [cfe-dev] bitwise ops on booleans
On Fri, Jun 26, 2015 at 2:17 PM, Joerg Sonnenberger <joerg at britannica.bec.de > wrote: > On Fri, Jun 26, 2015 at 12:51:38PM -0600, Sanjay Patel wrote: > > Assuming the transform is correct, what is the recommended way to write > > this in C/C++ to achieve the desired effect: we want both comparisons to > be > > evaluated (do *not* want short-circuiting)? > >
2006 Feb 15
3
Like Query Across Multiple Tables
Firstly, I''m still learning Ruby and rails, so there could be a very simple solution to this. I want to search across multiple tables with a "like" query eg: (SQL is probably the easiest way to describe it): select products.* from products inner join brands on products.brand_id = brands.id where products.name like ''%canon%'' or brands.name like
2015 Jun 27
2
[LLVMdev] [cfe-dev] bitwise ops on booleans
----- Original Message ----- > From: "Chandler Carruth" <chandlerc at google.com> > To: "Sanjay Patel" <spatel at rotateright.com>, "Clang" <cfe-dev at cs.uiuc.edu>, llvmdev at cs.uiuc.edu, > joerg at britannica.bec.de > Sent: Friday, June 26, 2015 8:55:22 PM > Subject: Re: [LLVMdev] [cfe-dev] bitwise ops on booleans > > >
2009 Dec 11
3
Correcting for missing data combinations
I can think of many brute-force ways to do this outside of R, but was wondering if there was a simple/elegant solution within R instead. I have a table that looks something like the following: Factor1 Factor2 Value A 11/11/2009 5 A 11/12/2009 4 B 11/11/2009 7 B 11/13/2009 8 >From that I need to generate all permutations of Factor1 and Factor2 and force a 0 for any combination that doesn?t
2006 Feb 21
5
No Log
I''m running an app under Apache/FastCGI and am trying to look at any log output. However no output to any of the logs is being done by the app! I have the app set to development mode. I deleted all of the log files in the log directory and no new logs are being created (I assume that the app will create the logs as required). What''s going on here? Is there some sort of
2006 Mar 14
5
How to display different images using ajax?
Hi! On my page i display one full size image and a list of thumbnails. I''d like to change the full size image with a full size version of a thumbnail, after clicking on one of them. How to write controller action, so it would update the image without reloading the whole page? It''s easy with text, but how to reload an image? -- Posted via http://www.ruby-forum.com/.
2011 Feb 28
1
Regression with many independent variables
Hi, I am trying use lm() on some data, the code works fine but I would like to use a more efficient way to do this. The data looks like this (the data is very sparse with a few 1s, -1s and the rest 0s): > head(adj0708) MARGIN Poss P235 P247 P703 P218 P430 P489 P83 P307 P337.... 1 64.28571 29 0 0 0 0 0 0 0 0 0 0 0 0 0 2 -100.00000 6 0 0