Using jQuery style a cftooltip span

It’s not hard to figure out how to style the box that pops up when using cftooltip.  It is controlled by the .yui-tt class.

/* Tool tip styling */
.yui-tt {
color: #444;
font-size:110%;
border: 2px solid #1C64D1;
background-color: #eee;
padding: 10px;
width:250px;
cursor:help;
}

But how do you style the text that is triggering the tooltip?  cftooltip is going to generate a span around your text with the id of cf_tooltip_999999999 (where 999999999 is some random number).  I didn’t want to add another span to the mix to provide styling so I turned to jQuery for a simple, quick solution.

In the css file I added a class:

.terms{
color:#168FC0;
border-bottom:1px dashed #168FC0;
text-decoration:none;
margin-bottom:10px;
font-weight:bold;
}

In the jQuery .ready() function I added this line:

$("[id^=cf_tooltip_]").addClass("terms");

The result is that the text which triggers all cftooltips is now controlled by the .terms class.

eMusic Premium Plan Change – 45% fewer downloads… same price

I don’t even know what to say to express the level of disappointment I have regarding this.¬† I logged in to eMusic today and discovered that my Premium Music Plan is going from 90 downloads a month to 50.¬† Ouch.¬† Looks like I’m going to have to start buying used cds again.¬† Following is the correspondence I sent them.

Changing my plan to 1/2 the downloads for the same price?¬† Not very recession friendly and pretty sorry.¬† Especially for a customer who has been with you for years.¬† If I wanted music from the Boss, Alicia Keys, and the Dixie Chicks I wouldn’t be shopping at emusic.¬† Cancel my account and the level of respect I used to have for your site.

I have used eMusic for about 5 years or so and have learned of so many great bands from the site.  What a pity.

imafan of imakey

I use a USB drive almost every single day. I have a problem keeping up with USB drives and caps so this can be problematic. † Enter Lacie’s imakey USB drive. I never would have thought I’d be dorky enough to carry a USB on my key ring, but this looks so much like a key I’ll risk it.

Lacie imakey USB drive

Just got it in the mail today. It’s sweet.

CS4 Beta – Subversion integration does not support file:// protocol

CS4 Beta has no love for svn file:// protocol

I was really excited to see that CS4 was integrating Subversion.¬† In fact it was the main reason I downloaded the CS4 Beta.¬† At my office I am the only programmer and you’ll have to trust me when I say my only option (for a wide variety of reasons beyond my control) is Subversion on my local machine’s file system and not as a Subversion Server.

Sadly, here is the error message that tipped me off that the file:// protocol was not a possibility:

You have entered non-matching protocols.  Please check your settings.

I’m not the only one hoping for Adobe to add support.¬† Check this post as well.¬† If anyone knows of or hears about this getting changed in future releases please drop me a note.

iPhone Cannot Restore Error (6) disaster averted

I was excited to download the iPhone 2.0.1 software tonight hoping it would stabilize my recently buggy iPhone 3G.  What I ended up with was this.

My iPhone hurled and was plunged into a limbo of cannot restore but cannot function.¬† I endured 3 failed attempts to restore.¬† Each ended with the dreaded “iPhone Cannot Restore Error (6)”.¬† I was using the machine I always sync it with, my iMac (iTunes 7.7.1) but I decided to roll the dice and plug it into my Macbook Air (iTunes 7.7).¬† I had to re-download the 250 MB update and restore to factory settings from the Air.¬† After that I plugged into the iMac and loaded my most recent backup.

Then I did a touchdown dance and spiked my iPhone.  Ok, not really.  Disaster averted.

To be clear I have a plain ole G3 with no jailbreak tomfoolery.

Virtual hosts with MAMP on Leopard

