Archive for the 'Knowledge' Category

Machiavelli On Outsourcing

May 11th, 2008 by Mike Sparr

Today I read Machiavelli’s “The Prince” which was recommended reading for my friend’s MBA education and it really got me thinking.  About 2/3 through the book, Machiavelli speaks of hiring mercenaries and how they ultimately weaken the State.  If the mercenaries are successful in their job, then the State becomes indebted to them given the mercenary could align with an adversary and destroy the State.  This invoked thought about the globalization taking place and outsourcing.  I’m curious whether the outsourcing of a company’s key functions ultimately weaken it, despite the assumed efficiency it gains, and whether there any analogs between lessons learned in “The Prince” and what we see happening today.  What should and should not be contracted?  :-)

Rate this post:

3 Votes | Average: 5 out of 53 Votes | Average: 5 out of 53 Votes | Average: 5 out of 53 Votes | Average: 5 out of 53 Votes | Average: 5 out of 5 (3 votes, average: 5 out of 5)
Loading ... Loading ...

Linux server file space used up (found audit logs as culprit)

April 10th, 2008 by Mike Sparr

We have a linux server running that hosts our internal systems like CRM.  We noticed significant slowdown of the system and failure to run batches on email.  In logging into the control panel for the server I was shocked to see 58GB of 73GB used for the disk.  Given only 9 domains and neither reported exceeding their allocated space, we didn’t know what used up all the space on the server.

I found two great resources that helped me isolate the issue.  First was identifying a series of commands that would display the largest files/directories on the server to start investigating:

# du -a /var | sort -n -r | head -n 10

Thanks to: nixCraft

I ran this command and found that /var and /var/logs and /var/logs/audit.d/  directories had 50GB of file system used up.  I found in /var/logs/audit.d/ that there were save.1, save.2 … files all over 2MB each and hundreds of them.  In searching online I learned that these audit logs were not crucial and followed instructions to remove them and turn the audit service off (given internal systems anyway).

See this post from: Frank Mash - thanks Frank!

After performing these two steps, the CRM system is running fine and faster than ever.  Our control panel reports only 5GB used of 73GB on disk and I can breathe easy for a little while.  ;-)   Hope this helps somebody else out there.

Rate this post:

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

Mac OSX Leopard Xalan, Xerces errors

March 16th, 2008 by Mike Sparr

I finally decided to “attack the mac” and get the environment working again after my Leopard upgrade.  In my prior post, I noted how the Leopard install turned off the web server and PHP (simple fix) but the major issue was killing my ability to run Castor and XML-based applications.

I scoured the forums and first deleted all copies of xalan.jar, xercesImpl.jar and xml-apis.jar.  I found the latest xalan-j package online, unzipped it and it contained the various jars including serializer.jar, resolver.jar, etc.

It took adding the -verbose:class flag to catalina.sh (extending $JAVA_OPTS variable) and various trial/error to finally get it right.  The solution was to place ALL xml-based jars in the /tomcat_home/common/endorsed/ directory.  I had them split between /common/lib/ and the endorsed directories and when I consolidated them all, everything started working.

If you use Spring Web Services (WS) then you may see the error on “could not create Envelope” and this was what we were seeing.  After placing all JARs in the common/endorsed directory and restarting Tomcat, everything worked.  I hope this helps someone from countless days of headaches.

See below the proper jars in proper directories (mine may vary based on usage):

picture-3.png

ALL xml-based jars in the endorsed directory solved xerces and xalan errors after upgrading to Mac OSX Leopard.

picture-4.png

Rate this post:

2 Votes | Average: 4 out of 52 Votes | Average: 4 out of 52 Votes | Average: 4 out of 52 Votes | Average: 4 out of 52 Votes | Average: 4 out of 5 (2 votes, average: 4 out of 5)
Loading ... Loading ...

Apache and PHP issues with Mac OSX Leopard upgrade

February 27th, 2008 by Mike Sparr

