A Kendo Story

8/1/2008 @ 12:47 am — Filed under:
A professional cockfighting trainer, Ki Seishi, was told to train a chicken by the King. After 10 days, the King asked: “Is he ready to fight yet?” Ki Seishi answered: “No not yet. He becomes blindly ferocious, and eagerly looks for an opponent.” Another 10 days passed and the King asked again. Ki Seishi answered: “No, not yet. When he hears another chicken crow, or when he senses another chicken’s presence, he will radiate his fighting spirit.” After another 10 days, the King asked again. Ki Seishi answered: “No, not yet. When he sees another chicken, he will glare fiercely and loses his temper.” When the King asked again after another 10 days, this time Ki Seishi said: “I believe he is ready now. Even if another chicken crows and challenges him, he will remain unperturbed, just like a wooden figure. This proves that he is full of virtue. He has got it now. No chicken is a match for him. Every chicken will run away when they see him.”

Gazing

7/28/2008 @ 11:45 pm — Filed under:

San Francisco (in space)

7/6/2008 @ 10:15 pm — Filed under:

From Macross Frontier

Nice detail, they even have a Prius :)

See you at WWDC!

6/8/2008 @ 12:37 am — Filed under:

I’ll be at WWDC this week. Shoot me an email if you’d like to meet up.

Some music videos I’ve been enjoying

5/13/2008 @ 11:33 pm — Filed under:

Emilie Simon - Swimming

A live performance by the french artist, Emilie Simon (the song is in English). I love how the distinctive “water play” at the beginning builds up the haunting atmosphere of the song.

Tokyo Jihen - OSCA

Tokyo Jihen can’t be classified into any particular genre of music. I just call them fantastic. This music video in particular is even unique for them. Oh, and the dancers are crazy (there’s even a version just with their angle).

Yuu Nakashima - Hachisu

This video comes from track #1 of Yuu’s (of GO!GO!7188) solo album. The video itself is rather rare, and was missing from practically every source for quite some time. Unfortunately the quality on this upload is rather poor so you can’t really see too much of the background, but it is still a pretty song and a departure from her usual rock antics.

Franz Ferdinand

I stumbled upon this video tonight, and was amused by the mouth-cam. If you haven’t heard of Franz Ferdinand, it is likely you just haven’t played enough guitar hero.

“Apple with a Man Tie”

5/8/2008 @ 12:24 am — Filed under:

Selling my Power Mac G5

5/5/2008 @ 9:35 pm — Filed under:

I’ve decided to sell my Power Mac G5 (craigslist ad here). It is a great machine, and has the fastest clockspeed of any G5 ever made. Here are the specs:

  • 2×2.7 GHz PowerPC G5 Processors
  • 2 GB RAM
  • 2×400 GB Hard Drives (800 GB Total)
  • 16x SuperDrive
  • ATI Radeon 9650 w/256 MB DDR SDRAM
  • Bluetooth Module + AirPort Extreme Card
  • Mac OS X Leopard pre-installed

It is in excellent condition (inside and out). I have also kept all the original accessories:

  • The box
  • Unopened Apple Keyboard (and USB extender)
  • Unopened Apple Mouse
  • Mac OS X Install Discs
  • All manuals
  • Power cable

$1900 cash only. Buyer picks up (from Cupertino).

Other keywords: PowerMacG5, PowerMac, Dual, Computer, Macintosh

Live Editing WordPress Themes with HyperEdit

5/3/2008 @ 9:43 pm — Filed under:

A question I’ve been asked (and often wondered myself) is how to use HyperEdit to effectively develop a WordPress theme and get live previews. I decided to finally figure this out, and while the solution isn’t as elegant as I would like, the results work pretty well. These instructions are somewhat verbose, but it really should only take about 5 minutes to setup.

Step 1: Installing MAMP

MAMP (Mac, Apache, MySQL, and PHP) is a self-contained installation of all the software necessary to run a WordPress blog. Since it requires practically no configuration and is easy to dispose of when done, we’ll use this.

Get MAMP at: http://www.mamp.info/en/download.html

After downloading and mounting the MAMP 1.7.1 dmg, drag the MAMP folder to /Applications/ (it must be located here).

Step 2: Getting WordPress

Download WordPress at: http://wordpress.org/download/. After decompressing, drag the worpdress folder to /Applications/MAMP/htdocs/.

At this point you’ll want to make a copy theme to edit (or bring over an existing one). To do this, go to the /Applications/MAMP/htdocs/wordpress/wp-content/themes/ folder and duplicate default, naming it something like “MyTheme.” You’ll want to go into that folder, open up style.css, and change the comment at the top from “Theme Name: WordPress Default” to something like “Theme Name: My Great Theme” so you will notice it in WordPress later.

Step 3: Launching MAMP and Setting Up a MySQL Database

