teleren/devto huggingface dataset:
WHY AWS SYSOPS
Tags: aws, systems, operations
Published: 2021-03-31 06:47:36

Why get guaranteed as an AWS SysOps Administrator? 

In case you're hoping to propel your career in IT, there are not many preferable ways over an AWS certification. Regarding ubiquity, AWS Certified SysOps Administrator – Associate is just matched by the Architect Associate qualification. In Global Knowledge's IT Skills and Salary Report, Architect Associate was discovered to be the second most lucrative certificate among all accreditations (counting non-AWS affirmations), paying a normal compensation north of $125,000 – not very pitiful for somebody hoping to move upward and ahead. 

Dissimilar to different confirmations that emphasize basically on one innovation (for example Hadoop, MySQL, and so forth), AWS accreditations may several dozen AWS administrations. In case you're taking an AWS confirmation test, you're relied upon to know somewhat about a ton. The "handyman" with information about capacity, systems administration, and preparation is set up for progress. 

Being ready for the point matter isn't sufficient for test-takers—they likewise need a reasonable arrangement of how to step through the examination. What number of inquiries are there? How long would you say you are given? It is safe to say that you are permitted to see addresses more than once? 

This confirmation prep guide will give applicants all they require to increase both the specialized and strategic information expected to breeze through the assessment and get affirmed in SysOps Administrator. If you feel that this is the direction you want to take your career forward, then there is no better way to start than taking up this [AWS SysOps certification] (https://intellipaat.com/aws-sysops-certification-training/) which is best in the industry.

**What is the AWS Certified SysOps Administrator's affirmation?** 

Accomplishing the AWS Certified SysOps Administrator – Associate certificate approves your specialized ability in arrangement, the executives, and procedures on the AWS stage. The ultimate objective is to affirm that you comprehend the ideas of: 

Sending, overseeing, and working adaptable, exceptionally accessible, and shortcoming open-minded frameworks on AWS. 

Relocating a current on-premises application to AWS. 

Executing and controlling the progression of information to and from AWS. 

Choosing the fitting AWS administration dependent on figures, information, or security necessities. 

Recognizing fitting utilization of AWS operational accepted procedures. 

Assessing AWS use costs and distinguishing operational expense control components. 

Who should take the AWS SysOps Administrator test? 

By and large, framework executives, task administrators and people answerable for supporting procedures on AWS will need to take this test to show their mastery. In any case, this shouldn't imply that you must be in that job. You could be a designer or engineer hoping to differentiate your range of abilities by adding another certificate to your toolbox. In the event that that is the situation, this accreditation prep guide will help diagram how to accomplish it.
.innerText vs. .textContent in Cypress
Tags: cypress, mochajs, chai, jquery
Published: 2021-03-30 19:56:36

When we use the `have.text` assertion, we expect the validation to be full-text, by `.innerText`.

```
cy
  .get('div')
  .should('have.text', 'foo');
```

But Cypress `have.text` returns `.textContent`.
This behaviour can cause unexpected results.
For example, your HTML code may have the following code:

```
<div>foo<span style="display: none;">bar</span></div>
```

The browser will only show `foo`.
Also, `document.querySelector('div').innerText` will only show `foo`.

```
> $0
< <h1>​"foo"<span style=​"display:​ none;​">​bar​</span>​</h1>​
> $0.innerText
< "foo"
> $0.textContent
< "foobar"
```

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ljgjbu5qhpqas9kvzmm.png)

`Cypress` use `MochaJS` => `Chai` => `Chai-jQuery` => `jQuery`.

