...since end of 2015. It brings some pretty nice new features! Make sure to read the linked post with its many examples! Hash#fetch_values Similar to Hash#fetch, but...
...you need to use: -c will write cookies to a given file -b will read cookies from a given file Example The remote server sets a "foo" cookie to value...
...You may look at the file, or even modify it, as it's human-readable: $ cat /tmp/cookies # Netscape HTTP Cookie File # http://curl.haxx.se/docs/http-cookies.html # This file was generated by libcurl...
} }); Note that this could basically work for any element whose offset() you can read. Here, we just fetch the target by the element's href attribute.
...what it was in Ruby 1.8 -- this can be especially painful when external code (read: gems) uses const_defined? to look something up and gets different results on different Rubies...
-f forces the check, even if everything seems okay. -n is a "read only" check, where nothing is changed and every question is answered with "no".
...phone's native UI. See attached animation. There is some fineprint you need to read to make this work (see below). References Android: Increasing engagement with Web App install banners...
This is about converting Haml to ERB and not the other way round which you probably want! This process can...
...descendant_id, null: false t.integer :generations, null: false end This is enough to implement common read-operations like "get all descendants" with a single SELECT...
...association's inverse from being found automatically. Sources Why do I need :inverse_of? Read this card 4.1 Release Notes Original Pull Request
...a message body, call mail -s Test someone@example.com only; the mail application will then read your input from stdin. Finish your message by sending EOT with Ctrl-D -- if you...
return object.hasOwnProperty(property) ? object[property] : 'hello'; } }); When you set a key, you can read its value just like always. hash['foo'] = 23 hash['foo'] // => 23 But instead of returning...
Pagination Facebook has quite a powerful pagination, which unfortunately is not too obvious. Read more. Time-based pagination Parameter: until, since, limit, next, previous
Use this snippet by Achu from Ask Ubuntu: ping hostname.tld | while read pong; do echo "$(date): $pong"; done This gives you lines like: Wed Nov 4 10:32:31 CET...
...img[src*='#{filename_with_extension}']") end Then I should see the image "placeholder.png" Outline: Read more about how to test a uploaded file here, e.g. file downloads...
...settings, choose Network and switch the network adapter type to Bridged Restart the guest Read the guest's IP address from the output of ifconfig (Unix) or ipconfig (Windows)
...want to keep them, try another approach. The error message looks like this and reads "Der angegebene Ort ist kein Ordner." on German Ubuntus...
...Creating directory..." exec 'mkdir', 'new_directory' # the code here and below will never be read spawn – gives you a good level of control Takes the same parameters as exec and...
...and how it's different from Carrierwave, by the author himself, is a good read before deciding which way you'll go. Big Caveat: Refile only stores the original image...
...find options that have SQL fragments in :select or :joins, ActiveRecord will make that record read-only. This is a protective measure by Rails because such a record might have...
...don't correspond to actual table columns. You can override that precaution by appending :readonly => false to affected find options or scope options...
...RTeX opens a temporary file which has problematic permissions: Both group and world can read those files. Although the temp files should go away they sometimes live longer than one...
...and get an error like: ActionController::MissingFile in 'ProductsController#show, should render PDF' Cannot read file /some/file.pdf You may be missing the HTMLDOC binary on your system. Install it like...
Check your GPU state on chrome://gpu. If it reads "WebGL: Hardware accelerated" in the first list, you're set. Else: Make sure chrome://flags/#disable-webgl is disabled (there...
...are the default key bindings, they may be different for other layouts/behaviors (like mswin). Read everything about scrolling in vim in the linked vimdoc...
LOAD DATA LOCAL INFILE ... to pipe data through the MySQL client, which can read everything the executing user can...