Posts

  • Intro to Using Python Type Hints

    Type hinting was added to the Python standard library starting in version 3.5. Python, being a dynamically typed language, does not enforce data types. However, when argument types and return types for functions have type hints implemented, type hints can provide the following benefits: Reviewing Old Code Most often, developers...

    Posted in

  • Breakpoints in Chrome Developer Tools

    Using Breakpoints in Chrome Developer Tools Included: Conditional breakpoints Exception breakpoints Scope pane Watch expressions

    Posted in

  • JavaScript Console and Debugging in Chrome Developer Tools

    How to use the JavaScript Console in Chrome Developer Tools. Included are executing JavaScript, writing logs, and debugging.

    Posted in

  • Box Model Widget in Chrome Developer Tools

    This video demo will cover the box model widget in Chrome Developer Tools. I will, very briefly, go over the box model then how to use the widget to edit CSS.

    Posted in

  • Picking a Color from a Webpage with Chrome Developer Tools

    Picking a color from a webpage is simple. There’s no need to install a Chrome Extension. Simply, open the Elements tab in Chrome Developer Tools. Open Developer Tools Command+Option+I (Mac) or Control+Shift+I (Windows) In the styles tab, select any CSS selector that has a color property filter using “color” as...

    Posted in

  • Locate Command: Find Filenames Quickly

    The locate command is a handy tool that enables you to find files quickly. Installing on Ubuntu sudo apt-get install mlocate -y sudo updatedb Installing on MacOS sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist sudo /usr/libexec/locate.updatedb

    Posted in

  • Elements Tab in Chrome Developer Tools

    A demo of how to use the Elements tab in Chrome Developer Tools. This is the first video of a series on Chrome Developer Tools. This video will focus in the Elements tab. Mainly to view elements, edit CSS, and work with units of measure.

    Posted in

  • Linux File System Hierarchy for Web Developers

    The Filesystem Hierarchy Standard (FHS) is maintained by the Linux Foundation to organize the various components of the file system. This will not be a comprehensive post, but rather, will provide just enough info to understand the basic structure and directories for most web servers. A manpage is available for...

    Posted in

  • Checking for Broken Links with Linkchecker

    Linkchecker is a command-line tool to check HTML documents and websites for broken links. Ubuntu Installation sudo apt-get install linkchecker MacOS Installation see also: http://www.cantoni.org/2017/11/16/running-linkchecker-mac git clone https://github.com/linkcheck/linkchecker.git virtualenv venv source venv/bin/activate python setup.py build python setup.py install

    Posted in

  • Avoiding Mutable Default Arguments in Python

    See also: The Hitchhiker’s Guide to Python https://docs.python-guide.org/writing/gotchas/ IDE’s like PyCharm will complain when this is attempted, in which you’ll see messages like the following: Default argument value is mutable... Inspection info: This inspection detects when a mutable value as list or dictionary is detected in a default value for...

    Posted in

subscribe via RSS