Archive for the 'Knowledge' Category

Hard Boiled Eggs While Camping

January 28th, 2007 by Mike Sparr

I learned a very cool tip this evening I thought I would share.  You can make hard-boiled eggs while camping by filling a styrofoam cup with water and placing on the coals or in your campfire.  One would think that it would burn but instead, the cup will burn down only to the level of the water.  You can boil eggs and then use tongs to remove it.  - Happy Camping!

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 fix PHP error with Mac OS X 10.4.4 or later update

January 18th, 2007 by Mike Sparr

It took some searching but I learned that the Apache config file with the update was modified and turned off PHP. The fix is to do the following:

(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 ...

Mac Airport Issue on Intel Chips with OS 10.4.5

January 18th, 2007 by Mike Sparr

Ever since the last couple updates of the Mac OSX software, I’ve been upset with things breaking.  Two months ago it killed the PHP server running on my machine and I’ve been too busy to find out how to get it running again.  This past month I cannot automatically connect to the wireless networks in my offices even though they are in the preferred network list and used to work.

I searched Apple’s support forum and found everyone else is having the same issues (with Airport wi-fi auto connect).  For the past month I’ve settled with having to open Network Preferences every morning and night and switching the priority of the network name or to “Automatic” mode and “praying”.

Well the forums suggested a fix and that was to delete the networks listed in the preferred network list and insert them from scratch.  It worked for my home network and I’ll try it at the office in the morning.  I still haven’t found a fix to get PHP running again which is very annoying.

Here’s the thread about the Airport wi-fi auto connection issue:

http://discussions.apple.com/thread.jspa?messageID=1884221�

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 make homemade Almond Roca

December 21st, 2006 by Mike Sparr

In 2005, I learned how to make Almond Roca, which is essentially toffee candy with chocolate and almonds within and dusted on top. After sharing my treats with friends and family, many have expressed interest in how to make it. Tonight I made my first holiday batch and took photos throughout the process. Here is a step-by-step tutorial on how to make Almond Roca.

(more…)

Rate this post:

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

Should EBay be worried about Google or Verisign?

December 1st, 2006 by Mike Sparr

The answer is likely both, but I see Verisign as a larger threat in the commerce space. For a while now, I’ve been noticing some of the aquisitions Verisign has been making and I think they are slipping in “under the radar” while so much focus is on Google. I think EBay should pay close attention to Verisign who has a very deadly set of tools and the money to go after the commerce and marketplace space. They are emerging as a leader in security, commerce, mobile and RFID which will be huge players in commerce in the future.

Notable Assets:

  • Network Solutions (domain registrar and web hosting)
  • Payflow Pro (payment processing and connectivity to banks)
  • Verisign Security Services (SSL certs and more - trusted, secure brand)
  • MonsterCommerce (hosted online storefronts w/ over 6000 stores)
  • MQube (SMS aggregator and solution provider - mobile solutions)
  • Jamster (mobile marketing solutions)

See the following recent press releases:

How can EBay compete?

I think larger companies like EBay and Yahoo! should be looking for small alliance partners (hint-hint) who can sidestep the beauracracies they have become to allow a more nimble and targeted response to competition. The M&A strategy simply adds more complexity and yet even more hoops to go through but if they co-fund R&D with smaller firms and share in service royalties, leverage their strength (brand, money and huge customer base) and the smaller firm’s strength (speed and a strong pulse on ‘happenings’), I think they would have a deadly combination.

http://www.goomzee.com

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 ...

Vonage VOIP Phone Service vs. AT&T CallVantage

November 21st, 2006 by Mike Sparr

As a customer of both AT&T CallVantage (over a year) and recently Vonage, I thought I would write a brief comparison based on my experiences thus far. Both boast the same features except for a few exceptions. I’ll also look at sound quality, availability and service.

(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 ...

Upgrade Email Piping For Kayako 3 on Ensim

November 16th, 2006 by Mike Sparr

Normally my sysadmins install and upgrade software on my servers but as I grew impatient last weekend for one request, I decided to upgrade our support system myself. One feature was not working, however, which was the email parsing and auto ticket generation from incoming emails. I found that it worked slightly different with version 3 compared with version 2.

(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 ...

One Question I.Q. Test

October 27th, 2006 by Mike Sparr

Here’s a one-question IQ Test to help you decide how you should Spend the rest of your day…

There is a mute who wants to buy a toothbrush. By imitating the Action of brushing one’s teeth, he successfully expresses himself to the shopkeeper and the purchase is done.

Now, if there is a blind man who wishes to buy a pair of Sunglasses, how should he express himself?

Think about it first Before scrolling down for the answer…

(more…)

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 ...

Keep your resume on-hand always

October 23rd, 2006 by Mike Sparr

How many times have you been away from your computer and wanted access to a copy of your resume? Montana Worker allows users to post their resume and profiles anonymously, meaning employers cannot view your profile unless you apply for a position. You can use this free service to store and keep an up-to-date resume that will be accessible from any computer connected to the Internet.

Create A Free Account And Optional Private Profile Today!


Business Owners - post your jobs for FREE on MontanaWorker.com. You receive automatic alerts of applicant inquiries, browse all public resumes and can outsource your online recruiting function to MontanaWorker for free. Start posting job positions on the site and simply refer your other ads to the site for applicants to apply. To help cover costs of providing this free service, we have an optional premium listing for $10, however that is purely optional.

Google search for Montana Jobs - see the add

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 ...

Pay-Per-Click Advertising (Google Adwords)

October 17th, 2006 by Mike Sparr

I often refer customers and potential customers alike to this article. I thought I would post a link to it so others can learn more about the strategy to online marketing leveraging Google’s Adwords program.

Google Adwords Strategy/Tips Article

For $5 to start and as little as $15 (realistically) per month, you can significantly increase your website traffic. If you read and apply the concepts in this article, you will hopefully generate qualified leads that turn into sales or inquiries instead of just “traffic”. - Enjoy!

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 ...

Creating Your Own RSS Feed

October 1st, 2006 by Mike Sparr

My friend Josh Wagner, network admin for CTG and famed author of the Periphery Stowe series, recently inquired about RSS feeds. I thought I would take a moment to publish an article on RSS and how to create your own. In my example, I wrote the syntax in PHP but you could easily translate this logic to any programming or scripting language.

RSS feeds are rather simple and standardized format for listing articles.

CREATING YOUR OWN RSS FEED:

(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 ...

More AJAX and SOAP web service interaction

August 21st, 2006 by Mike Sparr

Well I lost a day of my life getting this all to work so I thought I would save others their precious time. I recently embarked on interacting with a web service I built for a new service I’m launching. I decided to make the web client user-friendly and leverage AJAX to interact with the web service. There are hundreds of articles out there on the topics and some tools from IBM and others, but most were overkill or forced the result data to be converted into <div> or <table> elements.

When I had mastered the XMLHttpRequest object I ran into an issue, I wanted to test out my app by loading an xml document containing a SOAP request envelope and send it to my web service as a POST. I also wanted to reuse my xmlHttp object. It sounds simple but I ran into the following issues:

  1. Mozilla errors when trying xmlHttp.open a second time
  2. Security errors when trying to access an outside URL
  3. cURL issues sending text/xml Content-Type as POST
  4. XML declaration issues where PHP added underscore (xml_version)
  5. Likely others, but I got them to work

Here’s how I solved them:

1. Adding a check for readyState == 4 and adding xmlHttp.abort()
2. Adding a proxy script for passing on HTTP POST and returning response
3. Overriding cURL defaults using setopt
4. Using str_replace(’xml_version’, ‘xml version’, $postvars)
5. Lots of searching and trial/error :)

Below I have posted the contents of my PHP proxy script. My web service was built using PEAR SOAP library which required content to be sent as text/xml. I ran into an issue that took hours to finally “see” and for some reason PHP was adding an underscore between the first XML element name and attribute? I used an ugly workaround until I figure out why it did it (php 4.3.9 on macbook pro - intel).

(more…)

Rate this post:

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

How to write an AJAX application

August 20th, 2006 by Mike Sparr

This is a very simple example of how to connect to a remote address and retrieve text. AJAX allows you to build user-friendly web applications that do not require a browser refresh to retrieve and display dynamic data.

(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 ...

Mac OS X maintenance tips

August 17th, 2006 by Mike Sparr

I found a great article about maintenance for Mac OS X. Since I recently made the switch for all my personal computers, I wanted to learn what maintenance, if any, I had to do similar to routinely clearing caches and running disk defragmenter with Windows. I thought this link might be helpful to others as well:

http://www.macattorney.com/ts.html

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 ...

Appending text to a file using bash script

August 8th, 2006 by Mike Sparr

There are many ways to “skin a cat” but this worked for me. I needed a script that would append Apache web server’s configuration file, adding some url re-write parameters for projects, etc.

Problem:
- how to append parameters with illegal characters (< or >) to the end of an Apache configuration file while evaluating passed parameters as part of the path

Solution:
- add echo statements within the bash script and output to the file

Example:

#!/bin/bash

#append text to Apache httpd.conf file
echo "<library /var/svn/$1>" >> /path/to/httpd.conf
echo "DAV svn" >> /path/to/httpd.conf
echo "" >> /path/to/httpd.conf

I learned that if the script leverages variables, in this case the $1 for first argument passed, then you use double quotes instead of single quotes. This will escape the naughty characters but still evaluate the variables.

Also, I learned that by the double >> will output to the end of the file, writing each to a new line. If you have text that requires double quotes, simply encapsulate it within single quotes (provided no variables) and you should be fine.

Enjoy! Mike

Rate this post:

7 Votes | Average: 4.57 out of 57 Votes | Average: 4.57 out of 57 Votes | Average: 4.57 out of 57 Votes | Average: 4.57 out of 57 Votes | Average: 4.57 out of 5 (7 votes, average: 4.57 out of 5)
Loading ... Loading ...

About Montana - “Big Sky Country”

July 26th, 2006 by Mike Sparr

Below is some information that I found about Montana that I thought might be useful. It includes census data, useful contact information and more.

(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 ...

US Highway / Interstate information

July 24th, 2006 by Mike Sparr

A lot of folks in the US take the Interstate System for granted, not knowing some of the smart features. I know for a fact that a lot of foreign visitors, first confused, think that our mile marker system tied to Interstate Exit numbers is brilliant (a lot more intuitive than other countries’).

(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 ...

Installing SSH on Mac OSX

July 16th, 2006 by Mike Sparr

Simply put, open your System Preferences, click on Sharing and click the checkbox next to SSH to enable it.

—-

I spent a lot of time downloading SSH from Gnu and other sites and tried to figure out how to get it installed on a Mac Mini box to enable remote managment and then found out it, FTP and a variety of other services come pre-installed.

I’m liking Mac OSX more and more each day. :) Hopefully this tip helps.

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 ...

VI Editor for Unix/Linux/Mac

March 12th, 2006 by Mike Sparr

It’s been a while since I had to do this, but recently I had to look up how to remove those carat M (^M) characters from files I uploaded to a server. Here is a great article on exactly how below. In short, using VI or VIM editor type the following:

:%s/^M//g

* NOTE: to make the carat M, use CTRL+V CTRL+M not carat M.

====

Here’s that article: VIM removing ^M characters

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 ...

Setting up your Mac

March 5th, 2006 by Mike Sparr

As I recently made the switch from my PC notebook to my new MacBook Pro, I had to install the proper software to replace those tools which I was proficient with on the PC in order to become productive. Tools I use include:

- Microsoft Office (Word, Excel, PowerPoint, now Entourage)
- Adobe Photoshop w/ ImageReady
- Macromedia Flash
- BBEdit (Text Editor)
- Fire (multi-platform chat client)
- Skype
- Transmit FTP tool
- Apache Web Server
- PHP / MySQL
- Java / Tomcat

I have found some great resources online that help with setting up your Mac. Marc Liyange’s site, entropy.ch, is a great resource. In addition, I found mamamusing, a nice blog with some how-tos.

Installing Tomcat 5 on Mac OS X Tiger:
http://mamamusings.net/mt/mt-tb.cgi/758

I have one update to her tutorial, the chmod 755 command specifically. I believe that the chmod command should be /Library/Tomcat/bin/*.sh instead of /Library/Tomcat/*.sh and the startup script is also located in the bin directory.

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 ...