Jacksonville Code Camp Needs Sponsors

The Jacksonville Code Camp needs sponsors. The Code Camp is a free event for developers now in its forth year.

Sponsorships can be as low as $25.00. The code camp needs to raise $10,000 for the entire event.

This years camp should be very good, because there will be tracks for .NET, Java, Ruby, Flex and ColdFusion.

Linq presentation tomorrow at the JAXDUG .NET meeting

I will be giving my Linq presentation tomorrow at the JAXDUG meeting. This presentation covers the basics of Linq for SQL. The meetings are held at building 500 at the Bank of America campus in Jacksonville. The meeting starts at 6:00 PM.

Enterprise Library Oracle and SQL Server Parameter Tokens

I have been using the DAAB part of the Enterprise Library at my current job. One of the advantages of using this library is that you can write ANSI standard SQL, and it should work with any Relational Database.

The problem with this is that if you want to use parametrized queries, T-SQL and PL-SQL use different prefixes in front of the parameters.

[More]

WCF versus traditional ASMX web services

I just purchased a book on the Windows Communication Foundation. I had a discussion with a Co-worker about why someone would write a SOAP based web service in WCF over traditional ASMX.

[More]

Personal update

I have not been blogging much over the last month. I have had a few funerals and weddings that I have been attending. I have recently switched jobs. I was working for Idea Integration as a Microsoft Consultant, mainly around SharePoint and SQL Server consulting, but I left them at the end of last month. By the way, if you are looking for SQL Server or SharePoint consulting, go with Idea Integration.

I am now working as a .NET developer for HCR Software in Jacksonville. We build web based software for Human Resources.

I hope to blog more about .NET, but I am still active in the ColdFusion and Flex space. I plan on having meetings next month for JaxFusion user group on Flex and ColdFusion.

CFDump on .NET

I have been developing almost exclusively in C# .net for about a year now. In that time, I have wished for some of the language functionality in ColdFusion to find its way into C#.

I have been using Visual Studio 2008 since it came out, and I found a project that is used to test Linq called ObjectDumper. It compiles a class called ObjectDumper that can be used for dumping the value of just about any object into a command line.

Here is some sample syntax;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DumperTest
{
class Program
{
static void Main(string[] args)
{
var myObject = new[]
{
new { Name = "Chris Smith", PhoneNumbers = new[] { "206-555-0101", "425-882-8080" } },
new { Name = "Bob Harris", PhoneNumbers = new[] { "650-555-0199" } }
};

var myPets = new[]
{
new { name = "Spike", number=9 },
new { name = "Snoopy", number=7 }
};

ObjectDumper.Write(myObject);

ObjectDumper.Write(myPets);
}
}
}

Old and Busted: 32 bit hardware; New Hotness 64 bit hardware

I am taking a class on Microsoft SharePoint architecture this week. I learned today in the class that the next version of SharePoint will be 64 bit only. If you are going to be buying new server hardware, get 64 bit hardware.

Not only does SharePoint run better on 64 bit hardware, so does MS SQL Server and ColdFusion. You can also take advantage of much more RAM. I believe that 32 bit hardware is limited to a maximum of 2-4 GBs. 64 bit hardware can go up to 256 Terabytes in theory.

SQL Saturday coming to Jacksonville

SQL Saturday is coming to Jacksonville on Saturday May 3rd, 2008. The conference will be held at the UNF campus.

The SQL Saturday conferences encompass one hour sessions on SQL Server and technologies used in conjunction with SQL Server.

I will be giving a couple of presentations this year at this conference. You can go and register now, and the registration is free.

Converting WMF files to Gif files in ColdFusion 8 using the .NET interop

Todd over at cfsilence.com had a a question about one of my recent blog posts on converting WMF files to GIF files. I gave an example of how to do this in .NET, but how do you leverage ColdFusion's .NET integration to do the same thing in ColdFusion.

The first thing you have to do is create a class project in .NET. Add a reference to the System.Drawing library. Here is the class I built for this example;

[More]

Converting Image files in InfoPath to gifs once submitted

I have been developing a lot of windows workflows and web services in .NET recently. I came across a need to convert a WMF file (Windows Meta File) into a gif file. SQL Server Reporting Services can not display WMF files.

.NET 2.0 can convert and resize images natively. Here is how I converted the WMF files. First I added the following using statements;

using System.Drawing;
using System.Drawing.Imaging;

InfoPath saves images as Base64 strings, and .NET treats this as a byte array. So I had to convert the WMF byte array to a gif byte array.

byte[] imageByteArray = DiagramImage;
MemoryStream inStream = new MemoryStream(imageByteArray);
StreamReader myStreamReader = new StreamReader(inStream);
Image myImage = Image.FromStream(inStream);
Bitmap myBitmap = new Bitmap(myImage);
Graphics myGraphics = Graphics.FromImage(myBitmap);
//Keep background white. myGraphics.Clear(Color.White);
myGraphics.DrawImage(myImage, 0, 0, myImage.Width, myImage.Height);
MemoryStream outStream = new MemoryStream();
myBitmap.Save(outStream, ImageFormat.Gif);
byte[] gifByteArray = outStream.GetBuffer();

Sending Email with Attachments from Sharepoint Custom Workflows

I have been developing custom Sharepoint workflows in Visual Studio 2005 over the past year. It can be fustrating developing for Sharepoint 2007 because Microsoft has done a lousy job documenting the Sharepoint API.

The SendMail activity in the workflow tools does not allow for email attachments. I found a good work around is to use the .NET email API in a custom code activity.

[More]

More Entries

BlogCFC was created by Raymond Camden. This blog is running version 5.6.001.