Mac OS X WebArchive Extractor Utility
The other day I wanted to use TextEdit to make simple web pages for documentation purposes. I actually didn’t really care what application I used, just one that was more word processor-ish than a coding tool. TextEdit did most of what I needed by saving to HTML, but the kicker was I wanted to have images in the document.
TextEdit can save HTML with images in a file format called WebArchive, but in order to put the files on a web server for the world to view, the files need to be extracted from that format into a normal directory structure.
Three Column Layout in Mac Mail
If you prefer the Outlook-ish 3 pane layout for mail, you can install this mail plugin to get the three column layout. I’ve never used a 3 column layout before, but some of my friends suggested I give it a shot.
This is what mail looks like after you install the plugin:

If you have a smaller screen, the layout might not work for you. On my 15" PowerBook, however, it works fine.
Enable Debug Mode on Safari (Windows) + Error
If you’ve downloaded the Safari build on Windows, and you want access to the very helpful debug Develop menu (the javascript console, DOM viewer, etc), Do the following:
- Open %APPDATA%\Apple Computer\Safari\Preferences.plist (Or open C:\Program Files\Safari\Safari.resources\Defaults.plist)
- Add the key / value:
...
<key>IncludeDebugMenu</key>
<true/>
...for reference on Mac it’s:
$ defaults write com.apple.Safari IncludeDebugMenu 1From the terminal.
In both cases you’ll have to restart Safari if you already have it open.
Create Chinese Keyboard
I found some stickers on ebay that let you turn a normal keyboard into a Chinese keyboard. My intention was to learn the Wubi layout, but as it turns out these stickers are for a traditional character input. While they make my laptop look totally pimped out, I don’t think they are useful to someone learning Mandarin / simplified.
My teacher says the pīnyīn system is usually the best input system for English beginners anyway.
Setting Mac Mail to UTF-8
Unfortunately, what follows is for outgoing messages only. I was incorrect. I haven’t found a way to properly change the reading setting from Automatic to UTF-8
I don’t think this is a bug per se, but it is a bit unintuitive.
For practice I’ve started reading / writing emails in Chinese. The text encoding on Mac Mail by default is set to “Automatic”, and it never seems to guess UTF-8 right. At least not the emails I am getting. They come through garbled. However, when I choose Message > Text Encoding > Unicode (UTF-8) the emails will render fine.
Typing Pinyin on Windows Part ][ (a better way)
There was some room for improvement with the last posting I did on how to setup Windows to type pīnyīn. There were four problems with the last keyboard layout installer I found (three if you are in the UK).
First, the original keyboard layout was UK based. If you were using a US keyboard, when you switched to the pīnyīn layout you gained the pīnyīn tone marks, but some keys switched and you lost other keys (for example you would lose the dollar sign and gain the British pound sign).
Speech Recognition Coding
Well, if you think you’re going to be able to use speech recognition to code anytime soon, this video will set you straight.
This guy tries to write a simple perl script using Windows Vista’s new speech recognition. The fact the video is 10 minutes long pretty much sums it up, but you have to check it out. The frustration level and the things it actually types is a crack up. I have a headache from laughing so hard.
Blogging From Within Eclipse - metaWeblog Plugin
I’ve been meaning to write this Eclipse plugin for a while, and yesterday I just pulled an all nighter to get it out. You probably know how it is; sometimes you just have to finish that nagging project. I’ve been wanting to write this post and put it out all day too, but I had to wait till I was done with work.
Finally… so here it is. It’s an Eclipse plugin that lets you post to metaWeblog enabled blogs (I only know for sure it works with WordPress , and while posting does work with BlogCFC, entry listing does not and BlogCFC). It is probably only going to be used by coders as there is no wysiwyg - it can use the Afae editor to do HTML syntax highlighting though (or any HTML editor you assign to edit the *.blog file type).
Typing Proper Pinyin on Mac
I had my first Chinese class on Friday, and it was fun. It was hard, but fun.
The class is being taught by Pan lǎoshī (潘老师), and he stresses the use of pinyin and hitting the proper tones (as I am sure most teachers do). The tones are key to speaking Chinese well, he says.
So I needed to find a way to type pinyin with the correct tone marks (so I can print stuff out, and to get used to placing them properly). Openvanilla.org (which is fantastic at typing pinyin to get the simplified characters) doesn’t support typing accent marks on romanized characters, but after a bit of digging I found that Mac OS X does it out of the box (why am I not surprised).
Mac Chinese Keyboard?
I started taking a class to learn to speak and read / write Chinese. One cool thing about Mac is you can type Chinese without a Chinese keyboard (System Preferences -> International -> Input Menu if you are curious).
The thing about trying to type Chinese with an American style keyboard is you have to use like 3 or 4 keystrokes to do one character. Plus, being a noob, I am not totally sure how to find the right character (I think they are based on radical but I am not sure).
« Newer Older »