CoreyMS

Development, Design, DIY, and more

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

Python: What is the difference between str() and repr()?

August 17, 2015 by Corey Schafer Leave a Comment

A common question that pops up when dealing with python is: What is the difference between __str__() and __repr__()? It may not be obvious right off the bat, so let’s take an in-depth look at this.

Filed Under: Development, Python Tagged With: Computer Science, Programming, Video

How Web Developers, Designers, Programmers, and Software Engineers can volunteer their skills and give back to the community

April 30, 2015 by Corey Schafer Leave a Comment

In this article, I wanted to talk about volunteering and different ways for Web Developers, Designers, Programmers, and Software Engineers to give back to their community using their skill-set.

There’s a great line in the book “Tuesdays with Morrie” when the main character was talking about giving back to your community. He talks about not giving back with money, but with your skill-set. Here’s the line from that book:

I don’t mean money. I mean your time… It’s not so hard. There’s a senior center that opened near here. Dozens of elderly people come there every day. If you’re a young man or young woman and you have a skill, you are asked to come and teach it. Say you know computers. You come there and teach them computers. You are very welcome there. And they are very grateful. This is how you start to get respect, by offering something that you have.

I couldn’t agree with this more. Sharing a skill you have not only helps others, but it will help you hone your own skills as well.

This got me thinking, what are different ways in which our tech community can volunteer their skills, give back, and have a positive impact on the world?

Read more…

Filed Under: Development Tagged With: Computer Science, Programming, Video, Volunteering

Git: Change DiffMerge Font-Size on Mac OSX

April 29, 2015 by Corey Schafer Leave a Comment

In a previous video, we learned how to use DiffMerge as a git difftool and git mergetool. As I was creating that video, I noticed a bug in the program that crashed DiffMerge when attempting to change the font-size. This bug has not yet been fixed by DiffMerge; however, there is a workaround.

All we need to do in open the preferences from the terminal and change the font-size manually.

Filed Under: Development Tagged With: Computer Science, Git, Mac, Mac Tip, OS X, Programming, Video

Git: Diff and Merge Tools

April 29, 2015 by Corey Schafer Leave a Comment

In this video, we will learn how to setup a git difftool and a git mergetool. These tools provide a nice GUI interface for viewing and modifying diffs and merges.

The tool we will be using in this tutorial is called DiffMerge:
https://sourcegear.com/diffmerge/

If you struggle reading or comparing diffs and merges within your terminal, then a good GUI tool can definitely make your life easier.

Filed Under: Development, Git Tagged With: Computer Science, Git, Programming, Video

An in-depth look at Python’s package management system, pip

April 16, 2015 by Corey Schafer Leave a Comment

In this video, we will take an in-depth look at Python’s package management system, pip. We’ll walk through how to install, uninstall, list, and upgrade packages. We will also dive into how we can output our dependencies and install a list of dependencies.

An in-depth knowledge of pip can be a great addition to your Python tool-belt.

Here is a look at some of the code used in this tutorial:

Install a package

pip install <package_name>

Uninstall a package

pip uninstall <package_name>

Output installed packages to a requirements file.

pip freeze > requirements.txt

Install all packages from a requirements file

pip install -r <name_of_requirements_file>

List installed packages

pip list

List installed packages that need updated

pip list --outdated

Upgrade a package

pip install -U <package_name>

Upgrade all packages (source)

pip freeze --local | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip install -U

Filed Under: Development, Python Tagged With: Command Line, Computer Science, pip, Programming, Terminal, Video

Python: virtualenv and why you should use virtual environments

April 14, 2015 by Corey Schafer Leave a Comment

In this video, we will be looking at virtualenv and why you should be using virtual environments in Python. Virtual Environments in Python allow us to keep project-specific dependencies in a separate place than our global site-packages. This is extremely useful when you have different versions of packages for different projects.

Here’s a brief walkthrough of some of the code from the video:

Install virtualenv

pip install virtualenv

Create a location for your environments (Optional)

mkdir ~/Environments
cd ~/Environments

Create a new virtual environment (called venv for this example)

virtualenv venv

Activate your new virtual environment

source venv/bin/activate

At this point you can work from inside of your new virtual environment and know that you are keeping your project-specific packages and dependencies separate.

When you are finished, you can deactivate your virtual environment

deactivate

If you no longer need your environment and would like to delete it, you can just remove the directory

rm -rf venv

Filed Under: Development, Python Tagged With: Command Line, Computer Science, Development Environment, Mac, Programming, Terminal, virtualenv

Sublime Text Quick Tip: “Go To Definition” Click Shortcut

April 5, 2015 by Corey Schafer Leave a Comment

In this Sublime Text Quick Tip, we’re going to see how we connect a mouse shortcut to the “Go To Definition” command.

If you have ever programmed in Eclipse, you have probably used this shortcut a lot. If you’re like me, I find myself missing this functionality in Sublime Text. Luckily it isn’t difficult to get this setup.

Filed Under: Development Tagged With: Computer Science, Development Environment, Programming, Video

Python: if __name__ == ‘__main__’

April 5, 2015 by Corey Schafer Leave a Comment

In this video, we will take a look at a common conditional statement in Python:
if __name__ == ‘__main__’:

This conditional is used to check whether a python module is being run directly or being imported.

Filed Under: Development, Python Tagged With: Computer Science, Programming, Video

JavaScript Arrays: Properties, Methods, and Manipulation

April 5, 2015 by Corey Schafer Leave a Comment

In this series, we will take an in-depth look at JavaScript Arrays, their properties, their methods, ways we can manipulate their values, and much more.

In part 1, we will go over: isArray(), length, indexOf(), lastIndexOf(), push(), pop(), unshift(), and shift()

Read more…

Filed Under: Development, JavaScript Tagged With: Computer Science, Programming, Video

Understanding Binary, Hexadecimal, Decimal (Base-10), and more

January 2, 2015 by Corey Schafer 1 Comment

An introduction to binary and hexadecimal numbers. In this video, we will learn how to better understand binary and hexadecimal numbers. First, we will go over the base-10 system that we use on a daily basis. Once we grasp how a base-10 system is calculated, it will be much easier for us to understand how binary, hexadecimal, base-8, or any other base-n number is calculated.

Filed Under: Development Tagged With: Computer Science, Programming, Video

  • « Previous Page
  • 1
  • …
  • 8
  • 9
  • 10

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