Smorgasborg - Random Objects

25 ArtLung posts from March, 2010

March 2nd, 2010

Demonically Energized

L.A.’s ruled by gurus,
and New York’s ruled by shrinks:
at least that’s what my uncle,
in Kansas thinks.
He’s got all my records;
they’ve been thoroughly analyzed.
He’s come to the conclusion
I’m demonically energized.

He said “If you choose to engage,
in experimental sex,
or write freakish novels that are
willfully Pynchon-esque,
you can do all these things,
but don’t be surprised,
if you awake
to find yourself
demonically energized.

He said “You can sing and joke about,
painful drug addictions;
and make no effort to resolve,
the looming contradictions;
you can do all these things
but wait till I close my eyes;
sin takes its toll
and now your soul’s
demonically energized.

“If alcohol abuse
is something,
you choose to make light of
and common decency
is something,
okay to lose sight of,
indulge your freakish whims
in spite of how you’ve been advised.
Sin takes your soul
and now your soul’s
demonically energized.

“If you choose to poke fun
of this country’s racial tension
and sing of things
that Nat Cole King
was far too nice to mention
if you’ve got devil’s catechism
thoroughly memorized
he’s achieved his goal
and now your soul is
demonically energized.

“Now if you choose to travel
to exotic places,
and if you choose to sit
on exotic faces,
if you think it’s cute
that a prostitute
is in song canonized,
he’s achieved his goal
and now your soul is
demonically energized.”

March 2nd, 2010

I’m an expert now at migrating old Blogger Blogs.

Google, the owner of Blogger, has decided to shut off FTP posting, which has left many people stranded. They could have improved their algorithms, instead, things are shut off.

I am now a reluctant expert at migrating Blogger blogs to WordPress. If you have a more “modern” style Blogger blog, it’s very easy to import directly from Blogger using the XMLRPC way. Just navigate to Tools → Import Blogger:

Import Blogger

Then authorize Blogger via Google:

Authorize Blogger with Google

And voila, you have access to your Blogger Blog, assuming it’s supported.

BUT IF IT FAILS, YOU NEED A PLAN B

But if it fails, as it does for some folks with older blogs, then you must try the long route. Comments and corrections are welcome on this post. Please feel free to spread the word about this post to those left hanging by Blogger.

Step 1: Export your blog to XML from inside Blogger.

You must be an administrator on the blog to have this option. While logged into Blogger, visit your Blogger Dashboard and choose settings:

Blog Dashboard

Step 2: Choose “Export”:

Blogger Settings

Step 3: Click “Download Blog”:

Blogger: Export Your Blog

The file produced is a in a special Blogger export xml format. It will be named like blog-03-02-2010.xml. This file should contain all your posts and comments. It will not contain the images you use on your blog. If you host on your own server via FTP though, you should have all those old images.

Step 4: Convert your Blogger XML to WordPress XML (WXR Format):

But WordPress can’t import this file format, first you must convert the file to the WordPress compatible WXR format. You can use the blogger2wordpress online tool: http://blogger2wordpress.appspot.com/ to do this:

blogger2wordpress.appspot.com

Step 4a. (If online conversion from Blogger XML to WordPress XML fails):
Caveat: if your blog is too large, this may time out or fail. If that’s the case, you need to download the command line version of the tool and run it locally. The project is Google Blog Converters. Download the file google-blog-converters-r79.tar.gz(as of this writing it’s at version 79, that number may change).

Under MacOS, this .gz file should automatically gunzip itself and leave you with a file named google-blog-converters-r79.tar. My downloads go to a directory called Downloads in my home directory, so where I’m working is /Users/artlung/Downloads. I untar the file by double-clicking on the file in Finder or if I’m already on the command line by running tar xvf google-blog-converters-r79.tar and get a directory called google-blog-converters-r79.

Step 4.b: Open Terminal, and run:

cd Downloads

ls

You should see:

blog-03-02-2010.xml
google-blog-converters-r79

Now it’s time to run the conversion:

google-blog-converters-r79/bin/blogger2wordpress.sh blog-03-02-2010.xml > wordpress-blog-03-02-2010.xml

