[Ruby Rails Guides] Active Record Basics
Active Record Basics
This guide is an introduction to Active Record.
After reading this guide, you will know:
-
What Object Relational Mapping and Active Record are and how they are used in Rails.
-
How Active Record fits into the Model-View-Controller paradigm.
-
How to use Active Record models to manipulate data stored in a relational database.
-
Active Record schema naming conventions.
-
The concepts of database migrations, validations, and callbacks.
[Nginx Best Practices] Gzip & Brotli Compression for Nginx
Configuring Gzip & Brotli Compression for Nginx
Configuring Gzip & Brotli compression on an Nginx web server running in Linux. Gzip & Brotli are the most popular compression algorithms supported by major web browsers.
[Nginx Best Practices] Nginx WebSocket proxying
Nginx WebSocket proxying
WebSocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011, and the WebSocket API in Web IDL is being standardized by the W3C.
[Awesome Ruby Gem] Use whenever gem to cron jobs in Ruby
whenever
Whenever is a Ruby gem that provides a clear syntax for writing and deploying cron jobs.
[Homebrew (brew) Cheatsheet] Homebrew (brew) Basics Commands
Homebrew - The Missing Package Manager for macOS (or Linux)
Homebrew is an essential piece of software to help you organize the tools you use. The package manager allows you to install a large number of software like NodeJS
or new versions of Git and will help you to keep them up to date.
These Homebrew commands will help you installing and maintaining the set of tools you need to develop good software.
[Talking-Ruby] Syntactic sugar in Ruby
Syntactic sugar in Ruby
Ruby uses syntactic sugar to make some of its syntax more expressive, or easier to read.
[Awesome Ruby Gem] Use imgkit gem to generate images on the backend which renders HTML using Webkit
IMGKit
Create JPGs using plain old HTML+CSS. Uses wkhtmltoimage - http://github.com/antialize/wkhtmltopdf on the backend which renders HTML using Webkit.
Heavily based on PDFKit - https://github.com/jdpace/pdfkit/.
[Awesome Ruby Gem] Use pdfkit gem to create PDFs using plain old HTML+CSS on the backend which renders HTML using Webkit
PDFKit
Create PDFs using plain old HTML+CSS. Uses wkhtmltopdf - http://wkhtmltopdf.org/downloads.html on the back-end which renders HTML using Webkit.
[Awesome macOS App] Use SwitchHosts to manage and switch hosts
SwitchHosts
SwitchHosts is an App for hosts management & switching. It is a free and open source software.
SwitchHosts is an App for managing hosts file, it is based on Electron , React, UmiJS , Chakra UI, CodeMirror, etc.