I recently upgraded my OS on my Macbook Pro to Leopard.  I must say it was as painless as possible but there are a few hiccups given I have a web server and a few other development-oriented programs running on my notebook.  Apache and PHP were not working and I have an issue with the Fire multi-chat IM client, plus some classpath issues in Eclipse IDE.

To get Apache and PHP working again:

- Preferences: Sharing: Web Sharing [turn on]

- Leopard installs PHP 5 and Apache 2.2 and I learned that it creates an entirely new config directory for apache.  I racked my brain over this one as it used to be /etc/httpd/ …  all the configs looked correct until I learned that Apache was now running from /etc/apache2/ so I edited the httpd.conf file and turned on the php5 module and restarted Apache and it worked.

- sudo vi httpd.conf  and uncomment the line w/ the PHP5 module

- sudo apachectl restart

I am still working on the Eclipse issue to get that working again and will likely use a different multi-chat client (unless Fire has an upgrade).

Rate this post:

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

New Years Day Demolition

January 2nd, 2008 by Mike Sparr

Given everyone was off on New Years Day, Jamie and I decided to continue to be productive so in the morning we took a dip in the hot tub, had some lunch, and then proceeded to remove the old 70’s paneling that adorns most of the walls in the basement.

One of our goals was to knock down the wall between the family room and one of the bedrooms to make a larger living space area but I wasn’t sure whether I’d have to hire an engineer to help us design a beam to support the load.  Much to my pleasant surprise, I learned that the “make-shift” bedroom was not a load bearing wall and the original floorplan called for 2 2×10 headers with a beam between them that rests on top of the foundation wall.  I saw the beam after removing the paneling and then tested by removing the closet, then removing some studs and the entire wall was free standing!  See demo pics below:

2344_basement_demo01.jpg

Wood paneling and spare bedroom.  See removed panel exposed beam the covers the span.

2344_basement_demo02.jpg

We demoed the closet that was in the bedroom, and then I got the fun job of punching and kicking out the particle board.  Jamie got in on the “fun” to and man-handled the remaining sheet into submission.

2344_basement_demo03.jpg

Dust still settling as I knocked out the remaining studs for the wall.  The two rooms are now opened up.

2344_basement_demo04.jpg

As soon as I decide where to re-rout the electrical switch, I’ll knock out those remaining two studs on the right.  Now we just have to find a place to haul all the scrap material - I’ll be re-using some of the studs to build an in-wall entertainment unit at the far end.  I’m also installing the electrical components into the wall to the right so there will be access from under the stairs for wiring, etc.  Enjoy!

Rate this post:

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

New Years Treat - Install Apps on iPod Touch

January 2nd, 2008 by Mike Sparr

I had a couple days off and so did everyone else. Well that didn’t stop me from jailbreaking my iPod Touch, installing new apps and on the non-geeky side, ripping down paneling and knocking out a wall in my basement to make a large family room. We’ll ignore the latter project for now and I thought I’d share my discovery for opening up your iPod Touch to install at a minimum, the same apps that are included on the iPhone.

Screen Snaps of my iPod Touch (now multiple pages of apps):

img_1882.jpg

img_1883.jpg

img_1884.jpg

Read below to find out how to install additional applications on your iPod Touch. No tech support offered but it does work, all the steps are included and some additional snapshots at the bottom of this post. I hope this helps!

(more…)

Rate this post:

2 Votes | Average: 5 out of 52 Votes | Average: 5 out of 52 Votes | Average: 5 out of 52 Votes | Average: 5 out of 52 Votes | Average: 5 out of 5 (2 votes, average: 5 out of 5)
Loading ... Loading ...

Actual VC Due Diligence Checklist

December 19th, 2007 by Mike Sparr

A friend of mine is a seasoned Venture Capitalist based in Austin Texas and was kind enough to share his former fund’s due-diligence checklist with me. This helped me prepare for our own fundraising and ensure we had everything in order ahead of time. I was allowed to share this list and thought it might be helpful to others - it’s great for any company, whether fundraising or not, in that it forces you to actually have a plan and your documentation, strategy and financial/legal documents in order. ENJOY!

(more…)

