crazylittlehacks.blogspot.com

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

SSHKit 1.9.0 might fail with the following error, when trying to deploy a Rail application. Upgrading the gem to version 1.21.0 fixed the issue. Traceback (most recent call last):

...from /home/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/sshkit-1.9.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute' 16: from /home/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/sshkit-1.9.0/lib/sshkit/backends/abstract.rb:29:in `run' 15: from /home/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/sshkit-1.9.0/lib/sshkit/backends/abstract.rb:29:in `instance_exec' 14: from /home/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/capistrano-3.14.1/lib/capistrano/tasks/deploy.rake:89:in `block (4 levels...

developer.chrome.com

// 0: { useCapture: false, passive: false, once: false, type: 'up:click', listener: ƒ } // 1: { useCapture: false, passive: false, once: false, type: 'up:click', listener: ƒ } // ...

...code with Bundler versions < 2.0.2. It just looks like the task is frozen: Workaround 1: Just type your OTP code and hit enter, your gem is released afterwards.

If you need to release a gem with a legacy Ruby version like 1.8.7, the workarounds above won't work for you. In this case, switch to a modern...

...Here are two options by example on how to achieve this in Rails. Option 1 Time.use_zone('UTC') { Time.zone.parse('2020-08-09 00:00') } => Sun, 09 Aug...

makandra dev

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

...cause flaky tests Load rbenv on session create Load nvm on session create (part 1 and part 2) Add an open alias

...database in order to import the dump. If any problems occur, proceed as follows: 1. Figure out the original migration status of the dumpfile Convert your dump to plaintext: pg...

...git log --reverse ./db/migrate/20200729124233_add_users.rb commit d4848ad598b2f02cbca7580a2b928d02996abeb4 Author: Some user <some.user@example.com> Date: Thu Jul 30 16:07:51 2020 +0200 Add users commit 7b7fa26b838e576a70dee79d71f194f6a673c500 Author: Some user <some.user@example.com> Date: Tue Aug...

github.com

...Cucumber uses mocha. This note shows to use RSpec stubs and mocks instead. Rspec 1 / Rails 2 Put the following into your env.rb: require 'spec/stubs/cucumber' Rspec 2 / Rails 3

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

When you need the DOM node of a tag (e.g. to read extra attributes, or to modify the DOM near it), you can usually reference it via document.currentScript. However, document.currentScript is unsupported in ancient browsers, like Internet Explorer 11 or wkhtmltopdf's Webkit engine. If you are not running async scripts, you can easily polyfill it: document.scripts[document.scripts.length - 1] It works because document.scripts grows with each tag that was evaluated. That is also the reason why this solution will not work reliably for async code. Demo: https://codepen.io/foobear/pen/poRLxQm

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

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

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

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

makandracards.com

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

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

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:

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