similar to: SQL question

Displaying 20 results from an estimated 6000 matches similar to: "SQL question"

2012 Apr 12
6
beginning_of_month problem
Rails 2.3.2, Ruby 1.9.3 I want to get all records for one month from charges table. recs = Charge.where(["date >= ? and date < ?", t.beginning_of_month, t.next_month.beginning_of_month]) and this transforms into this query on PostgreSQL SELECT "charges".* FROM "charges" WHERE (date >= ''2012-03-31 22:00:00.000000'' and date <
2009 Mar 25
3
List of databases supported by Rails
Where can I obtain list of databases supported by Ruby on Rails? Thanks TheR -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe
2004 Dec 08
1
[LLVMdev] Compiling with Intel c++ 8.0
Chris, include/llvm/ADT/HashExtras.h I did some more testing on this topic: ICC complained that the last template was partially loaded and would be used to instantiate the template<> struct hash<const char *>. Rearranging the templates so that one for arbritraty pointers (inlined) comes first, works excellent for icc. E.g.: template <class T> struct hash<T *> { inline
2004 Dec 08
0
[LLVMdev] Compiling with Intel c++ 8.0
On Wed, 8 Dec 2004, [iso-8859-1] Bj�rn Wennberg wrote: > I am attempting to compile the llvm distribution with the Intel Compiler 8.0 > on linux and I have some minor patches I would like to apply. In our project > we compile and run the code both on win32, together with Morten Ofstad using > the MS compiler, and on linux using the intel compiler. Great! I'm going to leave the
2004 Dec 08
3
[LLVMdev] Compiling with Intel c++ 8.0
Hi, I am attempting to compile the llvm distribution with the Intel Compiler 8.0 on linux and I have some minor patches I would like to apply. In our project we compile and run the code both on win32, together with Morten Ofstad using the MS compiler, and on linux using the intel compiler. I have wrapped the extra code to make llvm compile for icc in #ifdef __INTEL_COMPILER #endif The patches
2004 Sep 20
3
montecarlo simulation
Hy! I would like to know how run a montecarlo simulation with R. Thank you!!!! Francesca Matalucci __________________________________________________________________ Accesso Internet Gratis per utenti Excite! Attivalo subito! http://www.excite.it/hitech/accesso Il Mio Excite. Personalizza la tua Home page Excite come vuoi tu! http://www.excite.it AAA/Relazioni. Sfoglia gli annunci e trova la
2006 Jun 28
8
How to obtain clients IP adress
Is it possible to obtain clients adress in ruby on rails? by TheR -- Posted via http://www.ruby-forum.com/.
2004 Oct 08
2
Delay packets by 50ms
Hi all, I am trying to solve a tiny problem that is trivial to solve using dummynet (FreeBSD). I just want to add a delay of 50ms to each outgoing packet from an interface. This is to simulate a large pool of multiple modem users so I also need to add b/w limits etc (which seems to be easy to do). From the mailing list I could fine 2 qdiscs that can simulate latency : "delay" &
2017 Jan 31
2
Logging LDAP Queries on Samba DC
Hello, I see that this question was asked back in 2011: https://lists.samba.org/archive/samba-technical/2011-January/075519.html Has the status of this changed? Is it now possible to log all LDAP queries sent to a Samba DC? This would be an extremely useful feature! Thanks, Andrew Martin
2006 Apr 26
0
[LLVMdev] LLVM Java front-end
Hello, I have just downloaded the source from CVS. Does exist a LLVM Java front-end? If yes, where can I find documentations about it? If no, is anyway somebody working on it? Where can I find the source code related? Thanks, Alessandro
2005 Jul 29
1
encrypting existing partitions/disks
Hello, Has anyone wrote a how-to or a guick guide on how to encrypt an existing partition/disk using gbde? I've tried to search in the net but i cudn't find any. Is it possible to just move the existing data on my disk, cleanup the disk and encrypt using gbde, attach to the system, then move back the data to the now encrypted disk. Thanks, - ronnel
2009 Jan 19
5
Really want to dump microsoft....but have to run Photoshop
I am a rank newb at this and I appologize, I would have dumped MS long ago but I am not any kind of a coder, so having to write scripts and such is out for me. I really want to dump everything microsoft.....but I have to be able to run Adobe Photoshop 7 and CS4......why do I keep PS7...because I can't get a lot of the plug-ins I use for any thing above 7 and a lot of the ones I can I have to
2009 Jul 02
2
constrained optimisation in R.
i want to estimate parameters with maximum likelihood method with contraints (contant numbers). for example sum(Ai)=0 and sum(Bi)=0 i have done it without the constraints but i realised that i have to use the contraints. Without constraints(just a part-not complete): skellamreg_LL=function(parameters,z,design) { n=length(z); mu=parameters[1]; H=parameters[2]; Apar=parameters[3:10];
2003 Nov 21
7
FORWARD:REJECT
I have a 3 nic setup with shorewall 1.4.8-1 running on redhat 9. My eth2 (dmz zone)has 7 secondary address attached to it. I can ping a machine in each subnet, dmz to net rules seem to be working fine on all machines.. I have my policy set as dmz to dmz accept. If I try to ping between subnets I get Nov 21 12:18:45 kbeewall kernel: Shorewall:FORWARD:REJECT:IN=eth2 OUT=eth2 SRC=172.17.0.2
2007 Sep 25
4
Grandstream GXP2020 / 2000
Hi, Has somebody experiences with the Grandstream GXP2020 / 2000 phones in a business graded installation (with really traffic on .... not 3 calls a day ;-) ) Of course with Asterisk PBX (1.4.1 or 1.4.11 or 1.4 in generall) Thanks! Kind Regards, Erik
2008 Jul 04
1
initialize a matrix
Dear R users, I'm trying to write a function which returns minimum,maximum,mean of a vector(power) I've done the following : VAR<-function(power,length){ for(i in tml:length)){ tvar[i]<-i pmean[i]<-mean(power[i:i+deltat]) pmin[i]<-min(power[i:i+deltat]) pmax[i]<-max(power[i:i+deltat]) varmax[i]<-100*(pmax[i]-pmean[i])/pmean[i]
2012 Feb 15
2
[LLVMdev] Performance problems with FORTRAN allocatable arrays
I've noticed that LLVM does a bad job of optimizing array indexing code for FORTRAN arrays declared using the ALLOCATABLE keyword. For example if you have something like the following: DOUBLE PRECISION,ALLOCATABLE,DIMENSION(:,:,:,:) :: QAV ... ALLOCATE( QAV( -2:IMAX+2,-2:JMAX+2,-2:KMAX+2,ND) ) ... DO L = 1, 5 DO K = K1, K2 DO J = J1, J2 DO I = I1, I2 II = I +
2009 Oct 15
4
Generating a stochastic matrix with a specified second dominant eigenvalue
Hi, Given a positive integer N, and a real number \lambda such that 0 < \lambda < 1, I would like to generate an N by N stochastic matrix (a matrix with all the rows summing to 1), such that it has the second largest eigenvalue equal to \lambda (Note: the dominant eigenvalue of a stochastic matrix is 1). I don't care what the other eigenvalues are. The second eigenvalue is
2010 Jun 03
3
General-purpose GPU computing in statistics (using R)
Hi All, I have been reading about general purpose GPU (graphical processing units) computing for computational statistics. I know very little about this, but I read that GPUs currently cannot handle double-precision floating points and also that they are not necessarily IEEE compliant. However, I am not sure what the practical impact of this limitation is likely to be on computational
2008 Jun 04
2
How to change ActiveRecord date format conversion
I am using custom control for entering a date on the form. My date format is dd.mm.yyyy and this is also what the control returns to program. But ActiveRecord expects date to be formated as mm.dd.yyyy and thus saves wrong value to database. I have implemented method which corrects date fields prior to save to database, but it is clumsy. There must be a solution to configure ActiveRecord so it