VIEW MORE ARTICLES
Rinas Writes
January 23, 2022
TIL how to select values from one column without `nil` in Rails
Page.where.not(custom_domain: nil).pluck(:custom_domain)
---------------------------------------
Page.pluck(:custom_domain)![]()
screenshot from rails console
`.pluck` picks values but includes `nil` as well. So we can use `.compact`
Page.pluck(:custom_domain).compact

Recent writings
TIL: How to create new session in tmux and use ...
To create a new session in tmux tmux new -s sessionname Detach from the session crtl + b and then...
March 12, 2025
My remote work schedule
I have been working remotely for more than 5 years now. My work schedule had changed throughout ...
March 04, 2025
2025 is the year I'm going minimalist.
Sorry that's all I can share. (being a minimalist, you know... get it?) Joke aside, I have been...
January 17, 2025
Hello 2025, give me these:
Personal Health is my #1 priority this year, both mental and physical: • Go out for a walk and ...
January 07, 2025