When you need to use diff in either some Ruby code or your Rails app, use the differ gem.
In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...
Rails ships with two separate build pipelines: Sprockets ("asset pipeline") and Webpacker. Webpacker has many more moving parts, but allows...
S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3. S3cmd reads...
My front audio output would not work even though the front mic input did fine. The Pulse Audio mixer (= Ubuntu...
while true; do i8kfan - 2; sleep 0.2; done There should be a better solution and it will be posted as soon as it's found...
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...
...announcement makes clear that royalties will continue not to be charged for such video beyond that time. Products and services other than Internet Broadcast AVC Video continue to be royalty...
...bearing...
Cards can now be flagged as "Repeating". Every Wednesday, some of these cards will be moved back to the top...
It claims to be even faster and brings a new plugin that polyfills object-fit and object-position. This allows...
This will stash all modifications that you did not git add: git stash -k Note that newly created (and non...
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...
...as be re-read for people who use screen readers. So how can we best author this into our mark-up...
There is a kinda secret, yet well supported CSS feature called currentColor. It's like a special CSS variable that...
A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601...
I found a nice script on crazylittlehacks and modified it slightly. Put the attachment to /usr/local/bin, chmod +x and run...
The attached post shows some alternative ways to define Strings in Ruby using the percent notation. This can be useful...
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 you are using Coffeescript, it is likely to be the culprit. Since Coffeescript always returns the value of...
There are several gems that make it easy to read and process xlsx files. Parsing the entire file at once...
When connecting to multiple (i.e. > 4) servers to dive into logfiles or do security updates, terminator is what you want...