Barnesian

Software Development and Audio Engineering

Barnesian ►
  • About
  • Categories
  • Archives
  • Getting The Root Path of an Electron Application
    ► June 18th, 2020
    Some code resolving the root path of an Electron application

    If you wound up here somehow, you are no doubt confused about how to get the root directory of an Electron app. It’s surprisingly complicated depending on the environmental setup. The path works a little differently in development mode than it does in a fully packaged application in an asar archive. If you’re having trouble, make sure you test both scenarios.

    ► Read More
  • Fastmail Settings for WP Mail SMTP
    ► March 25th, 2020
    screenshot of admin panel of SMTP plugin for WordPress

    After having migrated my mail provider from Outlook.com to Fastmail I needed to get the contact form up and running for WordPress. The Fastmail settings are plainly available and located over here https://www.fastmail.com/help/clients/defineimap.html.

    ► Read More
  • Deep Merging JavaScript Objects
    ► March 25th, 2020
    screenshot of code that deep merges JavaScript objects

    Deep merging objects in JavaScript is a bit tricky. Here’s one solution; there are many many others. While this was fun to write, you’ll probably want to go use the merge function in lodash instead. None the less here’s some code golf

    ► Read More
  • Perfect Footers
    ► February 15th, 2017
    screenshot of a simple footer on a website

    Styling footers proves to be a bit tricky. On a site where there’s a lot of content, this is not an issue. However, if you want to have the page be full height and scroll when the content overflows, there is some subtlety to styling the footer. It’s pretty easy to accidentally have the footer float in the middle of the page when the content overflows and the page scrolls. It’s also pretty easy to have the content hide underneath the footer.

    ► Read More
  • Quick Tip: Download Offline Documentation with wget
    ► December 17th, 2016

    Here’s a quick way to download developer documentation for any language or framework that has a public website. Maybe you’re about to get on a plane or train that doesn’t have WiFi and you want to use that dead time to actually get some development work done.

    ► Read More
Older Posts ↩

Subscribe

an RSS icon
RSS

Connect

  • email icon
    Email
  • email icon
    GitHub
© 2011 - 2026 Chris Barnes