Login »

Michael Dale

Search Posts

Categories

Bluetrait
        Bluetrait
            Coding
            Geek
            General
            Coding
                PHP
                Bluetrait
                WordPress
                    Plugins
                PHP
                Bluetrait (Program)
            Geek
                Juniper
                Cisco
                IBM N2200 8363
                PCs
                Spam
                IPv6
                Apple
                NetScreen
                Internet
            General
                Uni

Click here if you are looking for Bluetrait, the weblog software.


Login

Username:

Password:

Bluetrait Event Viewer 1.8

Posted by Michael Dale on Sat, 03 May 2008 5:17 PM

Bluetrait Event Viewer 1.8 is now out.

Version 1.8 has updated styling to match WordPress 2.5 and also adds an RSS feed for recent events.

I also got an email from Ozgreg yesterday (one of the developers who writes WPG2) saying that they now use BTEV for debugging and unit testing for their plugin, awesome!


Bluetrait Event Viewer 1.6

Posted by Michael Dale on Sun, 27 Jan 2008 4:52 PM

Bluetrait Event Viewer (BTEV) 1.6 is now out. It has a few fixes that should make it compatible with WordPress 2.5 (due out in March I believe).


Syntax Highlighting

Posted by Michael Dale on Wed, 02 Jan 2008 11:42 AM

I wrote a small plugin for Bluetrait 2 that allows some basic WordPress plugin compatibility. The first plugin that works is WP-Syntax the only change that was required to this plugin was to rename the main plugin file.

Let's give it a test:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/*
	Bluetrait 2.0 Cron Support
	Michael Dale Copyright 2007
*/
 
//stop from running over and over again :)
define('BT_RUNNING_CRON', TRUE);
ignore_user_abort(TRUE);
 
include('bt-common.php');
 
$cron_intervals = bt_get_config('cron_intervals');
 
if (!is_array($cron_intervals)) exit;
 
foreach ($cron_intervals as &$cron_interval) {
	if ($cron_interval['next_run'] <= bt_datetime()) {
		$cron_interval['next_run'] = bt_datetime($cron_interval['frequency']);
		bt_run_section('cron_' . $cron_interval['name']);
		//too noisy
		//trigger_error('Cron ('.$cron_interval['description'].') Successful', E_USER_NOTICE);
	}
}
 
bt_set_config('cron_intervals', $cron_intervals);
?>

Looks like I need to make a few changes to the CSS. But it doesn't look too bad.


PHP 5.3

Posted by Michael Dale on Wed, 02 Jan 2008 10:38 AM

I had a play around with PHP 5.3. The main new feature is namespaces. I am looking forward to using this in future.

Unfortunately PHP 5.2 isn't very common so using namespaces in my code will need to wait.

This is a good website if you want to learn about how namespaces will work in PHP 5.3


WampServer 2

Posted by Michael Dale on Tue, 18 Dec 2007 8:06 AM

I've been using WAMP (a Windows package that includes: MySQL, PHP and Apache) for dev purposes and it has been great.

The new version WampServer 2 is even more awesome. It is now possible to install multiple versions of Apache/PHP/MySQL. WampServer provides a tray icon that allows you to switch to a different version.

So now I can easily test Bluetrait with multiple versions of MySQL and PHP *is happy*

Bluetrait works with PHP-6 dev too!


SQLite is a pain

Posted by Michael Dale on Wed, 05 Dec 2007 4:02 PM

SQLite is a pain to work with.

The problems I'm having:

  • Where are the DATE functions!?
  • Why can I not modify a table stucture with the MODIFY command!?
  • Why don't LIMITs work on deleting and updating!?

Such a pain.

The only good thing about SQLite is that it just comes with PHP5 and you don't need to install anything.

MySQL has been working perfectly as usual.


Bluetrait Event Viewer 1.5

Posted by Michael Dale on Thu, 29 Nov 2007 10:25 PM

Bluetrait Event Viewer (BTEV) is a plugin I wrote for WordPress that adds an event viewer similar to the one found in Bluetrait 1 and 2.

BTEV has just been updated to version 1.5.

Version 1.5 now includes an auto prune function to remove old events.

BTEV seems pretty popular, it has almost reached 700 downloads off the WordPress site.


Plugins

Posted by Michael Dale on Tue, 27 Nov 2007 11:59 PM

I'm slowing building up a collection of plugins I've written for Bluetrait...

Bluetrait 2 Plugins.


Bluetrait Search 1.0

Posted by Michael Dale on Sat, 17 Nov 2007 5:07 PM

I've made public the search plugin I wrote for this site.

It can be downloaded from here and is under the "Creative Commons Attribution-ShareAlike 2.5 License".

The plugin requires Bluetrait 2 and MySQL.

It probably won't be any use to anyone as Bluetrait 2 isn't even in Beta yet ;)


The problems with PHP

Posted by Michael Dale on Sat, 17 Nov 2007 1:37 PM