For some odd reason you're unable to see my GamerBar360.

If you're seeing this message, you may not have Flash installed or JavaScript enabled. Please install the latest version of Adobe Flash and/or enable JavaScript.

Archive for the 'Work' Category

Chicago and Back

Saturday, June 14th, 2008

I spent this past Monday through Wednesday in Chicago for work. We were meeting with Microsoft to talk over our SharePoint 2007 implementation. Let me just say that there was a lot of walking, very expensive meals (mmmm, fillet minion), and no free internet at the $350/night hotel. That’s the long and short of it.

The best part (beside the food)? We got certificates to buy stuff from the MS employee store at employee discounts. Even though we had a one time limit of $200, I only spent about $80 (including shipping). But managed to pick up two 512mb memory units for the 360 ($20/each), Lost Odyssey ($25), and Viva Piñata: Party Animals ($10). There really wasn’t much else that I wanted there.

I’m done spending my $500 gift card. I need to save it for the rest of the year’s games.

Back-up. Are. Good.

Tuesday, March 18th, 2008

Backing stuff up. It’s a good thing; if you do it.

Case-in-point: My work laptop died Monday morning - with several projects that I was working on. None of which I backed up. Why? I’m stupid. You’d think the fact that my laptop is nearly 7 years old and was continuing to be a major pain to work on, I’d have an inkling that something may go wrong at some point. Yep. It did.  Funny thing is that I actually thought about backing up to a thumb-drive but decided not to.

On top of that, I find out that my requested replacement, that was approved nearly 2 weeks prior, was never ordered. Plus our vender had the wrong specks for my new machine and apparently never saw the request. My question is, how can you order something without knowing what is wanted or needed?! So I corrected that and it was ordered. Too little too late. I’m now working from a spare that is almost as old as my dead box.

Our local IT person is attempting to get at my data on the dead hard drive but I’m not holding my breath.

The headache I’m running into is the fact that my Flash development is sitting on that dead hard drive and all I have to work from is the compiled SWF files. I managed to reverse-engineer them, but it wasn’t fun - I’ll explain in another post.

So, am I going to be more pro-active with my backups? Heck yeah!

Code: ASP/VBScript, properly nested list from array

Friday, October 5th, 2007

Eureka! Finally!

It only took me about 5 days of tinkering but I managed to  code a dynamic,  multi-nested list from an array.

The project is to expand the number of levels that available to the web sites at work. Currently we only alloted two level. That was a number of years ago. Now some of our devisions are revamping their content and are needing multiple levels.

So I met with our database guys (DBAs) to draft up a cross reference relational table structure and some stored procedures to bring back the hierarchy of pages so I can draw up a properly nested list of links to use as page navigation (wow that was a long sentence). I’ve been banging my head against the wall for the better part of the week - getting close to a solution but then scrapping the code to come at the problem at a different angle. Today I finally made it work and it’s universal (hopefully).

The logic is what tripped me up. I had to think backwards in a way to determine how to close the list items (<li>) and any nested lists.

Here’s what I wrote. Assume we have our recordset returned as a 2d array via GetRows. There’s more to be done as proper tabbing, and other site-based logic but this gets the output I need.


<%
' -------------------------------------
dim numcols, numrows
' cols = 1
' rows = 2
numcols=ubound(alldata,1)
numrows=ubound(alldata,2)

' our fields
dim fld_xref, fld_id, fld_title
dim title, id, xref

 fld_title = 0
 fld_id  = 1
 fld_xref  = 2

' our formating
dim ul_open, ul_close, li_open, li_close, list_close

 ul_open  = "<ul>" & nl
 ul_close  = "</ul>" & nl
 
 li_open  = vbTab & "<li>"
 li_close  = "</li>" & nl
 
 list_close =  ul_close & nl & li_close & nl

dim x
dim l
dim levels
dim tempArray
dim parentID
dim lastID
dim lastXref
 
' response.Write("<p><a href=""#"" id=""expand_all""><strong>[+]</strong> Expand All</a> | <a href=”"#”" id=”"collapse_all”"><strong>[-]</strong> Collapse All</a> </p>” & nl)
 Response.Write(”<ul id=”"list”">” & nl)

