teleren/devto huggingface dataset:
Покупка квартиры и недвижимости в Санкт-Петербурге
Published: 2023-11-16 20:43:04

## Купить квартиру в Санкт-Петербурге

При планировании покупки квартиры в Санкт-Петербурге важно учитывать различные факторы, такие как расположение, стоимость, площадь и состояние недвижимости. Существует множество ресурсов, где можно найти предложения о продаже квартир в Санкт-Петербурге. Один из них - сайт Cian ([https://spb.cian.ru/kupit/](https://spb.cian.ru/kupit/)), который предлагает широкий выбор квартир различной площади и стоимости в разных районах города. Перед покупкой обязательно ознакомьтесь с деталями объявления, чтобы убедиться в соответствии предложения вашим требованиям и пожеланиям.

## Недвижимость в Санкт-Петербурге на Avito

Еще один популярный ресурс для поиска недвижимости в Санкт-Петербурге - сайт Avito ([https://www.avito.ru/leningradskaya_oblast/nedvizhimost?ysclid=loy5k6ydg207174410](https://www.avito.ru/leningradskaya_oblast/nedvizhimost?ysclid=loy5k6ydg207174410)). Здесь вы можете найти разнообразные предложения о покупке квартир, домов и других объектов недвижимости в разных районах города и области. Перед тем, как связываться с продавцом, рекомендуется внимательно изучить описание объявления и задать все интересующие вас вопросы.
Lambda@Edge & CloudFront Functions
Tags: serverless, aws, cloud, beginners
Published: 2023-11-16 20:38:00

# Introduction
So let's talk about customization at the edge.
So what does it mean?

Well we know we deploy our functions and our applications in a specific region, but sometimes using, for example, CloudFront, we have the Edge locations are distributing our content.
And sometimes the modern applications require to execute some form of logic at the Edge before reaching the application itself.

So these are called Edge Functions, and this is a piece of code that you write and that you will attach to your CloudFront distributions.

The idea is that you want to run these functions close to users in order to minimize latency in some cases.
So CloudFront has two kinds of functions, you have the **CloudFront** Functions and **Lambda@Edge**.
The idea will be to be able to understand when they are required and their differences.

But using the Edge Functions, you don't have to manage any servers, these Edge Functions are deployed globally.
And the use cases of them, for example, would be to customize the CDN content coming out of CloudFront.
Also, you only pay for what you use, and it is fully serverless.

# Use Cases
In terms of website security and privacy, when we have dynamic web applications at the Edge, we can do:
- Search engine optimization, SEO
- Intelligent routing across Origins and data center
- Bot mitigation at the Edge
- real-time image transformation at the Edge
- A/B testing
- user authentication and authorization,
- user prioritization, user tracking and analytics
- and so on...

CloudFront Functions is going to be for cache key normalization, so to transform, for example the request attributes to create an optimal cache key.

Header manipulation to insert, modify, or delete HTTP headers in the request or response, or to do URL rewrites or redirects, or to request of an authorization to create and validate JWT tokens to allow or deny request.

So all these things can be executed in less than one millisecond, whereas Lambda@Edge has a longer execution time, it could be up to 10 seconds, for example.

You have adjustable CPU and memory, so you can load a lot of libraries, and your code can depend therefore, on third party libraries, such as the SDK if you wanted to access other AWS services.

You also have network access to external services for processing the data, so you can really perform some big integrations.

And Lambd@Edge gives you file system access, or access to the body itself of the HTTP request, so you can do some more customizations.


[GitHub](https://github.com/a00ayad00)
[LinkedIn](https://www.linkedin.com/in/a00ayad00)
[Facebook](https://m.facebook.com/a00ayad00)
[Medium](https://a00ayad00.medium.com/)
License key verification with Gumroad API
Tags: gumroad, api, node
Published: 2023-11-16 20:33:49

---
title: License key verification with Gumroad API
published: true
tags: ['gumroad', 'api', 'node']
canonical_url: https://sevic.dev/notes/license-key-verification-gumroad-api/
---

[Gumroad](https://gumroad.com) allows verifying license keys via API calls to limit the usage of the keys. It can be helpful to prevent the redistribution of products like desktop apps.

Allow generating a unique license key per sale in product settings, and the product ID will be shown there. Below is the code snippet for verification.

```js
try {
  const requestBody = new URLSearchParams();
  requestBody.append('product_id', process.env.PRODUCT_ID);
  requestBody.append('license_key', process.env.LICENSE_KEY);
  requestBody.append('increment_uses_count', true);
  const response = await fetch('https://api.gumroad.com/v2/licenses/verify', {
    method: 'POST',
    body: requestBody,
  });
  const data = await response.json();

  if (data.purchase?.test) {
    console.log('Skipping verification for test purchase');
    return;
  }

  const verificationLimit = Number(process.env.VERIFICATION_LIMIT);
  if (data.uses >= verificationLimit + 1) {
    throw new Error('Verification limit exceeded');
  }

  if (!data.success) {
    throw new Error(data.message);
  }
} catch (error) {
  if (error?.response?.status === 404) {
    console.log('License key doesn\'t exist');
    return;
  }

  console.log('Verifying license key failed', error);
}
```

### Demo

The demo with the mentioned example is available [here](https://sevic.dev/demos).
Поиск в интернете: сравнение поисковой системы и поиска в Гугле
Published: 2023-11-16 20:30:05

## Поисковая система

В современном интернете существует множество поисковых систем, одной из самых популярных является [поисковая система](https://ya.ru/). Она предлагает широкий спектр функций для эффективного поиска информации в сети.

## Поиск в Гугле

Другая известная поисковая система - это поиск в Гугле. [Поиск в Гугле](https://www.google.com/) стал синонимом быстрого и точного поиска в интернете.

Сравним эти два варианта поиска в интернете:

## Результаты поиска

Поисковая система предлагает пользователю результаты поиска, основанные на различных алгоритмах и критериях. Она учитывает не только релевантность страниц, но и другие факторы, такие как популярность и доверие источника информации.

Поиск в Гугле также предоставляет результаты поиска, но с алгоритмами, которые немного отличаются от поисковой системы. Гугл уделяет особое внимание релевантности исходя из запроса пользователя и постоянно работает над улучшением своих алгоритмов.

## Функциональность

Поисковая система предлагает различные функции для удобного и эффективного поиска информации. Она может предложить похожие запросы, фильтры, сортировку результатов, предварительный просмотр страницы и многое другое.

Поиск в Гугле также обладает широкими возможностями для пользователей. Он предлагает интеллектуальные подсказки, предварительный просмотр страницы, карты, изображения, видео и другие функции, которые помогают пользователю найти искомую информацию еще быстрее и удобнее.

## Реклама

Как и многие другие поисковые системы, [поисковая система](https://ya.ru/) и поиск в Гугле содержат рекламные объявления. Однако, важно отметить, что реклама не является основным элементом поисковой системы или поиска в Гугле. Они стараются предоставить пользователю наиболее релевантные и полезные результаты поиска, основываясь на их запросах.

В итоге, и [поисковая система](https://ya.ru/), и поиск в Гугле предлагают пользователю широкий спектр возможностей для эффективного поиска информации в интернете. Выбор между ними зависит от предпочтений и потребностей каждого конкретного пользователя.
Влияние поисковых систем на поведение пользователей
Published: 2023-11-16 20:29:28

## Поисковая система

          Поисковая система – это онлайн-инструмент, который позволяет пользователям находить информацию в Интернете. Одной из самых популярных поисковых систем является [Яндекс](https://ya.ru/). Благодаря поисковым системам люди могут быстро найти ответы на свои вопросы, искать новости, покупать товары и многое другое.    

    ## Поиск в гугле

          Google – одна из самых популярных и широко используемых поисковых систем в мире. Доступность и простота использования делают ее предпочтительным выбором для многих пользователей. Благодаря уникальным алгоритмам и технологиям Google, пользователи получают релевантные и точные результаты поиска.    

          Использование поисковых систем, включая Google, значительно влияет на поведение пользователей. Люди, ищущие информацию, могут проводить более глубокий анализ, сравнивать различные источники и принимать информированные решения на основе полученных результатов. Поисковые системы также формируют поведение пользователей в сфере онлайн-покупок. Они позволяют потребителям сравнивать цены, читать отзывы и выбирать наиболее подходящие товары или услуги.    

          Кроме того, поисковые системы могут влиять на поведение пользователей в социальных сетях. Результаты поиска и рекомендации поисковых систем могут влиять на то, как люди взаимодействуют с информацией и другими пользователями в онлайн-среде.
Un profesional de TI con superpoderes.
Tags: writing, spanish
Published: 2023-11-16 20:15:50

Uno de las cosas que mencionaba Steve Jobs en alguna de sus platicas es la idea de conectar puntos.

Como desarrollador de software llega un momento en donde ya es relativamente sencillo en saltar entre tecnologías y lenguajes de programación. Por que gran parte de las tecnologías adaptan patrones que son bastante similares entre pilas de tecnologías.

Yo por ejemplo mi carrera en este mundo de la programación empecé haciendo programación en C, recuerdo que dedique bastante tiempo entendiendo muchos conceptos y llego un momento en donde ya podía resolver problemas. De ahí pase a Java y empecé a entender como guardar un poco más estructurados los datos en clases y como esas clases se podían comunicar para resolver problemas mucho mas complejos como una especie de LEGO. Con estos conocimientos y experiencia de resolver problemas, pase a la parte web con PHP porque se me hacía muy familiar la forma en la que tenia que construir con lo que ya traía de Java. De ahí pase a construir aplicaciones en Android por lo de Java y la base de PHP me permitió hacer API's. Con lo de Android pasar a iOS no es pan comido pero son tecnologías bastante parecidas que es en lo que ando. La construcción de API's existen fundamentos que bien los puedes aplicar a otra tecnología por ejemplo NodeJS con ExpressJS. Y eso es lo que ando ahora pero todo lo anterior me ha permitido entrar en la parte de aprendizaje computacional, y lo que sigue no se que es lo que es lo que se podría ser.

Pero al punto al que quiero llegar es que no te limites a lo que tu curiosidad te empuje, me considero un generalista, toda esa historia que te conté ha estado plagada de experimentos con servidores, diferentes tecnologías y plataformas como lo es Ruby, Bash, Docker, Azure, AWS, Copilot, Angular, Laravel, Python, Django, entre otras.

Tener este panorama mas amplio de tecnologías te permite una mejor toma de decisiones, al fin y al cabo son herramientas que necesitas utilizar para resolver problemas y dependiendo el problema unas se adecuan mejor que otras.

No seas el desarrollador de software que ocupa una sola tecnología para todo, revisa, investiga, haz MVP's, equivócate, deja una tecnología, regresa años después que mejoro, que empeoro. SI, la ultra especialización es el pan de todos los días de muchas personas de TI pero yo no me siento a gusto encapsulándome a algo todo el tiempo, entiendo que las tecnologías van avanzando y tienes que actualizarte pero ve mas allá.

El profesional de vanguardia de las TI debería de tener la capacidad técnica buena pero también el poder coordinar equipos, delegar, saber expresarse de manera fácil y sencilla además de contar con habilidades de comunicación, obviamente todo esto es aspiracional no llegas al punto en donde dominas todo y sabrás todo pero si te da un entendimiento superior de varias cosas. 

Te conviertes en un profesional de las TI con superpoderes.

— U.
Automated Testng
Published: 2023-11-16 20:07:40

For this lab we had to create a CI that would basically run the tests when we push into the repository after we requested a Pull Request. Seemed straight forward enough right? WRONG, for someone who is unfamilliar with CI, I had no clue where to start luckily I had our professor guide us how to do it.

So I started with implementation of the tests, I'll be honest It was quite trouble some because when I created the yaml file I did it manually and when I tried pushing it the first time it was giving me error [Closed PR for CI testing](https://github.com/rabroldan/Waypoint/pull/21) as you can see right here. it was because the yaml file I had was different and was failing for some reason. so I had to re do the entire thing all over again.

I had to close the file, and requested another PR jsut to ensure it was done crrectly. I tried the github actions congifuration python for the workflow and it included all the things I needed. which also included flake8 which is my linter program which was convient enough since we had to implement an optional linter test test.

This is the [main PR](https://github.com/rabroldan/Waypoint/pull/24) that I did, I was a bit sad because I was not able to implement my automatic failure test code because it was failling, maybe i should have merged it still but I did not want to make such a hassle for anyone else working on my repo. luckily it worked well with my lab because it was required for us to purposely fail a program which luckily enough it did and I was able to finish the first part of the testing.

For the second part this is where it got interesting. I tried working on like 3 repository and had their own issue. 1 was not properly set up and I tried eveyrthing I could to run it and it was still not working, I used 2 different machines and was not able to make it work, so I had to just move on. Next I worked on program but the CI wasnt set up yet, thinking to myself, I could make one for this repo but that means me doing their work for them, so I moved on again. 

The third repository I worked for was a godsend, it had its own problem but was really manageable, I spoke with the owner of the repo and was appreciative enough to communicate with me to run the program properly, It was running all the tests without actually calling anything specific and, even if we did call in a specifi unittest to run it will still run everything. I reviewed te file and saw that there was a missng module in the tests folder which was a *__innit__.py* file tobe able to import the package or take import from otherm odule properly.

After implementing this module we were able to run the unittest individually, I created a simple unittest to test the argument passer of -v or -version. It was a simple code but it showed the functionality of the program and by implementin that *__init__.py* we were able to run the program properly.

All in all this lab was very helpful as it was interesting to learn CI and unittest as those are the things that I truly wanted to learn from the get go. Maybe to make things easier i should just work on pycharm but let's see. ON TO THE NEXT AND FINAL LAB!
Securing Your CI/CD Pipeline: A Beginner’s Guide to Implementing Essential Security Measures
Tags: cloudstuff, github, kubernetes, security
Published: 2024-01-16 14:15:46

---
title: Securing Your CI/CD Pipeline: A Beginner’s Guide to Implementing Essential Security Measures
published: true
date: 2023-11-16 19:58:52 UTC
tags: CloudStuff,github,kubernetes,Security
canonical_url: https://blog.shellnetsecurity.com/2023/11/677/cloudstuff/securing-your-ci-cd-pipeline-a-beginners-guide-to-implementing-essential-security-measures/
---

If you take a look at this blog, you’ll see that I’ve begun to tinker with devops quite a bit. If you’ve ever taken the trouble to look me up on LinkedIn, you’ll also see that I’ve had a little history doing security stuff. Given my love of security, the next logical step of my ... [Read more](https://blog.shellnetsecurity.com/2023/11/677/cloudstuff/securing-your-ci-cd-pipeline-a-beginners-guide-to-implementing-essential-security-measures/ "Securing Your CI/CD Pipeline: A Beginner’s Guide to Implementing Essential Security Measures")

The post [Securing Your CI/CD Pipeline: A Beginner’s Guide to Implementing Essential Security Measures](https://blog.shellnetsecurity.com/2023/11/677/cloudstuff/securing-your-ci-cd-pipeline-a-beginners-guide-to-implementing-essential-security-measures/) appeared first on [My Battles With Technology](https://blog.shellnetsecurity.com).
Install Drupal 10 with Lando
Tags: drupal, lando, docker, setup
Published: 2023-11-16 19:45:10

In this post, we will guide you through the process of setting up a Drupal 10 project using Lando, a powerful local development environment. 

Before we begin, make sure you have PHP, Composer, Docker and Lando installed on your system. We'll then download Drupal 10 and configure a basic Lando setup.

**Step 1: Install PHP**

Ensure PHP is installed on your machine. You can follow the official PHP installation guide for your operating system.

[php.net](https://www.php.net/manual/en/install.php)

**Step 2: Install Composer (Make it Global)**

Install Composer and make it globally accessible. You can download it from [getcomposer.org](https://getcomposer.org/) and follow the installation instructions.

**Step 3: Install Docker**

Download and install Docker from the official Docker website.

[docs.docker.com](https://docs.docker.com/engine/install/)

**Step 4: Install Lando**

Install Lando by following the instructions on the official Lando website or by using a package manager like Homebrew.

[docs.lando.dev](https://docs.lando.dev/getting-started/installation.html)

**Step 5: Download Drupal 10**

Download Drupal 10 to your desired location. You can use git or download the tarball from Drupal's official website.

[drupal.org](https://www.drupal.org/download)

**Step 6: Initialize Lando**

Navigate to your Drupal 10 project directory and run the following commands:

```bash
$ lando init
```

Follow the prompts:
- Choose current working directory as the app's codebase.
- Select 'drupal10' as the recipe.
- Set the webroot relative to the init destination as './web'.
- Name your app, e.g., 'my-first-drupal-10-project'.

**Step 7: Start Lando**

Start your Lando environment:

```bash
$ lando start
```

**Step 8: Check Database Information**

To access your database, use the following command:

```bash
$ lando info
```

Take note of the database name, password, user, and optionally, the hostname.

Go to your browser and follow the Drupal installation.

## Bonus

**Step 9: Stop Lando**

Stop your Lando environment when needed:

```bash
$ lando stop
```

**Step 10: Modify PHP Version**

Edit your `.lando.yml` file to set the PHP version to 7.4 under the config section.

**Step 11: Restart Lando with PHP 7.4**

Restart Lando to apply the changes:

```bash
$ lando start
```

**Step 12: Verify PHP Version**

Access your Lando environment and check the PHP version:

```bash
$ lando ssh
$ php --version
```

**Step 13: Rebuild Lando**

If needed, rebuild your Lando environment:

```bash
$ lando rebuild
```

**Step 14: Verify PHP Version Again**

After rebuilding, check the PHP version once more:

```bash
$ lando ssh
$ php --version
```

**Summary:**

Congratulations! You've successfully set up a Drupal 10 project using Lando, managing PHP versions seamlessly. Remember, these steps provide a foundation for your local development environment, allowing you to efficiently work on your Drupal projects.
Back to Back-end development
Tags: backenddevelopment, productivity, career
Published: 2023-11-16 19:53:20

It's been over two years since I was a part of [Scarlet Data Studio](https://scarletstudio.github.io/transithealth/). As this year comes to a close, I'd like to take this time to reflect back on these past two years and take a look at my career flow. A lot has changed and in that time, I had to take care of family, went back to school and even became a STEM instructor for a Non-for-profit organization in which I had the chance to get into robotics again! (I will talk more about robotics later).

According to Coursera, 

> Back-end development means working on server-side software, which focuses on everything you can't see on a website. Back-end developers ensure the website performs correctly, focusing on databases, back-end logic, application programming interface (APIs), architecture, and servers.

It includes all the code needed to build out the database, server, and application. From database migrations to API integrations to setting up the server-side technologies that make a website tick. The “traditional” back end is a mix of the server, databases, APIs, and operating systems that power an app’s front end. 

Knowing this, this sounds very exciting to me which is why I would like to return to developing and further advance my career.
Let's celebrate PartyRock, an Amazon Bedrock Playground
Tags: aws, ai, beginners, partyrockplayground
Published: 2023-11-16 19:47:04

Here comes a smart friend that helps you build Generative AI apps

## PartyRock

An Amazon Bedrock Playground is a generative AI app development playground that enables interactive experimentation with prompt engineering in an accessible and enjoyable manner.


---

## Good Eats Restaurant Recommendations
My First  Generative AI app created using PartyRock


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


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

**Good Eats Restaurant Recommendations** is an app that is created using PartyRock playground that will provide restaurant recommendations based on your preferences on location, cuisine, and meal


Here is the app link:

https://partyrock.aws/u/Nandini/VKvXSeZHH/Good-Eats-Restaurant-Recommendations/snapshot/GoQwp-oSg


## Features observed while building the first app


 **A code-free playground where An app can be created with just a few clicks**

Yes, Its that simple. With a few clicks, we can create our desired app. No lengthy programs 


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

---



**Featured apps built with PartyRock to start with**

There are some simple AI-powered app ideas which can be used to build the apps


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




**Access to powerful foundation models from Amazon Bedrock**


> Amazon Bedrock is a fully managed solution that makes foundation models (FMs) from Amazon and prominent AI firms available on AWS. It is the simplest way to construct and scale generative AI applications using foundation models. 

PartyRock Integrates with Amazon Bedrock and can provide widgets that can be used to generate  AI-powered  images,  text, and chatbots.


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

**Remix existing apps to create new ones with a unique flavor**

You can Remix the existing apps to create your own copy of them and customize them to bring a different flavor

**Sharing the app - made simple**

With PartyRock, you can easily share apps and content you develop. You can even use the snapshot option to preserve  your inputs and outputs while sharing the app link


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


_Build your favorite AI-powered apps using PartyRock Play Ground_

visit https://partyrock.aws/


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


---