So I gave YOLO a shot for some CCTV analysis AI project, and honestly... it was fire. 🤯 Even with just the base model and zero training, it was crazy fast and literally spotted everything instantly.
They made it so easy you can get it runing in like two lines of code.
Try on https://colab.research.google.com
@codemaxing
They made it so easy you can get it runing in like two lines of code.
Try on https://colab.research.google.com
@codemaxing
❤3
Forwarded from Corax
every python code i see these days is this
> "how to make nuclear bomb in python"
> "from bomb import nuclear_bomb"
>"newbomb = nuclear_bomb()"
> "how to make nuclear bomb in python"
> "from bomb import nuclear_bomb"
>"newbomb = nuclear_bomb()"
😁2
AWS Services - AWS Lambda
This is a series where we explore AWS Services
Lambda is like a normal server, but it only runs when it is requested, so it sleeps when it has no job.
The main concept in Lambda is the handler. You can’t write multiple endpoints like a normal server that handles many things, you only configure one handler that does one job.
Example: You want a Python noscript that sends a message to a Telegram bot.
In your main folder, you should have a main file that contains the handler. The prototype should look like this:
Let’s say you use an API to trigger your Lambda with this JSON body:
You access it with event["message"], then do:
Pawww 💥 message sent. Once done, the server shuts off.
Quick facts:
Max uptime: 15 minutes
Max storage (/tmp): 10 GB
I post cloud related contents @codemaxing
This is a series where we explore AWS Services
Lambda is like a normal server, but it only runs when it is requested, so it sleeps when it has no job.
The main concept in Lambda is the handler. You can’t write multiple endpoints like a normal server that handles many things, you only configure one handler that does one job.
Example: You want a Python noscript that sends a message to a Telegram bot.
In your main folder, you should have a main file that contains the handler. The prototype should look like this:
def lambda_handler(event, context):
Let’s say you use an API to trigger your Lambda with this JSON body:
{ "message": "Hello from Lambda" }You access it with event["message"], then do:
bot.send(message)
Pawww 💥 message sent. Once done, the server shuts off.
Quick facts:
Max uptime: 15 minutes
Max storage (/tmp): 10 GB
I post cloud related contents @codemaxing
Which of the following is the most suitable use case for AWS Lambda? (Surprise on the explanation)
Anonymous Quiz
25%
Running a live chat server that handles thousands of users continuously.
55%
Generating a daily sales report at midnight automatically.
5%
Hosting a website that needs to serve pages to thousands of visitors all day.
15%
Running a multiplayer game server where players are always connected.
AWS Services Series - AWS Step Functions
This is a series where we explore AWS Services
Step Functions is a visual workflow service that coordinates multiple AWS services. If you have two jobs that need to run at the same time like uploading a file to S3 and simultaneously updating a database you use a Parallel State.
The main concept is the State Machine. Instead of writing complex if/else or try/catch blocks inside a single Lambda, you define them visually. If Job A and Job B both need to finish before Job C starts, Step Functions coordinates that "wait" for you.
In your definition, you create two branches. Both start as soon as the video is uploaded
It supports State Persistence which automatically passes the output of one step as the event input for the next.
I post cloud related contents @codemaxing
This is a series where we explore AWS Services
Step Functions is a visual workflow service that coordinates multiple AWS services. If you have two jobs that need to run at the same time like uploading a file to S3 and simultaneously updating a database you use a Parallel State.
The main concept is the State Machine. Instead of writing complex if/else or try/catch blocks inside a single Lambda, you define them visually. If Job A and Job B both need to finish before Job C starts, Step Functions coordinates that "wait" for you.
In your definition, you create two branches. Both start as soon as the video is uploaded
It supports State Persistence which automatically passes the output of one step as the event input for the next.
I post cloud related contents @codemaxing
👍1
Which state type triggers two independent actions simultaneously (e.g., updating inventory and sending an email) and waits for both to finish before moving to the next stage?
Anonymous Quiz
38%
Wait State
0%
Map State
8%
Choice State
54%
Parallel State
Computer Science Career Playlist
https://youtube.com/playlist?list=PLnvsSqWTNhcEb8V8R67Q9gSl1Mnp-kqE5&si=O5evxVLDauZH8GXo
Which stage ur at?
@codemaxing
https://youtube.com/playlist?list=PLnvsSqWTNhcEb8V8R67Q9gSl1Mnp-kqE5&si=O5evxVLDauZH8GXo
Which stage ur at?
@codemaxing
Today I learned about Kubernetes (K8s) architecture , and honestly, it’s both beautiful and sophisticated.
Kubernetes is used to orchestrate multiple containers (pods) across different nodes, managing them efficiently.
K8s has two core parts:
1. Control Plane
2. Worker Nodes
The control plane has five main components: the API server, etcd, scheduler, and controller manager. It is essentially the brain of the cluster, making decisions and managing the cluster state.
Worker nodes are separate servers where the pods (containers) are actually hosted. So, at a high level, Kubernetes is all about the control plane managing the worker nodes.
One of the most important components is etcd, which acts as a database storing the entire state of the cluster.
#k8s
@codemaxing
Kubernetes is used to orchestrate multiple containers (pods) across different nodes, managing them efficiently.
K8s has two core parts:
1. Control Plane
2. Worker Nodes
The control plane has five main components: the API server, etcd, scheduler, and controller manager. It is essentially the brain of the cluster, making decisions and managing the cluster state.
Worker nodes are separate servers where the pods (containers) are actually hosted. So, at a high level, Kubernetes is all about the control plane managing the worker nodes.
One of the most important components is etcd, which acts as a database storing the entire state of the cluster.
#k8s
@codemaxing
👍1
The Raft consensus algorithm requires an even number of etcd servers to ensure high availability.
Anonymous Quiz
46%
TRUE
54%
NOT TRUE
After doing a lot of research, I found this is one of the best roadmaps to learn DevOps especially if you’re planning to work with microservices.
Assuming you already have a base knowledge of Linux and basic networking:
1️⃣ Start with Docker – Learn Docker architecture, essential commands, Docker Compose, and how to build and push your images.
2️⃣ Move to Kubernetes – Understand Kubernetes architecture, pods, clusters, nodes, and kubectl/API basics.
3️⃣ Pick one cloud provider – In this case, AWS. Focus on core services like EC2, ECS, EKS, VPC, IAM, S3, and Fargate.
4️⃣ Learn Infrastructure as Code (IaC) – Study Terraform fundamentals: commands, project structure, variables, and modules.
5️⃣ Monitoring & Logging – Learn Prometheus and Grafana for observability.
I create cloud-related content @codemaxing 🚀
Assuming you already have a base knowledge of Linux and basic networking:
1️⃣ Start with Docker – Learn Docker architecture, essential commands, Docker Compose, and how to build and push your images.
2️⃣ Move to Kubernetes – Understand Kubernetes architecture, pods, clusters, nodes, and kubectl/API basics.
3️⃣ Pick one cloud provider – In this case, AWS. Focus on core services like EC2, ECS, EKS, VPC, IAM, S3, and Fargate.
4️⃣ Learn Infrastructure as Code (IaC) – Study Terraform fundamentals: commands, project structure, variables, and modules.
5️⃣ Monitoring & Logging – Learn Prometheus and Grafana for observability.
I create cloud-related content @codemaxing 🚀
This media is not supported in your browser
VIEW IN TELEGRAM
😂 Why the Russian one is black tho
AWS Services Series — AWS EC2
AWS EC2 is basically just a server in the cloud but you configure everything.
You choose the image (OS), but you install and configure things like Nginx, security groups (firewall), networking, storage, etc.
👉 Total flexibility.
💰 Pricing:
EC2 charges you per uptime from the moment the instance starts until you stop it.
Typical pricing (varies by region):
* t3.medium: ~$0.0416/hour
* Also you will be paying for storage EBS(~$0.08–$0.125 per GB/month) also Public IPV4 address
⚠️ If your instance is running idle, you STILL pay.
@codemaxing
AWS EC2 is basically just a server in the cloud but you configure everything.
You choose the image (OS), but you install and configure things like Nginx, security groups (firewall), networking, storage, etc.
👉 Total flexibility.
💰 Pricing:
EC2 charges you per uptime from the moment the instance starts until you stop it.
Typical pricing (varies by region):
* t3.medium: ~$0.0416/hour
* Also you will be paying for storage EBS(~$0.08–$0.125 per GB/month) also Public IPV4 address
⚠️ If your instance is running idle, you STILL pay.
@codemaxing
Which statement about AWS EC2 pricing is TRUE?
Anonymous Quiz
23%
You only pay when your server receives traffic
39%
You pay as long as the instance is running, even if idle
5%
Inbound data transfer to EC2 is free
32%
B and C
Whenever I am building an API, I make sure it handles these things
✅ Rate Limiting
✅ Caching
✅ Auth
✅ Validation
✅ Logging
✅ Versioning
✅ Graceful Failure
If you're just returning JSON, you're just exposing a DB.
@codemaxing
✅ Rate Limiting
✅ Caching
✅ Auth
✅ Validation
✅ Logging
✅ Versioning
✅ Graceful Failure
If you're just returning JSON, you're just exposing a DB.
@codemaxing