The other day I ran into this problem where postfix insisted on delivering mail… as it was supposed to do! As it was configured! But this isn’t what I wanted. Let me explain what was happening: (more…)
All entries of my technical and business blog.
Unknown function _popupControl()
In my Javascript Error Handler post, I discussed how I track user and client side errors. Recently, my error logs became inundated with tons of javascript errors. The function _popupControl() is undefined. After a little googling, I found out that the CA Personal Firewall is responsible for inserting the following code into every page: (more…)
Javascript error handler
A while ago, I saw a website that provided a javascript error reporting service. You implemented some code and then they would send you reports on javascript errors on your site. I thought, this can’t be that hard. So I went to work to create my own. (It’s now used on this website as well as some political website I’ve worked on recently.) (more…)
Multi-Version Programming to Successfully Leverage Overseas Programming
Today, I read through the paper titled ‘An Experimental Evaluation of the Assumption of Independence in Multi-Version Programming’ (Find it here). (more…)
Trim down your content - it is a MUST
A while ago, I was reading a usability book - and the author suggested that every time you create your content, remove half of the words. Then remove half of them again. So, by the time you’re done, you really have 1/4th of your content - and it should still make sense. (more…)
Scanning for Unfiltered Content Automatically with PHP
A friend of mine posed a question: Do you know of any good PHP based vulnerability scanners? I told him I did not (add any in the comments, if you know! :) ) - but it wouldn’t be that hard to build one. He asked me to give him a code example, so here goes: (more…)
Display unix timestamp in a date format in MySQL
Every once in a while, I forget about the built in awesomeness of MySQL. Today, I was looking at a unix timestamp from PHP in one of the fields and was wondering what that date was. Derr, use from_unixtime function! SELECT from_unixtime(dateField) FROM tableName; (more…)
Figuring out Price Before Tax
A lot of the time I give quotes including taxes. Every once in a while, someone is curious about what the tax is on a service. (more…)
Launch Screen Automatically
Because the internet in the Crown building is as good as… well my parents 19.2K dialup - which drops pretty much every 5 minutes, I’ve had to use GNU screen extensively. (more…)
Elgg Plugin: Friend AutoComplete Box Replaces Select Box
One of the most irritating things to me about the Elgg messaging plugin is the requirement to choose my friends from the select box. This SHOULD be generated using the input/pulldown view in Elgg. Unfortunately, they are doing it by hand. However, I’ve patched my plugin to do it using the proper view. Then, I wanted to have an Auto Complete type box to choose a friend. With JQuery I was able to do this.... (more…)