teleren/devto huggingface dataset:
AWS Cognito terms that confused me
Tags: aws, beginners, cloudcomputing, learning
Published: 2024-05-19 03:11:55

I made a list of terms that confused me while referring to documentation on AWS Cognito.

- APIG : Api Gateway
- Authentication : Verified the identity of the user eg are you a valid used with a proper email and password registered with the system?
- Authorization : determines their access rights eg Does this use have the privileges/rights to delete this file?
- CF : CloudFront
- Federated users : An authorised user with a single token to obtain access to other systems in a network
- Federated Identities - Identities in your AWS system having temporary access to AWS Resources like S3
- IAM : Identity and Access Management
- Identity pools : Provide temporary creds to guests or authenticated users to access AWS resources like S3, under the Cognito Service
- Policy Variables : Default or Custom mappings in the Identity pool in AWS Cognito mapping the User Pool attributes to variables that are available for use in an IAM Policy. Without these the user pool attributes are not available for any Conditional Statements in the IAM Policy
- sub : short for subject is a UUID for each Cognito User in the Cognito user Pool
- User pool : Is a user directory provided by AWS to manage user profiles under the Cognito Service

Originally posted on my [github](https://github.com/amythical/aws/blob/main/cognito/confusing-terms.md) 

Sources referred - [beabetterdev.com](https://beabetterdev.com/2022/06/26/amazon-cognito-a-complete-beginner-guide/)
测试一下买车记录
Published: 2024-05-19 02:19:51

## 买车记录



### 2024-4刚去看车

![IMG_3541](https://fastly.jsdelivr.net/gh/52chen/imagebed2023@main/uPic/IMG_3541.jpeg)



### 洗车啦

![IMG_3631](https://fastly.jsdelivr.net/gh/52chen/imagebed2023@main/uPic/IMG_3631.jpeg)

### 2024-4月周末

第一次洗完车出去晒晒吧。

![IMG_3646](https://fastly.jsdelivr.net/gh/52chen/imagebed2023@main/uPic/IMG_3646.jpeg)

### 去中医院体检

![IMG_3706](https://fastly.jsdelivr.net/gh/52chen/imagebed2023@main/uPic/IMG_3706.jpeg)

![IMG_3727](https://fastly.jsdelivr.net/gh/52chen/imagebed2023@main/uPic/IMG_3727.jpeg)
Test post 2
Published: 2024-05-19 01:50:20

---
title: Test post 2
published: true
description: 
tags: 
series: Test Series 1
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2024-05-19 01:48 +0000
---

This is a testing post
Test post 1
Published: 2024-05-19 01:50:12

---
title: Test post 1
published: true
description: 
tags: 
series: Test Series 1
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2024-05-19 01:46 +0000
---

this is a testing post
Finally Got Small Company Running with 100% AI Agents : Part 3
Tags: rag, llm, machinelearning, ai
Published: 2024-05-19 01:48:55

Witness How to Build a Business with All AI Employees

[Full Article](https://medium.com/ai-in-plain-english/finally-got-small-company-running-with-100-ai-agents-part-3-34fa2f91b943)

● First with the Confession 
I literarily burned myself in last 4 days to get this simple startup running completely using AI Agents, learned a lot in process, made a lot of mistakes, and finally got it working, yes, all Autonomous Agency !

○ Key lessons learned: 
◐ Different language models (LLMs) are needed for different AI agents.
◐ A combination of remote and local LLMs is optimal. 
◐ The backstory and task descriptions for AI agents are crucial. 
◐ Identifying the appropriate LLM for each AI agent is a vital skill.

● Lets learn our components
● Our Startup Database 
○ A robust database of potential candidates was created with the help of AI. ○ This database serves as a talent pool for simulations and future hiring decisions. 
○ Each entry represents a potential team member with their qualifications, experience, and skills.

● .env setup and Modelfile 
○ The .env file is used to configure the API keys for the language models. 
○ The Modelfile allows customization of the local language model's behavior and settings.

● Agents.py 
○ The RecruitmentAgents class creates specialized AI agents for different recruitment tasks. 
○ Agents include Job Hunter, Resume Analyst, Candidate Engagement Specialist, Company Investigator, and Workflow Orchestrator.
○ Each agent has a specific role, goal, backstory, tools, and language model.

● custom_tools.py 
○ The JobScrapeQueryRun class is a tool for scraping job listings from Google Jobs using the SerpApi service. 
○ It can extract data for individual job listings or search for multiple job listings based on a query.

● tasks.py 
○ The RecruitmentTasks class defines the key steps involved in the AI-powered recruitment process. 
○ Tasks include job search, resume analysis, candidate outreach, company research, and final matching. 
○ Each task has a description, instructions for the responsible agent, and the expected output.

● main.py 
○ This class orchestrates the simulated recruitment process using AI agents and tasks. 
○ It generates dummy resumes, creates agents and tasks, forms a crew, and executes the recruitment workflow. 
○ The final results showcase successful placements of candidates in suitable roles and companies.

● Setup and Action 
○ The author shares their journey of setting up the codebase and running the recruitment simulation. 
○ The AI agents collaborate to find job openings, analyze resumes, engage candidates, research companies, and make final matches.

The article provides a detailed walkthrough of building a business using AI agents, covering the various components, challenges, and the final successful implementation.
Kiwi Compiler
Tags: java, template, react
Published: 2024-05-19 01:06:37

Kiwi is a template engine preprocessor that integrates React components into Java template engines. It simplifies the incorporation of React components within Java-based applications. This document provides an overview of the Kiwi project, its purpose, and an example of its usage.

## Overview

### Purpose

Kiwi aims to streamline the process of incorporating React components into Java-based projects that utilize template engines. By generating JavaScript code from provided HTML source files, Kiwi facilitates the seamless integration of React components, enhancing the development workflow for Java developers working with modern web technologies.


## Example

### source

```jsx
// ./components/Greeting
import React from 'react';

export default function Greeting ({ message, value, clickable }) {
	return (<div>
		<p>Message: {message}</p>
		<p>Value: {value || 0}</p>
		<p>{`Is ${!clikable && "not"} clikable`}</p>
	</div>);
}
```

```java
// Example.java
var source = """
        @import('Greeting', './components/Greeting')
        @render(<Greeting message="Hello {{name}}!" value:num="10" />)
        @render(<Greeting message="Hello Strange" clickable:bool="true" />)
        """;

var generator = KiwiCompiler.withDefault();
String output = generator.generateJs(source);
String htmlOutput = generator.generateHtml(source);
```


### generated html
```html
<div data-kiwi-id="Greeting1111559717" data-prop-message="Hello {{name}}!" data-prop-value="10"></div>
<div data-kiwi-id="Greeting626337202" data-prop-message="Hello Strange" data-prop-clickable="true"></div>
```


### generated Js
```js
/*
    WARNING: AUTO-GENERATED CODE BY KIWI-GENERATOR
    Modifying this code may result in unintended behavior. 
    Please make changes in the source template or consult 
    the kiwi-react-generator documentation for customization options.
*/
import React from 'react';
import { createRoot } from 'react-dom/client';
import Greeting from './components/Greeting';

const greeting1111559717_elements = document.querySelectorAll('[data-kiwi-id="Greeting1111559717"]');
for(let element of greeting1111559717_elements) {
	const props = {
		message: (element.getAttribute('data-prop-message')),
		value: Number(element.getAttribute('data-prop-value')),
	};
	const root = createRoot(element);
	root.render(<Greeting {...props} />);
}

const greeting626337202_elements = document.querySelectorAll('[data-kiwi-id="Greeting626337202"]');
for(let element of greeting626337202_elements) {
	const props = {
		message: (element.getAttribute('data-prop-message')),
		clickable: 'true' == (element.getAttribute('data-prop-clickable')),
	};
	const root = createRoot(element);
	root.render(<Greeting {...props} />);
}
```


## License

This project is licensed under the MIT License. Feel free to explore, use, and contribute to Kiwi!
[Game of Purpose] Day 0 - The decision
Tags: gamedev
Published: 2024-05-19 00:24:16

I have a problem.

I can't finish any project.
Whatever I start I stop doing halfway through.
One reason is that I loose a purpose.
My brain thinks that the feature I do is pointless and no one will ever use.
I figured out my limit is about 2 months max, after which I loose interest.
This usually happens because I travel for a couple of days, after which the context in my head clears out and I seem to not be able to come back.

I want to change that.

During my evening (1:30 am) staring at my mirror while brushing my teeth I had a thought.
I realized that another reason for my project-dropping is that I try to come up with something new and in the meantime I can't come up with new ideas and that's why I might loose interest.

That's why I will not bother myself with coming up with something new. I will functionally copy 1 to 1 a game.

Lately I've been playing Manor Lords.
I really liked it.
The autor spent 7 years creating it mostly on its own.
I wonder how long will it take me to write it as well.

I basically have 0 experience in game dev.
I played around with Unity and Godot, but I don't really know much.
Manor Lords is written in Unreal engine and I'd like to do the same.
I don't have much C++ experience and I really don't like doing graphics stuff, but hey, let's get out of a comfort zone.

My plan is to write a status post every day.
Even if I don't do anything I will write about it.
Short or long - doesn't matter.

I hope tomorrow my motivation is the same as now when I'm laying in bed.

Cheers.
I want to be a pornster
Published: 2024-05-19 01:00:15

Do you want to be a porn star, do you want to be rich and famous, then this is your opportunity. Hello friends! I am Sir Owens and I am an agent looking for up and coming stars to make super stars in the adult movie world. We are club shag porn movie entertainment company. Are you interested in being a super pornster, this is your opportunity. We are a newly found porn movie entertainment company looking for young porn stars. We are based in the United states and Africa currently. Our aim is to help and promote young and upcoming porn stars to reach their goals and achieve their dreams.. We pay well. We pay $150,000 usd for beginners. If you are interested, and anywhere in the world, just contact us now on clubshag01@gmail.com  We will help you reach your goals and actualise your dreams
I want to be a pornster
Published: 2024-05-19 00:58:02

Do you want to be a porn star, do you want to be rich and famous, then this is your opportunity. Hello friends! I am Sir Owens and I am an agent looking for up and coming stars to make super stars in the adult movie world. We are club shag porn movie entertainment company. Are you interested in being a super pornster, this is your opportunity. We are a newly found porn movie entertainment company looking for young porn stars. We are based in the United states and Africa currently. Our aim is to help and promote young and upcoming porn stars to reach their goals and achieve their dreams.. We pay well. We pay $150,000 usd for beginners. If you are interested, and anywhere in the world, just contact us now on clubshag01@gmail.com  We will help you reach your goals and actualise your dreams
AWS Cloud Cost Optimization
Tags: aws, cost, serverless
Published: 2024-05-19 00:54:48

Challenge: Reduce the AWS Cloud Operating cost without compromising any existing feature

Steps:

1. Switch to 8x5 from 24x7 in Dev and QA Environments​
2. Use the correct size of Serves in Dev and QA based on the load​
3. Avoid using same server configuration like Prod in Dev and QA​
4. Create Lifecycle rules and auto-shutdown feature for Servers ( SQL Analytics, SageMaker, S3 …. )​
5. Minimise Operational Maintenance activities
How to Hide the X-Powered-By Header in NestJS
Tags: security, beginners, webdev, nestjs
Published: 2024-05-19 00:52:59

While developing a backend application with NestJS, I noticed that the `X-Powered-By: Express` header appeared in the API responses during debugging. This can expose your technology stack to potential attackers.

![API Response](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/569054/2a7ad608-15e0-68c3-53ce-6a3e516ffb97.png)

To prevent this and enhance security, we need to hide the `X-Powered-By` header. Here’s how you can do it.

First, you should have the following code in your main file:

```typescript
const app = await NestFactory.create(AppModule);
```

Next, import the necessary modules:

```typescript
import { ExpressAdapter } from '@nestjs/platform-express';
import express from 'express';
```

Finally, modify the code as follows:

```typescript
const expressApp = express();
expressApp.disable('x-powered-by');
const adapter = new ExpressAdapter(expressApp);
const app = await NestFactory.create(AppModule, adapter);
```

With this change, the `X-Powered-By` header will no longer be visible.

![Updated API Response](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/569054/d3e3913c-a7bb-3b53-04dd-3600d6739374.png)

By following these steps, you can improve your application's security by not exposing your technology stack.

**Note:** Another method that works is as follows:

```typescript
import { NestExpressApplication } from '@nestjs/platform-express';

const app = await NestFactory.create<NestExpressApplication>(AppModule);
app.disable('x-powered-by');
```
Development of a Web Application for Consulting Geographic Information and Printing Maps: A Case Study
Tags: webdev, javascript, react, discuss
Published: 2024-05-19 00:52:54

Within the framework of my company's Annual Operating Plan, I was assigned the task of developing an innovative web application to consult geographic information of clients and generate interactive maps. This project is crucial to improve efficiency in geographic data management and optimize the relationship with our clients. In this article, I will describe the development process, from the analysis phase to the implementation of the first module.

## Analysis and Planning

### Description of the Current System
Currently, we have a similar system that has performance failures, request saturation, and slow map generation.

### Use Cases
The new system will work when the current one is saturated or has problems meeting user needs.

### Requirements
The requirements of the new system include secure access, friendly interface, compatibility with existing data, and reduced response times.

### Flow Charts
I have created flow charts to represent the processes of the current system and the new system.

### Technologies to Use
- HTML
- AntDesign
- JavaScript (FrontEnd)
- Node.js (BackEnd)
- Express.js
- React.js
- Leaflet
- React-Leaflet
- OracleDB
- Sequelize

### Entity-Relationship Diagram
I will describe the relationships of the tables that the application will use in the backend.

## Development

### Creating the API
I use JWT for authentication and secure transfer of information between the backend and the frontend. Endpoints have middleware to ensure authentication and data validation.

### FrontEnd
I am creating the frontend using a feature-based folder structure. I use Vite.js as a packager.

## First Module
The first module of the application will allow the user to select options from a list, rendering an interactive map with the corresponding elements. Users will be able to interact with the map, consult information and generate PDF files for printing. I plan to deliver this first module to receive feedback from users and report it as evidence of progress.

I hope this article has given you a clear insight into the development process of our geographic query application. As we progress, I will share more updates on the feedback received and progress in the upcoming modules. Thank you for your interest and following.

---

If you want to know more [about me](https://phillipcabrera.com/coming-soon/), don't forget to follow me on my networks and why not [subscribe](https://phillipcabrera.com/coming-soon/#/portal/signup) to this blog.
HACKATHON TECH SOLUTION // MOST RELIABLE CRYPTO RECOVERY EXPERT
Published: 2024-05-18 22:28:31

It all began innocently enough, with the allure of quick gains and financial freedom beckoning me into the world of cryptocurrency investments. Little did I know, this journey would lead me down a path of deceit and betrayal. On the first of last month, I took the plunge and invested $3000 in USDT, hoping to see my money grow. To my delight, by the 15th of the month, I received a withdrawal of $10,000, fueling my excitement and confidence in the investment platform. With newfound optimism, I decided to up the ante, investing $50,000 with the expectation of reaping even greater returns. However, as the withdrawal deadline approached, reality came crashing down around me. It became painfully clear that I had been duped, lured in by promises of riches that were nothing but empty lies. My hard-earned money was gone, vanished into the digital abyss, and I was left reeling from the betrayal. Determined to reclaim what was rightfully mine, I embarked on a journey of seeking recovery experts who could help me navigate the treacherous waters of online fraud. Yet, at every turn, I encountered charlatans and impostors, preying on the vulnerability of those who had been deceived. It was in my darkest hour that I stumbled upon a glimmer of hope – a review praising the commendable work of HACKATHON TECH SOLUTION, a team of ethical hackers dedicated to righting the wrongs of cybercrime. With nothing left to lose, I placed my trust in their capable hands, praying for a miracle. And miraculously, a miracle is what I received. HACKATHON TECH SOLUTION not only delivered on their promise but exceeded all expectations, successfully recovering my lost funds with a level of expertise and professionalism that left me in awe. In return for their invaluable service, they requested a modest 10% fee, a small price to pay for the restoration of my financial security. Thanks to the unwavering dedication of HACKATHON TECH SOLUTION, I am once again standing on solid ground, free from the shackles of financial fraud. My faith in humanity has been restored, and while the scars of my ordeal may linger, they serve as a solemn reminder to tread carefully in the digital realm. To anyone who finds themselves in a similar predicament, I urge you not to lose hope. Reach out to HACKATHON TECH SOLUTION and take the first step towards reclaiming what is rightfully yours. In a world fraught with deception, they are a beacon of light, guiding you towards justice and resolution. Trust in HACKATHON TECH SOLUTION– your ally in the fight against cybercrime.Consult HACKATHON TECH SOLUTION via below contact details.
Their website is https://hackathontechsolutions.com

Email them on:info@hackathontechsolutions.com

Whatsapp:+31 6 47999256

Telegram:info@hackathontechsolutions.com 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gn3hp3kx8xse7an5ul0j.jpg)
HACKATHON TECH SOLUTION // MOST RELIABLE CRYPTO RECOVERY EXPERT
Published: 2024-05-18 22:26:07

It all began innocently enough, with the allure of quick gains and financial freedom beckoning me into the world of cryptocurrency investments. Little did I know, this journey would lead me down a path of deceit and betrayal. On the first of last month, I took the plunge and invested $3000 in USDT, hoping to see my money grow. To my delight, by the 15th of the month, I received a withdrawal of $10,000, fueling my excitement and confidence in the investment platform. With newfound optimism, I decided to up the ante, investing $50,000 with the expectation of reaping even greater returns. However, as the withdrawal deadline approached, reality came crashing down around me. It became painfully clear that I had been duped, lured in by promises of riches that were nothing but empty lies. My hard-earned money was gone, vanished into the digital abyss, and I was left reeling from the betrayal. Determined to reclaim what was rightfully mine, I embarked on a journey of seeking recovery experts who could help me navigate the treacherous waters of online fraud. Yet, at every turn, I encountered charlatans and impostors, preying on the vulnerability of those who had been deceived. It was in my darkest hour that I stumbled upon a glimmer of hope – a review praising the commendable work of HACKATHON TECH SOLUTION, a team of ethical hackers dedicated to righting the wrongs of cybercrime. With nothing left to lose, I placed my trust in their capable hands, praying for a miracle. And miraculously, a miracle is what I received. HACKATHON TECH SOLUTION not only delivered on their promise but exceeded all expectations, successfully recovering my lost funds with a level of expertise and professionalism that left me in awe. In return for their invaluable service, they requested a modest 10% fee, a small price to pay for the restoration of my financial security. Thanks to the unwavering dedication of HACKATHON TECH SOLUTION, I am once again standing on solid ground, free from the shackles of financial fraud. My faith in humanity has been restored, and while the scars of my ordeal may linger, they serve as a solemn reminder to tread carefully in the digital realm. To anyone who finds themselves in a similar predicament, I urge you not to lose hope. Reach out to HACKATHON TECH SOLUTION and take the first step towards reclaiming what is rightfully yours. In a world fraught with deception, they are a beacon of light, guiding you towards justice and resolution. Trust in HACKATHON TECH SOLUTION– your ally in the fight against cybercrime.Consult HACKATHON TECH SOLUTION via below contact details.
Their website is https://hackathontechsolutions.com

Email them on:info@hackathontechsolutions.com

Whatsapp:+31 6 47999256

Telegram:info@hackathontechsolutions.com