Work Meets the Sopranos

I’ve been catching up on my back seasons of the Sopranos, now that I’ve finally been able to get all of them from Blockbuster Online… I just wrapped up the first disc of season 3, and just saw Tony’s therapist get raped. At the end of the final episode, she has a dream. She starts out working at her desk, and the first thing I notice is what she’s filling out:

HCFA 1500 Insurance Claim Form

Most of you probably don’t have a clue what that is, but it’s a HCFA CMS-1500 claim form. It’s what the doctor’s office fills out and submits to your insurance carrier every time you go, and what we recieve at work by the thousands every day for processing and payment.

Have I become so pathetic that this is the first thing I notice in a scene from a show I’m deeply engrossed in?

Post Meta

9-24-2005
Date
5:18 pm
Time
315
Views
143
Words
Comments
Comment Feeds

Needed: 1 ASP Code Bitch…

UPDATE: In the end, I was able to work the problems I was having out, and all should be well. For more somewhat humorous details, see my comment below (after you read the rest of this post, of course)!

So, we’ve been converting all this old claims data over from a Microsoft SQL 2000 server, into our existing Oracle server, so that it’s accessible by our pre-existing products. We’ve got a handle on most of the stuff, which has just involved a couple of funky SQL queries here and there. The only remaining problem is the actual images of the scanned claims. For accuracy and verification reasons, these need to be available to customer service reps so they can check various points.

The only problem is… We store all our images on a massive storage server in native format (in our case, PNG). They’re named sequentially by claim number and page (ie: 5832934-001.png, 5832934-002.png, 5832935-001.png, etc.), and when a claim is needed, we look up the claim number in the database and snag that file off the network drive. Well, the company whose data we’re importing didn’t like that solution. Instead, they chose to store all their images in BLOB fields in their SQL database (in SQL 2000’s case, there’s a special “image” field type, but it’s really just a blob field).

So, since everyone else is occupied with other projects, I volunteered to take on this seemingly simple one. Worst case scenario, I figured I could export all the data and import it into Oracle / MySQL, so that I could whip up a PHP script to go through and parse out all the images into actual files. Well, the first problem is, you can’t export these images into CSV format, lest you butcher the data. I also can’t get any of the MySQL ODBC drivers to work correctly for any of the MySQL servers I have access to, so a direct export from SQL 2000 to MySQL is also out.

This leaves me with a native language… They had a web-based utility they used to look up claim images which is written in, you guessed it: ASP. Well, I don’t know ASP. I also don’t want to know ASP and I have no idea where I’d begin to learn ASP even if I did. So I throw myself upon the mercy of you, my readers. If anyone has ASP experience, please help me!

I started with this example, which takes the image indicated and displays it in the browser. I need to edit it so that it loops through the entire database (SELECT * FROM Image) and writes out the images (stored in the blob field “Image”) to C:\images\, naming them “<ImageID>.tif”. Surely this can’t be that complicated, but I’m in over my wee little head to be sure!

[asp]
<%

Dim SQL

Dim myConnString

Dim myConnection

Dim rs

Response.Buffer = True

Response.ContentType="image/tiff"

Response.Expires = 0

myConnString = "DSN=ImageDB;DRIVER={SQL Server};UID=webuser;PWD=webuser"

Set myConnection = Server.CreateObject("ADODB.Connection")

myConnection.Open myConnString

SQL = "SELECT image FROM image WHERE ImageID = " & request("ImageID")

Set rs = myConnection.Execute(SQL)

imgSize = rs(0).ActualSize

img = rs(0).GetChunk(imgSize)

Response.BinaryWrite img

%>
[/asp]

Please, someone (anyone!) save me from this ASP damnation! I beg of you!!

Post Meta

9-20-2005
Date
9:35 am
Time
82
Views
489
Words
Comments
Comment Feeds

Business Card Goodness

Welp, I’ve been putting it off for about 8 months now. I really didn’t want to have to go talk to our marketing lapdog and then be indebted to her in some way… But today I finally put my balls back on and went over to do it. It’ll be pretty cool finally having business cards (I’ve never had any before). Particularly with “Systems Administrator” printed under my name.

Now if I could just get off my lazy ass and take that MCSE test, I could get some cool TLA after my name… or four in this case.

Post Meta

8-31-2005
Date
2:58 pm
Time
114
Views
97
Words
Comments
Comment Feeds

Don’t Forward Email!

Lately we’ve had a problem at work. No no, it’s not spyware… Well, that is a problem at work, but I’m not going to bitch about it again, so don’t worry. No, this problem is far more dangerous. It doesn’t simply inconvenience a user and myself, but rather the entire company.

That’s right, you guessed it… It’s SPAM. Not just ordinary every-day SPAM, because we’ve taken care of that by now thanks to some great products by GFI. No, this is a special breed of SPAM… Inter-office SPAM. It’s also not just any ordinary every-day “hey, this was funny, I think I’ll forward it to a couple people here” SPAM, it’s… wait for it…

“Hey, this is old and total crap, but I think it’s relevent to public safety and I’ll forward it to the ‘Entire Company’ distribution list so that NO ONE misses this announcement!” SPAM…

In the absense of any actual procedure for disciplining abuse of email privilidges, we’ve had about a dozen pointless crap emails go out to the Entire Company distribution list in the past few weeks. From the total crap ICE (In Case of Emergency) number in your cell phone to the total crap 3-year-old virus notifications (which we have also protected against, thanks to GFI and Norton) to the bullshit “Hey, come smell this great perfume” (honestly, if some guy in a parking garage is asking you this, and you don’t realize there’s something wrong, you deserve to get raped), we’ve gotten it all.

Since our management has done absolutely ziltch to prevent it, I was thinking about sending this link to everyone, just to see if I get the point across.

Think it’ll work?

Post Meta

8-20-2005
Date
9:25 pm
Time
113
Views
281
Words
Comments
Comment Feeds

Compromising IIS… Still…

Have you ever considered running a Windows-based web server (IIS) that’s exposed to the evil dark internet?

Have you ever figured that all the hype about compromising IIS installations is just that – hype?

Have you ever wondered if you really needed to run Windows Update every time Microsoft releases the smallest most insignificant patch?

Thanks to Security Monkey, there should be no doubt to any of these questions. (The answers are: no, no, and YES, respectively…)

I highly recommend that you check out the video he references in that post. Direct link: here.

UPDATE: I just read the comments on the SecurityMonkey blog entry, and they reference a source for more videos like this, should you be interested. Check them out at iwhax.net!

Post Meta

7-23-2005
Date
2:08 pm
Time
79
Views
125
Words
Comments
Comment Feeds