Webucator Blog

|

ColdFusion Builder and Indentation Woes

We use Adobe ColdFusion Builder 2016 for our ColdFusion development. We have agreed on using spaces rather than tabs for indentation, but have run into an annoying little problem, which is either a bug or a very well hidden property. When adding an indentation level, CFBuilder always adds a tab. You can press Backspace and then Tab to change it to two spaces, but that’s annoying. Here’s the problem in pictures: Continue Reading »

|

Python Project for Job Application

You have an opening for a Python developer in your company. Your company is awesome, so you expect to get a lot of applications. You only want to interview developers who have some experience writing object-oriented Python code. You don’t need to test the breadth of their immediate knowledge as much as their ability to get a project done using all the resources available to them.

Here’s an idea for a project you can give the candidates to demonstrate their proficiency with Python. Continue Reading »

|

NYTimes.com, Please Stop Blocking Copy & Paste

Please share to see if we can get the NYTimes.com to change this.

Dear New York Times website,

Awhile back, you released a new website design that prevents readers like me from copying content from your articles. When I double-click on a word to highlight it, the page zooms. That’s not what I want or expect. If I need to zoom in on a web page, I can zoom. All modern browsers have built-in methods for changing the display size of page content.  Continue Reading »

|

When to use Static Methods in Python? Never

The short answer is in the title. Never use static methods in Python.

The initial intention of this post was to provide a simple and concrete use case for a static method in Python. I started with this 7-year conversation about static methods on StackOverflow, which seemed promising. But it doesn’t contain a single practical use case. And I think I know why. There are none.

Creating a static method is straightforward enough, but as Nathan Tregillus sort of asks in this post, the real question is why would you ever want to?

In answer to a similar question about when to use static methods in Java, Associate Prof not-just-yeti wrote this short-and-sweet explanation: Continue Reading »

|

Fixing a Blocked Port in XAMPP

You’re trying to use XAMPP to do PHP development. But when you start Apache, you get this error. The chances are that it’s due to a blocked port. In this video, I’ll show you how to fix that error by changing the port that Apache uses. Below the video, I provide text instructions. Continue Reading »

|

Checking your Sitemap for Broken Links with Python

We are about to launch a new website and, in doing so, we have restructured our URLs and used 301 redirects to point the old URL to the new URL. To make sure that we caught all the changes, we compiled a list of URLs on our old site using our sitemap and the Landing Page report from Google Analytics. We then used the Python’s request library to check all the URLs.

Using BeautifulSoup, you can easily check your own sitemap to make sure you don’t have any links pointing to missing pages. The code below shows how to do this using the NASA sitemap.
Continue Reading »