Assuming the conversion worked, ls should now show the following files in your Downloads directory.

blog-03-02-2010.xml
google-blog-converters-r79
wordpress-blog-03-02-2010.xml

That XML conversion is the hard part. I’ve not had it fail on me doing it that way, but if it is, you may want to check the README.txt file distributed with the blog converters tool.

Step 5: Import WordPress to WordPress:

This is covered pretty well in the document Importing Content: WordPress on the WordPress site.

Step 5a: If the file fails to import because it’s too large:

If the file is too large, then you can try overriding the various file upload limits under PHP, and WordPress: How to Import a Large WordPress XML File and Override the Default Limits

Basically:

php_value upload_max_filesize 32M
php_value post_max_size 32M

Read more about these PHP settings (which override the settings in php.ini.

You can also try setting the max limit constant in your wp-config.php file, just add this line:


/** Increase max upload limit */
define('WP_MEMORY_LIMIT', '32MB');

But I’ve had mixed success getting a shared server to respect these various limits. So, yes, here’s another step. Ugh. I know this is ugly.

Step 5b: Remove extra whitespace:

If, and only if your XML file is almost small enough to fit, you can remove the leading whitespace from the XML file. Basically under an editor like TextMate you can do a search for ^ + and replace with nothing to remove the leading spaces.

But that may not help enough. In which case it’s much uglier still.

Step 5c: Break up the XML file into segments small enough to fit on upload:

Really, WordPress should support importing a file you can FTP into its upload space, but I can’t find a tool or hack that allows for that.

Anyway, the wordpress-blog-03-02-2010.xml we have can be broken up. To do this you need to edit the text file (XML is just a text file). The way I did it was to make multiple copies of it, named like this:

wordpress-blog-posts-0001-0075.xml
wordpress-blog-posts-0076-0150.xml
wordpress-blog-posts-0151-0230.xml

The nice thing is that for each element in the WordPress WXR file, there is an element named 1. The numbering starts at 1 and in my example goes to 230. So remove everything between and including ... for the numbers not in the filename, and resave each file. So in the first example I removed ‘s with wp:post_id values greater than or equal to 76.

Assuming each file is under your upload limit, each one can be uploaded the normal way in the WordPress Dashboard: Tools → Import → WordPress. If the files are still too large, you will have to break them up further. Be cautious with the formatting in the XML or you will lose posts.

Now, this does not cover the ways to manage your images, converting your permalinks to a new format to assure old links to your site work, the best way to install WordPress, how to convert a blogger theme to WordPress, or how to assure you have archives pages work and redirect correctly. If there’s call for it, I may write those up as well.

Best of luck!

March 3rd, 2010

Speaking of blog migrations from Blogger to WordPress, here’s a successful one:

Initially Lura was hosted under Windows and IIS. PHP was installed on her former server, but it did not really respond appropriately and the various IIS/WordPress/”mod_rewrite” hacks did not seem to work. So I advised her to move to PHP/Apache. Things went pretty well until I realized that because FTP for that server had been flaky, I didn’t actually capture all the images on her blog. Lura’s backup also lacked those images. To top it off, web.archive.org didn’t have the images either.

That was a pretty catastrophic and terrible error. Luckily, FlareHosting, saved me by being helpful and responsive. They had the prior server available and I was able to carefully find and copy over the missing images to the new server. A run of linklint to verify my work and all was well.

I also had a small bit of fun changing her Art page over from manually maintained galleries to using her smugmug account as the source. It works a lot like how my brother-in-law Rick‘s “angling” page works (which I built back in 2007), basically pulling in a syndication feed dynamically using magpie under the hood.

As far as theme, Lura’s site has been pretty clean for a long time, so it cues off of her basic design in a custom theme. Very minimal, but seems to work pretty well. This was a fun project altogether. Learned a lot, and got to help out a friend!

March 4th, 2010

The inestimable, very funny Eden Kennedy was also stuck with Blogger. So she and her over 1200 posts and 15000 comments (!) were stuck on Blogger without FTP. I’m proud to announce that in the main, things are moved over and working anew. I’ve done the redirects for old archives, though there are some custom Blogger magic (she had 2 other blogs that we’ve placed into WordPress with categories and will be separating out.

But she can blog, and it’s fast (I can’t imagine what it was like to use Blogger to publish via FTP something like a template change with that volume of posts and comments!), and she likes her new theme, and new tools. I’m pleased as punch to have turned this around pretty quick and look forward to further improvements and tweaks. She chose a new theme and she took very fast to customizing it with her various (incredible!) writing and online projects. Did you know that in addition to working on redoing her site she also delivered the manuscript for a book?

And yes, fussy.org was a large part of my monster Blogger to WordPress post.

March 4th, 2010

Blogger has done work to create a migration tool for Blogger FTP users and is doing great communication.

You can move to a blogspot blog, (which you could do before) or change from self-hosting to being hosted by Blogger/Google by changing the DNS to point at Google’s servers. This is similar to how tumblr handles custom domain hosting.

The real failing here is that this does not account for whatever images or other multimedia you have in your posts.

It’s great that Blogger is doing all this work to communicate the changes, but I don’t think this migration tool is that great a solution. It’s also unclear to me how well this will work if you were hosting your blog in a subdirectory of your site.

This would not have been a solution that would have worked for any of the folks I’ve recently migrated.

March 5th, 2010

Apparently this “cloud” thing is made of computers, it’s not just water vapor. Funny video featuring Larry Ellison.

via Daring Fireball

March 6th, 2010

He says:

if you have had someone close to you pass away in the last few years, i would really like to hear about your experiences related to the web. This can be anything from trying to find a funeral home or caskets, to trying to create a memorial site, or dealing with a remnant social network page. what were good experiences, what were bad experiences, what was missing, and any general reflections on dealing with death in the digital age. thanks.

Go to need some insight on death and remembrance in the digital age and let him know. You know, I met him once, and he was quite a nice fellow.

March 8th, 2010

Leahpeah Redesign

Leah asked me to implement a simple redesign she had cooked up. She was tired of the heavy and dense site she had, and I am responsible for turning her new design into a clean, purely WordPress driven site. It seems to work well so far. See Leahpeah: flawed but authentic.

I moved a fair amount of stuff around. One thing of note is that I changed her former blog url structure, which included the post_id as part of it. The way we worked this site was she began to input prior pieces of her site, then I would do selective imports of her posts and pages. Some pages did not make the cut.

Unfortunately the impact of that was that all her old urls were then off. Primary database keys are great if you’re going to stick with the original database. If you import it in chunks, the impact is catastrophic for the permanence of links. So last night I made a list of all the former links using a backup of the site, then did the same thing with the new url scheme. This worked great, and now permanent redirects are in place for all 1115 of her old posts (since 2002!).

It was a lot of work, but so far so good. Her blog is the most trafficked part of her site, and that area is slightly different in terms of including footer blog chrome:

Leah is about to get a bit more attention as she’s now appearing on the Showtime website, and fairly soon will be appearing on Showtime itself. A critical piece of being able to handle the possibility (it is not guaranteed) of high traffic is wp-super-cache, which I have active and ready. We’ll see if a) any traffic comes and b) if her WordPress install holds up. Now keep in mind, Leah’s site has withstood a dooce-ing or two.

