teleren/devto huggingface dataset:
The Advantages and Disadvantages of Python
Tags: webscraping, python, ai, data
Published: 2023-08-11 05:56:42

1 Advantages of Python

1) Simple syntax
Compared with the traditional C/C++, Java, C# and other languages, Python has less strict requirements on the code format. This looseness makes the user more comfortable when writing code, without spending too much energy on the details.

 

2) Python is open source
Open source, that is, open source, meaning that all users can see the source code.

The open source of Python is reflected in two aspects:

① The code written by programmers in Python is open source.

② The Python interpreter and modules are open source.

 

3) Python is free
Open source does not mean free, open source software and free software are two concepts, but most open source software is also free software; Python is such a language, it is both open source and free.

Users use Python to develop or publish their own programs without paying any fees or worrying about copyright issues. Even for commercial purposes, Python is free.

 

4) Python is a high-level language
The high-level mentioned here means that Python has a deeper encapsulation and shields many low-level details. For example, Python will automatically manage memory (allocate automatically when needed, and release automatically when not needed).

 

5) Python is an interpreted language and can be cross-platform
Interpreted languages are generally cross-platform (good portability).

 

6) Python is powerful (many modules)
Python has many modules, which basically implement all common functions, from simple string processing to complex 3D graphics drawing, it can be easily completed with the help of Python modules.

 

7) Python is highly scalable
The scalability of Python is reflected in its modules. Python has the richest and most powerful class libraries in scripting languages. These class libraries cover most application scenarios such as file I/O, GUI, network programming, database access, text manipulation, etc. .

The underlying code of these libraries is not necessarily all Python, there are many C/C++ figures. When you need a piece of key code to run faster, you can use C/C++ language to implement, and then call them in Python. Python can “glue” other languages together, so it is called “glue language”.

 

2 Disadvantages of Python

1) Slow running
Slow running speed is a common problem with interpreted languages, and Python is no exception.
Python is slow not only because it “translates” the source code while running, but also because Python is a high-level language that shields many low-level details. This cost is also very high. Python has to do a lot of work, some of which consume resources, such as managing memory.

Python’s running speed is almost the slowest, not only much slower than C/C++, but also slower than Java.

 

2) Code encryption is difficult
Unlike the source code of a compiled language that is compiled into an executable program, Python runs the source code directly, so it is more difficult to encrypt the source code.
First Reactjs Project
Tags: starwars, javascript, react, programming
Published: 2023-08-11 05:56:34

This project was about the famous movie Star Wars and the instructions were to build a minimalist version of the Star Wars Databank with a “Read Later” or “Favorites” list functionality.

📝 Instructions

Use Bootstrap components, you need almost no custom CSS.
Take some time to understand the SWAPI.tech API, this will be our source of information, and we will be consuming this API.
Fetch the SWAPI people, vehicles, and planets, and display them on your application.
Declare a favorites array in your central store and allow the user to add or remove favorites.
In this project I learn so much, finally, with the help of the force I use all my power to make this work, using my knowledge of Javascript, ReactJs, Bootstrap, and HTML5. With the help of my teacher I was able to do this I think in a week.

The imposter syndrome was one of the things I battle along doing this project because sometimes the code does exactly what I tell them to do (nothing).

Working with React is not easy for me, people tell me that React is just like building something with little blocks, but is not just that, you really need to have a lot of creativity because the things you can do with Reacjs have no limits and this just makes me go beyond just the basic and keep learning and learning, not to be a master Jedi, but to just to feel comfortable to make a good product in the future and work harder every day.

Here is the Vercel deployment https://laln-starwars-blog-reactjs.vercel.app

and here you can see the code https://github.com/Linnovel/LALN-starwars-blog-reactjs

Let me know what you think and what should I improve and I believe I can improve a lot.
Ice Cream and Logging
Tags: beginners, debugging, python, datapipleline
Published: 2023-08-11 05:50:54

I have learned about the logging module and icecream module. They are SUPER helpful especially for a distributed system and microfunctions like mine in this datapipeline. No more random prints to see the workflow, ic() is a great way to see the variable, the function, and the value at a specific time of execution. I am also utilizing a robust logging system to see how the transformations are going, and what was transformed, not found, etc. I also added a decorator function to time each microfunction. These stats I'm getting are going to be very useful when I'm able to scale and push larger CSVs and data into the pipeline. So cool.
How Can I Create A Top Quality Resume In 10 Minutes?
Tags: education, writing, researchpaperwriting
Published: 2023-08-11 05:38:27

**Introduction:**
-----------------

