This is the companion to my YouTube video: https://youtu.be/MJSZ3WcgHeE
https://guides.rubyonrails.org/debugging_rails_applications.html
- Putting debug info into views using
debughelper (orto_yamlorinspect)
| #!/usr/bin/env ruby | |
| # encoding: UTF-8 | |
| # Convert FLAC files to mp3 files, keeping metadata from the FLAC files. | |
| # | |
| # Requires that FLAC (including metaflac) and LAME tools be installed | |
| # and on the path. | |
| # | |
| # Takes any number of .flac files on the command line. |
This is the companion to my YouTube video: https://youtu.be/MJSZ3WcgHeE
https://guides.rubyonrails.org/debugging_rails_applications.html
debug helper (or to_yaml or inspect)| Unknown username "whoopsie" in message bus configuration file (Crouton) | |
| For some time I had this notification "Unknown username 'whoopsie' in message bus configuration file" coming up when I started my Ubuntu-server on my Chromebook via crouton. It seemed not to do anything wrong but hey, I hate to see error messages popping up on the screen and not knowing what it really means. | |
| In my search I've learned that the user 'whoopsie' is being used for the error reporting daemon in Ubuntu. | |
| System Description: | |
| Toshiba Chromebook 2: | |
| Intel® Celeron® Processor N2840 | |
| Intel® HD Graphics | |
| 4GB DDR3 1600MHz |
| Magical Authentication with Sorcery | |
| Gems | |
| Ruby on Rails | |
| March 16, 2015 | |
| Share | |
| Magician Hat |
| class Game | |
| attr_gtk | |
| def tick | |
| defaults | |
| input | |
| calc | |
| render | |
| end |
$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>add this to docker-composefile after build line
stdin_open: true
tty: true
to be like this
services:
app:
build:
| # create a migration to enable uuid# This will generate a new migration file with | |
| # timestamp_enable_uuid_extension.rbrails g migration EnableUuidExtension# In migration file add following line to enable pgcryptoclass EnableUuidExtension < ActiveRecord::Migration[6.0] | |
| def change | |
| enable_extension 'pgcrypto' | |
| end | |
| end | |
| # Create migration for tasks tablerails g migration CreateTasksclass CreateTasks < ActiveRecord::Migration[6.0] | |
| def change |
| brew install postgresql | |
| # Add te path | |
| export PATH=$PATH:/usr/local/opt/postgresql@13/bin | |
| create database almokhtar; | |
| brew install postgis | |
| initdb /usr/local/var/postgresql\@13/ | |
| rm -r /usr/local/var/postgresql\@13/ | |
| createdb postgis_test |