#perl
08 November 2007
Total 27 pages. You are browsing page 4/27.
First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last
04:05 <****> you have to convert the formatted string to a time_t and subtract the two
04:06 <****> there are time functions that do the math and conversion
04:06 <****> cfedde: say I have a format "%Y%M%D" and a seconds-since-epoch
04:06 <****> I need to determine when the output of the formatting last changed
04:06 <****> uh
04:06 <****> does mod perl work with apache 2.2.6?
04:06 <****> luke-jr isn't wearing any pants :(
04:06 <****> happy_guy2: did you try it?
04:07 <****> ...
04:07 <****> compressed ellipsis
04:07 <****> eval: use POSIX 'strftime'; strftime("%Y%M%D", localtime())
04:07 <****> cfedde: 20071111/07/07
04:07 <****> Andante Cantabile
04:08 <****> ok, I did the example wrong :þ
04:08 <****> but you get the idea?
04:08 <****> eval: use POSIX 'strftime'; strftime("%D", localtime())
04:08 <****> luke-jr: 11/07/07
04:08 <****> so in that case, I'd need to know the end of the last day
04:09 <****> you want the epoch seconds for midnight last night?
04:09 <****> if the format is only the date
04:09 <****> if it's %Y%M, then since the last month
04:09 <****> etc
04:09 <****> See also Date::Format
04:10 <****> see also DateTime::
04:10 <****> eval: use POSIX; strftime "%F", localtime
04:10 <****> dngor: 2007-11-07
04:10 <****> eval: use POSIX; strftime "%F %T", localtime
04:10 <****> dngor: 2007-11-07 19:14:35
04:11 <****> eval: @n=localtime; sprintf("%04d-%02d-%02d",$n[5]+1900,$n[4]+1,$n[3])
04:11 <****> MooingLemur: 2007-11-07
04:11 <****> i didn't :P)
04:11 <****> anyone here ever use mod perl?
04:11 <****> is it nicer than fastcgi?
04:11 <****> Nope.
04:11 <****> happy_guy2: it has it's uses
04:11 <****> Not a one of us has used mod_perl.
04:11 <****> is fastCGI the way t go then?
04:12 <****> FastCGI is much more portable between webservers
04:12 <****> I mean assuming I ever have a site than can overload apache
04:12 <****> And more flexible, being outofprocess
04:12 <****> (I can dream)
04:12 <****> If you overload Apache, you set up a second server and load balancing.
04:13 <****> thats hcatin!
04:13 <****> I don't see hwo Date::Format or DateTime:: help me :/
04:13 <****> Then you consider sharding your data across multiple servers.
04:13 <****> hm
04:13 <****> There's plenty of literature on Web 2.0 server scaling.
04:13 <****> but as far as dynamic stuff and perl goes is fascgi superior to modperl?
04:13 <****> luke-jr: I think that most of us are having trouble understanding what your actualy looking for.
04:14 <****> happy_guy2: superior is such a strong word.
04:14 <****> cfedde: the only thing I have is input to strftime, and I need to know when the output last changed
04:14 <****> If you're concerned about scaling, write your own Apache modules in C.
04:14 <****> er liek more work same memory?
04:14 <****> more hits processed?
04:14 <****> c?
04:14 <****> who am I to write c?
04:14 <****> basically, I need to know what the immediate previous strftime output is
04:14 <****> I dont even know perl yet.
04:14 <****> Or some other supported COMPILED language.
04:14 <****> ah
04:15 <****> anyone here done that? wrote a c module? for apache?
04:15 <****> to speed thigns up?
04:15 <****> Well, if scalability is your primary concern, then learn the right language for that first.
04:15 <****> your FACE is a supported compiled language!
04:15 <****> We did at work.
04:15 <****> oh?
04:15 <****> Well, C++.
04:15 <****> whatwasit?
04:15 <****> oh
04:16 <****> And we're still deploying to 40+ machines. On account of we do a lot of traffic.
04:16 <****> C++ makes the baby yahwey cry.
04:16 <****> C++ :(
04:17 <****> C ?
04:17 <****> karma C
04:17 <****> perlbot: karma C
04:17 <****> Karma for C: 3331
04:17 <****> Yeah. Awesome.
04:17 <****> anyone like visual programming?
04:17 <****> C++--
04:17 <****> swaydam: what, logo?
04:17 <****> c/,,\
04:17 <****> swaydam: Looking for scabs for your writers' strike?
04:18 <****> I'll write!
04:18 <****> jeesh I have this kernighan book on my desk
04:18 <****> perlbot: karma C++
04:18 <****> Karma for C++: -12
04:18 <****> yay
04:18 <****> and its binding is liek crackly
04:18 <****> But I demand dual-work, daytime soap operas and also, The Daily Show.
04:18 <****> so new stlll
04:18 <****> lol
04:18 <****> daly show?
04:18 <****> isnt it a bit left wing for ya?
04:18 <****> THE EVIL STEFANO can make a guest appearance on Colbert.
04:18 <****> wtf is a daly?
04:18 <****> hippy english major chix watch it
04:18 <****> heard of limnor?
04:18 <****> iank:
04:18 <****> swaydam:
04:18 <****> what?
Total 27 pages. You are browsing page 4/27.
First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last
