...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...
...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...
Resolve @{-1} to actual branch name. (Happens when merging "-".)
...artifacts were now so small that they are not as noticable then when an 1:1 image is highly compressed...
...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...
...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...
...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...
...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...
...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
...nil inside of #m. Affected Ruby Versions Affected version: 2.2.0, 2.2.1, 2.2.2 Unaffected versions: 1.x, 2.0, 2.1, 2.2.3+, 2.3+ How to Expose it The following code exposes the bug...
...the second keyword argument Oo # - there is a double-splat argument def vulnerable_method_1(p: 'p', lost: 'lost', **options) _report(__method__, lost) end def vulnerable_method_2(p: 'p...
...error message above. There are multiple solutions to this issue. Option 0: Use Bundler 1.14 It might fix this issue, or at least print some helpful hints. Unfortunately Bundler 1.14.2...
...dumps core on corrupt Gemfiles with Ruby 1.8.7. Option 1: Make bundle install succeed now, but leave it broken for future installs This parameter will make the installation pass on...
Hey, this is foo.example.com calling. I just sent two ICMP packets to 1.2.3.4 and that failed apparently. Here is a traceroute to 1.2.3.4: HOST: foo.example.com Loss% Snt Last...
...Avg Best Wrst StDev 1.|-- 10.10.13.1 0.0% 10 0.4 0.3 0.2 0.5 0.1 2.|-- 10.179.144.1 0.0% 10 0.7 0.7 0.7 0.8 0.0 3.|-- 212.18.7.63 0.0% 10...
...ARGF.each_line { |l| m = l.match(/^INSERT INTO \`.+\` .+ VALUES \((\d+),/); puts l if !m || m[1].to_i < 200_000 || l =~ /schema_migrations/ }' | mysql -uUSER -pSECRET DATABASE_NAME The command above does...
...fails to install for Ruby 2.5 if you use a version equal or below 1.8.3. Run bundle update json --conservative to solve this issue. The backtrace you will encounter looks...
...option ‘-Wno-parentheses-equality’ Makefile:241: recipe for target 'generator.o' failed make: *** [generator.o] Error 1 make failed, exit code 2 Gem files will remain installed in /home/user/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/json-1.8.3 for inspection.
PATH=/opt/firefox-for-selenium:$PATH cucumber features/foo.feature Issues When you get the following error: ./firefox-bin: 1: Syntax error: "(" unexpected ... then you have a 32 bit Linux but downloaded a 64 bit...
...the gem from /usr/lib/ruby/gems/1.8/gems/foolib-1.2.3 to vendor/gems/foolib-1.2.3. Make sure the folder name actually ends in ...-1.2.3. cd to the gem. Check if a foolib.gemspec exists. If it doesn't, run rake...
...allocate SQLHENV from /usr/lib/ruby/1.8/dbd/odbc/driver.rb:36:in `connect' from /usr/lib/ruby/1.8/dbi/handles/driver.rb:33:in `connect' from /usr/lib/ruby/1.8/dbi.rb:148:in `connect' from (irb):1 from /usr/local/lib/site_ruby/1.8/rubygems/dependency_list.rb:14 I installed the gem ruby-odbc instead...
...store its content in a buffer and write it into the file system every 1000 lines. This will come back to bite you when using Rails.logger.info to write log output...
...to write after each line. On production environments the Rails logger writes only every 1000 lines -- and not upon shell or script termination as you might expect -- so Rake tasks...