Archive for the ‘Tips’ Category
Friday, November 14th, 2008
We recently started deploying servers with Areca RAID controllers (we had been a long time 3ware purchaser, but recently the cards and the support of them seems to have taken a turn for the worse).
Areca provides a handful of tools for managing their RAID controllers, but leave it to you ...
Posted in Tips | 3 Comments »
Wednesday, August 13th, 2008
Sometimes when building rpm packages you will get an rpm that requires a file that it already contains. This seems pretty lame (which it is) but here is an example and a workaround.
Building a package for freepbx we see this output:
rpmbuild -ba freepbx.spec
--------snip-----------------
Provides: config(freepbx) = 2.4.0-0
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames)
Posted in Tips | 2 Comments »
Thursday, July 3rd, 2008
Wordpress has a page on "Writing a Plugin" that you can refer to for all the gory details; this post is a quick demonstration of how you too can notify people of updates to your Blog via Twitter.
Add your handlers:
add_action('edit_form_advanced','notify_customers_checkbox');
add_action('save_post','notify_customers');
Add some check boxes to the "Write Post" interface:
function notify_customers_checkbox()
{
?>
<fieldset id="notify_customers" ...
Posted in Tips | 4 Comments »
Tuesday, June 24th, 2008
At first blush you probably would not expect the following to print "-1"; as you probably expect "system" to execute and return the return code from "echo".
$SIG{CHLD} = 'IGNORE';
print system('echo');
This stumped me too, so I did some research.
From the Perl PIC Documentation:
On most Unix platforms, the CHLD (sometimes also known ...
Posted in Tips | 4 Comments »
Tuesday, June 24th, 2008
Not that you would ever want to forward your email away from Sonic.net, but maybe you like the idea of archiving and searching your E-Mail at a secondary E-Mail location; to that end the post below details how you should be forwarding your E-Mail in any UNIX environment.
You know that ...
Posted in Tips | 1 Comment »