In this demo we will:
- Learn about ActionView including:
- templates, partials and layouts
- response formats
- helpers
- Ubuntu 20 LTS: https://www.youtube.com/watch?v=I8WhikkiiSI
- Ruby, Node and Yarn: https://www.youtube.com/watch?v=C_xhTo9bw0s
In this demo we will:
This gist has become cincinnatirb/active_record_demo. You can watch a (near perfect) run-through on YouTube here.
In this demo we will:
Run these commands in a terminal:
sudo apt-get install -y build-essential curl git linux-headers-`uname -r` wget
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.8
echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc
. ~/.bashrc| require 'ruby-hl7' | |
| require 'socket' | |
| require 'pry' | |
| control_k = 11.chr | |
| control_backslash = 28.chr | |
| control_m = 13.chr | |
| hl7 = "#{control_k}MSH|^~\&|ADM|ADMH|||201609160645|JJOHNSON|ADT^A05|597318|D|2.2|||AL|NE#{control_m}EVN|A05|201609160644|||JJOHNSON^JOHNSON^JOHNNY^M#{control_m}PID|||H000027068|||||||||||||||V00020200200#{control_m}PV1|1|P|NEPC#{control_m}PV2|||abd pain#{control_m}OBX|1|TX|ZADM.ARRIV^ARRIVAL MODE:^ADM||||||||F#{control_backslash}#{control_m}" | |
| hl7_msg = HL7::Message.new(hl7.strip) |
| class FlowLogMessage | |
| def initialize(message) | |
| @message = message | |
| end | |
| def to_hash | |
| msg = Hash.new | |
| msg[:version], msg[:account], msg[:interface_id], msg[:source_ip], msg[:destination_ip], msg[:source_port], msg[:destination_port], msg[:protocol], msg[:packets], msg[:bytes], msg[:window_start], msg[:window_end], msg[:action], msg[:flow_log_status] = @message.split(' ') | |
| msg | |
| end |
References:
Kudos and thanks to the Rails team for producing and maintaining a high level of documentation. This TL;DR was created to speed skimming of the differences between Rails 3.2 and Rails 4.0. You are encouraged to read the complete more detailed descriptions here, especially if any items listed below appear relevant to your app.
PATCH rather than PUT with a special note about JSON Patch. [[1]]assets group has been removed from Gemfile.vendor/plugins is removed.ActiveRecord changes include:| %w(2014-06-02.log 2014-06-03.log).each do |file_name| | |
| file = File.open(file_name, "r") | |
| lines = 0 | |
| total_response_time = 0 | |
| file.each do |line| | |
| response_time = line[/\b(\d{1,})ms \(/].to_i | |
| if response_time > 0 | |
| puts "Found a response time of #{response_time} in this line: #{line}" if ARGV.size > 0 |
"There's safety in numbers" as they say. As species go, Homo sapiens were not the first to figure that out. "Community" is at least a couple eons old. There's fossil evidence of communal living pre-dates the dinosaurs but I'm no paleontologist. All I can do is tell you my story.
I hereby claim:
To claim this, I am signing this object: