Category Archives: Programming

Software Programming and Development

Microsoft Launches Free Tool WebMatrix

WebMatrix makes development with ASP .NET much easier for beginners. Like PHP it allows for code snippets to be included within an html page. Learn more about this new tool from Microsoft. WebMatrix

Posted in Programming | Leave a comment

How To View Column Names For A Table In T-SQL

SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = ‘<TABLE NAME>’ ORDER BY ORDINAL_POSITION    

Posted in Programming | Tagged | Leave a comment

Display line numbers in Visual C# 2008 Express

To display line numbers in code On the Tools menu selecti, Options. In the Text Editor folder, choose the General options in the All Languages subfolder to set this option globally Under Display, select Line numbers. If you do not … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

Generating INSERT statements from a table in SQL Server

This post provides a useful stored procedure for creating INSERT statement for data in a table.

Posted in Programming | Tagged , | Leave a comment

When Validating Positive Numbers Use Only A RangeValidator

When requiring the user to enter only positive numbers (integer, double, currency) within a specified limit, you do not need to have both a RegularExpressionValidator to check for positive values and a RangeValidator to provide a limit. You can just … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Read-Only Properties Cannot Be Exposed by XML Web Services

I recently encountered this problem when I was trying to return a simple object with several public properties. It seems one of the properties was not being exposed in the XML returned by the web service. I wondered what could … Continue reading

Posted in Programming | Leave a comment

Krumo: Replacement for print_r(); and var_dump();

Krumo looks like a very useful tool for debugging; replacing print_r() and var_dump() functions. I first found out about this class from the comments by kaloyan at gmail dot com in the var_dump() page in http://www.php.net/var_dump

Posted in Programming | Tagged , , , | Leave a comment

Zend_Form: How to set message for NotEmpty when setRequired(true)

When, in a subclass of Zend_Form, a Zend_Form_Element is setRequired(true) it automatically adds a NotEmpty validator using the default message. To override the default message add a NotEmpty validator at the top of the list of validators and set breakChainOnFailure … Continue reading

Posted in Programming | Tagged | Leave a comment

Cannot execute queries while other unbuffered queries are active

Cannot execute queries while other unbuffered queries are active Can’t execute subsequent query after multiple queries from same Pdo_Mysql->exec() call Can’t execute multiple stored procedures with Pdo_Mysql Using the following code found in the Zend Framework Quickstart: Create a Model … Continue reading

Posted in Programming | Tagged , , | 2 Comments