RSS
 

Archive for the ‘Personal’ Category

Customer Review – RockAuto.com

27 May

I have a 1990 Ford F-250 pickup truck that is pretty much a beater, but it’s a damn workhorse. I love the truck, but I am always fixing things on it. ;) Pretty soon it will be a 2010 model. Anyway, recently I was hauling a load of stone, and the driver’s side rear spring hanger’s rivets broke lose and bent the hanger away from the frame. On closer inspection, the rear hangers on both side are quite rusted, and they should have been replaced years ago.

I checked around local junk yards, and most of them wanted anywhere from $40 to $60 a piece for replacement hangers, or they just didn’t have them, or only had 1 (and I’m replacing both). So, being employed in a field directly tied to the internet, I checked Google. If any of you have ever searched for car parts online, you know that RockAuto.com carries pretty much everything you can find, and their prices are very reasonable (usually the cheapest outright on Google Shopping).

Lo and behold, they have my part — more importantly, they have at least 2 — new — for $20 ea. plus $10 shipping. Mondary morning (May 24, 2010) I placed the order. When I came home from work on Tuesday, the parts had arrived.

With the recent string of crappy companies I’ve been dealing with in terms of purchasing online, RockAuto.com is the most amazing breath of fresh air ever (pardon the poetical slathering, but seriously … they are awesome.) Do not hesitate to buy from them!

 

FedEx Shipping XML API Idiosyncrasies — the saga continues (PHP & Soap envelopes)

24 May

I am doing a fairly large implementation using the exposed APIs of all 4 major shippers.  I’ve posted a few notes on USPS, and I’ve been using UPS for so long it almost seems to make perfect sense.

So, while I have to applaud FedEx for the granularity and versatility of the API they have exposed, it has caused me severe headaches due to the PHP SimpleXML issues it brings up with SOAP envelopes — particularly nested soap envelopes.

Long story short, the jist of this post is to help others deal with the responses they receive from the FedEx servers (if, like me, their pre-packaged methods do not implement tidily into your application structure).

Here is a sample response of a rate request (NOTE: this is a “Warning” response, only here for demo purposes):


   <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
    <env:Body xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <v8:RateReply xmlns:v8="http://fedex.com/ws/rate/v8">
            <v8:HighestSeverity>WARNING</v8:HighestSeverity>
            <v8:Notifications>
                <v8:Severity>WARNING</v8:Severity>
                <v8:Source>crs</v8:Source>
                <v8:Code>556</v8:Code>
                <v8:Message>There are no valid services available. </v8:Message>
                <v8:LocalizedMessage>There are no valid services available. </v8:LocalizedMessage>
            </v8:Notifications>
            <v8:TransactionDetail xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
                <v8:CustomerTransactionId>TC05_Rate_Package_Groups_POS</v8:CustomerTransactionId>
            </v8:TransactionDetail>
            <v8:Version xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
                <v8:ServiceId>crs</v8:ServiceId>
                <v8:Major>8</v8:Major>
                <v8:Intermediate>0</v8:Intermediate>
                <v8:Minor>0</v8:Minor>
            </v8:Version>
        </v8:RateReply>
    </env:Body>
</soapenv:Envelope>
    

There are lots of ways you might envision accessing that precious “RateReply” tag, but to keep it simple and avoid inferences, you get to it like this:

