Emil’s Blog

Programming Windows, .Net, EPiServer and whatnot…

[Powered by WordPress.]

December 15, 2006

Retrieve data from a database

by @ 13:03. Filed under .Net programming

Nothing advanced here, I just wanted to store this code snippet somewhere for easy reuse...

SqlConnection conn = new SqlConnection(@"...");
SqlCommand cmd = new SqlCommand("select * from employee", conn);
cmd.CommandType = CommandType.Text;

using (conn)
{
    conn.Open();
    SqlDataReader reader = cmd.ExecuteReader();
    while (reader.Read())
    {
        ...
    }
}

December 12, 2006

How to create a transparent GIF with GIMP

by @ 20:40. Filed under Image editing

The GIMP is a great, free image manipulation program. It can do a lot but it's not always obvious how it can perform a certain task.

For example, creating a transparent GIF was something I could not find how to do. Luckily, there are other bloggers out there to help:

The Gimp: Making Colors in a GIF Transparent (A.P. Lawrence).

Good tip and it works great.

[powered by WordPress.]

jour·nal n. A personal record of occurrences, experiences, and reflections kept on a regular basis; a diary.

Internal links:

Categories:

Search blog:

Archives:

December 2006
M T W T F S S
« Nov   Jan »
 123
45678910
11121314151617
18192021222324
25262728293031


View Emil Åström's profile on LinkedIn

General links:

I read:

Visitors

Recent Comments

Spam caught

Other:

Clicky Web Analytics

36 queries. 0.339 seconds