MediaWiki Radius Authentication Extension – RadiusAuthPlugin

Here is an extension / plugin for mediawiki to authenticate against a Radius server. I couldn’t find one anywhere else, which is surprising. I can’t believe I am the first person to want to do this. Anyway, this is just bare bones, but it works for an internal mediawiki setup.

First, get Pure [...]

Example of an offline web app

The app: http://psyjinx.com/iphone/

This is a very simple webapp. It displays images that iPhones and iPod Touches can use as wallpaper. There isn’t really a need for offline use with the iPhone, but the iPod Touch could benefit from it. It took me about 10 minutes to learn what to do, and implement [...]

Small JavaScript DateTimeTools object

So I got the project working on a tv schedule at work. As you can imagine there is work that needs to be done with dates and times when moving forward / back in the schedule. I found a few things out there that were full blown date/time js libraries, but they were [...]

Ever need to iterate though all the members of an object (javascript)?

You know you have… if you are like me though, you can never remember the exact syntax. Here it is:

for (var name in object)
{
if (object.hasOwnProperty(name))
{
alert(name + ‘: ‘ + object[name]);
}
}

YUI DataTable – Using a dateCellEditor with an asyncSubmitter

If you are wondering what a dateCellEditor and asyncSubmitter are go check out http://developer.yahoo.com/yui/examples/datatable/dt_cellediting.html.  See the last_login column?  Click on that, you will get a cool calendar that pops up for you to change the date.  Pretty handy. That Inline Cell Editing page touches on how to implement that, but it doesn’t cover the actual [...]

YUI Datatable – Custom Parser Example

For entry, with my validator, I am validating that no matter what a user types in for a height, I convert it to a float to store in the database (5.10). In retrospect, I should convert it to the inches value, but this example isn’t doing that.

For display, with my formatter, I am standardizing [...]

YUI Datatable – Custom Validator Example

This is the validator I am using to insure that a height (or float) was entered (5’10″, 5′ 10″, 5.10 5 10), and that text (tall, short) was not entered and covert a valid non-float value entered (5’10″, 5′ 10″, 5 10) to a float (5.10), which is how I want to store the [...]

YUI Datatable – Custom Formatter Example

I needed to create a custom formatter for a datatable that contained a cell for an individuals height. The height is stored in the database as a float. 5′ 10″ would be in the database as 5.10. In retrospect I should be storing the height as inches and converting it to feet as [...]