teleren/devto huggingface dataset:
Sending Email with Amazon SES on NodeJS
Tags: aws, email, node, ses
Published: 2023-11-06 15:16:46

Here's a quick example of sending an email with Amazon SES (Simple Email Service).

In this example we are using a few libraries:

- [Nodemailer](https://nodemailer.com/) provides support for embedded images etc.
- [EJS](https://ejs.co/) is a templating library, which we use to build our HTML email
- [dotenv](https://www.npmjs.com/package/dotenv) loads environment variables from a `.env` file


Install them:
```bash
npm install @aws-sdk/client-ses dotenv ejs nodemailer
```

Provide your AWS region and secrets in your `.env` file:
```bash
AWS_REGION=eu-central-1
AWS_ACCESS_KEY_ID=AKIAX...
AWS_SECRET_ACCESS_KEY=HMZHQ...
```

Create a simple HTML email template `my-email.ejs`:
```html
<h1>Hi there</h1>
<p>This email is sent using Amazon SES with NodeJS. Nice!</p>
```

Create the javascript `index.js` for sending the email:
```javascript
import 'dotenv/config';
import * as aws from "@aws-sdk/client-ses";
import nodemailer from "nodemailer";
import * as ejs from "ejs";

const sesClient = new aws.SESClient({
	region: process.env.AWS_REGION,
	credentials: {
		accessKeyId: process.env.AWS_ACCESS_KEY_ID,
		secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY
	}
});

const transporter = nodemailer.createTransport({
	SES: {
		ses: sesClient,
		aws: aws
	}
});

const mailHtml = await ejs.renderFile('./my-email.ejs');

transporter.sendMail({
		from: "sender@example.org",
		to: "receiver@example.org",
		subject: "Hello there via Amazon SES",
		html: mailHtml
}, (err, info) => {
		console.log(info.envelope);
		console.log(info.messageId);
});
```

If you get trouble with the `import` statements, you might need to add this to your `package.json`:

```javascript
...
"type": "module",
...
```

There we go. This is a quick reference for developers looking to integrate Amazon SES using NodeJS.
carparking for fun
Published: 2023-11-06 15:08:28

Any version of [Car Parking](https://carparkingzoid.com/2023/10/28/car-parking-multiplayer-mod-apk-get-the-latest-version-for-added-fun/) Multiplayer distributed on Uptodown is completely virus-free and free to download at no cost. Download older versions of Car Parking Multiplayer for Android. All of the older versions of Car Parking Multiplayer have no viruses and are totally free on Uptodown.
The Impact of AI on the Job Market: Adapting to the Future
Tags: ai, market, employment, workspace
Published: 2023-11-06 15:06:16



In recent years, the rise of Artificial Intelligence (AI) has been nothing short of a technological revolution. While AI promises to transform industries, it has also raised questions about its impact on the job market. As we step into the next decade, it's crucial to explore how AI is reshaping the world of work and what it means for job seekers and professionals.

The AI-Powered Workforce:
AI is not here to replace human workers; rather, it's here to augment their capabilities. We've seen AI-powered tools assisting in data analysis, automating routine tasks, and enhancing decision-making processes. This means that jobs won't vanish but will evolve to integrate AI as a valuable tool.

AI's Role in Enhancing Job Efficiency:
One of the significant benefits of AI is its ability to automate repetitive and mundane tasks. For example, chatbots can handle customer inquiries, machine learning algorithms can process vast datasets, and AI-driven software can optimize supply chain operations. This automation allows employees to focus on more strategic and creative aspects of their work.

The Demand for AI Skills:
With the growth of AI, there's a soaring demand for professionals with AI-related skills. Data scientists, machine learning engineers, and AI developers are among the most sought-after job roles. Whether you're in software development, healthcare, finance, or any other field, acquiring AI skills can significantly enhance your employability.

Adaptive Learning and Education:
AI is not only changing the job market; it's also influencing how we learn and upskill. AI-driven adaptive learning platforms can personalize educational content to cater to individual learning styles. Virtual tutors and chatbots offer assistance to students, making learning more engaging and effective. Lifelong learning will become the norm as AI evolves and job requirements change.

Ethical Considerations:
As AI becomes more integrated into the workforce, ethical concerns regarding bias, fairness, and transparency have come to the forefront. It's essential for organizations to develop AI responsibly and for employees to be aware of the ethical challenges and potential biases in AI systems.

Conclusion: Adapting to the AI-Enhanced Future
AI's impact on the job market is undeniable. While certain job roles may undergo transformation, the future holds enormous potential for those willing to adapt and embrace AI. The key is to acquire AI-related skills, stay curious and adaptable, and be mindful of the ethical implications of AI in the workplace.

In the coming decade, the coexistence of humans and AI is not a mere possibility; it's a reality. The future of work is being shaped by the collaboration between intelligent machines and the human workforce. By understanding the dynamics and potential of this collaboration, we can thrive in an AI-enhanced job market and shape the future of work for the better.
Machine Learning For Dummies: Part 2
Tags: webdev, machinelearning, ai, learning
Published: 2023-11-06 15:05:26

At [TechDogs](https://www.techdogs.com/), we have an annual tradition of gathering together to watch the Academy Awards, enjoying popcorn, and making our predictions for each category. While we may not always be spot-on with our predictions, it's always a great time! However, wouldn't it be truly exciting if we could accurately forecast the award winners before the ceremony, just for the sake of some friendly boasting?

Interestingly, there's a Machine Learning model that has been accomplishing exactly that. **Unanimous AI**, an American tech company, has been making predictions for the winners in each category with an impressive 94 percent accuracy! In the previous year, this model correctly **predicted the winner** in 15 out of 16 categories. It's a remarkable demonstration of the potential of Machine Learning (ML)!


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

We encounter Machine Learning (ML) in our daily lives, often without even realizing it. If you use a **voice assistant on your smartphone, rely on online translation services, or manage your finances through online banking, you are already benefiting from ML**. While it may not always be obvious, ML has ignited a digital revolution. According to **Forbes, Amazon's current ML algorithm has significantly reduced the 'click-to-ship' time by 225%.** Similarly, Netflix saved over $1 billion in 2017 by implementing its new ML algorithm.

In **Part 2 of our Machine Learning series**, we will explore other facets of ML, including its commercial applications, its future prospects, and why this technology may pose challenges for humanity. If you haven't already read Part 1, we encourage you to give it a go; it remains as relevant as ever. 

If you've already read it, let's dive right in! Click [here ](https://www.techdogs.com/td-articles/curtain-raisers/machine-learning-for-dummies-part-2)to read more!
Sitecore XM Cloud and Vercel Deployment Protection
Tags: sitecore, devops, vercel, xmcloud
Published: 2023-11-06 15:35:40

---
title: Sitecore XM Cloud and Vercel Deployment Protection
published: true
date: 2023-11-06 15:04:34 UTC
tags: Sitecore,DevOps,Vercel,XMCloud
canonical_url: https://jasonstcyr.com/2023/11/06/sitecore-xm-cloud-and-vercel-deployment-protection/
cover_image: https://theagilecoder.files.wordpress.com/2023/11/security-protection-anti-virus-software-60504.jpeg
---

Recently, Vercel made Deployment Protection the [default for all new projects in Vercel](https://vercel.com/changelog/deployment-protection-is-now-enabled-by-default-for-new-projects). This is great news! This means that all your deployments will automatically be able to be secured with authentication, passwords, or trusted IPs.

However, your Sitecore XM Cloud build might not be set up yet to work with Vercel's Deployment Protection. You may encounter a 401 authentication error (unauthorized) when accessing static assets for things like CSS where your Next.js application is trying to use the VERCEL_URL to access these assets.

Updating your Next.js application to use deployment protection
--------------------------------------------------------------

If you are planning on launching a new project on XM Cloud, you'll likely want to take a look at these docs so that you can make sure JSS app is loading these protected assets correctly:

[Use Vercel's cloud platform features to limit access to your site deployments](https://doc.sitecore.com/xmc/en/developers/xm-cloud/use-vercel-s-deployment-protection-feature-with-jss-apps.html)

But what if I don't want this Vercel feature?
---------------------------------------------

You might have scenarios where you'd like to have overall security but in certain use cases you just want to bypass it altogether. Perhaps you are running End To End (E2E) testing, or maybe you have a particular preview environment you are sharing around to others for review. Vercel has a few steps you can take to bypass the deployment protection: <https://vercel.com/docs/security/deployment-protection/methods-to-bypass-deployment-protection>

You can also turn off the protections completely in the **Project Settings ▶ Deployment Protection** tab of your Vercel project.

![Project Settings Deployment Protection tab with protection disabled](https://theagilecoder.files.wordpress.com/2023/11/image-5.png)]
How to create a 'canary' release on npm
Tags: npm, javascript
Published: 2023-11-06 14:19:07

This post will show how to create a [canary release](https://en.wikipedia.org/wiki/Feature_toggle#Canary_release) for an npm package.

## tldr;

```bash
npm version --preid canary preminor
npm publish --tag canary
```

## canary testing

In short, canary testing is a way to publish packages without affecting all users. Users will  have to opt-in to use a canary release.



## versioning

The [version](https://docs.npmjs.com/cli/v6/commands/npm-version) command has a few built in options.

If our package is at `1.1.0` then running `npm version minor` will update the package.json to `1.2.0`. Additionally, it will update `package-lock.json` and `npm-shrinkwrap.json` and add a git tag.

To update `1.1.0` to a canary version, run:

```bash
npm version --preid canary preminor
```

This updates the version to `1.2.0-canary.0`.



To make updates to this version, run:

```bash
npm version --preid canary prerelease
```
This updates the version to `1.2.0-canary.1`.



## publishing

To ensure that the canary branch isn't published to `@latest`, it can be tagged.

To do so, run:

```bash
npm publish --tag canary
```

This ensures that when a user runs:

```bash
npm i your-pkg
```

That it installs the latest, stable, release.

To install the canary version, they must run:

```bash
npm i your-pkg@1.2.0-canary.1
```


## summary

```bash
npm version --preid canary preminor # go from 1.1.0 to 1.2.0-canary.0
npm version --preid canary prerelease # go from 1.2.0-canary.0 to 1.2.0-canary.1
npm publish --tag canary # publish your-pkg@1.2.0-canary.1
```
Sync Folder Using Rsync
Tags: devops, engineer, ubuntu, archlinux
Published: 2023-11-06 14:45:29

Hai,
Pada postingan ini akan membahsa tentang syncronize folder atau file dengan rsync.
Rsync adalah sebuah software yang digunakan untuk melakukan sinkronisasi dan transfer data antara sistem komputer yang berbeda. Singkatnya, rsync memungkinkan untuk menyalin, memindahkan, atau menyinkronkan file dan direktori dari satu lokasi ke lokasi lain melalui jaringan lokal atau melalui SSH ([biznetgio.com](https://www.biznetgio.com/news/apa-itu-rsync))

Langsung ke cara pemakaianaya

```
rsync -arv source destination
```

Atau bila ingin melihat partial dan progressnya bisa tambahkan berikut

```
rsync -arvP source destination
```

Berikut beberapa contoh penggunaanya:

```
rsync -arvP -e 'ssh -p 123'  root@10.10.10.1:/root/simulasi/ run/
```
Jika ingin mengexclude file atau folder 

```
rsync -avre 'ssh -p 123' --progress --exclude="folder29" root@10.10.10.1:/root/simulasi Migrasi/run 
```
Jika ingin mengexclude beberapa folder bisa seperti berikut

```
rsync -avrPe 'ssh -p 123' --exclude={'folder2','folder5','folder35'} root@10.10.10.1:/root/simulasi Migrasi/run
```

semoga bermanfaat
10 Coisas Imperdíveis na Sua Primeira Viagem a Orlando: Descubra a Magia da Flórida
Tags: viagenseturismo, disney, orlando
Published: 2023-11-18 11:42:55

---
title: 10 Coisas Imperdíveis na Sua Primeira Viagem a Orlando: Descubra a Magia da Flórida
published: true
date: 2023-11-06 14:44:20 UTC
tags: ViagenseTurismo,Disney,Orlando
canonical_url: https://astronautsdevelopers.com/10-coisas-imperdiveis-na-sua-primeira-viagem-a-orlando-descubra-a-magia-da-florida/
---

Orlando, a capital mundial dos parques temáticos, é um destino de sonho para pessoas de todas as idades. Com seus parques repletos de atrações emocionantes, personagens encantadores e shows espetaculares, Orlando oferece uma experiência de férias inesquecível. Se você está prestes a fazer a sua primeira viagem a Orlando, parabéns! Esta cidade mágica é um...
Query regarding zoom & webex apis & sdk for voip calls.
Published: 2023-11-06 14:38:29

Hi there,

We want to develop an application where international calls can be done through Zoom or webex. So, in our application only, we want to open an interface where the calls would be done through Zoom or webex. 

We are ready to integrate Zoom or webex Phone APIs or SDKs.
We don’t want to redirect user to zoom or webex app, we want to make calls from our application only. Second query - Also, good if we can receive zoom or webex incoming calls to our application itself. We want to do this for Android as well as iOS.


Can you please guide how this can be achieved?
Embracing modularity as 2024 nears
Tags: programming, react, webdev, productivity
Published: 2023-11-06 14:34:43

As we edge closer to 2024, it's time to shift our web development paradigms towards a plugin-centric architecture. This shift could bring about a sea change in how we build and interact with the web. But first, let's clear the air on some terminology.

Today's web is a sprawling metropolis of 1.13 billion websites, yet shockingly, less than half leverage the power of extendable plugins. And those who do often miss out on the advantages a modern web has to offer. This gap highlights a massive potential for innovation and efficiency.

Let's talk about what makes a React Plugin stand out. Unlike a typical React Component, which serves as a building block within an application, a plugin acts as a bolt-on, enhancing functionality without disturbing the existing infrastructure. And when we look at React Libraries, we see a toolkit designed to address coding challenges, yet often falling short when it comes to broader, application-wide solutions.

To make it crystal clear:

- Components are the building blocks of web applications, especially in frameworks like React. They are reusable UI elements — such as buttons, input fields, or navigation bars — that serve specific functions on the page.

- Libraries are collections of these components and/or functions that are used to solve common problems in a more abstract way. They provide a set of tools that developers can use to create functionality without building from scratch. A good example is lodash, which offers utility functions for common programming tasks.

- Plugins extend the functionality of an existing system without modifying its core. In the context of web development, a plugin could allow a website to have additional features such as a payment gateway, an SEO optimizer, or a drag-and-drop builder. They act as add-ons that can be plugged into an application to extend its capabilities.

This is where plugins shine — they offer targeted, real-world solutions, enabling applications to evolve and adapt effortlessly to emerging needs.

Imagine the potential of React plugins transforming your website: chatbot plugins that enrich user engagement, e-commerce plugins that streamline setting up an online store, SEO plugins that elevate your site's visibility on search engines, event calendar and booking plugins that simplify appointment setting, social media sharing plugins that amplify your digital footprint, and membership and subscription plugins that foster a sense of community among users.

The question stands: Is there room for a standardized plugin solution in React, akin to WordPress's dominance in the PHP world?

Your insights are invaluable. What's your take on the future of plugins in React? Could this be the dawn of a new era in web development?

{% cta https://webcrumbs.org %} Join the WebCrumbs community and be a part of the plugin revolution. {% endcta %}
Os melhores aspiradores robóticos com orçamento para 2024
Tags: notícias, aspiradorrobô, robô
Published: 2023-11-06 20:20:18

---
title: Os melhores aspiradores robóticos com orçamento para 2024
published: true
date: 2023-11-06 14:15:14 UTC
tags: Notícias,AspiradorRobô,Robô
canonical_url: https://astronautsdevelopers.com/os-melhores-aspiradores-roboticos-com-orcamento/
---

Quem é que não gosta de uma casa limpa e organizada? Mas vamos ser sinceros, a limpeza nem sempre é a tarefa mais divertida. Felizmente, os aspiradores robóticos estão aqui para nos ajudar! Os aspiradores robóticos são uma ótima maneira de manter o seu chão limpo, sem ter que fazer o trabalho pesado. Eles passam...

https://astronautsdevelopers.com/os-melhores-aspiradores-roboticos-com-orcamento/
somethings that have happened in the tech industry
Tags: discuss, news
Published: 2023-11-06 14:05:00

The tech industry is constantly evolving and recent developments have brought about significant changes. One such development is the global movement advocating for the **right to repair**¹. This movement is pushing for consumers to have the ability to repair their own devices and appliances without being restricted by manufacturers. The implications of this movement could be profound for the tech industry, potentially revolutionizing the way we interact with our devices and shifting the balance of power from manufacturers to consumers.

Another noteworthy event in the tech industry is the release of a new manifesto by venture capitalist billionaire **Marc Andreessen**. This manifesto, which outlines a vision of 'becoming technological supermen', has been described as a 'techno-optimist' document built on a dark colonial vision. The philosophy driving this manifesto could have far-reaching implications for the tech industry, potentially shaping its future direction.

However, the tech industry is not without its challenges. A recent survey by The Fawcett Society and Virgin Media O2 highlighted the persistent issue of **gender inequality** in the sector. The survey found that a 'tech bro' work culture of sexism forced more than 40 percent of women in the sector to think about leaving their role at least once a week. This highlights the urgent need for the tech industry to address the gender gap and sexism.

In conclusion, the tech industry is at a crossroads. The right-to-repair movement, the new manifesto by Marc Andreessen, and the ongoing issue of gender inequality are just a few of the recent developments that could shape the future of the industry. As we move forward, it will be interesting to see how these issues are addressed and what impact they will have on the tech industry as a whole.
Music Monday — What are you listening to? (Guitar Hero Edition 🎸)
Tags: watercooler, music, discuss
Published: 2023-11-06 14:00:00

_cover image source: [Giphy](https://giphy.com/gifs/santana-62605cau996N95Ymnd)_

**So, I've been playing a lotta guitar recently and am loving it. It's such a versatile instrument and can sound so different depending on whose hands it's in, what genre is being played, and what kind of setup you're using. From acoustic to electric, Jimi Hendrix to Yvette Young, hard rock to gypsy jazz... in one moment, the guitar can conjure up the most mean & loud, distorted badassery you've ever laid ears on and the next it can become soft, delicate, natural — its plucked strings soothing you into relaxation. It's a dynamic instrument for sure, but it's also iconic and super cool. 😎 With all that said, I want to hear who y'all's favorite guitar heroes are... what guitar-centric songs stand out in your mind? How about those best live performances on guitar? What's your go-to genre when you need your guitar fix? And in the age of the internet, do you have any guitar gurus/phenoms/prodigies that you envy/admire? Gimme some guitar!** 🎸

![Joan Jett & the Runaways rocking out on stage with guitars for Top of the Pop...](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dt0ay1jbjp0o5mxkdlm6.gif)

***

## How we do 

In this weekly series, folks can chime in and drop links to whatever it is they've been listening to recently + browse others' suggestions. You can follow the suggested genre if you'd like, but don't feel confined to it; you're free to suggest whatever you wanna. 🙌  

If you're interested in having other discussions about music, consider following the aptly named [#music discussions](https://dev.to/music-discussions) organization.

{% embed https://dev.to/music-discussions %}  

***

Tune up and hold onto your whammy bars, we're about to guit this thing started! _Note: you can embed a link to your song using the following syntax `{% embed https://... %}`. This should work for most common platforms!_

Looking forward to listening to y'all's suggestions! 🎶
Slow Requests in Google Cloud Run for Slack Apps
Published: 2023-11-06 13:58:40

If you're experiencing slow requests to third party services via API and doing it with Slack bolt, make sure you have the following toggle on in Google Cloud Run:

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

Hope this helps.