Showing posts with label CodeProject. Show all posts
Showing posts with label CodeProject. Show all posts

Friday, December 26, 2008

CodeProject: GD library wrapper

CodeProject: GD library wrapper
GD library wrapper (for ASP developers with PHP vs ASP examples).
Download source - 998 Kb



Response.ContentType = "image/png";
var gdImage = Server.CreateObject("GDLibrary.gdImage");
gdImage.Create(230, 20);
gdImage.ColorAllocate(0, 10, 10);
var TextColor = gdImage.ColorAllocate(233, 114, 191);
gdImage.Chars(gdImage.FontGetLarge(), 5, 5,
"My first Program with GD", TextColor);
Response.BinaryWrite(gdImage.ToPngStream().Read);


CodeProject: Implement Phonetic ("Sounds-like") Name Searches with Double Metaphone

CodeProject: Implement Phonetic ("Sounds-like") Name Searches with Double Metaphone
Presents a C# implementation of Double Metaphone, for use with any of the .NET languages.

Double Metaphone Part I: Introduction & C++ Implementation
Double Metaphone Part II: Visual Basic and Relational Database Solutions
Double Metaphone Part III: VBScript and ASP & Database Solutions
Double Metaphone Part IV: SQL Server and Advanced Database Topics
Double Metaphone Part V: .NET Implementation
Double Metaphone Part VI: Other Methods & Additional Resources

Tuesday, August 19, 2008

CodeProject: Thumbnail Generator - An easy way to process thumbnails from a large amount of images

CodeProject: Thumbnail Generator - An easy way to process thumbnails from a large amount of images
Multimedia » GDI+ » General
Thumbnail Generator application supporting a bunch of image file types (for both: source images and target thumbnails), fixed target image size as well as ratio calculation, and full internationalization.
Download source files - 37.6 Kb
Download demo project - 17.5 Kb

Monday, August 18, 2008

CodeProject: A simple histogram displaying control.

CodeProject: A simple histogram displaying control
A histogram control for displaying your data.

CodeProject: Develop high performance distributed applications with batching, asynchrony, and parallel computation

CodeProject: Develop high performance distributed applications with batching, asynchrony, and parallel computation
Performance comparison between SocketPro and .NET remoting.

CodeProject: Packet Sniffing with Winpcap Functions Ported to a .NET Library.

CodeProject: Packet Sniffing with Winpcap Functions Ported to a .NET Library.
Using Winpcap functions in the .NET Framework
Download source files - 29.18 KB

Winpcap has been the de facto library in packet capture applications, but the problem is that it is only natively available for C++ and C.
This is an attempt to port some of the crucial Winpcap functions for the .NET environment. The demonstration project here is written in C#.
First of all, you need to install Winpcap from winpcap's Web site and then extract the project zip file. Be sure to reference dotnetwinpcap.dll in the project if not already so.

CodeProject: Use WINSNMP and VB.Net 2005 to retrieve SNMP information.

CodeProject: Use WINSNMP and VB.Net 2005 to retrieve SNMP information.
Make a get call via the WINSNMP API to retrieve the os version from a remote machine.

VBDNFW2SNMP is a quick attempt to use the winsnmp api to retrieve information from remote snmp agents. This example uses VB .Net 2005 with the .Net framework 2.0
Background
Most of the examples I found on the net used WMI instead of api calls, and the older VB6 code used winsock. After many, many hours of searching and putting pieces of info together, i could finaly make a get call to a remote snmp agent. The most valuable resources were:
Microsoft platform SDK for Windows 2003 server.

WinSNMP (VB6) at Http://www.winsnmp.com
check out the WinSNMP v2.0 Addendum at http://www.winsnmp.com/docs/winsnmp2.txt

Function Pointers and COM
By Ben Garcia (VB6 and C++) at http://www.15seconds.com/issue/021002.htm

Windows SNMP - An Open Interface for Programming Network Management Applications usint the Simple Network Management Protocol under Microsoft Windows - available via FTP from host SunSite.unc.edu under directory /pub/micro/pc-stuff/ms-windows/WinSNMP

SNMP example in C# from Evolution software at http://www.evolutionsoftwarellc.com/

CodeProject: SNMP library

CodeProject: SNMP library
Make SNMP request to get or set value on your computer, CISCO server, server in general, appliance,...
Download source files - 702 Kb
Download demo project - 354 Kb
Download SNMP++ project (not needed) - 3997 Kb

Saturday, July 12, 2008

