teleren/devto huggingface dataset:
Docker ve Docker Compose Kurulumu (Ubuntu 20.04)
Tags: docker, dockercompose, ubuntu
Published: 2023-04-06 12:20:22

##**1. Docker Kurulumu**

Resmi Ubuntu deposunda Docker kurulum paketi en son sürüm olmayabilir. En son sürümü aldığımızdan emin olmak için Docker'ı resmi Docker deposundan kuracağız. Bunu yapmak için yeni bir paket kaynağı ekleyeceğiz, indirmelerin geçerli olduğundan emin olmak için Docker'dan GPG anahtarını ekleyeceğiz ve ardından paketi kuracağız.

- İlk olarak, mevcut paket listenizi güncelleyin:

```bash
 sudo apt update
```
- Ardından, apt'nin HTTPS üzerinden paketleri kullanmasına izin veren birkaç önkoşul paketi yükleyin:

```bash
 sudo apt install apt-transport-https ca-certificates curl software-properties-common
```
- Sonrasında, resmi Docker deposu için GPG anahtarını sisteminize ekleyin:

```bash
 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
```

- Docker deposunu APT aynaklarına ekleyin:

```bash
 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
```
- Bu, paket veritabanımızı yeni eklenen depodaki Docker paketleriyle de güncelleyecektir.

- Varsayılan Ubuntu reposu yerine Docker reposundan yüklemek üzere olduğunuzdan emin olun:

```bash
 apt-cache policy docker-ce
```
- Docker sürüm numarası farklı olsa da çıktıyı şu şekilde göreceksiniz:


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


- Docker-ce'nin yüklü olmadığına, ancak kurulum adayının Ubuntu 20.04 için Docker deposundan olduğuna dikkat edin.

- Son olarak, Docker'ı yükleyin:

```bash
 sudo apt install docker-ce
```
- Docker şimdi kurulmalı, arka plan programı başlatılmalı ve işlemin önyüklemede başlaması etkinleştirilmelidir.

- Çalışıp çalışmadığını kontrol edin:

```bash
 sudo systemctl status docker
```
- Çıktı, hizmetin aktif ve çalıştığını gösteren aşağıdakine benzer olmalıdır:


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

##**2. Docker Compose Kurulumu**

- Aşağıdaki komut yürütülebilir dosyayı /usr /local/bin/docker-compose adresine kaydedecek ve bu da bu bu yazılımı genel olarak docker-compose olarak erişilebilir hale getirecektir:

```bash
 sudo curl -L -k "https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose
```

- Ardından, docker-compose komutunun yürütülebilir olması için doğru izinleri ayarlayın:

```bash
 sudo chmod +x /usr/local/bin/docker-compose
```
- Kurulumun başarılı olduğunu doğrulamak için şu komutu çalıştırabilirsiniz:

```bash
 docker-compose --version
```

- Buna benzer bir çıktı görecesiniz:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/flz64skz6ncphiq296ud.png)
Best eye hospital in Jabalpur
Tags: hospital, doctor, eyecar
Published: 2023-04-06 12:14:15

