Source Code for the Built-in ASP.NET 2.0 Providers Now Available for Download - ScottGu’s Blog

 

Source Code for the Built-in ASP.NET 2.0 Providers Now Available for Download

Today we released the source code for the built-in ASP.NET 2.0 Membership, Role Management, Site Navigation, Session State, Profile, Web Events, and Web Part Personalization providers (basically all of the built-in providers that ship in the .NET 2.0 Framework Redist).  You can download them here.

The provider source code comes with a buildable VS 2005 Project all setup.

Source Code for the Built-in ASP.NET 2.0 Providers Now Available for Download - ScottGu’s Blog

Windows Server 2008

Posted in Tools. No Comments »

Proxy Server CCProxy - Easy-to-use Proxy Software for Windows 2000/98/XP/NT/2003/Vista

 

Proxy Server CCProxy is easy-to-use and powerful Internet connection sharing software. CCProxy can support broadband, DSL, dial-up, optical fiber, satellite, ISDN and DDN connections, it helps you build your own proxy server and share Internet access within the LAN efficiently and easily. CC Proxy Server can act as an HTTP, mail, FTP, SOCKS, news and telnet proxy server. It features powerful account management functions, including Internet access control, bandwidth control, Internet web filtering, content filtering and time control. It also provides web caching, online access monitoring, access logging and bandwidth usage statistics functions. CC Proxy is compatible with Win98, WinME, WinNT, Win2000, WinXP, Win2003 and Vista.

The demo version can support 3 users and no time limitation.

Download CCProxy User Manual Install Proxy Server Step by Step

Configure IE browser proxy settings at clients

At the clients machine, please open IE menu “Tools”, go to “Internet Options” -> “Connections” -> “LAN settings”, select “proxy server”, input the proxy server IP address in the “Address”, 808 in the “Port”. Select “local address bypass proxy”. IE proxy setup is finished and we can access websites via the proxy now.

image

Proxy Server CCProxy - Easy-to-use Proxy Software for Windows 2000/98/XP/NT/2003/Vista

Posted in Tools. No Comments »

How do I load text or csv file data into SQL Server?

 

How do I load text or csv file data into SQL Server?

If you need to load data into SQL Server (e.g. from log files, csv files, chat transcripts etc), then chances are, you’re going to be making good friends with the BULK INSERT command. 

The command to bulk insert comma-delimite data would be: 

BULK INSERT OrdersBulk
    FROM ‘c:\file.csv’
    WITH
    (
        FIELDTERMINATOR = ‘,’,
        ROWTERMINATOR = ‘\n’
    )

If the csv file has a header row, try this:

BULK INSERT OrdersBulk
    FROM ‘c:\file.csv’
    WITH
    (
FIRSTROW = 2,
        FIELDTERMINATOR = ‘,’,
        ROWTERMINATOR = ‘\n’
    )

Finally, you can also specify how many errors you want to allow before considering that the BULK INSERT failed.

BULK INSERT OrdersBulk
    FROM ‘c:\file.csv’
    WITH
    (
        FIRSTROW = 2,
MAXERRORS = 0,
        FIELDTERMINATOR = ‘,’,
        ROWTERMINATOR = ‘\n’
    )

Vai How do I load text or csv file data into SQL Server?

Extending ASP.NET DataPager: Creating a google analytics ASP.NET data pager. Free source code and programming help

CodeProject: Hiding the Taskbar and Startmenu (start orb) in Windows Vista.

Posted in Tools. No Comments »

Keith Brown Password Minder

Posted in Tools. No Comments »

Consolas Font Pack Download from Microsoft

Processing Global Windows Mouse and Keyboard Hooks in C#

 

Processing Global Windows Mouse and Keyboard Hooks in C#

By George Mamaladze


This class allows you to tap Window keyboard and mouse and/or to detect their activity even when an application runs in the background or does not have any user interface at all.

Introduction

This class allows you to tap keyboard and mouse and/or to detect their activity even when an application runs in the background or does not have any user interface at all. This class raises common .NET events with KeyEventArgs and MouseEventArgs, so you can easily retrieve any information you need.

Using the code

To use this class in your application, you need just to create an instance of it and hang on events you would like to process. Hooks are automatically installed when the object is created, but you can stop and start listening using appropriate public methods.

UserActivityHook actHook;
void MainFormLoad(object sender, System.EventArgs e)
{
    actHook= new UserActivityHook(); // crate an instance
    // hang on events
    actHook.OnMouseActivity+=new MouseEventHandler(MouseMoved);
    actHook.KeyDown+=new KeyEventHandler(MyKeyDown);
    actHook.KeyPress+=new KeyPressEventHandler(MyKeyPress);
    actHook.KeyUp+=new KeyEventHandler(MyKeyUp);
}

Now, an example of how to process an event:

public void MouseMoved(object sender, MouseEventArgs e)
{
    labelMousePosition.Text=String.Format("x={0}  y={1}", e.X, e.Y);
    if (e.Clicks>0) LogWrite("MouseButton     - " + e.Button.ToString());
}

+ Don’t forget to read the comment sections

CodeProject: Processing Global Mouse and Keyboard Hooks in C#. Free source code and programming help

CSS shorthand properties