#tutorial


Quicksilver Shelf Plugin — My First Screencast

As I was try­ing to kill time, I was research­ing Quick­sil­ver extend­abil­i­ty oth­er than just quick-launch­ing apps. Yes, I know Spot­light does it from the get-go.

My search led to a Lifehacker.com arti­cle (as usu­al, with this kind of things) writ­ten a while back about Gina Tra­pani’s Top 10 Quick­sil­ver Plu­g­ins (at the time: Novem­ber 2007). One of the plu­g­ins that intrigued me to check out was the Shelf module/plugin.

Con­tin­ue read­ing →

Unlock Phones from AT&T

So in prepa­ra­tion to going to Europe, I want­ed to be able to have a cell­phone (mobile) handy in case of an emer­gency. I want­ed to just use the iPhone 3G but I have updat­ed to iPhone OS 2.2.1 with a base­band of 2.30.03, which there is no (soft­ware) unlock for. Luck­i­ly, I still have kept my Sam­sung Black­jack (1).

Here’s what I found out when get­ting my Black­jack unlocked:

  • Call 611 (Cus­tomer Ser­vice), and not the local AT&T store.
  • Unlock­ing is “free” (accord­ing to the CSR who helped me).
  • Give your IMEI num­ber to the CSR to receive your phone’s unlock code.
  • To get your phone’s IMEI num­ber, press *#06#
  • To pro­ceed with the unlock process:
    • Take out the SIM card if there are any first.
    • You have to do the fol­low­ing key­strokes: #7465625*638*unlock_code# (unlock_code is your own of course).
    • Your phone’s dis­play will then have some type of mes­sage that it has dis­abled a lock of some sort.

I hope that helps.

Find Duplicates in Address Book

Ever had the sit­u­a­tion where you have synced your iPhone (to iTunes OS X) and hap­pen to sync both the con­tacts from your Address Book and Google Con­tacts? Or, just hap­pen to add some­one’s new con­tact info as anoth­er con­tact-card? Well, here’s how I cleaned and merged dupli­cate con­tacts so that my Address Book per­forms like a champ.

  1. Launch Script Edi­tor (Applications/AppleScript/Script Edi­tor)
  2. Paste the fol­low­ing code snip­pet
    tell application "Address Book"
        set biglist to {}
        set theGroup to count every person
        if not (exists (group "Duplicate Entries")) then
            make new group with properties {name:"Duplicate Entries"}
        end if
        set the_names to the name of every person as list
        repeat with i from 1 to number of items in the_names
            set this_Name to item i of the_names
            set theName to name of person this_Name as string
            if this_Name is not in biglist then
                copy this_Name to end of biglist
            else
                add (people whose name is theName) to group "Duplicate Entries"
            end if
        end repeat
        save addressbook
    end tell
  3. Save your new­ly cre­at­ed script (would usu­al­ly default to ~/Documents/AppleScripts/), and just open/run it

Now, the eas­i­est way to fig­ure out if its run­ning or not (at least for me) was to run the Activ­i­ty Mon­i­tor and sort by CPU. I sim­ply just wait­ed to see if Address Book would climb to the top doing 90+, and back down to nil. When this is done, you should be able to see a group called “Dupli­cate Entries”. From there, you may now sort through the details and delete the ones that you don’t need.

Note: You can also do a quick merge via Address Book itself from dupli­cate con­tacts. How­ev­er, you won’t be able to see which con­tacts are being merged as its just a set-it-and-for­get kind of deal. If you do not care and sim­ply just want to get rid of those dupes, you can do so by doing the fol­low­ing:

  1. Launch Address Book
  2. Select Card from its menu
  3. Then, select Look­ing for Dupli­cates… and just go through the fol­low­ing prompts after search results fin­ish­es

Adium Chat Transcripts Location

This applies to those using the ever-pop­u­lar IM client, Adi­um.

Adi­um is a free instant mes­sag­ing appli­ca­tion for Mac OS X that can con­nect to AIM, MSN, Jab­ber, Yahoo, and more.

If you are in a sit­u­a­tion were you would need to back up your chat tran­scripts due to account migra­tion, or in need to do a clean instal­la­tion of your OS X machine, here’s where to start:

~/Library/Application Support/Adium 2.0/Users/Default/Logs

Note: This is cur­rent as of Leop­ard OS X 10.5.4, and Adi­um 2.x.

Change File Type Icon in Vista

I recent­ly installed E‑TextEditor and made it my default pro­gram for open­ing var­i­ous, devel­op­ment-relat­ed file types (i.e. .php, .py, .txt, etc.). With build 1.0.24, it seems that if you make it the Default Pro­gram for text files (.txt exten­sion), the icon asso­ci­at­ed with the type seems to be miss­ing.

Here’s a quick solu­tion that I found through search results, to cor­rect the blun­der (till E‑TextEditor gets that process fixed). Note: be sure to back­up your reg­istry before doing any changes as a pre­cau­tion; or even have some­one who knows what they are doing do it for you if you are unfa­mil­iar with the process.

  1. Click on START, or hit the WIN­DOWS-key
  2. Type in the fol­low­ing where it says “Start Search”:
    regedit
  3. Go through these fold­ers:
    HKEY_CLASSES_ROOT > txtfile > DefaultIcon
  4. Then replace
    C:\Programmi\e\e.exe,e

    with

    %SystemRoot%\system32\shell32.dll,-152

You should now have your text files dis­play a decent, look­ing icon (i.e. the default Notepad.exe one).