Archive | May, 2006

Time that tries mens souls

Indeed, had some tyrannical god contrived to enslave our minds to time, to make it all but impossible for us to escape subjection to sodden routines and unpleasant surprises, he could hardly have done better than handing down our present system.

— Robert Grudin, Time and the Art of Living.
cited, in turn, in the GNU tar manual

Hacking WordPress with Visual FoxPro

My first attempt at importing blog postings from Radio Userland to WordPress resulted in over seventy categories. Every post with a different combination of categories like “MySQL; LAMP; Technology; Security” created a new category with that exact name, rather than a one-to-many post-to-categories representation. WordPress supports this, as does Radio. The communication breakdown occured between the two, in an export routine I used that created MT-compatible text files.

I could have kept experimenting with different imports, but I’d rather just plow ahead with what I’ve got, so I took a look at the WordPress schema and figured out what I’d need to hack. I used Visual FoxPro to read in the category table, figure out which (multiple) category posts I should have instead of the single, multi-category category, and rewrote the many-to-many file that joins the posts to the categories.

That narrowed it down to 15 categories. I added a new one, “Personal” for notes about politics and personal goings-on. I hope to squash the four, now three “My” categories, which are the old example categories left over from the original Radio install. Stay tuned!

I noted the counts of the number of posts per category was showing zero for several categories. There’s a (denormalized) category_count field in the category table. I popped open phpMyAdmin on the server to poke around and finally issued a “update wp_categories set category_count = (select count(*) from wp_post2cat where category_id = cat_ID)” to get the counts to update. Thirteen rows updated in 0.0635 sec. Darn near as fast as Rushmore.

BSA: Billions and Billions Served

Over at Ars Technica, Nate Anderson asks “Global software piracy losses: US$3- or $34-billion?” The BSA doesn’t make their case any better by making outrageous claims. Software piracy is an issue, but it is not a world-shaking crisis. 87% of the people with a pirated version of PhotoShop have no idea what to do with it. 63% of the people with an illegal copy of Adobe Acrobat would likely switch to a free product like PDFCreator if they knew of the product and had some motivation not to pirate. Use of the software by others does not correspond 1:1 to lost sales. And 73% of statistics are made up on the spot.

U.S. PTO smashes JPEG patent

LinuxWatch notes U.S. PTO smashes JPEG patent. The US PTO is far too eager to grant patents for bogus, vague, overly-broad “inventions.” We need to seriously reconsider whether most computer algorithms, file formats, business processes or genes qualify for patent status – a complete monopoly on the use of a design. The idea of a patent is to improve society with new inventions while ensuring the inventor can recoup the investment of building and manufacturing an invention, at the cost of slowing innovation.

AT&T shares their secrets with the world

Slashdot postAT&T Accidentally Leaks NSA Suit Information. op12 writes “CNET has an article describing how AT&T accidentally leaked sensitive information involving the NSA lawsuit. From the article: 'AT&T's attorneys this week filed a 25-page legal brief striped with thick black lines that were intended to obscure portions of three pages and render them unreadable. But the obscured text nevertheless can be copied and pasted inside some PDF readers, including Preview under Apple's OS X and the xpdf utility used with X11.”

Boy, I'm sure glad AT&T isn't protecting any of my private information, like the Veteran's Administration or Acxiom or CardSystems.

The article goes on to say, “The deleted portions of the legal brief seek to offer benign reasons why AT&T would allegedly have a secret room at its downtown San Francisco switching center that would be designed to monitor Internet and telephone traffic. The Electronic Frontier Foundation, which filed the class action lawsuit in January, alleges that room is used by an unlawful National Security Agency surveillance program.”

Here's the Wired article on the “secret room.”

GROKLAW

GROKLAW quoting a source at Stanford Law, reports: “The Court also held that the website editors were journalists entitled to claim California’s Journalist Shield…” Yes! Freedom of the Press belongs to WordPress, too!

Powered by WordPress. Designed by Woo Themes

This work by Ted Roche is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States.