marthijn. Rotating Header Image

Posts under ‘Development’

How to send an e-mail from your Android app

I’m developing an Android application where the user must be able to send a file stored on the SD Card to a specific e-mail address. By using Android’s Intent class this is very easy. The following code snippet will bring up an e-mail application choose dialog. String filename = "file://" + Environment.getExternalStorageDirectory() + "/file.txt"; String [...]

Fix .NET 4 SocketPermission for MySQL driver in Medium Trust

Most .NET 4 shared hosting providers offering their customers a medium trust environment. This is not a problem for most web applications unless the applications uses MySQL in combination with the .NET MySQL driver (MySQL.Data.dll). The MySQL driver connects to the MySQL database using a socket. However, sockets are not allowed in medium trust. The [...]

Possible solution for NHibernate many-to-many criteria

How to query an NHibernate many-to-many relationship.

Using log4net to show NHibernate SQL in Visual Studio

Configure log4net in order to show NHibernate SQL queries in Visual Studio’s console.

CodeIgniter simple CRUD improved

Add sorting in a simple CRUD with CodeIgniter.

Using NUnit in Visual Studio 2010

How to use NUnit in Visual Studio 2010.

Unit testing in Watir

Write a simple unit test in Watir

Type conversion in C#

Type conversion in C#

Using Rhino Mocks to mock a void function

Using NUnit and Rhino Mocks to create an expectation for a void function.