Deprecated: Assigning the return value of new by reference is deprecated in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-settings.php on line 487

Deprecated: Assigning the return value of new by reference is deprecated in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-settings.php on line 494

Deprecated: Assigning the return value of new by reference is deprecated in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-settings.php on line 530

Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/classes.php on line 594

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/classes.php on line 594

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/classes.php on line 594

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/classes.php on line 594

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/classes.php on line 611

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/classes.php on line 705

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/classes.php on line 705

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/classes.php on line 705

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/classes.php on line 705

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/classes.php on line 728

Strict Standards: Redefining already defined constructor for class wpdb in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/wp-db.php on line 306

Deprecated: Assigning the return value of new by reference is deprecated in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/cache.php on line 103

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/cache.php on line 425

Deprecated: Assigning the return value of new by reference is deprecated in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/theme.php on line 623

Strict Standards: Redefining already defined constructor for class WP_Dependencies in /home/limeade_hsiufan/hsiufan.eats.porkbuns.net/wp-includes/class.wp-dependencies.php on line 15
hsiufan . eats . porkbuns . net

Blog

Names are powerful; they triangulate an object’s meaning and guide your thoughts. We decided “porkbuns.net” meant we were quirky and Asian. This blog is my chance to show off those qualities.
Sep
25

In Which Hsiu-Fan Fixes a Long-Standing Bug

A data corruption bug in fact!

The last two days have seen a few emails roll in regarding mysterious bugs where table rows and columns would jump about randomly. The problem was that Rails allows an object to have destroy called on it twice. And it would then execute any callbacks… twice. This meant that a bunch of headers would end up with the same position value (since that was updated as a callback). This was most unfortunate, and once fixed should keep the problem from cropping up again!

Aug
30

D80, “CHA” error, and a broken SD card

A bit of the edge of one of my SD cards broke off my camera and got stuck in the SD card slot of my D80. The camera flashed “CHA” in the info window and I couldn’t push my SD card all the way. This was quite sad.

Solution involved a flashlight, needles (at first, but they weren’t long enough) and finally bent paperclips. Thankfully things are fixed and life is good once again!

Filed under: Geek-tastic, Life, Photography
Mar
25

Rails Routing Redundancy

I’ve been using resource_fu to make routes in Rails not stupid. I noticed the author tried to get a patch into core but it appears to have died out. I also noticed that someone else wrote a plugin called inferred_routes that does the same thing, so I’m going to link to all three in the hopes of adding some Google juice to them.

That being said, I think the renaming of resource route helpers and just miscellaneous weirdness due to the need to accommodate nested and polymorphic resources is a serious Rails wart.

I took a look through the code for both so I could make a meaningful comparison, and I would say that resource_fu is the way to go. It uses method aliasing instead of overriding which I think is a bit more future-safe (though the changes are invasive enough that a change to Rails core will break both), and the two do the same things to infer parents… I think. That being said, resource_fu also has a number of undocumented features, so its something to keep in mind should you be worried about code bloat.

Filed under: Geek-tastic
Mar
09

Removing Default Folders from Windows Photo Gallery

So there have been various people asking around about how to remove the default folders (Like Pictures and Videos) from Windows Photo Gallery. I noticed that deleting the folders (right click on the folder, and then delete) removes them from the listing, and moves the folder into the recycle bin. When you restore the folders from the recycle bin they aren’t readded!

So its a passable work around. If one of the folders are too big to fit in your Recycle Bin, move the contents of the folder somewhere else, and do the above, then after restoring move the contents back. Yay Photo Gallery!

(The ironic thing here is that as far as I can tell, they made the default Pictures and Videos folder special cases that you can’t remove, which is a decision I really can’t understand at all. Bleh, Vista why do you tease me so?)

Filed under: Geek-tastic
Mar
07

Crossroad Looks Better Than it Tastes

Srsly

Filed under: Photography