[github.com/jquery/jquery/src/core.js#L276](https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/core.js#L276)

```
// Retrieve the text value of an array of DOM nodes
	text: function( elem ) {
		var node,
			ret = "",
			i = 0,
			nodeType = elem.nodeType;

		if ( !nodeType ) {

			// If no nodeType, this is expected to be an array
			while ( ( node = elem[ i++ ] ) ) {

				// Do not traverse comment nodes
				ret += jQuery.text( node );
			}
		} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
			return elem.textContent;
		} else if ( nodeType === 3 || nodeType === 4 ) {
			return elem.nodeValue;
		}

		// Do not include comment or processing instruction nodes

		return ret;
	},
```
Highlight Dulicate and Unique Values in Excel using Java
Tags: java, highlight, excel, api
Published: 2021-03-31 06:22:47

When dealing with Excel files in daily work, we may need to highlight some specific values to draw our attention for further processing. This article will demonstrates how to highlight the duplicate and unique values in a selected range through conditional formatting using Free Spire.XLS for Java.

**Import the jar dependency**
**Method 1:** Download the [Free Spire.XLS for Java](https://www.e-iceblue.com/Download/xls-for-java-free.html) and unzip it, then add the Spire.Xls.jar file to your project as dependency.

**Method 2:** Directly add the jar dependency to maven project by adding the following configurations to the pom.xml.
```xml
<repositories>
        <repository>
            <id>com.e-iceblue</id>
            <name>e-iceblue</name>
            <url>http://repo.e-iceblue.com/nexus/content/groups/public/</url>
        </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>e-iceblue</groupId>
        <artifactId>spire.xls.free</artifactId>
        <version>3.9.1</version>
    </dependency>
</dependencies>
```

**Relevant code snippet**
```java
import com.spire.xls.*;
import java.awt.*;

public class HighlightDuplicates {
    public static void main(String[] args) {

        //Create a Workbook instance
        Workbook workbook = new Workbook();

        //Load a sample Excel file
        workbook.loadFromFile("order.xlsx");

        //Get the first worksheet
        Worksheet sheet = workbook.getWorksheets().get(0);

        //Use conditional formatting to highlight duplicate values in the range "A2:A10" with red
        ConditionalFormatWrapper format1 = sheet.getCellRange("A2:A10").getConditionalFormats().addCondition();
        format1.setFormatType(ConditionalFormatType.DuplicateValues);
        format1.setBackColor(Color.red);

        //Use conditional formatting to highlight unique values in the range "A2:A10" with yellow
        ConditionalFormatWrapper format2 = sheet.getCellRange("A2:A10").getConditionalFormats().addCondition();
        format2.setFormatType(ConditionalFormatType.UniqueValues);
        format2.setBackColor(Color.yellow);

        //Save the document
        workbook.saveToFile("HighlightDuplicates.xlsx", ExcelVersion.Version2016);
    }
}
```

**Output**

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/piui03eruw3hlp8sfxx1.jpg)
How to Share Functions Between Facets of a Diamond
Tags: diamonds, ethereum, smartcontracts
Published: 2021-03-31 06:06:01

There are a number of ways to share or reuse functions between facets of an Ethereum diamond. **The best way I have found is to write internal functions in Solidity libraries and call those functions in facets.**

It is a common misunderstanding to think that all Solidity libraries are deployed. Only Solidity libraries with external functions must be deployed. Solidity libraries with only internal functions are not deployed -- they are added to the bytecode of contracts/facets that use them.

Also, only the bytecode from the internal functions that are actually used from a Solidity library are added to the bytecode of a facet. So it is possible to have large Solidity libraries that are utilized across facets without adding too much to the bytecode of facets that use them.

It is possible to use [diamond storage](https://dev.to/mudgen/how-diamond-storage-works-90e) and/or [AppStorage](https://dev.to/mudgen/appstorage-pattern-for-state-variables-in-solidity-3lki) in Solidity libraries which makes libraries even more useful and powerful. 

Checkout [Aavegotchi's libraries](https://github.com/aavegotchi/aavegotchi-contracts/tree/master/contracts/Aavegotchi/libraries) which are used across facets.

In addition to using internal functions in Solidity libraries [EIP-2535 Diamonds](https://eips.ethereum.org/EIPS/eip-2535) describes a number of other ways functions can be shared or reused between facets:

1. Write internal functions in Solidity libraries and call those functions in facets. These functions can access diamond storage or AppStorage directly.
1. Copy internal function code in one facet to the other facet.
1. Put common internal functions in a contract that is inherited by multiple facets.
1. A type safe way to call an external function defined in another facet is to do this: `MyOtherFacet(address(this)).myFunction(arg1, arg2)`
1. A more gas-efficient way to call an external function defined in another facet is to use delegatecall. Here is an example of doing that: ```Solidity
DiamondStorage storage ds = diamondStorage();
bytes4 functionSelector = bytes4(keccak256("myFunction(uint256)"));
// get facet address of function
address facet = ds.selectorToFacet[functionSelector];
bytes memory myFunctionCall = abi.encodeWithSelector(functionSelector, 4);
(bool success, uint result) = address(facet).delegatecall(myFunctionCall);
require(success, "myFunction failed");
```
5. Instead of calling an external function defined in another facet you can instead create an internal function version of the external function. Add the internal version of the function to the facet that needs to use it.
DEVOPS
Tags: devops, docker, awscloud
Published: 2021-03-31 05:44:41

ABOUT DEVOPS 

DevOps needs no introduction to people working in the Software industry.

It is a set of best practices where Developers (Dev) and IT Operations (Ops) work together in delivering Software faster, cheaper and with better quality. This article tries to explain how DevOps can be applied to the world of “Personal Finance”.

DevOps is needed as old software methodologies are no more relevant in a world where innovation needs to happen faster. Same with personal finance habits and practices – we need change as we move towards a lower PPF, EPF and Savings rate regime.

DevOps is frequently explained by CAMS Model (not your CAMSOnline :)). CAMS stands for

Culture
Automation
Measurement
Sharing.

we should one bye one 
step 1  About Devops
step 2. git hub and git bash
step 3. Jenkins
step 4  Docker
step 5 kubernetes
step 6  Aws cloud

If you want to be more go with advanced
1.Ansible
2.puppet
3.linux
4.openshift

Now Due to impact of lockdown Things are going to changes like the company before 2020 and after 2020 They need to run faster and things to be done faster and automatic So Here devops Plays A important Role

If you are A devops Engineer you have a great value in Market even you Will Be placed in Good Company

DevOps is no longer a competitive advantage. Today, DevOps adoption is so widespread that it has become an industry standard. The question is no longer: why should my company prioritize a DevOps transformation? Instead, it is: will we survive if we don’t?

Successful DevOps adoption eases the pressure off engineering departments and top management. Software projects reach the finishing line faster, simpler, and in the process every department benefits.

Understanding the big picture of DevOps makes choosing solutions and planning a way forward for your company easier. This guide will give you the understanding of DevOps you need to scale it across your organization and improve business outcomes. 


Thank you
Day 17 of 100 Days of Swift UI
Tags: swift, 100daysofcode
Published: 2021-03-31 05:38:16

I just completed day 16 of 100 days of SwiftUi. Today I worked on building the WeSplit app using concepts. WeSplit is a simple check-sharing app 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uqhnsik57rt8z3pinute.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p9roxe32e319wiwyqklv.png)

[Click here to see the code on Github](https://github.com/sanmiAde/check-sharing-app)

If you are interested in taking the challenge, you can find it at https://www.hackingwithswift.com/100/swiftui
See you tomorrow ;)
Simple hook to handle featue flags
Tags: react, reacthook, customhooks, redux
Published: 2021-03-31 05:18:52

Let's say you want to enable or disable some features based on users role or some permission that the user is granted in the frontend. You could do this with a simple conditional rendering in each component by checking for users permission

```jsx
<div>
 {role==='guest' && <GuestBanner/>}
</div>
```

But this is really messy if you have to do this in multiple components. We could instead create a custom hook that returns Boolean saying if we should enable or disable the feature

```js
import { useSelector } from 'react-redux';

const useFeature = (feature) => {

 // If you use something other than redux replace useSelector with equivalent
// getRole is selector to select user role from redux state
const role = useSelector(getRole)

if(feature === 'guestBanner') {
  if(role === 'guest') return true;

  return false;
}

return true;

}
```

And then in your component you use this as follows

```jsx
import useFeature from './use-feature';

const GuestBanner = () => {
  const enable = useFeature('guestBanner');

  if(!enable) return null;

   return <h1>Guest Banner</h1>

}
```
Edgar Codd and The Modern Data Stack
Tags: database, datascience, dataengineering, data
Published: 2021-03-31 04:29:51

The modern data stack has the obvious definition of “it depends”. Some of the things that determine the data stack include: 

- Price 
- Size (Terabytes, Petabytes, etc.)
- Company Relationships 
- Scale 

This is not an exhaustive list. But, it’s what I’ve seen determine the technologies used at different companies from startups to large corporations. It’s almost a given to say these technologies are based in the cloud. This adds to the scalability and programmatic nature of the code used for data. And as there are now three major cloud providers (AWS,GCP, and Azure) engineers adapt to the services provided by these companies. This shift allowed business to scale faster and do more with data. The common phrase is “Storage is cheap and Compute is expensive”. These cloud providers allowed for cheaper compute giving many companies the focus on solving problems with data, at any size. So, who’s going to maintain this influx of data? Some analysts or traditional DBAs skilled up and the programmatic nature called for other engineers to become data engineers. 

###Google Trends for Big Data
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s2u663qiek01a1wn8v73.png)

###Google Trends for Data Engineer
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yfafiwxjwgeyz1xrwhj3.png)


