Barnesian

Software Development and Audio Engineering

Barnesian ►
  • About
  • Categories
  • Archives
  • How to Fix Dell XPS 13 Touchscreen and Suspend Issues In Fedora
    ► November 11th, 2016

    After updating Fedora on my Dell XPS 13 Developer Edition, the suspend/resume stopped functioning. After resuming from being suspended, the laptop would immediately reboot. There had also been a long running issue where the touchscreen would not work after resuming from being suspended. The latter did not bother me that much, since I don’t feel the need to use the touchscreen all that often. The former, however, was going to be a huge issue. After a lot of digging and trying out all kinds of things, I stumbled upon something that finally worked

    ► Read More
  • Quick Tip: Routes for a Non-Resourceful Rails Controller
    ► August 18th, 2016
    screenshot of a rails controller

    Let’s say you have a few routes that are all related, but don’t really map to the usual resources. For example, a login/logout controller named SessionsController doesn’t really fit the usual resourceful route model

    ► Read More
  • SASS Antipattern: The Selector Bomb
    ► January 14th, 2016
    Sass logo with the keyword

    SASS is a really powerful tool, which sometimes means that one has to be careful. It can generate all kinds of insane CSS that is hard for debugging and hard for the browser to parse and apply. Now and then, you have to take a step back and ask yourself if you really need to use SASS for the task at hand.

    ► Read More
  • Quick Tip: Multiple Background Images in CSS
    ► December 19th, 2015
    screenshot of CSS styles using multiple background images

    Nearly every software developer who works with front-end code has probably used the CSS property [background-image](https://developer.mozilla.org/en-US/docs/Web/CSS/background-image). What some might not know is that background-image can take many images and set how those images are positioned. This could be particularly useful if you don’t have full control over the HTML that is being generated for whatever reason.

    ► Read More
  • Quick Tip: Parsing a Config String in Ruby
    ► March 19th, 2015
    screenshot of some Ruby code that parses a config string in an irb console

    Recently I came across the need to parse a bit of a config file, in this kind of format: "Category=filetype;…" Here is how one would do such a thing using split, inject, and map.

    ► Read More
Older Posts ↩ Newer Posts ↪

Subscribe

an RSS icon
RSS

Connect

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