IRC log for 2008-01-14

1 view
Skip to first unread message

David Leal

unread,
Jan 14, 2008, 7:05:01 PM1/14/08
to datam...@googlegroups.com
--- Log opened Mon Jan 14 00:00:22 2008
03:55 < pkout> Hello everybody
03:55 < pkout> Does anyone have experience with installing datamapper in Windows XP?
03:55 < pkout> I can't get it running.
04:26 < tawker> pkout: what do you need it for
04:26 < tawker> you might be beter off running things in a virtual
09:24 < juozasg> hello everyone. Is there a way to see what SQL datamapper is making while the program is running?
09:39 < nagash> pass the log_stream in config
09:39 < nagash> ie. :log_stream => STDOUT
09:39 < nagash> and :log_level => 0
14:13 < tpitale> have we come up with a way to separate conditions with an OR, as opposed to an AND when querying?
14:13 < tpitale> does anyone have a good page to read for starting to learn to write specs?
17:09 < tawker> /nickserv info heimidal
17:43 < _foca> jnunemaker: check if sudo gem install do_mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config works?
17:43 < jnunemaker> _foca: just tried that
17:44 < jnunemaker> and got the following: http://pastie.caboo.se/private/1ufp9p6i3diiyogxz7tmg
17:44 < jnunemaker> even more errors :)
17:44 < jnunemaker> i've tried including the lib and include mysql dirs as well
17:44 < _foca> good :)
17:44 < _foca> :P
17:45 < _foca> do you have the mysql source headers installed?
17:45 < jnunemaker> no idea
17:46 < jnunemaker> actually i'm switching between two remote servers
17:46 < jnunemaker> one ubuntu and one centos
17:47 < jnunemaker> i originally pasted centos and then just tried it on ubuntu and pasted that here, this is what i get trying what you suggested on centos: http://pastie.caboo.se/private/d8w6m9qhl3hw1eopsgxqw
17:47 < jnunemaker> which is pretty much the same
17:49 < jnunemaker> i've tried pretty much everything that makes sense from the bits i can find in the google groups regarding installation issues and what i can find on google and nothing seems to work for either distro
17:49 < _foca> very weird
17:50 < jnunemaker> yeah, frustrating, never had problems like this, i really want to use datamapper but just can't get it going
17:50 < _foca> http://groups.google.com/group/datamapper/browse_thread/thread/d3e5ec6fd56f58d7
17:50 < _foca> according to one of the guys there it should be fixed by installing the dev headers
17:52 < jnunemaker> i got it installed on leopard just fine
17:52 < _foca> I suppose it's yum install mysql-dev (I don't know the exact syntax of yum though .... haven't used a red hat based distro since the mandrake / red hat 8 days)
17:52 < jnunemaker> which is what that guy seemed to have problems with
17:53 < _foca> yeah, same here :)
17:56 < _foca> never tried installing on linux though, I'm firing up parallels to try it :)
18:05 < nike234> what does the first param in this example mean: Person.all(:name.like => 'S%', :id => [1, 2, 3, 4, 5])
18:05 < nike234> S%
18:05 < _foca> that it should start with S and continue with whatever
18:06 < _foca> % is the wildcard in the sql "LIKE" statement
18:06 < _foca> it's like searching for S.* with a regexp
18:07 < nike234> i see thanks
19:17 < jnunemaker> _foca: i was off to lunch, you find anything out installing on linux, if not that is fine, just curious
19:56 < Gswain> anything equivelant to ActiveRecord::Observer in DM?
20:01 < juozasgaigalas> Hello, is there a way to set up a database.log for datamapper to see every SQL statement that happens?
22:16 < tpitale> TheMystic: you in here?
22:16 < tpitale> anyone have a pastie for using indexes?
22:18 < tpitale> nm, it's in the docs
22:19 < tpitale> I have one query that is extremely slow that I am unable to figure out why....
22:19 < tpitale> I have a large table and its class, ItemsSold
22:20 < tpitale> this table has an index on the field customer_id
22:20 < tpitale> if I do a query from psql to find all the itemssold to a particular customer...it returns quick as a whistle
22:21 < tpitale> if I do the same with merb -i....ItemsSold.all(:customer_id.eql => '01234') it takes 20 seconds or more
22:26 < tpitale> or, a better example would be find_by_sql performance vs. all performance
22:36 < tpitale> who's the resident spec wizard?
22:38 < tpitale> Chrononaut: your thoughts on my performance issues?
22:38 < tpitale> hassox: how about you?
22:43 < tpitale> guess I'll be back on to see themystic around 8pm EST
22:43 < tpitale> pe@ce
23:05 < tolbrino> Hi, anyone using merb with datamapper? I can't get model errors to appear in my html form.
--- Log closed Tue Jan 15 00:00:16 2008
Reply all
Reply to author
Forward
0 new messages