Installing mysql2
gem errors on MacOS Mojave.
Make sure openssl
is installed on Mac via Homebrew.
brew install openssl
# frozen_string_literal: true | |
module Mexico | |
module Payrolls | |
class PerceptionBuilder | |
attr_reader :calculations | |
PERCEPTION_TYPES = %w[022 023 025 039 044].freeze | |
COMPENSATION_PAYMENT_SEPARATION = %w[022 023 025].freeze | |
RETIREMENT_PENSIONS_BENEFITS = %w[039 044].freeze |
[ActionCable] Broadcasting to user_modal_gerardo-ortega: {:status=>"oauth_error", :provider=>"facebook", :errorMessage=>"Error: {\"message\"=>\"(#100) Tried accessing nonexisting field (tagged_places) on node type (User)\", \"type\"=>\"OAuthException\", \"code\"=>100, \"fbtrace_id\"=>\"APTHmAB-ZwVGldNB26KLO97\"}: \n{\"error\":{\"message\":\"(#100) Tried accessing nonexisting field (tagged_places) on node type (User)\",\"type\":\"OAuthException\",\"code\":100,\"fbtrace_id\":\"APTHmAB-ZwVGldNB26KLO97\"}}"} | |
I, [2019-08-14T12:40:37.627342 #29618] INFO -- : UserModalChannel transmitting {"status"=>"oauth_error", "provider"=>"facebook", "errorMessage"=>"Error: {\"message\"=>\"(#100) Tried accessing nonexisting field (tagged_places) on node type (User)\", \"type\"=>\"OAuthException\", \"code\"=>100, \"fbtrace_id\"=>\"APTHmAB-ZwVGldNB26KLO97\"}: \n{\"error\":{\"message\":\"(#100) T... (via streamed from user_modal_gerardo-ortega) |
> Cheatsheet for RSpec, to print < | |
https://devhints.io/rspec-rails | |
> Useful Gems for testing < | |
gem 'rspec-rails' | |
gem 'faker' | |
gem "shoulda-matchers", require: false | |
gem 'guard-rspec', require: false | |
### gem "email_spec" | |
gem "factory_bot_rails" |
https://join.slack.com/t/rails-101/shared_invite/enQtMzE2ODAwMTI0MjU4LTdiNjJhNTlkZTUyZjQ2ZTFmZTcxZDJhNjViYjJlZTFjZmZhZTdkZDkzMGUyMWIyYjE0OGUwNGY2YTlhMGU0NjM |
======= Prolbem ================================================================================================================= | |
I have installed : ruby-2.0.0,postgres-9.2 , now in rails app when I execute: | |
rake db:create , command I get: | |
PG::InvalidParameterValue: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) | |
HINT: Use the same encoding as in the template database, or use template0 as template. | |
: CREATE DATABASE "my_db_name" ENCODING = 'unicode'....... | |
bin/rake:16:in `load' |
The first step is to remove older version of PostGIS if any.
sudo apt-get purge postgis
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/postgresql.list'
@[Link("opencv")] | |
lib LibCv | |
fun cvPoint(x : Int32, y : Int32) | |
end | |
# LibCv.cvPoint(1,2) |
There are many (old) clients available:
The Google Analytics API is at v3 (at time of writing).
This example uses Google's Ruby API client to access Analytics. Use https://github.com/google/google-api-ruby-client (Google supported).