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
Soniya Rayabagi
How we can change the default Sqlite database to Postgresql database in Ruby on Rails ,
• Make sure homebrew is installed .
• Install Postgresql , brew install postgresql
• Start the postgresql , brew services start postgresql
• Make changes to postgresql database in the database.yml file
• Add rails db:seed to ensure your data gets reset and is visible on the browser .
Published
Author
user-image
Soniya Rayabagi
The underscore ( _ ) in Rails ,
simply gives you the return value of the last evaluation made in the console.
irb(main):015> movie.title
=> "Avengers: Endgame"
irb(main):016> _
=> "Avengers: Endgame"
Published
Author
user-image
Nisanth
AWS (KMS ) Key Managament Service

We are using Key Management Service to encrypt sensitive data stored in an S3 bucket, you can use KMS to create a key, and then configure the S3 bucket to use that key for encryption. This way, only authorized users with the right permissions can access and decrypt the data.
Published
Author
user-image
Nisanth
AWS (KMS ) Key Managament Service

We are using Key Management Service to encrypt sensitive data stored in an S3 bucket, you can use KMS to create a key, and then configure the S3 bucket to use that key for encryption. This way, only authorized users with the right permissions can access and decrypt the data.
Published
Author
user-image
Soniya Rayabagi
ParameterMissing we can resolve error , param is missing or the value is empty this indicates that we should give the proper name value to params which is same assign to our model .
Published
Author
user-image
Soniya Rayabagi
Routes - Linking Pages where we can ,
Link to Index Page: Use the link_to helper in the view to create a link that navigates to the index page, displaying a list of items.
Link Index Page to Show Page: Utilize the link_to helper in the index page to link each item to its respective show page, allowing users to view detailed information about each item.
Add a Root Route: To replace the default Rails welcome page , with usually the page that shows a list of items or the index page by defining a root route in the routes file.
Published
Author
user-image
Soniya Rayabagi
To add the image or logo which are inside app/assets/images we need not to copy the path , we can just copy the name of an image 'logo.png' and put inside the image_tag <%= image_tag("logo.png") %> when you run the server the logo will be visible on the browser .
Published
Author
user-image
Soniya Rayabagi
models generating a model and migration , running a migration, CRUD records in the database different ways.
Connecting MVC the goal is to show information that's in the database.
Published
Author
user-image
Soniya Rayabagi
models generating a model and migration , running a migration, CRUD records in the database different ways.
Published
Author
user-image
Ayush Srivastava
System Analyst
Critical Rendering Path

In each HTTP request that browser makes for an HTML page, the server returns the data into bytes, these bytes are then converted to Characters, Tokens, Nodes, and finally DOM (Document Object Model).

Once the DOM is generated, the parsing of the page starts, the HTML contains CSS code or links, JavaScript code or links, media elements such as images, etc, each of them is then parsed separately and plugged together to create a render tree, which is then converted to the layout and then is painted on the screen at the refresh rate of 60 frames per second.

This complete process is called a critical rendering path. Optimizing the critical rendering path helps to load the web page faster and without glitches or janks.

Showing page 40 of 83

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.