Oh, and by the way, for the uninformed: doocing is analogous to slashdotting. Or, wait, actually, what is the best metaphor for “a high amount of traffic from one source all of a sudden because of a mention” — digging? fireballing?

One of the things that made this project go so fast was the fact that we did wireframes of the new Leahpeah.com before we started one bit of code. This helped immensely with the process, and aided greatly through the use of Balsamiq Mockups is really a great tool for rapidly putting together a site and getting to an understanding of what pieces and parts will and won’t be necessary.

March 11th, 2010

A new site launch, for Tyler Peterson, my stepson who I am extremely proud of. Here’s a screenshot:

tyler.petersonrace.com

Once again, Balsamiq Mockups has proved awesome for quickly getting to agreement about basic layout and design.

Wireframe for tyler.petersonrace.com

Check it out, particularly if you’re a college who wants to give a talented running back, great student, and very giving kid a break!

March 11th, 2010

Amy Adams in Enchanted

Amy Adams recently confessed that she sometimes finds herself acting like her Gisele character from the movie “Enchanted” to please her young fans.

She tells, “I can’t tell you how many times I’ve had to explain to little girls, ‘Shhh, I’m in disguise!’ One time I was at an airport and I was spotted by an adorable three year old. I thought I’d ruined her life. She looked at me as if to say, ‘You’re not Gisele!’ I thought, ‘I can’t be responsible for her loss of faith,’ so I told her in my Gisele voice that I was in disguise so that Queen Narissa (evil witch) couldn’t find me. And she was like, ‘Oooh!’

