Danny Brown

A Blog on Code and Occasionally Other Things

CategoryPython

Prepping for the Python MTA Certification (Exam 98-381): Control Flow with Decisions and Loops

Posted on September 23, 2019February 4, 2020

Part 1 – Part 2 –  Part 3 – Part 4 – Part 5 – Part 6 – Part 7 I plan to get my Microsoft Technology Associate certificate in Python programming and figured I’d take my notes publicly as I prepare. Call it learning in public or review notes or ( more… )

Prepping for the Python MTA Certification (Exam 98-381): Data Types and Operators

Posted on September 22, 2019February 4, 2020

Part 1 – Part 2 – Part 3 –Part 4 – Part 5 – Part 6 – Part 7 I plan to get my Microsoft Technology Associate certificate in Python programming and figured I’d take my notes publicly as I prepare. Call it learning in public or review notes or whatever ( more… )

Filling Out Input Elements on a Web Form with One Method Call Using Python and Selenium

Posted on September 18, 2019September 25, 2019

I’m constantly needing to fill out forms when unit testing, so I need to make this process as simple as possible. Today I’ll cover a simple method that allows you to fill out all text inputs on a page just by sending a Python dictionary. This is an expansion on ( more… )

Writing an Element Clicker with Python and Selenium That Takes ID, CSS Selector, or XPath

Posted on September 13, 2019September 25, 2019

When unit testing using Python and Selenium, it’s usually easiest to click a button with an element’s ID, but I’ve found a more flexible solution that doesn’t require multiple different function calls to be best. To that end, here’s a method I’ve written that one can use to click a ( more… )

Inserting a Blank Row into an Excel Spreadsheet Using OpenPyXL

Posted on March 28, 2019September 25, 2019

Sometimes one’s work environment leaves one doing things in weird ways, like storing data in an Excel spreadsheet rather than a database. I have found myself in this situation before, and while it’s not exactly ideal, libraries like openpyxl make things a little bit more possible. In my situation, I knew that in ( more… )

Filtering Events by Date Range in a Django Site

Posted on January 31, 2019September 25, 2019

A site I write and maintain, TallyMusic.net, is designed to help people quickly and easily find local music events, but until recently, it lacked a date filter. This made it hard for users to plan for future events, as the user has to scroll through everything sooner before finding the ( more… )

Implementing Search Functionality into a Django Site

Posted on January 5, 2019September 25, 2019

I’ve decided to add search functionality to my website TallyMusic.net. The site tracks local and touring acts coming through Tallahassee, and I think it will be more useful for finding particular things by being able to search the site. urls.py import concerts.views as concert_views urlpatterns = [ … url(r’^search/$’, concert_views.search, ( more… )

Populating Merge Fields in a Word Document Using Python

Posted on December 26, 2018September 25, 2019

Last time, we covered adding merge fields to a Word document and using Python to get the names of all merge fields across multiple documents. If you need a refresher, check it out. Otherwise, let’s get to it. Setting Up We previously wrote a function that returns a list of all ( more… )

Collecting Merge Field Names from Multiple Word Documents Using Python

Posted on December 21, 2018September 25, 2019

I’m often needing to generate documents that have a lot of canned language. Rather than manually create these, I’ve been using Python to automate as much as possible. Creating Merge Fields in a Word Document The first thing you need is a document with merge fields. To add a merge ( more… )

Using Code Prettify and CSS to Highlight Code on WordPress

Posted on December 17, 2018September 25, 2019

I’ve moved my blog to a new host that lets me use the full features of WordPress. The first implementation of this is the Code Prettify plugin. Once you’ve installed the plugin to your WordPress site, it adds some quick and easy syntax highlighting to tagged code. In-line code looks like ( more… )

Posts navigation

Previous 1 2

Danny Brown

A Dev Blog with Some Tangents

About

Categories

  • code
    • APIs
    • Bash
    • CSS
    • Django
    • HTML
    • JavaScript
    • Python
    • S3
    • Selenium
    • Serverless
    • TypeScript
  • games
  • music
    • concert reviews
    • synthesizers
  • opinion
  • sports
  • tech
    • Bitbucket
    • Git
    • GitHub
    • MS Teams
    • WordPress
  • theater

Recent Posts

  • Open Pull Requests from the Terminal (One of My Favorite Dotfiles Scripts)
  • Dotfiles Script for a New TypeScript/Node Project
  • So I Told You to Go See a Broadway Play? Tips for Theater in New York
  • Build a Simple Microsoft Teams Bot Easily, No SDK Required
  • Creating a GUI for Conway’s Game of Life Using Pygame and Numpy

External Links

  • GitHub
  • LinkedIn

Recent Posts

  • Open Pull Requests from the Terminal (One of My Favorite Dotfiles Scripts)
  • Dotfiles Script for a New TypeScript/Node Project
  • So I Told You to Go See a Broadway Play? Tips for Theater in New York
  • Build a Simple Microsoft Teams Bot Easily, No SDK Required
  • Creating a GUI for Conway’s Game of Life Using Pygame and Numpy

Categories

  • code
    • APIs
    • Bash
    • CSS
    • Django
    • HTML
    • JavaScript
    • Python
    • S3
    • Selenium
    • Serverless
    • TypeScript
  • games
  • music
    • concert reviews
    • synthesizers
  • opinion
  • sports
  • tech
    • Bitbucket
    • Git
    • GitHub
    • MS Teams
    • WordPress
  • theater
Copyright © 2025. Danny Brown
Powered By WordPress and Meritorious