Not your usual WordPress IO Error
Today I noticed I was getting the dreaded WordPress IO Error when uploading media. I've fixed this before, for me and other clients but this wasn't the usual error.
Not file permissions, not an anally retentive PHP install, not user error. Besides, media uploads worked via the HTTP uploader, just not the Flash uploader.
How Do I Change The Way Public Numbers Are Displayed In Interface?
When using the 4PSA VoIPNow interface there was nothing more annoying and confusing that it displaying phone numbers in a funky American format that none of us could read without squinting.
Its also confusing for customers who are viewing their reports online.
Multiple loops or making your own loop in WP-Ecommerce
A client of mine needed a feature that could only be solved with a second WP-Ecommerce loop and another feature that required looping WP-Ecommerce out of it's comfort zone (index.php)
You could use this code for custom loops, for example newest products, top selling products, newest products in a category.
Using WP-Ecommerce Product Downloads without checking out
I've used WP-Ecommerce for a few clients who required an online catalogue, rather than an online store.
One client required a custom product display and wanted to print out the product downloads in the single_product.php file. Apparently its not possible as we're using Product Downloads for something other than what it was designed for.
It was originally designed for electronic products, you add to basket, pay and you can download the product downloads.
Truncate a string to the nearest word
Truncating a string in PHP is easy, substr($start,$finish), but its annoying when it truncates the string mid-word isn't it? Here's how I overcame the issue to truncate the string to the nearest word.
This is a modified function found on the PHP site.
Yealink T22/T24/T28 Logo Customisation

There is a little known feature in the latest firmware release for Yealink T22/T24/T28 phones. Sure you can do this already with Cisco phones, ask your local brain surgeon.
Yealink have made it super simple to change the logo displayed on their T22/T24/T28 handsets, well almost.
STUN Session Traversal Utilities for NAT
STUN might well save your VoIP ass. We've been experiencing more and more issues with our VoIP solution with regards to one-way audio. We were convinced it was NAT issue, in that cheap, crappy twenty pound routers couldn't do NAT traversal correctly. Installing an over-powered pfSense box didn't solve the problem.
Disk Considerations for a SolusVM Installation on CentOS
The Xen® hypervisor, the powerful open source industry standard for virtualization, offers a powerful, efficient, and secure feature set for virtualization of x86, x86_64, IA64, ARM, and other CPU architectures. It supports a wide range of guest operating systems including Windows®, Linux®, Solaris®, and various versions of the BSD operating systems.
Solus Virtual Manager (SolusVM) is a powerful GUI based VPS management system with full Xen Paravirtualization and Xen HVM support. SolusVM allows you and your clients to manage a VPS cluster with security & ease. It can be a little rtricky to install for the first timer.
Cleaning up WordPress Header
WordPress implements some HTML standards compliant code in the top of every page. Sometimes you just don't need it. I'm all for keeping page size as small as possible and ultimately quick at loading.
Lets look at the remove_action function from WordPress.
tcptrack
tcptrack is a sniffer which displays information about TCP connections it sees on a network interface. It passively watches for connections on the network interface, keeps track of their state and displays a list of connections in a manner similar to the unix 'top' command. It displays source and destination addresses and ports, connection state, idle time and superbly impressive - bandwidth usage.
A server admin must have.




