Categories
Technology

FileZilla Gotcha

Enough with the BS, let’s talk something useful.

I found this last week that Filezilla 2.2.1b (and earlier versions) will truncate files when uploading several directories at a time. I discovered this first when I found the Trackback.pm file was truncated. Then when I was trying to port the old entries into the Semantic Web for Poets, after a great deal of research and effort, I found that the several of the HTTP perl modules were also truncated.

Checking around at a couple of the other Wayward Webloggers I found some others, including some graphics that were truncated.

I was using the Windows version, on W2K, uploading to Red Hat Linux.

If you’re using Filezilla to upload a lot of directories and you’re using the Windows version, just be aware of this as a problem. Bugs have been filed on this at the Filezilla site.

Categories
Weblogging

Adding trackback entries for individual archive pages

Recovered from the Wayback Machine.

I’m firing on all (one) cylinder today.

Sam Ruby references a citation at Simon Willison, who quotes Tantek:

 

“…we now have Trackback and Pingback to help automate generating comment hyperlinks to blog-on-blog commentary. While I certainly applaud these efforts at automating the plumbing, I must ask – why is there any distinction in the presentation? I ask because many blogs present separate and different interfaces for their comments, trackbacks, and/or pingbacks.

 

Good points. After all, these technologies are nothing more than threads to a communication.

For Movable Type, it’s fairly simple to make a modification to your individual archive page to list trackback entries along with your comments. I’ve made this modification to my individual archive pages and thought I would pass on the how-tos of my mod.

Warning: To implement trackback within the archive page following my preferred approach, I did need to make a minor modification to one of the Movable Type’s Perl modules, Trackback.pm. It’s a minor change: it forces a re-build of the archive page when a trackback occurs so that the new trackback entry displays in a manner similar to how new comments are added, automatically, to the page. You can download the modified file here and replace the in your MT directory (put it into /lib/MT/App/). However, you do so at your own risk. You can find the edits I made because I surrounded the edit with comments containing my name, ‘Shelley’.

Repeat: You do so at your own risk. This modification is not vetted by Movable Type’s creators, Ben and Mena Trott.

For those taking the leap of faith, to add the trackback entries to your individual archives, add the following to your individual archive template:

 

<MTEntryIfAllowPings>
<MTPings>
<div class=”comments-body”>
<a name=”<$MTPingID$>”></a>
<a target=”new” href=”<$MTPingURL$>”><$MTPingTitle$></a><br /><br />

Excerpt: <$MTPingExcerpt$>
Weblog: <$MTPingBlogName$><br />
Tracked: <$MTPingDate$><br />
</MTPings>
</MTEntryIfAllowPings>

Note that the re-build of the page does slow the trackback ping, and if the remote site is having performance problems, the rebuild may not occur. However, the exact same process is used with comments, so whatever performance problems we’ll have with comments, we’ll have with trackbacks. Additionally, malicious people (known as spammers) could exploit the ping to add trackback entries pointing to junk — but they can do this anyway with the existing system. Web services are vulnerable that way.

Other trackback embedding approaches are discussed at the Movable Type forum on a thread related to this issue. I didn’t care for the approaches mentioned, excellent as they are, primarily because I would rather put the processing burden on the instance when the trackback occurs, rather than each time the individual page is accessed (by accessing MySql or forcing the page to be PHP or using SSI). I’m putting the burden on the ‘write’ because trackbacks follow the ‘write once, read many times’ pattern.

Still, don’t you like it when you’re given ten different ways to do something?

Update:

Oopsie! I didn’t read the MT thread that closely to see that Phil had already created this work around. Teach me not to read the entire thread more closely! And I missed this change originally at Phil’s. Honest!

So, dibs on this bit of creativity goes to Phil! Darn! And here I thought I did something new.

Categories
Diversity Weblogging

Wearing a Polite and Conciliatory Mask

Recovered from the Wayback Machine.

I woke this morning at 3:30 and I was determined that at least for the next four days, I was not going to make anyone angry, or hurt, or disappointed. While most of my fellow webloggers from the USA were stuffing themselves on turducken, I was, instead, going to regale my readers with delicious bon mots of wit, poetry, a little bit of technology as enticement, maybe even a tad bit of sex — verbal flashing of my breasts if you will. But I was not, in any circumstances going to engage in battle or respond to any other writing except in a complimentary sense. I was, in effect, going to put on a conciliatory mask, like these Japanese photo masks.

