June 23, 2009

Keep Software Simple

n the course of my consulting, I have reviewed numerous applications from many companies?and often find areas where the software was just too complex. The reasons for this are varied, but seem to be centered around a few main areas: inappropriate use of design patterns, the ?not invented here? syndrome,

Determine the Session Waiting for a Shared Resource to be Released

Here’s how to find out which session is waiting for a shared resource to be released: Column host format a6;Column username format a10;Column os_user format a8;Column program format a30;Column tsname format a12; select b.machine host, b.username username, b.server, b.osuser os_user, b.program program, a.tablespace_name ts_name, row_wait_file# file_nbr, row_wait_block# block_nbr, c.owner, c.segment_name,

Simple Script to Run Java Applications on Linux and Windows

Unlike C/C++ compilers that produce binary executables, Java produces bytecode. Running bytecode can be difficult for regular users, particularly when the application requires external libraries. There are several solutions to the problem; you can: Create an executable JAR. Create shell scripts. Create another executable that invokes the Java application. The

Fast Way to Create and Send Email

An easy way to create and send email in VB (or any other language) is to use the “mailto:” protocol that already works on client computers. The technique makes a request to the installed email client, and works with Outlook, Lotus Notes, and other registered email clients. You can’t use

Make Web Requests Programmatically in .NET

You can use the code in this tip to make web requests to a remote HTTP server and read the response: try{ // The URL http://www.microsoft.com/en/us/default.aspx // is used here purely as an example. // Substitute your own URL as needed. Uri uri = new Uri(“http://www.microsoft.com/en/us/default.aspx”); System.Net.HttpWebRequest httpWebRequest = (System.Net.HttpWebRequest)