Intro to Python Bootcamp – Session 5

Welcome to session 5 of our Introductory Python “Bootcamp,” our week-long blog series that explores the key concepts behind this popular and flexible programming language.

New to the bootcamp? Start with Session 1.

Open a Safari Flow trial account to access the Bootcamp books and videos.

Bootcamp header- Intro to Python Day 5

Welcome to the home stretch!

Over the past four sessions, you have learned the fundamental building blocks of Python. In Session five, you will synthesize what you have learned in order to solve different real-world problems. We will introduce ways of working with databases and effective debugging, and focus on exercises that apply all of the concepts taught in sessions 1-4.

Putting it all together

Start with these short videos.

From Python Guide for the Total Beginner LiveLessons

From Quickstart Python

Test your mettle

Now try your hand at these capstone exercises from Learn Python the Hard Way.

Screen Shot 2013-12-11 at 10.17.53 PM

Congrats! You have successfully completed the Safari Flow Introductory Python Bootcamp! Job well done!

We want to hear from you!

We’d love to hear your feedback about this bootcamp or other topics you’d like to learn. Tell us what you think in the comments below.

Intro to Python Bootcamp – Session 4

Welcome to session 4 of our Introductory Python “Bootcamp,” our week-long blog series that explores the key concepts behind this popular and flexible programming language.

New to the bootcamp? Start with Session 1.

Open a Safari Flow trial account to access the Bootcamp books and videos.

Bootcamp header- Intro to Python Day 4

Warm up

Before we dive into today’s new content, we are going to start by going deeper into classes and OOP, concepts introduced in Session 3.

Try your hand at these exercises from Learn Python the Hard Way.

Screen Shot 2013-12-11 at 10.17.53 PM

Now onto the new stuff – modules and documentation.

Jump in the deep end

Start with these short videos.

From Python Guide for the Total Beginner LiveLessons

From Quickstart Python

Let’s start typing

Next, check out three chapters from Python® Programming for the Absolute Beginner. Following along, you will build a trivia game, create a “Critter Caretaker” program, and enter the world of online gambling with your own Blackjack game.

Practice more of what you learned with these exercises from Learn Python the Hard Way. (Pro tip: it’s not really hard!)

Get inspired

Did you know that Safari Flow gets the official videos from all of the O’Reilly conferences? This means that if you missed Fred Wilson’s keynote at this year’s Velocity Conference or couldn’t make the definitive conference on data science, then you can watch each inspiring and informational talk while in your pajamas from your laptop. Each conference includes dozens of talks, from the inspirational to the highly tactical.

Too easy?

To go deeper in any of these topics, here are some great reference chapters, all taken from O’Reilly’s Learning Python, 5th Edition.

lrg

How are we doing?

We’d love to hear your feedback about this bootcamp or other topics you’d like to learn. Tell us what you think in the comments below.

Also, if you have friends who might want to learn Python and join the bootcamp, let them know! Follow us on Twitter and be sure to Like our new Facebook page.

Intro to Python Bootcamp – Session 3

Welcome to session 3 – the halfway point – of our Introductory Python “Bootcamp,” our week-long blog series that explores the key concepts behind this popular and flexible programming language.

Open a Safari Flow trial account to access the Bootcamp books and videos.

In Session 2, we continued working with variables, control flow, and data structures to build a few simple apps, include a game called “Guess my number.” We also talked about “How to create a culture of shipping product continuously” and asked “Do we have the tools we need to navigate the new world of data?”.

New to the bootcamp? Start with Session 1.

If you are new to Safari Flow, sign up today for a free 10-day trial and learn Python for free!

Ready to get started?

Bootcamp header- Intro to Python Day 3

In session 3, we are going introduce functions, classes, and object oriented programming (OOP), all cornerstones of Python.

Jump in the deep end

Start with these short videos.

From Python Guide for the Total Beginner LiveLessons

From Quickstart Python

Let’s start typing

Next, check out the following chapters from Python® Programming for the Absolute Beginner. Following along, you will build a word jumble, a game of hangman, and a tic-tac-toe application.

Practice more of what you learned with these exercises from Learn Python the Hard Way. (Pro tip: it’s not really hard!)

Get Inspired

Today, you’re learning Python. In a year from now you’re the CTO of your own startup. What do you need to know?

Operations 101, a five-video series developed by O’Reilly in partnership with Etsy, will give you a good introduction to tech operations. From troubleshooting outages to application level monitoring, this is a great primer on managing the technical operations of a growing company.

Too easy?

As you go through these exercises, you may realize that you need to go deeper in some topics. Here are some great reference chapters, all taken from O’Reilly’s Learning Python, 5th Edition.

lrg

That’s it for Session 3! Congrats you more than half way done!

Ready for Session 4?

How are we doing?

We’d love to hear your feedback about this bootcamp or other topics you’d like to learn. Tell us what you think in the comments below.

Also, if you have friends who might want to learn Python and join the bootcamp, let them know! Follow us on Twitter and be sure to Like our new Facebook page.

Intro to Python Bootcamp – Session 2

Welcome to session 2 of our Introductory Python “Bootcamp,” our week-long blog series that explores the key concepts behind this popular and flexible programming language.

Open a Safari Flow trial account to access the Bootcamp books and videos.

As a quick recap, in Session 1, we set up Python on your computer and covered a few key concepts like variables, control flow, and data structures. If you followed along with the exercises, you also would have designed a simple trivia program and started programming simple input/output applications. If you watched the inspirational talks, you also would have heard Tim O’Reilly reflect on “How I Failed” and listen to Kate Matsudaira explain “What *Do* You Do All Day?

If you are new to Safari Flow, sign up today for a free 10-day trial and learn Python for free!

