July 26, 2005

Assign a Default Value to a Password Control in ASP.NET

If you set the TextMode property of a TextBox Web control to “Password,” any default value you assign to the TextBox won’t show up. To work around this problem, add the following code to your ASP page: void Page_Load(object sender, EventArgs e){ txtPassword.Attributes.Add(“value”, “pass”);}

Fixing a CVS -n Update Error

Suppose a CVS -n update throws the following error: cvs update: inflate: unknown compression methodcvs [update aborted]: reading from server: Input/output error When you use the -n option, there’s a mismatch in the zlib version used by the CVS server and client?which is causing the error. The only way to

Identify Columns for Indexing for Faster Queries

Between two tables of similar size, a merge join is the best possible join an optimizer can choose. If you have clustered indexes on the join columns, the optimizer will select merge join. However, if one of the tables in the join is smaller than the other, the optimizer will

Manage Messages from MQ Server with MQ Java Classes

import com.ibm.mq.*; public class MQPutGet{ private String qManager = “QMGRname”; private String qName = “QUEUEname”; private MQQueueManager qMgr; // define a queue manager object public static void main(String args[]) { new MQPutGet(); } public MQPutGet() { try { // Create a connection to the queue manager qMgr = new MQQueueManager(qManager);

Opinion: Eclipse Fails to Meet the Enterprise Java Developer’s Needs

have tried?quite hard at times?to rely on Eclipse as my main Java IDE, but I have been unable to because, simply stated, Eclipse hasn’t met the evolving needs of Java developers. And by Java developers, I don’t mean the minority who build Eclipse tools. I mean the majority who program

When to Pass Parameters by Value

The main reason to pass parameters by value is to improve performance, which is somewhat of a paradox, because this is also one of the main reasons to pass by reference. The truth is that either method can improve performance?it just depends on the situation. Passing a parameter by reference

Planetary Orbits: Elliptical Animations with ActionScript

ast month I tried to encourage readers to embrace a couple of simple math concepts to expand the ol’ ActionScript skill set. I tried to show that by understanding some basic trigonometry (just sine and cosine, honest!) you could be wielding the power of the circle in no time. If