- Dec 9,
2023
Table of Contents Setup In The Controller In The Turbo Stream ERB file Additional Stuff Conclusion Setup To use Turbo streams, do the following: In a view, add a turbo_frame_tag like so: <%= turbo_frame_tag "some_name_for_the_frame" do %> # additional html/erb code can be added here, but it will be #...
- Jul 29,
2023
ToC Intro What is Sidekiq When is Sidekiq in action Why use Sidekiq Conclusion Intro This is about Sidekiq. What it is, when it is in action, and why it’s used. To get everything you need from this article you should have a basic understanding of: a typical HTTP request/response...
- Jun 17,
2023
How to write to a File or CSV file in Ruby ToC Introduction Create a File Write to a File Now With CSV Conclusion Introduction Many, many times I’ve wanted to write a quick and dirty Ruby script that drops some data into a file. Too many times I’ve looked...
- Jun 11,
2023
Docker; My introduction to it ToC Introduction More than just one thing How I’ll probably most frequently use Docker Another use of Docker What I know about Docker so far Conclusion Introduction Docker often comes up in daily life. Whether I see it in job descriptions, or I see it...
- Jun 6,
2023
section Introduction How To Notes Introduction Assume I have an array: my_array = ['apple', 'banana', 'orange', 'apple', 'pear', 'apple', 'orange'] and I want to count the elements of each: ### my_array, turned into a hash my_hash = { 'apple': 3, 'banana': 1, 'orange': 2, 'pear': 1 } How can this...
- Jun 5,
2023
section Introduction Requirements Steps to Deploy Attempted Hotfixes The Actual Fix Notes Introduction If I’m going to deploy a site, I’m responsible for handling the DevOps portion of deployment. Often during deployment of my Rails apps to Heroku (rails v 5.2.8) I came across the same error: Failed to deploy...
- Apr 15,
2023
section Introduction Remove Argument Order Dependency The Caveat In the Wild Conclusion Introduction One way to refactor old projects is to search for dependencies, and update the code to remove those dependencies. Sandi Metz, author of Practical Object-Oriented Design, says dependencies can be identified in 4 ways: When an object...
- Apr 10,
2023
How to set a mark When Vim is in Normal Mode, move the cursor to a location that you may like to return to. Perhaps a method name, or an argument. While still in Normal Mode, hit the “m” key. (lower case “m”). A mark has now been set. Before...