Rate this post:

1 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 5 (1 votes, average: 5 out of 5)
Loading ... Loading ...

Aspect Oriented Programming - Pointcut Syntax Examples

December 15th, 2007 by Mike Sparr

From Spring Framework 2.5 Tutorial. Given AspectJ pointcut expressions can seem somewhat cryptic, I thought sharing these examples might be useful.

(more…)

Rate this post:

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

Sending Files To Your LG VX8350 Using Bluetooth On Mac

November 26th, 2007 by Mike Sparr

I was using Bluetooth and tried to use the OBEX commands to send a file to my LG VX8350 phone but the phone was locked down for that file type. It refused the file. I then chose the browse option, navigated to the MyPictures folder, and transferred the file successfully. This may be a helpful workaround for anyone trying to test pictures, etc. on cell phones. (hint)

See the error you may have faced and then see my solution below (for Mac OSX):

(more…)

Rate this post:

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

Why Flash Will Appear On Mac But Shockwave Files Will Not

November 23rd, 2007 by Mike Sparr

picture-6.png

Does this look familiar? If so, I may have your answer - read on…
I recently had to view an application being built by one of my company’s partners and it uses Shockwave to render images/media. Upon trying to view the application, the “missing plugin” icon was displaying and could not find a suitable plug-in to play the application.

Given I am on an Intel-based Mac, I learned that for Shockwave to run, you have to exit out of your browser, configure the Application (Firefox) to run in Rosetta Emulation Mode, then download Shockwave, install and you’re good to go. Come on Adobe! Let’s get Shockwave running in Universal Binary - after all, it’s Universal right? :-)

Instructions From Adobe

Rate this post:

3 Votes | Average: 5 out of 53 Votes | Average: 5 out of 53 Votes | Average: 5 out of 53 Votes | Average: 5 out of 53 Votes | Average: 5 out of 5 (3 votes, average: 5 out of 5)
Loading ... Loading ...

Pass Value From I-Frame To Parent Page

November 22nd, 2007 by Mike Sparr

Upon launching our new website, we wanted to enable a keyword availability checker so people can check the availability of keywords before ordering. To make it more convenient, I wanted the keyword they were checking to automatically populate the “Desired Keyword” field on the order form. Given the keyword checker was running on a different server and pulled in using IFRAME, due to security restrictions on browsers, it could not trigger events on the parent page.

