teleren/devto huggingface dataset:
A Motivational Guide for Software Developers 💪
Tags: productivity, watercooler, tutorial, melbite
Published: 2023-07-25 16:03:33

As a software developer, you have chosen a path of continuous growth and innovation. You are embarking on a journey that will challenge you, inspire you, and ultimately define you. Embrace this adventure with an unwavering belief in your abilities, for the world of technology eagerly awaits your contributions. Remember, you are not alone in this pursuit; countless developers before you have faced obstacles and setbacks but emerged stronger, shaping the digital landscape we navigate today.



The key to success as a software developer lies in finding motivation within yourself. Cultivate a mindset that thrives on curiosity and a hunger for learning. Embrace each day as an opportunity to expand your knowledge, explore new programming languages, and discover novel solutions to complex problems. Remember that even the most seasoned developers started as novices once, and their perseverance brought them to the pinnacle of their careers. So, don't be discouraged by challenges; see them as stepping stones on your journey to greatness.



One of the most powerful sources of motivation is passion. Fuel your love for coding by working on projects that excite you, whether they are personal endeavors or collaborations. When you are driven by passion, every line of code you write becomes a testament to your creativity and dedication. Embrace the moments of frustration as they provide opportunities for growth and self-improvement. Trust in your abilities and know that you possess the skills to overcome any obstacle that comes your way.



Another critical aspect of motivation is the support of a vibrant developer community. Connect with like-minded individuals, attend tech meetups, and engage in open-source projects. Surrounding yourself with a network of supportive peers will inspire you to push beyond your limits and keep you accountable on your path to success. Remember, every developer you meet has a unique story to share, and learning from their experiences can further fuel your passion for coding.



###Conclusion,
As a software developer, your journey is more than just lines of code. It is a voyage of self-discovery, innovation, and growth. Embrace each challenge with a positive mindset, driven by curiosity and passion. Connect with your fellow developers and share in their triumphs and struggles. Most importantly, believe in yourself and the incredible potential you hold. Let every line of code you write be a testament to your determination, and watch as your journey transforms into a legacy of impact and inspiration in the world of technology.


If you find this article helpful give it a like. 👍

See more articles like this in https://melbite.com
Happy Coding
NEXUS LDAP ve LDAPS Entegrasyonu
Tags: beginners, tutorial, linux, learning
Published: 2023-07-25 15:56:43

Nexus OSS Kurulumunu önceki yazımızda anlatmıştık, [buradan](https://dev.to/aciklab/ubuntu-2204-nexus-oss-kurulumu-6gk) ulaşabilirisiniz.

Bu yazımızda LDAP entegrasyonu asıl yapılır bu konuya değineceğiz.

Arayüze giriş yapıyoruz ve **Server administration and configuration** butonuna tıklıyoruz (Çark işareti).

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

Açılan sayfada **Security** sekmesine geliyoruz.

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

Sonrasında **LDAP** içine giriyoruz.


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

Sizde burası boş görünecektir, **Create Connection** butonuna basıyoruz.

**LDAP bağlantısı için**
protokol **ldap** ve port **389** olcak şekilde ayarlayıyoruz.(Özel oalrak değiştirdiyseniz o portu yazmanız gerekir)

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

**LDAPS için** 
_ Not: makinanızın **DNS** ayarlarını kontrol edin domain adını çözebilecek olduğundan emin olun._

**ldaps** ve **636** olacak şekilde güncelleyelim.

**View certificate** butonuna basarak sertifikanızı görüntüleyebilirsiniz. Bilgiler doğruysa güvenin ve checkbox alanını işaretleyin. 

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

Sonrasında Veriyf connection alanna basarak girdiğiniz veriler doğru mu kontrol edebilirsiniz ve save butonuna basarak kontrol gerçekleştirebilirsiniz.

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

Sonrasında **save** butonuna basarak kayıt edebilirsiniz :)
Call a SOAP service from Postman or Fiddler Using Azure Web Apps
Tags: webdev, azure
Published: 2023-07-25 15:53:09




While it’s true that JSON or XML has been the rage for a long time in web services, there are still thousands and thousands of SOAP services in most companies I walk across.

Today I had to do some tests with a super simple example with WCF (in fact, the one that comes with the Visual Studio WCF template) and the truth is that I spent a while until I was able to access the service from Postman or Fiddler correctly. The fact is that I have tried with WCF Test client, which comes as part of Visual Studio and it worked without problems.

![WCF Test Client — ​​SOAP service](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ku1nqidkcg293pwrndvc.png)