Well, thankfully, a couple of comments and a trackback cured me of such foolishness.

I wrote about Steve Gillmor’s response to Dvorak and the fact that he listed several ‘big time bloggers’, nine to be exact, without once mentioning a women blogger. Gina at misbehaving.net also wrote on this, which made me feel pretty good — my position on issues such as this usually doesn’t land me in a crowd. Donna Wentworth agreed in comments that it was pretty depressing, but I think Meg made the most telling comment:

He doesn’t realize that he just did a good ‘ol boys network thing yet. He’s just a dude writing about his favorite blogs, at least they weren’t all football related.

Football aside, Meg’s comment about the ‘network thing’ again, was dead on. Steve is interested in weblogs by technologists, geeks as it were. But there are weblogs by women who write about geek stuff — why is it that when people rattle a list of tech bloggers off the top of their head, they never mention a women tech blogger?

One comment, was that, Female bloggers can’t or won’t produce content that is interesting to men, which of course was an obvious troll. And yes, I did respond to it — the devil made me do it. The tone was troll, but what about the words — is that it? We don’t produce content that’s interesting to men, at least in technical venues? Or is it because when we are in this venue, we don’t speak the same language as the guys, and therefore are just plain not heard?

Still, this was a virtually anonymous troll and I wasn’t going to respond — that conciliatory mask thing, remember? I was going to be a good little girl and not bore the nice people with writing on this topic, at least for four days. I wasn’t that is, until I got a trackback from Richard this morning, bright and early. Richard wrote a post starting out with:

Okay, it’s getting stupid when you can’t even state a preference for one thing over another without being pecked to death by everyone who disagrees or finds your opinion not good enoug for public consumption.

Richard, what do you think weblogging is? We peck everything to death. If we didn’t, I’d have left this scene years ago out of boredom. If you put your opinion online, especially in a major publication, we are going to be crawling all over that thing like ants at a picnic. What do you think Steve’s response of John, you ignorant slut to Dvorak is?

There was little that Richard wrote I wanted to respond to except for a tiny bit he made in comments, when he wrote:

Of the people he did mention, there is an senior editor for Linux Journal, a person who was part of bringing us Groupware and who helped port Visicalc – the first spreadsheet. The co-inventer of the spreadsheet is there, as is one of the people mentioned in any discussion of the history of the XML spec. These are big time geeks, and people that Steve chooses to read.

If you know of GEEK blogs that are female authored, feel free to send them to Steve – steve_gillmor@ziffdavis.com.

Leaving aside the fact that some of those bigtime names mentioned have been blogging a year or less, Richard’s point about knowing of any GEEK blogs that are female authored, and sending them to Steve Gillmor is ironic considering he made the comment at misbehaving.net with a complete sidebar filled with women associated with technology.

However, he has a good point, and I’m sending a copy of this weblog posting with a link to my various GEEK writings to Mr. Gillmor — just to make sure that he knows that sometimes pocket protectors stick out.

Men have long used oppressive techniques to get women to stop talking, including labeling us shrill, unfeminine, making the word ‘feminist’ into an insult, deriding us when we do talk, and rewarding us when we don’t. They even encourage us to turn against each other, because if women teamed up, truly teamed up, all hell would break lose.

We also add our own problems to the mix. We are brought up to be ‘polite’, never pointing out that a man’s fly is open in the figurative sense. Sheila Lennon wrote about finding out her permalinks had been accidentally put behind a paywall from a comment in JD Lasica’s blog, pointed out by Tom Mangan. I knew this was so from linking to her the week before, but I was too polite to point this out, not wanting to give Sheila a hard time about it. Even between two strong women, the silence of politeness holds sway.

However, the most effective technique for silencing a woman is to not hear her speak — even when she’s shouting in your face. There’s no greater wound to a writer than to have her words bounced against a wall of indifference.

