...browser. Rails has a second pipeline called webpacker, which we will cover later. Learn Read Everything You Should Know About the Rails Asset Pipeline Read How to make your application...

...assets cachable in Rails Read Managing vendor libraries with the Rails asset pipeline Understand What is "sprockets" and how does it relate to the asset pipeline? What is a "manifest...

file.write open('http://example.com/your.file', :http_basic_authentication => [your_username, your_password]).read

...line tool and client for uploading, retrieving and managing data in Amazon S3. S3cmd reads its configuration by default from ~/.s3cfg, which is created once you run s3cmd --configure.

...htpasswd -v htpass_test firstname.lastname You probably should not use the -b switch to read the password from the command line as the password will then be visible in your...

When you need the DOM node of a tag (e.g. to read extra attributes, or to modify the DOM near it), you can usually reference it via document.currentScript. However, document.currentScript is unsupported in ancient browsers, like Internet Explorer 11 or wkhtmltopdf's Webkit engine. If you are not running async scripts, you can easily polyfill it: document.scripts[document.scripts.length - 1] It works because document.scripts grows with each tag that was evaluated. That is also the reason why this solution will not work reliably for async code. Demo: https://codepen.io/foobear/pen/poRLxQm

...values for the current scope, similar to # ActiveRecord's `ids` method. For performance, we read id and type # directly from the database and create GIDs from them. # Note that we...

There are several gems that make it easy to read and process xlsx files. Parsing the entire file at once however is error-prone since each cell is transformed to...

...Creek since a badly formatted 12MB Sheet broke the 500MB Staging Memory limit when reading it as a whole. The implementation follows the Creek's documentation: document = Creek::Book.new('/path/to/file.xlsx...

In discussions many developers argue that REST APIs are easier for developers to read if they are completely documented. Even if GraphQL APIs are always completely documented in the...

...to access Paperclip storage objects (like this: File.read(file.to_file.path)) you can use Paperclip.io_adapters.for(file).read

Font Awesome 5 is a comprehensive solution for vector icons on your website. Originally, Font Awesome came as an icon...

PostgreSQL and ActiveRecord have a good support for storing dynamic attributes (hashes) in columns of type JSONB. But sometimes you...

...we use for JavaScript. It does for JavaScript roughly what Bundler does for Ruby. Read the first couple of sections of its official documentation. You should learn how to:

...for Webpacker, so you might not want to look at it too much. Instead, read and understand our own primer on Webpack(er). After reading, you should know

jetbrains.com

...in the context menu to open RubyMine's merge conflict tool. Left pane: local copy (read-only) Right pane: checked in version from repository (read-only) Central pane: base revision...

...actually more powerful. When setting cookies this way, remember to set the path=/ option. Reading cookies A result may look like this: hello=universe; foo=bar This means that there...

It is actually just a String without any magic powers. In order to read a cookie's value, you need to parse the string: document.cookie.match(/hello=([^;]+)/)[1] // => "universe"

tenderlovemaking.com

There is a bit more to all that, so I suggest you read the attached article by @tenderlove. I could confirm his observations on Ruby 2.2 and 2.3, too...

...can be misleading when combined with a location like "Munich". So you could just read TimeWithZone#zone, right? >> '2019-03-28 16:00'.in_time_zone('Berlin').zone => "CET"

ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG (Joint Photographic Experts Group JFIF format) Class: DirectClass Geometry: 5472x3648...

...of 28cm × 21cm and landscape orientation in the advanced options of FreePDF (not Adobe Reader, can be accessed from Reader's print dialog). Note that all your colors will be...

...fix this, choose "Let printer determine colors" in the advanced print options of Adobe Reader (not FreePDF). Note that reprinting the PDF will recompress all the images that were already...

...that returns whatever you need. You can reference other GTM variables with {{ }}. You can read cookies with a "1st Party Cookie" variable Triggers "Click - All Elements" triggers are handy when...

makandra dev

...Remove all old config.gem...

...lines in environment.rb and environments/*.rb Run bundle install. This reads Gemfile and builds Gemfile.lock with all dependencies etc. If you see "Missing the Rails...

...can be helpful in many cases, but the cassette yml is not easy to read. Follow these steps to make a recorded VCR request more human readable: Search the cassette...

makandra Curriculum

...completed since the previous meeting. During the review the mentor may ask you to read additional resources, redo a code exercises or give you an additional exercises for more practice...

How to fix it Since you can't really expect outside code (read: Gems) to not use $1 (and there is plenty, believe me) when calling gsub on...

...is a rather accessible XML API for interacting with Exchange. This allows you to read and send e-mails, create appointments, invite meeting attendees, track responses, manage to-do tasks...