Error Lookup Snippets


26 December, 2012   

Email regex validation with MX check and communication. Sample code included. Returns bool valid code, bool condition code and str message.

To create the formatter paste this code into a new file and name it sfWidgetFormSchemaFormatterDefList.class.php. I saved it in /lib but it also makes sense to put it in /lib/form, depending on your personal preference.

11 April, 2013   

Pull external HTML code from a file right into your webpage

01 February, 2011   

Missing images will either just display nothing, or display a [ ? ] style box when their source cannot be found. Instead you may want to replace that with a "missing image" graphic that you are sure exists so there is better visual feedback that something is wrong. Or, you might want to hide it entirely. This is possible, because...

17 February, 2019   

Missing images will either just display nothing, or display a [ ? ] style box when their source cannot be found. Instead, you may want to replace that with a "missing image" graphic that you are sure exists so there is better visual feedback that something is wrong. Or, you might want to hide it entirely. This is possible because...

A Java example for Stateless Session Bean With Three Methods

09 January, 2013   

Better way to handle Broken Image. Missing images will either just display nothing, or display a [ ? ] style box.

Displays the text message associated with the numerical error codes returned by the GetLastError api function.

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.

Source code for KMP String Search Algorithm

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.

02 November, 2016   

A PHP template for dealing with any sort of error

12 January, 2014   

This is a pretty simple little snippet, but it help understanding how to use relational tables w/in PHP.

25 February, 2013   

AppleScript code example to restart Django development server

13 November, 2011   

Boiler Plate for T-Sql Error handling

31 July, 2012   

Boiler Plate for T-Sql Error handling

10 November, 2014   

Easy way to parses RSS into an array

28 October, 2014   

Quick and simple example to parses RSS into an array

15 July, 2013   

This is a method that can be used to take a connection string and a valid oledb command and perform a scalar. This returns an Integer/Int32 value.