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

CodeProject: Read text file (txt, csv, log, tab, fixed length

CodeProject: Read text file (txt, csv, log, tab, fixed length
This article is mainly focused on reading text files efficiently. It includes log, csv, tab delimited, fixed length files, etc. Instead of using StreamReader(.NET)/FileSystemObject(VB 6.0), we consider the file as a database table and read the data by querying it.

Download dotNET_Code - 1.78 KB
Download VB_Code - 788.44 KB

CodeProject: RSS Feed Link Reader

CodeProject: RSS Feed Link Reader
This article discusses the construction of a simple application that may be used to view RSS feeds from the desktop.

CodeProject: DropDownWithAutoComplete

CodeProject: DropDownWithAutoComplete
The Custom Control shows up a list item in the dropdown as it is typed.
Download source - 51.58 KB

CodeProject: Create Column Chart using OWC11

CodeProject: Create Column Chart using OWC11
A column chart (simple,stacked and 100% stacked column) representation using Office Web Components

Download ColumnChartEXE - 308.37 KB
Download ColumnChartSource - 411.96 KB

Office 2003 Web Components do not provide event handling by default.
HOW TO: Handle Events for the Office 2003 Web Components in Visual Studio .NET

CodeProject: Winsock Revamped

CodeProject: Winsock Revamped
A fairly simple to use Winsock component, allowing simple networked applications. Built modeling the VB6 component of the same name, with enhancements.

Visual Studio 2003 Binary 18.93 KB - Project & Demo 411.46 KB
Visual Studio 2005 Binary 65.82 KB - Project & Demo 1.66 MB
Visual Studio 2008 Binary 65.83 KB - Project & Demo 1.71 MB

CodeProject: NetMassDownloader Download .Net Framework

CodeProject: NetMassDownloader Download .Net Framework
Source Code At Once Without Any Visual Studio Installed , Enables Offline Debug In VS 2008,VS2008 Express Edition,2005 And CodeGear Rad Studio. . Free source code and programming help
With this tool you can download whole .Net Framework Source Code at once, and enjoy offline browsing With it , you can have whole the source code without any Visual Studio Product Installed.

http://www.codeplex.com/netmassdownloader
Download local CodeProject source copy - 77.26 KB (Change Set Version 11542 From 27.06.2008 Can Be Out Of Date)
Download local CodeProject binary copy - 245.27 KB (Version 1.3 27.06.2008 Can Be Out Of Date)

CodeProject: Multithreading Backup Utility

CodeProject: Multithreading Backup Utility
Multithreading is something we will all have to deal with sooner or later. This relatively simple application shows you how to use two threads to copy files. You will need Framework 2.0 to run this application, and Visual Studio 2005 if you want to edit the source code.



Download demo project - 848.98 KB
Download source - 255.24 KB

CodeProject: Multi-threaded Client/Server Socket Class

CodeProject: Multi-threaded Client/Server Socket Class
A multi-threaded based Client/Server Socket Communication class

MyDownloader: A Multi-thread C# Segmented Download Manager. Free source code and programming help / CodeProject

CodeProject: MyDownloader: A Multi-thread C# Segmented Download Manager
Sample application that manages multiple segmented downloads and supports HTTP, FTP and YouTube video downloads

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

IP / CIDR calculation in MySQL, PHP and JavaScript

IP / CIDR calculation in MySQL, PHP and JavaScript

MySQL
inet_aton
inet_ntoa


select inet_aton('127.0.0.1');
select inet_ntoa(2130706433);
last IP = first IP + (2^(32-mask)) - 1
select inet_ntoa(inet_aton('213.144.132.248') + (pow(2, (32-29))-1));

-
Javascript
function ip2long(ip) {
var ips = ip.split('.');
var iplong = 0;
with (Math) {
iplong = ips0*pow(256,3)+ips1*pow(256,2)+ips2*pow(256,1)+ips3*pow(256,0)
}
return iplong;
}

function long2ip(l) {
with (Math) {
var ip1 = floor(l/pow(256,3));
var ip2 = floor((l%pow(256,3))/pow(256,2));
var ip3 = floor(((l%pow(256,3))%pow(256,2))/pow(256,1));
var ip4 = floor((((l%pow(256,3))%pow(256,2))%pow(256,1))/pow(256,0));
}
return ip1 + '.' + ip2 + '.' + ip3 + '.' + ip4;
}


function lastIP(ip, mask) {
return ip + (Math.pow(2, (32 - mask))-1);
}



-


/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/


Saturday, June 28, 2008

The FreeImage Project - Source Code

The FreeImage Project - Source Code
On this page, you will find a central repository for the FreeImage developer community. Feel free to send us any other link you may find useful.

Visual Basic
Advanced Imagery Library
This is a collection of wrapper modules that give you full access to all of the functionality provided by both FreeImage 2.x and FreeImage 3.x. Wrapper modules are available for VB5, VB6, and VB.NET. This library also contains a couple COM DLL's that gives easy access to not only FreeImage's functionality, but all kinds of the image loading, saving, copying, converting, and manipulating functionality. These DLL's can be used within any "COM-Aware" development environment, including (but not limited to) VB4 32-bit, VB5, VB6, VBA, VB.NET, REALbasic 5.5, C#.NET, C++.NET, VC++, PHP, ASP, ASP.NET, VbScript, JavaScript, JSP, Java, J#.NET, DELPHI, etc.By Kevin Wilson, creator of The VB Zone.

FreeImage Support in VB.NETAccording to the author, this is a *must* have for anyone that wants to extend the supported image formats of their .NET applications.See also this link at planet-source-code.com.

LibPackImaging
The LibPacks are code libraries for Visual Basic (generally, VB6) that are designed to work well together, and generally make use of each other. Among other things, LibPackImaging contains support for the FreeImage library. This allows for loading and saving in a variety of formats, some graphics operations (rotation, scaling, etc.), and more. It is available for download with the rest of the LibPacks.By Michael Bailey & Murphy McCauley.

Screen Capture and Thumbnail Creation from Visual Basic 6
A short article showing the use of FreeImage from Visual Basic 6

Splitting multipage TIFF files into single pages using Visual Basic
Another article showing the use of FreeImage from Visual Basic 6

FreeImageX 2.5.3
FreeImageX is a sample ActiveX wrapper kindly contributed by Markus Loibl.Note: This wrapper is no longer compatible with the actual release of the library.

The FreeImage Project

The FreeImage Project
FreeImage is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today's multimedia applications. FreeImage is easy to use, fast, multithreading safe, compatible with all 32-bit versions of Windows, and cross-platform (works both with Linux and Mac OS X).
read more...

LAMPProject: Google Maps in HTML, ASP.NET, PHP, JSP etc. with ease.

LAMPProject: Google Maps in HTML, ASP.NET, PHP, JSP etc. with ease - CodeProject
The Article will guide you with complete knowledge of how to add a google map in your webpage with knowledge of JAVASCRIPT, Use of Geocoder, Use of InfoWindow, Use of Marker, Tabbed Markers, Maximising marker, Creating context menu in your map

CodeProejct: ASP Code Analyzer

CodeProject: ASP Code Analyzer
A simple tool to find unused subs, functions and variables in your ASP code.

CodeProject: Graphic JavaScript Tree with Layout

CodeProject: Graphic JavaScript Tree with Layout
A JavaScript Tree component which implements the J.Q.Walker II layout algorithm.
Download source with examples - 15.5 Kb







CodeProject: Thumbnailer HTTP Handler

Thumbnailer HTTP Handler - CodeProject
Create dynamic image thumbnails on-the-fly at runtime.
Download source - 1.25 MB

CodeProject: Dynamic Graph and Chart Generator

CodeProject: Dynamic Graph and Chart Generator
Create any 2-D graph, chart, or graphics without any code.
GraphsAndCharts is a completely dynamic Graphs and Chart Generator which generates images on-the-fly. Graphs and charts are created without any code, using the SRC attribute in an tag! Graphs and charts can be replaced on-the-fly without uploading the Web page. By just adding the code available here to an application, graphs can be implemented. You need not write any code yourself.
Download source files - 18.6 Kb

CodeProject: Binary streaming of large images from Database

CodeProject: Binary streaming of large images from Database.
Explains how to perform drawing on a large image retrieved from the database, and then stream the image with the "Open/Save" option.

Download source - 1.56 Kb

CodeProject: KudzuASP: Introduction to Templating with KudzuASP

KudzuASP: Introduction to Templating with KudzuASP - CodeProject
Using the KudzuASP template engine for Classic ASP

CodeProject: Classic ASP Framework - Make your Classic ASP code work like in ASP.NET

CodeProject: Classic ASP Framework - Make your Classic ASP code work like in ASP.NET
Developing in Classic ASP using the same technics as in ASP.NET?. If you have to work in Classic ASP, why don't do it the right way?. By using a similar framework not only your code will be more organized and efficient, but it will take you a fraction of the time to port to ASP.NET!

CodeProject: bttlxeForum - Advanced ASP Forum Software

CodeProject: bttlxeForum - Advanced ASP Forum Software
bttlxeForum is a freely available feature rich database-driven Internet forum solution written entirely in Active Server Pages.

CodeProject: ASProxy - Surf in the web invisibly using ASP.NET

ASProxy: Surf in the web invisibly using ASP.NET - CodeProject
A powerfull web proxy that able you pass through the blocked web pages.

Current version: 4.3
SourceForge download page

CodeProject: Paging of Large Resultsets in ASP.NET

Paging of Large Resultsets in ASP.NET - CodeProject
An article about optimization and performance testing of MS SQL Server 2000 stored procedures used for paging of large resultsets in ASP.NET

Download PagingTest Solution (C#) - 55.8 Kb
Download Paging_Procedures SQL script - 2.48 Kb
Download Paging_LargeTable SQL script - 0.6 Kb

The paging of a large database resultset in Web applications is a well known problem. In short, you don't want all the results from your query to be displayed on a single Web page, so some sort of paged display is more appropriate. While it was not an easy task in the old ASP, the DataGrid control in the ASP.NET simplifies this to a few lines of code. So, the paging is easy in ASP.NET, but the default behavior of the DataGrid is that all resulting records from your query will be fetched from SQL server to the ASP.NET application. If your query returns a million records this will cause some serious performance issues (if you need convincing, try executing such a query in your web application and see the memory consumption of the aspnet_wp.exe in the task manager). That's why a custom paging solution is required where desired behavior is to fetch only the rows from the current page.

CodeProject: Classic ASP Framework 2.0 - Make your Classic ASP code work like in ASP.NET

Classic ASP Framework 2.0 - Make your Classic ASP code work like in ASP.NET - CodeProject
The Classic ASP Framework (CLASP) will allow you to structure your ASP pages in the same way you do it with ASP.NET



Download source - 605 Kb
Gotdotnet Project Workspace

CodeProject: The Code Project Discussion boards

The Code Project Discussion boards - CodeProject
The Discussion board ASP scripts as used in The Code Project. This is an open source project for the Code Project community.


Download the Discussion Board - 162 Kb
Download the forum ActiveX source code - 70 Kb
Download an ASP-only version - 88 Kb
Download a PHP version - 26 Kb

Create Resizing Thumbnails Using Overflow Property

Create Resizing Thumbnails Using Overflow Property - Css Globe

Blogger Backup Tool

Blogger Backup
The Blogger Backup utility is intended to be a simple utility to backup to local disk your Blogger posts.Using the GData C# Library, the utility will walk backward in time, from your latest post to your last, saving each post to a local Atom/XML file. Download the latest version from the Releases page.

Export Your Google Bookmarks

Export Your Google Bookmarks
Google Bookmarks offers a simple way to export your favorite links: as a bookmarks.html that can be imported natively in most browsers. You can also use this to backup your list of links, to view them online or to move them to other bookmarking web services.

How can I export my bookmarks from Google?

Google Bookmarks FAQ
How can I export my bookmarks from Google?
Easy, just go to this page and you'll download a file called bookmarks.html, that can be imported in your browser. You can also export the bookmarks as a feed, but it won't be very useful unless you're a developer.