- Right click the mp3 in iTunes > Get info.

- Select the "Options" tab.
- Change "media kind" from "Music" to "Audiobook". Make sure "Remember playback position" and "Skip when shuffling" are checked.
- Select the "Details" tab.

- Change the fields "title" and "author". The "chapter" field can have the same value as "title".
- Click OK.
- Drag the audiobook to your iPhone or iPad. (optional)
Friday, June 23, 2017
Monday, May 01, 2017
Saturday, June 19, 2010
Blog from the command line
- Install Python gdata libraries. This entails downloading, untarring, and
sudo python setup.py - Install GoogleCL. Same as above.
- Copy googlecl-0.9.5/build/scripts-2.6/google (version numbers subject to change) to /usr/local/bin or anywhere else in you PATH.
google blogger post --tags "online, shell" --title "Frist post using GoogleCL" "Can you believe I'm posting this from the command line?"Or write your post in a text editor, saving it as ~/tmp/post.html, then:
google blogger post --tags "online, shell" --title "Blog from the command line" ~/tmp/post.html
Thursday, June 10, 2010
Writing a TiddlyWiki plugin
- Hack (a backup of) the core TiddlyWiki html or javascript to make it do what you want. Take note of the functions or objects you edited.
- Copy the plugin template [TiddlyWiki.org].
- Paste the template into a new tiddler in a stock TiddlyWiki html (not the one you edited).
- File out the boilerplate stuff like the plugin's name and author.
- Override the functions or objects you noted in step 1 by writing code in !Code section of the tiddler.
- Add "systemConfig" to the tag field of the tiddler and save the tiddler.
- Save changes to the TiddlyWiki and refresh.
/***
|''Name''|SamplePlugin|
|''Description''|<...>|
|''Icon''|<...>|
|''Author''|<...>|
|''Contributors''|<...>|
|''Version''|<...>|
|''Date''|<...>|
|''Status''||
|''Source''|<...>|
|''CodeRepository''|<...>|
|''Copyright''|<...>|
|''License''|<...>|
|''CoreVersion''|<...>|
|''Requires''|<...>|
|''Overrides''|<...>|
|''Feedback''|<...>|
|''Documentation''|<...>|
|''Keywords''|<...>|
!Description
<...>
!Notes
<...>
!Usage
{{{
<>
}}}
!!Parameters
<...>
!!Examples
<>
!Configuration Options
<...>
!Revision History
!!v<#.#> ()
* <...>
!To Do
<...>
!Code
***/
//{{{
if(!version.extensions.SamplePlugin) { //# ensure that the plugin is only installed once
version.extensions.SamplePlugin = { installed: true };
if(!config.extensions) { config.extensions = {}; } //# obsolete from v2.4.2
config.extensions.SamplePlugin = {
sampleFunction: function() {
/* ... */
}
};
config.macros.SampleMacro = {
handler: function(place, macroName, params, wikifier, paramString, tiddler) {
/* ... */
}
};
} //# end of "install only once"
//}}}
Wednesday, May 19, 2010
Upgrading X11 Server on Mac OS X 10.5.8 Leopard
Be warned that an Apple update will clobber this install. Therefore, you should get the latest X from http://xquartz.macosforge.org/ and install it after an Apple update.
git
My gitk (which uses X) stopped working after the update. I'm not sure if it was the update as I forgot if I ever ran it successfully before the update. Fix: I simply went to the git-osx-installer site on Google Code and downloaded the latest installer under Featured downloads on the sidebar.
Wednesday, March 17, 2010
Using Firefox to view man pages on OS X
Prerequisites:
- Apache web server running
- perl
Download man2html
man2htmlMac version I used
Install it
cd to the directory containing contents of tarball.sudo perl install.mePut man.cgi into local cgi-bin
Mac:cp man.cgi /Library/WebServer/CGI-Executables/Configure man.cgi
First line:#!/usr/bin/perlAround line 126, add paths to your man pages, including programs you've installed (usually in /usr/local/), e.g. I've installed git:
@ManPath = qw(
/usr/share/man
/opt/local/man
/opt/local/share/man
/usr/local/git/share/man
);Configure Apache
In /etc/apache2/httpd.conf:
<Directory "/Library/WebServer/CGI-Executables">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Restart the server to reload the httpd.conf.
Configure Firefox
(source: tips4linux.com)Go to Bookmarks > Organize Bookmarks;
Open a bookmark folder then right-click and chose New Bookmark;
Name the new bookmark man;
In the Location field paste this line:
http://localhost/cgi-bin/man.cgi?section=all&topic=%sIn the Keyword field type man;
Click Add.
Done. Sweet.
To view a man page, just type in the URL bar of Firefox:man some-commandFor example:
man ls
Saturday, July 22, 2006
GeoShell
So happy. My efficiency: up 25%, productivity: -300%. I waste so much time mucking around with my UI.
Wednesday, July 05, 2006
The Yuppies are coming
What's really happening is that Mac "nerds" are becoming versed enough in Unixisms because of OS X that they can take a walk on the wild side with Linux and not get completely freaked out. They have just enough street smarts to take a walk through the OS inner city with the tough nerds, and not get shot or beat up. And they've discovered that, hey, wow there's a lot of cool shit happening on the mean streets of Linuxville.
But what they don't know is that downtown Linuxville hasn't been a rough a place for a few years now. It still clings to its tough reputation, but it's all college kids and coffee bars now. The place is gentrifying, and has a bit of that yuppie stench to it these days. It's not yet all Wonderbread and Wal-mart, like Windowsland, up the highway, but the Windowsland folks are moving in, and it's starting to get that feel.
The old-timers who gave Linux the frightening reputation that it carries, have long since settled down, had kids, and moved out to the leafy lanes and plush lawns of Mactown, to get away from the plastic Windowsland people. As a result, the Mactown folks have realized those Linux guys aren't so scary after all, beards and sandles notwithstanding. Maybe, some of the Mactown folks think, we could get a condo in Linuxville, and try some of that inner city living. Just on weekends for a start.
So they get a luxury condo in Linuxville, right on Ubuntu Street, which was built by a big-name property developer who saw that all the starving artists were living in the area, building cool lofts and studios from the abandoned tenements and factories of old Unixville. So he bottled up that artsy mojo and built a condo development with new appliances, and hardwood floors, and put in a Starbucks on the ground floor, and marketed it heavily to Mactown and Windowsland people looking for a change. Come to Linuxville! Not as scary as you think! But every bit as edgy! Now with taskbars! Sometimes you get contemptuous looks from the mean looking men who still hang out on Slackware Road, but it's best not to go down there if you can help it. If you can avoid them (and ignore the snotty punks on Gentoo Avenue), then it's all terrifically edgy and artsy, and just so-o-o-o nerdy cool in that certain je-ne-sais-quoi kind of way. It feels like they're right on the cutting edge, where the culture is created, where everything happens, just like they read in Wired Magazine in 1996.
Thursday, June 15, 2006
I Love Programming
Damn, I should've gotten into Java a long time ago. I wouldn't have had to detour into these other crazy interests of mine. Not that I regret them, but I could've saved them for later, after I get a regular programming gig.
Friday, May 05, 2006
Gnaural vs. NNS
Thursday, May 04, 2006
LyX for Math
Unfortunately, I'm not too familiar with LaTeX or plugins/customizing AbiWord. I decided to just use LaTeX, which is when I discovered a frontend for it called LyX.
Wow, keyboard shortcuts for every symbol (e.g. \infty for infinity symbol)! Wow, subscripts (^) and superscripts (_)! Why math with pencil and paper sucks:
- Writing tiny sub- and superscript numbers can get messy.
- Big matrices are a huge waste of paper.
- Make a mistake near the top, eat a fraction of an eraser.
- No copy & paste means more tedium and more errors.
Friday, April 14, 2006
FreeDOS to the Rescue
Didn't sleep well last night. Today, I downloaded a boot disk that used FreeDOS. It could read the (broken?) partition table and loaded my D: partition with the Ghost image!
Wednesday, April 05, 2006
Palm V Battery Replaced
To put it back together, I heated it up again with the blow dryer and pressed the panels together. Remember to use gloves because it's hot.
Thursday, February 09, 2006
Palm vs Laptop for Writing
Wednesday, December 07, 2005
Efficiency Can Be Unproductive
For example, I'm using mocp for playing mp3s and wrote a perl script that deletes the currently played song on the pressing of a hotkey. Who would use this? It's not even written robustly. Another example: I removed some pauses in w3m by editing a couple lines in its source code. I don't feel like sending a patch because maybe others find those pauses useful. I didn't make it an option--I just hardcoded it. I guess I'm not confident enough in my coding to post anything, but maybe later. Plus, I don't even know how to use diff/patch. The docs are tremendous. Arg.
The benefit of working with user-friendly apps is that I can provide support for people who want to try Linux. If I learn Gnome in and out, I can evangelize GNU so much more easily since I wouldn't be punishing my computer semiliterate friends by forcing the command line (or some obscure window manager) on them. Not everyone wants to spend 20 hours of research to produce a shortcut that trims a task by a mere 2 seconds. Not everyone wants a lightning fast browser that has trouble displaying Flash and RealMedia, regardless of how evil proprietary formats are or how fat and slow common browsers are.
If I use common apps, I don't get to feel fast and efficient, but what is efficiency anyway? Twenty hours to save two seconds? I really need to stop trying to be efficient since it's making me incredibly unproductive. I had just used Windows to create a website in about 3 hours without too much thought or hassle. If I had done it the Right Way, it would've taken two days probably. I have to strike a balance between meta-productivity ("efficiency") and measurable, invoiceable productivity. Currently, I spend way too much time getting ready for tomorrow's projects by working on new skills, technologies, and processes that I don't get today's projects done.
Thursday, November 17, 2005
Free your mind
- Caps Lock into ESC: Good for vim and everything else. Used xmodmap.
- Freemind: Hot stuff! I can finally create mind maps with ease. I hate doing them on paper. There just isn't enough room. Highly recommended notetaking program.
- dict, dictd, dict-wn, dict-gcide: Command line dictionary. Screw gnome-dictionary and its slowness.
- OSS: (Maybe) I removed it to get rid of the buzz, but now some old programs won't have sound. :(
- Learn more about notetaking with vim.
- Sleep better.


The yuppies are coming
(Score:5, Insightful)