teleren/devto huggingface dataset:
Leveraging DevOps for Faster and Scalable Deployments
Tags: devops, containers, cloud, bash
Published: 2023-02-24 06:58:31

I am thrilled to have spoken at the recently organized Tech Fest organized by the Tech Savvy Law Club, Ekiti State University, on February 18th, 2023. As a DevOps Engineer with a seasoned background in Software Engineering, I shared my insights on the topic of "Leveraging DevOps for Faster and Scalable deployments."

DevOps has become a buzzword in the world of technology and for good reason. It enables organizations to streamline their software development and deployment processes, resulting in faster delivery of quality products to market. In my presentation, I will delve into the nuances of DevOps and provide insights into how businesses can leverage key tools for faster and more scalable deployments.

Here is a link to my presentation:
https://www.slideshare.net/PaschalOruche1/leveraging-devops-for-faster-and-scalable-deployments-keynotepdf

<iframe src="https://www.slideshare.net/slideshow/embed_code/key/oSTrv599Ep8ex3?hostedIn=slideshare&page=upload" width="476" height="400" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

The core of my presentation focused on using DevOps methodologies to improve the speed and scalability of software deployments. DevOps is a set of practices that combines software development and operations to improve the speed, quality, and reliability of software delivery. 

I believe that by leveraging DevOps, organizations can achieve faster and more efficient software deployments, resulting in faster time to market, improved collaboration between development and operations teams, increased efficiency, reduced risk of failure, and better customer satisfaction.
openGauss High Concurrency of Thread Pools
Tags: opengauss
Published: 2023-02-24 06:57:18

Availability
This feature is available since openGauss 1.0.0.

Introduction
The thread pooling technology is used to support stable running of databases at high concurrency.

Benefits
The overall system throughput is stable in case of a large number of concurrent requests.

Description
The overall design idea of the thread pool technology is to pool thread resources and reuse them among different connections. After the system is started, a fixed number of working threads are started based on the current number of cores or user configuration. A working thread serves one or more connection sessions. In this way, the session and thread are decoupled. The number of worker threads is fixed. Therefore, frequent thread switchover does not occur in case of high concurrency. The database layer schedules and manages sessions.

Enhancements
This feature is available since openGauss 1.0.0.

In openGauss 1.1.0, thread pools can be dynamically scaled in or out.

Constraints
None

Dependencies
None
The Developer's Guide to Updating npm Packages
Tags: npm, javascript, productivity, tutorial
Published: 2023-02-24 06:46:22


## TLDR: How to upgrade npm packages?

> The simplest way is to install `npm-check-updates`, run `npx ncu`, followed by `npx ncu -u` to update the package.json followed by `npm install` to update packages in package.lock and node_modules.

## Vanilla npm approach

npm comes with the tools to upgrade your packages out of the box. When running `npm outdated` you can get a list of packages that have available updates:


![npm outdated result](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0sd2man5hojr0apkyi06.png)


We can update individual packages by running `npm update {package-name}`. Let's try it for the last package on the list:

```bash
npm update sass
```

Now if we run `npm outdated` again we can (as seen in the image below) that the package was indeed updated. One thing to note is that while `package.lock` was updated `package.json` remains untouched.


![npm outdated after upgrade](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qzbw3arbapm5fef8kxh2.png)

Now we could do the same for all the packages and if you have a production-critical application, you probably want to pay close attention to the packages that you upgrade and the implications that an upgrade could have.

## Upgrades using npm-check-updates

Another option, that I find slightly more convenient, especially for more low-risk projects is using the `npm-check-updates` package. To install it simply run:

```
npm install -g npm-check-updates
```

After it's installed we can check for updates by running:

```
npx ncu
```

Similar to `npm outdated` this gives us a list of all available updates:


![npm-check-updates list of updates](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/psvvc7nna9m9v6ggz5uc.png)

In order to update one single package we can run:

```bash
npx ncu -uf sass
```

followed by:

```
npm install
```

Now if we run `npx ncu` again we see the `sass` package was updated:


![npm-check-updates list after sass update](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2peme2eas764vigqq2fh.png)

What is nice about the npm-check-updates package is that we can also update all of the packages if we choose so by running:

```
npx ncu -u
```

