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
Nisanth
Debugging Kubernetes pod on helm helm upgrade unleash-app-toggle . --debug Adding --debug can provide more insight if the error persists, showing exactly what values are being passed to each template. #devops #kubernetes #helm
Published
Author
Nisanth
Avoid Using Double Quotes for Environment Variables When configuring the PostgreSQL user and database names in a Helm values.yaml file, I initially wrapped the values in double quotes. This led to a frustrating issue where I couldn’t connect to the database, receiving errors that the role did not exist. The double quotes were being interpreted literally, causing mismatches in authentication. Solution: I removed the double quotes around the environment variables in my Helm chart and reapplied the configuration. This corrected the problem, and I was then able to connect successfully to the database. #devops #postgres #env
Published
Author
Sagar Ghorse
create the redis cluster from existing backup we can use snapshot_name = <name of your backyp > #devops #redis #Terraform
Published
Author
Nisanth
To find the number of pods that exist in the “dev” environment (env), you can use the kubectl get pods --selector=env=dev #devops #kubernetes
Published
Author
Sachin Kabadi
System Analyst
#nextJs #TypeScript useEffect is a hook that allows you to perform side effects in function components.
TypeScript
import React, { useState, useEffect } from 'react';function MyComponent() { const [count, setCount] = useState(0); // This effect will run only when the count state changes useEffect(() => { document.title = `You clicked ${count} times`; }, [count]); // Only re-runs when count changes return ( <div> <p>You clicked {count} times</p> <button onClick={() => setCount(count + 1)}> Click me </button> </div> );}export default MyComponent;
In the above example: • We have a component MyComponent with a state variable count and a button to increment it. • Inside the component, we use the useEffect hook to update the document title with the current count after each render. • We pass [count] as the second argument to useEffect, which means the effect will only run when the count state changes. This is because we want to update the document title only when the count changes, not on every render.
Published
Author
Sachin Kabadi
System Analyst
#nextJs #TypeScript Function Argument Deconstructing: Deconstructing function arguments can make your code cleaner and more readable.
TypeScript
// Before deconstruction const BlogPost = (props) => { const { title, content, author } = props; // Render blog post using props return ( {props.title} {props.content} Written by: {props.author} );}; // After deconstruction const BlogPost = ({ title, content, author }) => { // Render blog post with title, content, and author return ( {title} {content} Written by: {author} );};
Published
Author
Soniya Rayabagi
CMD-SHIFT-L is a great productivity booster for VS Code. Lets you select all instances of the current selection and edit with multiple cursors. #VSCodetip #ProductivityHack
Published
Author
Mahesh Bhosle
DevOps Engineer
Terraform alias is a feature that allows you to manage resources across multiple regions more efficiently. It enables you to define different configurations for resources in various regions while using the same Terraform codebase. Here's a simple example to illustrate how to use Terraform alias for multiple regions:
Code
provider "aws" { alias = "us_east" region = "us-east-1"}provider "aws" { alias = "us_west" region = "us-west-1"}resource "aws_instance" "example" { provider = aws.us_east ami = "ami-0c55b159cbfafe1f0" instance_type = "t2.micro"}resource "aws_instance" "example_west" { provider = aws.us_west ami = "ami-0c55b159cbfafe1f0" instance_type = "t2.micro"}
In this example, we define two different AWS providers with aliases us_east and us_west, representing the US East and US West regions, respectively. Then, we create instances using these providers, specifying the region-specific provider for each instance. This allows Terraform to manage resources in different regions using the same configuration file. #terraform #iac
Published
Author
Nisanth
#devops #kubernetes k9s is a powerful command-line interface (CLI) tool for Kubernetes management. It allows you to interact with Kubernetes clusters efficiently, offering features like resource viewing, log access, event monitoring, and pod command execution—all from your terminal. Install k9s using Homebrew with the command brew install k9s, and access its intuitive interface by running k9s
Published
Author
Sachin Kabadi
System Analyst
JavaScript
Spread operator in JavaScript is represented by three dots (...). It's a useful syntax for manipulating arrays and objects in various ways.Following are some of the use cases:-Spread in Arrays:-1. Copying Arrays: It allows you to create a new array by copying another array.const originalArray = [1, 2, 3];const copyArray = [...originalArray];console.log(copyArray); // [1, 2, 3]2. Concatenating Arrays: You can merge arrays together.const array1 = [1, 2, 3];const array2 = [4, 5, 6];const mergedArray = [...array1, ...array2];console.log(mergedArray); // [1, 2, 3, 4, 5, 6]3. Adding Elements to Arrays: You can add new elements to an existing array.const array1 = [1, 2, 3];const newArray = [...array1, 4, 5, 6];console.log(newArray); // [1, 2, 3, 4, 5, 6]Spread in Objects:-1. Copying Objects: It allows you to create a shallow copy of an object.const originalObj = { name: 'John', age: 30 };const copyObj = { ...originalObj };console.log(copyObj); // { name: 'John', age: 30 }2. Merging Objects: You can merge multiple objects into one.const obj1 = { name: 'John' };const obj2 = { age: 30 };const mergedObj = { ...obj1, ...obj2 };console.log(mergedObj); // { name: 'John', age: 30 }3. Adding Properties to Objects: You can add new properties to an object.const obj1 = { name: 'John' };const newObj = { ...obj1, age: 30 };console.log(newObj); // { name: 'John', age: 30 }Function Arguments:1. Spread can be used to pass an array as individual arguments to a function.const numbers = [1, 2, 3];const sum = (a, b, c) => a + b + c;console.log(sum(...numbers)); // 6
Showing page 26 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.