<<2010-03-09 2010-03-11>>
    Mar 10 00:04
    flexd joined #datamapper
    Mar 10 00:14
    benschwarz joined #datamapper
    Mar 10 00:22
    flexd joined #datamapper
    path[l] joined #datamapper
    Mar 10 00:27
    hipe joined #datamapper
    pietia joined #datamapper
    Mar 10 00:36
    RichGuk joined #datamapper
    Mar 10 00:42
    mkristian joined #datamapper
    sickill joined #datamapper
    Mar 10 00:49
    rsim joined #datamapper
    mkristian1 joined #datamapper
    mkristian1 left #datamapper
    Mar 10 01:03
    irjudson joined #datamapper
    Mar 10 01:11
    irjudson joined #datamapper
    irjudson joined #datamapper
    mkristian joined #datamapper
    Mar 10 01:16
    irjudson joined #datamapper
    RichGuk joined #datamapper
    Mar 10 01:23
    mkristian left #datamapper
    Mar 10 01:42
    Fullmoon joined #datamapper
    flexd joined #datamapper
    splattael joined #datamapper
    Mar 10 01:54
    RichGuk joined #datamapper
    flexd joined #datamapper
    Mar 10 02:09
    botanicus joined #datamapper
    slaskis joined #datamapper
    slaskis
    is there a blob type in datamapper?
    it doesn't say anything about it in http://datamapper.org/docs/properties
    should i use Object for anything binary?
    Mar 10 02:39
    benschwarz joined #datamapper
    Mar 10 02:51
    ashley_moran joined #datamapper
    Tass`
    slaskis, nah, string
    slaskis, or Text
    Mar 10 02:56
    slaskis
    what i want to store is a png
    Tass`
    slaskis, what's a png in ruby?
    slaskis
    Tass`: hah, since you ask i'm assuming a string? :P
    Tass`
    slaskis, yep. ;>
    slaskis, so store it as a Text
    lazy loaded.
    slaskis
    cool, didn't know that. i just remember using blob types in mysql when i was still writing php :P
    Tass`: thanks
    Tass`
    slaskis, well, probably there is Blob, but I'd use Text.
    slaskis, and are you sure a MongoMapper wouldn't do better? ;-)
    Mar 10 03:02
    slaskis
    Tass`, a MongoMapper? I was going to use s3 first for storage, but since it's so little i was hoping to avoid setting that stuff up and store it in the db instead
    Tass`
    slaskis, NoSQL
    notheory
    Mongo db is a type of non-relational store
    bah stupid reconnects
    Mar 10 03:09
    ludicco joined #datamapper
    slaskis
    yeah, nosql would fit much better
    Mar 10 03:15
    Tass`
    snusnu1, *ping* about git pull :-)
    slaskis
    it doesn't want to save the image...and i'm not sure if it's the terminal or if it's actually an error in the query but the update looks like this: ~ (0.002447) UPDATE "logos" SET "image" = '?PNG
    ' WHERE "id" = 3
    jeremyevans joined #datamapper
    Tass`
    slaskis, just get it and check the size of the image... :-)
    Mar 10 03:23
    slaskis
    hmm, checking the db with Base shows that it's there, but Logo.get() does not return anything...
    Tass`
    slaskis, .get.size - might be a bit too much
    anyway, got me a script to reproduce?
    slaskis
    Tass`: sure, just a minute
    Mar 10 03:33
    slaskis
    the puts shows a realistic size, while the second one shows 4 as size
    postmodern joined #datamapper
    Tass`
    slaskis, lemme install some gems... (killed my OS last week)
    slaskis
    sure
    hassox joined #datamapper
    slaskis
    i'm running dm 0.10.2 btw
    Mar 10 03:45
    Tass`
    slaskis, installed git version via rip ,-)
    slaskis
    Tass`: cool, i tried rip a while ago but it was very unstable on my machine, is it better than rubygems?
    Tass`
    slaskis, it's just different. rip is for git repos
    slaskis
    ah, right
    now that's brilliant :)
    Tass`
    gotta go eating... no idea :-/
    Mar 10 03:50
    slaskis
    too bad, thanks for checking though
    Mar 10 03:59
    slaskis
    Tass`: if you're interested still, base64 encoding/decoding it got it working
    g0bl1n joined #datamapper
    g0bl1n
    hi, can someone using do_postgres 0.10.1 on OSX please tell me if it runs fine ?
    I keep have this problem: dyld: lazy symbol binding failed: Symbol not found: _PQsetdbLogin
    the gem installs fine, but when using it to connect do a postgres server (local or remote) it crashes
    Mar 10 04:05
    g0bl1n
    datamapper 0.10.2 and do_postgres 0.10.1
    namelessjon
    g0bl1n: I'm pretty sure dbussink develops on a mac.
    slaskis
    g0bl1n: i used postgres the other week with datamapper without any problems
    g0bl1n
    namelessjon: ty, I have it working on all my linux boxes, but not on my mac... It complies fine, no problem, but when using it, crashes on login
    namelessjon: I am using it agains EnterpriseDB postgres package. Can that be it ?
    slaskis
    g0bl1n: i used postgres 8.4.2 compiled from source using homebrew on osx 10.6.2 if that helps...
    g0bl1n
    namelessjon: going for that right now ;) ty
    Mar 10 04:10
    g0bl1n
    ty
    namelessjon
    g0bl1n: It _could_ be, yeah. I'm only guessing, I've never used a mac
    g0bl1n
    namelessjon: macs are nice for desktop, but for development my opinion is: debian + gnome rocks !
    * namelessjon
    runs archlinux
    g0bl1n
    :)
    namelessjon: just a guess, did you go to arch after gentoo ? It seems to be a behavior pattern :)
    Mar 10 04:15
    namelessjon
    g0bl1n: Nah, after flipping between ubuntu and fedora a few times.
    * g0bl1n
    been flipping too but always comes home (debian)
    Mar 10 04:23
    irjudson joined #datamapper
    botanicu_ joined #datamapper
    irjudson1 joined #datamapper
    Mar 10 04:44
    irjudson joined #datamapper
    Mar 10 05:03
    g0bl1n
    namelessjon: oh well... homebrew rocks once again. Dumped the EnterpriseDB package, installed postgres via Homebrew and.. works! TY!
    Mar 10 05:09
    namelessjon
    g0bl1n: Glad you got things sorted.
    pdelgallego joined #datamapper
    g0bl1n
    namelessjon: ;-)
    Mar 10 05:24
    slaskis joined #datamapper
    Mar 10 05:50
    solnic joined #datamapper
    irjudson joined #datamapper
    Mar 10 06:03
    path[l] joined #datamapper
    Mar 10 06:16
    greeneggandham joined #datamapper
    greeneggandham joined #datamapper
    irjudson joined #datamapper
    path[l] joined #datamapper
    Mar 10 06:23
    irjudson joined #datamapper
    Mar 10 06:42
    adamaig joined #datamapper
    Mar 10 06:56
    sickill joined #datamapper
    sickill
    snusnu1: Do you have an idea how can I get serializing DM models (ie to_json) to work in Rails3? I see there is "Think about integrating dm-serializer" in dm-rails readme :)
    Mar 10 07:13
    dfd joined #datamapper
    Mar 10 07:25
    _pol joined #datamapper
    Booster joined #datamapper
    altrux joined #datamapper
    Mar 10 07:43
    stepheneb joined #datamapper
    Mar 10 07:49
    afrench joined #datamapper
    afrench joined #datamapper
    rsim joined #datamapper
    Mar 10 07:56
    pdelgallego joined #datamapper
    Mar 10 08:14
    solnic joined #datamapper
    Mar 10 08:44
    dkubb joined #datamapper
    Mar 10 08:53
    adamaig_ joined #datamapper
    botanicus joined #datamapper
    jdomg joined #datamapper
    Mar 10 09:02
    stepheneb joined #datamapper
    Mar 10 09:09
    Tass`
    namelessjon, soooo may I poke you to push? ;-)
    snusnu joined #datamapper
    snusnu joined #datamapper
    Mar 10 09:25
    adamaig joined #datamapper
    Mar 10 09:53
    botanicus joined #datamapper
    Booster joined #datamapper
    Mar 10 10:12
    path[l] joined #datamapper
    path[l] joined #datamapper
    Mar 10 10:19
    hipe joined #datamapper
    dkubb
    good morning from Salt Lake City (or just outside)
    anyone else attending mwrc?
    candeller joined #datamapper
    Mar 10 10:35
    hipe joined #datamapper
    Mar 10 10:41
    dkubb
    snusnu: :)
    snusnu
    hey dkubb :)
    dkubb
    snusnu: probably nothing, but it's weird that so much of the gemspec changed
    snusnu
    dkubb: whitespace jeweler formatting i believe?
    dkubb: i was surprised too, but iirc i blamed it on that without further looking
    dkubb
    yeah, I probably won't worry about it, just curious why
    snusnu
    dkubb: anyway, i need to test it again with 0.9.11 later on today, but last time i checked it worked
    dkubb
    snusnu: dm-core 0.9.11 ?
    Mar 10 10:46
    dkubb
    snusnu: or bundler?
    snusnu
    bundler
    dkubb
    heh
    * dkubb
    has not had any coffee yet
    snusnu
    dm-core-0.9.11 has no more space in my brain :P
    dkubb
    snusnu: the whitespace diff is probably due to the rubygems change
    snusnu
    me neither and it's already 7pm damnit … (coffee machine broke)
    dkubb
    snusnu: you know, whenever you want to push your AS branch into the mainline go for it. we just have to make sure the specs make it in before the next dm-core 0.10.3 release, which won't be for a few weeks yet
    snusnu
    dkubb: ok good to know, and actually i wanted to work on it for quite some time already … i got overwhelmed with lots of work issues lately tho
    dkubb: thing's cooled down a bit already tho
    dkubb
    snusnu: i'd much rather get people running it now, and deal with the problems sooner than to wait until just before the release
    snusnu: yeah, believe me I understand. I always have trouble balancing my time
    d-snp
    time balancing :(
    snusnu
    dkubb: yeah that's how it goes … but you're right, better letting people hit bugs now, than closer to the release
    Mar 10 10:51
    d-snp
    I'll be using datamapper in a project that runs at ~10k concurrent users probably :)
    snusnu
    dkubb: i will run all specs later on today and if everything goes right i'll push it to master (or next first?)
    dkubb
    d-snp: awesome
    kstephens joined #datamapper
    dkubb
    d-snp: I've heard of some high volume apps using DM. what's yours going to be?
    d-snp
    though I kind of only abuse it for its easy constructor :|
    dkubb
    snusnu: master is fine. I usually only push to next when I'm not finished something
    snusnu
    dkubb: heh, that was my reasoning for next, it's probably not yet finished .. then again, it should be quite good already, will push to master once specs ran
    dkubb
    snusnu: well, DM itself is not yet finished.. but my definition would be that there are things I know aren't done that will affect the users. not having moved over all the specs probably won't affect the users
    d-snp
    dkubb: well I can't really go into specifics, since I'm under NDA, but it's for a large organisation that deploys to a popular community site in the netherlands :P
    dkubb
    d-snp: no problem, I understand
    I heard a few months ago that Nestle made a Facebook app using DM, and it was in the *top 10* most used facebook apps for a while
    d-snp
    cool
    that's good to know, this project is sort of like a facebook app :)
    datka joined #datamapper
    d-snp
    atm I'm using some kind of ugly dm/activerecord hybrid solution
    Mar 10 10:56
    d-snp
    getting native extensions installed is sort of a big deal, so I can't really use mysql_do unless I got a good reason
    adamaig joined #datamapper
    d-snp
    but perhaps when I figure this thing out it'll turn out using datamapper for the whole thing is the best solution and I'll just request mysql_do to be installed
    datka
    Hey guys. I have an application where we're using 3 different databases, each using their own module, and each specifying their own repository. Is that the best setup for something like this, or are we doing something wrong.?
    Mar 10 11:01
    sickill joined #datamapper
    em-dash joined #datamapper
    Mar 10 11:06
    qhoxie joined #datamapper
    stepheneb joined #datamapper
    RichGuk joined #datamapper
    Mar 10 11:27
    dkubb|away joined #datamapper
    stepheneb joined #datamapper
    Mar 10 11:41
    snusnu joined #datamapper
    zodiak joined #datamapper
    Mar 10 11:46
    pietia joined #datamapper
    Mar 10 11:55
    datka` joined #datamapper
    Mar 10 12:02
    path[l] joined #datamapper
    Mar 10 12:15
    ribrdb joined #datamapper
    Mar 10 12:34
    myabc joined #datamapper
    benburkert joined #datamapper
    badcarl joined #datamapper
    datka` joined #datamapper
    Mar 10 12:47
    rsim joined #datamapper
    Mar 10 13:01
    ludicco joined #datamapper
    adamaig_ joined #datamapper
    Mar 10 13:12
    pdelgallego joined #datamapper
    Mar 10 13:22
    _pol joined #datamapper
    Mar 10 13:28
    fpauser1 joined #datamapper
    _pol joined #datamapper
    dkubb joined #datamapper
    Mar 10 13:33
    adamaig joined #datamapper
    dkubb joined #datamapper
    benschwarz joined #datamapper
    Mar 10 13:42
    adamaig_ joined #datamapper
    benburkert joined #datamapper
    Mar 10 13:49
    DireFog_ joined #datamapper
    Mar 10 13:57
    robgleeson joined #datamapper
    hipe joined #datamapper
    Mar 10 14:05
    stepheneb joined #datamapper
    Mar 10 14:15
    siplux joined #datamapper
    slaskis_ joined #datamapper
    siplux joined #datamapper
    Mar 10 14:24
    datka` joined #datamapper
    Mar 10 14:38
    benburkert joined #datamapper
    Mar 10 15:16
    postmodern joined #datamapper
    Mar 10 15:40
    Tass`
    datka`, sounds halfway good ;-)
    Mar 10 15:46
    datka`
    is there a half I'm missing?
    Tass`
    datka`, the half I'm missing :D
    datka`
    I think we made a mistake by trying to inherit from a base class that pulled in Resource and set the default rrepository, but now when I try to unravel it, everything is breaking
    Tass`
    uh - don't do inheritance unless STI
    modules are better
    datka`
    I've been struggling to find a good testing scenario with DataMapper, Test::Unit, and multiple repositories
    badcarl joined #datamapper
    Tass`
    factory_girl
    datka`
    ok, better than sweatshop?
    Tass`
    yep.
    datka`
    I used factory_girl recently on my last project
    good to know
    bit patched
    datka`
    checking it out, thanks
    Mar 10 15:52
    datka`
    do you use auto_migrate to create your schema?