October 31st, 2008

I was recently given a Cisco Catalyst 6500. The obvious question is "what the heck do I need a Catalyst 6500 for?" To be honest I still haven't figured that one out but I have one. I received the catalyst from my school that originally got it from a local power plant that was getting rid of it. The catalyst only had two supervisor modules and no switch modules so it was essential a very heavy box that could not do anything. I shopped around on ebay and snatched up a 48 port switching module for only $10 ($23 w/ shipping). Due to my inpatients I didn't want to wait and try to find a power cable so I cracked open one of the power supplies to hard wire one in. I could quickly tell this was not going to be easy so I went the the simplest and possibly most dangerous route possible.

I took a computer power cable snipped the end that plugs in to the computer and hard wire it to the plug. Do note I just wrapped the wires around the prongs and they are not secured in anyway.
I fire it up and the switch module works great. One of the supervisors can't find it's IOS but the other one boots up find and it works perfect.
I now have the biggest, heaviest, and most dangerously wired 48 port switch ever. Unfortunately it won't be making it to many LAN parties.
Tags: 48 Port Switch, Catalyst 6500, Cisco
Posted in Uncategorized | No Comments »
October 21st, 2008

Yesterday was the one month point from when I paused using Ubuntu and started using Fedora. In all honesty I have come to notice that on a day to day basis the only things I use on my workstation are ssh/scp, Firefox, rdesktop, and vi. It became clear rather quickly that adjusting would not be as hard as I thought. I have chosen to revert back to Ubuntu. Following will be the goods and the bads of both fedora and ubuntu.
Fedora
Pros:
After I installed proprietary video drivers AWM actually worked. The use of appelets quickly turned into hell on earth but that is not fedoras problem. To be honest I kinda like the OS-X feel with the dock.
The boot loader control panel under system >> administration >> boot loader was a nice little tool I am not used to having.
The firewall control panel under system >> administration >> firewall was also a change for me. I generally use iptables in the command line or install firestarter. Having a pre installed firewall gui configuration tool was useful from time to time.
Cons:
No package for nvidia proprietary drivers that I could find worked. Had to download install from nvidia and compile own kernel module. Just a little bit of a pain.
For some reason 1 of my 2 22in. wides creen monitors is blurry from time to time with no real explanation. This never happened in ubuntu. I did find out that only using one monitor reduced blurryness but did not completely eliminate it.
I'm sure this is true on more than just fedora but common commands are not accessible without typing /sbin/[command]. This seems like a very small thing but I don't always rememeber to try and type /sbin/ in front of a command that it says doesn't exist. Therefore I get angry that I can't find the command and waste time looking for it. I know there is a way to set enviromet paths but I have never really gotten around to learning how to do this because I have never needed it.
Ubuntu
Pros:
Restricted driver utility works great for wifi and video card drivers. It makes life much easier not having to compile your own kernel modules and all the other tedious tasks involved with having to install drivers manually.
Neither monitor is blurry.
Sudo is configured by default for the user that installs the system. Even though configuring sudo is not hard by any means it is convient to have it already done for you.
Cons:
Lacks some of the advanced control panels such as boot loader, selinux, and firewall by default.
AWM does not work at all.
Final Thoughts
Ubuntu is geared towards ease of initial setup and completeing everyday tasks. Anything above and beoynd what a normal user would do on a day to day basis is going to require command line knowledge. At the same time Fedora seems to be the exact opisite. Everyday tasks are still easy and more advanced tasks such as managing firewall and security through selinux are also easier. Initial setup on the other hand requires a little bit more work. Even though I plan on rebooting back into ubuntu when I finish typing this if I was forced to use fedor I would not have a problem doing so. On top of that anything is better than Microsoft Vista.
Tags: Fedor, Fedora AWM, Nvidia, Ubuntu, Vista
Posted in Success Stories | 1 Comment »
October 11th, 2008
PyProfanity is a small program I whipped up to be used by a clients guest book posting routine. The whole point is a simply way to prevent guests and spammers alike from posting profanity and sexually explicit content in their messages. I have set up a simple cherrypy app here to allow people to try it out and help me add to the wordlist. I have access to a log that lets me see everything tried so I can see how effective it is. Anyone is welcome to test. The code is simple enough to post directly on here so here it is.
import re
class ProfanityFilter:
def readProfanities():
profanities = []
file = open('wordlist','r')
for line in file:
line = line.strip('\n')
profanities.append(line)
return profanities
profanities = readProfanities()
def replaceProfanity( self, query ):
for w, profanity in enumerate( self.profanities ):
replacement = ''
for c in range(len(profanity)):
replacement = replacement + '*'
p = re.compile(profanity , re.I)
query = p.sub(replacement, query)
return query
For obvious reasons I am not going to post contents of 'wordlist'. If you would like a copy of it send me an email.
Suggestion and improvements are welcome.
Tags: cherrypy, Profaniity Filter, python
Posted in Web Development | 1 Comment »
September 20th, 2008
Due to school work, work, work, and more work. I was not able to complete PyPal as soon as I planned. I have however gotten my first Pypal site up and going. It is a site that was made for a local artist to be able to sell her artwork. None the items are linked to an actual PayPal account because she hasn't had a chance to set one up yet. In the near future hopefully I will have time to strip it down to a more genral version that other people can benefit from. Although a huge goal of PyPal was ease of manageing items up for sale, for obvious reasons you will not be able to access the admin portion of the site. As a demo the site is currently available at the following link. LoriArt
It should be noted that http 408/409 errors are an occurrence when using internet explorer. Firefox work perfectly. If anyone knows why this would happen I'm all ears. The site is cherrypy running behind apache using mod_proxy.
Edit:
Problem solved thanks to the cherrypy googles group.
Adding "SetEnv proxy-nokeepalive 1" before the"ProxyPass" lines fixes the problem. It is an error is cherrypy 3.1. More on the issue http://cherrypy.org/ticket/853.
Tags: 408, 409, cherrypy, mod_proxy, PayPal, PyPal, python
Posted in Web Development | No Comments »
September 20th, 2008

I work at a school that uses Fedora for Linux servers. I'm constantly complaining about the use of Fedora and suggesting that we be using Ubuntu. This is primarily because I've never really used Fedora so I don't know the directory structure pertaining to where everything is. On top of that I'm not familiar with the yum package manager and RPMs in general. While we were setting up a Fedora web server for the robotics team the coworker suggested that he installs and uses nothing but Ubuntu for a month and I install and use nothing but Fedora for a month. Although it was never really considered I have decided to do this and the Fedora ISO is downloading as I type this.
In one month I will write a Fedora Vs. Ubuntu review. Stay Tuned....
Tags: Fedor Core, Linux, Ubuntu
Posted in Web Development | 1 Comment »