Webucator blogs about online learning and training.

Webucator Blog

We wanted to use Dreamweaver to do a global find and replace on many different types of files, including Python files. But Dreamweaver only will find files with certain extensions, and by default .py is not one of them. However, it’s easy to add extensions to Dreamweaver’s list. Read the rest of this entry »

As an exercise in our Introduction to Python course, we have students create all_true() and any_true() functions, which work just like the built-in all() and any() functions. I’m working on the self-paced version of the course and just created the video below explaining the solution. Read the rest of this entry »

When pasting paragraph text into Photoshop, the text often ends up on a single line extending beyond the width of the image, like this:

Text extends beyond horizontal borders. Read the rest of this entry »

You used to be able to change the default (i.e., Home) directory in IPython Notebook on Windows by setting the c.NotebookApp.notebook_dir property in ipython_notebook_config.py, but that doesn’t appear to be working anymore. The workaround I found was to create a batch file and pin it to the Windows taskbar. Here’s how: Read the rest of this entry »

If you have multiple Python installations on Windows and want to find them all, you can run the following command at the command prompt: Read the rest of this entry »

Adobe Flash has a long history. It was initially created as “FutureSplash Animator” by a company called FutureWave. This was in the days when it was stylish to name companies and products in CamelCase. Macromedia bought FutureSplash Animator in 1996 and renamed it Macromedia Flash 1.0. The software had been updated to Flash 8 when Adobe acquired Macromedia in 2005. Adobe brought Flash into the Creative Suite, which became Creative Cloud in 2013.

Now, what was once FutureSplash Animator, then Macromedia Flash 1-8, then Adobe Flash CS3, CS4, CS5, CS6, CC, is now Adobe Animate CC. As such, Webucator now offers Adobe Animate training.

If you’re interested in learning more about the change, see Adobe’s official announcement.

Be careful when repeatedly appending to a string in Python. Because strings are immutable, each time you change one, a new object is created. The code below is very intuitive:

s = ''
for i in range(r):
    s += str(i)

But it doesn’t perform too well.

A better approach is to create and append to a list and then convert it to a string using ''.join(l), like this: Read the rest of this entry »

When you do mathematical operations on two pandas Series (e.g., s1 + s2), the two Series align on their indexes, but when you compare the same two Series (e.g., s1 > s2), the two Series do not align. Read the rest of this entry »

I just upgraded to Anaconda 2.4, which includes Python 3.5. To update, just run the following code:

conda update conda
conda install anaconda=2.4 

Almost everything seems to have gone smoothly. The exception was that all the markdown headers in my IPython notebooks lost their formatting. They started showing up like this:
Broken Markdown Headers Read the rest of this entry »

  1. Take a Python list:
    ls = [1,2,3,4,5]
  2. Grab a slice:
    slice = ls[:2]
  3. Modify an element in the slice:
    slice[1] = 1000
  4. Check to see if your original list is changed

    [1, 2, 3, 4, 5]

  5. Result: The original list is unchanged.

Not so with NumPy arrays and pandas Series Read the rest of this entry »

© Webucator, Inc. All rights reserved. | Toll Free: 877-932-8228 | Outside the USA: 315-849-2724 | Fax: 315-849-2723