(via suicideblonde)

March 12th, 2010

I am not at South by Southwest. Leah is.

I went, myself, back in 2001. That’s 9 years ago. Austin was a great town and I had fun.

These many years later what stands out is meeting the folks from evolt at Evoltageddon 2. That was fun–really fun actually — The Ginger Man was a great bar. At the time I was an admin for Evolt, a community of web developers. There were a few other people I vaguely remember seeing. My memory is fading. I think I ran into Matt Haughey between panels. I attended film panels and web, or really “interactive” panels. I especially remember going to the premiere of No Maps For These Territories, a documentary about William Gibson. I attended the Webby Awards, I think. I had fun, but I didn’t fearlessly dive into the social aspect. I think had I gone 2 years later I’d have been much more social. I can experience some of SXSW via the podcasts they will release after the show is done. Leah will be promoting her various projects and probably participating in a panel.

I miss her, but I know she’ll have a good time!

March 12th, 2010

Since September 2009 I, and my friend CPG have been posting photos and videos to New City: nuevaciudad.tumblr.com.

It’s been a great chance for me to try out Tumblr. I think it’s a great, focused tool. It’s blogging for people who are not interested in the blogosphere. It’s great for sharing images, and it can be great for socializing. I know it’s enjoyable for me to bounce ideas back and forth with Chris.

The downside of posting mostly images is that images seem to be posted mostly without permission. Anil Dash’s YouTube and the Million Mixer March is worth reading if you’re interested in what it might mean for all of us to be copyright scofflaws. I think people ignore the issues of permission and copyright entirely now, after all, it’s just a blog, it’s just Facebook. I view fair use more liberally than I used to. I figure, if someone wants to complain, they will. I worried, for years, about putting up the audio of the Larry King radio stories I captured 2002. It took me 8 years before before I was willing to put them up without permission.

Tumblr is social, but I’m not very social there. It is great to group-blog with friends. I’ve missed that since I sold San Diego Blog back in 2007 (aside: I just posted over there, and got no comments at all, sad).

Back to social blogging — it’s fun to see what CPG posts, and to see if I can find items that are similar or related. Almost like how he and I used to sketch–riffing on each other ideas. Instead of drawings, it’s images and videos. In a way, it’s like the mix tape equivalent for blogging. It’s kind of amazing how my interests in the subjects covered there have stayed so strong, so long. It seems to be about science fiction, aerospace, space travel, comics, Japan, Blade Runner. My 16 year-old self would be right at home posting to New City, though he would be shocked about the ease with which one can use search engines to find interesting and obscure images, so quickly.

One of my favorite aspects of blogging images is you can do interesting at-a-glance visualizations that give a snapshot of what’s on a site. Here’s Tumblr Mosaic Viewer, on New City:

nuevaciudad-tumblr-com

And as a side issue, “New City” is a very old concept of Chris and me. It was going to be the company name we would use for our world domination plans. Here’s an ancient image I made on the Amiga. Circa about 1986-1988

AmigaNC3

How many of you are regular users of tumblr? How do you use it?

March 15th, 2010

I mentioned moving Leah over to WordPress a few days ago, and that went well. I’ve been migrating over her prior content and deleting unused content a bit since then.

In rooting through the site, I came across this:

… which we put in place when there were folks deeplinking some larger images on her site. It was kind of fun, though she never got the kind of traffic or server impact that imagine Jason Scott got during his MySpace/Goatse adventures.