For x = 0 to numRows

‘ ————————————————–
‘ Set the stage
‘ ————————————————–
 
 title  = Trim(allData(fld_title, x))
 id  = allData(fld_id, x)
 xref = allData(fld_xref, x)

 ’ ignore first pass
 if x > 0 then
 
  if xref = lastID then
  ’ LAST ID WAS PARENT TO CURRENT ID
  ’ open a new <ul>  
   parentID = lastID
   levels = levels & ” ” & lastID
   response.Write(nl & ul_open)
   
  elseif xref = lastXref then
  ’ Current ID is a sibling
  ’ we’ll just close the previous <li>
   response.Write(li_close & nl)
   
  else
  ’ we’re not sure what we’re dealing with
  ’ more than likely we need to close a nested list
     
   ’close the last <li>
   response.Write(li_close)
  
   ’ generate our array of parent IDs
   tempArray = Split(levels)
  
   ’ walk backwards through the array so
   ’ we get the proper count of lists to close
   for l = Ubound(tempArray) to 1 Step -1
    parentID = CInt(tempArray(l))
    if xref <> parentID then
     ’ if xref does not match our parent ID
     ’ close the list
     response.Write(list_close)
     
     ’ remove the previous ID from the list
     ’ so the next walk throug, there will be one less
     levels = replace(levels, ” ” & parentID, “”)
     
    else
     ’ we have a match, stop processing the list
     exit for
    end if
       
   next 
     
  end if
  
 end if
 
 ’ output our record 
 response.Write(li_open)
 response.Write(title & ” | id: ” & id & ” | xref: ” & xref & ” | levels: ” & levels)
   
 lastID = id
 lastXref = xref
 
Next

 response.Write(li_close)
 Response.Write(nl & ul_close)
%>

Quick Rant: JavaScript Programming Sucks

Wednesday, August 29th, 2007

I wouldn’t call myself a programming genius or even very skilled programmer but for the most part I know what I’m doing - if I don’t I have the interweb to help; it is part of my job as a web developer. I’m more of a jack-of-all-trades; master-of-none.

That being said…

<rant>Man does programming javascript suck! I really haven’t done too much but since I’m doing more ActionScript programming in Flash (which is similar to JavaScript), I’m becoming more familiar with doing so. But there are literally 1001 different ways of accomplishing any one thing and you’d be lucky if the method you choose is supported between the two major browsers. I’m constantly checking my test page in IE and then FireFox.

My curse right now is to make an expanding/contracting list. Not to hard. Just determining which <li> has a child list and then setting some class values, insert a toggle to open or close the list. I have all that working but now the fun starts. I need to determine if any number of nested lists contain the selected/active page and if so, make sure the parents are initially set to be open. Yeah real fun.

I’m trying to avoid a those pesky cascading menu systems as I can’t stand them. And I’m trying to avoid script bloat which is why I’m building it myself. I do enjoy making things work and figuring things out but sometimes the process is a bit annoying.

That is all.

</rant>

[update: I figured it out and it wasn't that hard. Note to self...I'll have to create a example section to show off code examples]

Why "Wellness Programs" don’t work

Monday, April 9th, 2007

About 2 years back, my employer started promoting a “Wellness Program”. I won’t mention the program or my employer (however, if you’re sleuthy, you could find out). The promotion went a little like this; we’ll do a biometric test on you to see where you are with blood pressure, weight, BMI, cholesterol, and few other metrics. Once you get you results, you’ll start you program by visiting your doctor (if needed depending on any “risk factors” you may have), filling out diaries regarding healthy living, and wearing an electronic pedometer that records your activity. The pedometer docs to a PC and uploads your points into your account to see how you’re doing over time and against everyone in your program.

The promises? You could save up to 30% on your next years heal insurance premium. Sounded good to me. I like saving money! So Tracy and I signed up.

