Pylons Worker Threads

I was reading a thread over at pylons-discuss about worker threads in pylons. Worker threads are useful if you need to execute a long running task, but want to return to the user immediately. You could run a new thread per request, but if you have many requests, it is probably better to queue things up. To do this, you start a thread and use python’s Queue for managing the tasks....

March 4, 2009 · Chris Moos

CouchDB and Pylons: User Registration and Login

In the previous tutorial, we learned how to get CouchDB and Pylons up and running, as well as create a simple page counter. Now we are going to implement a simple user authentication system. This tutorial will teach you how to use formencode to validate forms and CouchDB to store our user data. Let’s start by creating a new pylons project and some controllers. $ paster create -t pylons userdemo $ cd userdemo $ paster controller main $ paster controller auth Also, delete public/index....

February 21, 2009 · Chris Moos

WPA Wireless Authentication with eDirectory and FreeRADIUS

The following is an old article that I wrote that some people were asking me about. Here you go. Introduction The goal of this article is to allow you to have your wireless access protected by WPA and have users authenticate to eDirectory for access to the wireless network. What is WPA? WPA  is a wireless authentication standard used for controlling access to wireless networks. WPA can operate in a pre-shared key mode(router and client both know a secret password), or authentication can take place with a RADIUS server....

February 5, 2009 · Chris Moos

CouchDB and Pylons: Getting Started

CouchDB is very cool(it’s built on erlang), and with Pylons, it is even cooler. Apache CouchDB is a distributed, fault-tolerant and schema-free document-oriented database accessible via a RESTful HTTP/JSON API. Normally a Pylons web application will use some sort of RDBMS for storing data and persistence – such as MySQL or PostgreSQL. I’ve decided to go a different route and integrate Pylons with CouchDB. Right now there is a Python library, couchdb-python, that will help us communicate with our CouchDB’s HTTP/JSON api....

February 3, 2009 · Chris Moos

MoosTrax will return.

Yes, I recently made a post saying that MoosTrax will be going away forever. Due to all the comments and feedback, it is obvious to me that there are many people that enjoyed the service – so I’m going to bring it back. I’m moving my database backend from CouchDB to MySQL, so my issues with CouchDB won’t prevent me from providing MoosTrax. I have been working a lot on migrating the site and fixing it up…so I really hope to have it up in the next week or so....

January 24, 2009 · Chris Moos

Hasta la vista, MoosTrax.

UPDATE 01/21/09: Okay, okay. A lot of you seem to like the site...I'm going to bring it back. Moving back to MySQL though. Stay tuned. Well, it was a fun while it lasted. Unfortunately, I’ve decided to close the doors of MoosTrax permanently. It started with BlackBerryTracker.com, which I had set up in Fall of 2007, to provide a site to track BlackBerry GPS-enabled devices. Prior to starting the site I had got my first BlackBerry, the 8800, and also my first GPS enabled phone....

January 20, 2009 · Chris Moos

Cox sucks

First, let me start off by saying that Cox’s customer service is absolutely terrible. I am only going to outline the most recent issue I’ve had with them in this post. My “problem” is simple. Here is a quick history… About 6 months ago I purchased a TiVo HD. It is able to access premium channels by using CableCARDs. After I brought the TiVo home, the next thing I needed was a CableCARD....

August 2, 2008 · Chris Moos

iPhone RSS Parser

I’ve made a simple parser class for reading RSS feeds and a simple demo application for the iPhone that implements the iPhoneRSS class. The following example shows the usage for the RSS class. Basically, the class creates an NSArray of news items, and each object in the array is an NSDictionary. The dictionary contains the element name as the key. /* load feed from URL */ iPhoneRSS *rss = [[iPhoneRSS alloc] initWithURL:[NSURL URLWithString:@"http://www....

July 17, 2008 · Chris Moos

OpenLBS - Open Source Tracking

I’ve just finished working on the initial release of OpenLBS. OpenLBS is an open source suite of location based software. The two initial components of the project are the client and the server. The server is Pylons-based project that implements the OpenLBS HTTP Specs. The client implements those same specs to work with the server. OpenLBS is useful if you want to run your own tracking server, or if you want to customize it according to your needs....

July 4, 2008 · Chris Moos

Blackberry Tracker Facebook Application

You can now add a Facebook application to your profile that will show your current location in a profile box. For more information, visit http://blackberrytracker.com/facebook.

February 6, 2008 · Chris Moos