CodeProject: JavaScript Cookie and Query String Wrapper Classes

CodeProject: JavaScript Cookie and Query String Wrapper Classes
An article on an object oriented approach to moving data to and from client-side JavaScript.

Download source - 1.78 Kb

CodeProject: Fast & Then Even Faster String Concatenation With JScript

CodeProject: Fast & Then Even Faster String Concatenation With JScript
Concatenating string is critical in many dynamic content situations, here is how to make it scale and then be fast and scale.
Let's build a scalable string concatenator, then optimize its performance:
As we all use JavaScript to build dynamic content more and more, concatenating lots of little Strings to together becomes increasingly common. This can lead to nasty scaling problems; here I show how to overcome them using simple linked lists.

CodeProject: JsGrep - an OO-ish implementation of grep in JScript

CodeProject: JsGrep - an OO-ish implementation of grep in JScript Shows how the object features of JScript can be put to use in a useful utility script
Download source - 2 Kb

CodeProject: JavaScript Chart

CodeProject: JavaScript Chart


Wouldn't it be nice to be able to add a stylish and colorful chart to your Web page with minimal effort and still avoid slow-loading Java applets or server side generated images? Then the JavaScript Chart is just what you need! The JavaScript Chart supports: Several charts on the same page No limit on the number of data items in one chart (as long as you have enough space) Pass the chart data as a string in the following format: Item A;1;Item B;2;Item C;3. Gridlines are automatically created and spaced with appropriate increments depending on the highest value in the data range Choose if item values should be displayed or not on each individual chart Choose if the chart legend should be displayed or not Each data item will automatically get a different matching color Each chart can be rendered in debug mode, showing some useful information if the chart is not displayed as expected Modification of some of the layout parameters with CSS

Download demo - 5.66 KB

CodeProject: Easy Client Side TabStrip

CodeProject: Easy Client Side TabStrip


Download source files - 23 Kb

TabMenu is a component which almost all web developers have to work with. On creating a website with Visual Studio and a component tool, it's simple for me to create a fine and convenient TabMenu for design. And what about creating a TabMenu with similar functions using Javascript, just as we use components on ASP.NET? That is, however, a different story.
This article is aimed at providing users with the best method to have a TabMenu that has the most numerous functions and the least code, especially allowing users to define the functions that TabMenu will provide.

Sunday, June 29, 2008

CodeProject: Binary Formats in JavaScript: Base64, Deflate, and UTF8.

CodeProject: Binary Formats in JavaScript: Base64, Deflate, and UTF8
This article demonstrates using binary formats in JavaScript.

This article demonstrates the using of binary formats in JavaScript code. JavaScript, by its nature, cannot operate with binary data represented as a fragment of memory – as a byte array. That makes it difficult to use community developed algorithms and encodings. A good example is the DEFLATE compressed format. This raises more problems if the JavaScript code has to be run on a web browser: data has to be delivered over HTTP.
In the proposed implementation, a byte array is emulated by a regular JavaScript array of objects. Also, the given implementation tries to solve the problem of binary data transfer to a client-side script. Let’s assume we have DEFLATE compressed data (.NET’s System.IO.Compression namespace, Java’s java.util.zip.*, PHP’s http_deflate) and there is a way to transfer it to the client in BASE64 format.

CodeProject: A JavaScript Weekly Calendar

CodeProject: A JavaScript Weekly Calendar
This calendar can be used as a date picker or to select a weekly day range in the selected month.



Download source files - 186 Kb

CodeProject: SIcon Gantt

CodeProject: SIcon Gantt Chart
A fast and innovative Gantt chart using JScript.

Download source - 2.74 KB

CodeProject: HTML Table Filter ala Excel

CodeProject: HTML Table Filter ala Excel

CodeProject: Chart designer using google chart API

CodeProject: Chart designer using google chart API
Chart designer is an application written in JavaScript that allows to create charts & graphs dynamically.

CodeProject: EzEvents

CodeProject: EzEvents
An ASP event calendar for you website.

CodeProject: Legion: Build your own virtual super computer with Silverlight

CodeProject: Legion: Build your own virtual super computer with Silverlight
Legion is a grid computing framework that uses the Silverlight CLR to execute user definable tasks. It provides grid-wide thread-safe operations for web clients. Client performance metrics, such as bandwidth and processor speed, may be used to tailor jobs. Also includes a WPF Manager application.
Download Legion for VS2008 Beta 2 - 1,056 KB