There are no built-in functions for selecting weighted averages in SQL Server. Fortunately it's a simple task to do so oneself.
Read the complete 1755 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
I often need to transfer data from my business layer to my presentation layers in a strongly typed way. In this example I'll use the following very struct and corresponding DataTable to represent the data I need to transfer:
Read the complete 3308 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
I do a lot of backend programming for Flash frontends. That basically means a lot of ASPX pages that simply return some XML and accept some incoming XML for parameters. Most of the UI logic ends up getting cluttered with manual XML stringbuilding, so I saw this as an obvious opportunity to play around with a fluent interfaces.
Read the complete 9230 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
Reading and writing values to the DB has always been a bit cumbersome when you had to take care of nullable types and DBNull values. Here's a way to make it easy.
Read the complete 5431 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
I often see my fellow comp. sci. students writing their (relatively) simple Java code in applications like Emacs, Nano or Eclipse. I'm not fond of either application. I much prefer Visual Studios text handling, solution overview, output windows and so forth. What most people don't know is that you can actually extend Visual Studio to a great extent. One way to extend Visual Studio is to write plugins using .NET, but there's a way that is much simpler (albeit also more limited). I will now show how you can make Visual Studio compile and run your Java applications all within Visual Studio itself.
Read the complete 3355 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
I've had my Vista PC running for quite some months now without problems, as well as Adobe Acrobat Professional and Adobe Photoshop. But not anymore...
Read the complete 1277 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
If you have ever deployed .NET windows applications, you have without doubt tried the Visual Studio Install project type. The Install project will create .MSI install applications for you, they're great for basic installations, but nothing more than that. The .NET bootstrapper is quite lacking, at times it won't be able to find the framework download file as it's changed it's location, at other times it's not able to download it. And finally, if it does determine that the user needs the framework, it's shown in an ugly uncustomizable GUI.
Read the complete 10751 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
In Photoshop we often work with multiple windows open. They can be cascaded to more easily be able to view the different windows and tell them apart. There's an API function that does the same to any windows you specify, you can even define the rectangle where they should be cascaded within.
Read the complete 1751 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
Let's be a bit more graphic. This time I'll show you how to use the Windows API to make your forms fade in/out, slide in from the side or do various other animations. For this example we'll have to use a Windows Forms project as we have to utilize a Form object in the example.
Read the complete 2369 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
Last time I made an example of how to enumerate windows. This time I present to you a class that greatly simplifies the process of searching for specific windows, types of windows, windows belonging to a specific process, having a specific text. You can search for any number of these parameters at the same time, using regular expressions for all string matches to provide optimal flexibility.
Read the complete 7688 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
Until now we've seen how to retrieve basic properties of windows as well as how to interact with them by sending keypresses. Up until now we've had to find the handle by using Winspector or a similar program. This time I'll present a way of finding the handles programmatically.
Read the complete 3973 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
Now to complete the toolset required to make a great spyware / browser hijacking application, we'll make Internet Explorer navigate to the address we set.
Read the complete 2149 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
This time we want to retrieve the text from a given window, represented by a handle. Like last time, open an Internet Explorer instance. Now open Winspector and select the address field, ensure that it is the address field itself (class = Edit) and not the ComboBox that you select.
Read the complete 2705 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
So we have a handle, what process does it belong to? Our goal is to obtain a .NET System.Diagnostics.Process object that corresponds to the owner process of the handle we input.
Read the complete 1842 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
First of all, to manipulate and use the Win32 API, we must know about the system itself, the windows, the controls and so forth. Visual Studio comes bundled with Spy++ which enables us to identity the various windows and controls of application, but honestly, it's pretty bad. Instead you should download Winspector.
Read the complete 1600 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
Unfortunately it's been quite silent around here for the last couple of months. I want to change that, so why not make a promise?
Read the complete 668 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
I've been asked quite a lot of times why I hadn't put up any pictures of my new ride yet. There's still a couple of things missing such as the Audi logos for the rims, at least I got the alarms installed yesterday, this is now officially the most secure car in Denmark, sporting a Viper 5000XL, Cobra CONNEX GPS/GSM tracker and a Credex VGS MK-III smoke machine :D
Read the complete 489 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
First off, let me give you the good news. I just bought a new car. A '2000 Audi TT 1,8T to be precise. The bad news however is that I'm 21 years old, only got about one and a half years seniority and at last, I'm male. Those three properties make up for a worst case scenario for any insurance application form. Anyways, here's a chronological list of the insurance companies I called and their reponses:
Read the complete 2200 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
I wanted to log a lot of poker playing hours today. At about 12 PM I went to the MGM Grand, a room that I'd never visited. After playing there for about 5-6 hours (please don't ask how it went, I got butchered), I've got mixed feelings about the room.
Read the complete 2995 bytes...
Digg it |
Kick it |
Dzone it |
Reddit
|
|
|