Monthly Archive for Oktober, 2006

toendaCMS.com opens his doors

I have created a new toendaCMS community webpage to provide a better platform and communication point for all toendaCMS fans. We have now only one place to publish themes, components and the CMS itself.
I'll change the layout and write better content, but at this time it's ok for a first look.
If you want to help me out, write me an email!
Go to this site !

Make a sandwich

sandwich

(from xkcd.com)

Google kauft YouTube.com

Ohne Worte.

Code Snippet – C#: Generate square thumbnails

To generate a square thumbnail in c#, use this code:

public Bitmap Generate75x75Pixel(Bitmap image) {
    if(image == null)
    throw new ArgumentNullException("image");
    Bitmap bmp = null;
    Bitmap crapped = null;
    int x = 0, y = 0;
    double prop = 0;
    if(image.Width > 75) {
        // compute proportation
        prop = (double)image.Width / (double)image.Height;
        if(image.Width > image.Height) {
            x = (int)Math.Round(75 * prop, 0);
            y = 75;
        }
        else {
            x = 75;
            y = (int)Math.Round(75 / prop, 0);
        }
        bmp = new Bitmap((Image)image, new Size(x, y));
        crapped = new Bitmap(75, 75);
        Graphics g = Graphics.FromImage(crapped);
        g.DrawImage(bmp,
            new Rectangle(0, 0, 75, 75),
            new Rectangle(0, 0, 75, 75),
            GraphicsUnit.Pixel
        );
        bmp = crapped;
    }
    else {
        crapped = image;
    }
    return bmp;
}

toendaCMS 1.0.7 Bugfixupdate

With this version i have fixed some bugs and at some new features. Here's a small list of this features:

  • phpMailer for the newsletter
  • The media manager can now add images from additional folders into your news and documents
  • The tinyMCE WYSIWYG Editor can now integrate Flash files to your news and documents

This version is really the last release on the 1.0 release line.
You can find the download on my company's website (link ).