- Published
- Author
- Codemancers
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
- Codemancers
staging hunks with fugitive in vim http://vimcasts.org/episodes/fugitive-vim-working-with-the-git-index/
- Published
- Author
- Iffyuva
This accessibility cheatsheet is pretty good https://bitsofco.de/the-accessibility-cheatsheet/
- Published
- Author
- Codemancers
don't use new webpack.optimize.ModuleConcatenationPlugin() in development env, causes memory leak in webpack 3 and build fails
- Published
- Author
- Codemancers
rspec-rails will lazy load puma from version 3.7.1
- Published
- Author
- Codemancers
[ANN] used in mailing list is an abbreviation of 'Announcement'
- Published
- Author
- Codemancers
https://eli.thegreenplace.net/2006/04/18/understanding-ruby-blocks-procs-and-methods covers very basic and interesting stuff.
- Published
- Author
- Codemancers
gitlab does triple dot for compare instead of double dot
- Published
- Author
- Codemancers
Sometimes we may need to create a new github/bitbucket account for a new client project. Because we've already linked out laptop's SSH key to our original account, we can't link it again to this new account. In such cases, instead of using tools to switch ssh keys, you can generate a keypair just for this project and set an environment variable
GIT_SSH_COMMAND='ssh -i new_ssh_keys_dir/id_rsa' and run git commands like usual. Bonus tip: Use direnv to automatically load this environment variable when navigating to the project directory.- Published
- Author
- Codemancers
Rails encrypted secrets https://www.engineyard.com/blog/encrypted-rails-secrets-on-rails-5.1
- Published
- Author
- Codemancers
MySQL does not support transactional ddl. https://dev.mysql.com/doc/refman/5.7/en/cannot-roll-back.html
- Published
- Author
- Codemancers
Omniauth setup phase - request time modification of strategy https://github.com/omniauth/omniauth/wiki/setup-phase
- Published
- Author
- Codemancers
- Published
- Author
- Codemancers
- Published
- Author
- Codemancers
You can create a multiline regex in Elixir using r""" for example:
```
assert yml_file_content =
~r"""
foo:
environment:
- VIRTUAL_HOST=[a-z]{10}.127.0.0.1.xip.io
bar:
environment:
VIRTUAL_HOST: [a-z]{10}.127.0.0.1.xip.io
"""
```
```
assert yml_file_content =
~r"""
foo:
environment:
- VIRTUAL_HOST=[a-z]{10}.127.0.0.1.xip.io
bar:
environment:
VIRTUAL_HOST: [a-z]{10}.127.0.0.1.xip.io
"""
```
- Published
- Author
- Codemancers
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/
- Published
- Author
- Iffyuva
capistrano3-puma has become so advanced that it can now generate nginx configuration https://github.com/seuros/capistrano-puma#nginx This is so helpful!
- Published
- Author
- Iffyuva
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- Published
- Author
- Codemancers
- Published
- Author
- Codemancers
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)
Showing page 39 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.