Google Chrome Frame

November 25th, 2009 Eric Silva No comments

I installed Google Chrome Frame about a month ago, and I am very impressed with how responsive and quick Internet Explorer is with JavaScript intensive web pages now.  If you use a lot of JavaScript intensive websites, e.g., Facebook, Gmail, Google Maps, Google Calendar, etc., you will notice a significant improvement in performance when using IE with the Chome plug-in.

I was also interested to find out that the new Google Wave application only works with IE if you have the plug-in installed.

The plug-in works in Internet Explorer 6, 7, and 8, and requires you to have Windows XP, Vista, or Windows 7.

Modeling in Color

November 24th, 2009 Eric Silva No comments

I just finished leading the modeling session as chief architect of the problem domain (PD) for a new application, and I had forgotten how exhausting the process is.  We had a fantastic moderator who did well to keep us on point and focused toward our objective.  We have about 50 or so objects, and I think we will need about 10-20 more moment-interval (pinks) to handle the additional audit trail requirements.

I am working on finishing up merging and formatting the model notes from all the developers who participated.  I should be done with that by the end of the day.  Then it’s on to the real work of breaking this thing down into discrete features that we can put into work packages and get this thing built.

I did have a few “Being John Malkovich” moments during the modeling session when I thought Jeff De Luca was in my head controlling my actions, but it was all for the better.

The great thing about modeling a PD is the sense of accomplishment at the end of two weeks and seeing your problem domain in front of you on a 6’x10’ sheet of paper.

ACES_4372

Now I need to starting working on the UI and SI design.

Kenwood System for the Ford F-150

October 31st, 2009 Eric Silva 1 comment

My old Kenwood KDC-519 receiver in my F-150 died two weeks ago so I decided to replace it with a new Kenwood Excelon KDC-X492.  I liked the KDC-X492 because it has both 3.5mm and USB interfaces on the front so you can connect your iPod and other auxiliary devices.  It also supports Bluetooth, Sirius/XM satellite, HD radio, and MP3, AAC and WMA formats.  It puts out 50W maximum which is plenty to power the new KFC-C6882ie 6×8” speakers I purchased to replace the factory 6×8s in the doors and in the rear.  These speakers sound great, and are a great replacement for the factory speakers.  Each speaker is rated at 60W, and has a peak power handling of 240W.  They have a 92dB/W sensitivity and a frequency response of 25Hz to 25kHz.

If you are looking for a good set of replacement components for your Ford or Mazda.  I highly recommend the Kenwood KDC-X492 with a set of KFC-C6882ie speakers.

Categories: Audio, Automobile Tags: , ,

PyXML for Python 2.5

October 30th, 2009 Eric Silva No comments

I was looking for a version of PyXML for Python 2.5 and had some difficulty due to the project being unmaintained.  I was able to find someone that compiled PyXML 0.8.4 for Python 2.5.  You can find it here.

Categories: InterWebNet, Programming Tags: ,

Can’t Find Shit on Oracle’s Website

October 21st, 2009 Eric Silva No comments

When Oracle first announced that they were acquiring BEA, the first thought that went through my head wasn’t “I wonder if Oracle AS will be dropped in favor of WebLogic.”; it was “Oh great! Now I won’t be able to find shit on the WebLogic forums too.”

It’s been several months since the acquisition, but today I got fed up.  BEA used to have a website, dev2dev.bea.com, where they would post clever tips, tricks, etc. about the WebLogic platform.  I would have thought that Oracle would have kept all of this “useful” content alive after the website consolidation, but I was wrong.  It wasn’t bad enough they killed the forums at BEA, which has since caused all Google searches to come up with a plethora of dead links since the BEA URLs no longer exist.  Links from other forums to BEA listings are now worthless as well.

But hey, I can always go over to the forums at Oracle’s website and search there right?  One would think that was a logical solution, that is until they found out the honest truth:  Oracle’s search engine is powered by the Total Perspective Vortex.  At least that is what it feel’s like each time I attempt to find any God-damned thing on their site.

All I wanted was the article about the Thread Dump Analyser (TDan) tool that was written a while back.  It’s the best tool out there IMHO for performing thread dump analysis and being able to represent the output in a visual way.  It’s a good thing I keep a backup copy of the tool available.

Good Night.

Pfizer is the new Wyeth

October 14th, 2009 Eric Silva No comments

It’s official.  The FTC and CCB have both approved Pfizer’s acquisition of Wyeth. No doubt the Collegeville airspace is going to be a bit more busy over the next few weeks.

You can read about it here.

I’ll be spending the rest of the week performing a global search and replace on all the professional social websites I visit.

Categories: News, Observations Tags:

Windows Bulk File Move Script

October 13th, 2009 Eric Silva 1 comment

We have some applications that leave files sitting in a folder location out on some file server.  Eventually the disk space gets used up, or Windows starts choking because there are too many files in a directory, etc.  To delete the ‘old’ files, a support technician will try to connect to the file share, sort the files by date, and delete the files within a date range, e.g., older than a year.

