Orca is a Linux screen reader. Since it is part of the GNOME project it should come preinstalled with Ubuntu installations. Getting started To turn on the screen reader you...
...can either go to Settings > Accessibility and then activate Screen Reader in the "Seeing" section or you can simply type orca in your terminal. Alternatively you can use the default...
PostgreSQL offers a really handy field type: json. You can store any JSON there, in any structure. While its flexibility...
To read the current breakpoint tier in JavaScript, employ this CSS: :root { --current-breakpoint-tier: xs; @media (min-width: $screen-sm-min) { --current-breakpoint-tier: sm; } @media (min-width: $screen...
...T09:23:10.896146 #23308] ERROR -- : app error: "incompatible marshal file format (can't be read)\n\tformat version 4.8 required; 32.32 given" (TypeError) E, [2015-07-16T09...
Adobe no longer supports their PDF reader on Linux and the official page does not offer it for download. \ However, some files may not display properly on Ubuntu's default...
...PDF reader Evince or PDF forms may not work as expected. Hence, you may still need to use it. Here is how to install the Adobe Reader (acroread) if you...
...fails with absurd error messages (lots of text or an error about the target being read-only), you are probably running on Guest Additions that no longer match your VirtualBox...
If you are connected with a network that forbids e-mail traffic but allows SSH, you can tunnel your e...
You can start vim with a read-only option. This prevents making accidentally changes in files you don't want to touch. view /file/to/open view is actually vim.
There is no build in functionally in jQuery and Prototype to extract params from a url. You can use this...
...due to additional overhead and the potential for shell injections. Stdin If the command reads from stdin and you want to feed it some data, you can use Open3.capture3('/some/binary...
...stdin_data: 'this is read from stdin') ENV variables To pass additional ENV variables to the command, pass them as a hash in the first argument: Open3.capture3({'VAR' => 'value'}, '/some/binary...
item1.innerText = 'item 1' list.appendChild(item1) let item2 = document.createElement('li') list.appendChild(item2) For a reader it is hard to follow which DOM structure is being created. Parsing a HTML string...
item 1 item 2 `) Because the effective HTML is visible in your test, reader will imediately recognize elements and how they relate to each other. Referencing created elements
Rails applications and ruby gems should have a README that gives the reader a quick overview of the project. Its size will vary as projects differ in complexity, but there...
...should always be some introductory prose for a developer to read when starting on it. Purpose That's already the main purpose of a project README: Give a new developer...
What are the benefits of more modular code? Code is written once but read often (by your future self and other developers who have to understand it in order...
...over several lines of code. bad: def my_function # prepare report data customer_data = read(:customer_data, {}) customer_recommendations = read(:substituted_customer_recommendations, '') report_data = customer_data.merge({customer_recommendations: customer_recommendations...
...be focused with the keyboard It cannot be pressed with the keyboard A screen reader will not announce it as a button ✔️ Good example To make the reset button focusable...
...that usually receives the click event. Also set an [role=button] attribute so screen readers will announce it as a "button" when focused: Clear Search Now change your Unpoly compiler...
...namespaced to your already unique gem name, avoiding collisions and clarifying require statements to readers of your code. Example: require '$gem_name/ext/some_file'. Other files and directories in the gem only...
...how the gem author wishes contributions to the gem dist/ usually contains files rendered ready for "distribution", e.g. minified Javascript files src/ usually contains the raw "source" files, e.g. split...
...It works good for a small number of attributes, but becomes more difficult to read when using multiple attributes. Example: class User def initialize(salutation, first_name, last_name, street...
...gives you the benefit of default attribute accessors. But it makes it harder to read in case you need to add custom methods as block argument or modify the values...
...some incorrect assumptions. The MySQL innodb engine actually has four different modes for transactions: READ UNCOMMITTED READ COMMITTED REPEATABLE READ SERIALIZABLE READ UNCOMMITED gives you the least isolation between transactions...
...another is doing), and SERIALIZABLE the best (i.e. transactions are very well isolated). Conversely, READ UNCOMMITTED gives you the best performance, while SERIALIZABLE will be the slowest, due to a...
...those timeout errors together, regardless of which code path was used to trigger them. Read on to find how to customize this. Modifying issue grouping in Sentry's project settings...
...or more key:value conditions, followed by ->, followed by your custom fingerprint string. Read the docs for all details. Examples: message:"PG::ConnectionBad: " -> database-unavailable error.type:"ActiveRecord::ConnectionNotEstablished" -> database-unavailable...
...time objects to convert them to a user's current time zone. Configuration Examples Read on for examples on different configurations and what will happen and/or go wrong.
...t need time zone" use case, UTC timestamps in the database are harder to read for humans. >> Project.create! >> Project.connection.select_one('SELECT created_at FROM projects') => {"created_at...
line1 line2 line3 TEXT puts bar.inspect end foo => "line1\nline2\nline3\n" Read more: Unindent HEREDOCs in Ruby 2.3 Forms that work in older Rubies Older forms don...
line2 line3 TEXT puts bar.inspect end foo => " line1\n line2\n line3\n" Read more: Using heredoc for prettier Ruby code How to: Ruby heredoc without interpolation
...drawback of this pattern is that you need an unbounded number of queries to read from the tree. E.g. to select all descendants of Child 1 you would need to...
...maintain during writes. Adding a node or changing a node's parent might require reading and updating the entire tree. Because of the complexity of this pattern, Nested Set is...
...use that to prioritize your specs by calling bundle exec prioritized. Then it will read out the current modifications and the saved coverage data, prioritize the specs by that and...
...for that manner. Then this data structure is saved, such that it can be read out and used for prioritization. The matrix is saved as a binary, while the columns...
...below can also applied in those cases, but they tend to result in less readable code. Let's see how we can get that thing 232 times faster..
let isButtonActive = $button.is('.active') // Native let button = document.querySelector('button') let isButtonActive = button.matches('.active') Read and write attributes // jQuery let name = $element.attr('name') $element.attr('name', 'new-name') // Native
...element.getAttribute('name') element.setAttribute('name', 'new-name')
...but you probably want to work with properties. Read and write properties (!) // jQuery let value = $input.prop('value') $element.prop('value', 'foo@bar.com') // Native let name = input.name...