MAMP installed a handy application at /Applications/MAMP/MAMP.app which will start apache and a MySQL server. Go ahead and open that up. It will also point your web browser to http://localhost:8888/MAMP/, which we will now use to setup a MySQL database that wordpress can use:

  1. Click on the phpMyAdmin link at the top.
  2. Find the Create new database field, and set the name of the database to “wordress” and then click create

Step 4: Configuring WordPress

Now you’ll need to actually get WordPress up and running under MAMP.

  1. Start by pointing your browser to: http://localhost:8888/wordpress/
  2. Click the “Create a Configuration File” button
  3. Click the “Let’s go!” button
  4. You’ll be asked to enter database connection details. It should look like this:

    Press Submit.
  5. Click the “Run the install” button
  6. Set a blog title, enter your email address, and then uncheck “Allow my blog to appear in search engines like Google and Technorati.” Click the “Install WordPress” button.
  7. You will be given a username of admin and a very random password. Copy that password, and then click “Log In.”
  8. You’ll be at the wp-login page, enter in admin as the username, and paste in the password, then log in.
  9. Click on the design tab, and choose the theme you would like to edit (likely “My Great Theme” if you followed step 2)
  10. At the top, click the view site button, and you should be able to see the default Hello world! entry.

Step 5: Using HyperEdit

Make sure you’ve got the latest version, HyperEdit 1.6.

Before you begin editing your page, you will need to configure HyperEdit to use the MAMP version of PHP instead of Mac OS X’s default installation. To do this, launch HyperEdit, go to the Preferences, click the advanced tab, and then change the Path to PHP binary field to /Applications/MAMP/bin/php5/bin/php You’ll want to change this back to /usr/bin/php when you are done using MAMP.

Here’s where the fun begins! Open up /Applications/MAMP/htdocs/wordpress/index.php in HyperEdit. You should be able to see your blog! Now what you’ll need to do is add linked files to the index.php document, so whenever you edit a resource, HyperEdit will automatically update the page. To do this, click the “Linked Files” toobar item, and then drag into it any resources you plan to edit from /Applications/MAMP/htdocs/wordpress/wp-content/themes/MyTheme/:

If you’ve added style.css, double-click on that, and make a change such as setting the body background-color to just “#000;” Hit command-S to save the document, and you should see the background color on your blog page turn black! If you’d like to update the blog automatically when editing the CSS, choose the “Linked File (css/js)” editing mode option in the options palette for the style.css document.

Be aware though, this will save your document whenever you make any changes!

Presently, you are editing the main page, but if you would like to preview the comments page, simply set your index.php page to be this:

<?php
/* Short and sweet */
$_GET["p"]=”1″;
define(’WP_USE_THEMES’, true);
require(’./wp-blog-header.php’);
?>

And that’s about all there is to it; happy coding! (and now maybe I’ll finally update my own theme)

HyperEdit 1.6 Released!

4/30/2008 @ 8:36 am — Filed under:

Today I released HyperEdit 1.6! HyperEdit is my live HTML and PHP editor with W3C validation. This version has several stability fixes, support for Safari 3.1’s Web Inspector, the ability to display invisible characters, new toolbar icons, auto-updates, and better support for Mac OS X 10.5. Registration and product activation issues that occured with Leopard have now been resolved.

Download HyperEdit 1.6 (4.1 MB)

Please contact me if you run into any problems with the new version.

HyperEdit 1.6 Public Beta

4/22/2008 @ 9:29 am — Filed under:

I just wrapped up work on HyperEdit 1.6, and due to the extensiveness of the changes I am releasing a public beta for everyone willing and able to try! This release should eliminate the Leopard+Intel crashers many were seeing frequently, hopefully making HyperEdit stable once again. Here’s the full list of changes:

  • Improved Leopard compatibility
  • Fixed many memory leaks
  • Preview menu has browser icons
  • New Javascript console using the WebKit Inspector (if Safari 3.1 is installed)
  • Added preference to display invisible characters
  • Added Text menu item to convert text to upper and lower case
  • New toolbar icons (thanks Marc Edwards of iSlayer!)
  • Added automatic checking for updates (via Sparkle, thanks Andy Matuschak!)
  • Added ability to report crashes (via UKCrashReporter, thanks Uli Kusterer!)
  • Fixed an issue saving window layout when the preview is collapsed
  • Fixed vital information window ordering
  • Fixed bug where the document was not being marked as dirty
  • Support for localizations

While there are no known issues, please keep in mind that it is still beta, and may eat your homework.

Download HyperEdit 1.6b1 (4.1 MB)

Please contact me if you encounter any issues. HyperEdit now also has a built-in crash reporting mechanism so if you encounter a crash, please relaunch HyperEdit and file a report. Thanks!

Next Page »

Powered by WordPress