Active Record Validations - Ruby on Rails Guides - 0 views
-
validates :name, presence: true
-
Validations are used to ensure that only valid data is saved into your database
-
Model-level validations are the best way to ensure that only valid data is saved into your database.
- ...117 more annotations...
Understanding Nginx Server and Location Block Selection Algorithms | DigitalOcean - 0 views
-
A server block is a subset of Nginx’s configuration that defines a virtual server used to handle requests of a defined type. Administrators often configure multiple server blocks and decide which block should handle which connection based on the requested domain name, port, and IP address.
-
A location block lives within a server block and is used to define how Nginx should handle requests for different resources and URIs for the parent server. The URI space can be subdivided in whatever way the administrator likes using these blocks. It is an extremely flexible model.
-
Nginx logically divides the configurations meant to serve different content into blocks, which live in a hierarchical structure. Each time a client request is made, Nginx begins a process of determining which configuration blocks should be used to handle the request.
- ...37 more annotations...
Eve - 0 views
-
"Eve is a programming language and IDE based on years of research into building a human-first programming platform. From code embedded in documents to a language without order, it presents an alternative take on what programming could be - one that focuses on us instead of the machine. This is Eve:"
Marp - Markdown Presentation Writer - 0 views
Unwinding Uber's Most Efficient Service - Medium - 0 views
-
"A few weeks ago, Uber posted an article detailing how they built their "highest query per second service using Go". The article is fairly short and is required reading to understand the motivation for this post. I have been doing some geospatial work in Golang lately and I was hoping that Uber would present some insightful approaches to working with geo data in Go. What I found fell short of my expectations to say the least…"
Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields - 0 views
-
"We present a realtime approach for multi-person 2D pose estimation that predicts vector fields, which we refer to as Part Affinity Fields (PAFs), that directly expose the association between anatomical parts in an image. The architecture is designed to jointly learn part locations and their association, via two branches of the same sequential prediction process."
How to record your terminal session on Linux - 0 views
-
"Recording a terminal session may be important in helping someone learn a process, sharing information in an understandable way, and also presenting a series of commands in a proper manner. Whatever the purpose, there are many times when copy-pasting text from the terminal won't be very helpful while capturing a video of the process is quite far-fetched and may not be always possible. In this quick guide, we will take a look at the easiest way to record and share a terminal session in .gif format."
Blog Tutorial - Adding a layer - CakePHP Cookbook v2.x documentation - 1 views
-
Cake views are just presentation-flavored fragments that fit inside an application’s layout. For most applications they’re HTML mixed with PHP, but they may end up as XML, CSV, or even binary data.
-
Layouts are presentation code that is wrapped around a view, and can be defined and switched between
-
if the HTTP method of the request was POST, try to save the data using the Post model.
- ...6 more annotations...
drapergem/draper: Decorators/View-Models for Rails Applications - 0 views
-
The decorator wraps the model, and deals only with presentational concerns.
-
In the controller, you decorate the article before handing it off to the view
-
whenever you start needing logic in the view or start thinking about a helper method, you can implement a method on the decorator instead.
- ...5 more annotations...
Running Terraform in Automation | Terraform - HashiCorp Learn - 0 views
-
In default usage, terraform init downloads and installs the plugins for any providers used in the configuration automatically, placing them in a subdirectory of the .terraform directory.
-
allows each configuration to potentially use different versions of plugins.
-
In automation environments, it can be desirable to disable this behavior and instead provide a fixed set of plugins already installed on the system where Terraform is running. This then avoids the overhead of re-downloading the plugins on each execution
- ...12 more annotations...
Dependency Lock File (.terraform.lock.hcl) - Configuration Language | Terraform | Hashi... - 0 views
-
Version constraints within the configuration itself determine which versions of dependencies are potentially compatible, but after selecting a specific version of each dependency Terraform remembers the decisions it made in a dependency lock file
-
At present, the dependency lock file tracks only provider dependencies.
-
Terraform does not remember version selections for remote modules, and so Terraform will always select the newest available module version that meets the specified version constraints.
- ...14 more annotations...
Serverless Architectures - 0 views
-
Serverless was first used to describe applications that significantly or fully depend on 3rd party applications / services (‘in the cloud’) to manage server-side logic and state.
-
‘rich client’ applications (think single page web apps, or mobile apps) that use the vast ecosystem of cloud accessible databases (like Parse, Firebase), authentication services (Auth0, AWS Cognito), etc.
-
‘(Mobile) Backend as a Service’
- ...33 more annotations...
certificate - What is a Pem file and how does it differ from other OpenSSL Generated Ke... - 0 views
-
Certificate Signing Request.
-
Some applications can generate these for submission to certificate-authorities
-
These get signed by the CA and a certificate is returned
- ...15 more annotations...
Probably Done Before: Visualizing Docker Containers and Images - 0 views
-
In my opinion, understanding how a technology works under the hood is the best way to achieve learning speed and to build confidence that you are using the tool in the correct way.
-
union view
-
The top-level layer may be read by a union-ing file system (AUFS on my docker implementation) to present a single cohesive view of all the changes as one read-only file system
- ...36 more annotations...
sugarbox.io - 0 views
javascript - How do I "think in AngularJS" if I have a jQuery background? - Stack Overflow - 0 views
-
in AngularJS, we have a separate model layer that we can manage in any way we want, completely independently from the view.
-
keep your concerns separate
-
do DOM manipulation and augment your view with directives
- ...34 more annotations...
Bash Reference Manual: Shell Parameter Expansion - 1 views
-
parameter expansion
-
command substitution
-
arithmetic expansion
- ...16 more annotations...