Python 2.7 Tkinter GUI Example Code

February 28, 2015
Tags:

Some example code for future reference. # This accepts preformatted text from textedit and formats it from bs4 import BeautifulSoup import collections import Tkinter as tk import sys class MyWindow(tk.Frame): def __init__(self, parent): tk.Frame.__init__(self, parent) self.parent = parent self.grid() self.article_url = tk.StringVar() self.article_title = tk.StringVar() self.current_status = tk.StringVar() self.choice = tk.IntVar() self.article_total = 0 for […]

0

Rogue System Detection with Splunk

November 7, 2014

This Splunk search allows you to be alerted when a new IP is seen by Bro. The requirements for this alert to work are the bro_known_hosts log and a CSV with all allowed IP addresses. Setup the CSV as an automatic lookup table. The automatic lookup table is setup based on the host (securityonion) and […]

0

Splunk free Configuration

March 14, 2014
Tags: ,

Splunk Free This is the second post in how to setup pfSense, Squid, and Splunk. Here is a link to the first post, pfSense, Squid, and Splunk free Sometime around 2013 Splunk switched to a paid and free version. The free version does not allow for emailed alerts or user authentication. For this post, I will […]

0

pfSense, Squid, and Splunk free

March 14, 2014

pfSense and Squid I am continuously impressed with the amount and quality of free software that is available on the internet. pfSense is an open source firewall based on FreeBSD with a web based interface and easy to add packages. It has most standard firewall features, but also includes advanced features such as VPN, captive portal, […]

0

SparkFun Robotic Arm Clock with Ethernet Shield

July 17, 2013
Tags: ,

After I learned how to code the Arduino and work with the SparkFun claw, I wanted to build something that could be useful, stay out of the way, and always be running. I settled on a clock. To incorporate the robotic arm in to the clock I set the arm up to move like a […]

0

Even More Example Code SparkFun Robotic Arm

March 3, 2013
Tags: ,

This code allows you to control the arm with serial commands.  The keys 1-6 are used to control the servos. /* Robot console This code will control the arm via serial commands */ #include Servo.h Servo servo1; //base-pan Servo servo2; //arm-tilt Servo servo3; //claw void setup() { Serial.begin(9600); servo1.attach(9); //pan range is 20 to 140 […]

0

More Example Code SparkFun Robotic Arm

February 23, 2013
Tags: ,

I have continued to tweak the code for the robot demo. I call this code Robot Instructions. It allows me to call two different functions. The first function moves the arm very quickly and the second function moves the arm slowly. This is for the Arudino Uno with a three servo robotic arm sold from […]

1

Example Code SparkFun Robotic Arm

February 23, 2013
Tags: ,

Here is some more example code for a 3 servo arm. I call this the robot demo. It simply moves the robot around slowly. /* Robot demo */ #include // servo library Servo servo1; //base-pan Servo servo2; //arm-tilt Servo servo3; //claw int posf1 = 140; //pan int posf2 = 90; int posf3 = 90; void […]

0

How To Assemble and Code the SparkFun Robotic Claw with Pan and Tilt for Beginners

February 22, 2013
Tags: ,

For Christmas 2012 I got the SparkFun Robotic Arm. I was unable to find any beginners guides that encompassed the full assembly and code. Here is my attempt. As a warning, I have no background experience in Arduino or electronics. Be sure to read the SparkFun product guides to know what additional equipment needs to be purchased. My build was […]

2

Python 3.2 Tkinter GUI Beginners Example Code

February 2, 2013
Tags:

UPDATED (2/2/2013) This example is now working. I had to add a sequence to the bind statements. Have you ever wanted to add a simple GUI to an excellent python script without installing any additional modules? Here is some basic example code to help you. When I started I wanted a GUI solution that would […]

6