-
How to Fix Dell XPS 13 Touchscreen and Suspend Issues In Fedora
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
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
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
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
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