Job seekers usually find themselves in a race against time in today's bustling workplace in order to secure their desired position. Making a solid CV is a critical stage in this process since it serves as the basis for potential employers' first impressions of you. Despite the fact that there are companies that focus on writing resumes, not everyone has the resources or time to dedicate to them. In this article, we'll examine how you may utilize [free resume writing services](https://getallpapers.com/dissertaion-writing-services) as a guide to efficiently and skillfully create a high-quality resume.

*   Before you start creating your resume, it's necessary to acquaint yourself with the fundamental elements of a well-structured resume. Free resume writing services typically provide guides and tips that list the essentials, such as contact information, a summary or objective, employment experience, talents, and education.
*   A variety of free resume writing services provide a collection of templates made by professionals. These templates are not only visually attractive, but they are also created to highlight your credentials and abilities in the best possible way. Pick a template that appeals to both your personal preferences and the market you are aiming for.
*   Your chance to catch the recruiter's attention is in the summary or objective statement on your resume. [Free resume writing services](https://getallpapers.com/blogs/The-Pros-and-Cons-of-Using-Free-Assignment-Writing-Services-and-Free-Essay-Writing-Services-Online) typically include tips on how to construct a compelling summary that accentuates your unique selling point and underlines your career goals.
*   When discussing your professional background, pay particular attention to the roles and responsibilities that are most relevant to the position you're applying for. With the assistance of free resume writing services, you may adjust your experience to the specific requirements of the position.
*   Once you've written your resume, it's important to check it over for any grammatical or typographical issues. In order to assist you polish your work, free resume writing services sometimes include grammatical checkers or editing advice.

### **Conclusion:**

It doesn't have to take a lot of time or money to create a professional CV. You may produce an excellent resume that shows your talents and experiences in only 10 minutes by utilizing the tools and advice provided by free [resume writing services](https://getallpapers.com/blogs/Mastering-the-Art-of-Admission-Essay-Writing-and-Research-Paper-Writing). Though these services may be quite beneficial, keep in mind that it's crucial to customize your resume for each job application and make sure it correctly portrays your skills and goals. A well-written CV will help you stand out to potential employers and improve your chances of getting the job you want.
How Can Students Avoid Plagiarism By Utilizing Free Services?
Tags: education, writing
Published: 2023-08-11 05:35:40

**Introduction:**
-----------------

