2718.us blog » Blogging http://2718.us/blog Miscellaneous Technological Geekery Tue, 18 May 2010 02:42:55 +0000 en hourly 1 http://wordpress.org/?v=3.0.4 (Yo)URL Shortening and Twitter-Announcing of Posts http://2718.us/blog/2009/09/21/yourl-shortening-and-twitter-announcing-of-posts/ http://2718.us/blog/2009/09/21/yourl-shortening-and-twitter-announcing-of-posts/#comments Mon, 21 Sep 2009 09:07:29 +0000 2718.us http://2718.us/blog/?p=180 A while back, I’d looked at a couple of plugins to automate the announcing of new blog posts on Twitter, but hadn’t really found one that I liked.  Today, I found myself playing with really short (one-character) IDNs, which led to thinking about URL shortening, which led to YOURLS, which led back to WordPress and using Twitter to announce new posts (YOURLS plugin).

So, I’m posting this partly to spread the word and partly to see if the existence of this post will be successfully tweeted complete with short URL.

(NOTE: while YOURLS itself supported the IDN seamlessly, its WordPress plugin seemed to choke silently when pointed at the unicode form of the IDN for the YOURLS API and needed the punycode version to make it work.)

]]>
http://2718.us/blog/2009/09/21/yourl-shortening-and-twitter-announcing-of-posts/feed/ 0
2718.us Blog: Now with OpenID http://2718.us/blog/2009/08/30/2718-us-blog-now-with-openid/ http://2718.us/blog/2009/08/30/2718-us-blog-now-with-openid/#comments Mon, 31 Aug 2009 02:37:14 +0000 2718.us http://2718.us/blog/?p=167 I’m now trying the RPX plugin from JanRain to enable OpenID logins on this blog.  On the negative side, I’m committed to using BadBehavior to knock down server load from bots and BadBehavior seems to trap the redirect back here from your OpenID provider.  If you try to log in with OpenID and get an error screen instead of being redirected back to the blog, just go to your address field and hit enter to soft-reload the page and things should be fine.

Edit: actually, OpenID login now seems to be entirely broken.  Hmm…

]]>
http://2718.us/blog/2009/08/30/2718-us-blog-now-with-openid/feed/ 1
WordCamp Chicago http://2718.us/blog/2009/01/23/wordcamp-chicago/ http://2718.us/blog/2009/01/23/wordcamp-chicago/#comments Fri, 23 Jan 2009 21:51:41 +0000 2718.us http://2718.us/blog/?p=116 WordCamp Chicago badgeWordCamp Chicago is starting to seem real to me, though perhaps this has something to do with my having decided for sure to attend and paid actual money now.

June 6 – 7, 2009; venue to be announced by March 1.  More info and signup at http://wordcampchicago.com/.

]]>
http://2718.us/blog/2009/01/23/wordcamp-chicago/feed/ 0
Child Themes to Upgrade-Proof Your Theme Changes http://2718.us/blog/2008/07/03/child-themes-to-upgrade-proof-your-theme-changes/ http://2718.us/blog/2008/07/03/child-themes-to-upgrade-proof-your-theme-changes/#comments Fri, 04 Jul 2008 04:52:30 +0000 2718.us http://2718.us/blog/?p=47 I’ve had yet another why-didn’t-anyone-tell-me-sooner moment–child themes in WordPress.  From How To Protect Your WordPress Theme Against Upgrades (via Parent Child Themes and How I used a WordPress Child Theme To Redesign My Blog The Smart Way):

Problem: You’ve finally found a theme you like but you want to modify it. The modifications are pretty simple but what happens when you want to upgrade the theme? Do you really want to go through all those files again hunting down the changes? Don’t you wish you could just upgrade and be done with it?

So, basically, install the theme you want, create a new theme directory for you modifications, and in the style.css file, which defines the metainfo for the style, designate the original (unedited) theme as the template.  If need be, use functions.php to make more modifications.  Just note that any template files in your own version’s directory beyond style.css and functions.php will be ignored.

When it comes time to upgrade the theme, you upgrade the “parent” theme and your modifications are unchanged in their own directory.

]]>
http://2718.us/blog/2008/07/03/child-themes-to-upgrade-proof-your-theme-changes/feed/ 0
Another WordPress+bbPress Integration Gotcha http://2718.us/blog/2008/05/01/another-wordpressbbpress-integration-gotcha/ http://2718.us/blog/2008/05/01/another-wordpressbbpress-integration-gotcha/#comments Thu, 01 May 2008 21:37:29 +0000 2718.us http://2718.us/blog/?p=33 Somehow (my best guess is it happened with the database update in the WP2.5.1 upgrade), the database secret, stored as “secret” and visible on /wp-admin/options.php, changed making the logins for bbPress and WordPress clobber each other (both apps using the same cookie, but each app rewriting the cookie with its own contents, rather than recognizing the other app’s contents).  If you’re having trouble with WordPress 2.5.1 + bbPress 0.9.0.2, especially if you’ve already watched the cookies go by and are sure that both apps are using the same cookie, check your secret (in bbPress, it’s in Admin > Settings > WP Integration).

]]>
http://2718.us/blog/2008/05/01/another-wordpressbbpress-integration-gotcha/feed/ 2
Oh, so *that’s* why the WordPress.com stats plugin said I had no traffic… http://2718.us/blog/2008/05/01/oh-so-thats-why-the-wordpresscom-stats-plugin-said-i-had-no-traffic/ http://2718.us/blog/2008/05/01/oh-so-thats-why-the-wordpresscom-stats-plugin-said-i-had-no-traffic/#comments Thu, 01 May 2008 20:38:24 +0000 2718.us http://2718.us/blog/?p=32 It seems that some themes that I’d used as the bases for my own themes on my WordPress installs (other than this one) didn’t have

