Ship your thing! Mechanical connections part 1.

Disregarding mechanical connections will ruin your projects. Proper use of mechanical connections will level up your projects tremendously. Often the difference between an eventual scrap heap and an heirloom are the mechanical connections and components. Many of us tinkerers ignore them completely, so I’m going to give a crash course.

At the end of this series, you’ll have an understanding of some of the concepts involved in designing both small scale pieces and installation projects, by way of two examples. The first is a contrived project. We’re going to make a booby trap. Step in the box ...


Looking for Gigs

I’ve given notice to Nonchalance of my departure as Director of Technology. You’re seeing this because I have to be a little self-promotional to get my next gig.

I am seeking contract gigs (2 weeks to 3 months probably part or full time)

Things I can do for you:

  • Line of business applications
    • Intranets
    • Integrations with third party software
    • eCommerce
    • Industrial Automation
    • Systems design to support operational efficiency
  • Application and Web development
  • Technical Architecture, Writing, Documentation
  • Embedded Hardware and Software
  • Rapid Prototyping (Physical or Digital products)
  • API Design
  • Help Determine engineering hiring needs and job descriptions

My specialties ...


Django Migration "gotcha"

The Model Class used by SomeModel = apps.get_model('some_app', 'SomeModel') is not the model class you wrote.

Consider this example.

    quantity = models.IntegerField()

    text = models.TextField()
    created = models.DateTimeField(auto_now_add=True)
    inventory = models.ForeignKey(Inventory, related_name="logs")

    def __unicode__(self):
        return self.text

We want to cache the last logentry as a field on Inventory. Don't ask why, we just do.

We'll change the model like this:

    quantity = models.IntegerField()
    last_log_entry = models.TextField()

    text = models.TextField()
    created = models.DateTimeField(auto_now_add=True)
    inventory = models.ForeignKey(Inventory, related_name ...


Dealing with Django form data for beginners.

I have a continual interest in finding the rough edges of learning Django. Some of the points of form and request handling have been coming up for me recently. What follows is an attempt at some explanation of the difference between request.POST or request.GET and form.cleaned_data of a valid Django Form.

There are two different ways to get the info that you're looking for.

request.POST[somekey] Where somekey is a string representing the associated html <input name="somekey" />.

There is also forms.cleaned_data[somekey] where somekey is the name of the attribute on the ...


Issac Kelly