Jan 07 00:01
Booster joined #datamapper
Fullmoon joined #datamapper
Jan 07 00:16
BrianTheCoder_ joined #datamapper
hey guys, any ideas why before :create doesn't do any good in 0.9.9?
Jan 07 00:22
StyleWarz: it should still work. What problem are you seeing?
dkubb: it doesn't get called
dkubb: before :create do <somefunction> end
or should i before :create, :myfunction ?
StyleWarz: dm-core barely changed between this and the last release.. you can check it out if you want. I think there was 2 or maybe 3 tiny commits
Jan 07 00:27
i need something like before :validation
since i set calculate some values
or should i skip validation for those fields?
StyleWarz: it's up to you. are the values only calculated if something isn't provided?
they are always calculated
dkubb: therefore there would usually be no need for a validation, i was just to careful when i wrote the model ;)
Jan 07 00:32
s/careful/overprotective/
StyleWarz: ahh yeah. I would probably set auto_validation to false, and think about setting the writer so it is private/protected too
d2dchat joined #datamapper
StyleWarz: if you are calculating the values you can likely use the :default option too if you wanted
dbussink joined #datamapper
naah, i am just doing some random login/password data
StyleWarz: ahh I see. stuff like salting, etc
dkubb: i am writing a very small radius user-manager for a hotel, therefore i just generate a MD5 of the full visitorname and get myself some portions of the md5-hash for user and password genereation ;)
StyleWarz: if that's the case you should check out the Bcrypt column for storing password info. Bcrypt is a far nicer algo than doing the standard salt/hash stuff
dkubb: freeradius still needs to be able to "dehash" the field, best way atm is plain password
StyleWarz: oh I see.. you're integrating with an external radius system. nevermind then :)
dkubb: altho it's not critical data, it's just for wifi access
data will be purged when the customer leaves
Jan 07 00:53
i have been out of the loop working on a project for a bit, anyone know if datamapper and sphinx can play together yet and use MVAs? i checked out dm-sphinx-adapter but it doesn't support MVAs and thinking-sphinx still doesn't support datamapper i don't think
m7d: what does MVA stand for?
m7d: sorry, I'm not sure about that
dkubb: no worries, thanks
m7d: if you find out please let me know. I am curious about the status of the sphinx adapter. there doesn't seem to be a ton of people using it compared to the ferret adapter, but you always hear how sphinx is so good
dkubb: sure, i will report back
Jan 07 00:58
has almost no experience with text indexers in production
I just play around with them, so I really don't know what's better than the other, and in what cases
dkubb: i have used them all, literally, and i like sphinx the best, but it has forcedrawn me into active record use, which i do not prefer
Jan 07 01:07
tmak85 joined #datamapper
MitkOK joined #datamapper
Jan 07 01:29
Jan 07 01:38
dkubb: remember the utf8 issues i was having before? i just loaded dm-serializer and things work. will just play around and narrow it down now...
but don't quote me on that!!
BrianTheCoder joined #datamapper
inspired joined #datamapper
Jan 07 01:51
Jan 07 02:06
pietia joined #datamapper
Jan 07 02:16
hipertracker joined #datamapper
quik__ joined #datamapper
Jan 07 02:27
i have a strange data-mapper issue
i have a couple of convenience modules which when included add various properties to a model
when including multiple modules
it seems as if the second one fails to register it's properties
i put a simple puts inside of one of the self.included methods
so it seems to be something about how DataMapper loads in models
Jan 07 02:39
Fullmoon joined #datamapper
Jan 07 03:02
Jan 07 03:10
splattael joined #datamapper
Jan 07 03:19
mikex2 joined #datamapper
Jan 07 03:33
gustin joined #datamapper
RichGuk joined #datamapper
Jan 07 03:38
vaclavt joined #datamapper
Jan 07 04:23
copawaves joined #datamapper
Jan 07 04:29
wycats_ joined #datamapper
zond_hme0 joined #datamapper
gcampbell joined #datamapper
hassox joined #datamapper
Jan 07 04:40
Fullmoon joined #datamapper
Jan 07 04:45
smoofles joined #datamapper
vladsharp joined #datamapper
Jan 07 05:45
GitHub164 joined #datamapper
do: Alex Coles master SHA1-0e832cf
Remove JAR files from Manifests for multi-platform Gems
GitHub164 left #datamapper
Jan 07 05:57
tizianobis joined #datamapper