Dada [Virendra Puri Ji Eye Institute ](https://dvjei.org/)(DVJEI) offer a range of fellowship programs for aspiring ophthalmologists looking to specialize in cataract surgery, surgical retina, glaucoma, cornea-anterior segment and refractive surgery, squint and [pediatric ophthalmology](https://doaguru.com/digital-marketing-web-design-development-company-jabalpur/), orbit and oculoplasty, phaco and refractive surgery. Our fellowship programs are designed to provide hands-on training and practical experience to young ophthalmologists to excel in their chosen fields.
A small JavaScript pattern I enjoy using
Tags: javascript, functional, webdev, programming
Published: 2023-04-06 12:06:32

There is a JavaScript pattern that I enjoy using that I don’t see a lot around the web, so I figured it would be worth sharing.

When you have a piece of business logic, frequently that depends on a a certain value being true. An if statement:

```js
if ( status === 'active' ) { … }
```

This is easy to parse for me and I can quickly see what it does. What often ends up happening though is that the business logic gets a second possibility, for example status being active or status being trialing:

```js
if ( status === 'active' || status === 'trialing') { … }
```

This is still relatively easy to read but there’s repetition with ‘status’ and I always need a second to think about the difference between || and && to understand the behavior. So whenever I move from checking from one value to more than one, I switch to a different pattern:

```js
if (['active', 'trialing'].includes(status)) { … }
```


I make an array of all possible values and then use Array.includes() to check if the status is contained in that array.

This pattern comfortably grows to many items and can also more easily be read aloud, helping understanding.

There is no repetition so as a small bonus it’s shorter. It has also helped me learn the difference between [includes, contains and has](https://kilianvalkhof.com/2021/javascript/includes-contains-or-has-finding-things-in-iterables-lists-in-javascript/).

## Partial string matching

I get a lot of mileage out of the above pattern, but it only works when you’re matching the full string. Sometimes you need to check just the beginning or the end of a string and then .includes() won’t cut it because it only accepts values, not a function.

We don’t want to go back to multiple checks and the repetition that gives so if we need to check for a part of the string we need to change the function we use:

```js
['http://', 'https://', 'file://', 'www.'].some(s => clipboard.startsWith(s)) { … }
```

Array.some() takes a function and returns a Boolean. It’s a little longer but we’re still not repeating ourselves. A nice benefit is that like includes() it will stop evaluating when it returns true, so we usually don’t have to loop over all the elements.

In the examples above I inlined the array but of course you can also store it in a global variable. That gives you the additional benefit of only instantiating a single array that you can reuse and that lets you update many checks in one go, should the business requirements change.

As I said, I get a lot of use out of this pattern. I hope this helps you recognize when it’ll be useful in your code in the future!
PRINCE2® VS PMP® Certification
Tags: prince2, pmp, course, certification
Published: 2023-04-06 12:00:29

One of the most lucrative and in-demand career alternatives during the past few years has been project management. Without a question, the field has a promising future and is still growing.
There will be a need for around 87.7 million project management-related roles by 2027, according to a PMI report.
Selecting the best project management certification is a crucial choice if you want to become a project manager. You are constantly attempting to advance your abilities, increase your productivity, pick up some experience, and, most importantly, obtain a certificate. Project managers have a major edge over non-certified individuals because to industry-recognized certificates.
In the industry, there is a lot of respect for the Project Management Professional (PMP) and PRINCE2 credentials. Which one, though, is best for you, I hear you ask. What should be considered?

This article provides a comprehensive review of the PMP and PRINCE2 certifications, including information on their distinctions, advantages, potential career paths, and much more. Continue reading to see which decision is best for your career.

👉👉[Know More about which one is the Best course for you](https://www.youtube.com/watch?v=T9o5AczdnNo)

Official website: [The Knowledge Academy.
](https://www.theknowledgeacademy.com/)YouTube Channel: [The Knowledge Academy](https://www.youtube.com/@TheKnowledgeAcademy./videos)
How to make Axios POST requests in JavaScript
Published: 2023-04-06 11:54:46

In this article, we will see how to build a login form in HTML and post the form data to an API endpoint using axios.

## Building a login form

Create a file called `index.html` with the following code:

```html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body {
        display: flex;
        justify-content: center;
      }
      .item {
        display: flex;
        justify-content: space-between;
        gap: 20px;
      }
    </style>
  </head>
  <body>
    <form action="" id="login" method="post">
      <h1>Login</h1>
      <p class="item">
        <label for="email"> Email </label>
        <input type="email" name="email" id="email" />
      </p>
      <p class="item">
        <label for="password"> Password </label>
        <input type="password" name="password" id="password" />
      </p>
      <p class="item">
        <input type="submit" value="Login" />
      </p>
    </form>
  </body>
  <script type="text/javascript" src="./index.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</html>
```

Here we have created a form with 2 fields: email and password. We also have a submit button.
In the end, we have included 2 scripts, the first is `index.js`,
where we will write our JavaScript logic and the second is axios from the CDN.

## Making the POST call using Axios

Create a file called `index.js` with the following code:

```js
const loginForm = document.querySelector("#login")

loginForm.addEventListener("submit", function (event) {
  // Stop the default submit and page load
  event.preventDefault()

  const email = document.querySelector("#email").value
  const password = document.querySelector("#password").value

  // Handle validations
  axios
    .post("https://example.con/login", { email, password })
    .then(response => {
      console.log(response)
      // Handle response
    })
})
```

In the adove code:

- We are getting a reference to the form, and adding a submit handler function to it.
- We are accessing the email and password entered by the user.
- We are making axios POST call with the email and password in the request body to the endpoint `https://example.con/login`.
Gearhead Karting - A Next-Level Kart Racing Game
Published: 2023-04-06 11:48:03


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lyusqxpqa7hn5ti7xdsn.jpeg)
<p>Hi everyone.</p>
<p>As a solo developer, I've spent the past five months pouring my heart and soul into this project, and I couldn't be more excited to share it with you.</p>
<p>From the very beginning, I knew I wanted to create something truly special - a kart racing game that goes beyond the norm. That's why I've included a deep level of customization, realistic physics, and a variety of game modes to keep you coming back for more.</p>
<p>But as a solo developer, I've faced my fair share of challenges along the way. I've struggled with limited resources and the need for funding to truly make this game everything it can be.</p>
<p>That's why I'm turning to Kickstarter - to help me bring my dream to life. With your support, I can continue to develop Gearhead Karting to its fullest potential. And with a series of funding milestones in place, I can ensure that every dollar goes towards making this game even better.</p>
<p>Starting at just &pound;5,000, each milestone reached brings us closer to a better, more immersive experience for you.<br>We're talking new customization features, new tracks, and even new game modes like Drag and Drift Racing.<br>And with a target funding amount of &pound;45,000, you can help me make this dream a reality.</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ak26l7fw0eroo14cppmt.jpeg)
<p>But more than just a game, Gearhead Karting is a passion project -<br>a labor of love that I'm eager to share with the world.<br>With your support, we can make this game the best it can be.<br>So join me on this journey, and let's take your kart racing experience to the next level.</p>
<p><span data-sheets-value="{&quot;1&quot;:2,&quot;2&quot;:&quot;https://www.kickstarter.com/projects/gearheadkarting/gearhead-karting-next-level-karting-simulator/?utm_source=devto&quot;}" data-sheets-userformat="{&quot;2&quot;:1049089,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;23&quot;:1}" data-sheets-hyperlink="https://www.kickstarter.com/projects/gearheadkarting/gearhead-karting-next-level-karting-simulator/?utm_source=devto"><br><br><a class="in-cell-link" href="https://www.kickstarter.com/projects/gearheadkarting/gearhead-karting-next-level-karting-simulator/?utm_source=devto" target="_blank" rel="noopener">https://www.kickstarter.com/projects/gearheadkarting/gearhead-karting-next-level-karting-simulator/?utm_source=devto</a></span></p>
Let's talk about OO ABAP with a junior DEV!
Tags: beginners, programming, productivity, codenewbie
Published: 2023-04-06 11:47:24

- What is OOP?

OOP stands for Object Oriented Programming as you all know. Object is a thing that has own completency like wood, wheel, towel etc. At software programming, we make it appearable on screens or it may be a hardworker employee at backyard and all those are like how it is in real life, e.g web pages, stylings, colors etc. OOP allows you have objects as software developer and you can manipulate them. Classes are as templates, then create objects from classes, add new features using methods, interfaces and such things. I hope this is sufficient for a general view.

- Does ABAP supports OOP?

SAP ABAP supports OOP, it means, I can create object, inherit from parent class, can have static methods and variables, define interfaces in class, specify the visibility using public, protected and private sections. SAP has global pool to create global classes such that any developer reach it and call its methods in a report/function/method. 

As far as I know ABAP does not support multiple inheritance e.g a subclass can't inherit from multiple super classes. So, to succeed it, I can use multiple interfaces in a certain class.

- Why should I prefer classes, functions instead?

Actually every kinda tech stack has pros and cons. OOP has its own structure that I don't think you can break it down easily while increasing your code lines, but it needs a good plan at the start. Once you write your code script for example in an abstract method, then you can use it whereever you want, but that abstract class has to be at the top like grand grand grandpa 😊. When I created a class, it takes place in memory, thus, memory reminds me performance. In contrast to OOP, functions are quick solutions to perform a specific job and after then it has nowhere to live in memory or not need to live there. May be it's struggling that build a clear architecture with functions. Because in my project they look like clothes are everywhere in the room.

For brevity, memory is one of the main sources at software development, I can't ignore it. Architecture, fast reponse times, amount of database requests are all also very important at software development life cycle. Now it's your choice dude! OOP or Functions?
How to use process.env in Vite
Tags: vite, javascript, tutorial, node
Published: 2023-04-06 11:42:56

The `process` object is a global object that is exclusive to the Node.js environment, and therefore cannot be accessed in a browser environment. 

However, bundlers like **webpack** and **vite** can handle this limitation by processing the custom process variable before rendering it for browser use.

To achieve this, **vite** uses 2 libraries:
1. **vite-plugin-env-compatible**: load env file
2. **@rollup/plugin-replace**: replace javascript variables into env file's variables 

The official documentation states that all `VITE_*` environment variables set in the `.env` file can be accessed through `import.meta.env.*`, e.g: `VITE_MY_VAR="abc"` can be use as `import.meta.env.VITE_MY_VAR`.

However, it's not recommended for users to define environment variables with the `VITE_*` prefix when developing packages. 

To enable greater flexibility in usage, it's recommended to convert environment variables to the form of `process.env`.

The following example shows an actual implementation.

* .env
```.env
YOUR_STRING_VARIABLE="helloworld"
YOUR_BOOLEAN_VARIABLE=false
```
* vite.config.js
```js
import { defineConfig, loadEnv } from 'vite';

export default defineConfig(({ command, mode }) => {
    const env = loadEnv(mode, process.cwd(), '');
    return {
        define: {
            'process.env.YOUR_STRING_VARIABLE': JSON.stringify(env.YOUR_STRING_VARIABLE),
            'process.env.YOUR_BOOLEAN_VARIABLE': env.YOUR_BOOLEAN_VARIABLE,
            // If you want to exposes all env variables, which is not recommended
            // 'process.env': env
        },
    };
});
```
then you can use `process.env.YOUR_ENV` in anywhere of your project.
Hello-World ✍️
Tags: programming, beginners, productivity, learning
Published: 2023-04-06 11:35:07


![A guy trying to blog](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1crmky3ry8b63yj4hvvl.jpg)**Hello Everyone**, 

I'm Sriyansh Shivam. I'm new to blogging and technical writing.

🎓: I am a sophomore  seeking a bachelor's degree in Computer Science and Engineering.
🚀: I am a self-taught designer and an open-source contributor.

📚: What brought me here is a desire to share my knowledge and learn from the experiences of others.
💻: I'm a web developer who is comfortable with frontend and is currently learning backend. 

- I'm familiar with a number of languages including Java, C++, and Python. I'm also familiar with various tools and technologies related to web development and blockchain.
- Looking forward to having a wonderful time here and making new friends as well. 


If anyone wants to connect 🤝 , here are my socials:

- [LinkedIn](https://www.linkedin.com/in/sriyansh-shivam/)
- [GitHub](https://github.com/SoNiC-HeRE)
- [Twitter](https://twitter.com/ShivamSriyansh)


P.S: If anyone is wondering about the image above, I've generated it using [NightCafe A.I](https://creator.nightcafe.studio/) 😉
The Future of Artificial Intelligence in Everyday Life
Tags: ctn, ai
Published: 2023-04-06 11:11:57

According to [CTN News](https://www.chiangraitimes.com/)

Artificial talent (AI) has swiftly advanced over the years and has ended up an indispensable phase of our daily lives. From voice assistants like Siri and Alexa to self-driving motors and customized content material recommendations, AI has made our lives simpler and extra efficient. But what does the future preserve for AI? Let's discover some workable tendencies in AI that should influence our everyday lives.

<b>The Rise of AI-Powered Healthcare<b>

AI has the ability to radically change healthcare by enabling quicker, greater correct diagnoses and customized treatments. AI-powered equipment can analyze giant quantities of scientific information to pick out patterns and make predictions about sickness progression. Additionally, AI can help in drug discovery by means of simulating complicated molecular interactions and predicting plausible drug targets. The end result should be greater tremendous and personalized remedies for patients.

<b>AI and the Future of Transportation<b>

Self-driving automobiles are already on the road, and I will proceed to play an extensive function in the future of transportation. AI can allow predictive maintenance, optimizing routes, and minimizing site visitors congestion, and decreasing accidents. AI should additionally strengthen the improvement of superior public transportation systems, making it simpler and greater handy for human beings to get around.

<b>AI and the Workplace<b>

As AI continues to evolve, it will have an effect on the body of workers in many ways. While some jobs might also turn out to be automated, AI may want to additionally create new job opportunities. AI ought to aid in automating repetitive tasks, enabling personnel to center their attention on extra innovative and strategic work. AI-powered chatbots should additionally assist with patron service, liberating up personnel to center of attention on extra complicated client issues.

<b>AI in Education<b>

AI should play a giant function in remodeling training via personalizing gaining knowledge of experiences. AI-powered equipment can analyze pupil facts to discover areas the place college students may additionally be struggling and endorse customized getting to know resources. Additionally, AI ought to help with grading and feedback, liberating up teachers' time to focal point on extra interactive and attractive instructing methods.

<b>Conclusion<b>

AI has the ability to radically change many elements of our day by day lives. From healthcare to transportation, workplaces, and education, AI is poised to make our lives greater, environment friendly and personalized. However, it is essential to think about the doable moral implications of AI development, such as job displacement and information privacy. By balancing the advantages of AI with the moral concerns, we can make sure that AI is developed in a way that advances society as a whole.
celery soft_time_limit
Tags: celery, python, django
Published: 2023-04-06 11:09:50

using celery with django , came across one problem while using celery soft_time_limit on task 
i want to know is there any way to stop or increase soft_time_limit when task is getting executed , like after some line of code get executed and then i want to increase soft_time_limit in that particular task or cancel soft_time_limit so i can run particular task without restriction
How to Integrate QuickBooks Online with Magento 2
Tags: magento, magento2, magento2tutorial
Published: 2023-04-06 10:57:34

**_How to Integrate QuickBooks Online with Magento 2_**: To coordinate Magento 2 with QuickBooks On the web, you can utilize an outsider reconciliation application like FastBooks or QBO Combination for Magento 2.

These applications permit you to associate your Magento 2 store with your QuickBooks Online record and consequently synchronize deals, solicitations, installments, and other monetary information. By utilizing a Magento 2 expansion QuickBooks coordination, you can likewise set up rules to control which information gets synchronized and the way things are designed, guaranteeing that your bookkeeping data stays exact and state-of-the-art. With this mix, you can save time and decrease manual blunders, giving you additional opportunity to zero in on developing your business and further developing your Magento 2 QuickBooks reconciliation.

For more information, please visit this:- **_[](https://webguru.dev/how-to-integrate-quickbooks-online-with-magento-2/)https://webguru.dev/how-to-integrate-quickbooks-online-with-magento-2/_**
AI for Tectonic faults interpretation (geology)
Tags: ai, python, geo, cnn
Published: 2023-04-06 09:52:48

I have just published my code for a convolutional neural network that addresses the problem of tectonic faults mapping on low-quality seismic images on GitHub. This code is designed to help accurately map faults on 3D seismic data, even when the images are of a lower quality.

If you're interested in exploring this solution, I invite you to check it out and give it a try. I believe it has the potential to significantly improve fault mapping in the oil and gas industry, and I'm excited to see the impact it can have on the field.

Link to repo:
https://github.com/sakhalinec/CNN_for_faults_mapping_on_LQ_seis

Here is an example of tectonic faults mapping using AI
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1cqum1e8zkygch3j6vyr.jpg)

#AI #geology
10 Best HR Software in India, US & Globally
Tags: hrsoftware, tophrsoftware, besthrsoftware
Published: 2023-04-06 09:43:30

explore the list of [top 10 HR Software in India](https://technologycounter.com/hr-software), the US & Globally For 2023. Compare the best HRMS Solutions and find out the right HRIS one that fits your business.The top HR software is customizable. For instance, if you run a small-scale business and have a handful of employees, you can pick the [HR management software ](https://technologycounter.com/hr-software
![Uploading image](...))featuring payroll, time & attendance tracking, and some crucial administrative activities.