Updates from October, 2014 Toggle Comment Threads | Keyboard Shortcuts

  • Collin Anderson 8:12 am on October 31, 2014 Permalink | Reply  

    Mac OS X is finally dropping Python 2.5 support. This can only be good. Still waiting for Python 3.

    http://www.opensource.apple.com/source/python/python-89/

     
  • 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

    http://legacy.python.org/dev/peps/pep-0478/

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

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

    popup.html

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

    views.py

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

    urls.py

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

    html

    <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/themes/smoothness/jquery-ui.css">
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"></script>

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

    javascript

    $(function(){
      $('.js-popup-link').click(function(e){
        e.preventDefault()
        $('#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 https://gauntface.com/blog/2014/09/09/your-guide-to-ssl-on-nginx

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

    django1.7 

    My favorite features in django 1.7

    • migrations
    • FileField.upload_to is now optional
    • FILE_UPLOAD_DIRECTORY_PERMISSIONS (similar to FILE_UPLOAD_PERMISSIONS)
    • 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  

    http://www.nngroup.com/articles/law-of-bandwidth/

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

    https://developers.google.com/speed/libraries/devguide

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

    The current statue of Firefox and WebP: https://bugzilla.mozilla.org/show_bug.cgi?id=856375#c174

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

    http://alistapart.com/article/prototyping-your-workflow
     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel
Follow

Get every new post delivered to your Inbox.