These are search terms. However, you can see the trend (no pun intended). As big data emerged, the need for someone to maintain the data grew. 

##What about Codd?? 

Edgar Codd is known for creating the relational database model and the process of normalization. His name is usually brought up in relation to normal forms (1NF,2NF,3NF,etc). These foundational elements aren’t commonly discussed when evaluating data. But, relational databases are everywhere and you can have your pick. They range from lightweight like sqlite to Oracle or Teradata. These principles exist in Redshift and any other relational database. Codd even coined the term OLAP (Online Analytical Processing). On Top of this foundation exists Business Intelligence, Data Visualization, Data Science, Artificial Intelligence, Machine Learning and more. 

The Point: Data Engineers should know SQL and Python, as tools to do the job. However, there’s domain specific foundational knowledge that exists in data. And good data modeling can accomplish more (save money, scale data science, democratize data, ensure data governance, etc.) than writing more code can sometimes. I’ve seen it happen. I’ve made it happen.
Working with friends and family.
Tags: friends, freelancer, work, relationship
Published: 2021-03-31 04:27:56

![Working with friends](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nawhit5hew0an9eods9r.png)
This is what I have to say about working with family and friends, or as a local freelancer. 

It's difficult for you to complete work and get paid. Because people work with ideas that they just got overnight, didn't think much about it, no deep planning, and they just get to you and ask you to start making their product. 

