...This does not play too nice with Visor, because Visor will always be "window 1" for AppleScript. By modifying the script and replacing in window 1 with in window...
If you imagine there is something like ncdu or du -ha -d 1 /foo/bar you're wrong. If you want to get the size of all subdirs you...
...number of blank forms: Number of actors Number of blank actor forms 0 5 1 5 2 5 3 5 4 6 5 7 6 8 Luckily, there's an...
...users GROUP BY name; With ONLY_FULL_GROUP_BY this now explodes with: ERROR 1055 (42000): Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated...
You need to make sure that any selected value is either (1) the value you group by or (2) passed to an aggregate function like MIN or...
...a rough estimate of the LOC. find app -name *.rb -exec wc {} \; | awk '{a+=$1;print a}' | tail...
Resolve @{-1} to actual branch name. (Happens when merging "-".)
...can reduce the webdriver update interval and see if VCR complains: WD_CACHE_TIME=1 bundle exec cucumber Note: Newer Rails versions come with the webdrivers gem automatically...
...your ActiveRecord models with very little code. Traim assumes your API resources will map 1:1 to your ActiveRecord models and database tables. This assumption usually falls apart after a...
Coffeescript # wrong 'name' in {name: 'Horst'} # => false # correct 'name' of {name: 'Horst'} # => true 1 in [1,2,3] # => true
...use the bash script below by copying it somewhere to your .bashrc. # Usage: ptcommits 123456 function ptcommits { if test "$1" then local PTID=$(echo "$1" | grep "[0-9]*" -o) # Allow...
} alias ptcommit='ptcommits' Now you can use use the command like this: ptcommits 165086636 --stat. Up to three arguments are passed to git show. Example output: commit 048054b1df87576f7c59cc0161cc331c44d2ea6b
...socialshareprivacy jQuery plugin for that, or a fork on steroids called "Social Share Privacy". 1. Implementing the buttons is straightforward So you have decided to go ahead with the remote...
GRANT REPLICATION SLAVE ON *.* TO 'replicator'@'%'; Adjust MySQL configuration : Edit /etc/mysql/my.cnf: server-id = 1 log_bin = /var/log/mysql/mysql-bin.log replicate-do-db = some_project_production replicate-do-db = other_project_production...
...smaller binlog. Setting replicate-ignore-db = mysql is generally recommended if you are not 100% sure you want to replicate the master's mysql database onto slaves; on Debian systems...
...HLS, filled with real-world examples. Using FFmpeg as a HLS streaming server (Part 1) – HLS Basics Using FFmpeg as a HLS streaming server (Part 2) – Enhanced HLS Segmentation
...it a lot easier to restore functionality later. In the end, you should have 1 commit for each feature, e.g. "Remove new calendar design". When you encounter commits you missed...
...artifacts were now so small that they are not as noticable then when an 1:1 image is highly compressed...
Table of content for the linked article: 1. The `loading=lazy` attribute 2. Email, call, and SMS links 3. Ordered lists `start` attribute 4. The `meter` element 5. HTML Native...
6. Fieldset Element 7. Window.opener 8. Base Element 9. Favicon cache busting 10. The `spellcheck` attribute 11. Native HTML sliders 12. HTML Accordion 13. `mark` tag 14. `download` attribute...
...and the certificates ARN /home/foobar/Downloads/ElasticLoadBalancing-1.0.14.3/bin/elb-set-lb-listener-ssl-cert lb-name --aws-credential-file ./aws-credential.txt --region eu-west-1 --lb-port 443 --cert-id arn:aws:iam::322191361670:server-certificate/www.example.com-2011
...environment variable to run your command but disable that check. DISABLE_DATABASE_ENVIRONMENT_CHECK=1 rails db:drop
...wie man ein Impressum erstellt und wie man es bei Facebook und Twitter einbindet: #1. Impressum erstellen Ich empfehle zur Erstellung des eigenen Impressums das kostenlose Online-Tool des Anbieters...
...s considered good practice to only give back a Promise, never a Deferred. AngularJS 1.x In Angular's $q promise library, you would do it like this:
bar: [ 'a', { baz: 'x' } ] } } x.dig(:foo, :bar) # => [ 'a', { baz: 'x' } ] x.dig(:foo, :bar, 1, :baz) # => "x" x.dig(:foo, :wronk, 1, :baz) # => nil There is a tiny gem that backports...
...to update it. The ubuntu default sources are usually outdated. Just follow the instructions 1-4 and 1-3 on the page linked below. Making SSL connection work
...Webpack can interpret the folder as an npm package. // vendor/asset-libs/bought-font/package.json { "name": "bought-font", "version": "1.0.0", "description": "", "main": "index.scss", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Salesman of...
Then the radio button "sample.pdf" should not be checked inside the 1. iframe And I should see in this order within the breadcrumb inside the 1. iframe...
...frame(frames[frame_number]) end Use it like this: When I switch to the 1. iframe Then the radio button "sample.pdf" should not be checked And I should see in...