blog-logo

Notes

Small, bite sized content I've written. For longer, more thorough writing — peruse the articles section.

Browse by topic

Run Cron Job Manually

Published by Prabin Poudel 6 min read
cover: Run Cron Job Manually
Cron Jobs run at specific time but what if you want to run them manually and immediately? In this blog we will look into a solution using which we can run any of our Cron Jobs manually.

Update Multiple Records at Once in Rails

Published by Prabin Poudel 3 min read
cover: Update Multiple Records at Once in Rails
We can update static values of existing records with the method update_all. But what if we want to update records with different value for different attributes? In this blog, we will be looking at the solution on updating multiple records at once in Rails when each record can have different attribute and value.

Override Default Date Format in Rails Admin

Published by Prabin Poudel 2 min read
cover: Override Default Date Format in Rails Admin
It's always tricky when we need to override default behavior of engine/gems. It was the same case with date format. Rails Admin uses long date format as a default value for formatting the dates, to override the format we can add keys for the long date format in our locale files

[Fix] Rails server is already running

Published by Prabin Poudel 2 min read
cover: [Fix] Rails server is already running
A server is already running. Check .../tmp/pids/server.pid This error means the rails server suspended or stopped abruptly, due to which background process is already running on the port that rails server was previously running on.

[Fix] Issue while installing ruby with rbenv in M1 Mac

Published by Prabin Poudel 1 min read
cover: [Fix] Issue while installing ruby with rbenv in M1 Mac
When installing Ruby with rbenv in M1 Mac, it throws Build fail error with message 'Inspect or clean up the working tree error ...' Today we will look at how we can resolve the error and install the ruby with rbenv in our M1 Mac.