<?php wp_footer(); ?>

in the footer.php file, like they should, I guess, since that seems to be what the WordPress.com stats plugin needs to register hits.  I had been wondering why the numbers on my dashboards didn’t even remotely match my awstats numbers.

]]>
http://2718.us/blog/2008/05/01/oh-so-thats-why-the-wordpresscom-stats-plugin-said-i-had-no-traffic/feed/ 0
WordPress 2.5.1 http://2718.us/blog/2008/04/25/wordpress-251/ http://2718.us/blog/2008/04/25/wordpress-251/#comments Fri, 25 Apr 2008 18:16:45 +0000 2718.us http://2718.us/blog/?p=29 The .1 update that many people said they were waiting for is here. (And there are reminders all over every admin page on my blog, too.)

Version 2.5.1 of WordPress is now available. It includes a number of bug fixes, performance enhancements, and one very important security fix. We recommend everyone update immediately, particularly if your blog has open registration. The vulnerability is not public but it will be shortly.

The notice also mentioned the SECRET_KEY thing that I talked about yesterday and gave a link to auto-generate the line for wp-config.php:

Since 2.5 your wp-config.php file allows a new constant called SECRET_KEY which basically is meant to introduce a little permanent randomness into the cryptographic functions used for cookies in WordPress. You can visit this link we set up to get a unique secret key for your config file. (It’s unique and random on every page load.) Having this line in your config file helps secure your blog.

Upgrading took me about 15 seconds (as usual), mostly to find the svn command in the codex again and then a few seconds to run it and a few seconds in hitting the “database upgrade” page on the site before things were all done.

]]>
http://2718.us/blog/2008/04/25/wordpress-251/feed/ 0
The SECRET_KEY in WordPress http://2718.us/blog/2008/04/24/the-secret_key-in-wordpress/ http://2718.us/blog/2008/04/24/the-secret_key-in-wordpress/#comments Thu, 24 Apr 2008 22:20:59 +0000 2718.us http://2718.us/blog/?p=27 I’ve gotten into the habit of actually reading the various blogs to which there are links on my WordPress dashboard and I saw this today from boren.nu:

To make cookies secure against attacks where someone has managed to get into your database through an SQL injection exploit or other means, WordPress 2.5 introduced a user-definable constant called SECRET_KEY. If you look at the sample wp-config.php shipped with 2.5, you’ll see these lines.

// Change SECRET_KEY to a unique phrase. You won’t have to remember it later,
// so make it long and complicated. You can visit https://www.grc.com/passwords
.htm
// to get a phrase generated for you, or just make something up.
define(’SECRET_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase

If you upgraded from a previous version of WordPress you probably won’t have these lines in your wp-config.php.

That last bit is, of course, the critical thing for me and had me going back and inserting SECRET_KEYs into all my older/upgraded WordPress installs.  Just remember that if you’re integrating with bbPress, you have to match the SECRET_KEYs in wp-config.php and bb-config.php.

]]>
http://2718.us/blog/2008/04/24/the-secret_key-in-wordpress/feed/ 2
Can You Really Upgrade WordPress in 5 Minutes? http://2718.us/blog/2008/04/14/can-you-really-upgrade-wordpress-in-5-minutes/ http://2718.us/blog/2008/04/14/can-you-really-upgrade-wordpress-in-5-minutes/#comments Mon, 14 Apr 2008 19:59:02 +0000 2718.us http://2718.us/blog/?p=20 5 minutes is a long time for upgrading WP, as far as I’m concerned.  I think it might have taken 5 minutes total to upgrade all three of my current WP installs and check/fix plugin issues.  Mind you, I use the subversion method of upgrading.  If you have shell access and can run subversion, it is so incredibly easy to upgrade WP with it that I don’t ever want to go back to the download-unzip-upload stuff I used to do.  In a post I referenced earlier, Matt said:

Upgrade your blog to the latest WP. This shouldn’t be hard. There are plugins for it, if you’re techy use Subversion, there is the standard FTP method, and finally Media Temple, Dreamhost, and Bluehost (through SimpleScripts) all have been pretty good about having their one-click upgrade systems ready with new versions within a day or two of a release.

I’m techy, sure, but I don’t know much about subversion other than it seems to have replaced CVS and I didn’t know much of anything about CVS other than that people working on big OSS projects seemed to use it.  (Okay, I know a little more about what subversion and CVS are supposed to do, but I’ve never actually used a check-in/check-out/versioning system.)  I literally just installed subversion with the package manager on my system, then used the commands given in the WP Codex.  Not very techy-like.  Done.

]]>
http://2718.us/blog/2008/04/14/can-you-really-upgrade-wordpress-in-5-minutes/feed/ 0
Matt (yes, that Matt) on WordPress Security http://2718.us/blog/2008/04/14/matt-yes-that-matt-on-wordpress-security/ http://2718.us/blog/2008/04/14/matt-yes-that-matt-on-wordpress-security/#comments Mon, 14 Apr 2008 17:28:56 +0000 2718.us http://2718.us/blog/?p=19 Even though the post title and first paragraph are about calling out a sound-and-fury-signifying-nothing alert, most of his post is good stuff on WordPress, with lots of links.

… there is a wave of attacks going around targeting old WordPress blogs, particularly those on the 2.1 or 2.2 branch. They’re exploiting problems that have been fixed for a year or more. This typically manifests itself through hidden spam being put on your site, either in the post or in a directory, and people notice when they get dropped from Google.

]]>
http://2718.us/blog/2008/04/14/matt-yes-that-matt-on-wordpress-security/feed/ 2