Interviewed by Erika about being Gluten-Free

Hi all, this post is a total departure from my usual coding and web development posts. For those that don’t know, I don’t eat foods containing gluten. Gluten is found in wheat, rye, and barley. This means nothing containing wheat flour… which is pretty much all bread and noodles. I’m also not supposed to drink beer or whiskey. Beer is delicious and bourbon has a special spot in my heart, so I cheat at that sometimes. A very close friend of mine named Erika recently interviewed me about my diet and posted it to her blog.

Check it out here: The Erika Immersive Experiment Experience featuring Stephen Nomura

Posted in News, Personal | Tagged , , , , | Leave a comment

WordPress: Remove ‘Favorite Actions’ from Admin Header

I’ve been doing some admin UI customizations for the Arty Apt project lately. Here’s how to remove the ‘Favorite Actions’ item from WordPress’ admin header.

BEFORE

AFTER

Drop this snippet in functions.php and you’re done!

/**
 * Remove 'Favorite Actions' from Admin Header
 */
function remove_admin_fav_actions(){
	return array();
	}
add_filter('favorite_actions','remove_admin_fav_actions');
Posted in News | Tagged , , , , , , | Leave a comment

Northern Pine Longboards: Storefront Added


I finally finished adding a shopping cart to the Northern Pine site. It’s basically my first ecommerce site (drag-n-drop paypal buttons don’t count). Holy crap, what a headache, but it’s done.

The site uses PHPurchase to handle the Paypal API, my own modified version of Custom Post Types UI and Verve Meta Boxes for back-end management. They’re all three sort of twisted together into a nice organized and streamlined mess of PHP.

I was having problems with PHPurchase for a long time. It would successfully redirect me to Paypal but fail on the Paypal to WordPress redirect. IPN was working fine. Receipts were NOT working. But payments were still going through… all very weird.

The problem was so damn simple I would have screamed had it not been 4:30 in the morning and had my grandma not been sleeping upstairs. I had the plugin Permalink Redirect enabled, which strips queries (?) and fragments (#) out of the URL.

Wow, Stephen.

Just wow.

Posted in Personal, Work | Tagged , , , , , , , , | Leave a comment

ArtyApt: First Draft

Just finished the first draft of the new ArtyApt website. While the branding is pretty much the same, the core code has been completely overhauled. The new site is a good 20 times easier for admins to manage and images should load a hell of a lot faster.

Phase 2 is hooking it into the Flickr API.

Phase 3 is updated branding (new theme and other css work).

Thoughts? Critiques? Please? Anyone? Bueller? Bueller?

Posted in Work | Tagged , , , , , | 1 Comment

CSS Trick: Layout Engine classes in Thematic

Solve browser compatibility problems using layout engine css classes.

This code is specific to the Thematic WordPress Theme. However, it is easily modified to work with any setup.

Steps

  1. Add code to functions.php
  2. Edit style.css

Read More »

Posted in Work | Tagged , , , , , , , , , , , , , , , , , , | 1 Comment

Portfolio Section Added

Added a portfolio section to my site. Check it out!

Posted in News | Tagged , | Leave a comment

Rhetoric: Work Every Angle with the Rhetorical Situation

Save time, be more persuasive, and boost the readability of your communication work. This brainstorming framework is the starting point for all my communication work. It applies to all forms of communication, both written and visual.

Best of all, it’s fill-in-the-blank easy.

Read More »

Posted in Work | Tagged , , , , , | 2 Comments

Fixed: Blogroll Links Favicons plugin not showing default favicon

Blogroll Links Favicons v1.6.2 has a bug that prevents using a default favicon for sites that don’t have their own. Luckily, it’s a one-line fix.

The Fix

The problem is line 29.

This is wrong:

28
29
30
if($cached_favicons[$bookmark_url] == 'empty'){
	$favicon = '';
	$cache_update[$bookmark_url] = 'empty';

This is right:

28
29
30
if($cached_favicons[$bookmark_url] == 'empty'){
	$favicon = $default_favicon;
	$cache_update[$bookmark_url] = 'empty';

Change line 29 and you’re done!

Blogroll Links Favicons is by John Turner. For more info, read the blog post or visit the plugin on WordPress.org.

Posted in Work | Tagged , , , , , | 4 Comments

Applescript: Customizable iPhoto Export

This script exports image batches out of iPhoto and prepares them for uploading to the internet. It uses Applescript to interface with applications and shell scripts to do the heavy lifting. If you need help with installation or setup, leave a comment; I’d be glad to help.

Also, I apologize for the lack of line wrapping; I could use some advice on auto-wrapping Applescript for web display. (help? :) )

What it does:

  1. Copy images out of iPhoto to ~/Pictures/_Processed_Images
  2. Rename images as “[title in iPhoto] by [artist name]“
  3. Convert to JPEG
  4. Resize by longest dimension
  5. Convert to sRGB
  6. Embed EXIF data (artist & keywords)

Read More »

Posted in Work | Tagged , , , , , , , , , | 7 Comments

Enhanced Version of Custom Post Type UI Plugin (v0.7)

Here’s an enhanced version of Brad Williams’ excellent Custom Post Type UI plugin for WordPress.

New Features:

  • Admin Menu Icons – Adds ability to set admin menu icons for post types via the ‘menu_icon’ field.
  • Rewrite With Front – Adds ability to set the rewrite ‘with_front’ option for both post types and taxonomies.

Aside from the actual plugin, which you can read about on Brad’s blog, I was inspired by a comment made by Rofflox on the WordPress.org support forums.

Download Custom Post Type UI Enhanced 0.7 (Newest Version)
Download Custom Post Type UI Enhanced 0.6.1

If you’d prefer I list line-by-line changes, request it in the comments; I really wouldn’t mind but I’m not going to spend the time unless people want it.

Posted in Work | Tagged , , , , , , , , , , , | 11 Comments