Recently in Software Category

In developing my extensions, I kept getting the following error:
Got an error: mutiple trigger registration in one add_trigger() call is deprecated. at lib/MT/Entry.pm line 282
Compilation failed in require at lib/MT/Compat/v3.pm line 12.
BEGIN failed--compilation aborted at lib/MT/Compat/v3.pm line 12.
Compilation failed in require at lib/MT.pm line 1210.

The code in MT/Entry.pm is incompatible with Class::Trigger 0.12, which comes with recent versions of perl. If you have set up your paths incorrectly (like $ENV{'MT_HOME'}) or you have plugins that require a version later than the Class::Trigger 0.10 that comes with Movable Type, you will encounter this problem. In my case, I'm linking in external libraries that use the later version.

To fix this, I'm using this patch:
--- lib/MT/Entry.pm     (revision 3196)
+++ lib/MT/Entry.pm     (working copy)
@@ -279,8 +279,12 @@
     );
 }

+# Must use separate statements from Class::Trigger 0.12
 MT::Placement->add_trigger(
     post_save   => \&flush_category_cache,
+);
+
+MT::Placement->add_trigger(
     post_remove => \&flush_category_cache
 );
Issue raised with Six Apart!
http://bugs.movabletype.org/default.asp?85080_etup
I don't host my own email, it's not something I want to have to manage given the complexities of hosting your own and the many free email providers out there such as Google's gmail. Nevertheless, webapps still need to be able to send mail and most will either use sendmail or SMTP. Unfortunately, setting up your own SMTP server for sending email is also not straightforward because if you cannot receive email, your server may be regarded as a spam provider by the outside world.

My solution is to set up an SMTP server that routes all outgoing email to Gmail using Exim4's Smarthost facility.

GD-Sharp for .NET Win32

| No Comments | No TrackBacks
GD-Sharp is a .NET wrapper for the GD Library, written by Mircea-Cristian Racasan, developed with mono for Linux and Windows. It is written in C# and it uses GD 2.x and more information about it can be found at http://gd-sharp.sourceforge.net/. The GD library itself is an ANSI C library for the dynamic creation of images. GD creates PNG, JPEG and GIF images, among other formats. It's home page is at http://www.boutell.com/gd/

I have extended GD-Sharp with the following which should make it back into the main GD-Sharp core shortly subject to a few unresolved issues. Also, unlike the main GD-Sharp library, this is target specifically for Win32/Microsoft .NET rather than mono. Visual Studio .NET 2003 projects are included in the source.

The patches have been integrated into the core codebase now so please visit the GD-Sharp site for downloads and more information

About this Archive

This page is an archive of recent entries in the Software category.

Physics is the previous category.

Find recent content on the main index or look in the archives to find all content.

Pages

OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.21-en