There are many ways to optimize SVGs. Ideally, your build pipeline does that automatically for you (e.g. via postcss-svgo...
The article author also tested 6000+ production sites for load times. Apps became interactive in 8 seconds on desktop (using cable) and 16 seconds on mobile (Moto G4...
To check your apache2 config files for syntax errors run sudo apache2ctl configtest or shorter sudo apache2ctl -t
Usually, Cucumber feature files live in features/. When you group them in sub directories, make sure to add -r features...
Web fonts are great. They are also be really bad for front-end performance because they block rendering. You may...
This will reduce the filesize of foo and bar to 0 bytes: truncate -s0 foo bar If the files do...
If you are in the middle of a file and want to scroll, but don't want to move your...
After reading, you will know why and how runners.each(&:run) works. Here some tidbits: & can be quite confusing because it...
This might eventually be fixed by Rails itself.\ Right now this is the way to have the rails_xss plugin...
Removing duplication from the code is a seemingly easy task. In many cases it is pretty straight-forward – you look...
...install octodown Know that this will install at least 12 other gems. However, the beautiful output should be worth it. Usage octodown README.md
This works in modern RSpecs (RSpec >= 2.x) and Cucumbers: rspec spec/models/node_spec.rb:294:322 cucumber features/nodes.feature:543:563:579
It might be one of the following: You are looking at a manifest file (like application.css) which is always empty...
We love Markdown. We use it wherever we can for text formatting. In a web app, the obvious place for...
A technique to vastly reduce the number of join model records that need to be stored in the database.
If you’re testing the behavior of deprecated code in your Ruby project, the warning messages littered throughout your spec output is incredibly noisy. You could silence all warnings with...
...Präferenzen). There is the seemingly harmless setting for Ringer Device from Headset (German Klingeltonausgabe bei Kopfhörer). Choose one: "Headset" or "Speaker". Do not select both, otherwise the ringtone volume will...
Javascript library for drag'n'drop that seems to have more options than native HTML5 drag'n'drop.
Go to Settings Manager / Keyboard / Application Shortcuts Add a shortcut for the Print key that calls xfce4-screenshooter -f
Use Traim to build a RESTful API for your ActiveRecord models with very little code. Traim assumes your API resources...
Until May 2011 our gems have been created with Jeweler, which is a helper library to package code into a...
If you tried out Compiz on top of Xfce and found it to be a world of pain like me...
When you drag a file from a Nautilus window into a terminal window, the file's path will be pasted...
Give the table a style table-layout: fixed Give the cells in the first row a width The same width...