Assumptions (Kind of major assumptions):

  • You are running Leopard (and therefore cannot use “Netinfo Manager” to edit your hosts).
  • You already have MAMP up and running and MAMP is using the Apache config file located here: /Applications/MAMP/conf/appache/httpd.conf
  1. Set up a directory for your dev website. I created: /Applications/MAMP/htdocs/csimmons
  2. Create a “host” for your site. In Leopard this will require you to edit the hosts file manually. Be sure to use sudo or you will not be able to save the file. Type the following and enter the root password when prompted:
    $ sudo pico /etc/hosts
    Add the following at the bottom

    # VIRTUAL HOST START
    127.0.0.1 csimmons.dev
    # VIRTUAL HOST STOP

    CTRL+O to write the file (then hit ENTER)
    CTRL+X to exit pico
  3. Flush the DNS cache
    $ dscacheutil -flushcache
  4. Edit the Apache config file:
    $ pico /Applications/MAMP/conf/apache/httpd.confChange the following:
    OLD:
    ServerName localhost:8888
    NEW:
    ServerName 127.0.0.1:8888

    Continue to the very bottom of the file (use CTRL+V to page down faster) and you will find “Section 3: Virtual Hosts”. Add the following at the very end:

    NameVirtualHost 127.0.0.1
    <virtualhost 127.0.0.1>
    DocumentRoot /Applications/MAMP/htdocs
    ServerName localhost
    </virtualhost>
    # DEVELOPMENT HOSTS START
    <virtualhost 127.0.0.1>
    DocumentRoot /Users/username/Sites/csimmons
    ServerName csimmons.dev
    </virtualhost>
    # DEVELOPMENT HOSTS STOP

    CTRL+O to write the file (then hit ENTER)
    CTRL+X to exit pico

  5. Restart the MAMP servers. I just click “Stop Servers” and then “Start Servers” on the MAMP widget.
  6. Try it out. Point your browser to the following (no www in the address and don’t forget the port[8888]): http://csimmons.dev:8888
  7. Rinse. Repeat for each of your dev sites. Multiple sites would look like this:

    hosts file:

    # VIRTUAL HOST START
    127.0.0.1 csimmons.dev
    127.0.0.1 site2.dev
    # VIRTUAL HOST STOP

    Apache config file:

    # DEVELOPMENT HOSTS START
    <virtualhost 127.0.0.1>
    DocumentRoot /Users/username/Sites/site2
    ServerName csimmons.dev
    </virtualhost>
    <virtualhost 127.0.0.1>
    DocumentRoot /Users/username/Sites/site2
    ServerName site2.dev
    </virtualhost>
    # DEVELOPMENT HOSTS STOP

Subversion on Ubuntu (Feisty) with a Mac Client

Subversion gets my ducks in a row

As part of a continuous effort to improve my organization (a.k.a. not lose stuff) I have finally set up Subversion at home. If you are not familiar with Subversion it is an open source version control system used (mostly) by developers to keep up with changes to their codebase.

I’ve spent most of my career as kind of a “one man team” where I have been responsible for all phases of development and maintenance of code. However, I was exposed to Subversion when I contracted briefly last year in a multi-developer environment. I made a mental note at that time to revisit Subversion at a later date.

At last that date has come…

Subversion is now running at home on an old Gateway pc that I recently “upgraded” from XP to Ubuntu. I’m a total newbie with Linux, but I’ll be posting some on it in the future. Thanks to this tutorial the process was ridiculously easy (less than 5 minutes).

The next step was to get an SVN client. My previous exposure to Subversion was in the Windows world so we used TortoiseSVN. I have a PowerBook and an iMac at home though so I hunted down scplugin which integrates with Mac Finder the way TortoiseSVN integrates with Windows Explorer.

Now I just have to get all my code checked in.

Boot Camp + XP SP1 Disc = :-(

I do some .NET work on a project where the developers all use Visual Studio. A few weeks ago I foolishly tried to install it onto Virtual PC on my Powerbook G4. Total no-go. The installation took hours and the program locked up indefinitely the first time I tried to run it.

So, I took the plunge last week and decided to load XP onto the new family iMac using Boot Camp. A slight (deal breaker) problem arose though as I was preparing for installation. I was disappointed to discover that the XP cd that came with our PC was SP1 and therefore not compatible with Boot Camp.

A few minutes of googling, however, revealed a process known as “slipstreaming” whereby you can download SP2, merge it with your SP1 files and burn the result to a new cd that will work with Boot Camp. At first glance the process seemed pretty involved, but ultimately it proved fairly simple to follow. Here is where I found it.

I did it one snag though…

The ultimate goal of the process is a bootable XP cd. The result of my slipstreaming, however, produced 722 MB of files, which is just barely too large to burn to cd (Note: the size of your slipstream depends on how much extra crap came on your SP1 cd). So, what could be trimmed from my project? I deleted the SBSI folder, which in it’s own words is:

“Microsoft (r) Windows XP Professional Step by Step Interactive is a multimedia, self-paced training product that uses a combination of simulations and informative topics to create an easy and flexible learning environment.”

Problem solved. Sliptream cd installed XP like a charm to the iMac.