Ready to get started?

Bootcamp header- Intro to Python Day 2

Session 2 builds on the concepts introduced in yesterday’s videos.

Let’s warm up with Chapter 3 from Python® Programming for the Absolute Beginner – Branching, While Loops, and Program Planning – where you will program a simple application called “Guess My Number.”

Follow up this exercise with a few more from Learn Python the Hard Way.

Get Inspired

Today’s contextual videos tackle the ideas of culture and data. Hiten Shah of KISSmetrics tackles “How to create a culture of shipping product continuously” and Elain Wherry of Meeby gives her thoughts on “Cracking the culture code.” Dave Campbell of Microsoft questions “Do we have the tools we need to navigate the new world of data?

Too easy?

As you go through these exercises, you may realize that you need to go deeper in some topics. Here are some great reference chapters, all taken from O’Reilly’s Learning Python, 5th Edition.

That’s it for day two! If you run into any problems, let us know in the comments below.

How are we doing?

We’d love to hear your feedback about this bootcamp or other topics you’d like to learn. Tell us what you think in the comments below.

Also, if you have friends who might want to learn Python and join the bootcamp, let them know! Follow us on Twitter and be sure to Like our new Facebook page.

Ready to learn Python?

Today kicks off our Introductory Python “Bootcamp.” In this week-long blog series, we’ll explore the key concepts behind this popular and flexible programming language in five sessions. You’ll learn this new skill from scratch using just the videos, chapters, and exercises in Safari Flow. Learning a new language can be intimidating; this five-day series is our way of getting you started.

Open a Safari Flow trial account to access the Bootcamp books and videos.

We will be publishing a new bootcamp session every day this week. By Friday, you will be able to build your own simple applications. If you are new to Safari Flow, sign up today for a free 10-day trial and learn Python for free.

This will be an intense week – but who said learning a new skill would be easy? While the bootcamp can be completed in a week, we understand that not everyone has the time to do it all at once. Take each session at your own speed. For some the bootcamp will take a week; for others, it could take a month. The important thing is that you are taking the first step towards learning a new skill.

Let’s get started.

Bootcamp header- Intro to Python Day 1

With session 1, we are going to start by setting up Python on your computer and introducing key concepts like variables, control flow, and data structures.

Jump in the deep end

Start with these short videos. If you follow along, you’ll be working with Python in minutes.

From Python Guide for the Total Beginner LiveLessons

From Quickstart Python

Next, check out chapter 2 from Python® Programming for the Absolute Beginner – Types, Variables, and Simple I/O.

Let’s start typing

To start applying what you learned, try your hand at these exercises from Learn Python the Hard Way. (Pro tip: it’s not really hard!)

Get inspired

Many people learn programming in order to start a new business or excel in their current role. For inspiration, watch Tim O’Reilly, Founder and CEO of O’Reilly Media, Inc. talk about “How I Failed” or hear Kate Matsudaira, Founder & CEO of Popforms ask, “What *Do* You Do All Day?” or hear Scott Chacon of Github describe “Leading from First Principles.”  These three talks were given at this year’s Cultivate conference and provide perspectives on tech leadership and strategy – context to consider as you develop new skills to master your craft or advance your career.

Too easy?

As you go through these exercises, you may realize that you need to go deeper in some topics. Here are some great reference chapters, all taken from O’Reilly’s Learning Python, 5th Edition.

That’s it for day one! If you run into any problems, let us know. Post your feedback in the comments below. 

Ready for Session 2?

How are we doing?

Do you love the “bootcamp” concept? Hate it? Already know Python but would love to use Safari Flow to learn another skill? Let us know which one! We want to hear from you. Tell us what you think in the comments below.

Also, if you have friends who might want to learn Python and join the bootcamp, let them know! Follow us on Twitter and be sure to Like our new Facebook page.

Safari Blog Week: Introductory Python “Bootcamp”

In the month of November, the Safari team enjoyed sharing our knowledge by posting for thirty days on our favorite topics in publishing and technology.

On Monday, we will be launching a new blog series:  a “bootcamp” on Introductory Python. This week-long blog series introduces the key concepts behind the popular and flexible programming language that we use to build our new products and services here at Safari. Each day, we will release a new lesson — complete with videos, chapters, and exercises all in Safari Flow. This is the perfect opportunity for you or someone you know to learn an entirely new skill from scratch. The bootcamp goes live Monday. Mark your calendar and we’ll see you here!

Simple Image Hashing With Python

Perceptual image hashing is a way of creating a fingerprint of an image based on its visual appearance. This fingerprint makes comparing similar images much easier. Algorithms like the one below are used for many purposes, most notably Google’s Image Match where you can provide an image and it will return a listing of images that are visually similar.

Continue reading

Django Select2 Fancy UI

When it comes to web development, there’s one thing almost as important as hard work: the appearance of hard work. While Django’s admin is very functional, it’s also pretty ugly. In this tutorial we’ll build a basic filtering UI and use Twitter’s Bootstrap and a select2 module to cure Django of its aesthetic curse, and look like we did something hard in the process.

Continue reading

Profiling Django via Middleware

For most developers working on a web application useful enough that people actually want to use it, a time comes when they need to start thinking more about how to make it faster. There are several good books (and videos) on how to go about this for web applications in general. There’s also pretty good advice for optimizing Python applications (like this, which covers some of the profiling tools I mention below). For getting performance data from a live site, you probably want to use something like New Relic, which can give you a lot of useful information with relatively little performance impact. But sometimes, you’ve already figured out that the code which serves a particular URL is slow, and you just want to optimize that (preferably in a local test server without needing to hook up a lot of external services to it, so you can quickly measure before and after performance data). Continue reading