So I’m bored…Bored of a lot of things. So to satisfy at least part of my boredom, I killed my CSS a few minutes ago. Of course I have a backup, and yes I did kill it on purpose. Maybe someday I will restore it. My boredom isn’t driving me to rewrite my CSS, but destroying my CSS makes me smile, which seems to help. UPDATE: I just wrote a script to restore 10 lines of my css every 10 minutes. In about 11 hours the site should be back to normal. Perhaps I’ll write a script that continually removes all of the lines and then restores them all, 10 lines at a time. Wouldn’t that be interesting? (0)

Apache to nginx in 90 seconds

18 September, 2008 (10:25) | CoolStuff, Linux, Technology | By: Matt | Digg (0)

I spent about 30 minutes last night and switched all of my personal sites over to nginx, including the one you are on now and FreeMyFeed. Okay, so I know 30 minutes does not equal 90 seconds, but the title sounded more catching. The configuration for a secured, working nginx instance is quite small. On top of that, configuring virtual hosts is really easy.

The largest amount of time it took to get this finished was recreating the rewrite rules for Zenphoto. The rewrite rules can be found here. I haven’t tested all of the rewrite rules yet, but from quickly browsing through my gallery everything appears to be working well. Keep in mind that these rewrite rules were designed for a site where Zenphoto lives in the root. If it lives in a subfolder the rewrite rules will need to be modified accordingly. I can probably help if you ask nicely.

I have also moved over numerous WordPress sites to nginx. I won’t post their rewrite configurations here because you can find them easily using Google.

You can find the nginx rpms for EL4/EL5 in the Fedora Project’s EPEL repo.

If you have any nginx related configuration questions feel free to ask, I’m getting pretty familiar with the app.

Possibly Related Posts:


The Page Restrict and Moderate Selected Posts WordPress plugins have been updated. See their respective change logs for, what other than, changes. Page Restrict Change Log  —  Moderate Select Posts Change Log. (0)

Moderate Selected Posts WordPress Plugin

27 August, 2008 (16:21) | Plugins, Wordpress | By: Matt | Digg (0)

Force comment moderation on selected posts but allow others to remain open.

Simple admin interface to select your posts by title. This does not work for pages at this point, only posts.

Installation

  1. Upload the `moderate-selected-posts` folder to the `/wp-content/plugins/` directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Upgrade

  1. Delete the previous `moderate-selected-posts` folder from the `/wp-content/plugins/` directory
  2. Upload the new `moderate-selected-posts` folder to the `/wp-content/plugins/` directory

Usage

  1. Visit Settings>Moderate Selected Posts in the admin area of your blog.
  2. Select the posts you wish to moderate all comments on.
  3. Enjoy.

Change Log

1.1.1 (2008-09-09):

  • Small update to support PHP4

1.1 (2008-09-03):

  • Hook into comment process earlier so that a moderation email sent
  • Hook into approval process earlier than Akismet so that Akismet can override with spam
  • Re-wrote functions around new hooks
  • The comment author, admins and users with moderation capabilities are now not moderated

1.0 (2008-08-27):

  • Initial Public Release

Download
Moderate Selected Posts version 1.1.1
Archived Versions

Possibly Related Posts:


Gallery Shortcode Style to Head WordPress Plugin

27 August, 2008 (16:14) | Plugins, Wordpress | By: Matt | Digg (0)

Moves the gallery shortcode styles to the head so it doesn’t break XHTML validation.

By default when using the gallery shortcode the styles are placed into the post content which breaks XHTML validation. This plugin places the style into the head of the page using a look ahead to determine if the [ gallery]
shortcode is used in any posts.

This plugin uses ideas recommended in a patch located at http://trac.wordpress.org/attachment/ticket/6380/6380-style.diff

The ticket associated with the above diff is set to milestone 2.9. So it may take a while for the patch to be added to the WordPress core.

Installation

  1. Upload the `gallery-shortcode-style-to-head` folder to the `/wp-content/plugins/` directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Upgrade

  1. Delete the previous `gallery-shortcode-style-to-head` folder from the `/wp-content/plugins/` directory
  2. Upload the new `gallery-shortcode-style-to-head` folder to the `/wp-content/plugins/` directory

Usage

  1. Just activate and enjoy. Nothing else is required.
  2. To override the default style use `add_filter(’gallery_style’, ‘my_function’);` somewhere in your theme, probably functions.php, where my_function returns the new style. The new style should begin with `

    `

Change Log

1.1 (2008-09-22):

  • Added filter so that the default style can be overridden.

1.0 (2008-08-27):

  • Initial Public Release

Download
Gallery Shortcode Style to Head version 1.1
Archived Versions

Possibly Related Posts: