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.
- if your node script exited with
Returned: code: 137 signal: null, 137 mean it got killed by another process and high chance that it should beOut of Memoryissue. - We can filter sensitive parameters from getting logged by modifying config like
Rails.application.config.filter_parameters += [:password, :credit_card]within automatically createdfilter_parameter_logging.rbfile inconfig/initializersfolder. xdotool type $(echo "A B C")will type without spaces. if you need to retain spacexdotool type "${echo "A B C"}"- graphql request with 1) curl :
curl -X POST http://localhost:3002/graphql -H 'Content-Type: application/json' -d '{"query": "{goalTypes{id}}"}'2) httpie :http POST http://localhost:3002/graphql query="{ goalTypes{id}}" - graphql request with 1) curl :
curl -X POST http://localhost:3002/graphql -H 'Content-Type: application/json' -d '{"query": "{goalTypes{id}}"}'2) httpie :http POST http://localhost:3002/graphql query="{ goalTypes{id}}" - For setting up absolute path for create-react-app with flow follow these instructions https://itnext.io/configure-absolute-paths-with-create-react-app-and-flow-e4b8922676a2
- when starting rails server with puma if you get error
puma/launcher.rb:343:instat': No such file or directory @ rb_file_s_stat -try tocdback to parent directory and thencd` to project folder again. There is chance that you moved your project to another directory and your shell is not updated with new path. - when starting rails server with puma if you get error
puma/launcher.rb:343:instat': No such file or directory @ rb_file_s_stat -try tocdback to parent directory and thencd` to project folder again. There is chance that you moved your project to another directory and your shell is not updated with new path. - Open file in vim with cursor in specific line.
vim <file> +linenoEd:vim abc.rb +343 - The Forwardable module in Ruby provides delegation of specified methods to a designated object, using the methods
def_delegatoranddef_delegators. - 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.
- to verify certs generated by letsencrypt, we can do
openssl x509 -in server.crt -text -noout. More info here: https://support.asperasoft.com/hc/en-us/articles/216128468-OpenSSL-commands-to-check-and-verify-your-SSL-certificate-key-and-CSR - to verify certs generated by letsencrypt, we can do
openssl x509 -in server.crt -text -noout. More info here: https://support.asperasoft.com/hc/en-us/articles/216128468-OpenSSL-commands-to-check-and-verify-your-SSL-certificate-key-and-CSR - Rspec has argument matchers
any_argsfor matching any number of args at any point in an arg list andanythingfor matching anything and everything. - use
flex: 1on the child of flexbox element to expand the child to 100% width of the parent https://jsbin.com/dadidujubo/1 - Capybara defaults to requiring an href attribute exist when finding links. To handle such cases we can pass
href: nilas an option thus enabling to find it. - Rails has an ActiveSupport::Notifications module which is a part of its core instrumentation API. This API allows users to define hooks on events. With the ActiveSupport::Notifications you can instrument an event by simply calling
instrumentwith a name, payload and a block. The notification will be sent after the block returns. Now all you need is to definesubscribemethod which consumes the event based on event name and you can define your on callback code here, sort of like a Pub/sub pattern. - related to
GIT_SSH_COMMAND(http://codemancers.littil.io/?q=GIT_SSH_COMMAND) if you are using hub + multiple account. you can useHUB_CONFIG=~/.config/hub-workfor setting config for work account. source: https://github.com/github/hub/issues/1300#issuecomment-318872894
Showing page 32 of 42
Your competitors are already using AI. The question is how fast you want to unlock the value.
Don't know where to start?
AI is everywhere but it's unclear which investments will actually move your metrics and which are expensive experiments.
Your data isn't ready
Most AI projects fail at the data layer. Pipelines, quality, access all need work before LLMs can deliver value.
Internal teams are stretched
Your engineers are shipping product. They don't have capacity to also become AI specialists with production-grade experience.
Legacy systems block everything
Aging, undocumented codebases make AI integration slow, risky, and expensive. They need to move first.
Don't worry. We've got you covered.
Start with the audit.