>>> print "".join(" hello world ".split())
helloworld
The key to the above is that split() separates the string on
any amount of whitespace when no separator is specified.
Posted on in Programming
Posted on in IT Management
Engineering firm CH2M Hill recently began moving away from VMware ESX to Microsoft's Hyper-V. CH2M Hill has been using VMware technology since 2005, but recently began the push toward Hyper-V in an effort to increase savings through more virtualization. The engineering firm believes it will save over \$280,000 in …
Posted on in Software
In a test lab, we ran into a situation where the connection between our Cisco Access Registrar (AAA) server and MySQL server was timing out. This forced the server to reconnect and resulted in the following errors:
name/radius/1 Error Server 0 ODBC client (DataSource 'my_odbc', Connection 8): SQLExecute …Posted on in Software
Oracle's VirtualBox 3.2.8 has been released. This is a maintenance release that mainly focuses on bug fixes rather than new features. Although I don't think the changes in this release are as prolific as the fixes in 3.2.6, it's definitely worth downloading.
One key feature buried …
Posted on in System Administration
We ran across the following error on a MySQL slave server recent:
mysql> SHOW SLAVE STATUS \G
<snip>
Last_Error: Query caused different errors on master and slave. Error on master: 'Deadlock found when trying to get lock; try restarting transaction' (1213), Error on slave: 'no error' (0). Default database: '<database_name …Posted on in Programming
If you need to debug what queries your WordPress site is making, try adding the
following PHP to your theme:
<?php
foreach ( $wpdb->queries as $query ) {
echo "$query[0]<br />";
}
?>
For this code to work, you need to add the following line to wp-config.php:
define('SAVEQUERIES', true);
After that …
Posted on in Networking
The situation: A Cisco 7604 with SAMI card is able to send packets from the individual IOS instances running on the SAMI PPCs, but is unable to receive packets.
The hardware: The table below describes the hardware involved.
| Part Number | Description |
|---|---|
| CISCO7604 | Cisco 7604 Router |
| SUP32-GE-3B | Cisco Catalyst 6500 Series … |
Posted on in Software

The guys at Google have rolled out a few interface changes for Gmail users. So far, these changes have not been rolled out to Google Apps users.
The Gmail interface has been slimmed down to remove clutter and make it easier to find what you need. The result …
Posted on in Networking

This is a picture (larger) of a Cisco 7604 with Sup32 and SAMI card. The modules you see here are:
| Part Number | Description |
|---|---|
| CISCO7604 | Cisco 7604 Router |
| SUP32-GE-3B | Cisco Catalyst 6500 Series / Cisco 7600 Series Supervisor Engine 32 with 8 ports Gigabit Ethernet, PFC3B, and MSFC2A |
| WS-SVC-SAMI-BB-K9 | Cisco … |
Posted on in System Administration
As every system administrator is aware, keeping precise time on your servers can be critical. For example, if you use QueueMetrics for your Asterisk-based call center and the QM and MySQL servers are running with different times, users will notice confusing behavior as calls seem to arrive in the future …
Posted on in Networking
For some reason, they don't make this completely obvious.
login: admin
password: admin
Posted on in System Administration
On one of the WordPress-based websites I maintain, I have removed the category base so that, when browsing a category the url doesn't end with /category/category-slug/. I accomplished that by putting a single '.' in the "Category base" text box of the Permalinks admin page. This worked fine until I …
Posted on in System Administration
Posted on in Networking
I would hope there is a better way to do this. The other day, I had a need to see all the interfaces on a router and how much input and output traffic they were passing. This just seems like something that should be built in, but I've not seen …
Posted on in System Administration
Configuring your syslog server to accept logging output from your Cisco routers and switches requires a few basic steps. We'll assume that you are using a new server and haven't made any previous changes to the syslog configuration. I use <acronym title="Red Hat Enterprise Linux">RHEL</acronym> 5 most …