Posts

  • How to build a scalable application using Rails? (1)

    With the growing of your rails application, it is inevitable that more and more functions will be put into a single repo. One way to call it is The Majestic Monolith. DHH named the category of this kind of rails application. But he didn’t provide a standard way to do that, a normal Rails developer will get easily freaked out, there is no more convention for you to follow this time!

    But there must be a way, a good way to do that, let’s start from a blank rails application. This blog doesn’t do any recommendation, but to try to give you some inspiration.

  • Using shadowsocks with utun interface

    shadowsocks

    As you all know that shadowsocks could help to proxy the network traffic to your remote server. However, with the development of the shadowsocks-rust, now it has a new mode which utilizes the unix tun interface feature. This post will show you briefly how that looks like.

    This post uses linux as the test environment, but should be similar to macos.

  • Install luci-app-ssr-plus in gl-inet e750

    mudi

    This post shows you how to install luci-app-ssr-plus in you GL-iNET mobile router.

    Requirements

    • Device: usb150/ar150/ar300m/mifi/ar750/ar750s/x750/x300b/xe300/e750/x1200
    • Openwrt: openwrt-19.07.7

    Before you start

    It’s very hard to compile the package luci-app-ssr-plus alone using sdk, and I am providing a precompiled package here.

    Package link

  • Simple graphql query with ruby

    graphql

    Query GraphQL in ruby is easy. All you need is a library for HTTP post request.

    Gem graphql-client

    It’s just so natural that we will look for a gem for GraphQL query. And you actually do that, gem graphql-client would be your go to choice. It looks sophicticated and reliable enough, as it is produced by the github team, right?

    Let’s check what this gem is doing for us. This gem loads the graphql schema, and helps validate the query string. Also, it will parse the response, so you can treat the result like a ruby object.

  • Serverless rails on google cloud run

    cloud run

    This tutorial shows you a way to deploy rails on google cloud run and at the same time make the server warm all the time.

    There are many ways to deploy a server online, the most traditional way is to rent virtual machine and deploy the server there, it sounds simple but actual not. First, prepare a virtual machine to make it ready is a pain for me everytime. And you also need to config stuff like loadbalance, server group, certificates, firewalls, and so on. It’s just not easy to deploy an https server on virtual machine. Are you asking me why should we use https? Because it’s 2021!

subscribe via RSS