KEVIN

software

nGram Dictionary

On a recent project, had to deal with searching of tens of thousands of product descriptions, with a need to find substring matches quickly.  The select: statement in Smalltalk works like a SQL table scan – okay for small collections, but becomes seconds+ response time with larger lists. An effective solution to this is an […]

Be the First to comment. Read More
software

Decorators as Guards

I’m exploring a new pattern – I’m sure it’s been done before, but it’s new to me, and a useful exercise to get to the next stage with an application I’m envisioning.  The pattern is using Seaside Decorators as security guards. So, last night, finally squeezed in enough time to my decorator guards into action.  […]

Be the First to comment. Read More
Opinion

Health Care – costs vs. price

It’s oft repeated that health care costs continue to rise at a crazy pace.  While most costs of most products and services have been decreasing, in terms of “real”, inflation-adjusted dollars, health care, like education, have been increasing at record paces.  And, unlike the housing/real estate “bubble”, there doesn’t seem to be an end in […]

Be the First to comment. Read More
software

Cash Drawer Counter in Seaside

This is a simple application I wrote, just to learn more about Seaside, and specifically to figure out onChange: actions, which makes use of Scriptaculous to create an AJAXy web application without much effort. You can see the application at work at: agoric.seasidehosting.st/cashdrawer

Be the First to comment. Read More
Houston

The Hottest Summer in Houston

1980 remains the hottest summer in Houston: 14 consecutive 100+ degree days, a high of 107, and 32 days altogether at 100 or above. Yep, I remember that summer well: I was a lifeguard that year – and by the end of the summer, a coach, swim teacher, a pool cleaner, and a front-desk clerk […]

Be the First to comment. Read More
software

Seaside – how to change a page’s title

I know I’ve seen the answer to this before, but had a hard time tracking it down, so thought it worthwhile to post. To change the web page’s HTML title (or any other head information) for a web component, create a method updateRoot: .  This method will be called when the component is rendered on […]

One comment Read More
software

Updater examples with Scriptalicious & Seaside

The first of a series of coding vignettes in Seaside.  Context: a web app with a form containing multiple input fields.  Instead of waiting to submit the form, I want the page to update another element every time an input is changed.  In this example, a total field.  Solution was used for a simple MoneyCounter […]

Be the First to comment. Read More
software

Tax Savings for Software Companies in Texas

For the past 6 years, one of the major specialties of my company is writing software applications dealing with corporate taxation.  This has usually been internal, custom apps for a corporate tax department, but recently we have entered a partnership with a local accounting firm to do some web service-based applications. The first of these […]

2 comments Read More
software

Sqwitter – demonstrating a Seaside app

Squser>>allSqweets “returns messages from self and friends” | allsqweets | allsqweets := SortedCollection sortBlock: [ :a :b | a timestamp < b timestamp ]. allsqweets addAll: self messages. myFriends do: [ :each | allsqweets addAll: each messages ]. ^ allsqweets ———————- allSqweets  is a simple 4 line method, but delivers the core feature of Twitter: […]

3 comments Read More
software

How to Cpk the SQL Way

As mentioned earlier, I’ve been involved in client’s Production Reporting application project, when the subject of Cpk came up.  After a lot of inconsistent references to the statistic and lot’s of code that approximated but didn’t exactly calculate it, I finally discovered the proper formula for  Cpk.  Here it is: Cpk  =   min (  USL […]

One comment Read More