SOLUTION: URL Hash (#)

(more…)

Rate this post:

2 Votes | Average: 5 out of 52 Votes | Average: 5 out of 52 Votes | Average: 5 out of 52 Votes | Average: 5 out of 52 Votes | Average: 5 out of 5 (2 votes, average: 5 out of 5)
Loading ... Loading ...

Determine Who Owns A Domain Name

November 3rd, 2007 by Mike Sparr

Perhaps there is a domain name you want to find the owner, or perhaps just check the nameservers, status, domain expiration date or other information about a domain name.  You can look in a variety of places but my favorite is the following:

http://www.whois.sc

Click the link above and enter your website address.  You may learn more than you knew about your site, including similar sites, Alexa search ranking, SEO plain text, etc.

Rate this post:

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

Test Your Website On Multiple Networks

November 3rd, 2007 by Mike Sparr

It happens to us all.  Your website is not accessible and you need to know if it’s just your computer, your ISP or if it’s a serious problem.  Usually this is a DNS issue with your ISP or internal network but there is a tool you can use to view the responsiveness of your domain from servers around the world.

http://internetsupervision.com

Click the link above and on the right-hand side, enter the website address in question.  You can leave the email field blank.  Click the submit button and wait for the results.

Rate this post:

1 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 5 (1 votes, average: 5 out of 5)
Loading ... Loading ...

Mac OS X Startup button combinations - If ever a problem occurs

November 3rd, 2007 by Mike Sparr

I am reprinting recommended startup sequences from a Mac forum for my personal reference. Thanks to MOFS for the original post:

OS X Startup button combinations

What to do if it all goes wrong…

Keywords: OS X; startup; won’t; boot; screen; funky; help…

(more…)

Rate this post:

1 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 5 (1 votes, average: 5 out of 5)
Loading ... Loading ...

Water Heater Pilot Repair

September 24th, 2007 by Mike Sparr

After installing the new thermocouple, the hot water heater worked and heated the water in the tank. Thereafter, the pilot went out yet again. I contacted the retailer and they warrantied the gas valve but would have to charge me for labor to install. I decided to remove and replace the part myself and learned a few tricks along the way.

(more…)

Rate this post:

2 Votes | Average: 4 out of 52 Votes | Average: 4 out of 52 Votes | Average: 4 out of 52 Votes | Average: 4 out of 52 Votes | Average: 4 out of 5 (2 votes, average: 4 out of 5)
Loading ... Loading ...

Hot Water Heater Issues

September 23rd, 2007 by Mike Sparr

While I was traveling last week, my wife ran into issues with our 15-month-old hot water heater; the pilot light would not stay lit. She managed to re-light it and got hot water for a single use but it went out again. Upon my return, we once again faced cold water. We turned to the Internet to try and diagnose the issue and found that if a pilot would light, but not stay lit, it could be 3 potential issues:

(more…)

Rate this post:

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

How To Build A Cedar Fence - Part 2

September 13th, 2007 by Mike Sparr

We layed out the boards on two 2×4s held up by cinder blocks so we could stain them. After about 30-45 minutes, we flipped over the boards and stained the opposite site. Another 45 minutes and although still damp, I proceeded to install the first batch and get the fence started. The original fence was out of plumb so it will take a little finesse for a couple custom pieces to tie it all together. See below.

(more…)

Rate this post:

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

Build a Cedar Fence using chain link fence posts - part 1

September 9th, 2007 by Mike Sparr

In my last post (below) I upgraded the electrical service to the house to support a hot tub and any other needs in the future. Prior to the delivery of the hot tub, I decided to install a 6-foot cedar privacy fence using the existing chain link fence posts. Given my neighbor has a dog, we thought it would be best to leave the chain link side towards his yard to protect our fence.

(more…)

Rate this post:

1 Votes | Average: 4 out of 51 Votes | Average: 4 out of 51 Votes | Average: 4 out of 51 Votes | Average: 4 out of 51 Votes | Average: 4 out of 5 (1 votes, average: 4 out of 5)
Loading ... Loading ...

Electrical Service Upgrade

September 8th, 2007 by Mike Sparr

To support the new hot tub, and any other upgrades to home appliances and amenities, we decided to upgrade the electrical service to the house from 100 amp to 200 amp. This requires collaboration with the carpenter (me), city (building permits/inspectors), electrician and power company. You first get your permits, then schedule w/ the utilities (24 hours notice) to shut the power off to the house, then have the electricians install the new service so inspectors will pass it and “green tag” the job, otherwise the power company will not hook the power back up. See below:

(more…)

Rate this post:

1 Votes | Average: 4 out of 51 Votes | Average: 4 out of 51 Votes | Average: 4 out of 51 Votes | Average: 4 out of 51 Votes | Average: 4 out of 5 (1 votes, average: 4 out of 5)
Loading ... Loading ...

Creating an Email Queue using SQL, PHP, Shell and Cron

August 29th, 2007 by Mike Sparr

I recently ran across an issue where emails were being rejected from one server as it did not resolve reverse DNS. It was sending email alerts for certain events and we had no way to tell if mails were failing as spam filters were dumping them into a black hole somewhere. The solution was to modify our system to publish alert emails to a database table instead, then have a separate application check for unsent mail in the database and send it using SMTP authentication from our standard mail server. This is likely a common need for various systems so I thought I’d share the design/source to help others.

(more…)

Rate this post:

8 Votes | Average: 4.38 out of 58 Votes | Average: 4.38 out of 58 Votes | Average: 4.38 out of 58 Votes | Average: 4.38 out of 58 Votes | Average: 4.38 out of 5 (8 votes, average: 4.38 out of 5)
Loading ... Loading ...