Plugin Review: Members

Another day, another WordPress plugin review!

Today I’ll be reviewing the Members plugin.

Description:

Members is a plugin that extends your control over your blog. It’s a user, role, and content management plugin that was created to make WordPress a more powerful CMS.

The foundation of the plugin is its extensive role and capability management system. This is the backbone of all the current features and planned future features.

Members

Let’s get this show on the road!

Continue reading

Updating all Git Repositories with Ruby

Ruby Logo

Today I decided to update an old script that I had been using.

Time to bring on the Ruby goodness!

Note: I updated the repository with the latest stuff.

It makes some assumptions. It has a hard coded default remote name of “origin” since that seems to be the most common. It also assumes that you want to pull all branches.

If any of these things are not true, feel free to alter the script to fit your needs.

Here’s what it ends up looking like:

Repository Updating Ruby Script

Repository Updating Ruby Script

Continue reading

WordPress 3.2 now available

A while ago I posted an article stating that WordPress was going to stop supporting PHP 4 and MySQL 4. As of July 4th, that statement has come to fruition.

Under the hood there have been a number of improvements, not the least of which is the streamlining enabled by our previously announced plan of retiring support for PHP4, older versions of MySQL, and legacy browsers like IE6, which allows us to take advantage of more features enabled by new technologies.

Matt Mullenweg

Aside from those major anouncements, I’ve been actively using WordPress 3.2 for weeks now and it’s awesome. I like the UI enhancements as well as the new distraction-free writing mode.

Here’s a glimps into some of the latest and greatest from the WordPress dev team.

The focus for this release was making WordPress faster and lighter. The first thing you’ll notice when you log in to 3.2 is a refreshed dashboard design that tightens the typography, design, and code behind the admin. (Rhapsody in Grey?) If you’re starting a new blog, you’ll also appreciate the fully HTML5 new Twenty Eleven theme, fulfilling our plan to replace the default theme every year. Start writing your first post in our redesigned post editor and venture to the full-screen button in the editing toolbar to enter the new distraction-free writing or zen mode, my personal favorite feature of the release. All of the widgets, menus, buttons, and interface elements fade away to allow you to compose and edit your thoughts in a completely clean environment conducive to writing, but when your mouse strays to the top of the screen your most-used shortcuts are right there where you need them. (I like to press F11 to take my browser full-screen, getting rid of even the OS chrome.)

Matt Mullenweg

Head on over to wordpress.org to see the full article.

Adding colored output to your Ruby Script

I wrote an older article about how to use colored output inside of a bash script and I figured it might be time to move from bash to ruby.

The code is much smaller and concise, I pulled the original source form stackoverflow:

#!/usr/bin/ruby

def colorize(text, color_code)
  "\e[#{color_code}m#{text}\e[0m"
end

def red(text); colorize(text, 31); end
def green(text); colorize(text, 32); end

# Actual example
puts 'Importing categories [ ' + green('DONE') + ' ]'
puts 'Importing tags       [' + red('FAILED') + ']'

But this is a bit primitive.

Alternatively you can use this gem, which is much cleaner and in my opinion, more ruby-ish.

#!/usr/bin/ruby

require 'rubygems'
require 'colored'

puts "This is some red text: " + "OMG it's SO RED!".red
Ruby Consol Script: Colored Gem

Example output using the Colored Gem

For more information on the Colored Gem, see its documentation. You can also view their repository.

Plugin Review: Iframe Embedder

MOAR!!!1!

Prefatory

Like a sweet twitching energy drink induced digital coma, I’ve been trippin balls the entire day with the plugin reviews!

I have had a few requests today – so this will probably be the last – then … MOAR CODING!

Now I’m reviewing Iframe Embedder!

Developer Note: I hate iFrames with a BURNING passion. Sometimes they are needed, but when all parties involved have done things properly – this is not the case.

Iframe Embedder lets you embed an iframe in a post by typing [iframe http://server/page.htm 100% 200px]

You can use % or px as units for width and height. If you omit unit- it will default to px. You cannot omit width and height values. You can use relative paths.

Iframe Embedder

Continue reading