engineering

Como Escanear Portas em um Website com Python

Como Escanear Portas em um Website com Python

Você já deve ter ouvido falar do Nmap e de escaneamento de portas em servidores, bem, nesse script feito em Python vamos fazer algo bem semelhante, vamos verificar as portas abertas em websites. Vamos explorar um pouco de maneira simples e fácil de entender Introdução Portas abertas em um servidor são como portas de entrada para diferentes serviços. Saber quais portas estão abertas pode ajudar você a entender melhor a segurança do seu site ou simplesmente satisfazer sua curiosidade sobre o funcionamento interno de um site. Vamos mergulhar em um script que escaneia essas portas usando Python. Código completo import…
Read More
[Game of Purpose] Day 39

[Game of Purpose] Day 39

Today I managed to make the drone properly spawn granades. When dropping the granade it correctly inherits drones velocity and angular momentum. I also organized my Drone's Event graph into smaller graphs and do a Sequence calling each one. Tomorrow I plan to make the explosions do damage to objects. For that I watched a 1h long Chaos Destruction Series by BuildGamesWithJon. Source link lol
Read More
Studying for the AWS SAA

Studying for the AWS SAA

With countless posts on the internet explaining the "best" way to study for the AWS Solutions Architect Associate exam, I thought I would add my own experience to the mix. TLDR: Adrian Cantrill's SAA course Tutorial Dojo's practice exams: One question on the exam exactly matched Review Set 7. Many services like Karpenter were covered, which I either forgot or didn't remember from Cantrill's course. Start with Review Mode, complete each exam in an hour and a half. Study incorrect answers using flashcards or another easy-to-review method. I've been dabbling in the DevOps field for a couple of years now.…
Read More
Differences between Asp.net and Asp.net Core

Differences between Asp.net and Asp.net Core

ASP.NET and ASP.NET Core are both frameworks for building web applications and services, but they have several key differences. Here are the main distinctions between the two: 1. Cross-Platform Support ASP.NET: Primarily designed to run on Windows. It can run on Windows Server and Internet Information Services (IIS). ASP.NET Core: Cross-platform, running on Windows, macOS, and Linux. It supports different web servers like Kestrel and IIS and can run in containers and cloud environments. 2. Performance ASP.NET: Performance is good but not as optimized as ASP.NET Core. ASP.NET Core: Highly optimized for performance. It is known for its high throughput…
Read More
Dynamic DOM Element Creation :

Dynamic DOM Element Creation :

In HTML Create parent div <!--------------- Parent div --------------> <div id="parent" class="card m-5 mx-auto" > <h1>Hello Template</h1> </div> Create template: <!----------------- Template tag ------------> <template id="template"> <div class="card d-flex"> <img id="temp-img" src="https://picsum.photos/id/293/100/100" alt="smth"> <h1>Template title</h1> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi, architecto dolor eius fugiat incidunt ipsa iure iusto officiis recusandae rerum!</p> </div> </template> In CSS: #parent{ width: 43%; } .card { width:500px; padding: 20px; } .card h1{ font-size: 50px; } #temp-img { margin: 0 auto; width: 400px; height: 300px; } In Javascript: Call from HTML const parent = document.querySelector('#parent'); const template = document.querySelector('#template'); Clone the template…
Read More
alternate way of doing word split/phrase segmentation in python

alternate way of doing word split/phrase segmentation in python

Doing word split with recursion felt a bit complex to me , so I tried to do it in an easier way. The Hard Way (recursion) -- def word_split(phrase,list_of_words, output = None): if output is None: #Base Case / Initial call output = [] for word in list_of_words: if phrase.startswith(word): output.append(word) return word_split(phrase[len(word):],list_of_words,output) # Recursive Call return output # Result Enter fullscreen mode Exit fullscreen mode gives The Easy Way (indexing/for loop) - def word_split_2(phrase, word_list): output = [] for i in word_list: if i in phrase: output.append(i) return output Enter fullscreen mode Exit fullscreen mode Source link lol
Read More
Use AWS Generative AI CDK constructs to speed up app development

Use AWS Generative AI CDK constructs to speed up app development

Assemble and deploy the infrastructure for a RAG solution using AWS CDK for Python In this blog, we will use the AWS Generative AI Constructs Library to deploy a complete RAG application composed of the following components: Knowledge Bases for Amazon Bedrock: This is the foundation for the RAG solution. OpenSearch Serverless collection: It supports the vector search collection type that provides similarity search capability. An S3 bucket: This will act as the data source for the Knowledge Base. AWS Lambda function (written in Python) along with an API Gateway that uses the RetrieveAndGenerate API to query the knowledge base…
Read More
GenServer, a simple way to work with Elixir process.

GenServer, a simple way to work with Elixir process.

In this topic, I have talk about Elixir process now I talk about GenServer in Elixir. GenServer is a template/skeleton for work with process like a server/client model. It's easy to add to Supervisor and easy to build a robust system (a super weapon in Elixir/Erlang world). GenServer included 2 parts, one is server side it's included in language, an other part is client side (our code, for implement a GenServer). Of course, we can self made an our GenServer but with exist GenServer we have a lot of benefits like: handel errors, support Supervisor, don't need effort to wrap/handle…
Read More
I made a Discord bot with lmstudio.js!

I made a Discord bot with lmstudio.js!

I have been using LM Studio as my main driver to do local text generation and thought it would be cool to integrate it into a discord bot. The post is a bit long due to a lot of the setup so feel free to skip straight to the code: lmstudio-bot github LM Studio https://lmstudio.ai/ allows you to run LLMs on your personal computer, entirely offline by default which makes completely private. Discord https://discord.com/ is used by a lot of different communities including gamers and developers! It gives users a place to communicate about different topics Note: For clarity I…
Read More
Understanding Android Application Lifecycle and Process

Understanding Android Application Lifecycle and Process

Let’s dive into the details of how Android manages processes, components, and the overall lifecycle of an app. Introduction Understanding how Android manages processes, components, and the overall lifecycle of an application is fundamental for any developer creating robust and efficient apps. This article delves into the core concepts behind process creation, control, and sandboxing within the Android system. It also explores the lifecycles of key components like Activities, Services, and BroadcastReceivers, providing a roadmap for effective component management. Processes in Android Process Creation: Every Android application runs in its own Linux process. When an app's code needs to run…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.