October 2, 2008

Finding the hostname with CFMX 8

<cfset inetObj = CreateObject("java", "java.net.InetAddress")>

<cfset inet = inetObj.getLocalHost()>


September 8, 2008

The Escapist : Video Galleries : Zero Punctuation : Eve Online

The Escapist : Video Galleries : Zero Punctuation : Eve Online

June 25, 2008

Dihydrogen monoxide

Dihydrogen monoxide:

  • is called "hydroxyl acid", the substance is the major component of acid rain.
  • contributes to the "greenhouse effect".
  • may cause severe burns.
  • contributes to the erosion of our natural landscape.
  • accelerates corrosion and rusting of many metals.
  • may cause electrical failures and decreased effectiveness of automobile brakes.
  • has been found in excised tumors of terminal cancer patients.
Despite the danger, dihydrogen monoxide is often used:
  • as an industrial solvent and coolant.
  • in nuclear power plants.
  • in the production of styrofoam.
  • as a fire retardant.
  • in many forms of cruel animal research.
  • in the distribution of pesticides. Even after washing, produce remains contaminated by this chemical.
  • as an additive in certain "junk-foods" and other food products.

May 2, 2008

COX now provides all HD channels to CableCARD customers.

I received a letter yesterday stating that starting May 1st COX Communications was going to stop screwing their CableCARD customers (i.e. me since I use a TiVo) out of a handful of HD channels. Turns out they weren't lying. Way to do the right thing COX.

February 27, 2008

New robocopy flag in vista

/dcopy:t will copy directory dates and times data along with the files. finally.

February 12, 2008

ColdFusion CFLDAP - Display images stored in Microsoft Active Directory

Not too hard once I found out how MS stores the data in the photoJpeg field of Active Directory.

<!--- imageFile.cfm --->
<cfldap action="QUERY"
     ldapPhoto = toString(ldap.jpegPhoto);
     ldapPhoto = binaryDecode(ldapPhoto,"base64");
</cfsilent><cfcontent type="image/jpeg" variable="#ldapPhoto#">

<!--- to display the image on a page --->
<img src="imageFile.cfm" width="100" height="125" alt="">

February 11, 2008

Why I shop online. Why local stores fail.

So I finally decided to replace my old bedroom TV. After a weeks worth of research and reading product reviews I decided on the model and headed out to the local Best Buy knowing I had plenty of time to meet my sister and her family for lunch. I would have bought it online and saved hundreds of dollars, but I wanted the extended service in case something should fail. Plus it's easier to return to a local store, than to have to figure out how to ship it back.

I was happy to see that they had the model I wanted on the shelf, and so I waited watching the other people get asked if they needed any assistance. And I waited...and waited. Apparently I didn't have the appearance of a sucker or a buyer. I was standing in front of a big wall of TVs out in the open. I know they saw me.

After about 45 minutes of standing there someone asks me if I've been helped yet. This poor kid looks like he's just awoke from his nap in the break room. Clearly he's the bottom of the sales food chain. The one that gets to help the people no one else wants to help. His lucky day. Only problem with this kid is that he's full of bad info. I always ask a few loaded questions. Usually some really obscure spec or feature. I don't expect these guys to know every feature of the 50 TV models that they have to sell. Really I'm looking for them to admit if they don't know something. I'm fine with them not knowing. Just don't BS me. This kid's answer was yes to everything he wasn't sure about.

I pay for my items and ask my sales kid if someone can help me load it. He says "sure, there are people up front that will help you." So I head to the front of the store. He was right. I spotted three employees standing by the "customer service" area next the shopping carts. I head their direction, they look at me, then they turn and walk off. I'm not sure I've ever had more of a WTF moment in my life. Now I'm 0/2 in customer service confidence. I thought about getting a manager and asking if they make a ton of money by giving half-ass customer service, but decided on just leaving while I was still calm.

I meet my sister and her family for lunch at about 2pm, well after the lunch rush. For the most part it was fine. I've had worse, the waiter forgot half of what we ordered. Which is pretty sad considering it was only three adults and a kid. Surprisingly I don't get mad at restaurants anymore, again this is the kind of half-ass service I expect. I know it's not an easy job and I never yell or make a big scene. I even leave a tip hoping good karma will land me some better service in the future. 0/3 for customer service so far.

I'm not even going to elaborate on my call to the cable company that day. Let's just say more than once it's ended with me hanging up on them in the middle of some excuse of how they can't do what I need because the FCC mandates them to rip me off. Or at least that's what I've gathered from the parts I've heard. I could be wrong.

It seems like customer service is in the toilet. Which is why I shop mostly online. I don't have to deal with people that don't care about their jobs. Don't like where you work? Go find a job you like. Don't want to work? Yeah, no one does. Get over it. And make sure you don't get a job in customer service or sales.

On a positive note my friends over at TeleCapture have a call tracking tool for managers and business owners to help identify the bad apples. I hope they invent a device that shocks sales and customer service people every time they act like asshats.

February 1, 2008

HDTV screen the same size as your old 4:3 TV

My old 27" TV is about to die. I came across this site while trying to figure out what size of TV to replace it with.

To find the HDTV screen size (diagonal measure) that gives the same height as your old television, take the screen size of the old TV and multiply by 1.22. So if you want an HDTV with a screen that's the same height as your old 34-inch TV, for example, the chart below shows that you need to buy an HDTV with a 42-inch screen, and that they will both have a height of 20.4 inches.

More size conversions on the screenmath.com website.

January 24, 2008

YouTube settings

Don't want the menu to show up when a clip is done playing? Set the url param to "&rel=0".

Want your movie clip to auto play? Set the url param to "&autoplay=1".