DocPasswords – a MODx Revolution Extra

I’ve been working on some modules/extras for MODx revolution. The first one out of the gate is DocPasswords, a simple resource password protecter. I’m surprised this isn’t built into MODx, but there you have it!

It’s hosted on GitHub: https://github.com/dharnanansingh/modx-docpasswords

Zend Calendar Service with View and jCarousel

My previous post about creating a basic web calendar with Zend Date was well received, although many comments suggested the need for a way to properly integrate it into a Zend Framework project. As you all know, the best way to integrate the calendar class into Zend Framework really depends on how and where you plan to use it. Is there a particular controller/action that would be managing it? Would it need to integrate with any of your models? Would you need fine grained control over its view?
Continue reading →

JQuery Expand/Collapse All Menu Plugin

Another take on an expand/collapse style navigation.

For my requirements, the navigation was a template and needed to be n-levels deep to take into account any possible combination the client might need. Outside of requiring well-formed nested unordered lists, the markup requires SPAN tags around the items that you wish to expand/collapse.
Continue reading →

Implementing Best Practice Guidelines onto PDAs

Abstract

Best Practice Guidelines (BPGs) represent a promising way to improve nursing care by reducing the time lag between research findings and subsequent changes in healthcare practices. Translating the currently paper-based BPGs into a portable, computer-based format is seen as an important step towards the widespread use of BPGs in nursing practice. In implementing the asthma BPG onto a PDA, we have discovered that the concept of an “algorithm” is distinctly different for nurses and for computer programmers. Our on-going development of the computer-based BPG is influenced by these insights into the dynamic and iterative process of nursing care.
Continue reading →

JQuery Dynamic Form

Scenario:
Building web forms can be tricky when a form calls for a variable number of fields. A real-world example might be a sports team with an n number of players. When capturing the team player data via a web form, the typical way might be to create the form with one empty player field for each player on the team. You would obviously need to know the maximum number of players per team. Worse, you would also need to deal with non-existent form data on the server side.
Continue reading →

PHP Pagination

Here’s a PHP function “getPaginationHtml()” that builds an item-pagination type HTML DIV based on parameters only, i.e. no database recordset needed. Note the user of a second function that is used by the pagination function to build the URL parameters needed for the pagination links.
Continue reading →

Calendar Class Based on Zend_Date

A recent project required an event calendar in both a mini and full sized format. The project was based on Zend Framework, a highly scalable and feature-rich PHP MVC framework. The resulting Calendar class is admittedly quite basic, but I thought it might prove useful for other PHP/Zend coders who are trying to find a simple yet extensible Calendar solution for their own projects.
Continue reading →

Ethics and Limitations of Technology: An Inseparable Future ?

Have you ever read Bill Joy’s ”Why the Future Doesn’t Need Us”, Wired Issue 4.08 (April 2000)? Well, you should! It’s an interesting look at the potential impact of technology on humans, now and into the future. Well, after reading it, I felt like I needed to put my two cents in. So here it is, agree or disagree. Comments welcome!
Continue reading →

Analyzing the Impact of Web Page Textual Data Representation on the Accuracy of Selected Supervised Learning Models

We looked at the effectiveness of supervised learning models in solving the real-world problem of web page classification. We attempted to maximize the performance of the classification model through the use of various feature sets. We observed that we were able to attain the highest accuracy by using a large training set, with a binary representation of terms, trained using the Support Vector Machine model (with the polynomial kernel filter applied).
Continue reading →

Customized jQuery Tabs

I have always liked using tabs as a means for navigating a website. In my opinion tabs are a great way to separate content because they are a somewhat natural representation of a real-world artifact that many users are used to. And if a navigation item is familiar to users, then it helps increase usability, an often-overlooked goal of web development.
Continue reading →