devxlogo

Tip Bank

Updates, Uninstallations, and Product Codes

Install and uninstall issues are some of the most common sources of calls to help desks. The following is a tip on an implementation strategy for software updates using InstallShield

Auto Start the DNS Service in Linux

When the DNS service has stopped, use this code to start it automatically. #! /bin/bashdns_pid=`ps -ax|grep “named -u named” |grep -v grep |awk ‘{print $2}’`if test “x$dns_pid” = “x” ;

Always Make a Local Copy of an Object

Reading from the object variable is always slower than reading from the local variable. So, if you are reading from the object variable frequently, then save it in a local

Automatically hyperlink URLs in ASP.NET Pages

Suppose that your ASP.NET pages display contents read from database fields. Suppose also that some of those fields may contain URLs or email addresses. A typical example is when you

Persist ADO.NET extended properties

Many ADO.NET classes, including DataSet, DataTable, and DataColumn, use the ExtendedProperties property to enable users to add custom information. Think of the ExtendedProperties property as a kind of generic cargo

Handle child XML nodes with care

When you work with XML documents loaded into an XmlDocument class, you often need to examine the contents of child nodes. The XMLDOM programming interface purposedly provides the ChildNodes property.