Archive for August, 2007

31
Aug

Claire’s visit

Several months ago, Barb signed us up to host a French foreign exchange student. We were hoping to have our remodeling project finished before that time came, but unfortunately we were still living in a house under construction when Claire arrived. The poor girl spent three weeks living with us in less-than-ideal conditions. We took a few weeks off from remodeling and Continue reading ‘Claire’s visit’

28
Aug

Markdown formatting broken

Pair upgraded our web server last night, and in spite of all the work I did to get the blog software updated in advance, it still got broken. All of my Markdown-formatted posts are displaying the following message:

Warning: preg_replace_callback() [function.preg-replace-callback]: Unknown modifier '|' in /usr/www/users/vanderve/sonicchicken.net/blog/wordpress/wp-content/plugins/text-control Folder/text-control/markdown.php on line 766

The old server was running a modified version of FreeBSD 4.8 and PHP 4. The new server is FreeBSD 6.2-based and running PHP 5. I’m guessing that the upgraded PHP and something in WordPress 2.2 aren’t getting along…

Update: Disabling the Text Control plugin (which I’m using to provide Markdown support on a per-post basis) takes care of the nasty error message above, so at least my Markdown posts are showing up. And fortunately bare Markdown is relatively easy to read.

28
Aug

Nutella

Jar of Nutella

We went looking for a source for Nutella here in Sacramento last week. Neither Barb nor I had seen it in “regular” grocery stores, so we checked all the specialty (read “expensive”) stores: Whole Foods, Trader Joe’s, etc. Barb finally found it at Corti Bros., but of course it was a bit pricey–about $4 for a 13 oz jar.

I did a web search for “nutella sacramento” and stumbled across a post on BeckyJSacto’s blog. (She’s got a lot of good suggestions in that article as well as others on her blog–check her out!) She told us to check the peanut butter section at Raley’s: lo and behold, there it was, and about $.30 cheaper than Corti’s.

But I found the ultimate deal last night. CostCo is selling a 2-pack of monster jars (750 g, just over twice the size of the regular jars) for about $8. That works out to less than $2 per (13 oz.) jar. w00t!

20
Aug

Afrofunk

While we were visiting San Francisco yesterday, we heard a band playing out in front of Pier 39. They sounded pretty good, so I picked up their CD on the spot: “Funkiest Man in Africa” by AfroFunk. (The band is actually named “Sila and the AfroFunk Experience”, but that’s a mouthful. Besides, the back of the dude’s jacket is labeled “AfroFunk”.) With 10 guys, it’s a big band, and they were puttin’ on the full effect yesterday–a lot of texture to their music, and a helluva lot of soul. I’m looking forward to more from this group.

Dance like no one’s watching,
Sing like no one’s listening!
– “Got No Money, Get No Respect”

"Funkiest Man in Africa" cover

Added bonus: when I searched the ‘net for these guys this morning, I found that the front man, Sila, has a blog. (WordPress-powered, even!) He’s not writing much lately, which is a shame because it looks like he’s got a lot of important stuff to say.

17
Aug

Tags are back

Took a bit of work, but tags are back up! I was originally (2005) using Felix Wong’s plugin, but it hasn’t been updated yet. So I installed the latest (and final, sob!) version of Ultimate Tag Warrior by Christine Davis. UTW looks awesome from what I’ve seen so far.

So now I’ve got several hundred old posts with obsolete tags, and a fancy new tag engine. I took a look at some of Felix’s tag code, had a look at the database table(s) he was using, and figured out how he was storing tags. UTW has a slick little import/export feature for tags, but it only writes/saves tags in custom fields. (Edit one of your posts and look down near the bottom of the page for the “Custom Fields” section.) After figuring out how WordPress stores these custom fields in the database, I was ready to try and copy my old tags into “custom fields”, from which I would be able to import them into UTW.

The only difficulty I had was gathering multiple tags into a single custom field–Felix’s system created a separate row in the database for each tag on each post, whereas UTW’s import process wants all tags for one post in a single custom field. A little digging in the MySQL 4.1 manual gave me the answer: the GROUP_CONCAT aggregating function. I wrote the following query to gather all the old tags (from table ’sc_tags_items’) and place them as a comma-separated list into a ‘UTW_tags’ custom field for each post:

