Write a binary file





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 5 6 Next »
14
Date Submitted Tue. Nov. 8th, 2005 11:45 AM
Revision 1
Beginner wwb
Tags CSharp | Generation | RSS
Comments 0 comments
RSS Generation Classes
14
Date Submitted Mon. Oct. 10th, 2005 10:18 AM
Revision 1
Coder mattrmiller
Tags Extension | File | PHP
Comments 1 comments
Get File Extensio
13
Date Submitted Fri. Jul. 14th, 2006 11:18 AM
Revision 1
Helper eriveraa
Tags .Net | CSharp
Comments 0 comments
First Example of reading an excel file. Just reading the file and loop throught 10 rows.

I will send the second example soon !!!
13
Date Submitted Thu. Sep. 14th, 2006 4:58 PM
Revision 1
Beginner ecliptic
Tags CSharp
Comments 0 comments
This snippet effectively reads an XML document using XPathDocument (read-only) instead of using the DOM. This snippet returns the full element values in between elements. For example:

root element
code element
This is a test.
/code element
/root element

GetXmlString("/root/code"); //returns 'This is a test.'
13
Date Submitted Thu. Mar. 16th, 2006 10:49 PM
Revision 1
Coder mattrmiller
Tags Compression | File | GZIPOutputStream | GZIPOutputStreamEx | Java | Stream
Comments 0 comments
in the normal GZIPOutputStream you can not et the compression level. I came across this little script tonight that allows you to set the compression level for GZIPOutputStream.
13
Date Submitted Mon. Mar. 20th, 2006 4:52 PM
Revision 1
Coder mattrmiller
Tags Delete | Extension | File | Folder | Java
Comments 0 comments
Deletes all files of a certain extention from a folder.
11
Date Submitted Sat. Jul. 15th, 2006 8:15 PM
Revision 1
Helper eriveraa
Tags .Net | CSharp
Comments 0 comments
Second example of reading an excel file. Reading with a SELECT syntax.
11
Date Submitted Fri. Feb. 17th, 2006 4:49 PM
Revision 1
Beginner RRSands
Tags CSharp | Encryption | Security
Comments 0 comments
From RSA Security's website:
"RC4 is a stream cipher designed by Rivest for RSA Data Security (now RSA Security). It is a variable key-size stream cipher with byte-oriented operations. The algorithm is based on the use of a random permutation. Analysis shows that the period of the cipher is overwhelmingly likely to be greater than 10^100. Eight to sixteen machine operations are required per output byte, and the cipher can be expected to run very quickly in software. Independent analysts have scrutinized the algorithm and it is considered secure."

This implementation encodes the byte stream to be encrypted "in-place".

Example:
Byte[] Key = new Byte[5] { 12, 34, 22, 12, 32 };
Byte[] B = new Byte[10] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
// Examine B array before and after this next call.
RC4(ref B, Key);
// Examine B array before and after this next call.
RC4(ref B, Key);
10
Date Submitted Tue. Dec. 5th, 2006 2:15 PM
Revision 1
Scripter Casper42
Tags ASPX | CSharp | CSS | JavaScript
Comments 3 comments
This snippet allows an aspx page (c#) to accept URL parameters to allow styles or script to be dynamically appended to the rendered page.

I wrote this simple snippet to allow one of our vendors to accept a style override so that their application would morph into something more closely resembling our own portal application. Please see screenshots for clarification.

Original Vendor Application

Vendor Application with Style Override via URL
10
Date Submitted Wed. Sep. 27th, 2006 7:35 PM
Revision 1
Beginner finch
Tags CSharp | Down | Key | Trapping
Comments 1 comments
This code was something I used to monitor the keys that where press while a user would be entering text into a text box in my application. I monitored and watch for the user to hit the "Enter" key and then perform some task. Handy code for chat applications.
« Previous 1 2 3 4 5 6 Next »