#perl - Fri 20 Apr 2007 between 01:30 and 01:52



oferthanks cfedde, f00li5h
f00li5htybalt89: *grunt*
ArmOrAttAki didn't mean to sound rude
yubimusubitybalt89, well, my $x = $y++; is not the same as $y++; my $x = $y;
ArmOrAttAki just don't know the syntax off the top of my head
yubimusubi(that's a correct analogy, right?)
ArmOrAttAki would think stat the files, subtract
or go get a module.
tybalt89yubimusubi: Why are you changing the subject?
yubimusubioh, my bad I was scrolled way up >.>
f00li5hyubimusubi: your analogy seems good, in that it's vaguely related to scoping, and not really worth considering (much in the same way mine was)
yubimusubiah, right
jimQtPlatypus: if you're running a db app, using the db to do date/time calcs is perfectly valid (seeing as how the database might store dates as part of the app)
it's not cheating at all
dondelelcaro(assuming the db handles dates correctly)
jimI would assume pg does, but he says he would use mysql
QtPlatypusMysql does for the most part.
jimI'm not a mysql user myself, so I don't know if there are problems and what they would be
QtPlatypusMostly that it defaults invalid dates into 0000-00-00
f00li5hjim: the main problem is that date mainipulation in mysql tends to obfuscate your queries
silithat's what abstraction is for!
jimbut you see what I'm getting at, if you're storing dates as part of your app, it makes a lot of sense to let the db do calcs on at least those dates
what sili said
Tinchohi there. I'm having a problem which I don't understand with mail::box. I cannot find a way to extract addresses from a header with the correct decoding. Anybody can give me a clue?
silieh?
f00li5hTincho: can you ask Mail::Box what character set the message is in?
sili: \0/
jimsili: what you said!
silisounds like you'd need to ask for the encoding header, whatever it is, and decode other data accordingly
Tinchof00li5h: the problem is not the message body, but the encondings inside headers
sili: doc says it should be decoded automatically when using study()
actionsili assumes that's not perl's study()
siliassumes that's not perl's study()
f00li5hTincho: show us 'ya code
Tinchosili: no, M::B one
f00li5h: ok, just a sec
pasteling"Tincho" at 66.60.17.158 pasted "mail::box problem with encodings" (18 lines, 398B) at http://sial.org/pbot/24337
Tinchof00li5h: there
I get things like this: "Mail::Message::Field::Address =?iso-8859-1?Q?Juan(....)?="
f00li5hTincho: i see
Tinchoand doc isn't helping here :(

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 

IrcArchive