insert into sc_postmeta (post_id,meta_key,meta_value) 
    select post_id
            , 'UTW_tags'
            , group_concat(tag_name separator ',') 
        from sc_tags_items 
        group by post_id;

After that, all I needed to do was tell UTW (on the admin interface go to Manage / Tags) the name of the custom field and what the separator was, then click the “Import from Custom Field” button. I got a few errors, probably from odd characters in some of my old tags, but it looks like all (or nearly all) of my tags are back. I fiddled around trying to find what might have caused the errors, but after an hour or so I’ve given that up as a bad job. So as soon as I finish this post, I’ll restore my “/remodel” link to redirect as it was intended to.

17
Aug

Remodel URL broken

Nuts! The URL I’ve been using for our remodeling project was broken by the recent WordPress upgrade. (Well, technically it was the old tagging system that broke.) So I’ve temporarily changed the remodel URL to point to all blog posts. Once I get tagging fixed, I’ll change it back.

16
Aug

New themes

My old theme, Journalized Blue, didn’t quite survive yesterday’s WordPress upgrade. I’ve downloaded Journalized v2 (beta), but while I was at it I decided to go “theme shopping”. I was looking for a 2- or 3-column fluid layout–<rant>I hate it when web pages don’t display properly merely because my browser window’s geometry isn’t what the author expects!</rant> Anyway…

I found Srini G’s Fluid Blue theme. Nearly a perfect fit, it’s a two-column theme that’s truly fluid! (Lots of the “fluid width” themes on the WordPress Theme Viewer are merely fixed-width themes that center themselves in wider-than-expected browser windows and pop up horizontal scroll bars in “narrow” windows. Oops! Ranting again…) It also supports sidebar widgets, which I’d like to fiddle with. Added bonus: version 1.1 is ultra-fresh, having been released a mere three days ago.

Now, in spite of the above rants, I found a fixed-width theme that I just can’t do without: Dean J. Robinson’s Redoable is gorgeous! I’m gonna have to see if I can hack that into a fluid layout. Even if I can’t fluidize it, I’ll keep the theme around just so I can gawk at it once in a while with a theme switcher.

Speaking of theme switchers, I stumbled across an excellent how-to for Ryan’s theme previewer over on YGG: How to work on your blog without anyone having the slightest clue. Granted, installing a WordPress plugin is easy: Upload to your wp-content/plugins directory, then activate via the Plugins tab on the admin interface. (Still, it would have been good to include those instructions in the plugin.) The thing I found very cool about Travis’ post on YGG was how he’s using the theme previewer to tweak/debug themes and/or plugins without exposing the code-in-progress to his viewers. Great thinking!

So now I’ve got some new themes to play with. I had to disable the old theme switcher, since it wasn’t working quite right under WP 2.2.2. “Fluid Blue” is the theme du jour, at least for the time being…

15
Aug

WordPress upgrade

My web host, pair networks, is upgrading my server tomorrow, so it looks like a good time for me to upgrade WordPress. Hopefully I’ll be posting a comment on this article in a few moments saying how easy everything went…

07
Aug

Dodgy network wiring

