github.com

These warnings are printed when the etc Gem is installed, while etc is also included in Ruby. Fix with:

This is super stupid: In the Thunar file manager, select the file Go to File / Properties / Open With (WTF!) Select the preferred application from the list and hit "Set default...

...This setting will apply to all files with that extension...

In your ~/.gitconfig: [core] editor=nano

...the code below to check whether the browser can make connections to the current site: await isOnline() // resolves to true or false The code The isOnline() function below checks if...

...you can make real requests by re-fetching your site's favicon. If the favicon cannot be downloaded within 6 seconds, it considers your connection to be offline. async function...

...s calc(100 - l)); Here is what happens: from currentColor tells hsl() to start with the value of currentColor. calc(h + 180) rotates the color hue by 180 degrees, i.e...

...to the opposite of the color wheel. s keeps saturation unchanged. calc(100 - l) inverts lightness. For example, 0% becomes 100%, and 100% becomes 0%. Example usage .demo { --inverted-color...

...you want to automatically delete old container images from your Elastic Container Registry, the solution is a quite simple ECR Lifecycle Rule that deletes images e.g. 7 days after they...

...is a floating tag always associated with the image currently deployed to production, the situation suddenly is not so simple any more. ECR does not provide a keep action in...

...of different file types including: Ruby (business logic) HTML fragments (layouts and views) CSS/Sass/SCSS (styles) JavaScript (client-side behavior) Static media (images, fonts, videos) Except for the Ruby part, all...

...to make your application assets cachable in Rails — our card; fingerprinting and cache headers 📄 JavaScript start-up optimization: network — why bundle size and count matter 📄 yarn 1 documentation — the package...

...implementation changes. The information below is validated for the current list of browsers we support. By default your html and body elements are only as high as the actual page...

...html and body elements will only be around 40 pixels high, regardless of the size of your browser window. You might be surprised by this, since setting a background on...

...can explain why we create test data with factories instead of fixtures: each test starts empty and creates only what it needs. You can define factories with sensible defaults, using...

...gems like FactoryBot, and use them in specs with overrides. You can define factories for associated records, and avoid creating duplicates where a record should be reused.

Settings -> Editor -> General -> Smart Keys -> Unindent -> To nearest indent position RubyMine 7.0: Settings -> Editor -> General -> Smart Keys -> Backspace smart indent -> uncheck

makandra Curriculum

...programming language we use on the backend. This lesson takes you from your first script to classes, blocks and custom errors — the working vocabulary for everything that follows. Important

...on this lesson in teacher mode. Learning goals You can write and run a small Ruby program that reads input (e.g. arguments or a file) and prints output.

makandra Curriculum

Migrations change your database schema in a controlled, repeatable way. This lesson covers how migrations work, how to write complex ones, and how to deal with existing data. Important

...in advisor mode. Learning goals You can explain what migrations are for, and why schema changes go through migrations instead of manual changes on a server. You can write migrations...

With ActiveSupport you can say: class Robot def self.likes_humans? 'Nope.' end delegate :likes_humans?, to: :class end Robot.likes_humans? # => 'Nope.' Robot.new.likes_humans?

...where they happened. Understanding this lets you handle events for many elements with a single listener, including elements that don't exist yet. Important Work on this lesson in advisor...

...how a DOM event travels through the tree — capturing, target, bubbling — and which listeners see it in which order. You can explain the difference between event.target and event.currentTarget.

rubylearning.com

This article will show you how to use throw and catch. It's a nice tool to break out of multiple loops when a result is obtained.

...card Ruby: A small summary of what return, break and next means for blocks...

brandcolors.net

brandcolors.net provides you with the colors of the world's biggest brands, easily searchable...

doubleyourfreelancing.com

How you can unknowingly screw your client's business when all you think about is closing the next user story...

robots.thoughtbot.com

Rails 4.0 introduced a helpful new method for ActiveRecord queries: where.not. It can make clunky queries easier to read.

igvita.com

About Chrome's network stack and optimizations to load web pages faster...

makandra dev
bitbucket.org

Makes a robust determination of a user's timezone through Javascript.

martinciu.com

How to make class_attribute behave like class_inheritable_attribte which no longer exists in Rails.

0xfe.blogspot.com

Chrome now supports desktop notifications using WebKit's webkitNotifications API. This means you can create popup bubbles from Javascript...

superuser.com

Ubuntu natty introduced new "invisible" scrollbars for GTK programs such as gEdit or Nautilus. If you do not like them: sudo apt-get purge liboverlay-scrollbar-* In order to have...

github.com

File upload solution that supports form roundtrips when a validation fails...