preloader
軟體工程 Associate Devise with Doorkeeper gem for OAuth | 結合Devise帳戶認證和Doorkeeper的OAuth Client認證

If you want to associate your user model, which are built by Devise gem, with OAuth clients, which are authenticated and authorized by Doorkeeper gem, you should follow below instructions. Below instructions come from wiki pages of Doorkeeper gem. Command for Database changes rails generate doorkeeper:application_owner rake db:migrate Configuration at config/initializers/doorkeeper.rb Uncomment or add this statement into block of Doorkeeper.

read more
軟體工程 Put javascript codes at last part of body area in normal situations | 將Javascript code放在body標籤最後

I learn a lesson that putting javascript codes/files into last part of body area in normal situations because javascript codes can actually access DOM in body tag area. If I put them in header area of html file, it won’t work as I expect. According to my friends' explanations, it runs first before the body renders complete in normal scenarios. I learn the lesson when I was trying to generate

read more
心得 Deploy Notice for Ruby on Rails app beginner | 部署Ruby on Rails app應學習的事情

This article is written for Rails beginners when he/she want to deploy an app. From my experience, many things must be noticed and fixed, whose range from Ubuntu, RVM, Apache, Passenger, Postgres, Git, Capistrano and GitHub.com. The following are indexes for problems, solutions and resources I had faced. It might evolve with times change. Ubuntu List packages you have installed to a machine. Command: dpkg -l | grep {packageFullnameorPartname} Change

read more
軟體工程 Remove sensitive information from your git repository | 從Git 專案移除掉敏感資訊

If you accidently add sensitive information to your repository like password and detailed configurations, you should use follow command to remove them from the repository. More than that, you should change sensitive information for remote machines with your colleagues. Substitute names of other files you want with below text within background color is gray. 如果你不小心放入敏感資訊到你的G

read more
軟體工程 Grape-rails-routes gem的使用疑問

It’s handy to use Grape-rails-routes gem. But I have a question about that. Why should I need to open the routing page localhost:3000/rails/info/routes_with_grape of grape-rails-routes gem first after I launching rails service and before using OAuth clients? If I don’t do this, my Oauth clients can’t access API services even access tokens in my clients are valid. README.markdown of Grape-rails-routes doesn’t mention that. Until now, I still find no answer

read more

About

Howard Lee is a Staff Software Engineer based in Taipei, specializing in frontend architecture, CI/CD, and production-quality engineering for enterprise web applications. With 13+ years of software development experience, Howard has worked across B2B SaaS, IoT energy-management platforms, online travel marketplaces, and Android applications. His work focuses on modernizing large frontend systems, improving delivery quality, and building reliable product workflows with automated testing, observability, and practical cloud/platform integration. Core Expertise Frontend architecture: Angular 5 to 19 modernization, TypeScript, JavaScript, React, Next.

Know More

Tag

Social