followed again by

```
npm install
```

Now if we run `npx ncu` again we get:


![npm-check-updates list after all updates](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x7t7wgapds6nglq99axl.png)

Now both `package.json` and `package.lock` were updated, so this makes it clearer what version of the packages we have without the need to look into the `package.lock` file.

## Conclusion

If you want to easily upgrade all your packages you can use the `npm-check-updates` npm package with the commands shown above, otherwise, you can also use npm's built-in commands `npm outdated` and `npm update`.


References:
 - https://www.npmjs.com/package/npm-check-updates
 - https://docs.npmjs.com/cli/v7/commands

> Cross-posted from my blog: [The joy of implementing strategy pattern in Symfony](https://alexandrunastase.com/posts/how-to-update-npm-packages)
openGauss Aliases
Tags: opengauss
Published: 2023-02-24 06:45:29

SQL can rename a table or a column. The name is the alias of the table or the column. Aliases are created to improve the readability of table names or column names. In SQL, AS is used to create an alias.

## Syntax
Column alias syntax


`SELECT 
{ * | [column [ AS ] output_name, ...] }
[ FROM from_item [, ...] ]
[ WHERE condition ];`
Table alias syntax


`SELECT column1, column2.... 
FROM table_name AS output_name 
WHERE [condition];`

## Parameter Description

output_name

You may use the AS output_name clause to give an alias for an output column. The alias is used for displaying the output column. The name, value, and type keywords can be used as column aliases.

## Examples
Use C to indicate the alias of the customer_t1 table to query data in the table.


`openGauss=# SELECT c.c_first_name,c.amount FROM customer_t1 AS c;
 c_first_name | amount
--------------+--------
 Grace        |   1000
 Grace        |
              |
 Joes         |   2200
 James        |   5000
 Local        |   3000
 Lily         |   1000
 Lily         |   2000
(8 rows)`
A day in life of a Software engineer (Remote) - Bangla
Tags: remote, dev, bangla, flexibility
Published: 2023-02-24 06:06:28

তো সকাল ১০টা থেকে শুরু হয়ে যায় আমার রিমোট জব, আমার মিটিং থাকে ১০ টায় উঠি ৯.৫২ তে যা কিনা একটা বড় সুবিধা রিমোট জবের,মিটিং থাকে ১০-৩০মিনিট তারপরে একটা বিরতি দেই ২০-৩০ মিনিট নাস্তার জন্য ,এরপর শুরু আগামী দিনের PR গুলার স্ট্যাটাস দেখা, সব Merge হয়ে গেলে টেস্ট র্সাভরে টুকটাক টেস্টিং করা তারপর শুরু হয় আসল কাজ অথবা দ্যা বাঘ ভাল্লুক ঠিক করা সোজা যাই জিরা তে টিকিট সোজা দেখে একটা নেই ফরমালিটি সারি তারপর শুরু করি কোড করা, তবে বেশির ভাগ সময় মাইনসের কোড পড়া লাগে মাঝে মাঝে এমনও হয় যে খুব সিরিয়াস Bug কিন্ত অল্পতেই ঠিক করা যায় যদি কোডের Flow টা বোঝা যায় আবার একটা ছোট ফিচার এড করতে গিয়া অবস্থা টাইড হইয়া যায়, তো এর মাঝে দিনে অনেক গুলা মিটিং থাকে টিমের সাথে আবার গ্রুপ কোডিং ও করা লাগে। এর মাঝে দুপুরের খাবারের বিরতি তো থাকেই তো মজার ব্যাপার হইলো বিকালে সব সময় কাজ করি না মাঝে মাঝে ঘুরতে বেড়াই। ঘুরা শেষে রাতে আবার কাজ করি ২ ঘন্টার মতো তো হয়ে যায় আমার ডেইলি

এই আরকি করি সারাদিন..
Is big data only for businesses?
Tags: bigdata, 100daysofcode, ai, career
Published: 2023-02-24 06:02:15

## Is big data only for businesses?
Many believe big data is specific for businesses to learn more about their consumers, connect with them and study consumer patterns, but is that really the case?

## No, Big data has a broader spectrum!
Big data is not just for businesses. It is equally significant for developers. It allows the developer to work with datasets that traditional methods may not be able to handle.

## Big data in a developer's life
Big data plays a crucial role in a developer's life by providing the tools and technologies necessary to work with large and complex datasets and extract valuable insights from them.

## How does big data benefit developers?
With big data, developers can

1. Process and analyze large datasets in real-time
2. Create interactive dashboards and visualizations
3. Train large-scale machine learning models

All while leveraging cloud-based big data platforms to store, process, and analyze large datasets in the cloud.

## Learn more about big data

##

[follow for more Tech information](https://hypeteq.com/)
`
5 Projects to improve your Java skills
Tags: java, webdev, beginners, programming
Published: 2023-02-24 05:55:41


This is a list of projects that you can do to practice your Java skills. These projects are designed for beginners, so you can practice your skills and learn new things.

## 1. Airline Reservation System

This project is a simple airline reservation system. It allows you to book a flight, cancel a flight, and view all the flights. You can also view the available seats in a flight. This will help you be familiar with loops and arrays.

## 2. ATM Machine

This project is a simple ATM machine. It allows you to withdraw, deposit, and check your balance. It also allows you to change your PIN.

## 3. Online book store

This project is a simple online book store. It allows you to add books, remove books, and view all the books.

## 4. Student Management System

This project is a simple student management system. It allows you to add students, remove students, and view all the students. It also allows you to view the average grade of a student. This allows you to practice your skills in arrays, loops, and classes.
Jenkins Workspace Cleanup | How to clear workspace in Jenkins in 5 min
Tags: webdev, beginners, programming, tutorial
Published: 2023-02-24 05:07:02

In this video, we are going to learn How to clear workspace in jenkins, jenkins workspace cleanup is very easy option Available in the Jenkins build
Settings.

This is LIVE DEMO where we will be running our Selenium Maven Java(git) Project with Jenkins Email configurated.
We will add a functionality to clean jenkins workspace after 3 days.

🟣🟣 LINK To Slide
http://sdet.live/notes


🟣🟣 LINK To the Project
http://sdet.live/notes


🟣🟣 Link to Jenkins Send Email configuration
https://stackoverflow.com/questions/1...


#jenkinsworkspacecleanup #jenkins #jenkinstutorial #jenkinsworkspacecleanplugin

🟢 30 Days of Automation Testing
https://go.scrolltest.com/automation


🟢 30 Days of API Testing
https://apitesting.co/30days


🟢 30 Days of Rest Assured
https://go.scrolltest.com/30days-rest...


🟣🟣 Download Slides and Notes - http://sdet.live/notes

🟣🟣 My Resume Template - http://sdet.live/notes


✅ API Testing –
https://www.learnapitesting.com


✅ Cypress Tutorial with LIVE Projects –
http://cypresstutorial.com


🔗 Join the Facebook Group - http://scrolltest.com/fb

🔗 Learn API Testing(with Postman) - https://learnapitesting.com/

🔗 Rest API Testing with Python - http://masterapitesting.com/

🔗 E2E Frontend Testing with Cypress - http://cypresstutorial.com/

🔗 Join Our Automation Newsletter - http://scrolltest.com/tta

🔗 Master API Testing Bundle - https://apitesting.co/bundle

🔗 Rest Assured MasterClass- https://apitesting.co/enroll
How to detect a terraform drift and remediate it? A quick overview...
Tags: beginners, terraform, aws, cloud
Published: 2023-02-24 05:00:36

Drift is one of the most frequent and fundamental challenges of the infrastructure built with the terraform.

To understand drift better, let's walkthrough

[1] Desired State: It is the state of a resource that is configured in the resource block of your terraform (.tf) file.

[2] Current State: It is the actual configuration state of a resource that is in service. 

Drift is nothing but the deviation between the desired state and the current state !!

Why does a drift happen?
Though it is recommended to centralize terraform to provision the infra, it doesn't stop an individual with the provisioning access to modify/remove the resources spun by terraform.

Some of the best practices to limit the drift:
🔷 Provide least privilege access to the users with permission boundaries
🔷 Integrate Terraform with version control tools (GIT) and CI/CD pipelines

How to detect a drift?
🔶 terraform State: The state file tracks the resources defined in the desired state and those that exist in the infrastructure (current state)
 
🔶 terraform plan –refresh-only: The refresh command to reconcile the real-world drift outside of terraform

Note:
This is a refresh-only plan, so Terraform will not take any actions to undo the detected drift.

How to remediate the drift then?
🔶 Running 'terraform apply' would reset the current state to the desired state.

Look at the below diagram to understand the sample architecture to detect the drifts and remediate them 👇


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

Follow: https://www.linkedin.com/in/govardhana-miriyala-kannaiah/

for more content related to Professional Development/ Cloud / DevSecOps / Infrastructure as Code / CyberSecurity
AWS Cloud Quest: Backing Up Data Study Note
Tags: aws
Published: 2023-02-24 04:51:29

This is the DIY challenge of the Backing Up Data in AWS Cloud Quest.

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


### DIY Steps:
1. Configure an AWS Backup plan `diy-backup-plan`

Backup rules

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



Assign resources
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z4i06f6i5t3m4z4qoz38.png)
97 Things Every Programmer should know part 5
Tags: webdev, productivity, programming, opensource
Published: 2023-02-24 04:20:26

Beauty Is in Simplicity

by Jorn Olmheim

THERE IS ONE QUOTE, from Plato, that I think is particularly good for all software developers to know and keep close to their hearts:

⚡The beauty of style and harmony and grace and good rhythm depends on simplicity.

In one sentence, this sums up the values that we as software developers should aspire to. There are several things we strive for in our code:

• Readability

• Maintainability

• Speed of development

• The elusive quality of beauty

The bottom line is that beautiful code is simple. Each part is kept simple with simple responsibilities and simple relationships with the other parts of the system. This is the way we can keep our systems maintainable over time, with clean, simple, testable code, ensuring a high speed of development throughout the lifetime of the system.

Beauty is born of and found in simplicity.
Best Pharma PCD Company
Tags: pharmaceutical, science
Published: 2023-02-24 04:45:17

There are many pharma PCD companies out there, but which one is the best? That's a difficult question to answer, as there are many factors to consider. Some people might say that the best pharma PCD company is the one with the most experience or the one with the most innovative products. Others might say that the [**best pharma PCD company**](https://sepik.in/) is the one with the best customer service or the one that offers the most competitive prices. Here you can explore the services of https://sepik.in/ and get your desired PCD Franchise
Casual meet and greet with Drive LLC.
Tags: womenintech, diversityintech, techcommunity, career
Published: 2023-02-24 04:16:00

---
title: Casual meet and greet with Drive LLC.
published: true 
tags: #womenintech #diversityintech #techcommunity #careers
---
Hi everyone! I'm Founder of Drive LLC. where we help people find their Drive in tech. We are hosting a casual virtual meet and greet tomorrow Friday 2/24 at 12 pm (EST). If you are looking to find a tech opportunity that is aligned with your skill sets, highly recommend attending and building a network and learning how to do so via Drive LLC. Link to sign up: https://lu.ma/qku9ua97

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n7h4cshwtd01fkqvd2bc.png)
---
1675. Leetcode Solution in Java
Tags: java
Published: 2023-02-24 03:59:23

=====================================================
#description:
You are given an array nums of n positive integers.

You can perform two types of operations on any element of the array any number of times:

If the element is even, divide it by 2.
For example, if the array is [1,2,3,4], then you can do this operation on the last element, and the array will be [1,2,3,2].
If the element is odd, multiply it by 2.
For example, if the array is [1,2,3,4], then you can do this operation on the first element, and the array will be [2,2,3,4].
The deviation of the array is the maximum difference between any two elements in the array.

Return the minimum deviation the array can have after performing some number of operations.

 

Example 1:

Input: nums = [1,2,3,4]
Output: 1
Explanation: You can transform the array to [1,2,3,2], then to [2,2,3,2], then the deviation will be 3 - 2 = 1.
Example 2:

Input: nums = [4,1,5,20,3]
Output: 3
Explanation: You can transform the array after two operations to [4,2,5,5,3], then the deviation will be 5 - 2 = 3.
Example 3:

Input: nums = [2,10,8]
Output: 3
 

Constraints:

n == nums.length
2 <= n <= 5 * 104
1 <= nums[i] <= 109
=====================================================
#solution:
```java
class Solution {
    public int minimumDeviation(int[] nums) {
        TreeSet<Integer> set = new TreeSet<Integer>();
        for (int num : nums) {
            if (num % 2 == 1)
                set.add(num * 2);
            else
                set.add(num);
        }
        int minDeviation = set.last() - set.first();
        while (minDeviation > 0 && set.last() % 2 == 0) {
            int max = set.last();
            set.remove(max);
            set.add(max / 2);
            minDeviation = Math.min(minDeviation, set.last() - set.first());
        }
        return minDeviation;
    }
}
```
#leetcode
#challenge
Here is the link for the problem:
https://leetcode.com/problems/minimize-deviation-in-array/
Overview of Blazor ListView Component
Tags: blazor, webdev, dotnet, csharp
Published: 2023-02-24 03:32:32

Learn how easy it is to select a single item or multiple items from the Blazor ListView component of Syncfusion. The Blazor ListView Component is a list-like interface that allows you to select an item or multiple items. It represents data in an interactive hierarchical structure across different layouts or views. It can load a huge amount of data on demand while being scrolled. Data can be elegantly visualized with cards, images, icons, avatars, and badge representation for better understanding. 

In this video, you will see an overview of the Blazor ListView component, which is available on other major web platforms: JavaScript, Angular, React, Vue, ASP.NET MVC, and ASP.NET Core.

_Product overview_: https://www.syncfusion.com/blazor-components/blazor-listview

_Documentation_: https://blazor.syncfusion.com/documentation/listview/getting-started

{% youtubezupus5JqV18 %}
Angular + RXJS Behavior Subject
Tags: angular, tutorial, rxjs, typescript
Published: 2023-02-24 03:22:59

Hey guys,

Today I want to walk you through how I use RXJS's **Behavior Subject**. 

## First of all, what is it and what can you do with it?

1. It's an observable that you can use to store data and then emit that data everywhere that has subscribed to it.
2. The data can be updated from any component, which then in turns updates all the subscribers.
3. It has to have a starting value.
4. You can subscribe to it at any time.
5. You can unsubscribe from it at any time.


## To figure this out, let's make a simple project that will allow us to share the name of a cat and subscribe to it. 

First, create a service in your terminal.
`ng g s cat-name`

In **cat-name.service.ts**
```javascript

/* This is our original source. If the value hasn't been otherwise
changed, this is the value you will get when you subscribe. */
nameSource = new BehaviorSubject<any>('Fluffy')

/* This takes our nameSource and turns it into an observable that
can be subscribed to. */
nameCurrent = this.nameSource.asObservable();

/* This is the function we will call that will allow us to update
the Cat's name. */
changeName$(name$) {
  this.nameSource.next(name$)
}

```

_Note** The $ after a variable just denotes that it is an observable. It doesn't effect the function of the variable at all._


Now, in our cat.ts file (or any TS file you are going to be using the Behavior Subject's value in, or updating the value in...)
```javascript

//Variable to store the Behavior Subject observable in...
catName;

constructor(private nameService: CatNameService) {}

ngOnInit() {
  this.nameService.nameCurrent.subscribe(name$ => {
      this.catName = name$,
      console.log(this.catName)
      //The logged name will be 'Fluffy'
    }
  )
}


//If I want to change the cat's name...
changeCatName() {
  this.nameService.changeName$('Stormy');
  console.log(this.catName)
  //The logged name will be 'Stormy'
}
```
After you call the 'changeName' function, since you are already subscribed, if you console.log 'this.catName', it will log as 'Stormy' instead of 'Fluffy'. Note that we did not implicitly change the catName variable. The changeName$ function emitted that value, and because we were already subscribed in our ngOnInit, we reassigned the variable in our subscription. Pretty cool, right?

Just remember, EVERYWHERE you are subscribed to 'nameCurrent' will update. EVERYWHERE. 

Make sure to unsubscribe in places you don't want this to happen.
`this.nameService.nameCurrent.unsubscribe()`

Like always, there's more that you can do with Behavior Subject, so make sure to check out their documentation to get the full picture. I wanted to make this one short and sweet, so if you have any questions ask down below!

Thanks for reading,
Julie