The best thing to do is to be as organized as possible. 
Get some set-down rules. 
Don't just take on projects. 

You need to break those projects into milestones and get paid for each milestone that you complete. If you break it this way, it will be easier for you to get your money while you work. 

So for each milestone that you complete, you take money for it. And if money is not paid for that, then you don't complete the work or continue the project.

Right, This is an easy way that you can take on or apply in your life as a freelancer or in your journey with working with friends and family, and at the end of the day, there is no stress, you don't affect your relationship and you still get the job done. 

Thank you for going through this, it's just something really small, but it will improve the way that you work.
Writing from the hospital and bored, suggest me something to do
Tags: productivity, webdev
Published: 2021-03-31 04:22:25

It's been 4 days since I had touched my computer and honestly,  I have never been this bored in my entire life. This is not what I meant when I said I needed a break.

I got hospitalised recently and haven't left the room in 3 days. Hospitals suck, the food sucks, it's depressing and gets quite spooky at nights. 

People call me a workaholic and I might be. I am not sure what I am even supposed to do sitting idle for this long.

My friends suggested me to chill and watch Netflix, I tried but it gets boring at some point. I am sure I am going to reach the end of my Twitter feed sometime today 😅.

So, #devcommunity please suggest something you'd do to utilise this time. I like writing, but I cannot write a lot due to the drip.
Integrate Slack to Microsoft Teams

Published: 2021-03-31 03:40:28

Some of the interesting Microsoft Outlook- Slack integrations using Quickwork are:

Create new status updates in Slack with Microsoft Outlook calendar events
This integration will automatically set your Slack status at a specified time before an event in your Microsoft Outlook calendar starts.
 
Send Slack messages from new Microsoft Outlook emails
This sends every new email you receive on Microsoft Outlook to a channel you choose on Slack. 
You can start integrating the apps here- https://bit.ly/3d7xB6T
#Day10 - Walrus Operator in Python
Tags: 100daysofcode, codenewbie, python, programming
Published: 2021-03-31 03:39:15

In today's article, we will talk about the Walrus Operator := in Python. The walrus operator is an assignment operator which was introduced in Python 3.8. But it is not just an assignment operator, it also returns the value after the assignment.

This is the general syntax of the walrus operator

```python
(var := expression/ function)
```
Although the parenthesis is not necessary, it is a good practice

So what does the Walrus operator do? 
- The value of the expression is assigned to the variable var
- After assignment, the value is also returned.

