Don’t like how the WordPress Tag Cloud widget sizes the fonts for tags?  It’s a rather easy change.  Edit the file /wp-includes/category-template.php and find:

function wp_tag_cloud( $args = '' ) {
$defaults = array(
'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45,
'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC',
'exclude' => '', 'include' => '', 'link' => 'view', 'taxonomy' => 'post_tag', 'echo' => true
);

Notice the “smallest” (8) and “largest” (22) key’s and their respective values?  Change those numbers to the font sizes you want and re-upload the file.

[ Be the first to comment ]

This is one way of setting up PBR between a Cisco 2811 (with a 4-port HWIC) and two Cisco ASA 5510′s.  The Cisco ASA’s could actually be any other piece of networking equipment that you want your traffic to route towards.  At any rate, I’m sure there are many different ways to go about this;  this is my way, which I can verify is in production at both large and small facilities.

Assuming you have CLI access to your router and have the ability to enter “privileged exec” mode, let’s get PBR setup. Continue Reading…

[ Be the first to comment ]

By default, the Enterasys “C” class series switch (possibly all Enterasys switches) have “port negotiation” set to “enable”.  While this feature might seem like a good idea, it goes against general best practices with other networking vendors, such as Cisco.

Coming from a Cisco background, I always hard-set my port duplex and speed on any networking gear I manage.  This can cause connection nightmares when plugging into an Enterasys switch, which has enabled port negotiation.  Enterasys’ port negotiation takes precedence over hard-set port attributes;  essentially disabling proper connections to some network gear (like Cisco).

Checking your Enterasys port negotiation settings:

show port negotiation [port-string]  /  show port negotiation ge.1.1

If no port is specifically noted, then all ports will be shown.  To change the status of a port or ports:

set port negotiation [port-string] enable|disable  /  set port negotiation ge.1.1 disable

[ Be the first to comment ]

Custom Keyboard Buttons

by Christopher

The volume controls on my Microsoft wireless keyboard stopped working. Every other button functioned as intended except for my volume controls. Evidently, this issue can be related to the “Human Interface Device (HID) Access” service not starting, being disabled, etc.

To fix: control panel -> administrative tools -> services -> “double click” on Human Interface Device Access.

Start the service if it’s not already and make sure the “startup type” is set to “automatic” and not “disabled”.

UPDATE: Removing the Microsoft Intellitype software also resolves this issue, should you have to constantly stop/start the HID service.

[ Be the first to comment ]

MySQL Find / Replace

by Christopher

Great piece of code to use when moving a WordPress site from one domain to another; quick way to replace the old domain name in the DB with the new one.

UPDATE `table_name` SET `field_name` = replace(same_field_name, 'unwanted_text', 'wanted_text')

[ Be the first to comment ]