Recent Updates Toggle Comment Threads | Keyboard Shortcuts

  • Collin Anderson 8:15 am on September 29, 2014 Permalink | Reply  

    Python 3.5 is set to be out September 15th, according to the recent release schedule for Python 3.5

  • Collin Anderson 5:18 pm on September 24, 2014 Permalink | Reply  

    Open a jQuery UI dialog box popup with content from a Django template. 


    <p>Hello, {{ user }}</p>

    def popup(request):
        return render(request, 'popup.html')

    from . import views
    urlpatterns = [
        url(r'^popup/$', views.popup)


    <link rel="stylesheet" href="//">
    <script src="//"></script>
    <script src="//"></script>

    <a href="/popup/" class="js-popup-link">bring up a popup</a>
    <div id="popup"></div>


        $('#popup').dialog({modal: true}).dialog('open').load(this.href)
  • Collin Anderson 5:24 pm on September 12, 2014 Permalink | Reply  

    excellent overview of how to set up https

  • Collin Anderson 11:53 am on September 4, 2014 Permalink | Reply  


    My favorite features in django 1.7

    • migrations
    • FileField.upload_to is now optional
    • send_mail() now accepts an html_message parameter for sending a multipart text/plain and text/html email.
    • Field.choices now allows you to customize the “empty choice” label by including a tuple with an empty string or None for the key and the custom label as the value.
    • It’s now possible to remove form fields in a subclass of a parent
    • admin changelist now table has field-<field_name> css classes on cells.
    • update_or_create
    • formsets now have a min_num and validate_min
    • @admin.register syntax on classes, no need for admin.autodiscover()
    • QuerySets can now be easily used as managers
    • now possible to customize the behavior of prefetch_related.
    • form.clean() doesn’t need to return self.cleaned_data
    • admin “the object has been saved” messages have been changed from yellow to green
    • Runservers will restart faster if pyinotify is installed
  • Collin Anderson 2:32 pm on August 29, 2014 Permalink | Reply  

    Atwood’s Law: any application that can be written in JavaScript, will eventually be written in JavaScript.

  • Collin Anderson 8:22 am on August 14, 2014 Permalink | Reply

    “Users’ bandwidth grows by 50% per year (10% less than Moore’s Law). The new law fits data from 1983 to 2014.”

  • Collin Anderson 8:19 am on August 14, 2014 Permalink | Reply  

    Google just switched their recommended jQuery from version 1 to version 2.

  • Collin Anderson 6:13 pm on July 6, 2014 Permalink | Reply  

    The current statue of Firefox and WebP:

  • Collin Anderson 6:10 pm on June 27, 2014 Permalink | Reply  

    Programming (and especially programming for the web) boils down to reducing the number of “unknowns” on a project to a manageable number. One is fine, two is a stretch, and three is asking for trouble. … One of the recurring discussions we have at our studio is: “Should our designers learn markup and start doing some of this design in the browser?” We’ve heard a lot of persuasive arguments for it, but in the end, we decided that the main focus should be how to get our designs into the browser earlier in the process, instead of who should be doing that work.
  • Collin Anderson 3:30 pm on May 28, 2014 Permalink | Reply

    python instance attributes don’t overwrite class attributes 

    >>> class Test(object):
    … cache = {}
    … def yup(self):
    … self.cache = {}

    >>> t = Test()
    >>> t.cache[3] = 2
    >>> t.cache
    {3: 2}
    >>> Test.cache
    {3: 2}
    >>> t.yup()
    >>> t.cache
    >>> Test.cache
    {3: 2}

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc

Get every new post delivered to your Inbox.