Installing mysql2 gem errors on MacOS Mojave.
Make sure openssl is installed on Mac via Homebrew.
brew install openssl
| > 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" |
| ======= 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).
| <head> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.js"> | |
| </script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/JSXTransformer.js"> | |
| </script> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous"> | |
| </head> | |
| <body> | |
| </body> |
| # En el proceso de instalación se pedirá un password, si es en producción recuerda escoger un password seguro. En un entorno de desarrollo se puede ser más fléxible. | |
| $ sudo apt-get install mysql-server | |
| $ sudo apt-get install mysql-client | |
| # Para verificar si se instaló correctamente | |
| $ sudo netstat -tap | grep mysql | |
| # Para rails asegurate de instalar la siguiente dependencia |
| /* Based on | |
| * - EGM Mathematical Finance class by Enrique Garcia M. <[email protected]> | |
| * - A Guide to the PMT, FV, IPMT and PPMT Functions by Kevin (aka MWVisa1) | |
| */ | |
| var ExcelFormulas = { | |
| PVIF: function(rate, nper) { | |
| return Math.pow(1 + rate, nper); | |
| }, |