Home
entries friends calendar user info Previous Previous
profile
Chris J.
Name: Chris J.
calendar
Back June 2009
123456
78910111213
14151617181920
21222324252627
282930
links
page summary
tags
a collection of ellipses and digressions
...
Add to Memories
Tell a Friend
I'm pretty sure I loaned out my micro screwdriver set, and I'm pretty sure it's to someone (I can't remember who!) on my friends list.

If you borrowed this set from me, could you let me know whether you're done with it and if I can get it back?

Thanks!
Add to Memories
Tell a Friend
Doing math with dates/times - programmaticly - is a pain in the ass.

Take a date/time, check to see if it's fri, sat or sun. Then set an allowed time that's either EOB on the next monday (for Sat and Sun) or the same time on the next monday (for friday).

This is effectively 1 business day.

Also: this must handle crossing months, even years.

Thanks to unixtime - this was much easier than it sounds, but it's still not fun.

PS: I got my stuff to work. At least, my test code finally works - now to work it into the bigger script where I'm going to put this to useful work.

Current Mood: accomplished

Add to Memories
Tell a Friend
http://brainz.org/30-cases-extreme-police-brutality-and-blatant-misconduct/

Most of this isn't new to anyone.

I think it's sad that I've more to fear from the people who are paid to protect us, than from anything else. It's so easy for a cop to make a bad judgment call and then, well, totally fuck you up.

Perhaps even kill you.

And get away with it - as it would seem cops aren't held to the same level of expected judgment that everyone else is. In short, they're treated by the court system like kids, while the rest of us 'should know better'.

Be polite, insist on rights, say no to searches without a warrant, and do what they say - even if you think you don't have to - but clearly indicate it's via intimidation (having a gun and other weapons, and the power position leaves them in a situation where they only have to make a request to be intimating).

Current Mood: anxious

Add to Memories
Tell a Friend
Add to Memories
Tell a Friend
Alex turned into a toddler.

Long gone is the infant, and even some of the 'baby'.

Dude is walking from spot to spot, picking what he thinks is the easiest method from crawling or walking. And more and more often, now he's picking walking.

Course, he's a bit stiff legged, so it's kinda like a miniature, exuberantly happy and chatty zombie is roaming the house. Heh.

On a very related note, he's now figured out that sliding off laps, beds, chairs and even steps is best done feet first (finally!).

* I'm gonna have to get a new pic for Alex type posts - this one is /way/ dated now - being a very solidly infant pic.

Current Mood: happy

Add to Memories
Tell a Friend
Add to Memories
Tell a Friend
"Now, now, my good man, this is no time for making enemies."
-- Philosopher Voltaire when asked by a priest to renounce Satan.

Current Mood: amused

Add to Memories
Tell a Friend
Add to Memories
Tell a Friend
$> cd /pub

$> more beer

The dude holds two jobs apparently - one for AT&T and another at a brewery.
That shirt is good to go for both jobs.

Current Mood: amused

Add to Memories
Tell a Friend
(This was cross posted in [info]itprofessionals)

When dealing with a large ticket db in RT (Request Tracker), it's sometimes good to flush the db of some tickets.

RT /never/ deletes data from the dB. There's a 'plugin'/add-on or whatever that can though. RTx-Shredder.

However, if someone set's a script in action to 'shred' those tickets, one will occasionally want to check in on how it's going.

Hence this script:
cat /path/to/rt/sbin/count-tickets.sh  )

That script, of course, requires you to have my.cnf setup correctly or ran as root with no root mysql pw set.

One /can/ get the ticket count from RT for most any status - except for deleted.

We started with approx 55500 tickets in rejected status (spam!), and we're currently down to approx 11300. The shred process has been running for approx a week and a half, and it should finish sometime this friday evening. That's approx 1 ticket shredded per 17 seconds.

Also, here's the script I'm using to shred those tickets (long!):

cat /path/to/rt/sbin/shredder.sh )

I know that I could have use getopt or getopts for the options, but it wasn't really worth it.

Tags: ,
Current Mood: pleased