Anyway, I upgraded her photos area, no, not her flickr account, this predated that. It’s got photos from about 2002. It was run with Gallery, which for its time was pretty good. It had theming, could import photos from the filesystem, and automatically did thumbnailing, and could import videos, pngs, gifs, jpgs, bmps. It worked well.

But it was a pain to maintain and theme. I avoided doing anything with it, and as time passed small changes would cause problems. I had done some includes across the rest of Leah’s site, and these caused problems because I made other changes later. It was running version 1.5.3. I neglected it, and it gathered spam comments and had a big memory allocation error at the top of the page and UGH! The frustration.

Well, with the release of the new version of Leah‘s site on a new server, nice and clean, I had the opportunity to work on a staging server to see if I could upgrade the site and make it work. And so I started. I downloaded the latest version: Gallery 3 RC1. That went well, a nice process altogether, but rather detailed. Image apps have to point at a lot of local resources – ImageMagick or NetPBM, folder paths need to be set — it takes some attention to get it right. It uses MySQL on the backend and Kohana as the underlying application framework. It looked like a go, and loading new photos and making new albums worked fine, but there was no option to import from Gallery 1, only Gallery 2.

Okay, fine, I thought. I’ll just upgrade to version 2. No problem, version 3 is only a Release Candidate anyway. So I did the same process again, though different. It’s a clunkier process, but I got it working pretty fast. Then I went to import my Version 1 Gallery with the import docs, and it didn’t work.

Uh, what? I’m on 1. Gallery 2 can import 1. Only, no, it can’t import my specific version of Gallery. It needed to be running version 1.5.10 to be importable.

So I installed version 1.5.10, clunkier still, but familiar to me. Though I had a heck of a time finding where to fix the install errors, mostly the locations of binaries. The interface is maybe a dozen different tabs with lots of options. And voila, I got it working, rebuilt the thumbnails and things seemed to work okay.

Once I was there, I ran the import from Gallery 1 into Gallery 2. That required lots of rather long processes to determine if my .data files had enough integrity and whether there were any photos that were leftovers from the prior version. Several were, and Gallery 2 fixed that.

Luckily, the instructions on The Gallery Codex are very, very thorough. If you have upgrades like this to do, this is your bible. Follow those instructions very carefully.

So I got Gallery 2 running great, and looking great, and all the photos were imported properly. It did take about an hour and a half to process all the photos into the new format, but working = good. Once that was done, I thought, “well heck, might as well push forward to Gallery 3″ — which worked pretty well, until I came to the process where it was going to import comments.

That process indicated that I had about 12 hours to wait until all the comments would import. I thought, “that can’t be right.” I let it run.

And run.

And run.

After about 45 minutes I thought to myself. How many comments could these photos have? Turned out that number was about 135,000. Which, uh, was ridiculous.

So I went looking for a way to run Akismet against the comment database in Gallery 2. That sort of worked. So I thought, I’ll try the same thing against the comments that had already imported into Gallery 3 (if I remember right, about 4000). There was no easy way to do either.

So then I was rooting around in the MySQL database for my Gallery 2 install. Running queries, killing off spam comments. I knew I had some comments I wanted to keep, and the thought of deleting them all just because the damn spambots had hit this ancient Gallery so hard irritated me. So, based on my hatred of spammers, I pressed on and worked till I found some patterns I could use to bulk delete. I was pretty tired by that point. In retrospect, I could have gotten much further along had I started ordering the comments by date from the start. Instead I was using the keys in the database, thinking lower meant earlier, but the import from G1 to G2 was not in chronological, so my PK’s were a mess.

So I finally got through that in Gallery 2. And I reimported G2 to G3. It recognized the photos already imported, brought in the comments, and voila! I had a working gallery with all my photos.

G3 has much better organization. It’s definitely cleaner to look at on the filesystem, which is nice. G1 had a separate folder for source files (albums) than the gallery, which was a pain in the neck. Being able to simply rename the folder, and change a few configuration settings made it worth it.

Of course, then I wanted a slightly prettier theme. Well, G3 themes are really not fully baked yet. Some had simple .zip file downloads, some of which point to a github account. They’ve done some great work, but they’re really not ready for the masses to use this in the same way, say, WordPress has been forced to be.