I came so close to shutting down all my technical writing this year. I have been battering at the gates of the tech weblogs and the tech publications for years now and just didn’t seem to be making any dents. Three years of weblogging about technical stuff, twelve books about computer technology, and a couple of dozen articles in major publications, and it seemed like I was standing still in my career. It was so nice to get positive comments on the photographs and the other writing, and I found myself drifting that way more and more. But though I am a writer, and a poetry lover, and a hiker, and a politically active person, and a photographer, I am still a GEEK; I’m not going to be abandon this aspect of myself because I haven’t made an impact. Yet.

And I’m not going to take on a ‘male’ persona to do it, either.

The only way we will make a dent in this world is to talk and keep talking and keep pointing things out and keep breaking into conversations, and disrupting networks, and annoying the guys until they give in from sheer exhaustion, if nothing else. Good stuff, bad stuff, doesn’t matter, as long as we keep talking.

Update

And though Anil doesn’t much like me — I do that to people a lot, it must be my own particular brand of charm and my even tempered nature — I appreciate his good writing, such as this Chicken Story:

Reheating some leftovers this evening, I was wondering why the chicken place seemed so familiar, despite its discomfiting social mores. It is a deeply misogynistic environment, filled with people paying a pittance and begrudging that they weren’t getting more for free, prone to arguing with and shouting at each other in a cacophony of languages while never bothering to even listen to the points they were arguing against. And somehow its allures were enough to keep drawing me back in. I’m realizing they probably should have named the restaurant after the place it most resembles: The Blogosphere.”

Maybe that’s what we women need more of — chicken.

Second Update

Seems that Dave Winer has checked into comments at misbehaving.net with:

Karlin, I consider you a friend, I’ve pointed to you many times, because you often have something to say and are professional about it. I don’t worry that I’m going to regret having pointed to you. I don’t point to Shelley because she’s very abusive of me, on a personal level, and I don’t want to, in any way, support that. And for the rest who are posting here, I honestly am not familliar with their work. If you want to start a blog to highlight the work of women technologists, I’d subscribe, and when something interesting pops up, I’d happily point to it. But if you use it as a place to bash men, I’ll unsusbscribe immediately. There’s already plenty of that in the world, I don’t need more.

So, imho, you’re wrong if you think it’s sexism, with Shelley and a few others (who are men, btw), it’s fear that keeps this blogger from pointing. Otherwise I just don’t know of any women technologists doing interesting stuff in weblogs. Hopefully you’ll take that at face value and won’t go somewhere personal with it. But if you do, there’s the demo of why you aren’t getting anywhere.

I didn’t want to respond to this in misbehaving.net’s comments — I guess I’m the kiss of death when it comes to dialog. But what Dave is doing here is using the carrot and stick I talked about earlier: do what I say, and I’ll link to you; start up with that ‘male bashing’ stuff and you’ll displease me and I’ll never link to you and you’ll stay obscure. This goes back to the conversations I’ve had about some A-Listers using the power of their link to control and manipulate the flow of information within our communities.

I’ve long decided that a link from Dave comes with too high a price tag. However, I consider his statement about not linking to people who are personally abusing rather quaint considering how much he’s linked to Mark Pilgrim lately, and I think we can all agree that whatever I’ve said or done about Dave, Mark’s beat me.

No this is a perfect example of the environment that Anil described in the Chicken Story — the men may argue among themselves and be abusive, but if a woman intrudes, even politely, the intrusion is never forgiven.

This wall of silence is what I referred to earlier and is the number one weapon to use against women who speak out in weblogging. Hell with that — it’s the number one weapon used against women who speak out, period.

And what’s sadder is that this wall is supported by women as much as men.

Categories
Technology Weblogging

Visual hints and clues

Recovered from the Wayback Machine.

At Burningbird, I modified my Movable Type template to display a small graphic associated with the subject (category) of a posting next to its title. Those who are less interested in my technology writing can then skip postings with the associated binary graphic next to the title; those who are uninterested in politics, can avoid that graphic, and so on. (My friend Chris at Empty Bottle also uses graphics to designate categories. However, his graphics are a lot more sophisticated than mine.)

I thought about creating multiple weblogs and focusing each on a different topic within the framework of my writing as ‘Burningbird’, but I wouldn’t write more (or less) on any subject just because I split them out into different weblogs. All I would do is scatter my thoughts about like dried bits of corn on a dusty field, forcing my readers to take on the visage of Crow, pecking about hoping to find that edible kernel among the dirt.

