teleren/devto huggingface dataset:
Exploring the Power of Lambda and Serverless Technology
Published: 2023-10-31 00:45:13

**Introduction**
Serverless technology has revolutionized the world of cloud computing, making it easier than ever to build and deploy scalable applications without the hassle of managing servers. AWS Lambda, one of the pioneers in this field, has become a go-to choice for many developers looking to leverage the benefits of serverless computing.

In this article, we will delve into AWS Lambda and serverless technology, understanding their core concepts, benefits, and challenges. We'll also explore real-world use cases, best practices, and how to optimize costs in a serverless environment.

**Section 2: AWS Lambda** 
AWS Lambda is at the forefront of serverless technology, allowing developers to run code in response to various events without the need to provision or manage servers. Below is a simple code snippet to demonstrate how easy it is to create a Lambda function in Python.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/970l6au3956mu4q1x2ao.png)
In the code above, we define a Lambda function lambda_handler. This function can be triggered by various events, such as HTTP requests, database changes, or file uploads. In this case, we keep it simple by responding with a "Hello from AWS Lambda!" message.

**Section 3: Use Cases for Serverless Technology**
Let's explore some common use cases for AWS Lambda and serverless technology:

**Real-time Data Processing**
Serverless is an excellent choice for processing real-time data streams, such as clickstream data, sensor data, or log processing.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mdcdsov73rfxlu1f83i7.png)
**Web Application Backend**
Lambda can be used to power the backend of web applications, handling HTTP requests and responding dynamically.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9m653jcocy6fcdnmn841.png)
This code handles an HTTP request and responds with a JSON message.

**IoT Applications**
Serverless architecture is well-suited for processing data from IoT devices and triggering actions based on that data.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6yeegics3iiew2g146k4.png)
**Conclusion**
AWS Lambda and serverless technology have reshaped the landscape of cloud computing, offering a powerful and scalable solution for modern application development. With the ability to execute code in response to events without the complexities of server management, serverless computing simplifies development and enables rapid innovation. We've explored AWS Lambda as a prime example of serverless computing, delving into its architecture and demonstrating its versatility through code snippets. As we continue to witness the ever-evolving technological landscape, serverless technology remains a pivotal tool for developers, promising cost-efficiency, flexibility, and the ability to meet a wide array of use cases. Embracing serverless computing is not just an option; it's a strategic imperative in the age of dynamic, event-driven applications.
Use Rust in your React
Tags: rust
Published: 2023-10-31 15:26:37

---
title: Use Rust in your React
published: true
date: 2023-10-31 00:24:00 UTC
tags: Rust
canonical_url: https://reactjsexample.com/use-rust-in-your-react/
---

