Category: Programming

Java Server Pages

I got offered a job today using JSP. I haven’t touched this language at all so I was quite intrigued to see what it looked like. After a bit of reading it seems pretty easy to write although some areas appear much more bloated than C# i.e. there’s a lot of repeating code blocks. C# […]

Need help identifying fonts?

Its a site where you upload an image with the font in it and it will do its best to tell you the name of the font. This is quite old now but I only just found out about it: What The Font?

Flash8 BitmapData.loadBitmap() Woes

If you’ve been having trouble getting anything to appear when using the loadBitmap() function then chances are you’ve made a simple mistake. The documentation says to use the linkageId of a library object as the sole argument for this function i.e: var myBitmap:BitmapData = BitmapData.loadMovie(“libObjectId”); The key to using this function is that you have […]

Using credentials with the .net SmtpClient class

I had a bit of trouble deciphering the MSDN article below: What MSDN says about using credentials i.e the SmtpClient.Credentials property Using a username and password with the new .net mailer is actually quite easy (C#): SmtpClient mailer = new SmtpClient(); mailer.Host = "mail.youroutgoingsmtpserver.com"; mailer.Credentials = new System.Net.NetworkCredential("yourusername", "yourpassword"); mailer.Send("from@address.net", "to@address.net", "Subject line", "Main email […]

Updating .net 1 applications to .net 2

Today I was updating an old .net site to use the new .net2 classes. The warning messages in the C# Express IDE about obsolete classes where quite helpful but after a bit of googling I came across the following link. Its really handy for identifying areas in your applications that need special attention. I just […]