Building Out Distributed Apps (Big Data)

Yesterday, I attended a webinar by O’Reilly on how to reduce the pain of building out distributed applications. The focus was on scalability, which makes sense, since this is why you would want to distribute your applications.

Apart from the host’s unfortunate resemblance to Little Lord Fauntleroy, there was some interesting observations to be made. To wit:

Continue reading

Using the ‘using’ keywork in C#

C# Super HeroIn the System.Data.SqlClient namespace, SqlConnection and SqlCommand are two examples of managed types that use unmanaged resources down in the COM layer of the run-time. Microsoft says that all of these types must implement the IDisposable interface.

Continue reading

Javascript escape() and C#

Recently, I needed to transmute a Web form into Windows form for a client. There was a subtle issue involving parameters to a SQL stored proc; the stored proc returned matches and near matches to the input values. The return values were missing special characters like ampersand (&).

I kept looking at the output routine trying to figure out where the data was getting cooked. I walked back up the execution chain, checking the inputs until I found a call to escape() in the JavaScript on the original web form.
The solution was to import the Microsoft.JScript assembly and call the Microsoft.JScript.GlobalObject.escape() method.

Another good day at ImageSource, Inc.

Pinning Apps to the Task Bar in Windows 7

In Windows 7, it is possible to “pin” an application to the TaskBar so you can open it with just a single click. To pin something, simply drag the icon to taskbar and click on the “Pin this program to the Taskbar” popup menu item.
I do this with my Visual Studio shortcuts to save time hunting on my desktop or in the Start Programs menu.

 

 

Adventures with IPM 11g continued (Part 2)

I thought it would be simple. Take the very first example from the Oracle examples for IPM 11g, compile it, and start adding my own code. This is my standard way to learn a new API (and probably yours, too). Start with the examples and keep adding functions to exercise features.

Well, I followed the instructions provided with the example programs (basically copy down some Jar files and put them on your classpath), and while the program compiles fine, I get a NoClassDefFoundError, which is common enough in Java when you use dynamic loading (Class.forName was something I used quite a bit in the old days).

However, the class it can;t find is weblogic.xml.jaxp.RegistryParser which should be in one of the Weblogic jar files; but I cannot find it. Oracle tech support also can’t locate it. I am waiting to hear back from their 2nd line support. Is it really that hard?

Anybody else out there used the examples?