Feeds:
Posts
Comments

Archive for the ‘Uncategorized’ Category

Recently, I found myself in a situation… After uninstalling an application from my Macbook Pro, its icon was still visible in the Launchpad. Clicking the icon would do nothing.

How do you get rid of orphaned Launchpad icons? Thanks to Google and Stack Overflow, I discovered that Launchpad icons are stored in a SQLite database in /private/var/folders with

com.apple.dock.launchpad in the name. The find command is useful:

sudo find /private/var/folders -name com.apple.dock.launchpad

finds the directory /private/var/folders/m4/hh39vth91396mblmwt46crkw0000gn/0/com.apple.dock.launchpad. A little poking around with ls reveals that the database itself is db/db.

ls -l /private/var/folders/m4/hh39vth91396mblmwt46crkw0000gn/0/com.apple.dock.launchpad/db
total 22656
-rw-r--r-- 1 shanglin staff 7495680 Dec 1 10:26 db
-rw-r--r-- 1 shanglin staff 32768 Nov 29 00:27 db-shm
-rw-r--r-- 1 shanglin staff 2290752 Dec 3 22:05 db-wal

Let’s use sqlite3 to see what’s in the database:

sudo sqlite3 /private/var/folders/m4/hh39vth91396mblmwt46crkw0000gn/0/com.apple.dock.launchpad/db/db

sqlite> .tables
app_sources dbinfo image_cache widgets
apps downloading_apps items
categories groups widget_sources

sqlite> .schema apps
CREATE TABLE apps (item_id INTEGER PRIMARY KEY, title VARCHAR, bundleid VARCHAR, storeid VARCHAR,category_id INTEGER, moddate REAL, bookmark BLOB);

The rogue app had the name “Spelunky” in it. We can use a SQL wildcard to find apps with the word “Spelunky” in the title:

sqlite> select * from apps where title like '%Spelunky%';
<p class="p1">92|Spelunky HTML5|com.google.Chrome.app.Default-mhagnkphcmpkmabhocgimoncfaihkpof|||519537375.0|book

Let’s delete Spelunky’s entry:

sqlite> delete from apps where title='Spelunky HTML5';

After exiting the sqlite shell, I restarted the dock:

killall Dock

and the Spelunky icon was gone. Success!

Advertisements

Read Full Post »

Ya know, I really like the default picture that came with the Misty Look theme.

misty

I love the misty, mysterious gloom, but it really didn’t fit well with the flippant title of my blog, et cetera, and it fits even less with the new title. Fortunately, I found a good alternative among the recommended options that is now my header picture. The new pictures fits the theme of writing, and, since I’d rather be reading, the blank notebook is apropos.

Read Full Post »

Title Change

“Et Cetera” sounded a little too formal and drab. Therefore, I now welcome you to the newly dubbed blog, “I’d Rather Be Reading.” The phrase, “I’d rather be writing” has been in my mind, ever since I saw an actual website with that name, belonging to a technical writer. I’d rather be writing than doing some other things, but truthfully, though, I’d rather be reading than writing. Consumption is always easier than creating and producing.

Read Full Post »

Fresh and Easy

On Saturday, I heard sad news. The Fresh and Easy grocery store in Pasadena, on the corner of Lake and California, is closing.The closing sale started today. At 7:30pm, the store was packed, and the staff wouldn’t let us in because they were closing at 8pm.

For the last two years, I’ve been going to Fresh and Easy to get bagged salad for my weekday lunches, and I’ve also been relying on their prepared meals for convenient dinners. I even bought my latest main Thanksgiving entree there. (I got roast pork, not turkey.)

These are some of the items I like:

  • Bistro salad mix: A bag of green leaf lettuce, carrot strings, and red cabbage. The bistro salad kit includes feta cheese, cranberries and almonds, and a white balsamic dressing. Usually, I just buy the mix and not the kit for my lunches, but this week I got the kit and concluded that I should have just gotten the kit.
  • Caesar salads: The kit is good, and so is the bottled dressing.
  • Stuffed portabella mushrooms: Stuffed with a mix of cheese and spinach.
  • Asparagus saute: They stopped carrying this a while ago, but the other asparagus entrees are good, too.
  • Green beans almondine.
  • Petite carrots and green beans.
  • Vegetable medley in ranch butter: Broccoli, cauliflower, and carrots with a ranch butter.
  • Potstickers: More like steamed dumplings than potstickers, but they’re pretty good.
  • Orange chicken.
  • Kung pao chicken.
  • Tamales.
  • Salmon stuffed with feta, ricotta, and spinach.
  • Kale and balsamic butter steamer.
  • Chard and bacon butter steamer.
  • BBQ ribs.
  • Chicken burrito in roja sauce: I only tried this for the first time today, and it was good!

Read Full Post »

9/11

It’s been 13 years since September 11, 2001. On 9/11, I was at home in New Jersey, between the end of my summer internship in Berkeley and the start of a new school year at Caltech. My mom woke me up to tell me that a plane had flown into the World Trade Center. The last time I saw the twin towers in person was only a little before 9/11, when my parents, my friend and her mom, and I rode the ferry to see a Yankees game.

Soon after 9/11, I wrote a poem based on the Twin Towers, that I published on my old Caltech website. Here it is again, before this 9/11 anniversary is over:

The Twins

Two twins once stood, so strong and proud,
So tall above their other peers,
And drove away all childish fears.
Below them gathered a peaceful crowd

Until one day two birds plunged from a cloud.
A horrid sound met all their ears
That changed their smiles to pain and tears
As scorching clouds burst forth so loud.

A rush away from burning wall,
A scramble down to flee the fire,
And now there’s none left down the hall,
And now there’s no one left to hire.

Two twins once stood, so strong and brave,
And now they’ve crumbled in one grave.

Read Full Post »

This morning, I woke before 8 am to a cacophony of squawks. The Pasadena parrots were in the area! I grabbed my camera and stepped outside to find the trees adjacent to and across the street from my apartment full of squawking parrots who were gradually flying north.

Look closely, and you’ll find at least three:

parrots in tree

How many parrots can you find?

If you want a better view, try zooming in on a larger version.

For the most part, the morning was too gray for my camera to capture vivid colors.

flock of parrots in tree

Parrots in tree. They look very black and white.

However, with a bit of cropping and level changing in Gimp, I revealed a grainy closeup of a colorful fellow.

closeup of parrot

It’s green! Probably a green-cheeked Amazon.

Read Full Post »

Read Full Post »

Older Posts »