-
Open the Terminal
-
Use
mysqldump
to backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql
-
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
set :application, "application" | |
set :deploy_to, "/var/www/application" | |
set :deploy_via, "remote_cache" | |
set :scm, :subversion | |
set :repository, "http://account.svn.beanstalkapp.com/repository/trunk" | |
set :scm_user, "deploy_dummy" | |
set :scm_password, File.read("#{ENV['HOME']}/.application_deployment_password").strip |
module ExternalResource | |
# TODO: handle: Timeout::Error (time's up!): | |
# Requires a block with the HTTPClient.get call or what-have-you | |
# see InvitationRequestsController for details | |
def self.load( name = "" ) | |
retries = 12 | |
total = retries | |
require "benchmark" | |
n = 10000 | |
arr = (1..1000).to_a | |
zip = arr.zip arr | |
hash = Hash[zip] | |
Benchmark.bm do |x| | |
x.report("%-30s" %["sampling array"]) { n.times do | |
arr.sample |
// Available in jCanvas v20.1.0 | |
// The pixel multiple to snap to | |
var snapToAmount = 40; | |
// Round the given value to the nearest multiple of n | |
function nearest(value, n) { | |
return Math.round(value / n) * n; | |
} | |
$('canvas').drawArc({ | |
layer: true, |
sudo -i | |
cd | |
apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y | |
curl -O http://www.imagemagick.org/download/ImageMagick-6.9.1-10.tar.gz | |
tar xzvf ImageMagick-6.9.1-10.tar.gz | |
cd ImageMagick-6.9.1-10/ | |
./configure --prefix=/opt/imagemagick-6.9.1-10 && make | |
checkinstall |
# Ensures the model has an attr_accessor, attr_reader or attr_writer | |
# Examples: | |
# it { should have_attr_accessor(:value) } | |
# it { should have_attr_accessor(:value).read_only } | |
# it { should have_attr_accessor(:value).write_only } | |
module Shoulda | |
module Matchers | |
module ActiveModel # :nodoc | |
def have_attr_accessor(attribute) |
save-exact = true # Saves exact version without needing --save-exact. |
sudo -i | |
cd | |
apt-get install build-essential checkinstall -y | |
apt-get build-dep imagemagick -y | |
apt-get install libwebp-dev -y | |
wget http://www.imagemagick.org/download/ImageMagick-6.9.5-8.tar.gz | |
tar xzvf ImageMagick-6.9.5-8.tar.gz | |
cd ImageMagick-6.9.5-8/ | |
./configure | |
make |
import paramsToProps from 'paramsToProps.js' | |
const MainNavigator = StackNavigator({ | |
firstScreen: { screen: paramsToProps(FirstScreenComponent) }, | |
secondScreen: { screen: paramsToProps(SecondScreenComponent) }, | |
}); |