Jan 09

(Late) Friday Post: and the winner is! Also Monoprice Maker Architect 3D Printer

Hey All!

The winner of the Raspberry Pi Zero giveaway is Aaron!  Congratulations!  I will be emailing you later tonight!

Onto other news.  This has been a hell of a week.  Had a small health scare with my grandmother, so we drove 200 miles yesterday to visit her.  We spent the night and drove back home today.  Hence the late post.  Shes doing better, so phew! 😀

This week I implemented a cool video encoding queuing system using Redis and Django.  The module I used is called Django-RQ, and it makes it super simple to convert your functions into queue-able objects using the @Job decorator.

This Tuesday is my birthday! Woo!  I turn 32.  I’m content.  I also start classes that night.  Yay lol.  I bought this as a gift for myself:

138611

 

It’s a Monoprice Maker Architect 3D Printer for $300.  It’s a major upgrade compared to my Micro, but it takes a lot more to get it going.  I’ve had it for two days and I’ve finally got most of the settings dialed in.

When I went to visit my Grandma I took along my Kinect sensor and used Skanect to scan her, so I was able to quickly print out a very low poly version of her as a bust.

12506821_10104783547948412_992828713_n

The Skanect free version limits exports to only 5000 polygons.  Once I upgrade I can export at full resolution.

Have a good week / weekend all.

Thanks for reading.  I really appreciate it.

-Shea

Jan 10

Friday Post: Django, AWS, and oAuth

Hey All,

So the semester begins on Monday, meaning this whole week our department has been dealing with semester startup.  Making sure all our apps are tested, available, and production ready.  One of my apps has become the guinea pig for moving our infrastructure into the cloud.  This has been a really fun experience like rewriting parts to save to S3 instead of the filesystem, etc.  Except when it hasn’t been fun.  Like dealing with oAuth behind a load balancer.

Long story short, if you use Django, AWS, and oAuth or LTIs (and SSL), add this to your config file:

USE_X_FORWARDED_HOST = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

Basically, we have our website serving HTTPS through a load balancer, and due to some other infrastructure setup, our oAuth URL was being changed during the signature check.  This caused it to become invalid.  Adding the two lines above fix the whole issue.

Have a good weekend!

-Shea

Jun 22

Installing Django and MySQL on Mac OS X Lion

In the past 6 months I’ve had to setup Django and MySQL 4 times on our various Mac hardware at work.  I figured since I’ve seen to have it down pat now I should document it somewhere 🙂

Python should already be installed.

sudo easy_install pip

download MySQL dmg from mysql.com.  This is the version I’m using.

Mac OS X ver. 10.6 (x86, 64-bit), DMG Archive 5.5.25 111.9M
(mysql-5.5.25-osx10.6-x86_64.dmg) MD5: 081d3345daaae6f5f36a9f245855798b

sudo easy_install django

nano ~/.profile
paste this in:
export PATH=/usr/local/mysql/bin:$PATH
export DYLD_LIBRARY_PATH=”$DYLD_LIBRARY_PATH:/usr/local/mysql/lib/”

Download and install https://github.com/kennethreitz/osx-gcc-installer

sudo easy_install MySQL-python

You are ready to go 🙂