Canadian Mind Products Software

Documentation on the o...

Untouch

Documentation on the original student project outline http://mindprod.com/projects/untouchproj.html This explains how it works and some of its uses. Untouch supports the the following command line switches which appear before the directories. -f or -force = revert files back to previous dates whether they have changed or not. -s or -sub or -subdir or -subdirs = process files in subdirectories as well. -l or -log = create untouch.log files in each directory logging what was done. -q or -quiet = suppress progress messages.

Keywords: untouch last modified date file date revert dates detect changes auto insert

Generates insults typi...

Insult

Generates insults typical of those posted by Republicans in the alt.politics.bush newsgroup. Java Applet that can also be run as an application. You can run it without installing it at http://mindprod.com/applet/insult.html To install, Extract the zip download with Winzip, available from http://www.winzip.com (or similar unzip utility) into any directory you please, often C:\ -- ticking off the "user folder names" option. To run as an application, type: java -jar C:\com\mindprod\insult\insult.jar adjusting as necessary to account for where the jar file is.

Keywords: insult generator epithets right wing republican random sentence generator. advanced searches

The Transporter acts l...

Transporter

The Transporter acts like an electronic secure courier to deliver your data and documents in encryted form safe from prying eyes or those who would tamper with them. It Encrypts, digitally signs and armours to send sensitive information over the Internet without SSL. Typpically you would embed it in your own Internet applications.

Keywords: transporter encrypt decrypt digitally sign digital signature armouring secure rsa public key encryption. coin collections

Base64 is a freeware w...

Base64

Base64 is a freeware way of encoding 8-bit characters using only ASCII printable characters similar to UUENCODE. UUENCODE embeds a filename where BASE64 does not. You will see BASE64 used in encoding digital certificates, in encoding user:password string in an Authorization: header for HTTP. The spec is described in RFC 2045. For more details see http://mindprod.com/jgloss/base64.html Don''t confuse Base64 with x-www-form-urlencoded which is handled by java.net.URLEncoder.encode/decode or Base64u. Base64 armouring uses only the characters A-Z a-z 0-9 +/=. This makes it suitable for encoding binary data as SQL strings, that will work no matter what the encoding. Unfortunately + / and = all have special meaning in URLs. Base64u gets around this problem. It is a variant on Base64 that uses - _ and * in preference to + / and =, so that it can be used in URLEncoded contexts with or without URLEncoding. Use base64 like this: // Base64 armouring import com.mindprod.base64.Base64; ... // sample byte array to encode byte[] toSend = { (byte)0xfc, (byte)0x0f, (byte)0xc0}; // create encoder object Base64 base64 = new Base64(); base64.setLineLength( 72 ); // default // encoding a byte[] String send = base64.encoder( toSend ); // decoding a byte[] byte[] reconstituted = base64.decoder( sent ); use Base64u the same way: // Base64u armouring import com.mindprod.base64.Base64u; ... // sample byte array to encode byte[] toSend = { (byte)0xfc, (byte)0x0f, (byte)0xc0}; // create encoder object Base64u base64u = new Base64u(); base64u.setLineLength( 72 ); // default // encoding a byte[] String send = base64u.encoder( toSend ); // decoding a byte[] byte[] reconstituted = base64u.decoder( sent ); For an example that starts and ends with a String, see Example.java to run: java.exe com.mindprod.base64.Example

Keywords: base64 base64u encode decode armouring printable 6-bit 8-bit uuencode uudecode organization data

Consists of a pair of ...

Entities

Consists of a pair of utilities that let you convert/strip/insert HTML entities such as _amp;- and _quot; from files converting them back and forth to their equivalent single characters !amp; and !quot;. It handles the HTML 4 entities such as _hearts; as well as decimal _#123; and hexadecimal _x#123; entities. You may us this package as standalone utilities, or use the classes in your own programs to insert or strip entities from HTML. You can use them like this: REM to remove & entities and HTMLtags from a file REM converting entities back to characters strip.jar afile.html REM to convert entities in a file insert.jar afile.html They come complete with Java source and jar files.

Keywords: entities jar java version major minor target applet tag

I/O teaching tool that...

FileIO

I/O teaching tool that generates sample Java source code to read or write the console, a sequential file, a random access file, a String, an array of characters, an array of bytes, URL, HTTP CGI GET/POST, Socket or Pipe. It shows you how to read or write ASCII-8 bit characters (plain or locale-encoded), Unicode 16-bit characters, raw bytes, big endian binary, little endian binary, or serialised objects, buffered, unbuffered or gzip compressed. FileIO runs either as an application or as an Applet that needs to run in JDK 1.5+ capable browser. Source code and sample HTML included. May be freely distributed and used for any purpose except military. It works by asking you 4 multiple choice questions about what you want to do. You fill in your choices in a dialog box at it instantly generates the corresponding code that you can copy/paste and modify. 1) What is the type of the source/target? - sequential file - random access file - String (in RAM i/o) - char[] (in RAM i/o) - byte[] (in RAM i/o) - URL (remote i/o) - HTTP CGI - socket - pipe 2) Do you want to read or write? 3) Which do you want: unbuffered, buffered or compressed? 4) What is the format of the data being read or written? - raw, untranslated, bulk, 8-bit bytes - default-encoded chars (usually 8-bit) - locale-encoded chars (usually 8-bit), e.g. IBM-OEM Cp437 - Unicode 16-bit chars - big-endian binary (Java standard) - little-endian binary (Intel standard) - serialised objects It generates 378 possible different example programs. You can run it online at http://mindprod.com/applet/fileio.html without installing it.

Keywords: java file i/o console pipe compressed buffered fileio teaching training wheels guide amanuensis program documents

Fast string search (in...

Boyer

Fast string search (indexOf) using the Boyer-Moore algorithm. Incorporate this class into your own Java programs to rapidly search strings. use: import com.mindprod.Boyer.Boyer; ... Boyer b = new Boyer("dogcatwombat"); int where = b.indexOf("cat"); or int where = Boyer.indexOf("dogcatwombat","cat"); Boyer-Moore is about twice as fast as String.indexOf when the string you are searching in is 2K or over and the pattern you are searching for is 4 characters or longer. String.indexOf is particularly slow when the pattern begins with a common letter such as "e". Boyer-Moore is fastest when the pattern is long and composed only of uncommon letters, e.g. "z" or "^". If you use a char[] instead of String for your text to be searched, it will run an additional 33% faster. Boyer automatically reverts to String.indexOf when that would be faster.

Keywords: boyer-moore string search search indexof java fast string search string handling home dvd player

 

Page 1 out of 7    1 2 3 4 5 6 7

  Search for:      

Copyright (C) 2003-2008 FilesLand.com