The attached post shows some alternative ways to define Strings in Ruby using the percent notation. This can be useful...
By default, Cucumber uses mocha. This note shows to use RSpec stubs and mocks instead. Rspec 1 / Rails 2
If you are using Coffeescript, it is likely to be the culprit. Since Coffeescript always returns the value of...
When connecting to multiple (i.e. > 4) servers to dive into logfiles or do security updates, terminator is what you want...
Passenger gives you the possibility to define in which environment your app should be started. This has to be added...
...filters to what is visible through an element. touch-action (IE11+): Limiting default touch behavior (like scrolling) background-blend-mode (Edge 79+): Mixing background color and image Scroll snapping (Edge...
...continue a scroll movement until it reaches the edge of a child element. overscroll-behavior (no Safari): Prevent scroll chaining
When you need to use diff in either some Ruby code or your Rails app, use the differ gem.
If you're trying to searching or installing packages via pkg the your repository data might be broken. If pkg...
Rails ships with two separate build pipelines: Sprockets ("asset pipeline") and Webpacker. Webpacker has many more moving parts, but allows...
Pdfposter is a Python script that allows to convert large PDFs into a PDF with multiple pages that can be...
S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3. S3cmd reads...
Ever wondered how you can create a simple table output in bash? You can use the tool column for creating...
...them as arrays when you are working with arrays. E.g. bad: WHERE topics @> 'value', better: WHERE topics @> '{value}' Check the PostgreSQL documentation on Array Functions and Operators for more information...
Generate a password htpasswd -Bn firstname.lastname This will ask you for a password and use bcrypt (-B, more secure) and...
Rails supports alert and notice as default flash types. This allows you to use these keys as options in e.g...
A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601...
This error can be caused by the mysql2 gem under mysterious circumstances. You need to remove it with gem uninstall...
Getting the whole bucket size aws s3 ls s3://$BUCKETNAME/ --recursive --human-readable --summarize | tail -n2 Tail is used because...
If a model inherits from others or uses many concerns / traits, it might be hard to see in the code...
If your git index for some reason becomes invalid, no need to worry. Your index is corrupt when you see this error running usual git commands like git pull, git...
There are several gems that make it easy to read and process xlsx files. Parsing the entire file at once...
If you ever wondered why a constant wasn't defined or wasn't available where you expected it to be...
Hopefully you are using Psych for everything, but if you have legacy Syck YAML files lying around you could be...
...and compare it to the decrypted hash to see if there is a match. Benefits of this are If an attacker steals your database, they can't decrypt any of...
...easier to see if you have anomalous calls to KMS. There is a huge benefit here in that it is impossible to do bulk decryption without a giant audit trail...