teleren/devto huggingface dataset:
AWS Cognito | Amazon Cognito | AWS Tutorial for Beginners | AWS Training
Published: 2022-12-16 07:17:52

This "AWS Cognito" by Edureka will help you get going on one of the most essential AWS services called Amazon Cognito. If you're building a modern web or mobile app, odds are good that you're going to need to handle common operations like signing in users and maintaining their profiles. Amazon Cognito allows you to offload this undifferentiated heavy lifting to a managed AWS service, so that you can focus on the core features and functionality of your application, while knowing that the critical aspects of handling authentication are being implemented properly and securely at any scale.
{% embed https://www.youtube.com/watch?v=jTu--LpjA18 %}
Apache Spark Tutorial | Spark Tutorial for Beginners | Apache Spark Training
Tags: aws, spark, apache
Published: 2022-12-16 07:09:54

This Edureka Spark Tutorial (Spark Blog Series: https://goo.gl/WrEKX9) will help you to understand all the basics of Apache Spark. This Spark tutorial is ideal for both beginners as well as professionals who want to learn or brush up Apache Spark concepts
{% embed https://www.youtube.com/watch?v=9mELEARcxJo %}
Advent of Code 2022 + End of Year Updates
Tags: blog, python, adventofcode, 6502
Published: 2023-02-01 02:33:57

---
title: Advent of Code 2022 + End of Year Updates
published: true
date: 2022-12-16 05:00:00 UTC
tags: Blog,python,adventofcode,6502
canonical_url: https://tyrel.dev/blog/2022/12/advent-of-code-2022-end-of-year-updates.html
---

Advent of Code this year is kicking my butt so I haven't been doing any tech blogging really lately. If you want to follow my progress, I think I might be done as of day 15 - This one seems to be a traveling salesman/knapsack problem related. Here's my repo: [https://gitea.tyrel.dev/tyrel/advent-of-code/src/branch/main/2022/python](https://gitea.tyrel.dev/tyrel/advent-of-code/src/branch/main/2022/python).

I'm not on the computer that runs it, but I've been spending a lot of time playing with Apple's System7 in the BasiliskII emulator. Might have some fun projects with that coming up, but wanted to do some more learning before I start anything. So I have been going through a course on 6052 Assembly programming for the NES, and I'm about 73% done with that, it's really great!

It's By Gustavo Pezzi at [Pikuma](https://pikuma.com/courses/nes-game-programming-tutorial), if "oldschool" programming floats your boat then I definitely recommend it. It's all programming through making roms with CC65/CA65 assembler, and using FCEUX to see your results, super neat.

I've been picking up some more Go work at work. My current team is sort of disbanding so I'm going to be moving away from doing just Python. It's been a year since I've done Go stuff, since I left Tidelift, so I'm really rusty.

Speaking of Rust, I was trying to do Advent of code in Rust also, and made it TWO whole days in Rust. It's still on my bucket of stuff to learn, but my free time seems to be running out lately, and I have a lot of things on my plate to get done.

Reminder, you can find me on [The Fediverse](https://social.tyrel.dev/tyrel/) as opposed to Twitter these days.
Amazon Virtual Private Cloud (VPC) | AWS VPC | AWS Tutorial for Beginners
Tags: aws, vpc
Published: 2022-12-16 07:01:56

This "AWS VPC Tutorial" will provide a deep-dive into Amazon Virtual Private Cloud. Throughout the session, you'll learn about various concepts such as Subnets, Route Tables, Internet Gateway, CIDR, security groups, etc. It also includes a demo on launching an instance in AWS VPC. This AWS VPC tutorial will help AWS Certified Solutions Architect and other AWS cloud certification aspirants. 

{% embed https://www.youtube.com/watch?v=b1b6JTYnbjU %}
232. Leetcode Solution in java
Tags: java, chiki1601, misspoojaanilkumarpat
Published: 2022-12-16 06:32:47

```java
class MyQueue {
  public void push(int x) {
    input.push(x);
  }

  public int pop() {
    peek();
    return output.pop();
  }

  public int peek() {
    if (output.isEmpty())
      while (!input.isEmpty())
        output.push(input.pop());
    return output.peek();
  }

  public boolean empty() {
    return input.isEmpty() && output.isEmpty();
  }

  private Deque<Integer> input = new ArrayDeque<>();
  private Deque<Integer> output = new ArrayDeque<>();
}

```
#leetcode
#challenge
Here is the link for the problem:
https://leetcode.com/problems/implement-queue-using-stacks/
5 Best PEMF devices for home
Published: 2022-12-16 06:20:22

PEMF devices are the newest technology for working with physical pain. These products use low-frequency electromagnetic waves to cure chronic and acute body pains. You can increase or decrease the intensity of these waves as per your needs. While this technology was not so extensively available before, it has recently come to be available for home usage as well. This suggests you could use different  devices from the comfort of your home for effective
Data Structure & Why It Is So Important? 👩‍💻👨‍💻
Tags: computerscience, beginners
Published: 2022-12-16 06:03:54


> "To build a house, you need a structure. When you choose the right structure for your house, your design aligns perfectly. Similarly, Data structures are programming structures essential in building your best program." - Ayesha Mahmood

 **Data Structures are classified into two types:**

1. Primitive Data Types
2. Non-Primitive Data Types

**Learn More about Primitive & Non Primitive Data types **
{% embed https://dev.to/ahseya03/primitive-data-types-are-primary-colors-for-creating-non-primitive-data-types-4346-temp-slug-6931250?preview=f091fa6c85e8f6db544eee2d61c94f57b867c59e8daa00c29c8f36af245de519fc4039144cc702b0c0d25bf19a37f5f2cc4f05e80fa34d22dbfc7f90 %}
 **Overview of Data Structure Types**

**Choose your Structure!**

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

**Why do we learn about Data Structure in Computer Science?**

It's hard to understand how Data Structure plays a role in programming and confuses many students why they have to learn Data Structure in their first Computer Science class.

**Data structures** are actually an essential way one can store data in a particular way that makes it efficient for use.

When you are writing code there will be data you want to store and there will also be data from the user.


 We need something to store that data. **So how do we store that data?** This is where data structure comes in handy and that is the function of data structure which is built for organizing, processing, retrieving, and storing data.

Here we defined type as  "string name". We are essentially creating a container of string data type to store only strings. There will be data from the user's side. In this example, the user will enter their name(data) as a "string" data type and this name will be stored in the container for string we defined.
For example:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/53llpoao4nrzju5oy9vc.png)
We are asking the user for input. We are asking the user to type or input their name by using "cin name" command. We are getting input from the user. When asked for a name, the user entered "Sarah". "Sarah" string data is entered by the user which is then stored in the string container. The data is then  processed and retrieved back to the console as output "Hello Sarah."
Vendure - Assets to an S3 bucket
Tags: webdev, javascript, beginners, aws
Published: 2022-12-16 05:45:29

As my webshop serves a lot of images, I wanted to leverage a good CDN and quickly found a neat integration with S3 available for Vendure.

In this article, I'll show you how you can connect and leverage an S3 bucket as your asset storage.

## Setting up Amazon

The first thing you'll need is an AWS account, which can be tedious. (Mainly quite long)

Head over to AWS and create your account.

[Create AWS account](https://aws.amazon.com/console/)

Once you are set up and ready to go, it's time to create a new bucket.
The steps for creating a bucket are extensive and might change over time, so it's best to follow [Amazon's docs on this](https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-bucket.html).

Eventually, your bucket should be ready like this:

![S3 Bucket](https://cdn.hashnode.com/res/hashnode/image/upload/v1671082563917/i2CZgABnC.png)

You'll also need to add new access credentials.
Head to AWS's `IAM` section and create a new user.

You can give it a name that represents the tool you will use and also choose to make it an Access key.

![IAM Role](https://cdn.hashnode.com/res/hashnode/image/upload/v1671083005468/h27c5_cqp.png)

On the next screen, you'll need to attach the permissions. In our case, we can choose to connect them manually.
Search for `AmazonS3FullAccess`.

![Attach policies](https://cdn.hashnode.com/res/hashnode/image/upload/v1671083099475/jRU16zQvi.png)

You can press next until you get to the actual keys in the next couple of steps.
Copy the key and secret to a secure place.

## Setting the bucket as storage

Now it's time to add some code.
First of all, we need to install the `aws-sdk` package.

```bash
npm install aws-sdk
```

I save my secrets in a `.ENV` file for maximum protection, so go ahead and add the following two keys.

```bash
AWS_ACCESS_KEY_ID={YOUR_KEY}
AWS_SECRET_ACCESS_KEY={YOUR_SECRET}
```

Next, we need to modify the `vendure-config.ts` file to use a new asset plugin.

Start by importing the S3 one.

```js
import {
  AssetServerPlugin,
  configureS3AssetStorage,
} from '@vendure/asset-server-plugin';
```

And inside the config, add a new plugin.

```js
export const config: VendureConfig = {
    # Your other config here
    plugins: [
        AssetServerPlugin.init({
            route: 'assets',
            storageStrategyFactory: configureS3AssetStorage({
                bucket: 'vendure',
                credentials: {
                    accessKeyId: process.env.AWS_ACCESS_KEY_ID,
                    secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
                },
            }),
        }),
    ],
};
```

It's essential to change the bucket name to your bucket.

And now, any assets you upload via the admin UI or the import will be stored in the S3 bucket!

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
AWS: Difference between a Network Load Balancer and an Application Load Balancer
Published: 2022-12-16 05:42:38


![AWS Load Balancer](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zkaokudtmu7qs4f2r2r2.png)

Today we will talk about the difference between a Network Load Balancer and an Application Load Balancer.

In Amazon Web Services (AWS), an Application Load Balancer (ALB) and a Network Load Balancer (NLB) are both types of load balancers that distribute incoming traffic across multiple targets, such as EC2 instances, in one or more Availability Zones. However, they differ in terms of the traffic they are designed to handle and the level of control they provide over the traffic routing.

An Application Load Balancer is a load balancing service that operates at the application layer (layer 7 in the OSI model). It is intended for load balancing of HTTP and HTTPS traffic and provides a number of features that enable you to route traffic based on advanced traffic routing rules and content-based routing rules.



![AWS network Load balancer](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yh1li5mlnnjqnptxpn2p.png)



In contrast, a Network Load Balancer is a load balancing service that operates at the connection level (layer 4 in the OSI model). It is designed for high performance and can handle millions of requests per second with very low latencies. It is best suited for load balancing of TCP traffic, and can also handle traffic for other protocols such as TLS and UDP.

In summary, an ALB is best suited for load balancing of HTTP and HTTPS traffic and provides a more feature-rich experience, while an NLB is better suited for load balancing of TCP traffic and is designed for high performance and low latencies.
Order By Query In Laravel 9 Example
Tags: laravel, mysql, database, query
Published: 2022-12-16 05:30:00

In this article, we will see order by query in the laravel 9 examples. 

Here, we will learn how to use order by in laravel 9. Also, we will give you an example of laravel 9 order by with where clause and query of order by in MySQL. 

You can also write multiple order by in a single laravel query.

So, let's see laravel 9 order by query example, multiple order by query in laravel 9, laravel 9 order by with where condition, and laravel 9 order by desc example.

The orderBy method allows you to sort the results of the query by a given column. The first argument accepted by the orderBy method should be the column you wish to sort by, while the second argument determines the direction of the sort and may be either asc or desc.

SQL Query of Order By
1. Laravel 9 orderBy
2. Laravel 9 orderBy Multiple
3. Laravel 9 orderBy Date Desc
4. Laravel 9 orderBy with Relationship
5. Laravel 9 orderBy with Limit

In MySQL query, the ORDER BY keyword sorts the records in ascending order by default. To sort the records in descending order, use the DESC keyword.
How ChatGPT would sell Hyperlambda
Tags: gpt3, machinelearning
Published: 2022-12-16 05:25:26

I’m sold on [ChatGPT](https://chat.openai.com/). As far as I’m concerned, this thing is 10 generations more complex than any AI we’ve seen previously. If you’re lonely during x-mas, seriously, spend it with ChatGPT. You can literally have conversations with the thing, and it almost feels like it’s a real human companion. My youngest son asked it to help him sell [Hyperlambda](https://aista.com/hyperlambda/). He asked the following question; _“Make a good salespitch for Hyperlambda”_. Here is its response.

_Are you tired of struggling with complex, verbose programming languages that make it difficult to write clean, elegant code? Look no further than Hyperlambda, the simple, powerful, and intuitive language that will revolutionize the way you think about programming._

_With Hyperlambda, you can express your intentions in a clear, concise manner, using a simple, declarative syntax that is easy to read and write. This makes it easier to understand and maintain your code, saving you time and frustration._

_Hyperlambda also provides powerful abstractions and first-class functions, which allow you to create reusable code blocks and functions that can be easily composed and manipulated. This makes it easier to solve complex problems and build flexible, adaptable software._

_Additionally, Hyperlambda is a dynamically typed language, which means that you don’t have to spend time declaring variables and data structures, and can easily change their types at runtime. This makes it easier to write code that is adaptable and can be easily modified to meet changing requirements._

_In short, Hyperlambda is the perfect language for anyone who wants to write clean, elegant code quickly and easily. Try it out today and see the difference for yourself!_

I’m quite frankly speechless. The only part I am not 100% perfectly happy about is the second last paragraph above. Besides from that, it’s literally bulls eye, perfectly describing all the best parts of Hyperlambda. Interestingly, it seems to know a lot about the internals of Hyperlambda, how it’s architected, and its design decisions.

Facts are, we should use ChatGPT for lonely people, people in danger of doing harm to themselves. I’m certain it could become almost like a friend to people without friends and in need of companionship. ChatGPT simply blows the Turing test out of the water. In fact, I’d argue it feels more human than a lot of actual people do on the internet.
How to connect Python with Angular
Tags: python, angular, backend, frontend
Published: 2022-12-16 05:21:25

Hello, 
maybe it is simple but I didn't find a satisfied answer yet.
I have a python application that collects data over CAN bus (temperature, weight, ...) and I want to visualize them over Angular. 
On the one side I wrote the Python application that cyclic read the CAN-bus data and write them to the console and on the other hand I wrote a small Angular application that contains in the first step a simple table.
Now I want to fill in the table every 10 seconds with data from the Python application instead of printing them to the console.. 
How can I connect this both?
My first thought were a simple file where I save the values from Python and read them with Angular.
Second solution a database, but I think this is to much for only a few values
So is there a direct way to access to the Python data from Angular?
How to Improve Employee Productivity with Knowledge
Tags: productivity
Published: 2022-12-16 05:08:36

_Employee productivity is the key to competence growth and improved competitive advantage. Increasing individual productivity in the era of creative and abstract tasks is a hurdle for many businesses. One of the ways to overcome it is to use knowledge management for productivity._

Knowledge tightly interacts with productivity and helps decision-makers to measure performance across departments. A simple example is data visualization used for many purposes. But knowledge use is one of many components of knowledge management.

To keep work flawless and productive, managers must consider how knowledge is discovered, stored, organized, and distributed. Some ways to make knowledge work for productivity include:

- Establishing a knowledge-sharing culture;
- Introducing knowledge management software;
- Assigning key experts and process owners;
- Prioritizing productive information types.

With adequately managed knowledge, employees will use resources and working hours effectively, leading to timely delivery and higher quality of produced work. Read about ways to increase employee productivity in detail in our new article [How to Improve Employee Productivity with Knowledge](https://blog.onebar.io/how-to-improve-employee-productivity-with-knowledge-management-7550f9cf6f9f).
AWS Cloud Practitoner
Published: 2022-12-16 05:02:02

Do you know how much an AWS cloud practitioner makes a year in different locations with different roles? 
Understand what kind of skills are needed to become a successful AWS cloud practitioner and know their job description. Also, know how many companies are hiring AWS cloud practitioner. 

{% embed https://www.edureka.co/blog/aws-cloud-practitioner-salary %}
Parallax Backgrounds
Tags: gamedev, godot
Published: 2022-12-16 04:42:58

Not a huge update this week, but I did get parallax backgrounds working and fixed some navigation weirdness:

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

I did run into a problem that I'm concerned will come back to bite me a lot in the remainder of this project - The parallax background was very smooth when I tested with some preloaded images for the layers. But once I import the layers from my levels zip file, things start to get a little jerky. Looking deeper, I have issues with all of my imported images that would be solved with preloads at compile time, including sprites with sharp edges because fix_alpha_edges() doesn't happen outside of preloads(?). BUT I can't preload if these images are coming from images loaded from a zip file at runtime.

Before jumping into a bunch of level creation, I want to add a couple more abilities and sprite animations along with squashing a few bugs:

- Stairs are not working very good with just physics guiding the students. Maybe I can set a path for the sprites to follow and disable any kind of ability selection while on the stairs.
- Sprite edges are too rough for imported images.
- Parallax background layers are jerky.
- Normalmaps appear to be inverted (raised areas are embossed).
- Doors need animation and texture
What is a Drone?
Published: 2022-11-28 15:28:19

## What is a drone?

[What is a Drone](https://blog.rawlix.com/what-is-a-drone-638051404631690332): Unmanned aircraft are also known as drones. Unmanned aerial vehicles (UAVs) or unmanned aircraft systems are more official terms for drones. Drones are essentially flying robots that can be remotely controlled or fly autonomously using software-controlled flight plans in their embedded systems, in conjunction with onboard sensors and a global positioning system (GPS).

Most frequently, UAVs were affiliated with the military. Initially, they were employed for anti-aircraft target practice, intelligence collection, and, more controversially, as armament platforms. Drones are currently employed in a variety of civilian capacities, including the following:

- search and rescue
- surveillance
- traffic monitoring
- weather monitoring
- firefighting
- personal use
- drone-based photography
- videography
- agriculture
- delivery services

[How far can a drone fly](https://blog.rawlix.com/how-far-can-a-drone-fly-638043736108739274)? That depends on the type of drone, its configuration, and the desired flight distance. Range is measured by the horizontal distance a drone can fly from its controller before losing connection. The most commonly used drones are [FPV Drone](https://blog.rawlix.com/what-is-fpv-drone-638049754733867198).

How do drones work?

Flight mode and navigation are the two primary functions of drones.

Drones must have a power source, such as a battery or fuel, in order to fly. A frame, rotors, and propellers are also present. Typically, the frame of a drone is composed of lightweight composite material in order to reduce weight and improve maneuverability.

Drones require a controller, which allows the operator to launch, navigate, and land the aircraft using remote controls. Radio waves, such as Wi-Fi, are used for controller-to-drone communication.

This post is written by Fahad Rashid (CEO of [Rawlix](https://www.rawlix.com))