The network connection at our house is still pretty wonky. :( Some days it’ll work (at least for a few hours), and some days all I see is a flashing red “DSL” light on the modem. It’s put a bit of a crimp in my blogging.

I wasn’t able to find underground-rated cable at Home Depot, but I managed to get a 100′ spool of indoor-outdoor cable. I’m going to pull this through the conduit (hopefully tonight!) and see if that fixes the network connection.




August 2007
M T W T F S S
« Jul   Sep »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Tags

abramoff accessibility acetylene activism aerial photo afrofunk aim4tree air america airport express alite alito amtrak andante andy anti failure any browser apache apple applescript arden arcade arden park ariana arnold ashland astronomy attic attika audio avid reader backup baen bart bathroom bbq bee beef begonia bgg bike bike hikers bike journal bikejournal biketalk bill oreilly bittorrent blacklist blog bloggercode blogroll blueberry boardgamegeek boardgames bonjour book bookcrossing boot failure bootcamp borderline chaos bugmenot bush business card cabinetry caira caitlin california candamir caroline carpet cat cateye cdrom celebration cellular phone century cheese chicken chico chimney chinese chipotle chocolate christmas chumby city bikes civilization cjd claire club club fed co op coconut coffee comfort food community computer concord congress conquest conservation consumer reports copyright costco crazybikerchick crepe crock pot cruftbox css csus curl currency custard cvntrak dagoba daniel goetz darwinports datarescue date format death delicious monster democracy now Democrat demolition dessert dickens diff disaster discrimination discworld dishwasher diskwarrior dixie belle dock doors downing street memo drm dryer drywall dump ed burke eff eggs eject election electric car electric truck electrical electricity elvgren email energy efficiency eric meyer esr etext euthanasia facebook family faq faux news feed feedreader fence finder firefox first4internet first amendment fishmeal flash flickr flooring foreign exchange foundation fox and goose framing freebsd freedback fyq garage garden geek geotag geourl gnutar go gonuls google google earth google maps gpl gracenote graywater greek green group concat gtd gunthers gutters gwbush gymnastics hacking halloween handspring hardwood harry potter headmeta high speed photograph high tech inv hoax hobbies hobby hodgins holiday holly home power magazine horcrux houseblogs how to html humor hvac ilovejackdaniels impeach inspection insulation intel internet ipod ipodder iq iraq isight itunes ivins iwantsandy java city javascript joint chiefs joseph jott journalized blue judges cup kctc khs kimkerry kitchen kyocera la salles la times labor landscape laundry law leatherbys legal lego leopard liberal library linkedin ljurban lodi logic logo lungren maaloufs mac macbook mailinator malware map marin markdown mason media media clip media reform meetup metric mexican microsoft mike comfort military milonic mindstorms mlk model railroading modoc hall monterey morning sedition motorcycle movie moving munchkin murray mushroom music mynetflix mysql naked lounge nerd score netflix network new urbanism new year nofollow nutella oatmeal obama obcz occidental occupation omni openssl oracle organic osx owp paint pair palm panasonic parallels party patch peak adventures peak oil pear pedestrian village perl petaluma php ping pingback pingomatic pingomation pingqueue pirate pl sql planet bike plasma playroom entertainment plugin plugin:preview theme plugin:text control plugin:ultimate tag warrior plumbing podcast podsite politics portupgrade potato powerbook printer programming project gutenberg pryde punk puzzle qiana quilt quilt shop quiz quote r5 records racism radio railroad recent comments recipe redalt remodel resaurant resolution restaurant restore review richmond rio americano robotics roger niello ron montana roof rootkit rss sacbee sacog sacramento sacramento spotlight magazine salad san francisco sandwich santa cruz scam scandal school days scplugin security session report shakespeare shuffle sigma siriradha sitemap snl snopes social social network software soma somafab sonicchicken sonicchicken blog sony spam spam karma spellcheck spinach spirit spoiler etiquette spring hill cheese sql sqlserver stairs standards statcounter stephen king stop loss stucco stunt subversion sudoku superbowl superhero supreme court sushi svn sysadmin tacoma tags plugin takara technology telephone television template terms and conditions textcontrol thai kitchen thanksgiving theater theme theme:borderline chaos theme:elvgren theme:elvgren wordpress google code theme:fluid blue theme:fullwidth theme:head theme:journalized theme:journalized blue theme:psycho theme:redoable theme:sharepoint like theme:simple green theme:spirit theme:steam theme:wuhan theme:yadda theme switcher thomas tigris euphrates tile tinfoil hat toc tofu tower theater training transit transit oriented development tribute u haul uneasy rhetoric university village van zant veterans day video vie viking hobby vote smart w3c wall warboss washer washington post weather web web developer web server wikipedia windows wishlist woodworking wordpress workplace wpblacklist wpgatekeeper wsj yaaarr yard