I found a nice theme by Stopdesign and that’s how it looks now. It’s not perfect, but it’s plain.

I was going to build a theme from scratch in the same way I’ve been building WordPress themes lately, but I’m holding off for a while.

This was a lot of work, but it was all worthwhile when I came across this photo from 2003, of my wife and stepkids, from 2003:

Seeing this photo made my heart dance. It made all the pain of upgrading worthwhile.

Oh, and for comparison, 7 years later, the kids look like this:

March 16th, 2010

Leahpeah Podcast Preview Page

Started in 2007, two episodes so far. Here’s the raw RSS podcast feed, and here’s the iTunes Preview Page, and here’s the equivalent Zune page.

Leahpeah Podcast on Zune.net

I think the Leahpeah Podcast is due for a new episode.

Tech background: I used mp3feed.php as the core of this podcast script. The Making a Podcast documentation from Apple is really excellent if you want to do it from scratch.

March 18th, 2010

Migrating an old Blogger blog to WordPress (35)
Are you a Respiratory Therapist? Do you blog? (27)
Whatsoever You Do (21)
Phyllis Crawford, Roanoke, Virginia (21)
My Name Records (20)
Gary Come Home (20)
I am 36. (17)
Listening, Thinking, and Gestating. (14)
San Francisco Suggestions? (14)
What Has ArtLung Been Doing? (14)
My Name in Japanese, 1987 (13)
Phyllis Crawford, Obituary (13)
Ché the Cat 1997-2006 (12)
Today: The Day (11)
Posts That Might Be (11)
I’m 37. (11)
Mom and the Cancer (11)
Nephrectomy (10)
Unsung: 7 Years Blogging (10)
Web pages are dead. Long live web pages. (If they’re made of people) (10)
Amazon S3 1,000,000,000,000 (10)
Mom’s Cancer News (9)
Joseph James Crawford (9)
I am 40. (9)
Halloween Pumpkin Designs, 1987 (8)
Memo to myself. (8)
The Extra Bone Bet (8)
Thank You All (8)
TEN YEARS (8)
Eleven Years And Counting (8)
Passing the musical baton (7)
The Wisdom Tooth Saga (7)
Anniversary of The April Fool (7)
JavaScript trim() function (7)
Pioneer Children Walked and Walked (7)
Long Time Gone (7)
Misc Never Knows (7)
Things I Spend Time With (7)
Batman (7)
“Fun” with Gallery 1.5.3, 1.5.10, 2, 3RC1; Leahpeah photos (6)
Blogging Volume 2 Really Begins Now (6)
Shooting/Simi Valley (6)
Robot Fighter, 1982 (6)
Stew Song for SpongeBob Squarepants (6)
Mr. Roth Caricature, 1987 (6)
Guts Cake (6)
Happy Birthday LeahPeah! (6)
Lyrics of the Day (6)
vox.com (6)
Americart Pricing Change for Pair Customers (6)
Trailing commas in an array OK in PHP (6)
Quiet (6)
Yesterday and Today in Facial Hair (6)
Pair.com System Notices for Just One Server (6)
Smokey Sky above Moorpark (6)
Credit Cards: Pro, Con (6)
Today, California, Vote (6)
BarCampLA5, including YUI 101 Presentation Slides (6)
Soy Cowboy: Lily Pads & Rock Cod (6)
San Francisco, BlogHer, and Me (6)
The future is unwritten (6)
“Friend Requests” (6)
Who Watches the Watchmen? (6)
“Things are difficult” (6)
Mom playing Words With Friends on her iPod Touch on the front porch (6)
Grief (6)
K-R Grief Observation (6)
1980s Punk (6)
Professor Pidgeon (6)
Notebook Cover, 1984 (6)
It occurs to me… (5)
Heavy Duty Judy (5)
A Little Behind (5)
ArtLungosphere (5)
I hate Microsoft Word 2002 for Windows (5)
Cal RT Boss, 1995 (5)
New York Doll (5)
I know nothing (5)
Racquetball / Confession / Marriage (5)
Flash EOLAS Fix (5)
Busy + Hot (5)
Five Things You Don’t Know About Me (5)
Afoot and Afield (5)
Goatee Update (5)
Turn off Magic Quotes in PHP via .htaccess (5)
Stray Data (5)
Black Men Ski (5)
Dear Mice, GET OFF MY PROPERTY (5)
Livid (regarding a Mouse) (5)
Seriously, Ryze? (5)
Slate: Crashed Hard (5)
Bar Camp LA 4 was Cool (5)
Big truck on fire on 118 West (5)
Thirty-Eight Today (5)
I’m proud of my regularity. SWIMMING regularity. (5)
In Brief: Happily (5)
Reboot! (5)
A jumpsuit and shoes (5)
Paul M Bowers (4)
Larry King: Carvelle Story, Moppo Story (4)
Wedding Balustrade (4)
Occurred (4)
Cruel Irony (4)
Date With The Vet (4)
Leaky Ceilings and Illegal Ferrets (4)
Prank I can get behind (4)
Garage (4)
The Book Baton (Books of Importance To Me) (4)
Tim the Dog, 1990 (4)
Portrait, Design Class, 1988 (4)
Logy and not Giddy (4)
Was that an earthquake? No, Sonic Boom. (4)
Minimal Brushy Angst, 1988 (4)
Self Portrait, 1990 (4)
11/11 (4)
Happy Anniversary Baby (4)
Advice To Myself For The Day (4)
Take10Now.com Launches / The View (4)
Bauhaus 3D Model (4)
Michael The Archangel (4)
Ingrown Toenail (4)
Google Pentecost (4)
Galactus (4)
Help me think in MVC (4)
Paint.NET 3.0 Final is out (4)
Guidelines for Recruiters (4)
It Was Six Years Ago Today I Started Blogging (4)
Commute from Simi Valley to Brentwood (4)
Daily Links (4)
Next Up (4)
Mom’s Magazine Article (4)
Please Compare and Contrast (4)
Misc and Max (4)
Bad Recruiter Email of the Day: Posted in the Google (4)
Recruiter Fail (4)
Water is a Balm for my Self (4)
Leah Reads (4)
On The Money Front (4)
Oh, the incredible miscellany of it all; Who I’m reading these days (4)
ArtLung Blogpost Count (4)
Chris and Pensacola (4)
A very few milestones here at the end of 2008. (4)
Obituary: Joseph James Crawford (4)
Bloomberg on the Economy with Tom Keene Podcast: Paid Subscription (4)
On Foursquare, nobody knows if you’re in the North Pole. (4)
Stupid Relentless Cancer (4)
Pre-Gaga Gaga. (4)
Watercolor Spacesuit (4)
Strange Landscapes (4)
I cried when these people died. (4)

