One of my favorite way to block ads online

Fri Jun 17 07:46:11 UTC 2011

Tags: homepage tech

At home I update my host file on my router to block ads using this technique. Basically it circumvents DNS lookups and uses the hosts file on the router to return localhost as the IP address of the ad site instead of the actual IP address. Not revolutionary but effective.

MarkLogic Startup Launchd

Fri Apr 15 08:19:38 UTC 2011

Tags: homepage tech marklogic

In order to have MarkLogic start up on user login on my Mac, I created the folder ~/Library/LaunchAgents and put this .plist file into that folder. After logging out and re-logging in MarkLogic had been started successfully.

Update - May 23, 2011

I've updated the .plist file to restart instead of start. When MarkLogic starts it doesn't check if it's already started so it will keep the other MarkLogic instances running.

IE perform action after File Input Change Event

Tue Apr 12 08:29:01 UTC 2011

Tags: homepage tech webdev

Normally IE won't register that a file input has changed unless the file input loses focus. So, in order to accomplish this, just add a click event to the file input event that sets the focus to another input (submit button will work) after the click. If you do this in a setTimeout call then IE will attempt this call immediately after the File Dialog is dismissed causing a blur event which will then trigger your "change" handler.

Put this in your click handler:

setTimeout("document.getElementById('submit-button').focus()", 0);
      

I'm always amazed how often a setTimeout has gotten me out of problems with IE javascript.

Internal MarkLogic Error

Tue Mar 22 11:05:41 UTC 2011

Tags: homepage tech marklogic

I received this error today running MarkLogic Server on Mac OS X 10.6 - Internal error: file: Lang/simplified-chinese-std.matrix could not be opened. I was confused. I started looking at internal code thinking that something I might include could be at fault. However, the fix was to restart the MarkLogic server. Hope this helps someone.

Sandisk, LG 570 and firmware flashing

Mon Jan 03 10:27:53 UTC 2011

Tags: firmware sandisk lg570 blu-ray lg homepage tech

I was trying to update the firmware on my LG570 blu-ray player. After the wireless download continually failed, I went to the LG support site and downloaded the two ROM files. I attempted to download the instructions as well but the download wouldn't work. I tried to fill out a web form to let them know, but that kept blanking itself after every character that I typed. So, I did eventually find a PDF that told me what to do.

The two zip files need to be extracted and placed on either a flash drive or as files on a CD/DVD. I chose the flash path but I decided to use my Sandisk flash device. It should work, right? No luck. I tried another brand of flash drive and that worked much better. I think the biggest problem was that the Sandisk has two partitions on their devices. One is a CD-ROM partition that has some U3 utility software and the one that worked didn't have that extra partition to confuse my device. So, Sandisk fails for updating firmware - and I'm pretty sure it's failed in the past for the same reason. I'm just now catching on that a Sandisk device might be great as a portable media device, but when it comes to flashing it just can't get the job done.

Oracle and Instant Client

Fri Jul 16 17:48:28 UTC 2010

Tags: tech oracle

Every time I install Oracle, I want to install just the Instant Client. This works fine if you don't need the tnsping application. It's invaluable for troubleshooting and everyone I work with always asks if I can "tnsping" the server. So, I generally end up installing the Client with it's fairly bloated install.

To install the Instant Client in Windows, one just needs to put the files in a folder, set the TNS_ADMIN env variable and add the folder to the PATH env. If the tnsnames.ora file is set up properly it should work. When I need tnsping though, I end up installing the client anyway. I think an easier option would be for Oracle to include tnsping in the Instant Client install.

Business Objects PDF Retrieval

Wed Jun 30 15:23:54 UTC 2010

Tags: businessobjects tech

Using Business Objects web services gets more understandable the more one uses it. I recently began developing again with the fairly confusing GetDocumentInformation API call. The call to get a PDF required a slightly different ViewSupport object than the one that should work. It seems that the ViewSupport is the object required to tell BO in which format you want your report. So, initally I had a line for the format that specified I want the PDF in the PDF format - seems reasonable right?

ViewSupport viewSupport = new ViewSupport();
      viewSupport.OutputFormat = OutputFormatType.PDF;
      viewSupport.ViewType = ViewType.BINARY;
      viewSupport.ViewMode = ViewModeType.DOCUMENT;
      

This didn't work for me. I had to change the OutputFormat to be:

viewSupport.OutputFormat = OutputFormatType.BINARY_CONTENT;
      

Hope this helps someone.

What I want from a wireless plan

Mon Jun 07 13:36:50 UTC 2010

Tags: homepage tech

Here's what I want from a wireless plan:

  1. Calling
  2. Texting
  3. Web Browsing / Maps

Ok, so to get any of this most of the services insist I commit to them for 1-2 years, and pay a bundle for all sorts of services I may or may not use. I don't want rollover, although that is better than just losing your minutes. What I want is the ability to move into different Tiers based on my usage. If I use 200 Megs one month, I get charged for the 200 Meg limit. If I decide to browse more the next month, I want to be bumped to the next plan. No outrageous fees for those extra minutes past my plan or extra data past my allotment.

IE 7 Input Change Bug

Fri May 14 16:39:18 UTC 2010

Tags: homepage tech IE webdev

In IE7 under some conditions the onchange event won't fire for input fields. I recently wanted to run javascript using jQuery to extract the name of the file and print it on the screen. To fix this I ended up extracting the logic that changes the contents of a span on the page into a function, and then calling that function inside a setTimeout call to get around this problem. I've had to use setTimeout before on a similar issue with a race condition and I'm sure glad that call exists. It's solved two of my last two IE bugs. Of course, I only run this hack with IE by checking jQuery with

if (jQuery.browser.msie) { ... }
      

How I Rate Netflix Movies

Fri May 14 16:21:46 UTC 2010

Tags: netflix rating system homepage

Just a quick rundown on how I rate movies that I watch from Netflix.

  • 5 stars - I own the movie or have changed as a person by watching it (or want to change).
  • 4 stars - I will watch the movie again, but I don't think I need this in my library.
  • 3 stars - Watched - it might not have been horrible but it wasn't anything special.
  • 2 stars - horrible movie that was either offensive, stupid or a combination of those two.
  • 1 star - I'm no longer a friend with whomever recommended this movie to me. Sending hate-mail to the studio.

A small look into my rating system.