But when I got to Postman, all I got was a 400 — Bad Request error without much explanation.


![Postman SOAP Request — 404 Bad Request](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6i2hw38o4sv51vcvmt8t.png)

And in Fiddler exactly the same!

After wandering around for a while, I uploaded my service to a [Web App in Microsoft Azure ](https://azure.microsoft.com/en-us/services/app-service/web/)and [tried one of the many pages that act as a SOAP client](https://wsdlbrowser.com/), reading from your service definition (WSDL), and that’s where I was able to see what was missing from my request to make it work just as well as in **WCF Test Client: the SOAPAction header**, plus a correct Content-Length in the case of Postman. In such a way that the configuration to be able to make the call would be the following:

These would be the headers needed to make the request:

![SOAP request with parameters — headers](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/guc8k5wkv9e9du9qjuf1.png)

and this is the body of the message:

![SOAP request with parameters — body](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7d6d9l9u44trxhoxx2s8.png)

For Fiddler they would be the same values ​​but in their format:

![Fiddler — SOAP request](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u6rwf5c9tfzram3qpivo.png)

An additional point to review is that **Postman does not calculate the Content-Length automatically** as Fiddler does and this can also cause problems when making the request. You can use a [page like this](http://string-functions.com/length.aspx) (or Fiddler that calculates the content length and updates it by itself) to calculate the size of the content and save you a few more minutes.
How to build an EKS cluster with Managed Nodes in step-by-step from AWS Console
Tags: devops, aws, kubernetes
Published: 2023-07-25 15:45:31

Amazon Elastic Kubernetes Service (EKS) ⚡

🤷‍♂️ How-to setup EKS cluster and managed nodes.

👉 Pre-requisites -
✅ AWSCLI - Which helps to connect with AWS from Linux/Windows/MAC Command Lines.
✅ kubectl - To connect to Kubernetes cluster and run the workloads.
First and foremost, Create a defined VPC networking.

🔷 Create your own VPC networking🌐

🔷 Create Cluster Role to connect to EKS Cluster and attach Role policy to it 🔐

🔷 Create the EKS cluster and attach the VPC network and Role which you created before ⚙

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


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



🔷 EKS Cluster will take up several minutes to come up healthy. ⏱

🔷 Once it came up healthy, connect from your base machine to access the EKS Cluster by changing the Kubernetes configuration file 🙋‍♂️

🔷 To make your cluster completely manageable, need to attach a couple of nodes based upon your requirements ☢

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



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


🔷 Before adding nodes, need to create a role for EKS Nodes and attach this role to three required and mandate policies, which will help Cluster to communicate node without any issues 🔐

🔷 Create a node group under EKS Cluster and provide the workers node required for an Auto-scaling group to take care of downtimes and bring back to the desired posture 🔁

🔷 After several minutes, the Status in the Node Group configuration section will change from creating... to Active... Don't continue to the next step until the status is Active. 👑

Hope this post helps. Please do a Repost, it really helps ♻

#kubernetes #aws #eks
Basic, Intermediate, Advanced Next.js Projects
Tags: webdev, nextjs, react, javascript
Published: 2023-07-25 15:03:20

 Here are some basic, intermediate and advanced Next.js projects you can build:

Basic Next.js Projects:
- Blog: A simple blog website is a great starter Next.js project. You'll learn how to use pages, API routes, and Markdown.

- Portfolio: Build a portfolio website to showcase your work. Learn how to organize pages, use CSS modules, and deploy to services like Vercel.

- E-commerce Store: Start with a simple e-commerce store with just static pages for products. Learn the file-based routing in Next.js.

Intermediate Next.js Projects:

- Blog with CMS: Add a CMS like Strapi or Sanity to your blog so you can edit content dynamically. Integrate the API into getServerSideProps.

- E-commerce with Cart: Add a shopping cart, checkout and payment integration to your e-commerce store. Use getServerSideProps and API routes.  

- Social Network: Build a social media app where users can post, like, and comment. Learn to integrate with third-party APIs and authentication.

Advanced Next.js Projects:

- E-commerce with Orders: Add order management to your store with order history, tracking, and inventory management.  

- Job Board: Build a job listing website with features like search, filtering, application forms, and employer dashboards.

- Course Platform: Create an online course platform where instructors can create and sell courses. Users can enroll, view lessons and make payments.

Those are some example projects at basic, intermediate and advanced levels you can build with Next.js. The complexity increases as you add dynamic content, data fetching, authentication, payments etc.
Transform your machine maintenance strategy from REACTIVE to PROACTIVE
Tags: machinelearning, learning, softwareengineering, automation
Published: 2023-07-25 14:59:23

Experience the seamless integration of workflows, predictive maintenance, ensure smooth machine operations with iDataOps, our advanced machine monitoring software.

Stay ahead of the competition with Rawcubes.

Learn more about iDataOps here - [https://www.rawcubes.com/industrial-dataops/machine-monitoring.html]
Serverspace on board! Some words about maximizing business agility with cloud migration…
Tags: busines, cloudcomputing, programming, devops
Published: 2023-07-25 14:39:22

Everyday our team gets a lot of questions about cloud migration for business and today we would like to answer some of the most FAQ. So, as we all know, business need to adapt quickly to changing market demands. Cloud migration is a powerful solution that can help companies become more agile.


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

_What does cloud migration mean, and how can it benefit businesses?_

Cloud migration means moving a company's data, applications, and operations from on-premises servers to cloud-based servers. This transition offers many advantages, and one of the biggest benefits is the ability to maximize business agility.

_How does cloud migration enable businesses to scale resources easily?_

With cloud migration, businesses can easily adjust their computing resources, like CPU, RAM, and storage, based on their needs. They can add more resources during busy times and reduce them when things slow down. This flexibility helps companies avoid performance problems and save costs.

_How can cloud migration speed up the deployment of new products?_

Cloud-based platforms make it quicker to launch new applications and services. Traditional setups can be slow due to hardware setup and configuration. Cloud migration offers pre-configured templates and automated processes, speeding up deployment and allowing companies to seize market opportunities faster.

_What impact does cloud migration have on team collaboration?_

Cloud tools make it easier for teams to work together, even if they are in different locations. Remote access to data and applications promotes seamless collaboration, leading to better teamwork and decision-making. This improves responsiveness to customer needs.

Cloud migration offers a transformative opportunity for businesses to become more agile in a rapidly changing world. By embracing cloud-based infrastructure, companies gain the flexibility to scale resources, speed up product launches, improve collaboration, analyze data better, and handle disruptions effectively. So, if you need any cloud solution for your business, you know where to find [us](https://serverspace.us/).
Unity Day 1
Published: 2023-07-25 14:36:39

Today I started learning Unity.
I started with a tutorial about the basics from:

> Game Maker's Toolkit

The first game I'm going to make is Flappy Bird.
A simple game but good to master the basics.

This is the progress of my first day:

- I downloaded a sprite from the Unity Assets Store and used this 
  as the main character.

- I wrote and added a script so that the bird can move up and 
  down.

- I added the tubes to spawn on the right side, and using a script 
  so the tubes move to the left. So it seems that the bird is 
  flying.

- I made a scoring system and a GameOver Screen.

- Later I wrote a GameOver script, if you touch the tubes you get 
  the option to start over.

- The script for the score system is added to the trigger between 
  the pipes (picture 3)



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


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



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2tp1013vvbkpmar3yu45.png)
A Non-Fungible Token (NFT)
Tags: nft, talentserve
Published: 2023-07-25 14:34:18

A Non-Fungible Token (NFT) is a special type of digital asset that, on the blockchain, indicates ownership of a particular object, piece of art, or collectible. NFTs are indivisible and have unique qualities that make them stand apart from other cryptocurrencies like Bitcoin and Ethereum, which are interchangeable and have the same value.

Some of the examples of NFT are:

Digital Art: As previously noted, digital artwork such as drawings, paintings, animations, and 3D models can be converted into NFTs.

Music and audio: Songs, albums, and audio samples can all be tokenized as NFTs by musicians and artists.

Domain names: Tokenized blockchain-based domain names (NFTs) provide distinct and verifiable ownership of internet domains.

Future of NFT:

The future of NFTs is exciting and unknowable, much like that of any other newly developed technology. NFTs have shown their ability to transform industries despite a few obstacles and difficulties. Both makers and collectors are accepting the idea of digital ownership and scarcity, generating a new digital economy with endless opportunities. We can expect to see NFTs revolutionize how we interact with art, media, and virtual assets as they become a crucial component of our digital life.

Are NFTs Safe?

NFTs are typically seen as secure because to how reliable blockchain technology is. However, responsible user behavior, good private key management, and picking trustworthy platforms and markets are also important factors in ensuring the security of NFTs. Users and the industry as a whole must be alert and knowledgeable about potential security threats and best practices as NFTs continue to gain popularity.
How to Set up MongoDB within a Docker Container
Tags: mongodb, docker, container, nosql
Published: 2023-07-25 14:26:07

---
title: How to Set up MongoDB within a Docker Container
published: true
tags: mongodb, docker, container, nosql
canonical_url: https://stacktips.com/articles/how-to-set-up-mongodb-within-a-docker-container
---

In this tutorial, we'll show you how to set up MongoDB in a Docker container. By containerizing MongoDB, you can quickly deploy and use MongoDB effortlessly for your local development.

Here is the step-by-step guide to setting up MongoDB within a Docker container:

{% embed https://youtu.be/VXurxAIh6BM %}

## Install Docker

First, make sure you have the Docker installed on your machine. If it is not installed, you can download the Docker Desktop from the official Docker website. Visit the website https://docs.docker.com/engine/install/ and download the package appropriate for your operating system.

## Pull MongoDB Image
Now, let us pull the official MongoDB docker image from the Docker Hub. For that, open your terminal and run the following command:

```
$ docker pull mongo
```

## Run MongoDB Container

Now, run the following command to start a MongoDB in a container,

```
docker run
    -d
    --name mongodb
    -p 27017:27017
    -e MONGO_INITDB_ROOT_USERNAME=YOUR_USERNAME
    -e MONGO_INITDB_ROOT_PASSWORD=YOUR_PASSWORD
    mongo
```

Options:

The `-d` option is used to run the container in the detached mode, meaning the container will run in the background and won't block your terminal.

The `--name` options allow you to provide a name for your MongoDB container. I have used mongodb here but you can use anything you really want.

The `-p` option is used to map the container’s port into the host machine port. The port 27017 on the left-hand side of the colon (:) represents the port of the host machine. And the right-hand side port is the port of MongoDB. 

The default MongoDB port is 27017.

The default MongoDB user name and password can be set using the environment variable `MONGO_INITDB_ROOT_USERNAME` and `MONGO_INITDB_ROOT_PASSWORD`.

The environment variables are provided with `-e` option.

This command will start a Docker container named "MongoDB" and map the MongoDB default port `27017` from the container to the same port on your host machine.

## Verify Running Mongo Container
You can check if the container is running by executing the command:

```
docker ps
```

It should display a list of running containers, and you should see the "mongodb" container in the list.

##  Stop Mongo Container
To stop a MongoDB Docker container, you can use the following command:

```
docker stop mongodb
```

To Start MongoDB again

```
docker start moongodb
```

This article was originally published on [stacktips](https://stacktips.com/articles/how-to-set-up-mongodb-within-a-docker-container).
Imperative vs Declarative Programming
Tags: beginners, python, react, learning
Published: 2023-07-25 14:03:07

There isn't much of a difference between Imperative and Declarative programming, except for where we would use them. Today we are going to explain the key difference that separates these two. 

#Imperative Programming 
Imperative programming can be the easiest for beginnings since it relies more on a step-by-step process for executing code. This style of coding allows the programmer to tell the program **what to do, how to do it, and when to do it**. This process is called the **control flow**!

```
# Calculate the Result in the list
result = 0
theList = [2, 4, 6, 8, 10]

# Creating a for loop to add numbers in the list to the Result
for x in theList:
    result += x
print(result)
```
Languages that are examples of Imperative Programming:
* Java
* C
* Pascal
* Python
* Ruby
* Fortran
* PHP


# Declarative Programming
Declarative Programming in contrast to Imperative defines the results we want to accomplish without describing its _control flow_. This process allows the us to place emphasis on the results of the overall goal instead of the execution process. It can lead to more descriptive and specific code. Declarative structure is precise with less code, reducing complexity and making it easier to read/understand. 

```
theList = [2, 4, 6, 8, 10]

# Setting the result to the sum of numbers in theList
result = sum(theList)
print(result)
```

Languages that are examples of Declarative Programming:
* SQL
* Miranda
* Prolog
* Lisp
* Many markup languages (ex. HTML)



Both of these structures are useful in certain places. The key differences are that Imperative Programming is easier, step-by-step, and allows the programmer to have complete control allowing them to customize the structure to their needs with **control flow**. Whereas, Declarative Programming makes it easier to limit the complexity of the code making it shorter and more concise, customization is more complicated since it has reduced code, and it also allows us to easily optimize code, with adding extensions and making upgrades.

Languages that have been updated to support both paradigms include:
* Python
* JavaScript
* C++
* C#


[educative](https://www.educative.io/blog/declarative-vs-imperative-programming)
[Epicodus](https://www.learnhowtoprogram.com/react/functional-programming-with-javascript/imperative-versus-declarative-programming)
[DifferenceBetween.com](https://www.differencebetween.com/difference-between-declarative-and-vs-imperative-programming/)