Tag Archive for 'sonicchicken_blog'

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.

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…

27
Apr

A little Apache magic…

I got tired of telling people the lengthy URL for the remodel project:

http://sonicchicken.net/blog/wordpress/tags/remodel

I’ve added the following shortcut to my config:

http://sonicchicken.net/remodel

That’s just the domain name followed by “remodel” — short and sweet!

04
Nov

New ping service is live!

Several weeks ago I mentioned a new ping service that I’ve been using for my blog, but I wasn’t able to give details since it was experimental. Well, the cat is now out of the bag!

PingQueue is Joseph’s recently-announced ping service. Details of this service are available via the links in this entry. But in a nutshell, the advantage of this service is that ping requests are queued up–this sounds like a disadvantage, but the response time for adding a request to the queue is much faster than synchronously pinging multiple services.

Check it out! I’ve been using this service for the last 1.5 months or so, and I’ve been very happy with it.

27
Sep

Testing new ping service

Ping-o-Matic (the default pub-notification service in WordPress) is a great idea: You publish a new post, and WordPress notifies PoM, and PoM passes the update along to a whole bunch of update services. Very slick! But there are two problems with it:

  1. Single point of failure. If PoM is down (or busy or otherwise unavailable) when you click the Publish key, you’ll get to watch your browser spin in circles for a bit while it tries to contact PoM.
  2. Real-time pinging. If PoM is available when you Publish, it seems like it holds you connection while it notifies all the update services.

Joseph started discussing these problems with me the other day, and the delays I’ve sometimes noticed upon clicking the Publish button came to mind. Turns out that he had an idea for a streamlined notification service, which he’s now opened up for testing. I’ve installed the new service in place of PoM, and it seems to be a significant improvement. I’d like to collect some data comparing the new service to PoM, to get a more objective look at this.

Some things to note:

  • Joseph’s service could still be a single point of failure, assuming one were to replace PoM with this service in the Options/Writing/Update Services setting.
  • The basic idea of the new service is to respond to a blog’s update notification as fast as possible, then later to notify all the update services. The cost of this approach is a small delay (a few minutes) between publication and notification, but the quick response between clicking Publish and getting back to my blog admin page is worth it!
28
Jun

404 page added to J-blue

I added a 404 page to Mike Little’s journalized theme. It’s nothing fancy, just ripped the content area out of index.php and put some semi-helpful text in its place. This page should work for all of the Journalized themes, and should be site-independent.

The WordPress Codex has an excellent article on 404 pages, including instructions for making your 404 page show up instead of the browser’s default (useless) information. It’s al got suggestions for 404 page content and links to other helpful sites.

Instructions: right-click on this link and save it to a local file. Add any custom text or links as appropriate for your site. Then upload it to your Journalized theme directory, e.g. wordpress/wp-content/themes/journalized-blue.

Enjoy!

22
Jun

Journalized-Blue theme installed

Another theme for people to try out. Journalized-Blue is the only 3-column theme I have installed on my blog. I was really trying to stick to 2-column layouts, but this theme is just too good to pass up. I’ll be tweaking it to better suit my needs over the coming days.

Great work, Mike!




December 2008
M T W T F S S
« Nov    
1234567
891011121314
15161718192021
22232425262728
293031  

Tags

abramoff accessibility acetylene activism aerial photo afrofunk aim4tree air america airport express alite alito amtrak andante andy anti failure any browser apache apple apple pie 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 ham 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 lhc liberal library linkedin ljurban lodi logic logo lungren maaloufs mac macaroni 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 New Yorker nofollow nutella oatmeal obama obcz occidental occupation omni openssl oracle organic osx owp paint pair palast 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