similar to: rails activerecord

Displaying 20 results from an estimated 30000 matches similar to: "rails activerecord"

2007 Nov 13
2
Query an Access database based on a date attribute (Tudor Bodea)
Tudor Bodea asked: >In this context, I try to get all the records for which market is atl-bos, >competitor is delta and dd is 2007-11-20 (first record above). To do this I used >># channel <- odbcConnectAccess("test.mdb") >>res <- sqlQuery(channel, "select * from test_table where market = 'atl-bos' >>and competitor = 'delta' and dd =
2007 Nov 12
2
Query an Access database based on a date attribute
Dear useRs, I would like to query an Access database through R based on a date attribute but, unfortunately, I fail to do so. For example, the table test_table of the test.mdb looks like: ID cd market competitor dd price 1 1 2007-11-20 atl-bos delta 2007-11-20 210 2 2 2007-11-20 atl-bos delta 2007-11-21 190 3 3 2007-11-20 atl-bos delta 2007-11-22
2006 Jun 15
4
help with table partition
Hi, I have a test_table where the dim is 62220 by 73 (row by col) I would like to partition the rows into 170 equal parts (170 tables where each is of dim 366 by 73), and rearrange them horizontally. The source codes I have: for (i in 1:170) { c = cbind(c,test_table[(367*i+1):(367*(i+1)),2:73]); } Unfortunately, using for loop and cbind for a table of this size
2007 Nov 13
1
R: Query an Access database based on a date attribute
It seems that Access needs that you surround the dates with a # symbol. You probably need something like. res <- sqlQuery(channel, "select * from test_table where market = 'atl-bos' and competitor = 'delta' and dd = #2007-11-20#") Hope this helps, Stefano -----Messaggio originale----- Da: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]Per
2013 Aug 09
1
a fast table() for the 1D case
Hi, table1D() below can be up to 60x faster than base::table() for the 1D case. Here are the detailed speedups compared to base::table(). o With a logical vector of length 5M: 11x faster (or more if 'useNA="always"') o With factor/integer/numeric/character of length 1M and 9 levels (or 9 distinct values for non-factors):
2013 Jan 31
4
[RFC][PATCH 2/2] Btrfs: implement unlocked dio write
This idea is from ext4. By this patch, we can make the dio write parallel, and improve the performance. We needn''t worry about the race between dio write and truncate, because the truncate need wait untill all the dio write end. And we also needn''t worry about the race between dio write and punch hole, because we have extent lock to protect our operation. I ran fio to test the
2007 Feb 05
2
application 'allway sync' evades sticky bit?!
Hi, am running: Redhat EL4.4 i386, Samba 3.0.23d from Sernet, ext3 fs Samba as PDC Someone's got the idea to have one big share with access managed by directory's sticky bit. This works perfectly well when normal XP or W2k clients work with their explorer. But: With 'allway sync', an app to synchronize for example between laptop and fileserver the program is somehow able to
2020 Nov 03
2
ID Mapping
> On 3 Nov 2020, at 19:24, Stefan Kania via samba <samba at lists.samba.org> wrote: > Am 03.11.20 um 05:38 schrieb O'Connor, Daniel via samba: >> Hi, >> I have a Samba 4.11.8 system running as an AD and a file server and I am wondering what sort of ID mapping is done in this situation. >> >> I have uidNumber on each user set to use UIDs in the 1000 range
2008 Jun 07
2
Rails integration tests without stories
I''m looking to drive the development of a rails app that does nothing but serve a JSON API. All of the models are well tested elsewhere, so I needn''t worry about that. My only immediate goal is to be able to fire off requests to a path and check the returned JSON. I''ve tried a number of methods for this today, without being particularly enthused about any of them. I
2008 Sep 08
1
[PATCH] [VTD] Enable pass-through translation for Dom0
If pass-through field in extended capability register is set, set pass-through translation type for Dom0, that means DMA requests with Untranslated addresses are processed as pass-through in Dom0, needn''t translate DMA requests through a multi-level page-table. Signed-off-by: Anthony Xu <anthony.xu@intel.com> Signed-off-by: Weidong Han <weidong.han@intel.com>
2006 Jan 07
11
Beware of Mozilla + Rails
Hi all, In re-doing the very first Hello World in the Agile Rails WEb Dev book, I continuously got blank pages, no matter what URL I put in, except when I put http://localhost:3000/ After eliminating everything else, I switched from Mozilla to Konqueror, and the symptom went away. I tried clearing cache on Mozilla, but that didn''t bring it back. I copied and pasted the URL from
2016 Jan 19
2
Change user Password with smbpasswd
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I try to change a userpassword with smbpasswd. But I allway get an errormessage: - ----------- root at sambabuch-c1:~# smbpasswd -U EXAMPLE\\stefan -r `nslookup _ldap._tcp.dc._msdcs.example.net | awk '{print $2;exit;}'` Old SMB password: New SMB password: Retype new SMB password: machine 192.168.56.11 rejected the password change: Error
2003 Apr 05
1
asterisk And OPen h323
hi , im trying to install asterisk-oh323 but no matter what linux i use , i allway receibe and error 1 . right now i'm using linux redhat 7.3 and the las version of pwlib and openh323 i really need some help with this , the error i receibe is with cpp0 , with the file size . regards , victor medrano
2020 Nov 03
2
ID Mapping
On 03/11/2020 08:54, Stefan Kania via samba wrote: > > Am 03.11.20 um 05:38 schrieb O'Connor, Daniel via samba: >> Hi, >> I have a Samba 4.11.8 system running as an AD and a file server and I am wondering what sort of ID mapping is done in this situation. >> >> I have uidNumber on each user set to use UIDs in the 1000 range but I find that they end up in the
2006 Mar 30
13
need an Ruby on Rails IDE
Hello everybody, I''m a new member on Ruby on Rails. I''m friendly on using Microsoft Visual Studio (VS) IDE. The VS IDE supports for Intellisense coding (that mean it will automatically display a list of member variables or functions for a class, struct, union, or namespace; the names and types of parameters required by a function or attribute; and the complete declaration for
2006 Feb 13
4
about rails connection pool?
hi all, how to config or use rails connection pool, like jsp, tomcat connection pool. regards. -- Posted via http://www.ruby-forum.com/.
2006 Jun 15
0
log returns (was: Re: help with table partition)
Please use a descriptive subject and not tag onto a prior thread for new topics. Assuming the first row is time 1 and the second row is time 2 and so on try: diff(log(P)) On 6/15/06, Wong, Kim <kwong at nymex.com> wrote: > > Hi, thank you all for the help. > > The split function works very well. > > I have an additional question. If I have a matrix of prices (row = 30,
2006 May 04
11
Interesting ActiveRecord vs Hibernate article
For those haven''t seen it yet, Patrick Peak has an interesting article at the Server Side (www.theserverside.com) discussing the differences between the Hibernate (www.hibernate.org) peristence framework and ActiveRecord.  The article can be found here: http://www.theserverside.com/articles/article.tss?l=RailsHibernate .  Patrick Peak is the author of _Hibernate Quickly_ (Manning), which
2006 Feb 20
3
rails temporary table?
hi all any one know how to create a temporary table and fill it, like: #------------------------------------------------------------ create temporary table test1 select * from test; #------------------------------------------------------------ regards. -- Posted via http://www.ruby-forum.com/.
2005 Dec 27
4
How do you detect if ActiveRecord ''update'' fails?
So I''m updating multiple model objects in one go with something like this in my controller: => Photo.update(params[:photo].keys, params[:photo].values) When the update fails due to validation errors, how do I detect it? The Rails API says: "If the save fails under validations, the unsaved object is still returned." So I can''t simply do this: => if