Archive for the ‘Python’ Category

In this tutorial I’ll help demystify what’s behind class methods, static methods, and regular instance methods. If you develop an intuitive understanding for their differences you’ll be able to write object-oriented Python that communicates its intent more clearly and will be easier to maintain in the long run.

Class, Static, and Instance Methods in Python

This is a guest blog post by Dan Bader​. Dan helps Python developers take their coding skills to the next level with Python tutorials, books, and online trainingRead the rest

You can’t always, easily, keep up with the latest and greatest of what is coming out in django, so since we have a new release candidate for django 1.11 here are a few of the highlights.

I would say there are some interesting things that are on the horizon for django, especially since this is the last 1.x release before we are on to 2.0.

Django 1.11 HighlightsRead the rest

Zato
3.0 will sport a completely rewritten AMQP subsystem and the changes are nothing short of exciting. Put simply, everything is faster, leaner and even more robust.

Synchronous channels

AMQP channels
are now synchronous which means that an AMQP broker will wait for a Zato service to confirm that the message was received or it was not. In earlier Zato versions, AMQP channels worked in an implicit always-acknowledge mode. Now each message taken off an AMQP queue can be explicitly … Read the rest

In this article we shall discuss a point to which we give little importance when we are beginning to programme our application and which, with little details, we can improve significantly. Security!

Nowadays, there are many methods through which a website may find itself in risk of being attacked, in the following link we can see the TOP 10 most common risks  according to OWASP. Next, we’ll give you a few pieces of advice about  security without mentioning those … Read the rest

We’ve got a special course released today, taught by Peter Bull: Machine Learning with the Experts: School Budgets!

Data science isn’t just for predicting ad-clicks, it’s also useful for social impact! This course is a case study from a machine learning competition on DrivenData. You’ll explore a problem related to school district budgeting. By building a model to automatically classify items in a school’s budget, it makes it easier and faster for schools to compare their spending with other schools. … Read the rest

In celebration of PyBites being around for 100 days we’re taking on the 100 Days of Code Challenge!… Read the rest

A couple of issues were resolved in PyCharm 2017.1, and Docker for Mac should now work out of the box. In this blog post we’ll show you how to set up a project with Docker Compose on a Mac. If you’re on Linux, the process is very similar. Unfortunately, we don’t support Docker Compose on Windows at this time. If you’re using Docker Compose on Windows, please let us know in the comments.

In this tutorial we’ll show how to … Read the rest

Google Summer of Code (GSoC) is a global program that offers post-secondary students an opportunity to be paid for contributing to an open source project over a three-month period. Since 2005, the Python Software Foundation (PSF) has served as an “umbrella organization” to a variety of Python-related projects, as well as sponsoring projects related to the development of the Python language.

April 3rd is the last date for student applications for GSoC 2017. You can view all the sub-orgs under
Read the rest

The Sound of Harmonics – Approximating instruments with Fourier Series

In a previous article about the Fourier Series calculation we have illustrated how different numbers of harmonics approximate artificial periodic functions. The present post applies the results to the analysis of instrument sounds, namely sounds of a saxophone.

When playing a stationary tone on a saxophone, we hear a constant sound. Hence, we can assume its waveform is periodic, since we could start to listen to the tone at

Read the rest
Worthy Read

Release notes are here https://docs.djangoproject.com/en/dev/releases/1.11/ .
release

9 DBs to choose from, 5 min setup, auto-scaling, Cloud hosted. Free for 30 Days.
sponsor

DartCMS is an opensource content management system based on the popular Django Framework.
cms

Boilerplate code for me (and hopefully others) to get started with using Django to create a bot server.
bot

Read the rest