makandracards.com

Resolve @{-1} to actual branch name. (Happens when merging "-".)

makandra dev

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

makandra dev

...a rough estimate of the LOC. find app -name *.rb -exec wc {} \; | awk '{a+=$1;print a}' | tail...

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

github.com

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

Coffeescript # wrong 'name' in {name: 'Horst'} # => false # correct 'name' of {name: 'Horst'} # => true 1 in [1,2,3] # => true

martin-riedl.de

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

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

makandra dev

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

...environment variable to run your command but disable that check. DISABLE_DATABASE_ENVIRONMENT_CHECK=1 rails db:drop

markodenic.com

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

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

makandra dev

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

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

makandra dev
netvlies.nl

...artifacts were now so small that they are not as noticable then when an 1:1 image is highly compressed...

awsdocs.s3.amazonaws.com

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

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

blog.blockscore.com

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

makandra dev
pidgin.im

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

...you can set the number of processes via ENV variable manually: PARALLEL_TEST_PROCESSORS=1 bundle exec geordi cucumber Alternatively, you can run the vanilla cucumber command with Geordi's...

...lead to a run in a single process) Rspec: bundle exec rspec Cucumber: DISPLAY=:17 bundle exec cucumber (Just like geordi uses port 17 for VNC to not see a...

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

...the project access token Example configuration for the project manager with two submodules customer_1 and customer_2: image: name: "example.com/manager/ci:v1" before_script: # git clone without --recursive already happend...

...jO4MJ316YleW9RCxp4TM5Eid5df30RCzN3rYlnIpyB0= is the same as the value in your cookie: { "session_id"=>"8ef662867ab2457717ba74c143c08733", "timestamp"=>1572261371, "_csrf_token"=>"jO4MJ316YleW9RCxp4TM5Eid5df30RCzN3rYlnIpyB0=" } Note: The session cookie is encrypted by default. You can decrypt it...

...are bundler aware. Some tests showed that parallel test execution (2 CPUs instead of 1) gives you a performance gain of about 25 - 30 %. Each doubling of the CPU cores...