Gary Come Home (18)
I am 36. (17)
Listening, Thinking, and Gestating. (14)
San Francisco Suggestions? (14)
Ché the Cat 1997-2006 (12)
Migrating an old Blogger blog to WordPress (12)
Today: The Day (11)
Posts That Might Be (11)
I’m 37. (11)
Mom and the Cancer (11)
My Name in Japanese, 1987 (10)
Are you a Respiratory Therapist? Do you blog? (10)
Nephrectomy (10)
Web pages are dead. Long live web pages. (If they’re made of people) (10)
Mom’s Cancer News (9)
Unsung: 7 Years Blogging (9)
Memo to myself. (8)
Joseph James Crawford (8)
Thank You All (8)

I added a “most commented” page to this site. This continues my evolutionary changing of this site.

In this post, the most commented posts are dynamic, because I added it as a shortcode to my theme. Here’s the code below (and also on github):

';
		$posts_per_page = 150;
		query_posts('orderby=comment_count&posts_per_page='.$posts_per_page.'&order=DESC');
		if ( have_posts() ) : while ( have_posts() ) : the_post();
			echo  '';
			the_title();
			echo '';
			echo ' (';
			comments_number('0','1','%');
			echo ') 
'; echo "\n"; endwhile; else : echo '

Sorry, no posts were found.

'; endif; echo '

'; // reset the query so when I use it it doesn't // cause posts to be displayed query_posts('tag=NOTAREALTAG'); return $out; } add_shortcode('most_commented', 'mostCommented'); ?>