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.

Jan 8, 2024
AWS DeepLens is a deep learning-enabled video camera designed for developers to get hands-on experience with machine learning. What makes it intriguing is that it brings machine learning capabilities directly to the edge. With DeepLens, you can build and deploy deep learning models on the device itself, allowing it to process and analyze video streams in real-time
nisanth
Nisanth
Dec 26, 2023
we need to add chat:write scope in bot token scopes, so that our bot can send messages in the channel when it is mentioned.
Satya
Satya
Dec 26, 2023
with modern Sign in with Slack we need to request the OpenID scopes—openid, email, and profile.
Satya
Satya
Dec 26, 2023
writing integration specs using RSpec and Capybara.
Satya
Satya
Dec 26, 2023
we need to add the user scopes email & profile when we are using the slack openid.connect.userInfo api method.
Satya
Satya
Dec 26, 2023
slack events api performs the events within 3 seconds if any exception happens then it retries again when the app is mentioned again.
Satya
Satya
Dec 26, 2023
we can use event subscription in our slack app to listen to events like mentioning the app and then the app will perform the action based on the event. For eg: like the way i did here.
For more info , please refer to -> https://api.slack.com/apis/connections/events-api
Satya
Satya
Dec 24, 2023
In Dart, metadata provides additional information about the code. It begins with the character @ followed by either a reference to a compile-time constant or a call to a constant constructor.

There are four commonly used annotations in Dart:

@Deprecated: This is used to indicate that a feature/method/class is deprecated and should not be used because it will be removed in future versions.
@deprecated: This is similar to @Deprecated, with the difference being that a message can be passed with @Deprecated.
@override: This is used to indicate that a method is intended to override a method from a superclass.
@pragma: This is used to provide additional information to the Dart compiler.
sujay
Sujay
Dec 21, 2023

The groupBy method introduced in ES12 can be used to group elements based on the values returned by the specified callback function. This can be useful when we want to categorize items into distinct groups.

For example, consider a list of transactions and we want to group them by the account type:




const transactions = [
 { account: 'savings', amount: 12, date: '2023-01-01' },
 { account: 'checking', amount: 200, date: '2023-01-01' },
 { account: 'savings', amount: 500, date: '2023-02-01' },
 { account: 'checking', amount: 300, date: '2023-02-01' },
];


We can use groupBy to group these transactions by their account type:



const groupedTransactions = Object.groupBy(transactions, ({ account }) => account);


The output will be:



{
 savings: [
 { account: 'savings', amount: 12, date: '2023-01-01' },
 { account: 'savings', amount: 500, date: '2023-02-01' }
 ],
 checking: [
 { account: 'checking', amount: 200, date: '2023-01-01' },
 { account: 'checking', amount: 300, date: '2023-02-01' }
 ]
}

ashwanikumarjha
Ashwani Kumar Jha
Senior System Analyst
Dec 21, 2023
To see all commits on all branches that have not yet been pushed we can use this git cmd


git log --branches --not --remotes

rishav.raj
Rishav Raj
System Analyst

Showing 35 to 37 of 82 results

Ready to Build Something Amazing?

Codemancers can bring your vision to life and help you achieve your goals