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...

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...

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

...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"

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...

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...

...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...

...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...

...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...

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...

Sometimes, you may want to open up a second database connection, to a read slave or another database. When doing that, you must make sure you don't overwrite an...

...other ActiveRecord classes. Instead, use a class to "proxy" your connection, like this: class ReadDatabaseConnection < ActiveRecord::Base def self.abstract_class? true # So it gets its own connection end end ReadDatabaseConnection.establish...

...having 100% loss rate does not necessarily mean that there is trouble. You should read about how traceroute works to get an idea how to interpret it...

...your Hash to and from JSON, and you can index JSON paths for fast reads. As an alternative, ActiveRecord::Store offers a way to store hashes in a single database...

...your images. Here is a quick summary of them, if you need more details read the docs. You can also use all command line options from RMagick directly if these...

white for jpeg). Side note about MiniMagick and RMagick from the Carrierwave README: MiniMagick is similar to RMagick but performs all the operations using the 'mogrify' command which...

...of the file hasn’t changed. Without a % sign, the number is to be read as a fraction, with a decimal point before it. I.e., -M5 becomes 0.5, and is...

This string array tag_list is magical in several ways: It is read from and written to a has_many association It can be manipulated in forms using...

...with its underlying association: class Note < ActiveRecord::Base include DoesListField[:topic_list] private def read_topic_list topics.collect(&:name) end def write_topic_list(list) topics.delete_all for name in...

...to lost or duplicate records. You should avoid them, or only use them to read records. Consider this: class User < ActiveRecord::Base end class Party < ActiveRecord::Base has_many :invitations...

...Firefox [v35.0.1] but not with Google Chrome [v40.0.2214.111 (64-bit)]. Even so I've read a lot of posts where people couldn't set cookies with any browser at all...

...the whole file to do so: # from the Gem's lib/gettext_activerecord/parser.rb: eval(open(file).read, TOPLEVEL_BINDING) This means that the script will be executed every time you run the...