Format Snippets


26 November, 2015   

Show the currently active processes.

23 December, 2015   

It allows you to add your own fonts on the page. To convert to different formats use this service Font2Web.

15 November, 2012   

This program has two input checks: one for a blank card to indicate end-of-data, and the other for a zero value within the input data. Either condition causes a message to be printed.

Handy helper function which parses about any date and returns the same date in MySQL date/time format.

11 October, 2011   

In the same way you often need to format data being sent from Flash, you sometimes need to format data being received. This function takes a string and removes all spaces from it. Here we use the split method of the String class to split the string into an Array and then call the join method of the Array class to convert it back to a string....

Finds all scene elements that belong to missing plugins, original code by Larry Minton

15 November, 2012   

If one of the input values is zero, then the program will end with an error code of "1" in the job control card listing following the execution of the program. Normal output will be one line printed with A, B, C, and AREA. No specific units are stated.

This Delphi code example shown how to add and remove a shell extension

How to parse a token list into functors (structured terms) in Prolog. The book "Logic in Prolog" by Gibbins has some good example code See http://www.ddj.com/184404172, listing 9 for the little language

16 January, 2013   

Example for adding items into combo by using Win32 API. Written by Nir Sofer

21 January, 2013   

VB code to add data using access

A simple and practical way to show the format of the IEEE standard for binary floating-point numbers (IEEE 754) is to use a union, as shown in the following example:

16 November, 2013   

This function lets you check whether an date event should recur on a specified date. This is handy for calendar, billing and reminder applications.

This technical tip shows how to read the image and mark all the barcode regions, for all the recognized barcodes in the image. The barcode region is the part of the image that only contains the barcode itself. In a large image, it is possible that there are other texts or images along with the barcode. Getting the barcode region will separate...

11 April, 2011   

Specifications of the TOPIC database format, a standardized structure for plain text databases that's easy to read and edit in most text editors, and easy to programmatically parse as well.

16 April, 2011   

There are times when you need to split a large file into several smaller ones (for whatever the purpose is). The following two methods use Delphi TStream objects to break a file into several files with predefined size; and to merge those files back to the original.

By default, Delphi gets its date/time, currency and numeric format from Control Panel's International settings. We can set the constants defined in Delphi, like DecimalSeparator, ShortDateFormat and others like in the code below. To a complete list of these variables, look at Currency and date/time formatting variables in Delphi Help.

14 June, 2015   

This function helps you checking a UNIX timestamp with human readable time formats like 1m, 2d or 4y.

04 April, 2012   

Delphi code example for TColor to HTML color

05 December, 2012   

Instead of providing a traditional address to the image, the image file data is base64-encoded and stuffed within the src attribute. Doing so saves a network request for each image, and prevent exposure of directory paths. Please note that IE7 and below are not compatibles with data URIs.