kieranbarnes these are the things i learnt today

Exchange Server Journaling

Posted on September 10, 2009

I've recently had to setup Journaling on an Exchange Server for a client - it was quite an experience. So I've made these notes that will hopefully help.

Microsoft Exchange Server journalling lets you record a copy of, or journal, all email communications in your
organisation and send them to a dedicated mailbox on an Exchange Server.

CentOS / cPanel Firewall Setup

Posted on July 17, 2009

I almost like CentOS now. That doesn't mean I can't get used to this daft yum nonsense, but its alright.
I also almost like cPanel too. Its actually quite good when it works, who knows how to fix it when things go wrong? /scripts/fixeverything doesn't exactly fill me with confidence.

Insert Coin

Posted on July 17, 2009

Bored at work? This script connects to a JetDirect equipped HP printer and uses HP's control language to set the ready message on the LCD display. Takes an IP address and message on the command line. My favorite message is "INSERT COIN".

Keep in mind the limitations of the display when composing your clever verbiage.

insert_coin

#!/usr/bin/perl
# $Id: hpsetdisp.pl 11 2006-03-22 01:21:03Z yaakov $

# hpsetdisp.pl

use strict;
use warnings;

unless (@ARGV) { print "usage: $0 \"\"\n" ; exit }
if ($ARGV[3]) { print "Did you forget the quotes around your clever
message?\n" ; exit }

my $peeraddr = $ARGV[0];
my $rdymsg = $ARGV[1];
chomp $peeraddr;

use IO::Socket;
my $socket = IO::Socket::INET->new(
PeerAddr => $peeraddr,
PeerPort => "9100",
Proto => "tcp",
Type => SOCK_STREAM
) or die "Could not create socket: $!";

my $data = <
\e%-12345X\@PJL JOB
\@PJL RDYMSG DISPLAY="$rdymsg"
\@PJL EOJ
\e%-12345X
EOJ
;

print $socket $data;


Filed under: Geeky No Comments

Custom Page Templates Not Showing in Wordpress

Posted on July 9, 2009

I've recently starting getting an annoying error in Wordpress, I'm not sure if its my browser, or the latest version of Wordpress.  I create a custom page template and... it doesn't show up. Frustrating.

Getting mytop to work on CentOS/Redhat

Posted on July 9, 2009

Screw all these AJAXified, buzz-wordified MySQL monitors. I'm old school. I use the fantastic mytop tool Jeremy Zawodny created 9 years ago.

Unfortunately it won't run on CentOS. I got the error, 'Error in option spec: "long|!"'

Filed under: Linux, MySQL Continue reading

Facebook Chat for Pidgin

Posted on May 13, 2009

My favourite instant messenger application just got better! There is now a plugin for Facebook.

pidgin-facebookchat is a Facebook chat plugin for Pidgin and other libpurple based messengers. It connects to the new Facebook Chat IM service without the need for an API key.

facebookchat

Currently the plugin can log into the Facebook servers, grab the buddy list, send/receive messages, add/remove friends, receive notifications, search for Facebook friends and set your Facebook status.

Filed under: Wordpress 1 Comment

Preventing MSN Messenger Spam in Pidgin

Posted on May 13, 2009

I use Pidgin as my instant messenger application. Mainly because it allows me to chat to clients and sub-contractors across Yahoo, Google, MSN etc all in one application, with the added bonus of not being full of spam and adverts to hurt my eyes.

Filed under: Windows Continue reading

Using SCP to copy files between Linux servers

Posted on April 4, 2009

even a gnome shell can look goodSCP? SCP is a method of securely transferring files between a local and a remote host or between two remote hosts, using the Secure Shell (SSH) protocol.

Sounds confusing?

Filed under: Geeky, Linux Continue reading

Permanently mount a Windows share in Linux

Posted on April 4, 2009

A Terrabyte?Sick of manually mounting a Windows share on Linux with "mount" for it to drop off randomly? Or not really knowing if it is mounted or not?

Then make a permanent mount in fstab.

SQLyog Query Profiler

Posted on February 10, 2009

MySQL has always lacked the sophisticated profiling tools shipped with proprietary databases like SQL Server, etc. MySQL developers have largely depended on EXPLAIN for tuning queries. The SHOW PROFILE patch by Jeremy Cole was introduced in the MySQL Community version 5.0.37 and it provided much more insight into where the query spends its time. However, to take advantage of this feature, MySQL developers were supposed to switch on profiling, run their queries and then filter the profiling data from a table that contained the profiling results of the last few profiled queries. A lot of manual book-keeping is required to take advantage of this powerful feature. In an ideal situation, the MySQL developer should execute the queries and the profiling info should be available along with the result-set. Unfortunately, none of the MySQL client tools (desktop or web-based) provide intrinsic support for this feature.

Watch the Screencast on Query Profiler.

I♥MySQL

Filed under: MySQL, Windows No Comments