teleren/devto huggingface dataset:
Sell your side projects
Tags: webdev, javascript, beginners, programming
Published: 2024-07-11 15:02:53

Got a side project you’re proud of but don’t know what to do with it? Maybe it’s time to let someone else take it to the next level. 

We’re launching a new platform called [Acquireside](https://www.aquireside.com/) where you can buy and sell unique side projects. 

![Aquireside](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rx9texcelk2tpvdbp5c0.png)

It’s super easy to use and helps you connect directly with folks who are interested in what you’ve built.

[Acquireside](https://www.aquireside.com/) is coming soon, and we’re excited to get things rolling. If you’re looking to sell your side project, why not join our waitlist? By joining, you’ll be one of the first to list your project when we go live. It’s a great way to ensure your project gets seen by eager buyers from the start.

We can’t wait to see all the amazing projects you’ve been working on. Join the waitlist now and get ready to share your passion projects with the world!
Starting from the bottom
Published: 2024-07-11 15:18:38

Hi. I'm considering switching back to this field after 15 years. I didn't have much experience to begin with, and never fully finished my degree. My dad always wanted me to get into the field to take over his companies. Things didn't go as planned. 
I'm trying to get pointers on where to begin. I have chosen MANY fields I feel like I would be good at. I found some courses, training programs, etc but idk where to actually begin. It's still overwhelming. 
I found this community because I found a post breaking stuff down, and then I lost it. 
If you could point me into some posts I should read, links, whatever it would be greatly appreciated. If I need to post the fields I'm interested in, I can do that too.
Using Scratch Base image provided by Docker
Tags: deepcodr, docker, devops, tutorial
Published: 2024-07-11 15:38:18

Building Base images in docker is not recommended but for those who are a bit interested in diving deeper in docker, this is a must-know thing. Even though the docker hub provides a huge collection of images for a variety of uses there are some cases where we would want to create something complex from SCRATCH !!!!.

That's where the Scratch base image from Docker comes in handy. There are several ways to generate base images, such as using an already-existing Linux machine or a running container, but for now, let's utilize a Docker [**_scratch image_**](https://hub.docker.com/_/scratch/).

To use scratch we just need to add **FROM Scratch** in our Dockerfiles. Yes, _that's it!_ above this, you can add anything to configure your base image, Build it and it's ready to use. 
<br>

For Example, let's create one. Create and Add the following to the Dockerfile.

```
FROM scratch
ADD hellofromdocker /
CMD ["/hellofromdocker"]
```


That's it here [**_hellofromdocker_**](https://github.com/Deepcodr/DOCKER/blob/main/scratch-base-image/hellofromdocker) is a static executable that does not have any runtime or linked dependencies. Since the scratch image only contains the bare minimum of runtime and settings needed to create base images, using other executables or apps may not work.

Once the Dockerfile is done. build an image using docker.
`docker build -t helloscratchimg .`

Spin up a container from a newly created base image and get hello from Docker! 🤩
<hr>
Hi there!
Published: 2024-07-11 15:27:17

We're Potato Battery, a group of players setting out to provide great games for people to play!

We hope to finish our projects soon, here's a few:

- Space Game (previously Comet)  
> Large space exploration game with captivating story and lore
- Chaos 
> Literally just **CHAOS**.  
- Moirath 
> Funny blob goes brrr
- Don't Forget To Look Up  
> [Waiting]
- Cha Melon  
> Melon that was infused with Chameleon DNA
5 Image Gallery Examples Fully-Coded with Tailwind CSS [Free& Open Source]
Tags: tailwindcss, webdev, opensource
Published: 2024-07-11 15:29:22


Hey Tailwind devs 👋

Here's a list of open-source image gallery components coded with [Tailwind CSS](https://tailwindcss.com/) and [Material Tailwind](https://material-tailwind.com/?ref=devto).

Each Tailwind CSS image gallery example presented below is easy to integrate and customize. The links to the source code are placed below each example. 

Simply copy and paste the code directly into your application. 



## Tailwind Image Gallery Examples

### 1. Simple Grid Image Gallery

This gallery example aligns images in a neat, uniform grid with consistent spacing between each image. Use it to display the images in a structured manner.

![simple grid image gallery](https://i.imgur.com/41OQ8QE.png)
Get the source code of this [simple grid image gallery](https://www.material-tailwind.com/docs/html/gallery?ref=devto) example.


### 2. Masonry Grid Galery
Use this example if you want to arrange images in a staggered grid format. This gallery includes images of multiple sizes, creating a visually interesting and less uniform arrangement. Perfect for portfolios or galleries where image sizes differ.


![masonry grid galery](https://i.imgur.com/edSoqgm.png)
Get the source code of this [masonry grid galery](https://www.material-tailwind.com/docs/html/gallery#masonry-grid-gallery?ref=devto).

### 3. Featured Image Galery

Try this example if you want to highlight a single, large featured image at the top, with a row of smaller images displayed below. Perfect for highlighting a key image or project while offering context through related images.

![featured image galery](https://i.imgur.com/Uz9VTSp.png)
Get the source code of this [featured image galery](https://www.material-tailwind.com/docs/html/gallery#featured-image-gallery?ref=devto) example.


### 4. Quad Image Galery

A compact grid layout that arranges four images in a 2x2 configuration. This gallery is great for displaying a small collection of images in a balanced manner. 

![quad image galery](https://i.imgur.com/WkEfw91.png)
Get the source code of this [quad image galery](https://www.material-tailwind.com/docs/html/gallery#quad-gallery?ref=devto) example.

### 5. Image Gallery With Tab

An interactive image gallery that includes tabs for different categories. Each tab contains a grid layout of images, allowing users to switch between different sets of images by selecting the relevant tab. 

![image gallery with tab](https://i.imgur.com/NlcuZw7.png)
Get the source code of this [image gallery with tab](https://www.material-tailwind.com/docs/html/gallery#gallery-with-tab?ref=devto) example.



🚀 Looking for even more examples?
Check out our open-source **[Tailwind CSS components library](https://www.material-tailwind.com/?ref=devto)** - Material Tailwind -  and browse through 500+ components and website sections.
piperinox review - does this supplement work?
Published: 2024-07-11 17:04:06

Piperinox is a dietary supplement that is marketed for weight loss. It contains a blend of ingredients, including black pepper extract (piperine) and ginger extract.

Here's a breakdown of the claims and some facts to consider:

Claimed benefits of Piperinox:

Boosts metabolism
Increases fat burning
Suppresses appetite
Improves nutrient absorption
Limited evidence:

There is limited scientific evidence to support the claims that Piperinox is effective for weight loss. Some studies suggest that piperine, the main ingredient in black pepper extract, may help with weight loss, but more research is needed.

Potential side effects:

Piperinox may cause some side effects, such as stomach upset, heartburn, and diarrhea. It may also interact with certain medications.

Overall:

If you're considering taking Piperinox for weight loss, it's important to talk to your doctor first. They can help you weigh the potential benefits and risks and determine if it's right for you.

Here are some general tips for safe and effective weight loss:

Eat a healthy diet that is low in calories and processed foods.
Get regular exercise.
Be patient. Losing weight takes time and effort.
Remember, there is no magic pill for weight loss. The best way to lose weight and keep it off is to make sustainable changes to your lifestyle.

[View More](https://groups.google.com/g/the-honest-reviews/c/uJUPhvoHTXs)
Медикаментозний сон у дитячій стоматології
Published: 2024-07-11 15:30:19

Ваша дитина відчуває занадто сильний дискомфорт при відвідуванні стоматології? Вона взагалі відмовляється відвідати стоматолога через непереборний страх? Вирішення є – медакоментозний сон (седація закисем азоту). Дана практика лікування давно широко поширена в стоматологічних клініках Європи та Америки. Стоматологи всього світу прагнуть того, щоб лікування зубів пройшло для пацієнтів максимально комфортно, навіть з задоволенням, і в жодному разі не породжувало нових страхів або неврозів.
[Дізнатись більше](https://esthete.com.ua/medson/)
Автоматизація процесу управління відрядженнями
Published: 2024-07-11 15:31:35

Зі Scriptum процес оформлення та узгодження відряджень, подача звітності та компенсація витрат займатиме лічені хвилини і вимагатиме мінімум ручної роботи. 
[Замовити демо](https://scriptum.ua/avtomatyzacziya-proczesu-upravlinnya-vidryadzhennyamy/)
Day2 of 100DaysOfJavaScript
Tags: javascript, beginners, 100daysofcode
Published: 2024-07-11 15:35:23

My objective is to continuous coding(learning).
## What I did
* Continued to watch the video
[Learn JavaScript](https://www.youtube.com/watch?v=PkZNo7MFNFg)

## What I learned
```
var WIL1 = "How" + "to" + sum + "Strings";
var WIL2 = ["How", "to", "operate", "array."]; 
WIL2.push(".push() and .shift()"); 
WIL2.shift();
```
Developer diary #13. Pomodoro life
Tags: android, programming, motivation, management
Published: 2024-07-11 15:39:51

Today, I want to share how I organise my everyday work. I use technic pomodoro for this.  I will not describe in details about it, you can easily google it. The key idea is that you split your work on small pieces (25 minutes of work + 5 min. break). A typical work day contains 16 pomodoro, but from my experience, you can fit slightly less: 15 or 14, it is not matter. 

What key benefits does it bring to me?
First, It helps to split big terrible boring awful tasks on small funny easy peaces. 
Also, It makes clear vision what I will do today and what I want to do today. 
It is good training for task estimation, because every day you analyze if you spent more time that was planned.
It helps introduce some special (habit) pomodoros, which you do every day, and helps to do it regularly. 
Very often it helps to continue work in days when you lose motivation.

I practice pomodoro technic more than two years and I feel that my working life stay is more organised.  I will be glad to hear about your experience with this technic.
Newbie
Published: 2024-07-11 16:08:38

Hello World, 🌎 😊 I’m a newbie. I just finished my Data Analyst Certification with Google (Coursera ) but fell in love with the coding side instead. I’m self learning coding and leaning into Software Development so I’m diving into JavaScript right now with freecodecamp. I could desperately use some useful guidance to where to begin and if learning the basic coding languages is a good start? I want to utilize my time the most efficient way possible to get me going within the year . Also applying to software development apprenticeships too.   Thank you so much for any advice
1190. Reverse Substrings Between Each Pair of Parentheses
Tags: php, leetcode, algorithms, programming
Published: 2024-07-11 16:09:43

1190\. Reverse Substrings Between Each Pair of Parentheses

Medium

You are given a string `s` that consists of lower case English letters and brackets.

Reverse the strings in each pair of matching parentheses, starting from the innermost one.

Your result should **not** contain any brackets.

**Example 1:**

- **Input:** s = "(abcd)"
- **Output:** "dcba"

**Example 2:**

- **Input:** s = "(u(love)i)"
- **Output:** "iloveu"
- **Explanation:** The substring "love" is reversed first, then the whole string is reversed.

**Example 3:**

- **Input:** s = "(ed(et(oc))el)"
- **Output:** "leetcode"
- **Explanation:** First, we reverse the substring "oc", then "etco", and finally, the whole string.

**Constraints:**

- `1 <= s.length <= 2000`
- `s` only contains lower case English characters and parentheses.
- It is guaranteed that all parentheses are balanced.

**Solution:**


Here's the step-by-step plan:

1. Use a stack to keep track of the characters and nested parentheses.
2. Traverse each character in the string.
3. If you encounter an opening parenthesis '(', push it onto the stack.
4. If you encounter a closing parenthesis ')', pop from the stack until you reach an opening parenthesis '('. Reverse the substring collected and push it back onto the stack.
5. Finally, concatenate the stack contents to get the result.

Here's the implementation in PHP: **[1190. Reverse Substrings Between Each Pair of Parentheses](https://github.com/mah-shamim/leet-code-in-php/tree/main/algorithms/001190-reverse-substrings-between-each-pair-of-parentheses)**

```php
<?php
// Example 1
echo reverseParentheses("(abcd)") . "\n"; // Output: "dcba"

// Example 2
echo reverseParentheses("(u(love)i)") . "\n"; // Output: "iloveu"

// Example 3
echo reverseParentheses("(ed(et(oc))el)") . "\n"; // Output: "leetcode"
?>
```

### Explanation
- The function `reverseParentheses` takes a string `s` as input.
- A stack is used to keep track of characters and nested parentheses.
- As we traverse the string:
    - If we encounter a closing parenthesis `)`, we start popping from the stack until we find an opening parenthesis `(`.
    - We collect the characters popped (which are inside the parentheses), reverse them, and push them back onto the stack.
    - If the character is not a closing parenthesis, it is directly pushed onto the stack.
- Finally, we concatenate the elements of the stack to form the result string, ensuring that the brackets are not included.

This method efficiently handles nested parentheses and ensures the correct order of characters after reversing the substrings within each pair of parentheses.



**Contact Links**

If you found this series helpful, please consider giving the **[repository](https://github.com/mah-shamim/leet-code-in-php)** a star on GitHub or sharing the post on your favorite social networks 😍. Your support would mean a lot to me!

If you want more helpful content like this, feel free to follow me:

- **[LinkedIn](https://www.linkedin.com/in/arifulhaque/)**
- **[GitHub](https://github.com/mah-shamim)**
Understanding Access Tokens and Refresh Tokens
Published: 2024-07-11 16:15:42

In today's digital world, securing user authentication and managing access to resources is crucial for any application. OAuth, a widely adopted authorization framework, uses Access Tokens and Refresh Tokens to ensure secure and seamless access to resources. In this article, we'll dive into what these tokens are, how they work, and how to implement them in real-world applications.

**What are Access Tokens and Refresh Tokens?**
Access Tokens and Refresh Tokens are key components in OAuth's token-based authentication system.
**Access Tokens:**
Definition: A short-lived token used to access protected resources.
Lifespan: Typically valid for a few minutes to an hour.
Usage: Sent with API requests in the Authorization header to verify the user's identity

**Refresh Tokens:**
Definition: A long-lived token used to obtain a new Access Token when the current one expires.
Lifespan: Can be valid for days, weeks, or even months.
Usage: Used to request a new Access Token without requiring the user to re-authenticate

**How Do They Work?**

The process of using Access Tokens and Refresh Tokens typically involves the following steps:

**User Authentication:**
The user logs in with their credentials.
The authentication server verifies the credentials and issues an Access Token and a Refresh Token.

**Accessing Protected Resources:**

The user sends the Access Token in the Authorization header of API requests to access protected resources.
The server verifies the Access Token and grants access if it is valid.

**Token Expiry:**

When the Access Token expires, the user sends the Refresh Token to the authentication server.
The server verifies the Refresh Token and issues a new Access Token (and possibly a new Refresh Token).

**Re-authentication:**

If the Refresh Token also expires, the user must log in again to obtain new tokens

_Real-World Example: Using Tokens in a Social Media Platform_

Let's consider a social media platform like Facebook to understand how Access Tokens and Refresh Tokens work in a real-world scenario.


**User Logs In:**
When a user logs into Facebook, the authentication server provides an Access Token and a Refresh Token.

**Accessing User Profile:**
The user wants to view or edit their profile. The Access Token is sent with the API request to the server.
The server validates the Access Token and allows access to the profile information.

**Token Expiry:**
After some time, the Access Token expires. The user is still using the app and tries to update their profile.
The app sends the Refresh Token to the server to obtain a new Access Token.

**Re-authentication:**
If the Refresh Token has also expired, the user must log in again to get a new set of tokens.


**Conclusion**
Access Tokens and Refresh Tokens play a crucial role in securing applications and managing user sessions. By implementing them effectively, you can enhance the security and user experience of your application. Understanding how these tokens work and how to use them can help you build more robust and secure systems.
Text widget gets stuck inside a column
Tags: flutter, dart
Published: 2024-07-11 16:16:53

Hi, I am new to flutter and exasparated with the coding involved to design the UI. So I chanced upon flutterViz. I made a container . Put a column widget inside and dragged a text widget inside the column. Now I wanted to move the text widget to another location within the column . I tried Right clicking and moving it down and up but it remained stuck in its position. Now this is going to be my basic requirement in all flutterViz projects . So please if anybody has a solution , do help me

Regards

Sanjish
The 21 Days Challenge: Pt. 1
Tags: programming, productivity, 100daysofcode, discuss
Published: 2024-07-11 16:26:05

Hey programmers!

This article is not a typical dev article with some informative downpour, but I want to talk a little about something I am interested in. 

I have heard many people talk about this concept of a 21-day habit-building challenge. As the name suggests, the idea here is to perform a specific task every day that you want to make a habit for 21 days and it would become a part of your routine. Now the concept itself isn't as simple as it seems to be. It turns out to be a myth up to a certain extent. The formation of a habit is much more complex and it involves many parameters to decide how long it would take for a habit to be created. You might have even discovered people on TikTok or Instagram doing a "30 Days xyz challenge" which holds the same principle behind it.

Now we wouldn't be diving deep into the psychology of habit formation, but what we're more interested is in the process of working towards creating a habit. For a good habit to be inculcated in your daily routine, it is important to drag yourself out of your comfort zone. Most of the good habits are often less exciting than the bad ones, but once you learn to _detoxify_ your brain, you overcome the barrier between doing good things in your life and stay productive. 

In the next part, I will be breaking down how I plan to try this challenge out to build a strong habit of programming. I would start from scratch and track my improvement throughout the journey.
>
Quiz Management System Project in Python | Django
Tags: python, django, developer, webdev
Published: 2024-07-11 16:31:06

[View Post](https://codzap.com/django-projects/quiz-management-system-using-django-python/)

Django Quiz is an ultimate quiz management system that utilizes the power and flexibility of Django and Python to take the user through the smooth yet transparent user experience. Either you are an educator or trainer, or you are just a person who enjoys taking quizzes; there is a strong platform provided by Django Quiz to build, manage, and profoundly at ease take the quiz.

[Download Source Code](https://codzap.com/django-projects/quiz-management-system-using-django-python/)
7 Essential Tips to Avoid Code Smells in Your Projects
Tags: refactoring, solidprinciples, cleancode
Published: 2024-07-11 16:32:20

As programmers, our goal is to write code that is clear, effective, and manageable. But occasionally, we come across "code smells"—subtle hints of more serious issues with the code. Early resolution of these problems can reduce technical debt significantly and enhance the general quality of the code. Here are seven crucial pointers to keep your projects free of code smells:

🌱 **Follow the SOLID Principles**
The SOLID principles are a set of design guidelines that promote robust and maintainable code. By adhering to these principles—Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion—you can reduce complexity and enhance code readability.

🌱 **Keep It DRY (Don't Repeat Yourself)**
Duplication in code can lead to inconsistencies and increased maintenance efforts. Identify common functionality and extract it into reusable components. This approach not only reduces redundancy but also simplifies updates and bug fixes.

🌱 **Use Meaningful Names**
Descriptive and meaningful names for variables, functions, and classes make the code more understandable. Avoid generic names and opt for names that clearly convey the purpose and intent of the code element. This practice enhances readability and makes collaboration easier.

🌱 **Write Small, Focused Functions**
Large, monolithic functions are harder to understand and maintain. Break down complex functions into smaller, focused ones that perform a single task. This modular approach promotes reusability, easier testing, and better code comprehension.

🌱 **Embrace Automated Testing**
Automated tests, including unit tests, integration tests, and end-to-end tests, ensure that your code behaves as expected. A comprehensive test suite can catch regressions early, provide confidence during refactoring, and serve as documentation for the codebase.

🌱 **Refactor Regularly**
Refactoring is the process of restructuring existing code without changing its external behavior. Regular refactoring sessions help improve code structure, eliminate redundancy, and address code smells. It's a proactive approach to maintaining code quality.

🌱 **Conduct Code Reviews**
Code reviews are a valuable practice for maintaining code quality and fostering knowledge sharing within the team. Reviewers can spot potential issues, suggest improvements, and ensure adherence to coding standards. Constructive feedback during reviews leads to better code and professional growth.

By implementing these tips, you can effectively avoid code smells and create clean, maintainable codebases. Remember, writing good code is an ongoing process that requires continuous learning and improvement. Let's strive for excellence in our coding practices and build software that stands the test of time.

Feel free to share your thoughts and additional tips in the comments below. Happy coding!
Python Youtube Video Downloader
Tags: webdev, python, javascript, django
Published: 2024-07-11 16:33:44

[View Post](https://codzap.com/django-projects/youtube-video-downloader-in-any-format-django-python/)

In this modern world, video content forms such an integral part of our lives through this digitally driven world. Be it for entertainment purposes, educational videos, or current affairs, YouTube does its work to keep people all over the globe abreast. However, quite often why you want to download a video so that you would view it offline, for any reason, such as savings from buffering, saving data, or for convenience in viewing that content.

[Download Source Code](https://codzap.com/django-projects/youtube-video-downloader-in-any-format-django-python/)