Change Data Format Snippets


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.

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....

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.

Change Date from dd/mm/yyyy to yyyy-dd-mm

MySQL code to Find PHP code in database Drupal 6.x

05 April, 2015   

A simple PHP script that outputs data into formatted columns.

09 February, 2013   

There are websites that will watch a page for you and notify but I didn't really like the way they worked.

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.

03 June, 2013   

Plots a histogram from an external file with the frequency of each bin shown above each bar. The XTick is also the intervals of the histogram.

21 January, 2013   

VB code to add data using access

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.

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

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.

23 October, 2012   

MySQL code example for sorting data in a GRID

13 November, 2012   

Use this snippet to let your visitors change the background color of your Web page. Combined with a cookie, the setting could follow them through your whole site.

03 August, 2013   

Example shows bash code to change CWD to file's directory

Two simple functions to read an write tab seperated files (like CSV files, etc).

Simple singly linked lists example usage; it is only one of many possible implementations

Source code for Binary tree creation, traversal and search