Saturday, October 10, 2009
Saturday, September 26, 2009
Creating Kindle Files from Plain Text on a Mac
The Kindle doesn't have this problem. I've read through many books on the Kindle now and it feels like reading it from the printed page. The other thing that has happened with the Kindle is that it has effectively killed my Barnes and Noble addiction. Unfortunately I think it has worked by replacing one strong drug with a stronger one. This is because I have found with the Kindle that the "bookstores" of free books on the web and being able to browse through Amazon's Kindle Store using the built-in cellular connection are working well as feeds to the book addiction I have - better even than a Barnes and Noble or Borders because of the extremely wide availability of material.
Now, reading plain text on a computer screen is just awful. It is worse than trying to read nicely formatted text on a computer screen. And reading an entire novel this way just a non-starter for me. But reading plain text on a Kindle is another story entirely. So here is how to get a plain text book off of a site and onto the Kindle. I wrote this on a Mac but there are directions for doing in in Windows at other sites and you can use the same steps on a Windows system as well since there is a version of Stanza for Windows as well. Also, you don't have to use Stanza at all if you just want to copy the text files directly over (although you'll still probably want to remove the line endings).
- You'll need to download Lexcycle's Stanza application if you don't have it already. Yes, it is free. Everything in this blog post is free. You'll also need a text editor that can remove line endings. I used TextWrangler, which is also free (see?), for this. Some smarty pants may point out ways of doing this with TextEdit but I'm lazy and TextWrangler has this nice selection in a menu, making all of this a snap.
- Choose the text file you want to transfer and save it somewhere accessible. In this example we will take The Wind in the Willows and put it on the Kindle. Navigate to Project Gutenberg's page for The Wind in the Willows.
- Go to the bottom of the page where the links are and grab one of the ones in Plain Text format with a compression of "none". To do this, Ctrl-Click the link for downloading plain text and select Save Link As... to save the file somewhere you can get to it later.
- Now, open the file in TextWrangler (or some other text editor that can handle removing line breaks from the file)
- Once you are in TextWrangler with the file open, select the Text menu and then Remove Line Breaks.
- Now, I like to make sure that the file comes up in the Kindle with the right title and author because "Unknown" is a little difficult to find later on. To make sure that it will convert nicely go to the top of the file and insert the following two lines of text:
Title: The Wind in the Willows
Author: Kenneth Grahame - Now save the file and you can close the text editor.
- Open the text file in Stanza (either with the File->Open File... command or by Ctrl-Clicking the text file and selecting Open With->Stanza).
- In Stanza, select File->Export Book As->Amazon Kindle
- Make sure you note where the .azw file gets saved to.
- Plug in the Kindle
- When the Kindle has been plugged in to the Mac it will mount as a drive. This is what you want. Open the "Kindle" drive in the Finder and select the "documents" folder.
- Now copy the .azw file to the documents folder and eject the Kindle.
- The next time you power on your Kindle you should have The Wind in the Willows available as a selection to read.
Friday, September 11, 2009
Insalata Caprese
Friday, July 10, 2009
Wednesday, April 15, 2009
No Pants
Monday, March 23, 2009
Sunday, March 15, 2009
Desert Flowers
Sheep In The Desert
Tuesday, February 17, 2009
Sad
But just look at the poor little thing. Doesn't it look like a sad little person on that truck?
Saturday, December 13, 2008
Snowmobile
Tuesday, November 11, 2008
Rock and Roll Lifestyle
One of the greatest songs ever.
My favorite part:
"Excess ain't rebellion, you're drinkin' what they're selling. Your self-destruction doesn't hurt them. Your chaos won't convert them."
Friday, October 31, 2008
Ghost Stories
http://www.horrormasters.com/Themes/Haunted_Houses.htm
http://www.gutenberg.org/browse/authors/l#a272 (Le Fanu is amazing)
http://www.gutenberg.org/browse/authors/j#a2768 (M. R. James is my favorite ghost story author of all time.)
http://gaslight.mtroyal.ca/
Sunday, October 5, 2008
Relay For Life Ridgecrest 2008
Thursday, October 2, 2008
Political Speech (aka. Lying)
"We don't have a lot of leeway on time. One of the individuals in the caucus today talked about a major insurance company. A major insurance company -- one with a name that everyone knows that's on the verge of going bankrupt. That's what this is all about," Reid said prior to the Senate's approval of the $700 billion bailout bill.
and from a little later in the article:
A spokesman for Sen. Reid backtracked a bit Thursday and said that the senator was not aware of any company being in danger of bankruptcy.
"Senator Reid is not personally aware of any particular company being on the verge of bankruptcy. He has no special knowledge about [a bankruptcy] nor has he talked to any insurance company officials," said Jim Manley, spokesman for Sen. Reid, in an email to CNNMoney.com.
"Rather, his comments were meant to refer to the conditions in the financial sector generally. He regrets any confusion his comments may have caused," Manley added.
So saying, "One of the individuals in the caucus today talked about a major insurance company ... one with a name that everyone knows that's on the verge of going bankrupt" is meant to "refer to the conditions in the financial sector generaly" and does not refer to "any particular company being on the verge of bankruptcy."
Right.
I wish our politicians could tell the truth, really I do. I guess that they would get voted out of office in favor of the lying ones (just like when somebody says they don't like a "negative campaign" and then votes against somebody on the ticket because of all the bad things they heard about them) but just once it would be refreshing to have them not flatly contradict themselves in public.
Wednesday, October 1, 2008
How to Increase Your Flickr Views
Thursday, September 11, 2008
The Most Dangerous Cake
5 MINUTE CHOCOLATE MUG CAKE
1 Coffee Mug
4 tablespoons flour(that's plain flour, not self-rising)
4 tablespoons sugar
2 tablespoons baking cocoa
1 egg
3 tablespoons milk
3 tablespoons oil
3 tablespoons chocolate chips (optional) some nuts (optional)
Small splash of vanilla
Add dry ingredients to mug, and mix well . Add the egg and mix thoroughly.
Pour in the milk and oil and mix well.
Add the chocolate chips (if using) and vanilla, and mix again.
Put your mug in the microwave and cook for 3 minutes on high.
The cake will rise over the top of the mug, but don't be alarmed!
Allow to cool a little, and tip out onto a plate if desired. EAT!
(this can serve 2 if you want to share!)
And why is this the most dangerous cake recipe in the world?
Because now we are all only 5 minutes away from chocolate cake at any time of the day or night!
Friday, September 5, 2008
One Degree of Separation
DO AS I SAY - Official Trailer (1080p) from DO AS I SAY Movie on Vimeo.
Sweet, Sweet Basil
This may not be so impressive to you, but I have a thumb as brown as the fence in the background (note that I killed the tomato and jalapeno plant that used to share this barrel with the basil) so I'm quite pleased that this little plant grew so well. I'm a bit sad that its leaves are getting smaller as the season nears its end and I'll miss Caprese Salad and basil in my scrambled eggs, but I'll be buying a basil plant first thing next year when they show up at the stores.
Saturday, August 23, 2008
The Desert
Stroustrup, C++ and Java
In the June issue of SD Times there is an entire article on how "spec-laden" and "bloated" the Java language has become. When I read it I was immediately reminded of Bjarne Stroustrup (the inventor of C++) and what he said in response to the question, "Is Java the language you would have designed if you didn't have to be compatible with C?" Keep in mind that he wrote this when Java was considered superior to C++ for its simplicity and he was being mocked in the press for creating such a "bloated" language. This is from his FAQ:
Much of the relative simplicity of Java is - like for most new languages - partly an illusion and partly a function of its incompleteness. As time passes, Java will grow significantly in size and complexity. It will double or triple in size and grow implementation-dependent extensions or libraries. That is the way every commercially successful language has developed. Just look at any language you consider successful on a large scale. I know of no exceptions, and there are good reasons for this phenomenon.
When he wrote this (back in the 90's) people pooh-pooh'ed this statement and said he had sour grapes but of course you shouldn't second-guess somebody of Stroustrup's caliber because, of course, he was right, Java is "spec-laden" and "bloated" now but also, "there are good reasons for this."