$xml = simplexml_load_string ($xml_from_above);
$xml->children(‘http://schemas.xmlsoap.org/soap/envelope/’)->Body->children(‘http://fedex.com/ws/rate/v8′)->RateReply;

I do suppose this is obvious enough, but believe me, the nuances that can throw it off can still cause you to inadvertently lose ridiculous amounts of time on it.

Furthermore, if you prefer to do direct PHP cURL XML calls (which you probably do given that you’re reading this), you’ll find that FedEx is not terribly interested in your type of programmer. To find a simple sample XML call, you’ll have a tough time (although I managed to find it in the WSDL downloadable ZIP). However, this is a very basic call. To add additional data (such as the exotic field that apparently no one would ever think to use — “InsuredValue”) — this field has the form (EXACTLY, stuff in brackets is what can be changed) “<InsuredValue><Currency>[currencytype]</Currency><Amount>[float]</Amount></InsuredValue>”

The “InsuredValue” node/field must go immediately before the “Weight” node in the “RequestedPackageLineItems” node. (This of course reference FedEx API v8 — things may be different in future releases.)

 

A few thoughts on How To Train Your Dragon

17 May

Cecily and I saw this last night as a double feature (paired with Iron Man 2) at The Family Drive In Theatre in Stephens City Virginia.  Short and simple — great movie. The plot was intriguing and somewhat surprising (not like EUREKA! but Oooooh … interesting). Had all the appropriate elements, but most importantly, it kept me interested.

Summary: a young boy growing up in a village of dragon-slaying Vikings is neither strong enough to slay a dragon, nor eager to do so. In fact, he befriends one, and eventually is able to reveal things to both the dragons and the Vikings that neither knew.

Good date film, good kids film, and good manly man film as long as you don’t tell anyone how much you love it (and I loved it!). ;)

 
 

The Family Drive-In Theatre (Stephens City, Virginia) — new ownership

17 May

Recently, The Family Drive-In Theatre in Stephens City, Virginia came under new management, and I had some thoughts about the experience that I conveyed to the new owners. Rather than write a formal review here, I’m simply posting the contents of the email:

Hi, just wanted to give feedback on the theater experience.  I'll try to keep it brief, but my wife and I watched Iron Man 2/How To Train Your Dragon.

The new ticket price is still a deal, so that is good, but what I most wanted to comment on is the "announcing" over the broadcast system.

Please, if you really want to do a message like that, record it in advance, and keep it concise.  It was some very boring rambling about the new ownership, the new website, patronizing the concession stand, and while all these points are worth knowing about, it seemed like 10 minutes.  Record it early, keep it brief and upbeat.

Also, the film cut out quite a few times in the middle.  It would have been nice if someone came over the system and explained what was going on.

Otherwise, same old theater, and I look forward to seeing more movies there.  It is also a welcome change that you are bringing new movies, although an unfortunate side effect to that is increased wait times and longer lines.

Anyway, just my two cents, thought you'd be interested.

And the reply (addended 5-18-10):

Thanks Jeremy for the feedback.

We will attempt to keep announcements short.   As for the projector cutting out, it normally doesn't do that--it was pulling the film harder than it should have been on one of the projectors and we had to adjust the film tension a few times to keep from damaging the print.

look forward to seeing you again.

Sincerely

Jim Kopp
Family Drive-In Theatre
Stephens City, VA 22655

www.thefamilydriveintheatre.com
 
 

A few thoughts on Iron Man 2 (Review)

17 May

Cecily and I went to see [wiki]Iron Man 2[/wiki] at The Family Drive In Theatre in Stephens City, Virginia (not necessarily relevant, but I thought I would mention). Actually, the film was paired with How To Train Your Dragon (film) — very good pair. Anyway, I wanted to jot a few notes/give a small review (and this should be fairly brief).

Overall it was a fair to good movie — certain it would have been just as good as the first had it actually been the first. That being said, in my opinion it went a little over the top with the cheese/tongue-in-cheek/comic book cliche. The biggest example to me is the pepper spray scene. While funny, the timing was very awkward and it really kind of cheapened the scene.

Best line of the movie? (paraphrased) “Excuse me I’m fighting off a Hammer-Roid attack.” :-D That is good stuff!

Also another major high point? [wiki]Scarlett Johansson[/wiki] in tight leather (a la Uma Thurman — The Avengers) and a very hot hairdo.

So while the movie didn’t wow me, it was actually very good, just familiar and so it didn’t excite me, but it’s certainly worth seeing, and I would definitely see it again.

And the icing of the experience was when our two-year-old son woke up at the end of the movie (when AC/DC was playing over the credits) and very sleepily headbanged and rocked out. :)

[SPOILER!]

Oh and if anyone else wondered what they found in the teaser at the end of the credits, apparently it was the [wiki]Hammer of Thor[/wiki].

 
 

“How not to run an online business” » JavaSigns.com Customer Experience and Review

29 Jan

Even though my experience with this company was quite painful, long, and drug out, I’m going to attempt to keep this review short.

