|
Kidane posted:Stupid question... This looks like what you want: http://outflux.net/software/shorts/perl/Idle
|
# ¿ Mar 12, 2008 12:22 |
|
|
# ¿ May 2, 2024 04:13 |
|
I've honestly almost always just used Time::HiRes for things like that. Something like:code:
|
# ¿ Jun 19, 2008 18:37 |
|
syphon^2 posted:I've got a stupid question... That just means it's .315718 seconds. The stock perl sleep and time functions are only accurate to the nearest second, so they're integers, whereas the functions in Time::HiRes use floats, since they can sleep < 1 second (or measure more accurately than 1 second).
|
# ¿ Jun 19, 2008 22:08 |
|
syphon^2 posted:Does anyone have any advice for making Perl talk to Active Directory? It's been a while, but I seem to recall that, by default, you can't anonymously bind to the AD server, so you have to have a user even to do that. But otherwise, we use an AD server with a few unix hosts here (LDAP), and I know for a fact that TVA does too. Edit: http://pastebin.com/m40d7df9c Yes, it's ugly, but it's basically what I used when working with our AD administrators to make sure connectivity was working. dagard fucked around with this message at 01:49 on Oct 13, 2008 |
# ¿ Oct 13, 2008 01:16 |
|
I've been using Catalyst lately for an internal project (inventory tracking for my group of system administrators), and while I love it, I seem to be google-blind on one thing. Query caching. Example: You're looking at an audit page, where you see the last 30 changes. Each row of the audit log is generating another hit against the 'users' table to pull out username, display name, email address, etc. Ideally, I'd like something that, either in Catalyst or TT2, I can go 'ok, for this page, this render, cache everything' Would I have to roll my own? (doable), or is there something I'm just too blind to see?
|
# ¿ Apr 17, 2009 04:05 |