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
Iffyuva
GCE has quotas on your account. You can see them here https://console.cloud.google.com/iam-admin/quotas and you need to mail them if you wish to increase any of your resources under your project. So, you can't just scale up to whatever scale you would like to!
Published
Author
user-image
Codemancers
rails 5 has config.action_view.automatically_disable_submit_tag set to true by default
Published
Author
user-image
Codemancers
Rails ActionController provides :stale? and :fresh_when methods which can be use to set HTTP_IF_NONE_MATCH and HTTP_IF_MODIFIED_SINCE headers on the browser. This helps the client to check whether the page has been modified. Response freshness is checked by matching Last-Modified and ETag from the server against the client request's HTTP_IF_MODIFIED_SINCE and HTTP_IF_NONE_MATCHheaders. If it matches, then the server responds with 304 (“not modified”) status code. This will make the client to make use of cached copy of the page - thus saving us from the time spent in generating the response.
Published
Author
user-image
Codemancers
rspec has a --bisect flag that helps to chase down order-dependent test failures. It will figure out the minimum number of tests when run in order will produce the test failure.
Published
Author
user-image
Iffyuva
Docker images for rails will be around 500Mb on Alpine linux. Sounds a lot. Whereas Alpine bases phoenix/elixir images are typically under 100Mb
Published
Author
user-image
Codemancers
as of webpack 4.x you can pass function for output.filename which will get the input chunk as it's param and return a string
Published
Author
user-image
Iffyuva
Use DISABLE_DATABASE_ENVIRONMENT_CHECK env variable to get rid of those crazy migrations check introduced by Rails 5!
Published
Author
user-image
Codemancers
~/.local/share/trash
Published
Author
user-image
Codemancers
form.submit() won't run the HTML5 validations. if you want to programatically run HTML5 validation use form.checkValidity() and form.reportValidity() EG: https://jsbin.com/huqana
Published
Author
user-image
Codemancers
The EXPLAIN statement provides information about how MySQL executes statements i.e MySQL explains how it would process the statement, including information about how tables are joined and in which order
Published
Author
user-image
Codemancers
For radio buttons, checkboxes ..., Materialize expects the input tag to appear before the label tag. Otherwise only the label will be rendered.
Published
Author
user-image
Codemancers
Ruby by default has certain mutable and immutable object types. Booleans and numbers for example are immutable, and this in turn affects the way how a variable is passed to a method i.e pass by value or reference.

Showing page 33 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.