When altering a table to an Oracle reduce a columns size, you’ll get a ORA-01440 error, indicating that you can’t make the adjustment because of the potential data loss. I had to do this to recently to a bunch of columns, as I had incorrectly specified the size of numbers that would end up as [...]
Archives for Javascript
Flex is a Relic and Silverlight is a Zombie
…or some other catchy metaphor that will grab your attention. These technologies were hot over the last 5 years. Flex gained a particular amount of popularity in the Java community where UI technologies have a bit of a spotty record (that’s like saying my Bengals have a bit of a spotty record over a lifetime). [...]
Popup Overlay Auto-Applied to an Anchor with jqModal
Working on a relatively straightforward page, I want to have some of the simpler static contact come up as an overlay style of popup. Following web standards, it would be nice to have this code automatically work based on a CSS class. This would provide two benefits: easy to add more such links without writing [...]
Interesting Assignment Related to Rich Internet Controls
One or my recent projects was to work with a client to create a Silverlight control for reporting purposes that has some general flashiness, and is reusable across several sections of the site. It has brushed into some interesting areas. I have used Silverlight for some media and imaging applications before, but this was the [...]
Namespace, Encapsulation in JavaScript
I’ve had several discussion recently some of the more advanced features of JavaScript, such as functions as return values, namespaces, encapsulation, etc. In order to demonstrate some of these things, I contrived a simple example of a dependency injection tool. Never mind that dependency injection is not really a relevant pattern in JavaScript or other [...]
Integrating Internet Services on Your Site (Or Mini-Cloud Web Sites)
Something I’ve been increasingly fascinated with over the last year is the reuse of free internet services that I have. On my site, I have widgets that feed the last 4 posts from this wordpress blog, and my twitter feed. I also have an ajax live bing search box that will return results from my [...]
Arrays as Objects in Javascript
Rhino Prompt… js> a[0] = 1; js> a.print = function () {for(var e in this) print (“a[" + e + "] = ” + a[e]);}; function () { for (var e in this) { print(“a[" + e + "] = ” + a[e]); } } js> a.print(); a[0] = 1 a[print] = function () { [...]
Javascript Scoping
If you understand what’s going on when this runs, then you understand javascript scoping. var x = 5; alert(x); function foo(){alert(x);var x = 10;alert(x);} foo(); alert(x);
JScript.Net and C# Interaction
// lib.cs: using System; namespace Library { public class TestLib { public static void speak(){ Console.WriteLine(“Hello From CSharp Dll”); } } } // hello.js import System; import Library; var a = {name:’JScript Object in Exe’}; a.foo = function (){ Console.WriteLine(‘Hello From ‘ + this.name); }; a.foo(); TestLib.speak(); Compiling: 1. [...]
