Archive | LAMP

Linux Apache MySQL Python Perl PostgreSQL

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.

Kubuntu Getting a Higher Profile in the Ubuntu Family

OSNews reports KDE to Become Better Supported on the Ubuntu Platform. “At LinuxTag on Saturday, a meeting of Kubuntu and KDE contributors was held in order to improve the collaboration of both projects. The aim was to to talk about the common future of both projects. Jonathan Riddell and Mark Shuttleworth from Canonical attended the meeting. Later in his keynote speech to the conference, Mark publicly committed to Kubuntu as an essential product for Canonical and showed his commitment by wearing a KDE t-shirt.”

Good deal. I’ve been using KDE with Ubuntu for the last couple of versions and I like its responsiveness, especially on some of the slower hardware (PII-266 and -366 laptops) I’m using.

WinSCP 3.8.1 released

WinSCP (Secure Copy) lets you copy, move or synchronize files and folders between two machines over a secure (ssh) tunnel. It offers a simple two-panel local-remote file explorer supporting drag-and-drop, a toolbar of utilities (rename, move, copy, etc.) and intuitive operation. I use WinSCP all the time to keep remote Linux machines up to date with local Windows machines while doing development. (Actually, the “local Windows machine” is almost always using files on a networked share via SMB that’s actually a Linux file server running Samba, so I’m really just using Windows as the pretty GUI to synch two Linux machines, but I digress.)

WinSCP has just released a new version, v. 3.8.1, with a significant list of changes, improvements and bug fixes. SCP (really ssh) servers are available for most platforms and interoperate between different OSes. Check out WinSCP.

Dartmouth / Lake Sunapee Linux User Group Meeting, May 4th, Resara Enterprise Linux

On the DLSLUG mailing list, Bill McGonigle announces: “The next regular monthly meeting of the DLSLUG will be held Thursday, May 4th, 7-9PM, at Dartmouth College, Carson Hall Room L01. All are welcome, free of charge.

Agenda:

7:00 Sign-in, networking

7:15 Introductory remarks

7:20 Resara Enterprise Linux

The guys from Resara Networks will be presenting their product, Resara Enterprise Linux. “Resara Networks is a leader in Linux thin-client technology. Resara Enterprise Linux has bridged the gap between thin clients and PCs by providing centralized administration, but not sacrificing the standard capabilities of PCs. With Plug-and-Play installation, customers do not require prior Linux experience or new training to easily deploy Linux on their network.”

8:30 Roundtable Exchange – where the attendees can make announcements or ask a linux question of the group.

Please see the website for links to directions.

A sign of changing times

Netcraft notes that “Apache has overtaken Microsoft as the leading developer of secure web servers. Apache now runs on 44.0% of secure web sites, compared to 43.8% for Microsoft.” Yet another sign of the tide turning. Interesting article with several trends explaining the shift, and a great graph. Read the entire article here

New Hampshire Python SIG tomorrow night

On the Python announcement list, Bill Sconce posts: “The next meeting of the Greater New Hampshire Python & Milk/ Cookies SIG will be tomorrow night — Thursday, April 27th, at the Amoskeag Business Incubator, 7:00 P.M. (the usual place, the usual time).”

“Also, we have a special program. Paul Koning, who had never used Python until recently, will tell us about his first, “getting to know Python” programming experience. Something just a little bit challenging: rewriting PDP-11 TECO.”

“It should be an interesting evening, especially to hear about what went well (or not) in learning a new language in such an environment. Can you imagine writing TECO as your exercise to learn C++? (And of course, now we have TECO for Linux. And for the Mac. And for everything else wherever Python runs.)”

“We’ll also have our usual Q&A, and Python trivia. Because several people asked us about Python at LinuxWorld last week we’ll include some material for newbies. (Please be thinking about that – should we have a newbies segment EVERY meeting?)”

WHO: New Hampshire Python Special Interest Group

WHERE: Amoskeag Business Incubator, 33 South Commercial Street, Manchester, NH
Travel directions

WHEN: The fourth Thursday of each month at 7 PM, holidays allowing

WHAT: Paul Koning, TECO in Python, General Python Q&A

Hope to see you there!

End to End

I spent Thursday evening in Nashua, New Hampshire listening to a presentation at the Merrimack Valley Linux User Group (MerriLUG) by Eric Eldred, a Director at Creative Commons and plaintif in the Eldred vs. Ashcroft decision rendered by the Supreme Court. Eric has a very low-key, well thought-out and persuasive presentation on the use of the Creative Commons license (the license used for this blog as well as millions of others). Great presentation! Based on discussions at that meeting, I’ll likely be dropping the “-nc” portion of the license. Paraphrasing what Eric said, “if you can figure out a way to make a million dollars off what I wrote, go to it!”

Friday morning involved a long scenic drive north through Franconia Notch to meet with hostmaster Jason Kern of KernBuilt and confer with a potential new client on an interesting social software application. Jason and I lunched at Miller’s Cafe and Bakery in Littleton, NH.

Accompanying me north via the wonders of podcasts was Doc Searls interviewing Jonathan Schwartz, President and COO of Sun MicroSystems, at the Syndicate 2005 conference. Jonathan had a slew of interesting insights and statistics. Sun has apparently woken from their slumbers of the late nineties, completely revised their product line, “Open Sourced” their OS (devil’s in the details, I’ll need to dig into this one a bit – what license, what terms, etc.) and are offering some pretty interesting machines – very low power, very high performance. Two great tidbits: who’s the number one camera manufacturer? What’s Google’s number two expense (People’s number one)? Very entertaining; made the trip go swiftly.

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.