You've found my spot on the internet that's all about me. I put together this little site to show off my work and keep track of my various projects.

Author: Leo

Taking Photos in VR

Just trying out VR photos, taken with my Samsung Galaxy S7. With a Gear VR, I can immerse into these photos. What I want to do is use this, potentially, as a new way to show content on the Raleigh Connoisseur blog.

Apache Config For Two Django Sites on the Same Server

Recently, I had a need to create two separate Django projects. The requirements were similar but dissimilar enough that I wanted to have two projects rather than two apps in the same project. I decided to try and work with Apache to get the two sites running side-by-side on the same server. Using two virtual environments, using the same process…

Threading in Python

Threading has been very helpful in some situations. Here’s how I implemented it in my recent project. I’m posting it here as a reference. import threading, Queue #Create the queue for threading queue1 = Queue.Queue() class thread_cmm_scan(threading.Thread): def __init__(self, queue1): threading.Thread.__init__(self) self.queue1 = queue1 def run(self): while True: try: item = self.queue1.get() #This is the function that I have firing…

Python and SSH

A majority of the python scripts and projects that I work on, there is a need for an ssh connection. Paramiko is my friend. import paramiko, os address = '' ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) #Testing if we can ping then SSH to the endpoint try: print 'Pinging ' + address response = os.system("ping -c 1 " + address) if response…