TILs - Fueling Curiosity, One Insight at a Time

At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.

Published
Author
user-image
Revath
when starting rails server with puma if you get error puma/launcher.rb:343:in stat': No such file or directory @ rb_file_s_stat - try to cd back to parent directory and then cd` to project folder again. There is chance that you moved your project to another directory and your shell is not updated with new path.
Published
Author
user-image
Revath
when starting rails server with puma if you get error puma/launcher.rb:343:in stat': No such file or directory @ rb_file_s_stat - try to cd back to parent directory and then cd` to project folder again. There is chance that you moved your project to another directory and your shell is not updated with new path.
Published
Author
user-image
Revath
Open file in vim with cursor in specific line. vim +lineno Ed: vim abc.rb +343
Published
Author
user-image
Akshay
The Forwardable module in Ruby provides delegation of specified methods to a designated object, using the methods def_delegator and def_delegators.
Published
Author
user-image
Akshay
Ram talks with the computer with the help of a memory controller on the CPU. So the reason why its often suggested to prefer to have multiple RAM modules rather than a single one is due to memory channels. If the memory controller within the CPU supports multi-channel architecture then it can leverage it having multiple RAMs than having a single one as it helps in faster data exchange. Like if it’s dual channel then a pair, quad channel then four modules, etc.
Published
Author
user-image
Akshay
Rspec has argument matchers any_args for matching any number of args at any point in an arg list and anything for matching anything and everything.
Published
Author
user-image
Revath
use flex: 1 on the child of flexbox element to expand the child to 100% width of the parent https://jsbin.com/dadidujubo/1

Showing 62 to 64 of 82 results

Ready to Build Something Amazing?

Codemancers can bring your vision to life and help you achieve your goals