Problem of the Day
Posted on March 5th, 2014 | Tags: Challenges, Problemotd
I seem to be in to launching things on my birthday. I bought the domain for this site on my birthday and I started work on a site called Problem of the Day which just officially launched today. If you're in to logic puzzles and short programming problems check it out http://www.problemotd.com/.
This site was the first time I needed to send out e-mails in mass quantities. I ended up going with Mandrill and couldn't be happier. If you're looking for an …
Happy New Year: 2014 Edition
Posted on January 1st, 2014 | Tags: First
2013 has come and gone and a new year is in it's place. It's been quite a while since I've updated this blog, though I have been trying to actively respond to comments and emails. I think this is also my first post not published on a Saturday. What a way to start 2014!
I have a few unfinished blog posts that I'd like to get out there soon along with a wealth of new post ideas sitting on my phone. Before I …
Using Meteor in a Shared Folder Environment
Posted on June 15th, 2013 | Tags: Meteor
I've been looking to do more Node.js/Meteor development lately, however, I ran in to a problem with the way Meteor handles it's app structure. By default meteor places the MongoDB database inside the application folder. I use a shared folder on a Windows host with an Ubuntu Virtualbox for my development environment. By having the shared folder as part of an NFS share MongoDB kind of flips out and doesn't run which causes meteor to error out.
The solution for this is …
Django 1.5 Invalid HTTP_HOST header
Posted on June 8th, 2013 | Tags: Django, Heroku
I recently updated all the components for my blog. Going to Django 1.5 caused an issue that I had never seen before so I wanted to share the quick way to fix:
SuspiciousOperation: Invalid HTTP_HOST header
If you see that error it is because your ALLOWED_HOSTS setting variable isn't set and you have debug set to False. For a site running on Heroku your ALLOWED_HOSTS should look something this:
ALLOWED_HOSTS = ["maxburstein.herokuapp.com", ".maxburstein.com"]
Having a . before my domain name will allow for …
Adding Markdown Back to Django
Posted on June 1st, 2013 | Tags: Django
If you head over to the comment section you'll notice that my comments section now supports Markdown. I also upgraded to Django 1.5 which deprecates the markup module. If you grab the Markdown module you can pretty much add support back for markdown in one line of code.
import markdown form.content = markdown.markdown(form.content, safe_mode='escape') form.save()
If you prefer to use a template filter rather than saving the markdown text you could do something like this:
from django import template import markdown register …
My name is Max Burstein and I am a graduate of the University of Central Florida and creator of Problem of the Day and Live Dota. I enjoy developing large, scalable web applications and I seek to change the world.