Besides, my thoughts don’t split cleanly along subject and topic, neatly categorized into discrete buckets. I’m just as likely to throw new photographs or a bit of writing whimsey into an essay on RDF, or mix a little technology into an essay on the Environment. My weblog reflects my writing, which reflects my mind: muddied waters of blended interest.

First, I created all the graphics of a relatively uniform size. I made them slightly longer than the heading caption bar, as I wanted to drop just below it. I then saved the graphics in the PNG format, naming them the exact name of the category.

Next, to add the graphic, within the main index template, I found the entry section associated with the posting title, as marked with the use of the MT template tag <$MTEntryTitle$>. I then replaced that tag with the following, which not only displays the graphic, but also has a link to the category page for people who want to read more entries based on that category:

 

<a href=”MTBlogArchiveURL<$MTEntryCategory dirifty=”1″ $>/index.htm”><img src=”http://weblog.burningbird.net/mm/<$MTEntryCategory$>.png” alt=”<$MTEntryCategory$>” align=”left” hspace=”6″ border=”0″ /></a>
<div class=”titlebox”><span class=”title”><a style=”text-decoration: none” href=”<$MTEntryLink$>”><$MTEntryTitle$></a></span></div>

 

 

The exact same template code can be used with the title on each individual page, for the same effect.

Graphic/Topic:

– Adventure

– Connecting

– Culture

– Environment

– Life

– Metablogging

– Neighborhood

Photography

– Politics

– Sensory

– Technology

Writing

– Sensuous Technology

– Women’s Writing

Categories
Technology Weblogging

Recent Comments Trackback – Introduction

Recovered from the Wayback Machine.

My weblogs show a Recent Comment/Trackback list that I’ve implemented using SQL and PHP rather than MT tags. The main reason I didn’t use tags is that I filter comments to showing only those that are on posts 30 days old or newer. This helps focus comments on current conversations, and also helps cut down some of the comment spamming problems.

An additional requirement for my Last Comments/Trackbacks list to intermix the comments and trackbacks into one list, showing the most recent items regardless of type of comment — local or remote. There are plug-ins to use to do some of this, but I like to keep my fingers into the PHP/SQL world.

To manage this, what I did was use what is called a SQL union. A SQL union operates pretty much as it sounds: it creates one set of data that’s the union of the result of two separate queries, and this data is what’s returned to the PHP program for processing. Unions have been around in Oracle and Sybase and other databases for some time now, but only added to MySQL in version 4.x. Luckily most of us are using 4.x.

The query string I’m using in my PHP process is:

 

$sql = ‘( SELECT tbping_id, tbping_source_url, tbping_title, entry_title, entry_id, blog_archive_url, tbping_created_on, 1 \’flag\’, category_label FROM mt_entry, mt_tbping, mt_trackback, mt_blog, mt_placement, mt_category WHERE entry_id = trackback_entry_id AND trackback_id = tbping_tb_id and entry_blog_id = blog_id AND entry_status = 2 AND placement_entry_id = entry_id and placement_is_primary = 1 and category_id = placement_category_id ORDER BY tbping_created_on DESC LIMIT 20 ) UNION ( SELECT comment_id, comment_url, comment_author, entry_title, entry_id, blog_archive_url, comment_created_on, 2, category_label FROM mt_comment, mt_entry, mt_blog, mt_placement, mt_category WHERE entry_id = comment_entry_id AND entry_blog_id = blog_id AND entry_status = 2 AND placement_entry_id = entry_id and placement_is_primary = 1 and category_id = placement_category_id and TO_DAYS(NOW()) – TO_DAYS(entry_created_on) <= 30 ORDER BY comment_created_on DESC LIMIT 20 ) ORDER BY 7 DESC LIMIT 20 ‘;

 

As you can see, this query is not necessarily for the faint at heart, or someone who isn’t familiar with SQL. I could at this point just tell you to copy and past this into your own page. However, if you’re like me, you don’t necessarily like using technology without having a better understanding of exactly what it is you’re doing, and why.

In this multi-part roll-out of the MySQL/SQL for Poets weblog, I’m going to cover all the different components of this query, including providing a basic introduction to the SELECT statement, using functions with queries, and ending with the UNION and how this query is used within PHP to provide the recent comments/trackbacks list.