We started working out, walking, and eating better. Docking our devices once a month or so. I never did fill out those diaries, and those “fitness challenges” like eating 5 serving of veggies a day for a week they mentioned for bonus points, never got to me. I tried my best to keep up with the program but life gets in the way and by year’s end, we got our reports back and we didn’t have the 600 some odd points for a couple in the program to get the base 10% discount. But, apparently the program was going so poorly company wide that they dropped the requirement from 600 to 500 - netting us the 10% discount.

The kicker is when we were notified that our health insurance was once again changing; conveniently after the completion of the program. This time from an HMO to  PPO. Oh yeah, by the way we’re jacking the premium about 20% or so. So no matter what, I got screwed.

As a result of the program, I was seeing my Dr. about pre-hypertension and have begun medication for that (cha-ching $$$; labs, dr. visits, etc…). We all got sick, as usual. Life gets in the way and we’re paying down medical bill as usual. The same viscous cycle as we’ve always had.

Our HR department even showed employees that participation in this program was close to 30% across the company. Clearly it’s not working.

To make a long story short. We no longer participate in this program. Either way you put it, you get screwed both ways for as much effort you put into it.

Reason I bring this up because I found this great article over at JunkFoodScience.com regarding these wellness programs and how companies are promised reduced healthcare costs by participating. Come to find out (I already knew this), companies are shelling out big bucks for very little gain. If companies are willing to shell out this kind of dough, how about just putting it towards our health care package to begin with? Life happens far to often and as a much as we like to think we can change genetics - we can’t. Health insurance isn’t going to go down any time soon (read: ever). I’m not saying there’s no value in bettering one’s self, loosing weight and getting fit…I think those are things we should all strive for when possible…I’m just saying that these wellness programs are largely well intentioned but offer very little return on investment.

It’s all very frustrating. I’d love to forward this article to my HR department.

How I turned a 3 day vacation into an additional week off of work

Tuesday, March 13th, 2007

Okay, it wasn’t on purpose! We took the family to The Wilderness Waterpark in Wisconsin Dells, WI for 3 days of fun. This was made possible by a wonderfully generous Christmas gift from Tracy’s folks. So we packed up and went and had a great time. I can’t tell you how many steps I climbed to get on these tube rides; some 3 or 4 stories high.

We managed to squeak another $50 into our budget buy taking a timeshare tour on our second day. Basically had to listen and say no at the end and the kids got 40 tokens for the arcade and we got $50 in Wilderness Cash to spend. That took care of a second night out to eat.

We had a blast. You can check out some of our photos if you want to see the amount of fun we had.

(more…)

Oshkosh Area School District web site now live

Monday, February 20th, 2006

Oshkosh Area School District web site

Early in 2005 I was invited to be on an advisory board for the redesign of the Oshkosh Area School District’s web site - which was in desperate need of an upgrade. A number of other volunteers from various businesses and fields of expertise were also asked to participate. Blue Door Consulting was contracted to come in an facilitate the program.

I was initially in the general user focus group dealing with what content the site should have, what works what doesn’t, etc.. but was then asked to serve on the technology focus group dealing with the technology to be used for the site, best practices, hosting, database and ultimately selecting the company to develop the site for us.

Early on, Heidi and Brenda of Blue Door asked my opinion of the scope and aggressive time-line of the project. Initial projection was to have the site done in about 6mo time (basically in enough time to launch by the start of the 2005 fall semester). Having a basic understanding of what they wanted to do and all they wanted to accomplished I said it was doubtful that they’d hit that target. It wasn’t till late August that they got around to selecting a company to develop the site for us and they were still hoping for a Nov launch - still a herculean feat for any development house.  But they pressed on and by Jan they had a prototype site up and running and shortly afterwords went live.

I won’t go into a ton of detail but the site is nicely done, easy to navigate and encompasses all of our district schools. There are still features to be added in the future but now the groundwork has been laid for a successful site. Overall, a job well done by all.

It was a great honor and a great experience to be a part of this comity. Thanks again to Blue Door for inviting me.

Out There 2

Friday, January 13th, 2006

Out There 2

Originally uploaded by mcwilliams132.

Well this one was fun to do. I almost stopped early but decided to do some space clouds and nebulae which really made it pop.

Hope you enjoy it.