Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

Sunday, November 7, 2010

Rip an Audiobook CD to an IPod

I have been spending time with audiobooks lately. Managing and navigating audio book CDs, which can have up to 99 tracks per disc, can be a nightmare on the IPod unless you build playlists before syncing.

This CNet post, How to rip an audiobook CD to an iPod, was very helpful.

Join tracks in ITunes

If you imported an audiobook CD to ITunes but didn't join the tracks when you imported, there is a solution.

Doug's Applescripts for ITunes will allow you to select a set of tracks (AAC or MP3) and join them into a single file. This is a great help for audiobooks, because there's no reason to have 99 tracks in an audio book. If you have several audiobooks in this condition, they're a holy mess to navigate in your IPod: 26 CDs of 99 tracks each? Try scrolling to the end or beginning of that list and see what I mean. This is a nightmare because my IPod Nano doesn't have a convenient album cover style browse feature for books.

Sunday, September 5, 2010

Solutions to missing Home/End keypad keys on Macbook

Do you ever want to quickly navigate to the beginning or end of a Word document on your Macbook?

Do you find yourself missing the old Home and End shortcut keys that are on the keypad of full size keyboards?

The keyboard commands are fn-Command-right arrow and fn-Command-left arrow.

If you said, "Man, that is so not intuitive," you have a couple of options.
  1. You can use a two-step keyboard sequence, recommended by lefthander57 on this thread:
just hit Cmd-A, "Select All," then hit a left or up arrow key to go to the beginning, or a down or right arrow key to go to the end.
  1. If you like to use the up and down arrows for that navigation in Word, try Daiya's suggestion:
If the problem is specifically in Word, there are commands in Tools > Customize Keyboard that can be assigned to custom shortkeys. Rather hidden, though.

in Word, Tools > Customize Keyboard, click on All Commands in the left column, tab to the right column, and keyboard navigate to the commands:

EndOfDocument
StartOfDocument

This lets me assign cmd-up arrow and cmd-down arrow, which I can hit with one hand (unlike using the fn key).

Wednesday, June 2, 2010

Revising Pugix's Wordpress Blog

Over the Memorial Day weekend I delved back into WordPress and made some needed changes for pugix.com, my husband's analog synthesizer blog. It uses WordPress 2.9.2, the current release, and a pack o' plugins.

In essence, we wanted to get current content onto the homepage, not just as a little "what's new" link in the sidebar. About four years ago I used WordPress to convert his static HTML, hard-to-maintain synth website into something that had better web presence and was more easily maintained and had an easier future development path. Now we wanted to make it a bit more blog-like by making the new content easy to find, and keeping the homepage fresh.

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.

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

Saturday, December 5, 2009

Configuring my new MacBook Pro for development

I'm setting up my new —well, used, thanks JB!— MacBook Pro with Snow Leopard for development. I'm using MacPorts for simplicity, but of course, one always runs into something that baffles and confounds.

For future reference and benefit as I struggle through this:

Setting up the MAMP environment for Apache


  1. Don't forget to install XCode before installing MacPorts.
  2. This MacPorts guide is a good starting point.
  3. My first struggle was to get the right Apache launching, NOT the built-in Mac version.
  4. Make sure that the "web sharing" is off in System Preferences. This should be done before installing the apache2 macport.
  5. To check if you're running the right httpd (Apache daemon process) in terminal:
    ps -ax | grep httpd
    you want to see /opt/local/apache2/bin/httpd

    you don't want to see /private/etc/apache2
  6. To get apachectl commands working in terminal, I couldn't get the alias working, I had to add the path to .profile like this:
    export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/apache2/bin:$PATH
    That includes the paths that MacPorts wrote.
  7. To see if you're going to execute the right apachectl, use this command in terminal:
    which apachectl
    and you'll see which one is first in line to execute. Very handy little command.
  8. I couldn't get my virtual hosts working until I edited /private/etc/hosts to assign them to 127.0.0.1 as described here. It wasn't enough to configure vhosts or my username.conf file and include it in httpd.conf.