Kevin Luo

Kevin Luo @kevinluo201

About: Hi, I'm developer from Taiwan but now living in Toronto. I always like simple things. My hobby is to make knowledge very simple and easy to understand.

Location:
Toronto, Canada
Joined:
Dec 1, 2019

Kevin Luo
articles - 24 total

Limit your function calls with debounce

What is debounce? Debounce is a very interesting and important concept in programming. It...

Learn More 0 0Apr 13

How to do binary search for Ruby's array by #bsearch

We sometimes need to check if a value is included in an array. There are many methods to achieve...

Learn More 6 0Feb 24

[Boost]

Some tips for making a ruby gem Kevin Luo ・ Feb 16 ...

Learn More 0 0Feb 16

Some tips for making a ruby gem

I recently built a gem, https://github.com/kevinluo201/fx_rates, which is an API wrapper for a good...

Learn More 8 0Feb 16

Drawing Taiwan's Flag with CSS

I was impressed very much by @alvaromontoro's work Drawing...

Learn More 4 0Nov 22 '24

Use Vue.js SFC in Rails

Introduction Rails Hotwire is good but sometimes you want to build a more reactive. Vue.js...

Learn More 2 0Nov 11 '24

How to generate self-signed certificates for localhost

Introduction When we develop a website, we usually connect to our development server via ...

Learn More 0 0Oct 30 '24

Dear AI, can you translate the Rails Guide for me?

TL;DR; I used ChatGPT API to translate the Rails Guide into different...

Learn More 20 12Jul 30 '23

Delve deeply into Devise - Introduce all the Modules

Introduction If you're a Rails developer, I bet you have already heard of or used devise....

Learn More 26 2Jun 24 '23

Set the value of datetime-local input field from an Date object

We can use datetime-local to let user enter a date-time string. Most browsers have already...

Learn More 7 3Jun 11 '23

Building a simple authentication in Rails 7 from scratch

Introduction Ruby on Rails doesn't provide an official authentication solution despite...

Learn More 39 7Jun 4 '23

Setup a basic authentication in Rails with HTTP Authentication

Introduction When speaking of authentication, devise is usually the go-to gem developers...

Learn More 14 2May 22 '23

Setup very basic authentication with Devise in Rails 7

Introduction devise is the most popular gem in Rails for authentication. However, it's...

Learn More 48 2May 15 '23

介紹 RSpec Request Spec

這次想介紹 RSpec 的 Request spec 什麼 Request spec? 為何推薦使用它? Request spec 故名思義,是專門測 HTTP 請求的測試。一個...

Learn More 4 0Sep 5 '21

Introduce RSpec Request Spec

I'd like to introduce what is RSpec Request spec, how to use it and why to use it. I will also share...

Learn More 31 4Sep 5 '21

[note]Rails HTTP Code and Symbol mapping

...

Learn More 4 0Aug 30 '21

利用 systemd 在 Ubuntu 執行 Sidekiq 6

自從有了 Sidekiq 後,所有事情都變得容易了。 所有需要長時間執行的程式,我全往 sidekiq 扔,我再也不用怕 CloudFlare 的 524(請求超時) 了(咦?) 在...

Learn More 3 0Aug 20 '21

Run Sidekiq 6 as daemon in Production environment on Ubuntu 20.04

I also have Traditional Chinese version 利用 systemd 在 Ubuntu...

Learn More 33 2Aug 20 '21

用Github Actions 持續整合 Ruby on Rails

最近研究了一下用 Github Actions 做 Rails 的 CI ,分享一下經驗 : ) Github Actions 是 Github 的自動化工具。 Github Actions...

Learn More 7 0Jun 21 '21

partial 的救贖?view_component 介紹

把前端封裝(encapsulation)是從 React.js 以來的趨勢, Github 前年受 React 啟發表了一個 view_component 的 gem, 並用在 Github 裡。 不...

Learn More 7 0Mar 15 '21

Web 傳輸的摩斯密碼,base64介紹

因為看到 ruby3 的 release note 裡特別有講把 base64 放上 rubygems.org https://github.com/ruby/base64 也讓我想到好像至今沒有真的了...

Learn More 2 0Feb 22 '21

見令如見人,介紹 JWT

JWT是 JSON Web Tokens 的縮寫。 最近工作上需要用 JWT 來互傳資訊, 覺得這東西用起來是滿簡單的。 只是結合多個概念,一開始不是很好懂,紀錄下理解的過程。 最後再介紹利用 jwt...

Learn More 6 4Feb 21 '21

Rails 4 升級至 6 心得分享

分享最近把專案從 Rails 4.2 升級到 6.0的心得。專案是公司內部用的系統。 TL;DR Upgrading Ruby on Rails — Ruby on Rails...

Learn More 0 0Feb 16 '21

I just finished 4 PRs! hacktoberfest!

Although the approved PRs are still maturing, I'm happy that I did it! I'm a Rails developer for ma...

Learn More 3 0Oct 24 '20