What can happen, especially on a Window server, is that the operating system will attempt to load all the file information into memory, so that you can see it, and then tell it to sort all those files by date, which in turn, increases the time and memory needed by the OS to accomplish this.  If the file size/quantity is too great, the problem that caused you to want to clean up the disk space will reappear and choke Windows once more.

After going through this more than twice, I decided to write a JavaScript and execute it using the Windows Scripting Host (WSH).  The script performs very well and was able to iterate through a directory of 700,000+ files in a matter of an hour.  This was including the log statements from being enabled.  Disabling the ‘Echo’ statements may increase performance.

Here is the script:

var fso = new ActiveXObject('Scripting.FileSystemObject');
var argArray = new Array(WScript.Arguments.Named("src"), WScript.Arguments.Named("s"), ".");
var inSrcDirName = coalesceArray(argArray);

argArray = new Array(WScript.Arguments.Named("dest"), WScript.Arguments.Named("d"));
var archiveDir = coalesceArray(argArray);

argArray = new Array(WScript.Arguments.Named("year"), WScript.Arguments.Named("y"));
var beforeYear = coalesceArray(argArray);

if (archiveDir != null) {
	if (!fso.FolderExists(archiveDir)) {
		fso.CreateFolder(archiveDir);
	} else {
		fso.CreateFolder(archiveDir + "1");
	}
}

var gfldr = fso.GetFolder(inSrcDirName);

ArchiveFiles(gfldr);

function ArchiveFiles(fldr) {
	var i, bias;

	WScript.Echo("Loading all files...");
	for (files = new Enumerator(fldr.files); !files.atEnd(); files.moveNext()) {
		f = files.item();
		dt = new Date(f.DateCreated);
		bias = dt.getTimezoneOffset();

		dt.setMinutes(dt.getMinutes() - bias);

		fileYear = dt.getFullYear();
		//WScript.Echo(f.Name + ":" + fileYear);
		if (beforeYear > fileYear) {
			WScript.Echo("Moving \"" + f.Name + "\" with year " + fileYear + " to " + archiveDir);
			f.Move(archiveDir+"\\" + f.Name)
		} else {
			WScript.Echo("Skipping \"" + f.Name + "\" with year " + fileYear);
		}
	}
	WScript.Echo("Done loading files.");

}

function coalesceArray(arr) {
	var i;
	for (i = 0; i < arr.length; i++) {
		if (arr[i] != null) {
			return arr[i];
		}
	}
	return null;
}

Executing the script is performed by passing a source directory, destination directory (to move the files to), and a year to mark the year that all files must be equal to or younger than to not be moved as parameters.

Example:

cscript movefiles.js /s:c:\myapp\data /d:c:\backup\archive_2006 /y:2007

This will move all files from the c:\myapp\data folder that were created before January 1, 2007 to the c:\backup\archive_2006 folder.  The script can be easily modified to use the ‘modified’ or ‘accessed’ date instead.

Hope this helps someone else as much as it helped me.

Stoudts Oktober Fest

October 13th, 2009 Eric Silva No comments

Finally got around to picking up a case of Stoudt’s Oktober Fest.  It’s still a high quality brew that never disappoints.

Categories: Beer Tags: , ,

Beck’s Oktoberfest

September 13th, 2009 Eric Silva No comments

Just a quick note to say that Beck’s Oktoberfest is as good this year as it was last year.  I can’t wait for Stoudts to distribute theirs.

Categories: Beer, Observations Tags: , ,

Orange Chicken Stir Fry

September 7th, 2009 Eric Silva No comments

Adapted from original recipe by Stephanie Gallagher.

I wanted something new tonight for dinner, so I found this basic chicken dish for my family of picky eaters.

Prep Time: 10 minutes
Cook Time: 5-10 minutes

Ingredients

  • 1 lb. boneless chicken breast (cut into 1-inch pieces)
  • 1/3 cup corn starch
  • 1/4 cup soy sauce
  • 1/2 cup orange marmalade
  • 1 tbsp minced garlic
  • 1 tsp minced ginger (or dried ginger works too)
  • 1/4 tsp crushed red pepper flakes
  • Kosher salt and freshly ground black pepper, to taste
  • 2 tsp canola oil

Directions

  1. Place chicken breast pieces in a gallon-size zip-top plastic bag.  Add cornstarch.  Toss to coat.
  2. In a small bowl, whisk together the soy sauce, orange marmalade, garlic, ginger, and red pepper flakes.  Season with salt and pepper to taste.
  3. Heat wok or large deep skillet over high heat.  Add canola oil.  Add chicken.  Stir-fry until the chicken is no longer pink.
  4. Pour the sauce over the chicken.  Stir-fry to coat the chicken.

Serve immediately with hot rice.

Categories: Recipes Tags: , ,