Skip to content

Digital Ronin

  • Home
  • Blog
  • Contact

Author: digitalronin

July 3, 2022 digitalronin Coding, programming, ruby, ruby on rails

Installing Rails from scratch using Docker

I really enjoy programming in Ruby, and my preferred web framework has been Ruby on Rails for many years. But, setting up to work on a new project is one of my least favourite yaks to shave. Over the years, web development has become more complicated, and a new Ruby on Rails project can involve: … Continue reading Installing Rails from scratch using Docker

May 6, 2021May 6, 2021 digitalronin Uncategorized

Rewarding Liquidity Providers

Using a commission in our automated market maker to reward liquidity providers

May 4, 2021May 6, 2021 digitalronin Uncategorized

Tracking Liquidity in the Automated Market Maker

Using Liquidity Provider Tokens (LP tokens) to keep track of who provided liquidity to the Automated Market Maker (AMM)

May 3, 2021May 6, 2021 digitalronin Uncategorized

Adding Liquidity to the AMM

Adding/removing liquidity from the Automated Market Maker

May 2, 2021May 2, 2021 digitalronin Uncategorized

Trading the Automated Market Maker

This post is part of a series on DeFi. Here is the previous post, and this is the first post in the series. We've seen how buying and selling from the Automated Market Maker (AMM) alters the token price. Now let's see what it looks like when we have multiple people (counterparties) buying from and … Continue reading Trading the Automated Market Maker

May 1, 2021May 3, 2021 digitalronin Uncategorized

Refactoring the Ruby Automated Market Maker

This is the second in a series of blog posts about DeFi. The first post is here. In the last post, we implemented the buy method of our Automated Market Maker (AMM) like this: # Counterparty pays `amount` eth for some tokens def buy(amount) ether = amount.to_f @ether_reserve += ether new_token_reserve = @konst / @ether_reserve … Continue reading Refactoring the Ruby Automated Market Maker

April 30, 2021May 7, 2021 digitalronin Uncategorized

Ruby Automated Market Maker

I've been getting interested in Decentralized Finance (DeFi) recently, and wanted to understand some of the core ideas better. I find the best way for me to properly explore an idea is to implement it in code so that I have something I can poke with a stick, to see how it reacts. In this … Continue reading Ruby Automated Market Maker

April 21, 2021 digitalronin Uncategorized

Using Ansible to configure a cloud VM

This is the second post in a series. Part one is here. Now that we have our VM, let's use Ansible to configure it as our development environment. Config and Playbooks Ansible instructions are defined in YAML files known as "playbooks", with global configuration in a file called ansible.cfg by default. Create a file called … Continue reading Using Ansible to configure a cloud VM

April 20, 2021April 21, 2021 digitalronin Uncategorized

Developing in the cloud with terraform and ansible

I've been trying for a while to set up a workable development environment in the cloud, for several reasons: Renting the computer capacity I need, for just as long as I need it, seems less environmentally damaging and wasteful than buying a new, expensive laptop every couple of years. A VM in the cloud has … Continue reading Developing in the cloud with terraform and ansible

January 17, 2021January 17, 2021 digitalronin Uncategorized

Deploying a web application on Dokku

This is the second post in a series. The first post is here. In the previous post we set up a dokku server on DigitalOcean using terraform. In this post, I'm going to show you how to host a web application on your dokku server, including setting up a PostgresQL database, and an SSL certficate … Continue reading Deploying a web application on Dokku

Posts navigation

Older posts

Archives

  • July 2022 (1)
  • May 2021 (5)
  • April 2021 (3)
  • January 2021 (2)
  • December 2020 (1)
  • November 2020 (1)
  • October 2020 (1)
  • September 2020 (1)
  • August 2020 (1)
  • May 2020 (1)
  • April 2020 (3)
  • March 2019 (1)
  • February 2019 (3)
  • January 2019 (2)
  • July 2017 (1)
  • June 2017 (2)
  • February 2017 (1)
  • January 2017 (4)
  • December 2016 (1)
  • September 2016 (1)
  • July 2016 (2)
  • June 2016 (1)
  • May 2016 (1)
  • March 2016 (1)
  • February 2016 (1)
  • January 2016 (6)
  • December 2015 (3)
  • November 2015 (1)
  • August 2015 (1)
  • July 2015 (1)
  • December 2014 (1)
  • October 2014 (1)
  • July 2014 (2)
  • April 2014 (5)
  • March 2014 (6)
  • October 2011 (2)
  • September 2011 (2)
Blog at WordPress.com.
  • Follow Following
    • Digital Ronin
    • Already have a WordPress.com account? Log in now.
    • Digital Ronin
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...