• Happy New Year: 2014 Edition

    Posted on January 1st, 2014 | 0 Comments

    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 ...

    read more

  • Using Meteor in a Shared Folder Environment

    Posted on June 15th, 2013 | 0 Comments

    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 ...

    read more

  • Django 1.5 Invalid HTTP_HOST header

    Posted on June 8th, 2013 | 0 Comments

    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 ...

    read more

  • Adding Markdown Back to Django

    Posted on June 1st, 2013 | 0 Comments

    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')

    If you prefer to use a template filter rather than saving the markdown text you could do something like this:

    from ...

    read more

  • Introduction To Unit Testing In Python & Ruby

    Posted on May 25th, 2013 | 0 Comments

    One of the things I noticed that isn't really taught much is creating test suites for your programs. A lot of times you'll just have sample input and output to test your programs. This works great for one off applications but doesn't really carry over to on-going application development life cycle, especially when new developers are constantly being added to a project.

    You don't need any crazy library to do testing. In fact Python and Ruby come with their ...

    read more

<< Older Posts Newer Posts >>