If you're trying to searching or installing packages via pkg the your repository data might be broken. If pkg...
...user@example.com'.split(/([@\.])/) => ["user", "@", "example", ".", "com"] Or, you can use a capture group with look-behind to keep them with the resulting substrings: >> 'user@example.com'.split(/(?<=[@\.])/) => ["user@", "example.", "com"] An example use...
Browsers usually cache website content in order to provide the user with faster responses. Examples are returning to a website...
Pdfposter is a Python script that allows to convert large PDFs into a PDF with multiple pages that can be...
...bug is fixed, you forget to take out that debug information. There is a better way. By copying one of the attached initializers into config/initializers, your forms will always render...
Rubygems supports a 2FA for your account. Once enabled you need to provide your personal OTP code for every release...
You can throttle the network in your headless chrome via Selenium. This might be useful for debugging issues with flaky...
I really love to use the shortcuts CTRL+Alt+ Arrow Left and CTRL+Alt+ Arrow Right to navigate through the...
Table Of Contents Flexbox wrapping Spacing Long content Prevent an image from being stretched or compressed Lock scroll chaining
6.0.0 2021-06-02 Compatible changes geordi commit will continue even if one of the given projects is inaccessible. It...
There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...
We had the issue, that a VCR spec failed, after updating CarrierWave from version 0.11.0 to 1.3.2. In this version...
Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...
This error can be caused by the mysql2 gem under mysterious circumstances. You need to remove it with gem uninstall...
In rare cases you might need something like form_for (for using form builder methods on the resulting block element...
It sometimes happen that a database dump, that would want to insert into your development database, does not match the...
tl;dr: Upgrade the gem to at least 4.0.1 When you use rspec_rails in a version < 4 with Rails...
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...
By default, Cucumber uses mocha. This note shows to use RSpec stubs and mocks instead. Rspec 1 / Rails 2
Hopefully you are using Psych for everything, but if you have legacy Syck YAML files lying around you could be...
Free Bootstrap theme resembling Material Design. Bootswatch offers Sass and Less files, so the theme can easily be integrated into...
When you need to use diff in either some Ruby code or your Rails app, use the differ gem.
...BlackSwan competitor will appear and they will kick your ass. Their product will be better or more interesting or just better marketed than yours, and it also will be free...
...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