Restructuring the Site

Status

Newspaper vs. Encyclopedia

Something Old

The material I have posted to this blog falls generally can be classified as “timely” or “reference.” Looking at the articles, I see too many reference-type articles in the blog which is essentially “timely.” That is, much of what I have posted to the blog, which is like a newspaper, more properly belongs in an encyclopedia format. I noticed this partially due to having to dig back through old articles I wrote to find the reference material that I wanted.

OK, many of you are saying, “Duh!”. I had other priorities and merely having an outlet to share ideas and projects on the ‘Net was initially enough. Now I am looking to make the site both more useful and more active.

Something New

The revised site will have at least the following sections:

  1. Blog
  2. Wiki
  3. Better cross-links with advancedcplusplus.com
  4. Links to contextually relevant YouTube videos
  5. Topical Recommended Reading
  6. Access to Version Controlled Software

Already, wiki.branchpoint.net is active and the blog has moved to blog.branchpoint.net. Right now the home page redirects to the Blog. I’m going to create a landing page that looks better and pulls everything together. That includes advancedcplusplus.com and the corresponding YouTube Channels.

That’s where we are. The “Under Construction” front page on web sites has always bothered me; to me, a web site should always be under construction. So there won’t be an under-construction page, but please bear with me as I undertake making the site more useful to me and to my visitors.

Updating PHP on CentOS 6.3

Despite the fact that this references i386 when installing the repository, the subsequent package updates work for x86_64.

Understanding Sync Layers in YUI

A Sync Layer is an interface where the widget, e.g. {javascript}DataTable{/javascript}, is populated, updated from, and updates a data store. In our case, the data store is a RESTful interface using JSON.

To implement YUI Sync Layers, we use a {javascript}ModelList{/javascript} composed of Models. To understand Models, we go back to the basics and look at {javascript}Attributes{/javascript}.

{javascript}Attribute{/javascript} implements getter/setter functionality for a class attribute, which is called member data in C++. {javascript}Attribute{/javascript} is normally not used directly. Rather, implementations extend {javascript}Base{/javascript} which incorporates {javascript}Attribute{/javascript}, handles attribute setup, and adds lazy initialization to all attributes, improving performance.

Setting Up EC2 Web Server

Getting X11 Forwarding Working

It can be confusing to see the report {code}WARNING! The remote SSH server rejected X11 forwarding request.{/code}. You’ve made sure that {bash}/etc/ssh/sshd_config{/bash} has X11 forwarding enabled and that a local X Server is running. The problem is that many servers do not have {bash}xauth{/bash} installed by default. Adding this enables X11 forwarding.

LAMP

Firewall

Before connecting to the web server, you will need to allow HTTP to pass through the firewall. The easiest way is to use {bash}system-config-firewall{/bash}. As I frequently have difficulty getting the text versions of the {bash}system-config-*{/bash} to run, I use the graphical version.

MySQL

After setting up MySQL, you need to add a database:

PHP

Before the PHP installation will work, you need to enable some package repositories that are disabled by default. This is needed because {bash}php-mcrypt{/bash} is not available in the repositories enabled by default.

Miscellaneous

You need to “activate” the EPEL repository before installing phpMyAdmin, which can be found at {bash}/etc/yum.repos.d/epel.repo{/bash}.

Quick ‘n Easy LAMP Install on Red Hat/CentOS
Virtual Host Example Configurations
An In-Depth Discussion of Virtual Host Matching
Running Apache2 hosts as different users
Run Apache2 Virtual Hosts as Different Users

Setting up HTTPS

Self-Signing a Certificate for SSL
Generating the Keys
Apache SSL on Red Hat

Allow Access to a Directory Only Via SSH
Password Protect Directories with Basic Authenication

References for Automatic Document Classification

Intellexer Classification Software – Commercial, Cheap $13
Genie and SMILE – Promising
Neural Networks Library
Machine Learning Library from Stanford/SGI
Simulated Annealing on Wikipedia
Learning Classifier System for Document Categorization
Swarm Intelligence for Document Classification
Immune System Based Document Classification
Bayes++

 

Enhanced by Zemanta

Stabilizing the Mix

For the past month I have been researching, learning, testing, and evaluating various libraries and frameworks to use for Web development. I have previously written about my less-than-satisfactory experience with the monolithic client side MVC frameworks. I also discarded my initial plan to use WordPress for authentication and access control, because of the baggage that WordPress brings with it. Then I started in on Zend, a server side framework that is less monolithic than the client side frameworks.

Zend does allow you to use just the components you want. In particular, I am interested in Zend_Auth for login/logout and in Zend_Acl for access control.

Looking into the above references it does appear that I’ll need to implement the Zend MVC framework to at least a limited extent to leverage authentication and access control. That’s doable.

Let’s shelf authentication and access control for the moment and look at what we’re trying to create. First and foremost, the clients wants a “Dispatch” screen, associating techs with assigned jobs for a given day. We must be able to display a minimum of 80 jobs simultaneously. Something like this:

Alexander
Apt Unit AM/PM Jobs
David
Apt Unit AM/PM Jobs
Gabriel
Apt Unit AM/PM Jobs
Joseph
Apt Unit AM/PM Jobs
Mason
Apt Unit AM/PM Jobs
Samual
Apt Unit AM/PM Jobs

Getting Started with Zend Framework

Over the weekend I get Zend Framework installed and working on a fresh copy of the Linux distribution Centos 6.2. I had to add the following repositories to

/etc/yum.repos.d

to get everything to install. The most helpful sites were Setup Zend Server and Magneto on Centos 6 and Install Zend Server…On CentOS 6. Be careful of the second link: following its instructions without adding repository priority resulting in a broken system for me.

I first installed repository priorities with:

yum install yum-plugin-priorities

The link below is to a .tar.bz2 file that has the full set of repositories needed to install Zend Framework CE. Download it after installing the priorities plugin (above). Go to /etc and unpack using tar xf <archive-name>.