similar to: capturing keyboard events

Displaying 20 results from an estimated 10000 matches similar to: "capturing keyboard events"

2006 Jul 22
5
Prototype error. replace content inside a <TR> in IE
Does anyone know of a fix for the issue with prototype and replacing table rows in IE? render :update do |page| page.replace "row_#{params[:id]}", :partial => ''wireless_request/wrequest'', :locals => {:wrequest => @wrequest} end This ends up making IE throw an "rjs error [object error]" Searching around I found a couple of posts about
2007 May 22
4
Process safe log files with multiple mongrels
I have a rails application that runs on multiple mongrels and I would like to make the log files non-interlacing. Are there any logging modifications/other loggers out there that I could use to create process safe logging? Thank you, Matt Margolis
2006 Jun 23
10
Don''t un-admin the last administrator
I have a User class with a field called admin which is a boolean that determines if the user is or is not an administrator. I want to make it impossible for the last administrator for an account to be removed from the system. I need to protect against this both when deleting a user and when editing a user as you can revoke a user''s administrator privileges via a form. User
2006 Jun 19
6
SQL Search Qustion
I am working on writing a search method where a user can type a string of words and I return all the objects that have fields that match all of the words in one or a combination of fields. Person first_name last_name Pet name Person has_many :pets I want to write some SQL so that if I search for "Tony AAAA" I will get all the people who have Tony and AAA either in their
2006 Jun 14
3
Which Payment Gateway?
I am working on an application where users sign up for one of several plans. Each plan has a different monthly fee. There is no long term contract but I would like to bill the users automatically each month unless service is canceled. What credit card gateways would you recommend for use with a rails application? My criteria in order of importance are 1. API that will let me work in
2006 Jun 26
8
[Semi OT] BlindDown and a floated div
I am using the drop shadow technique described at http://www.1976design.com/blog/archive/2003/11/14/shadows/ to give several of my divs drop shadows. That part works fine. What doesn''t work so well is when I try to BlindDown a div in Firefox and it ends up ignoring the content below it and just overlapping it. In IE this problem does not occur. In Firefox the overlapping does
2006 Jul 05
10
Scalable alternative to #find_all
Is there any scalable alternative to iterating all the records of a certain model? #find_all seems to load everything into memory. With 500.000 records it will be a swap storm. Pedro.
2006 Jul 12
2
Freenx full screen mode problem fixed in 0.5.x?
In early June, there was an update from freenx 0.4.x to 0.5.x in centosplus. It broke full screen mode for Linux clients. I am aware of the ctrl-alt-f workaround. But I have quite a few users at branch offices who depend on NX and with employee turnover and all, it has been a source of confusion for us. Has anyone come up with a fix so that fullscreen works without crtl-alt-f? I've
2009 Mar 18
2
multiple barplot
Dear all, I want to put 9 barplots side by side. My code below only print 5 names from 9 names I gave. Problem: how to print all of those 9 names? I use cex=0.8 but did not work, it gave me error message. d<-matrix(rpois(45,3),5,9) barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB","ONEMKR",
1998 Nov 20
4
R-0.63 for MsWindows
New files (at CRAN/binaries/ms-windows/win-32-devel ; available at least at Vienna; in a couple of days on every mirrors) - rw0630b.zip: binary distribution; it should run under Win3.1/Win32, Win95, Win98 and WinNT; - rw0630h.zip: `stardard help' files (the ones you see after help(topic) or ?topic); it also includes the help examples (the one needed by
1998 Nov 20
4
R-0.63 for MsWindows
New files (at CRAN/binaries/ms-windows/win-32-devel ; available at least at Vienna; in a couple of days on every mirrors) - rw0630b.zip: binary distribution; it should run under Win3.1/Win32, Win95, Win98 and WinNT; - rw0630h.zip: `stardard help' files (the ones you see after help(topic) or ?topic); it also includes the help examples (the one needed by
2005 Jun 01
0
Issue with Not Capturing All Key Presses
In our IVR we have a user enter a 6 digit number and information if returned. Our problem is that no all of the digits that the user presses are being recevied correctly. Its not as if the first digits are being cut off or the last, its just some digits aren't coming through. Our setup is that we have an IAX channel coming in from VoicePulse going to our Asterisk box via the T1 coming in to
2006 Jul 17
5
Keeping attributes of two models in sync
Hi, I have a Product and a corresponding Keyword (1:1 via belongs_to and has_one). I want to ensure, that two attributes (:name) of the two models alway stay in sync. What''s the easiest way to accomplish that? I did play around with before_/after_save hooks and with AR::Observers but in the end I''d always get infinite recursion... Thanks, Timo
2006 Jul 31
3
date_select for valid days only. No Feb 30
I am looking for some advice on how to make a date select display only valid days of the year. The standard date helper allows for you to choose 31 days for every month of the year. Since not all months have 31 days this can lead to invalid date entries for scheduling. I am thinking that an approach where I have a drop down for month and then use AJAX or normal client side javascript to
2006 Jul 02
2
:include breaks has_many :order
It would appear that using :include on a model that has_many with an :order on another model makes it so that the order is ignored. Is this supposed to happen? Strikes me as odd behavior. For example class Farmer < ActiveRecord::Base has_many :cows, :order => ''position'' end class Cow < ActiveRecord::Base acts_as_list :scope => :farmer end If I do
2010 Jan 25
3
question on sqldf syntax
trying to structure sql to merge two datasets. structure follows: dbs.possible.combos (all possible combinations of dates and places) Date Place 1/1/10 N-01 1/1/10 S-02 1/2/10 N-01 1/2/10 S-02 etc... dbs.aggregate (the raw data aggregated by date and location) Date Place Days 1/1/10 N-01 6 1/1/10 S-02 10 1/2/10 S-02 5 Trying to merge so I look-up the values for each possible combo dbs.final
2007 Feb 03
1
How can I bypass caching for some users
I have action caching setup for several actions of an application but I want the caching to only run for my administrators and have all other users see non-cached pages. Is there a way to do this? Perhaps something like passing a block to caches_action or setting some sort of flag in my authentication method? If this is not possible with action or fragment caching does anyone know of a
2008 Apr 08
2
Metropolis acceptance rates
Is there a way to recover Metropolis-step acceptance rates AFTER completing posterior draws? The immediate application is in the probit.bayes and logit.bayes models used by Zelig... which I believe is merely calling MCMCpack. So one strategy, to which I am fixing to resort, is to call, say, MCMClogit with verbose set to mcmc (or mcmc divided by an integer) and then look at my screen.
2012 Jan 28
2
For Loop Error
Hi Again, I am writing a 'for loop' to create a matrix of randomly sampled colors. I've written this loop in matlab and it works fine. I then tried to do it in R and apparently there is something wrong with my syntax b/c every time I run the script, the for loop "blows up" at a different point in the loop. As you can see, I ask R to clear my workspace each time, so there
2006 Jul 02
3
2 before_filters, only want one to render something
I have two before_filters for a few of my controllers. They are running my own methods authorize and admin_authorize. authorize is called on just about every action to make sure that a user is logged in. admin_authorize is called on about 80% of the actions and is used to make sure that a user is an administrator. If a user tries to access an admin_authorize protected action without being