Search
The Way of the Software Engineer

Archive for the 'Software' Category

Regular Expression Checker

Posted by admin on September 24th, 2007

function checkRegEx() { var myoutput = document.getElementById(“outout”); var expression = document.getElementById(“regex”).value; var data = document.getElementById(“data”).value; var matches = data.match( expression, “gi” ); if( !matches ) { myoutput.innerHTML = “No Matches found”; } else { var tmp = “”; for( i=0; i < matches.length; i++ ){ tmp += i + ” ” + matches[i] + ” [...]

Green Code

Posted by admin on September 22nd, 2007

Many hard engineering fields see the impact of their work on the environment directly. Using sustainable materials in your products implies that they’re better for the environment than they might otherwise be. How does this translate to software engineering? Certainly, there are the direct contributors. The maintainers of the linux ACPI kernel module that allow [...]

Java and XML

Posted by admin on September 17th, 2007

A fellow engineer asked me about parsing XML in Java and I handed them this utility class I wrote a while ago. The class fit her need so well, she suggested I post it for others to use. It’s only a few lines of code, but it is useful. I find the nodeListTree2Hash method to [...]

Semantics III: The Core

Posted by admin on June 11th, 2007

At its heart, a targeting engine must make a decision about what ad to send to a website visitor. This can be done at random, by looking at surrounding content, or by looking at history. Most “site ads” are chosen randomly from a short list that’s manually administered by the site owner. The ad rotation [...]

Semantics II: Advertising

Posted by admin on June 8th, 2007

This is part two of a multi-part series. Part one can be found here. Online advertising is a multi-billion dollar business. Google has become one of the worlds most recognized brands by selling ads on its search result pages and putting context ads on websites. Yahoo and Microsoft are working hard, and spending billions to [...]

Semantics I: Search

Posted by admin on June 7th, 2007

This is part one of a multi-part series. The series is continued, here The Semantic web has been touted has Web 3.0 and the next evolutionary step in internet communications. A Scientific American article from 2001 told us what we should expect of a semantic internet. This is how devices should communicate and how information [...]

Good Ideas

Posted by admin on June 6th, 2007

Recently it seems like every time I have an idea for a useful web tool someone has built it already. With OS X Leopard coming out soon I thought using the new text-to-speech system to make a web page reader would be cool. done! Wouldn’t it be great if you could convert a wordperfect document [...]

IP Geo-location

Posted by admin on May 9th, 2007

I’m building a system that maps a user’s IP to a physical location. This kind of stuff has been around for a while, and it’s so easy I don’t understand is why it’s used so infrequently. It’s as though it’s seen as a tool for the mega-corp ad networks like Yahoo and Google/DoubleClick, but there [...]

jBluez

Posted by admin on April 19th, 2007

About 6 months ago I wanted to pull some data from a bluetooth adapter into a little java app. I did the usual google searching and found (among others) jBluez. Being free and working on Linux, this seemed like the right solution for me. But there are problems with jBluez. It has a few bugs [...]