CoreyMS

Development, Design, DIY, and more

  • Contact
  • Portfolio
  • Development
    • Python
    • Git
    • Terminal
    • JavaScript
    • WordPress
  • Design
    • CSS
  • DIY
    • Woodworking
    • Home Improvement
  • Contributors
  • Support
  • Giveaway

5 Common Python Mistakes and How to Fix Them

April 22, 2019 by Corey Schafer Leave a Comment

In this Python Programming Tutorial, we will be going over some of the most common mistakes. I get a lot of questions from people every day, and I have seen a lot of people making these same mistakes in their code. So we will investigate each of these common mistakes and also look at the fixes for each other these as well. Here are the timestamps for each topic we will cover…
1) Indentation and Spaces – 0:45
2) Naming Conflicts – 4:12
3) Mutable Default Args – 10:05
4) Exhausting Iterators – 16:35
5) Importing with * – 22:13

Filed Under: Development, Python Tagged With: common errors, common mistakes, indentationerror, python gotchas

How I Setup a New Development Machine – Using Scripts to Automate Installs and Save Time

April 15, 2019 by Corey Schafer Leave a Comment

In this video, I’ll be showing how I set up a new development machine. I recently got a new MacBook and wanted to show how I use scripts to automate a lot of this process. It used to take me a lot of time to install all of my software and get everything set up the way I like it. Now I use these automated scripts to do this in minutes. Let’s get started…

Filed Under: Development Tagged With: dev machine, Development Environment, development machine, Mac, macbook, macbook pro

How to Write Python Scripts to Analyze JSON APIs and Sort Results

April 9, 2019 by Corey Schafer Leave a Comment

In this Python Programming Tutorial, we will be learning how to grab data from a JSON API, parse out the information we want, and then sort the data using a custom key. The API we will be using is a JSON API for Homebrew Packages and we will be sorting the packages by their popularity. We cover a lot of topics in this tutorial. We will be using the Requests Library, converting to/from JSON, reading and writing to files, writing our own sorting function, and more. Let’s get started…

Filed Under: Development, Python Tagged With: API, brew, data, Data Science, homebrew, JSON, Sorting

Homebrew Tutorial: Simplify Software Installation on Mac Using This Package Manager

April 9, 2019 by Corey Schafer Leave a Comment

In this video, we’ll be learning how to use the Homebrew Package Manager on MacOS. Brew allows us to easily install command-line tools with a simple command. We can also install native applications for Mac using Brew Cask. I often use these commands in scripts to install a lot of new software quickly and easily on new machines. Let’s get started…

Filed Under: Development, Terminal Tagged With: brew, homebrew, Mac, macos, package manager

Python Tutorial: VENV (Windows) – How to Use Virtual Environments with the Built-In venv Module

April 6, 2019 by Corey Schafer Leave a Comment

In this Python Programming Tutorial, we will be learning how to use virtual environments on the Windows operating systems with the built-in venv module. We will learn how to create them, activate them, remove them, and much more. Let’s get started…

Filed Under: Development, Python Tagged With: venv, virtual environment, virtualenv

Python Tutorial: VENV (Mac & Linux) – How to Use Virtual Environments with the Built-In venv Module

April 6, 2019 by Corey Schafer Leave a Comment

In this Python Programming Tutorial, we will be learning how to use virtual environments on the Mac and Linux operating systems with the built-in venv module. We will learn how to create them, activate them, remove them, and much more. Let’s get started…

Filed Under: Development, Python Tagged With: venv, virtual environment, virtualenv

10 Python Tips and Tricks For Writing Better Code

March 25, 2019 by Corey Schafer Leave a Comment

In this Python Programming video, we will be going over 10 tips and tricks for writing Pythonic code. Here are the timestamps for each topic we will cover…
1) Ternary Conditionals – 0:34
2) Underscore Placeholders – 2:13
3) Context Managers – 4:25
4) Enumerate – 6:50
5) Zip – 8:52
6) Unpacking – 13:02
7) Setattr/Getattr – 19:08
8) GetPass – 26:24
9) Python dash m – 29:18
10) Help/Dir – 33:17

Filed Under: Development, Python Tagged With: context manager, dir function, enumerate, getattr, getpass, help function, setattr, ternary operator, tips and tricks, underscores, unpacking, zip

How to Send Emails Using Python – Plain Text, Adding Attachments, HTML Emails, and More

March 18, 2019 by Corey Schafer Leave a Comment

In this Python Programming Tutorial, we will be learning how to send emails. We’ll start with simple plain text emails and then learn how to construct more advanced messages. We will learn how to attach images, PDFs, create HTML messages, and more. Let’s get started…

Filed Under: Development, Python Tagged With: email, gmail, smtp, smtplib

Python Tutorial: Web Scraping with Requests-HTML

March 11, 2019 by Corey Schafer Leave a Comment

In this Python Programming Tutorial, we will be learning how to scrape websites using the Requests-HTML library. Requests-HTML is an excellent tool for parsing HTML code and grabbing exactly the information you need. So whether you’re pulling down headlines from news sites, scores from sports websites, or prices from an online store… Requests-HTML and Python will help you get this done quickly and easily. Let’s get started…

Filed Under: Development, Python Tagged With: requests, requests-html, web scraping

Python Tutorial: Write a Script to Monitor a Website, Send Alert Emails, and Reboot Servers

March 4, 2019 by Corey Schafer Leave a Comment

In this Python Programming Tutorial, we’re going to be looking at a real-world example of writing a script to monitor a website. If the website doesn’t return a successful response for any reason then we will send an email and reboot the web server. Let’s get started…

Filed Under: Development, Python Tagged With: email, Linode, monitor, requests

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • …
  • 17
  • Next Page »

Main Contributor

  • Andre Nevares

Top Contributors (17)

  • Andre Nevares
  • Cyril Hediger
  • Abhilash Rajan
  • Hien Nguyen
  • Alan Hawse – iotexpert.com
  • Just a Guy
  • Alex Canady
  • Sergey Trubin
  • Justin Presley
  • Sirake
  • chris
  • Jerome Massey
  • Robert Butler
  • Jonathan Llovet
  • David Myers
  • Karthik
  • Michael Zoitas

Thank You! If you would like to have your name listed as a contributor and support the website, you can do so through my Patreon Page. I am extremely grateful for any support.

Search CoreyMS.com

Subscribe to Future Posts

Recommended Books

Podcasts I Listen To

Tech Related:
Talk Python To Me
Shoptalk Show
Software Engineering Radio
HanselMinutes
CodePen Radio

Non-Tech Related:
Dan Carlin's Hardcore History
Bill Burr's Monday Morning Podcast
Waking Up with Sam Harris
StarTalk Radio
Talk Nerdy with Cara Santa Maria

© 2023 · CoreyMS · Corey Schafer