Students who borrow someone else's ideas or works without providing proper credit are committing a serious academic crime that can have serious consequences. In an era where information is readily available, there is a tendency to copy and paste content from several sources. The good news is that students may use a variety of tools and resources to help them create original, stand-out work. In this article, we'll examine numerous strategies for preventing plagiarism among students when they use free tools like [writing services](https://getallpapers.com/report-writing-service) that don't employ plagiarism detection software or other writing tools.

 **Using Plagiarism Frequently:**

The ease of getting information online has contributed to the rise in plagiarism in educational institutions all around the world. Without the appropriate citations or with plagiarized text, essays and assignments are sent in, undermining the educational process and jeopardizing the student's credibility. Students need to be proactive about creating creative material to solve this problem. And it is possible by utilizing plagiarism free essay writing services which hire professional; writers and they will help you craft high quality essays.

**Essay-Writing Services That Are Original:**

Using plagiarism-free essay writing services is one practical strategy for students to stay away from plagiarism. The goal of these services is to help students write unique, well researched papers. Students can obtain direction and help during the writing process by working together with experienced authors. With the help of these services, every paper is guaranteed to be written according to the needs of the student, eliminating any possibility of plagiarism.

**The Function of Writing Services:**

There are many more writing aid resources accessible to students to help them develop their writing abilities and stay away from plagiarism in addition to services that write essays without plagiarizing. Grammar and spelling checkers, style manuals, and online writing services are some of these services. Students may hone their writing skills and learn more about how to effectively incorporate sources into their work by using these tools.

 **Conclusion:**

The major issue of plagiarism needs to be addressed by students. By using free resources like [plagiarism-free essay writing services](https://getallpapers.com/blogs/Reasons-of-stressed-students-in-the-world-of-academia) and writing assistance tools, students may develop their writing skills, produce original content, and maintain academic integrity. These resources are available to students, giving them the means by which they may create original, well-written work. Keep in mind that honing your writing abilities and staying away from plagiarism is a lifelong endeavor that demands commitment and tenacity.
A month later, HERE I AM
Published: 2023-08-11 05:32:19

So, tonight as I am taking back my studying on Ruby on Rails, I was working on a project similar to Instagram, because of the nature of the data model (with users, photos, likes, comments, requests) it is imperative to know how to create the right schema so that my tables work correctly with each other (at least that's how I understand it, please give me feedback if you can explain it better)

So, as I was working on adding my data tables, I realized I made a couple of mistakes, mainly on defining some of the relations that tables have with each other, even though I had already done this before, it was good to remember that sometimes we have to define where our foreign key is coming from, for example, let's say I have a data table for comments, and it references (which is a keyword for associations between two data tables) an :author, I will have to establish where this author is coming from(the foreign key) so a snippet of code on a comments migration that has a connection to a user table through "author" would look like this:

"... t.references :author, null: false, foreign_key: { to_table: :users} ..."

This code of course also takes in account that we want to have an author to each comment (and hence the null:false)

So, all this explanation (or attempt to explain) is just to mention that, after I realized I made a mistake on two of my tables, I had to go back to my previous two migrations, I knew I could do a rails db:rollback to go back to my last migration, so I did that, but then I noticed I had to go back two steps further (or behind should I say) and so I used the rails db:rollback STEP=2 to solve this (it seems like you can go step by step, LITERALLY, when going back to your migrations)

 I hadn't really worked with rolling back past my last migration, it seems like this worked 🫣

Anyway, it's a bit late and I am falling asleep, I will check that everything goes smooth with this project and I will continue updating as I work through it

I hope this can help someone or that at least is readable ha ha

See ya!

Sinhue
Guide To Utilize Free Services Properly
Tags: education, writing
Published: 2023-08-11 05:26:58



**Introduction**

The internet has become a treasure trove of free material and services in the modern digital era. You have a wide range of choices at your disposal, including leisure and education. [Best  essay writing services for free](https://getallpapers.com/admission-essay-writing-service) are one such choice that is gaining popularity. But it's crucial to utilize these services wisely and with a clear grasp of how to do so. This article will give detailed instructions on using free essay writing services as well as suggestions on how to get the most out of them.

### **Acquiring Knowledge about Free Essay Writing Services:**

Essay writing services for free  have become a viable option for writers and students who need help with their academic or creative writing projects. These sites provide consumers with access to pre-written essays, research papers, and other written materials without charging them any money. It's important to approach such services cautiously, despite the fact that their ease and cost may appear alluring.

### **Best Free Essay Writing Service free:**

There are several kinds of [essay writing services free](https://getallpapers.com/blogs/Finding-Quality-and-Free-Research-Paper-Writing-Assistance). Across various platforms, there are significant differences in the content's legitimacy, accuracy, and quality. It's crucial to know which solutions are the finest in order to use these services effectively. Look for websites that provide well-written, thoroughly-researched, and timely essays. Reading customer testimonials and reviews can help students to analyze everything accordingly.

### **The Pitfalls of Plagiarism to Avoid:**

Plagiarism is among the most important concerns that using essay writing services for free  brings up. Plagiarism is the act of using someone else's work without giving them proper credit, and it can have serious consequences for one's academic and moral standing. It's important to utilize these services as a resource or source of inspiration rather than rewriting the content word for word. Make careful to be original and provide due credit to any work you create based on the free essays.

### **Conclusion:**

You should use [essay writing services free](https://getallpapers.com/blogs/How-Students-Can-Learn-College-Essay-Writing-with-Zero-Stress) carefully and wisely if you want to achieve your academic and creative goals. You may use these services and boost your writing abilities at the same time by choosing trustworthy websites, avoiding plagiarism, using the essays as learning tools, and including appropriate reference and citing. Just keep in mind that, even if these services could be useful, what will actually help you succeed is your commitment, effort, and attention to developing your writing skills and ethics.
Understanding Humility as a designer
Published: 2023-08-11 05:13:21

Justin Dauer's blog post titled "Humility: An Essential Value" talks about the importance of having humility as a designer. To begin, he recalls a personal time when his career peaked following a successful contract with a design news portal called Kaliber 1000 where he became an author and began contributing content to the site. Eventually, his career quickly took off and so did his ego. Dauer's success ultimately drove a sense of superiority in him and he no sought to continue building on his skills as a designer. Rather, he dismissed criticism from his peers and produced minimal effort in his content. After a reality check from his closet friends, Dauer soon reflected on his behavior and realized he needed to take a step back from the toxicity he engaged with coming from his success. He also realized that being complacent combined with being too prideful was instead holding him back from evolving as a student and harming his ability to continue expanding as a designer. Dauer then recognizes that being a student and maintaining a level of humility is essential for providing the best outcomes and states "An evergreen willingness to listen, learn, understand, grow, evolve, and connect yields our best work".
Level Up Your React Game🚀
Tags: webdev, react, beginners, opensource
Published: 2023-07-30 09:36:01

Hey fellow Frontend Devs! Preparing for a React-focused interview? (Or just want to explore and grow). It's time to get cozy with those concepts and crush it in style.

📢 Share this post: If you find this post helpful and think it could benefit other frontend developers, don't hesitate to share it. Spread the knowledge and help others level up their React knowledge! 🚀

## Basics 🎓
Had it been a few months back, I might have recommended different links for each topic. However, as of now, there is no better resource than the new React documentation itself. 
- [To begin](https://react.dev/learn)
- [Dive deep](https://react.dev/reference/react)

## State management 📦
When dealing with a large project the Context API or existing state management features could become a drag on the progress.
You can try out these awesome libraries that can quickly become a part of project.
- **RTK(Redux toolkit)**
Opinionated, powerful, addresses all concerns related to vanilla redux.
  - [Docs](https://redux-toolkit.js.org/)
  - [Try Live](https://codesandbox.io/s/redux-essentials-counter-example-un8my)

- **Zustand** 
Small, effective and targets most common pitfalls.
  - [Docs](https://docs.pmnd.rs/zustand/getting-started/introduction)
  - [Live](https://codesandbox.io/s/dazzling-moon-itop4)

- **React Query**
Most of the frontend work involves dealing with API calls and caching/storing response data when required.
So this library can help you get all the features with minimum code to setup.
  - [Docs](https://tanstack.com/query/latest)
  - [Live](https://codesandbox.io/p/sandbox/tanstack-query-example-react-basic-086cq0)

## Optimizing 🛠️
- **Profiling + Hooks + lazy loading (Inside the box)**:
Optimizing using the already existing features of react 
  - [Blog](https://blog.logrocket.com/optimizing-performance-react-app/)
- **Million.js (Outside the box)**:
This library works by replacing React's virtual DOM with its own and can increase the speed by 70%!
  - [Docs](https://million.dev/)

## Testing 🧪
- **RTL + Jest (Unit testing)**
For component testing, focusing on testing components' rendering, behavior, and interactions in isolation, in a more developer-centric testing environment
  - [Blog](https://www.digitalocean.com/community/tutorials/how-to-test-a-react-app-with-jest-and-react-testing-library)
- **Cypress**
For E2E testing, simulating user interactions, and testing complex user flows across multiple pages or components.
  - [Docs](https://www.cypress.io/)

Looking forward to your feedback or any other resource worth sharing. 🙌
Auth0のReact sampleが動かない問題の対処方法
Tags: auth0
Published: 2023-08-11 04:48:45

---
title: Auth0のReact sampleが動かない問題の対処方法
published: true
description: 
tags: auth0
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-08-11 04:38 +0000
---

Auth0の公式React quickstartは自分の環境では動かなかった

## サンプルでログインするとUnauthorizedになる

サンプルアプリを動かすと、ログイン後、Unauthorizedになるが、これはAuth0の設定画面でAuthentication Methodsが `Client Secret (Post)` になっているからだった

これをNoneにすればUnauthorizedが出ずに動く

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

原因を探ると、認証サーバーの `/oauth/token` エンドポイントにaccess tokenを取得しに行ったときに、client secretを一緒にpostしないといけないらしい

## External APIページで Ping APIを押すと401になる

External APIページで Ping APIを押すと、401になって返ってこない。
サンプルAPIサーバーのコンソールを見ると、`InvalidTokenError: Invalid Compact JWS auth0` と言われている。

これはクライントsdkの authorizationParamsにaudienceを入れていないからになる。

ので以下のように追加で解決

index.js
```diff
root.render(
  <Auth0Provider
    {...config}
    authorizationParams= {{
      redirect_uri: window.location.origin,
+     audience: config.audience
    }}
  >
```
Manage vps RAM usage by docker containers
Tags: docker, vps, ram
Published: 2023-08-11 03:44:53

I recently had an issue where I couldn't connect to my VPS server. I thought it was an internet connection issue, but it turned out to be high RAM usage on my server.

I tried to find a monitoring tool to help me figure out what was going on, but the information I found was too lengthy and didn't seem relevant to my specific issue.

In the end, I figured out a quick way to fix the problem myself. Here's what I did:

1. get list of docker containers according to their RAM/Memory-Usage using [docker stats](https://docs.docker.com/engine/reference/commandline/stats)
```bash
docker stats --no-stream --format "table {{.Name}}\t{{.MemUsage}}" | sort -k 2 -hr
# --no-steam: by default docker stats is streams information, which sometimes hangs 
#    command line --no-stream ask stats one time instead of streaming
# sort -k 2: sort list considering 2nd column which is MemUsage here
# sort -hr: h represents human-redable number, r represents reverse (descending order)
```

2. shut down or delete unnecessory containers using [docker stop](https://docs.docker.com/engine/reference/commandline/stop/)

And that's it, you can check again the reduced RAM usage on vps server by running `htop`