Before Python 3.8, if you wanted to assign the value returned by an expression/function to a variable and print the value, below is how you would do it
```python
var = expression/function
print(var)
```

But using the walrus operator, this can be done in a single line

```python
print(var := expression/function)
```

Let's compare some code snippets with and without the walrus operator

### Print statements
#### Python 3.7
```python
def func(x):
    return x+1

var = 0
var = func(var)
print(var)
```
#### Python 3.8
```python
def func(x):
    return x+1

var = 0
print( var := func(var) )
```

The value returned by the function **func** is first assigned to the variable **var**.  After the assignment, the value is returned and the **print** statement displays it on the command line.

### If statements
#### Python 3.7
```python
lst = [1,2,3]
n = len(lst)
if n < 10:
    print("It is a small list")
print(n)

```
#### Python 3.8
```python
lst = [1,2,3]
if (n:= len(lst)) < 10:
    print("It is a small list")
print(n)
```

### while loop
#### Python 3.7
```python
n = 0
while(n < 10):
    print(n)
    n +=1
```
#### Python 3.8
```python
n = 0
while(n := n +1) < 10:
    print(n)
```
### Lists
#### Python 3.7
```python
def func(x):
    return x + 1

y = func(2)
lst = [y , y*y , y*y*y]
print(lst)
```
#### Python 3.8
```python
def func(x):
    return x + 1

lst = [y:=func(2),y*y,y*y*y]
print(lst)
```
### List Comprehension
#### Python 3.7
```python
def computationally_expensive_function(x):
    '''
    Imagine this is some computatationally expensive function
    '''
    return 2

nums = [1,2,3]

lst = [computationally_expensive_function(num) for num in nums if computationally_expensive_function(num) > 0]
print(lst)
```
#### Python 3.8
```python
def computationally_expensive_function(x):
    '''
    Imagine this is some computatationally expensive function
    '''
    return 2

nums = [1,2,3]

lst = [var for num in nums if (var := computationally_expensive_function(num))> 0]
print(lst)
```
Instead of calling the computation expensive function twice, we only call it once when using the walrus operator.
Testing Linux Lite
Published: 2021-03-31 03:35:56


Well, I have decided to install a Linux distro on my laptop that has 1 sdd of 128gb and
recently add a 500gb hdd on this occasion and for the first time I will be testing Liux lite as your requirements that
they fit perfectly to the needs of my laptop.
The characteristics of this distro are the following:

MINIMUM RECOMMENDED SPECIFICATIONS:

CPU: 1Ghz processor
RAM: 768mb ram
STORAGE: 8gb
RESOLUTION: VGA screen 1024x768 resolution
MEDIA: DVD drive or USB port for the ISO image

PREFERRED SPECIFICATIONS:

CPU: 1.5GHz processor
RAM: 1024mb ram
STORAGE: 20gb
RESOLUTION: VGA, DVI or HDMI screen 1366x768
MEDIA: DVD drive or USB port for the ISO image

COMMON SOFTWARE
Web Browser - Firefox 82.0

Email Client - Thunderbird 68.10.0

Office Suite - LibreOffice 6.4.6.2

Media Player - VLC 3.0.9.2

Image Editor - Gimp 2.10.18

System Backup and Restore - Timeshift 20.03

File Manager - Thunar 1.8.14

Base: 20.04.1

Kernel: 5.4.0-52 (custom kernels are also available via our Repository for versions 3.13 - 5.9)

Series: 5.x


DESKTOP UI
Window Theme: Adapta

Icon Theme: Papirus

Font: Roboto Regular

I study Programming so I will be using some IDEs and text editors to test the system
I'll be writing a bit about my experience with this OS until then ...

Greetings dev's
Binance Spot Trading Bot - Nodejs - JavaScript
Tags: trading, javascript, node, discuss
Published: 2021-03-31 03:35:05

---
title: Binance Spot Trading Bot - Nodejs - JavaScript 
published: true
description: I made a binance spot trading script to take advantage of crypto fluctuations. Best parts working. 
tags: Trading, JavaScript, Nodejs, Discuss 
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/21fn3y55h2ggx96roqjz.jpg
---

Say hello to a Binance Spot Trading bot. Let me know what you think in the comments. 

[https://github.com/CkCreative/binance-spot-trading-bot](https://github.com/CkCreative/binance-spot-trading-bot)