Bottom line: Although the design and ordering process is very easy, streamlined, and simple, placing an order with this company, based on my personal experience, runs a very high risk of cumbersome delays, phone tag, and a major investment in your personal time.

Read the rest of this entry »

 
 

Linux BASH Script: Convert mp3 to avi with static image (command line)

21 Jan

This is a script I made to take advantage of the ffmpeg package in linux to quickly convert an mp3 to avi using a static image. I personally use this technique for uploading my songs to YouTube. I originally found the conversion command here.

All you need is a linux distro with ffmpeg installed, a jpeg or png image, and an mp3. Note: It is highly likely other image formats, audio formats, and output video formats will work, but I have only used jpeg/png+mp3+avi and so cannot attest to results otherwise.

Usage: bash mp32avi.sh <image_file> <mp3_file> <output_file.avi>

Code (mp32avi.sh):

#!/bin/bash
FFMPEG=`which ffmpeg`
if [ "$FFMPEG" = "" ] ; then
	echo "Please install ffmpeg.";
	exit 0;
fi
if [ $# != 3 ] ; then
	echo "Usage: $0 <image_file> <mp3_file> <output_file.avi>";
	exit 0;
fi
if [ ! -f $1 ] ; then
	echo "Source image '$1' not found.";
	exit 0;
fi
if [ ! -f $2 ] ; then
	echo "Source mp3 '$2' not found.";
	exit 0;
fi
if [ -f $3 ] ; then
	echo "Output file '$3' exists.  Overwrite? (y/n)";
	read CONFIRM
	if [ "$CONFIRM" == "y" ] ; then
		echo "Overwriting '$3'"
	else
		if [ "$CONFIRM" == "Y" ] ; then
			echo "Overwriting '$3'"
		else
			echo "Operation canceled.";
			exit 0;
		fi
	fi
fi
TIME=`$FFMPEG -i $2 |& grep 'Duration' | awk '{ print $2; }' | sed -e 's/,//g'`
$FFMPEG -loop_input -i $1 -i $2 -acodec copy -y -t $TIME $3
 

Coffee Cup Half Moons now has an official URL Shortener!

27 Oct

http://cchm.us/

Based on the same engine as http://abv8.me/ and http://ihrt.it/ (developed by my web company, geeXmedia).

I plan soon to launch URL shorteners on http://tharp.me/ and http://tharp.us/

 

I always wondered how a sewing machine works!

29 Jul

http://home.howstuffworks.com/sewing-machine1.htm

Beautiful diagrams explaining it all.

Actually, I hadn’t really heard of the bobbin-less “chain stitch.” I can see why it was invented first.

However, I could never understand how the top thread with a bobbin worked — now I see the upper thread wraps all the way around the bobbin assembly, looping the top around.

Obviously, there is a lot of thread twisting going on, and I still don’t really see how the top thread goes around the bobbin when it is mounted in on a pin, but at least I get the concept!

 
 

Independent Film Casting Call “The House at the End of the Lane”

10 Jul

This is the transcript of an email I received from Steve Smith — just passing the word.

Hey, Everyone!

I hope you are having a great Summer!  I just wanted to let you know about an opportunity to be in an independent film:  The House at the End of the Lane.  If you like the Sixth Sense, suspense films by Alfred Hitchcock or stories by Stephen King, I think you would really enjoy this film.  There are numerous and varied parts available.

Cinematographer Glenn Paoli will be working with me on this film.  Glenn will also be composing the musical score.  Glenn has extensive experience in all facets of production.

Casting/Audition times are:  Saturday, July 11th, 4:30 p.m. – 6:30 p.m.; Sunday, July 12th, 1:00 p.m. – 3:00 p.m.;  and, Thursday, July 16th, 6:30 p.m. – 8:30 p.m.  All of these auditions will take place at the Hardy County Public Library in Moorefield.  If available, please bring an 8 x 10 photo and an acting resume.  A dramatic monologue would be nice, but is not essential.

I realize that this is a new experience for most of us in this area.  With the growing amount of talent and technical skill which our area can offer, I believe that this can be a great opportunity for all.  If there is someone you know who might be interested in auditioning, have them contact me.  If you have any questions, please let me know.

Thanks,  I hope to see you all soon!
Steve Smith (304) 851-6535

 
No Comments

Posted in Personal