teleren/devto huggingface dataset:
Exciting Updates in VS Code 1.84 (October 2023)
Tags: vscode, python, githubcopilot
Published: 2023-11-01 23:49:33

[The latest version of VS Code has some awesome updates](https://code.visualstudio.com/updates/v1_84), here are the ones I'm particularly happy about:
* [GitHub Copilot Chat Extension](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat)
  * [Chat with GitHub Copilot can include context about the workspace](https://code.visualstudio.com/updates/v1_84#_chat-agents) so you can ask questions about the code base
  * [Ask for Terminal CLI command suggestions](https://code.visualstudio.com/updates/v1_84#_terminal-command-suggestions) or for [explanations of the command if there's an error](https://code.visualstudio.com/updates/v1_84#_terminal-quick-fixes)
  * [Generate commit messages!](https://code.visualstudio.com/updates/v1_84#_commit-message-generation) There are a lot of open source examples of how to do this with ChatGPT and other LLMs, it's nice to see it built into an extension
  * Now supports text-to-speech with the [VS Code Speech extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-speech)
* Python extension
  * Pylint, mypy and flake8 support glob patterns for excluding files
  * Built-in linting and formatting is moved to the extensions. What's really neat is their suggestion to use the [ruff extension](https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff). Ruff is a fast Rust-based linter and formatter for the Python programming language.
Today I learned - Sinatra
Published: 2023-11-01 23:47:52

Today I built my first web app with Sinatra. I learned how to create a gemfile and install the gems. I also learned how to route. A resource path with a bare slash is known as the root URL or homepage. Once I got my dice rolling app to work I improved the code using view templates. We use the erb method to load the files from the view templates. I also learned how to use layouts to reduce duplication.
Amazon Kinesis Firehose
Tags: dataengineering, aws, cloud, beginners
Published: 2023-11-01 20:23:33

## Difinition and some features
So in today's lesson we are going to talk about amazon kinesis firehose and this service is used to **load real time streams into data lakes warehouses and analytic services**.

So amazon kinesis firehose is an **extract transform and load (ETL)** service and it's used to capture transform and deliver streaming data.

It's also a **fully managed** service for delivering real time streaming data.
Its destinations could be:
- Amazon S3
- Amazon RedShift
- Elastic Search

So a destination of the amazon kinesis firehose is the output of the service.

It's used to **load new data in near real time** which is like 60 seconds and you need to know that this is not a real time streaming service, it's a near real time.
_Unlike the Amazon Kinesis data streams, which is a real time streaming service._

Also the delivery streams **automatically scale up and down** in order to handle gigabytes per second or more of input data rate.

So amazon kinesis firehose could be used to **transform the data** before being delivered to a specific destination.


## Sources and Destinations of Amazon Kinesis Firehose.
**Sources**
So it could be a producer application writing its data directly to the kinesis firehose like:
- Amazon CloudWatch Logs
- Amazon CloudWatch Events
- AWS IOT
- Kinesis Data Stream
- Kinesis Agent

_Note:_ Kinesis Agent is a prebuilt java application which monitors certain files and then sends this information to the delivery stream.

**Destinations**
- Amazon S3
- Amazon RedShift
- Elastic Search
- Splunk
- And many more...


[GitHub](https://github.com/a00ayad00)
[LinkedIn](https://www.linkedin.com/in/a00ayad00)
[Facebook](https://m.facebook.com/a00ayad00)
[Medium](https://a00ayad00.medium.com/)
Docker Exec: How to Connect to Your Containers Interactively
Tags: docker, bash, vscode, beginners
Published: 2023-11-01 23:19:38

When using Docker, sometimes I want to connect to its containers using interactive commands.

In this article, I will show you how to do that with a simple shell command.

The command you need is:

```
$ docker exec -it <DOCKER_CONTAINER_NAME> bash
```

This command runs the `bash` command inside the container and gives you access to the bash shell of it.

When you enter this command, you will see the bash prompt like this:

```
bash-5.1$
```

This command uses the `exec` command with two options: `-it`. These options respectively enable an interactive shell and allocate a TTY.

|Option|Description|
|---|---|
|-i, --interactive|connect to STDIN of the container|
|-t, --tty|Allocate a pseudo terminal|

If you want to edit the container's files frequently, it's better to use [Visual Studio Code](https://code.visualstudio.com/) and [Docker extension for Visual Studio Code](https://code.visualstudio.com/docs/containers/overview)


References
- [docker exec | Docker Docs](https://docs.docker.com/engine/reference/commandline/exec/)
- [Connecting to a Running Docker Container Shell | The .NET Tools Blog](https://blog.jetbrains.com/dotnet/2023/03/27/connecting-to-a-running-docker-container-shell/)
- [２部: コンテナに接続する｜実践 Docker - ソフトウェアエンジニアの「Docker よくわからない」を終わりにする本](https://zenn.dev/suzuki_hoge/books/2022-03-docker-practice-8ae36c33424b59/viewer/2-6-container-exec)
- [Docker extension for Visual Studio Code](https://code.visualstudio.com/docs/containers/overview)
What Is A Self Healing System?
Published: 2023-11-01 23:01:13

A self-healing system can discover errors in its functioning and make **changes to itself without human intervention**, thereby **restoring** itself to a **better**-**functioning** **state**. There are **three** **levels** of self-healing systems.

## Application Level

In typical applications, problems are documented in an ‘exceptions log’ for further examination. Most problems are minor and can be ignored. Serious problems may require the application to stop (for example, an inability to connect to a database that has been taken offline).


## System Level

Unlike application level self-healing, system level self-healing does not depend on a programming language or specific components. Rather, it can be generalized and applied to all services and applications, independent of their internal components.

The most common system level errors include process failures (often resolved by redeploying or restarting) and response time issues (often resolved by scaling and descaling). Self-healing systems conduct health checks on different components and automatically attempt fixes (such as redeploying) to recuperate to their desired states.


## Hardware Level

Hardware level self-healing redeploys services from an unhealthy node to a healthy one. It also conducts health checks on different components. Since true hardware level self-healing (for example, a machine that can heal failed memory or repair a broken hard disk) does not exist, current hardware level solutions are essentially system level solutions.
A Recommendation System in Python
Published: 2023-11-01 22:34:54

As part of the Codecademy Computer Science career path, I have decided to re-create the example program shown in the Recommendation Software portfolio project, with a few refinements.

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

To find the types, a Binary Search algorithm is used, achieving a Θ(log n) runtime on average. To make this possible, however, the list is quick-sorted at the start of the program, and quicksort has a Θ(n log n) time complexity. The program relies on checking whether a type begins with a certain character sequence so when the list is sorted in alphabetical order, checking for all types that do start with that sequence is as simple as iterating through the list until a type that doesn't fit the condition is met. In the worst case scenario, the overall algorithm has an O(n log n) complexity.

This algorithm is also modified to return the index where the subset of valid types is found alongside the list of valid types itself. The reason why is explained below.

I used a HashMap implementation to store and access the restaurants for each type. Normally, linked lists would be used to avoid collisions, but it proved necessary to return a linked list itself, since there could be multiple restaurants of the same type. As a result, traditional hashing and collision avoidance methods could not be used. At the start of the program immediately after sorting the type list, the list of restaurants is placed in a utility class and added to the list using the Binary Search algorithm's index return value as an array index. This increases the complexity of initially assigning the values, but since the Binary Search method is already invoked when the user searches a prefix, and the array index is already stored, the program can retrieve the restaurants for a type by simply passing in the type's index in the sorted list to the HashMap.

The Linked List implementation is also modified from Codecademy's example: it ensures that each restaurant list is ordered by the sum of the price rating and overall rating. This is so it is more useful as a recommendation system.

The code is linked [here.](https://github.com/TBSveryfunny/recommendation-software)
Placeholder Contributor
Tags: hack23contributor
Published: 2023-11-01 22:17:55

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using {% embed LINK %} -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
30 Days of LeetCode!
Tags: leetcode
Published: 2023-11-01 22:15:32

I embarked on the journey of applying for internships, I soon realized that many companies required candidates to complete HackerRank assessments based on LeetCode problems. This realization prompted me to dive headfirst into the world of LeetCode, and what followed was an incredible 30-day learning experience. I want to share what I've learned during this time.

1. Problem-Solving Skills: One of the most significant takeaways from my 30 days of LeetCode was the substantial improvement in my problem-solving skills. LeetCode's extensive collection of coding challenges helped me understand various types of problems and how to approach them systematically. Whether it was array manipulation, tree traversal, or dynamic programming, I learned to break down complex issues into manageable steps.

2. Coding Proficiency: Consistently practicing coding problems on LeetCode significantly enhanced my coding proficiency. As I grappled with different algorithms and data structures, I became more familiar with my programming language (JavaScript). My understanding of the language's syntax, data structures, and common programming paradigms improved significantly.

3. Data Structures and Algorithms: LeetCode is a goldmine for learning about data structures and algorithms. I delved deep into fundamental concepts such as arrays, linked lists, trees, graphs, sorting, searching, and dynamic programming. Understanding these concepts is invaluable for acing technical interviews and excelling in real-world projects.

4. Debugging Skills: Every coder knows that debugging is an integral part of the process. I encountered and resolved numerous bugs while working on LeetCode problems, which helped me develop better debugging skills. I now find and fix issues more efficiently, a valuable skill in any coding endeavor.

5. Algorithmic Thinking: LeetCode challenges often require creative and efficient algorithm design. This experience honed my ability to analyze problems and devise elegant algorithms to solve them. It's a skill that has numerous applications in computer science and programming.

6. Increased Confidence: Successfully solving challenging LeetCode problems had a tremendous impact on my confidence. Knowing that I could tackle complex issues and arrive at working solutions was a significant boost to my self-assurance as a programmer and problem solver.

In conclusion, I've gained valuable skills, improved my coding proficiency, and developed confidence in my problem-solving abilities. As I continue my coding adventure, I look forward to further challenges, more learning, and the satisfaction of knowing that each problem I solve brings me one step closer to my coding goals. I encourage anyone on a similar journey to embrace LeetCode as a valuable resource and discover the incredible growth that awaits.
Redirection is over!
Tags: website, aws, cloudfront, cloudformation
Published: 2023-11-22 08:42:57

---
title: Redirection is over!
published: true
date: 2023-11-01 22:03:14 UTC
tags: Website,AWS,Cloudfront,Cloudformation
canonical_url: 
---

# Last cloudfront issue

Finally the [marcoaguzzi.it](https://marcoaguzzi.it) domain is actually responding without pointing to [dev.marcoaguzzi.cloudns.ph](https://dev.marcoaguzzi.cloudns.ph). The last issue preventing the production cloudfront distribution from working was:

- The lambda@edge function that was linked to development distribution was at version 5, while its cloudformation output value was pointing to version 1
- The cloudformation stack deployed with production distribution read the output value and pointed to version 1, which wasn’t quite ready yet. 
- Changing the lambda@edge link in production distribution from version 1 to version 5, ending the arn for the lambda with “:5” instead of “:1”, did the trick.

# Fire up staging pipeline

Now that both domains have their own distribution responding, it was time to facilitate testing.

I took the cloudformation template with the codepipeline dedicated to deploying the site and parametrized it in order to accomodate different:

- domains
- source branches
- codebuild project
- s3 bucket

This bullet point list corresponds more or less with the parameter defined in the template, as you can read in the gist [https://gist.github.com/maguzzi/](https://gist.github.com/maguzzi/) below:

#Click to view cloudformation template on gist<script src="https://gist.github.com/maguzzi/47f6da3d346081f83c48c93545d156a8.js"></script>
# How promoting works

So now pushing on dev branch will start compiling the [hexo](https://hexo.io) website sources in that branch, and will deploy the website on the s3 bucket served at [dev.marcoaguzzi.cloudns.ph](https://dev.marcoaguzzi.cloudns.ph), while pushing on main branch will deploy the website on the s3 bucket served at [marcoaguzzi.it](https://marcoaguzzi.it)

# Todo

There’s still a lot to do, the points I wrote in previous posts have been moved to [in this dedicated page](/todos).
How to access your site in mobile phone during development
Tags: webdev, testing, design, localhost
Published: 2023-11-01 21:53:16


![how to access localhost in mobile devices during development](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2r3v1cmc1hfdn6lcxsos.jpg)

## Common steps to follow
_<ol>
<li>Connect your mobile device and laptop to the same wifi network</li>
<li>Go to windows defender firewall and select advance setting, create a new inbound rules</li>
<li>Click on port, select TCP protocol and specify the port number on which your localhost website is running.</li>
<li>click allow the connection and checked private and public box</li>
<li>set any name for the shared server. eg:- local testing and click OK</li>
<li>Go to firewall and network protection and turn off the public microsoft defender firewall.</li>
<li>Go to your mobile device browser and type the shared ip address followed by the port number and sometimes the name of the html file. eg:- http:192.168.1.97:3000/index.html</li>
<li>If you serving plain html file than you are good to go.</li>
</ol>_


 

## 🚀Serving react app in mobile device for testing 
_<ul>
<li>you should follow the common steps mentioned above as it is</li>
<li>open the terminal and enter cmd - npm start --host shared         ip-address
eg:- if shared wifi ip address is 192.168.1.97 than 
cmd - npm start --host 192.168.1.97</li>
</ul>_





##🚀Serving vite+react app in mobile device for testing
_<ul> 
<li>Follow the common steps mentioned above</li>
<li>open the package.json file and change the dev script from "vite" to "vite --host"</li>
<li>enter cmd: npm run dev in the terminal and hit enter, you will find the network where the app is served</li>
</ul>_
Placeholder Maintainer
Tags: hack23maintainer
Published: 2023-11-01 21:33:26

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a maintainer. Is this your first Hacktoberfest, or have you maintained in others? Feel free to embed your GitHub account by using {% embed LINK %} -->

### Project
<!-- Tell us about the repository that you hosted. What processes did you set up to review and merge pull requests? Feel free to embed your GitHub repo by using {% embed LINK %} -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your project goals changed since publicly maintaining it? -->
Placeholder Contributor
Tags: hack23contributor
Published: 2023-11-01 21:32:40

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using {% embed LINK %} -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
Vancouver Real Estate
Tags: realestate, vancouver, vancouverrealestate, realtor
Published: 2023-11-01 21:20:01

[Yao Real Estate](https://yaorealestate.com/)
5487 West Boulevard,
Vancouver, BC V6M 3W5
Phone No:- 604-374-5534

https://yaorealestate.com/

Alex Yao PREC* is a Top Realtor, Medallion award-winning licensed Real Estate Agent, ranked #3 highest production individual RE/MAX agent in Metro Vancouver, and #26 in all of Western Canada (rated June 2021). He specializes in luxury residential homes and condos in the lower mainland. While Personal Real Estate Investment property has proven to be his forte he is also an expert in property data.

Alex grew up in Vancouver. Although he has moved through 13 different countries during his young adult life, he is happy to return and call Vancouver home. Having a world view in properties and economics, Alex is fluent in all the investment aspects of the Real Estate industry. He believes that whether you are listing or purchasing a home for living or investing, there is always an aspect to build your wealth as this is one of the biggest purchases you would make in your life. His transparency and dedication have won over many clients over his career, as he treats your assets as his own assets, having your best interest at heart.

In his spare time, Alex is an adventure and adrenalin addict. Being a complete foody he loves trying new and unique restaurants that Vancouver is so famous for. He enjoys going to the racetrack with his motorcycles to keep his mind sharp and focussed. With that said, the most important aspects of his life are his family and his work. He has dedicated himself to this profession to help streamline his clients’ home sales. Alex is proud that many of his clients’ have grown into valuable friendships.

Being Fluent in English, Mandarin and Cantonese give his clients a transparent experience. He brings his knowledge of current trends and accurate data to every transaction. You will always receive a positive and rewarding real estate service. Whether your plan is to list or buy, having Alex by your side will be your key to obtaining your goal.

Contact Alex now and see why he is one of the top-rated Realtors in Metro Vancouver.

Follow us on:- [Facebook](https://www.facebook.com/yaorealestate/), [Instagram](https://www.instagram.com/yaorealestate/), [Pinterest](https://www.pinterest.ca/yaorealestate/), [YouTube](https://www.youtube.com/channel/UCVWz8YiGwx53xVMlBnfmLkg)
5 Stars Fix Garage Door Repair & Installation
Published: 2023-11-01 21:00:38

5 Stars Fix Garage Door Repair & Installation in 197 1st Ave, Needham, MA 02494, is your premium choice for all garage door services. Our team specializes in[ Garage door replacement Needham](http://5starsfixgaragedoorrepair.com/), garage door spring replacement, and overhead door installations, solidifying us as the most trusted service in the Needham area. We offer comprehensive residential garage door services and commercial garage door solutions that meet the highest standards. From emergency garage door repairs to complete garage door system upgrades and opener troubleshooting, 5 Stars Fix Garage Door Repair & Installation is the service to rely on. [Garage door repair near me Needham](https://maps.app.goo.gl/PaxnM3YTpiQL8KY79)  Give us a call today for outstanding, expert service tailored to your needs.
Placeholder Contributor
Tags: hack23contributor
Published: 2023-11-01 20:31:53

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using {% embed LINK %} -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->