Thursday, October 30, 2008

'Twas the Night Before Elections

The GOP made me do it...and a friend who forwarded it.

'Twas the night before elections
And all through the town
Tempers were flaring
Emotions all up and down!

I, in my bathrobe
With a cat in my lap
Had cut off the TV
Tired of political crap.

When all of a sudden
There arose such a noise
I peered out of my window
Saw Obama and his boys

They had come for my wallet
They wanted my pay
To give to the others
Who had not worked a day!

He snatched up my money
And quick as a wink
Jumped back on his bandwagon
As I gagged from the stink

He then rallied his henchmen
Who were pulling his cart
I could tell they were out
To tear my country apart!

'On Fannie, on Freddie,
On Biden and Ayers!
On Acorn, On Pelosi'
He screamed at the pairs!

They took off for his cause
And as he flew out of sight
I heard him laugh at the nation
Who wouldn't stand up and fight!

So, I leave you to think
On this one final note-
IF YOU DONT WANT SOCIALISM GET OUT AND VOTE!!!!

Friday, October 17, 2008

Is MedCo the Anti-Christ of drug suppliers?

I just had a frustrating experience with my health insurance company, UHC, and their preferred drug supplier, MedCo.

My wife received a call from MedCo, and suggested that they could save us money on our prescriptions.

Interestingly, they knew about every prescription my wife had, and the physicians that prescribed them. I'm sure the lawyers have that loop-hole covered...

Back to our savings. They indicated they could save us plenty in co-pays, but my wife clearly stated our plan was about to change, and she needed to talk to me first, so NO, DON'T SHIP IT was the answer.

Funny. The agent clearly knows more about my wife's health care, because a few days later, we received our first shipment of medication.

My wife called and complained to the agent, who indicated they could not take the drugs back. She protested, and demanded to speak to the agents supervisor, who suggested we would have to submit an appeal in writing to UHC. Bah!

I called a couple of days later, and talked to an agent at UHC, who had no knowledge of this appeal process, and insisted that MedCo would need to be contacted directly, as UHC had nothing to do with the dispersement of medication. I contacted MedCo, and was informed that it wasn't my wife that authorized the shipment, as they initially charged, but the physician.

I can only guess they contacted the physician, and acquired a prescription for these drugs, and had them shipped to our home! This absolutely baffles me, and my wife is now contacting our physicians to demand they stop this, and find out who authorized it.

After doing some cursory searches on Google, I found this blog, where folks are still singing the woes of the likes of MedCo. Seems they've been paying out millions in settlements for years, due to improprieties.

Just Google MedCo lawsuit.

This also seems highly unethical, and that the physicians should watch their back, since I'll be calling my lawyer soon.

Friday, October 03, 2008

Awwwwww, crap!

After all the work I did on these batch files that decrypt PGP files, and un-tar the contents, I've found an error, and a pretty major *duh* one at that.

Seems my logic was way off when it came to doing some date checking. Since the files I check have a naming convention that uses the previous days date, I was simply subtracting one from %TODAY%. Seems ok, right?

No.

This is the *duh* part. I simply subtracted 1. From 1001, that makes 1000. That's not a day, when you are using MMDD as the convention. What I was looking for was 930. NOT the same.

SSSssoooooo, I added a bit I found on Experts Exchange (THANK you..for saving me MUCHO time).

I was also having some issues trapping the ERRORLEVEL. Apparently, since FOR loops in DOS batch scripts are executed as one command, PGP never has a chance to pass it's exit code to my IF check, so this was also modified.

The modded file is here.

Wednesday, October 01, 2008

shBrushBatch for Google SyntaxHighlighter

I really like highlighting my code in this blog. Ever since finding the Google SyntaxHighlighter Widget at FaziBear's, I've been going through all my old code, and cleaning up my posts.

I read a nice article at WaltCo Tech about extending it to incorporate other brushes for WordPress. He also seems to do what I do, but a bit better when it comes to explaining things: WriteItDownNowBeforeYouForgetHowYouDidThatOldMan

I'm really not that old, but I do tend to stick my fingers in many things, and coding tends to be one of them. At times, I'll find myself trying in vain to use a function from VB in PHP, or something of that nature. One of the hazards of not being fluent maybe?

In any case, I've created my own brush for DOS Batch scripts:

dp.sh.Brushes.Batch = function()
{
    var builtins =  'APPEND ATTRIB CD CHDIR CHKDSK CHOICE CLS COPY DEL ERASE DELTREE ' +
                    'DIR EXIT FC COMP FDISK FIND FORMAT FSUTIL HELP JOIN ' +
                    'LABEL LOADFIX MK MKDIR MEM MEMMAKER MORE MOVE MSD PCPARK ' +
                    'PRINT RD RMDIR REN SCANDISK SHARE SORT SUBST SYS ' +
                    'TIME DATE TREE TRUENAME TYPE UNDELETE VER XCOPY';

    var keywords =  'DO ELSE FOR IN CALL CHOICE GOTO SHIFT PAUSE ERRORLEVEL ' +
      'IF NOT EXIST LFNFOR START SETLOCAL ENDLOCAL ECHO SET';

    this.regexList = [
 {regex: new RegExp('REM.*$', 'gm'), css: 'comment'},
 {regex: new RegExp('::.*$', 'gm'), css: 'comment'},
 {regex: dp.sh.RegexLib.DoubleQuotedString, css: 'string'},
 {regex: dp.sh.RegexLib.SingleQuotedString, css: 'string'},
 {regex: new RegExp('[()[\\]{}]', 'g'), css: 'delim'},
 {regex: new RegExp('%\\w+%', 'g'), css: 'vars'},
 {regex: new RegExp('%%\\w+', 'g'), css: 'vars'},
 {regex: new RegExp('\\w+=', 'g'), css: 'vars'},
 {regex: new RegExp('@\\w+', 'g'), css: 'keyword'},
 {regex: new RegExp(':\\w+', 'g'), css: 'keyword'},
 {regex: new RegExp('\\s/\\w+', 'g'), css: 'flag'},
 {regex: new RegExp(this.GetKeywords(builtins), 'gm'), css: 'builtin'},
 {regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword'}
 ];

    this.CssClass = 'dp-batch';

    this.Style =    '.dp-batch .builtin {color: maroon; font-weight: bold;}' +
                    '.dp-batch .comment {color: gray;}' +
                    '.dp-batch .delim {font-weight: bold;}' +
                    '.dp-batch .flag {color: green;}' +
                    '.dp-batch .string {color: red;}' +
                    '.dp-batch .vars {color: blue;font-weight: bold;}';

}

dp.sh.Brushes.Batch.prototype = new dp.sh.Highlighter();
dp.sh.Brushes.Batch.Aliases = ['batch', 'dos'];

I'm really quite pleased with the results, and hope you find it useful!