« September 2006 | Main | November 2006 »

October 2006

October 19, 2006

Firefox Development Team Aided By Steven Colbert

Portrait3 We all know that freedom-loving super-pundit [Stephen Colbert](http://colbertnation.com/) is a huge hero, but I never knew his skills were so diverse. It turns out that not only is Stephen a freedom fighting, truthiness lover, and anti-bear advocate, but he has also joined the fight against the tyranny of Microsoft and its hideous creation, Internet Explorer. That's right, Stephen has joined the Firefox development team:
200610191222 As loyal viewers of his show know, Stephen has expressed his concern that people are not taking internet security seriously enough. He advised all online users to take the following precautions while online to protect their identity: 1. Always type with your non-dominant hand; so it's not typed in your handwriting. 1. Pick the right password and make sure you don't even know it. That way you don't lose your money gambling. 1. Get hundreds of credit cards; never use the same one twice. 1. Defrag your hard drive once in a while; overheard a nerd say it somewhere at best buy. 1. For every real search on a search engine do a fake search; make it seem it's not you doing the search. 1. An infected computer is a vulnerable computer; make sure you wash your computer once a month. Of course, Stephen's modesty prevented him from pimping his own product, otherwise Firefox would have been #1 on his list. Colbert-Lucas Stephen's ability to use the keyboard with his non-dominant hand was honed by his light saber duals with George L, runner-up of the green screen challenge. It is unknown if Stephen's involvement with Firefox will continue after the recent Google acquisition of YouTube. Colbert is currently awaiting his rightful remuneration of royalties for his role in making YouTube successful. Special thanks to freedom fighter Majken Connor for [bringing Stephen's work](http://steelgryphon.com/grand/?p=19) to our attention. In other news, we look forward to the epic OHL Western Conference finals where the [London Knights](http://www.londonknights.com/) will surely be defending their title against the [Saginaw Spirit](http://www.saginawspirit.com/) and there fledging mascot.

October 16, 2006

Rebuilding LaunchServices Database on Mac OS X

Many applications configure a URL Scheme to allow their users to launch their application using a simple URL instead of manually launching the app. For example, Safari is associated with HTTP and HTTPS, and ITMS is used for iTunes. Any application can define new URL protocols by including this in their Info.plist:
<key>CFBundleURLTypes</key>
<array>
  <dict>
    <key>CFBundleURLSchemes</key>
    <array>
      <string>1passwd</string>
      <string>onepasswd</string>
    </array>
  </dict>
</array>
In [1Passwd](http://1passwd.com) we registered 2 schemes, *1passwd://* and *onepasswd://*; this allows us to send emails with links like this: > 1passwd://ebay.com When this link is clicked, OS X references the launch services database to determine which application has registered itself to handle this protocol. If you have 1Passwd installed, the above link will launch 1Passwd. Unfortunately, sometimes the launch services database gets out of sync. I'm not sure how it falls out of sync, but a few customers have reported that clicking the link doesn't work. To fix this, you can force launch services to rebuild its database; there are several ways to do this. Most system maintenance tools include tasks for rebuilding the launch service database. Onyx is a free tool that does the job, and Cocktail is an inexpensive shareware application that can do the job as well. If you're the adventurous type, you can rebuild the database your self. Of course you should backup the database first and do your own research (in other words, this information is provided AS IS so don't try to sue me if it does something unexpected). To rebuild the database yourself, from Terminal run the following command:
/System/Library/Frameworks/ApplicationServices.framework/
Frameworks/LaunchServices.framework/Support/lsregister
-kill -r -domain local -domain system -domain user 
All this should be a single line, but was broken up for readability. Here is the same command on one line for copy-n-pasters:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user 
When I ran this on my machine, the size of the lsregister dump was reduced by 20 percent. This should become a regular maintenance activity to clean up old applications; especially for developers. ### LaunchServices on OS X 10.5 Leopard On Leopard the LaunchServices framework was moved from the ApplicationServices into the CoreServices framework:
/System/Library/Frameworks/CoreServices.framework/
Frameworks/LaunchServices.framework/Support/lsregister
-kill -r -domain local -domain system -domain user 
Again, this should be a single line, but was broken up for readability. For copy-n-pasters:
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user 

October 11, 2006

Inspiration for Today

It is not always easy staying motivated when you're a [business owner](http://1passwd.com). There are many sources of inspiration, but today I got some from an unlikely source: Sun Microsystems. Today I received this "opportunity" from a headhunter for a Lead Web Developer (J2EE/Websphere) to support a Fortune 500 client, and the required skills were, well, impressive: 1. WebSphere 5.1 experience (preferably WebSphere 6.1 experience as well) 2. WebSphere Application Studio 5.1 or Rational Application Developer 6.0. If has WebSphere 6.1 experience then should have WebSphere Application Toolkit 6.1 3. Java 1.4 or above 4. J2EE 1.3 or above 5. Web Application development * Servlets * JSP * Struts * JSF (preferred) * Portlets (preferred) * Javascript 6. EJB Development * Session Beans 7. Ant Scripts 8. JUnit 9. log4j 10. WebServices (client side development) 11. XML (SAX/DOM) 12. JDBC 13. Unix (Solaris preferably)/Windows development 14. Optional * Cactus * JAXP/JAXB * TCP/IP (Sockets) * WebSphere Custom Registry Imagine spending years fighting with all these crappy technologies just so you can work for someone else's company at $80 an hour. Sadly, I don't need to imagine this; I have spent nearly a decade learning all these skills that have no real business value. In fact, when I found the solution for [getting things done](http://rubyonrails.com), I realized enterprises were more interested in technology sales people than achieving business results. Thank God this nonsense is behind me now that I am [financially free](http://tearesolutions.com/2006/10/hate_your_job_make_your_own.html). Best of all, [my product](http://1passwd.com) is not only fun to work on, it is selling enough copies to allow me to buy a few doodads too. Thank-you Sun Microsystems, for giving me the inspiration I needed for today.

October 07, 2006

Hate Your Job? Make Your Own.

I saw these disturbing ads on MySpace today: 200610061246 200610061245 It is disturbing because so many people **hate their jobs**. Even worse, most people think that switching companies or getting a raise will fix the problem. This is not only incorrect, but it sends them in the wrong direction, away from the solution. The real problem is their mindset. **Almost without exception people think they have to work in order to survive in today's world**. While working at that job they don't like, they buy Doodads instead of Assets, since they believe they *deserve* the doodads because they worked hard and need the temporary relief that Doodads "provide". By accumulating these worthless doodads and long-term liabilities, the problem is perpetuated. *It doesn't have to be this way*.

Continue reading "Hate Your Job? Make Your Own." »