Category: software

software

Cross-Platform CSS for Translucent DIVs

Had a need recently to make some translucent (semi-opaque) elements on a Web page. CSS3 supports an “alpha” channel, the “a” in rgba, to provide color opaqueness, but IE 7 and 8 do not support this attribute.  So, most web developers resort to using a translucent background-image.  However, there is a pure CSS way that […]

Be the First to comment. Read More
software

Django

Egads, it’s been a long time since I’ve written a blog post. Yes, let’s blame Twitter for this!! Pithy, short, and easy, tweeting has become the easy way to share thoughts. Of course, not all can be written in just 140 characters, so I need to maintain a blog for deeper, yes, deeper thoughts. But […]

Be the First to comment. Read More
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
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
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