# React `use rust`
 ![Use Rust in your React](https://reactjsexample.com/content/images/2023/10/Code_2023-10_20-19-19.jpg)

Use Rust in your React!

[![Use Rust in your React](https://user-images.githubusercontent.com/8999001/278796293-495c39d6-3fb1-437d-9af0-03020c215159.png)](https://user-images.githubusercontent.com/8999001/278796293-495c39d6-3fb1-437d-9af0-03020c215159.png)

## TODO

- Package Rust for npm
- Add more folders and files with code that does nothing to look more professional
- Create `create-react-use-rust` package cuz this ecosystem is broken
- Add typescript support
- Make somebody else figure out publishing this to npm (I am still not over it)
- Remove typescript support
- Tell windows ppl to just use WSL
- esbuild is not cursed enough, gotta switch to something else

## GitHub

[View Github](https://github.com/elnardu/react-use-rust?ref=reactjsexample.com)
¿Qué son los microservicios?
Tags: microservices, programming, career, learning
Published: 2023-10-31 00:14:44

Los microservicios es una **arquitectura de software** en donde la aplicación es dividida en varios servicios **pequeños** y **autónomos**. Es decir, supongamos que los microservicios fueran un equipo de fútbol. En cada equipo de fútbol cada jugador cumple distintos roles y se especializa en su tarea en particular. Por ejemplo, hay defensores, mediocampistas y delanteros, cada uno con distintas habilidades y responsabilidades únicas.


De forma muy similar, los microservicios son como jugadores individuales dentro de la cancha. Cada microservicio es una unidad **independiente** que debe llevar a cabo su función específica dentro de una aplicación.

A diferencia de los jugadores que se comunican a través de un mismo idioma, estos microservicios se deben comunicar entre sí a través de interfaces bien definidas (API).



## Origen del término
Como anteriormente describí, los microservicios son una arquitectura o modo de programar software. Éste término se dice que se empezó a hacer popular en el año 2014 cuando fue utilizado por primera vez por **Martin Fowler** en un artículo de su autoría en donde describe cómo _Netflix_ adoptó esta forma de codificar para mejorar su _performance_ ante los cambios del mercado.


## Ventajas que presentan los microservicios
Si nos detenemos a apreciar como los microservicios ayudan a los desarrolladores y a las empresas nos podremos encontrar con varias cosas positivas. Por ejemplo:

1. Facilitan la escalabilidad y flexibilidad.

2. El desarrollo se vuelve más ágil.

3. Mantener el código nunca fue tan fácil.

4. Puedes realizar distintos componentes con distintos lenguajes.

5. Mejora el rendimiento y la eficiencia de la aplicación.

En suma, tanto como a los desarrolladores como a las empresas utilizar este tipo de arquitectura les reduce muchos dolores de cabeza y les es posible ajustarla a lo que el mercado más demanda dentro de la aplicación.
A Real-time weather app build with Next.js 14, Typescript and Shadcn UI
Tags: weather, nextjs
Published: 2023-10-31 15:26:41

---
title: A Real-time weather app build with Next.js 14, Typescript and Shadcn UI
published: true
date: 2023-10-31 00:05:00 UTC
tags: Weather,Nextjs
canonical_url: https://reactjsexample.com/a-real-time-weather-app-build-with-next-js-14-typescript-and-shadcn-ui/
---

# Meteo-nix
 ![A Real-time weather app build with Next.js 14, Typescript and Shadcn UI](https://reactjsexample.com/content/images/2023/10/Code_2023-10_21-00-11.jpg)

[![A Real-time weather app build with Next.js 14, Typescript and Shadcn UI](https://user-images.githubusercontent.com/64962012/278890447-dcad0360-77b0-4f70-bc2e-0c0bf04c1d8c.png)](https://user-images.githubusercontent.com/64962012/278890447-dcad0360-77b0-4f70-bc2e-0c0bf04c1d8c.png)

## Overview

Welcome to Meteo-nix, a meticulously crafted weather app that levereges cutting-edge technologies. Powered by Next.js 14, TypeScript,Tailwind CSS and the elegance of Shadcn UI library, it delivers a seamless weather experience.✨ It also leverages React Hotkeys Hook for smooth theme transitions and a versatile command menu, React Map GL for Mapbox map integration, and provides intelligent places autocomplete suggestions powered by Google Maps Places API.

## Features

- **Current Weather Conditions:** Provides access to current weather conditions, including temperature, precipitation, wind speed, UV index, and more.
- **Forecast:** Access a 10-day weather forecast and a 24-hour forecast at your fingertips.
- **Command Menu:** Toggle the command menu with a keyboard shortcut (Shortcut: Command+J) for quick access to search functionality.
- **Intelligent Autocomplete:** Enjoy a seamless location search experience with intelligent place autocomplete suggestions powered by the Google Maps Places API, and the Google Geolocation API to obtain coordinates, ensuring accurate and up-to-date information.
- **Seamless Theme Transitions:** Switch between themes (Shortcut: T) effortlessly thanks to React Hotkeys Hook, ensuring a visually pleasing and accessible interface.
- **Interactive Map:** Navigate a dynamic map with customizable tiles, including temperature (°C), precipitation intensity (mm/s), wind speed and direction (m/s), relative humidity (%), cloudiness (%), and atmospheric pressure (hPa).

## GitHub

[View Github](https://github.com/DariusLukasukas/nextjs-weather-app?ref=reactjsexample.com)
How Can You Stand Out While Being Part of a Team?
Tags: discuss, codenewbie, beginner
Published: 2023-10-31 00:00:00

---
published_at : 2023-10-31 00:00 +0000
---
In a field like software development, how do you balance the need to "stand out" with the importance of teamwork and collaboration?

Follow the [CodeNewbie Org](https://dev.to/codenewbieteam) and [#codenewbie](https://dev.to/t/codenewbie) for more discussions and online camaraderie!

*{% embed* https://dev.to/codenewbieteam *%}*
The Cult of Not Done Manifesto
Tags: humor
Published: 2023-12-08 16:47:30

---
title: The Cult of Not Done Manifesto
published: true
date: 2023-10-31 00:00:00 UTC
tags: humor
canonical_url: https://ishan.page/blog/2023-10-31-cult-of-not-done/
---

> To all those who ask why I haven’t been putting more posts out, this is for you

Dear Members of the Cult of Not Done,

I present to you a manifesto of not done. This was inspired by [Kio Stark and Bre Pettis](https://medium.com/@bre/the-cult-of-done-manifesto-724ca1c2ff13), and written over five days because it was, obviously, not done.

# The Cult of Not Done Manifesto

1. There are four states of being. Not knowing, action, refinement, and completion.
2. Accept that everything is a draft. We have to make it better before we can be done.
3. We live in the editing stage. Nothing is ever done because it’s always being improved.
4. Pretending you know what you’re doing is almost the same as knowing what you are doing, but not good enough. So spend all your time making things perfect.
5. Embrace procrastination. If you wait more than a week to get an idea done, give it more time. Your subconscious needs to think more, and it will give you the answer soon.
6. The point of being done is to finish, and until we don’t, we can’t get other things done.
7. If you’re never done, you can throw it away.
8. Laugh at those who settle. It’s boring and keeps you from being perfection.
9. People without dirty hands are wrong. Doing something makes you right. The more time you spend trying different things and not being done, the more authority you have on it.
10. Failure and mistakes are natural and to be expected since you’re not done yet.
11. Destruction is a force of progress. Start over often with increased scope to make your creation perfect.
12. If you have an idea, never publish it on the internet, then it will be stolen from you.
13. In Progress is the engine of more.
JOINS NO ORACLE
Published: 2023-10-30 23:20:04

Vamos falar sobre os tipos de junções em banco relacionais, todo mundo uma hora ou outra tem que trabalhar com um banco relacional. Seja trabalhando para a web, mobile, desktop e diferentes linguagens, e você sabe o que é um Join e a diferença entre os principais tipos de Join? 

O que é um Join e para que serve: Join é uma forma de consulta que combina dados de duas ou mais colunas de diferentes tabelas. Ajuda para recuperar dados de várias tabelas em uma só consulta.

Tipo de Joins e para que serve: Inner Join, Left Join, Right Join, Full Join e Cross Join.

Inner Join: É um tipo de junção que combina dados de duas ou mais colunas de diferentes tabelas com uma condição de específica.

Sintaxe: SELECT colunas FROM tabela1 INNER JOIN tabela2 ON tabela1.coluna = tabela2.coluna;

Left Join/Right Join: Uma Left Join retorna todos os dados da parte esquerda da tabela e o Right Join faz as mesmas funções do Left Join, mas com as regras inversas em relação ordem das tabelas.

Sintaxe: SELECT *FROM teams
LEFT JOIN players
  ON directors.id = teams.players_id;

Full Join: O Full Join retorna todos os dados de ambas as tabelas SE tiver relação entre ambas as tabelas, então pode se dizer que o Full Join junta as funções da Left e da Right Join

Sintaxe: SELECT p.nome, t.nome
 FROM players AS e
 FULL OUTER JOIN teams AS p
 ON p.nome = t.nome;

Cross Join:Cross(em português: cruzar) Join retorna todas as linhas das tabelas se cruzando. 

Sintaxe: SELECT <select_list>
FROM Tabela A
CROSS JOIN Tabela B

Vantagens e Desvantagens de usar o JOIN: Os Joins permitem que nós possamos criar pedidos mais completos e complexos de um jeito bem mais simples e rápido. Uma desvantagem é o motivo dos Joins serem difíceis é que ele tem que buscar informações em lugares diferentes. 

Escolher os joins depende das necessidades das consulta e do banco de dados. Join é importante para tirar proveito das consultas do Oracle SQL e outros sistemas de gerenciamento de banco de dados.
Recovering Stolen Cryptocurrency: Pro Wizard Gilbert Recovery
Published: 2023-10-30 23:18:57

The journey began with a detailed consultation with the wizards called 
Pro Wizard Gilbert Recovery.They asked me all sorts of probing questions to gather information about the lost Bitcoin of 75,000 dollars, such as transaction details, wallet addresses, and any other breadcrumbs I could provide. It was like being interrogated by tech-savvy detectives, but hey, desperate times call for desperate measures. Equipped with the required data, the wizards immediately went to work, employing their advanced digital abilities to track down my misplaced Bitcoin. They left no virtual stone unturned as they investigated the shadowy regions of the internet and traced the virtual traces. Without the eye patches and pirate accents, it was like seeing a technologically advanced treasure hunt in real life. With their knowledge and arsenal of recovery techniques, the wizards at prowizardgilbertrecovery employed various methods to retrieve my lost Bitcoin. I am thankful that I have successfully recovered what I lost with the help of Pro Wizard Gilbert Recovery. For a service like this email prowizardgilbertrecovery(@)engineer.com
Court bans LinkedIn data protection violations
Published: 2023-10-30 22:53:07

---
title: Court bans LinkedIn data protection violations
published: true
description: 
tags: 
cover_image: https://pbxt.replicate.delivery/zXpBOf03tGX7dSCDjjbiFX0DSkXr3X3IbOtlyHF88iHLLv5IA/output_1.png
# Use a ratio of 100:42 for best results.
# published_at: 2023-10-30 22:45 +0000
---

The social network LinkedIn may no longer announce on its website that it does not respond to “do-emergency track” signals with which

“When consumers: activate their browser’s 'Do Not-Track’ function, this is a clear message: they don’t want their surfing behavior to be spied on for advertising and other purposes,” says Rosemarie Rodden, legal expert at vzbv. “Website operators must respect this signal.”

Objection ignored against tracking

Internet surfers can tell via their browser that the websites visited receive a “do-not track” (DNT) signal. It sends their wish that the online activities are not tracked and evaluated. LinkedIn had announced on its website that it did not respond to such DNT signals. Thus, against the will of the users, personal data such as the IP address and information about the use of the website can also be evaluated for analysis and marketing purposes, including third-party providers. 

Objection ignored against tracking

Internet surfers can tell via their browser that the websites visited receive a “do-not track” (DNT) signal. It sends their wish that the online activities are not tracked and evaluated. LinkedIn had announced on its website that it did not respond to such DNT signals. Thus, against the will of the users, personal data such as the IP address and information about the use of the website can also be evaluated for analysis and marketing purposes, including third-party providers. 

[Sauce](https://www.vzbv.de/urteile/gericht-untersagt-datenschutzverstoesse-von-linkedin)
StackOverflow is the Least Friendly Developer Community
Tags: stackoverflow, community
Published: 2023-10-30 22:19:30

I try participate in the community making:

1. Answer
2. Question
3. Modifications
4. Upvote

My question are banned, my answer down-vote and my modifications questioned for the moderators not even can make upvote because my reputation is low. 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rgcoo9mpegmr0hq35ak1.png)

Lamentably i can't use StackOverflow entirely. Is a site complicated and unfriendly.
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1uen47jyaodj59o0twuk.jpg)

I prefer use mailing list, irc, forum, usenet or dev.to.
Destrancando o Docker: Garantindo que seu aplicativo espere pelo banco de dados com Dockerize
Published: 2023-10-30 22:08:01

O uso do **Dockerize** em combinação com o Node.js é uma prática essencial para garantir que seu aplicativo Docker aguarde serviços dependentes, como um banco de dados MongoDB, antes de iniciar. Neste guia, mostro como implementar o **Dockerize** em seu projeto Node.js.

## O Problema da Dependência entre Contêineres:
Ao criar aplicativos Docker que dependem de outros serviços, como bancos de dados, é crucial garantir que o serviço esteja pronto antes que o aplicativo inicie. Ignorar essa dependência pode levar a falha.

## O que é o Dockerize:
O Dockerize é uma ferramenta que ajuda a esperar por serviços antes de iniciar um contêiner. Ele permite que você especifique condições de espera para garantir que seu aplicativo não inicie até que os serviços estejam prontos.

### **Configurando o Dockerize:**

1. Crie seu Dockerfile:
Você começará criando um Dockerfile para seu aplicativo Node.js. Certifique-se de usar uma imagem base do Node.js que atenda às necessidades do seu aplicativo.

2. Instale o Dockerize:
No Dockerfile, adicione as instruções para instalar o Dockerize. Você pode usar o seguinte código:

```
ENV DOCKERIZE_VERSION v0.7.0

RUN apk update --no-cache \
    && apk add --no-cache wget openssl \
    && wget -O - https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | tar xzf - -C /usr/local/bin \
    && apk del wget
```

3. Defina as Condições de Espera:
Agora, você deve definir as condições de espera no Dockerfile. Por exemplo, se seu aplicativo Node.js depende de um serviço MongoDB na porta 27017, você pode usar o seguinte código:

```
CMD dockerize -wait tcp://mongodb:27017 -timeout 1m node app.js
```

### Exemplo Prático:
Aqui está um exemplo prático de como usar o Dockerize com Node.js:

```
FROM node:14

WORKDIR /app

# Instale o Dockerize
ENV DOCKERIZE_VERSION v0.7.0
RUN wget -O - https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | tar xzf - -C /usr/local/bin

# Defina as condições de espera para o MongoDB
CMD dockerize -wait tcp://mongodb:27017 -timeout 1m node app.js
```

## Conclusão

A utilização do Dockerize é uma prática essencial para garantir que sua API seja robusta e confiável, evitando comportamentos indesejados e garantindo que as dependências entre contêineres sejam adequadamente gerenciadas.
Understanding WHERE and ORDER BY
Tags: sql, database, learning, beginners
Published: 2023-10-30 22:03:54

Let's delve a bit deeper into the SQL commands WHERE and ORDER BY.

**Conditional Operators**

First of all, we need to understand conditional operators. They are used in conjunction with the WHERE clause in SQL queries to filter data and retrieve specific records.

The following table explains the most common conditional operators:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t8y12fdkpa2un8988r6h.png)

**The WHERE Command**

The WHERE command is used to filter records in a table based on certain conditions. You can use WHERE to filter records based on a single column or multiple columns simultaneously.

In the example below, we are using WHERE on just one column, selecting only an ID that has been specified.

_Syntax_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t8r556elkx9jfj2a38qe.png)

In the next example, we're selecting all records with an age equal to 20 and 21.

_Syntax_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ifbftztgy54o4txm74z3.png)

If you want to filter based on multiple columns, you can use the WHERE clause with the logical operators AND or OR.

Using the AND operator, the result will include all records that meet all the specified criteria. In the example below, all records with an age of 20 and 21 and residing in New York will be returned.

_Syntax_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z72ox4cgztdiuqvlvxhn.png)

Similarly, if you want to retrieve customers who are over 20 years old or are from the city of New York, you can use the OR operator.

_Syntax_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pga59b1jneel8giju8ej.png)

If you want to filter all records where the name starts with the letter L, for example, you can use the LIKE command.

_Syntax_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x0mpn7r4ai85agp8if3p.png)

Notice that we only use the % after the letter L. This indicates that I want the first letter to be L, and the subsequent letters don't matter.

If I want all records that end with L, I would place the % before the L.

_Syntax_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lzvjzwup3pd46sfpzauo.png)

**The ORDER BY Command**

We use the ORDER BY command when we want the result of our SELECT statement to be in a specific order. There are various ways to use this command.

In this first example, let's sort by age in ascending order.
Syntax

To sort by age in descending order:

_Syntax_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0ivyspdsefcglpscd27z.png)

We can also sort by more than one column. For example, we can sort by age and then by date of birth.

_Syntax_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wk505he9d7j5v9t39ntm.png)
Rovy Part 3: Initial outdoor tests with onboard 4G/LTE modem and sensors
Tags: aws, raspberrypi, robotics, node
Published: 2023-10-30 22:02:18

We’re now moving on to the third phase of the project, which involves the integration of an onboard 4G/LTE modem to enable remote outdoor mobility. Additionally, a new set of sensors has been introduced for telemetry transmission via AWS IoT Core using MQTT.

{% embed https://www.youtube.com/embed/WGXdm-pvY0A?si=lCBDE3AGQWGLdiqw %}

The testing also extends to outdoor conditions, providing valuable assessments of the data gathered from temperature, humidity, GPS (including coordinates, speed, and altitude), IR range, and battery voltage during the rover’s full-load operations.

Checkout the full write-up on my blog: 

https://www.vynci.dev/posts/robot-sensors-4g-lte-modem
DeployPin - ruby gem for deployment tasks management.
Published: 2023-10-30 21:37:47

Deploying applications often involves the need to execute a series of specific commands or tasks either before or after the deployment process. While you might typically turn to migrations for such operations, these tasks aren't always migration-related. Additionally, there are situations where you need to execute code before or after a migration without causing the main thread to block.

Introducing [deploy_pins](https://github.com/skcc321/deploy_pin) – your go-to solution for streamlined task management during the deployment process. This Ruby library allows you to seamlessly orchestrate tasks before, after, or independently of migrations, offering the flexibility you need to maintain a smooth and efficient deployment workflow. With deploy_pins, you can take control of your deployment tasks and ensure that your application operates flawlessly in any environment.