manu
Wed Aug 23 2017
The best way to parse time is to use Time.zone.parse (which will use the time zone specified in config.time_zone) instead of just Time.parse (which will use the computer’s time zone) courtesy: https://www.varvet.com/blog/working-with-time-zones-in-ruby-on-rails/
yuva
Tue Aug 22 2017
capistrano3-puma has become so advanced that it can now generate nginx configuration https://github.com/seuros/capistrano-puma#nginx This is so helpful!
yuva
Tue Aug 22 2017
from ps man pages, if you want to list pids of particular process just use ps -C <process-name> -o pid=
. Damn handy when it comes to looping and killing processes
manu
Tue Aug 22 2017
mrinmoy
Sat Aug 19 2017
in js the default sort order is according to string Unicode code points, source https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/sort (shrug)
manu
Fri Aug 18 2017
Rails prepend_before_action
to chain before action callbacks.
akshay
Wed Aug 16 2017
ActiveSupport::Autoload helps to require the file and loads only when needed
yuva
Mon Aug 14 2017
ActiveStorage supports mirror service, one can upload files to multiple storages in 1 shot
mrinmoy
Fri Aug 11 2017
mod of negative numbers are complicated :P ruby, python, haskell returns correct value, cpp and js does not.
yuva
Fri Aug 11 2017
How to get child pids of a process given pid? pgrep -P <pid>
Showing 60 to 62 of 65 results