Amazon.com Widgets

Archive for the ‘Work’ Category

29
Aug

Updated the corporate website today to include memcached. It was hitting our legacy application’s MSSQL database (which we have to still use), a ton, and slowing down the *choke* windows application.

Anyways, memcached saved the day! Way less hits on the database, and only took a few simple hooks to implement! I know I could have used Mason’s cache, but it isn’t distributed across servers that were not on this web server.

We use HTML::Mason for the site, so just a few simple hooks did the job.
1) Preloaded the Cache::Memcached module into my mod_perl.
2) Most of the website is driven off part number lookup. Even non parts are actually parts in our database, but just have content associated with them. So in the part retrieve Mason page, I added a line to load up memcached.

my $memd = new Cache::Memcached {
'servers' => [ "10.10.1.44:11211", "10.10.1.40:11211" ],
};

I get a $pn variable in from all other places so I check for its existence in the cache.

$mPart = $memd->get($pn);

Then just add a hook around my standard DB call and then a set after the pull and assign if we hit an else.

if (!$mPart) {
$partList = $dbh->selectrow_arrayref("SELECT blablabla from priceBook WHERE itemID = '$pn'");
$memd->set($pn,$partList,600); # Expire cache at 10 minutes (600 seconds).
} else {
$partList = $mPart;
}

, , , , , , ,

14
Dec

Just a random thought here:

If we are talking SIP to one another, and you’re not going to complete my call…

Please oh please come back with a 503, not “200 OK”!

And thanks for making me setup static routes for area codes you wont return 503 on too.

, , , , ,

21
Jul

Finally finished out the IPv6 rollout at the house. Tunnelbroker.net tunnel from my 2801 to he.net up, domain hosted here fully IPv6 with email, rDNS, web, all going good. IRC client running v6 too! Only using a handfull of addresses out of my massive /64 they assigned.

Passed the he.net certification too! As of tonight, I’m highest you can get up to, theres only 1,207certified for it out of probably 12,000 total workingon certs.

Now for the hard part. Dual Stacking the office, datacenter, and all our customers! The crappy thing is the majority of our customers are on old routing hardware, which has no future for v6, so at some point, we’ll have to spend some money.

Progress at work: my BGP peer is up with he.net for announcing our /32, our upstream providers wont be giving us native IPv6 until middle of next year, so tunneling is all we’ve got unless we add on some more bandwidth from another upstream provider with native IPv6… possibility.. Need quotes!

, , , , , , ,

27
Jul

Today is Sys Admin Day

Where’s my presents!??????

02
Jul

Freight Forwarder IT Workers Google Group

I’m basically just adding this so Google will pick it up. I’ve made a group on Google for IT workers/employees/managers etc in the Freight Forwarding, NVOCC, import/export field to talk about things happening IT related in the industry, and to share ideas and such. Right now, there isn’t such a forum, group, or anything like this.

It would be nice to see how other people have solved common problems, etc.

Freight Forwarder IT Workers Google Group

15
Aug

Image000.jpgGot to work this morning, server room AC had tripped a breaker!
Almost 100 degrees! I’m in the process of building a temperature sensor that alerts my cellphone if that should happen again.

04
Oct

Note to all: do you save your important stuff in your garbage can?

People at my office do! I get a call today “I had this email in my trash folder yesterday and now its not there.” well duh, the garbage man came!

30
Sep

Ugh. I spend a few hours every day reading employees emails and deciding what they dont need. We have 120gb for 40 users. The server is constantly 99% full. Im so annoyed. It’s mostly because people scan stuff to their email, then they CC it to 5 different people in the company, including themselves. Nobody deletes them.

10 page scan to Color PDF: 8mb
cc to five different people: 40mb
idiot self copy: 8mb
total wasted space for a 10 page pdf: 56mb
People scan between 1 and 40 pages about 30+ times a day. I’ve seen the server go from 4.7gb free to 60mb in two days.

I need a damn shotgun.

30
Aug

Car Watching?

Since I have a webcam on my desk, now I get to watch an employee’s car for people keying it. Apparently someone is. Maybe I’ll catch me some key-ers.

webcam_2004-08-30_154632.jpg

25
Apr

“Employers who do not take steps to block offensive spam from arriving in workers’ inboxes may be open to sexual harassment claims from their staff.

Pornographic or offensive images appearing on a worker’s screen by way of unsolicited or junk email (spam) could also qualify as evidence of a “hostile work environment”, a situation contravening the Human Rights Act. ”

Read More : Employers in the gun over email porn

  • Search:
  • EE V.10!

  • Mikedaddy Tweets

  • Categories

  • Monthly Archives