Posts

Showing posts from February, 2011

Setting up a Python CGI Sandbox on Windows

It makes sense sometimes to set up a sandbox for development of CGI.  By sandbox I mean a computer isolated from the web running all the programs needed to develop for CGI.  If you have a Windows machine there are fewer resources available online for setting up Apache, etc than for a Linux box. Note that installing a Apache server does take some resources but I noticed no difference on the 3 GHz Pentium D machine with 1 Gb RAM that I was using. follow these steps in setting up a windows machine: Install Python If you are going to put scripts on a server at an ISP such as 1and1 or GoDaddy you should be aware of the version of Python available to your hosting package.  For 1and1 I installed Python 2.5.  Also be aware that neither 1and1 nor GoDaddy use modpython at this time.   Install Apache Use a standard install of Apache.  It should take only a few minutes to install and configure.  When you are setting up make it "localhost". Add python as a CGI by modifying the foll

CamSoft System CS-209 - $1991.00

Image
When I bought my Bridgeport CNC Mill, it came with a CNC CS-209 control package made by CamSoft.   Here is a description from the CamSoft Website: CNC Lite software, AS3000 3D CAD/CAM system, USB Jog Stick Handheld Controller, CS 14000 - 4 axes stepper motion board, cables with user provided computer. CNC Lite Software AS3000 Cad/Cam System USB Jog Stick Motion Boards Limited time special offer starting at $1,991 I was excited about using this to retrofit the mill.  Considering the kit had never been installed I thought that it should be pretty easy to get the mill up and running.  The kit even comes with CAD software which is a big expense for CNC machining. The CAD software is called Advanced System 3000 and requires a hardware key (I think).  The software was on the computer that came with the mill but it was not very intuitive.  I have used AutoCAD and Solidworks extensively so I was surprised that I could not really just start drawing. The package also comes wit

Simple User Settings in a C# Windows Forms Application

There is a lot of confusion and long programming blog posts on application settings for a Windows Forms Application in C#.  I needed a quick and simple way to save a few user specific settings such as com port settings and names of labels on a customizable GUI. I have used the Python config package written by Vinay Sajip in a previous project.  The nice thing about the package was that it opened a config file and made an object which could be accessed as config.ports.baudrate .  Since Python is not typed the config file, which is simply Python code without any punctuation marks, is flexible, fast and easy to create. I had hoped that C# would have an easy way to build something similar.  I found an post early on suggesting using app.config.  After reading MANY posts on configuration and trying a lot of code that would not work on Visual Studio 2011 I had about given up and started writing my own. Luckily I found a simple solution. A settings file is already included in a Windows

Setting up Ubuntu for Automatic Turn-on in Emc2

After booting Ubuntu, logging in, and starting up Emc2 for the past year, I am getting lazy. So I setup Ubuntu to automatically log in to my main account and start the EMC2 program. It is different than doing the same thing on Windows but possible (all thing that are possible in Windows are so in Linux usually with MANY more options...) Setting up the computer to automatically log in to an account: NOTE: This should probably not be done if the machine is on a network. This one is simple and easy to find with a Google search: Click on System -> Administration ->Login Window Click on Security The click on "Enable Automatic Login" And select the name of your user in the box below it. Setting up the machine to run a program like Windows "Start Menu" My first thought was to modify the .login file which is the old school way to start programs outside of a windowing environment (back in 1987...) With Ubuntu you have to start a program after the wind