Cross-Site Request Forgery (CSRF) is an attack pattern for websites. A CSRF attack is usually relevant in a...
Option 1: JSON dump In config/webpack/environment.js you can get inspect environment which includes all webpack config options set for the...
As a web developer, you know Google Analytics (GA). Probably you've dropped the GA snippet into more than one...
For webpages to load fast it's recommended to optimize images. Ideally an image's file size should be as...
The 90s are calling: they want their tables back. Unfortunately, you need them all for laying out your HTML emails...
Ruby has this handy block shortcut map(&:to_i) for map { |x| x.to_i }. However, it is limited to argument...
Since late 2015, all major browsers (still excluding Firefox) support pointing device media queries. These can be used to distinguish...
RSpec let's you chain a matcher with .or. The expectation will then pass if at least one matcher matches...
Browsers' printing methods usually don't print background colors. In most cases this is the desired behavior, because you don...
In medium-sized to large Rails applications, asset compilation can take several minutes. In order to speed up deployment, asset...
There is a kinda secret, yet well supported CSS feature called currentColor. It's like a special CSS variable that...
CarrierWave comes with some RSpec matchers which will make testing more comfortable. Let's say you have an Uploader like...
Lets say we have a user with a contract whereas contract is a mounted carrierwave file. Now we want to...
When you need test images, instead of using services like lorempixel or placehold.it you may generate test images yourself.
Boot partitions from installations prior to the 16.04 era are terribly small. When you install updates and encounter errors due...
When you have string contents (e.g. a generated binary stream, or data from a remote source) that you want to...
If you want to make a screenshot of a website that works well in print or on a high-DPI...
This cucumber step is useful for testing an image (looking at the src of the image). Then(/^I should see...
TL;DR Use user.update!(remove_avatar: true) to delete attachments outside of forms. This will have the same behavior as...
To find and replace (CTRL + H) empty cells in Libre Office Calc you can use a regular expressions (also called...
wrap the text with a span use line-height for the spacing between lines ("margin")
HTTPie consists of a single http command designed for painless debugging and interaction with HTTP servers, RESTful APIs, and web...
In most projects I know, Cucumber test suite speed is not an issue. Of course, running 350 features takes its...
If your application exports CSV, be advised that Excel and other spreadsheet applications treat certain cells (those starting with =, +, - or...