Sunday, April 25, 2010

Show full path in Finder menu bar in OS X

If you like to see the full path to the active folder in the Finder menu bar, enter this in a terminal window:

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
killall Finder

killall Finder will relaunch the Finder with the changes.

Find hidden files in Mac OSX 10.6 Finder

Inspired by Pat Durr's screen capture movie.

My first recording! My first YouTube video!

For my Quicktime recording, I resized my screen to 640x480 for a form factor more agreeable for this narrow blog.

I used Squared 5's MPEG Streamclip for Mac — the beta version was needed to make an MPEG-4 that is visible to YouTube — to downsize it further. I think I need a wider theme if I'm going to embed videos here.

View/hide hidden Mac OSX files in finder

View hidden files in finder:

defaults write com.apple.finder AppleShowAllFiles -bool TRUE
killall Finder

change to FALSE to hide hidden files.

killallFinder will restart the finder.

You need this if you do any kind of development work on your Mac! This is the best method.

Wednesday, March 31, 2010

The Dragon Reborn

Book Love Affair blog discussion for this book and the Tor reread outline by Leigh Butler.

I love the feeling of being absorbed in a richly imagined alternative world, as I used to enjoy in Everquest, and I experience some of that in these books. They're very long, with enough juiciness and intrigue to stay inviting, although they have their frustrations for this reader.

It has become more clear to me how women dominate in the Wheel of Time world. The breaking of the world legend turns female power (saidar) into the authority, and women dominate or are equals in most of the societies, as compared to our world. To the extent that it's not mere "political correctness" I find that angle interesting and compelling.  Compare Jordan's WoT world to the Tolkien world of The Lord of the Rings: female characters there have a distinctly minor importance, Galadriel excepted. Is there a well-conceived theme of feminine and masculine principles organizing the thread of the Wheel of Time story and the trajectories of character actions? Mmmm... sort of,  but not really. I'll see how it unfolds.

Sunday, February 28, 2010

The Great Hunt

Reactions to The Great Hunt
I found this book more absorbing than The Eye of the World; I finished reading it around Feb. 15 and had to force myself not to start The Dragon Reborn until March. Picked up Bernard Cornwell's The Winter King in the meantime, but more about that in another post (TK).

Leigh Butler's smartly written synopses at Tor are very handy references and refreshers.

I think these books need to be understood as "Lord of the Rings fan fiction". I read that quote somewhere. Wheel of Time could never have been written without LoTR. These books have similar strengths and weaknesses of LoTR: shallow characters, black-and-white vision of good/evil, a chaste and non-gritty way of describing and experiencing, richly envisioned landscape, culture, and long journeys, epic "save the world" plot, and of course the usual cast of warriors, magicians, orcs, elves and other such myth-like beings. For those of us who were entranced by LoTR, the WoT promises a much longer immersion in a magical world where one's actions have epic meaning and value.

Tuesday, February 9, 2010

Starting The Great Hunt

Reactions so far to The Great Hunt:

I'm enjoying Rand's resistance to his calling. Almost every genuine spiritual calling is met by horror and resistance. Oh, you need examples to prove the point? Moses, St. Augustine, Jesus (if you like Kazantsakis' deeply-felt interpretation) ... um, I'll think of some more. A "spiritual transformation" is a destruction of the ego. It's a "lose yourself to find yourself" thing. It's the meaning of death. Yeah, I don't think most of us are ready to die, we're way too full of self-love.

No, I think Siddhartha is a different story, Buddhism isn't about "spiritual calling", a Buddhist should laugh or snort about "spirituality", they wouldn't have patience with it. Most of what goes by the name of "spirituality" these days is new-age wishful thinking, quest for warm-fuzzies, yearning to feel connected or important.

I do like the Aes Sedai envisioned as spiritual practitioners.

The Eye of the World

OK, signed up for the Wheel of Time big read-in on Book Love Affair blog.

Just happenstance that I started reading WoT. I really liked George R. R. Martin's Song of Ice and Fire (so far) and wanted to indulge my LoTR-inclination, did some research, and picked up The Eye of the World.

What I enjoyed in this book:
  • Large, detailed world with (typical fantasy-lit) medieval-style political/economic/technology/cultural setting
  • Plot-driven, suspenseful writing
  • Sense of an epic, unfolding narrative
  • evocative villages/towns/cities, buildings, clothing, and landscape descriptions
  • Likable characters
  • Tolkienesque equivalents are enjoyable homage: Aragorn/Strider, hobbits, wizards, Sauron.

What I didn't enjoy in this book:
  • simplistic, unexplained good vs. evil scenario
  • uncomplicated (dare I say shallow, one-dimensional) characters
  • some continuity/context errors

Tuesday, January 12, 2010

Count number of files of certain size


find ./ -size 0k | grep "sess_" -c

This finds the files and directories matching a path and matching a size.
Can use -size +[number]k (above a certain size) or -size -[number]k (below a certain size), or a size match.
Then it pipes that to a grep for the word "sess_" and returns a count.
Helps us count the enormous number of blank sessions that our app is generating on OSX.

Friday, January 8, 2010

Selecting non-distinct rows in MySQL

Got this here.

SELECT *, COUNT(*) AS count FROM tablename GROUP BY fieldname HAVING count > 1

Wednesday, December 23, 2009

To count the number of session files in a directory

count number of session files in a directory:

ls -l | grep "sess_" -c