Quickcode

OK, I’ve gone back to using the Quickcode plugin now. Chrissy the author IM’ed me and we sorted out a problem with the CSS file that seemed to result in the little icon not appearing…. I can do without the syntax highlighting as we have hiding and scrolling, plus she patched it to add square brackets, so it can be editted using TinyMCE (I’m finding BloGTK is a bit unreliable).

DBD::Sybase

I managed to get DBD::Sybase installed and working by doing this as root: cat /opt/sybase/OCS-15_0/lib > /etc/ld.so.conf.d/sybase.conf /sbin/ldconfig #!/usr/bin/perl -w # import modules use strict; use DBI; use Data::Dumper; # connection details my $database = 'master'; my $server = 'VMCENTOS43'; my $username = 'testuser'; my $password = 'testpwd'; # connect to sybase my $dbh; eval { $dbh = DBI->connect("DBI:Sybase:server=$server;database=$database", $username, $password, {RaiseError => 1, AutoCommit => 0}); }; # check for errors if ($@) { print DBI::errstr; } else { # limit results $dbh->do('set rowcount 5'); # prepare and execute sql my $sth = $dbh->prepare('select * from spt_values'); $sth->execute; # loop through results, printing to debugger while (my $data = $sth->fetchrow_hashref()) { print Dumper $data; } # finish statement and disconnect from db $sth->finish; $dbh->disconnect; } I’ve also found that the TinyMCE editor (even in HTML mode) doesn’t like the quickcode tags, so I have to use BloGTK as my editor, I’m currently trying out the Codesnippet plugin, which has nice syntax-highlighting, but doesn’t have the nice scrollbars and hide/show functionality.

WordPress

Urgh, 2am on Sunday, I can’t sleep for some reason, so I’ve been playing with various WordPress plugins, mainly trying to find one that displays code nicely. I’m currently going with the combination of Quickcode and Preserve Code Formatting. As far as security goes, the Subscribers-only plugin looks promising, but for now I’m going with Page Restrict. I’ve also found a nice Linux client (which I’m using now) called BloGTK, which is nice as it’s written in PythonGTK.

Saturday

I chatted to Mum earlier, I’m getting a new toilet and sink for the downstairs utility room and the upstairs bathroom is in progress. Dad’s hearing aids are fixed, might even be able to sell one of my Sky boxes. Pip’s got her pool filled but the weather’s too cold at the moment, so I guess the solar isn’t heating it yet.