teleren/devto huggingface dataset:
My Terminal Customization
Published: 2022-08-23 12:55:00

Here my terminal configuration for git

```shell
# Git Branch
parse_git_branch() {
   git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}

#export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "

# Folder Color
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\[\033[32m\]\$(parse_git_branch)\[\033[00m\]$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
alias ll='ls -la'

#For k8s
alias k='kubectl'
alias kc='k config view --minify | grep name'
alias kdp='kubectl describe pod'
alias c='clear'
alias kd='kubectl describe pod'
alias ke='kubectl explain'
alias kf='kubectl create -f'
alias kg='kubectl get pods --show-labels'
alias kr='kubectl replace -f'
alias ks='kubectl get namespaces'
alias l='ls -lrt'
alias kga='k get pod --all-namespaces'
alias kgaa='kubectl get all --show-labels'

alias lsmounts='findmnt -D -t nosquashfs,notmpfs,nodevtmpfs'
```
How Ruby Macros Can Write Our Code For Us
Published: 2022-08-23 12:53:00

During my time at Flatiron Coding Bootcamp we've learned so much material in such short amount of time. More recently we've learned a language called Ruby. Using Ruby I've learned there's many things to make the coding process a lot faster and simpler. One way to do that is to use macros. A macro is like a method or set of instructions that writes your code for you. We use them a lot when using Active Record and they make the whole process a lot faster.

For example, I wrote a class instance getter and setter for a variable called name which took about six lines.

```
class Person
 def initialize(name)
    @name=name
 end

 def name
    @name
 end

 def name=(new_name)
    @name=new_name
 end
end
```
But you could use a macro to write this much faster. To write our getter and setter methods we can use `attr_writer` and `att_reader` and assign them the symbol of name.

```
class Person
...
 attr_reader :name
 attr_writer :name
end
```
That was much simpler! `attr_writer` created our setter method for us and `att_reader` created a getter method. But what's even better these two lines can actually be simplified to one line.
```
attr_accessor :name
```
Macros are used so that we don't have to repeat writing the same actions over and over making work much simpler. It allows us to automate our tasks so that we don't have to spend more time remembering or writing some line of code. I'd highly recommend to research and use macros and shortcuts available to you to improve your productivity.
Array Method in JS - shift and unshift
Tags: javascript, webdev, beginners, tutorial
Published: 2022-08-23 12:48:02

Hello Today i will be discussing about inbuilt unshift() and shift() method of Arrays.

Let's get started...

Unshift - It is used to insert an element at the start of the array.
shift - It is used to remove the first element from the array.


## Code Example - 
```js
const array = [1,2,3,4,5];
const array2 = ["This","is","array2"]

array.unshift(6) //single element insertion
array.unshift(7,8,9) // multiple element insertion
array.unshift("BOOTSTRAP5") // string element insertion
array.unshift("TAILWINDCSS","REACT JS") //multiple string element insertion
array.unshift([10,11]) // number array insertion
array.unshift(["NODE JS","MONGO DB"]) // string array insertion
array.unshift([[12,13],[14,15]]) // 2-d array insertion
array.unshift({name:"shubham",age:21}) // Object insertion
array.unshift(array2) // array stored in a variable then inserted 
array.unshift(undefined,null) // undefined and null insertion
array.unshift(true,false) // Boolean insertion
array.unshift(array) // [Circular *1]


console.log(array)


array.shift() // pop out the first element
array.shift() // pop out the first element
console.log("\n\nAfter shifting 2 times")
console.log(array)
```

## Output - 
```
<ref *1> [
  [Circular *1],
  true,
  false,
  undefined,
  null,
  [ 'This', 'is', 'array2' ],
  { name: 'shubham', age: 21 },
  [ [ 12, 13 ], [ 14, 15 ] ],
  [ 'NODE JS', 'MONGO DB' ],
  [ 10, 11 ],
  'TAILWINDCSS',
  'REACT JS',
  'BOOTSTRAP5',
  7,
  8,
  9,
  6,
  1,
  2,
  3,
  4,
  5
]


After shifting 2 times
[
  false,
  undefined,
  null,
  [ 'This', 'is', 'array2' ],
  { name: 'shubham', age: 21 },
  [ [ 12, 13 ], [ 14, 15 ] ],
  [ 'NODE JS', 'MONGO DB' ],
  [ 10, 11 ],
  'TAILWINDCSS',
  'REACT JS',
  'BOOTSTRAP5',
  7,
  8,
  9,
  6,
  1,
  2,
  3,
  4,
  5
]
```

* As you can see we can insert many tyes of elements at the first index in the array.
* At the last insert, we have pushed the array itself and it returned "[Circular *1] , Circular reference is a references where an object references itself directly or indirectly through an object.
* After using shift() two times, the first two elements are removed.

THANK YOU FOR CHECKING THIS POST

You can contact me on -
Instagram - https://www.instagram.com/supremacism__shubh/
LinkedIn - https://www.linkedin.com/in/shubham-tiwari-b7544b193/
Email - shubhmtiwri00@gmail.com

^^You can help me by some donation at the link below Thank you👇👇 ^^
☕ --> https://www.buymeacoffee.com/waaduheck <--

Also check these posts as well
https://dev.to/shubhamtiwari909/js-push-and-pop-with-arrays-33a2/edit

https://dev.to/shubhamtiwari909/tostring-in-js-27b

https://dev.to/shubhamtiwari909/join-in-javascript-4050

https://dev.to/shubhamtiwari909/going-deep-in-array-sort-js-2n90
Deflector and shield
Tags: api, gateway, protection, security
Published: 2022-11-15 13:32:54

---
title: Deflector and shield
published: true
date: 2022-08-23 12:44:12 UTC
tags: api, gateway, protection, security
canonical_url: https://tech.forums.softwareag.com/t/deflector-and-shield/260513
---

[![USS_Enterprise-D_navigational_deflector](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/d/8/d8e8ac19651d39b652d8410fe5443d46b44d1bae_2_260x200.jpeg)](https://aws1.discourse-cdn.com/techcommunity/original/3X/d/8/d8e8ac19651d39b652d8410fe5443d46b44d1bae.jpeg "USS\_Enterprise-D\_navigational\_deflector")

Do you know the difference between the deflector and the shield? If so, you can proudly call yourself a Star Trek® fan. Without getting into too much detail, they both serve one purpose, the integrity of the space ship and security of the crew on it. The navigational deflector makes sure the ship travels safely though space, even at warp speed, protecting it from the space debris while the shield established a multi-layer protection field in case of an attack.

Similarly, API Gateways use a threat protection layer to make sure the mediation layer doesn’t have to deal with the network debris also known as unwanted traffic. This layer protects the rest of the gateway against DoS attacks, malicious content, viruses etc. Essentially, nothing suspicious shall pass.

When an API call successfully gets through the protection layer, it’s still subject to API access control and protection policies. The gateway’s mediation layer makes sure the client is authenticated (we know them) and authorized (we allowed them) to use the API. Many other things happen to make sure they use the API in a way it was designed for (validation policies) etc.

Just like the deflector and the shield, these two layers together constitute a holistic API Security solution in API Management. They can additionally be augmented by specialized API security solutions or application security solutions like WAFs.

Shields up! Red alert! ![:slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12 ":slight\_smile:")

[Read full topic](https://tech.forums.softwareag.com/t/deflector-and-shield/260513)
INTRODUCTION TO DATA SCIENCE.
Published: 2022-08-23 12:30:57

Data science is a mainstream word that has thrown around the world a lot but its actual definition is vague. Basically data science is transforming data into information and then to knowledge in layman's language. Data  itself in its raw form is not useful and that's why data scientists are needed to remove the vagueness of data that's in numerical form. Data is transformed to information through analysis of data to get insights, identifying trends, patterns and correlations as well as contextualizing, applying and understanding the data. 
Data scientists have the role in companies to get data, process the data and convert it from its raw format to a cleaner format. They are also tasked with creating visualizations, drawing conclusions for analysis and suggest applications for implementations.
Data science basically involves 3 essential components;

1. Statistics 
    Understand different data types that you can encounter because data can come in different ways depending on the field you are in. Also understanding key statistical terms such as means to help give an overview of how data is fluctuating. Also be able to split up, group and segment data points.

2. Data Visualization
   Data visualization is a key skill because it helps to show and compare different numbers of variables through graphs that allow for comparison of multiple things at the same time.

3. Programming
   Programming is really essential when it comes to data science as it makes it easy to automate, customize, explore, prototype and test the data. Programming helps you by removing roadblocks of depending on other people. Essential packages required in python are pandas for data analysis and other libraries.

Basically data science is about using data to create as much impact for company that can be in the form of insights, in the form of data products or in the form of product recommendations for a company. This is done by tools like making complicated models or data visualizations or writing code and this helps to solve real company problems using data.
White-Label NFT Marketplace: A Promising Revenue Stream
Tags: blockchain
Published: 2022-08-23 12:18:12

The term NFTs is all over the web and in people's minds too. The fad for NFTs is eternal. Many businesses are planning to enter the crypto world as it is a lucrative ecosystem. The NFT’s market worth is predicted to rise to US$ 231 Billion by 2030. You can also become a cryptopreneur by launching an NFT marketplace with a White-label NFT Marketplace Platform Development Company. Let us see about the white-label solutions offered and how you can make money out of an NFT marketplace in this blog.

## White-label solutions we offer:

**You can choose from a wide range of options available in the market for your NFT marketplace**

[OpenSea clone](https://www.turnkeytown.com/opensea-clone)
Rarible clone
CryptoPunks clone
Foundation clone
SuperRare clone
Bored Ape Yacht Club clone, etc.

## How can your NFT marketplace be monetized?

Through the below ways, you can monetize your NFT marketplace and make a fortune out of it. These are some common fees charged on almost all the NFT marketplaces.
Listing fee
Transaction fee
Initial Setup fee
Private sale fee
Minting fee, etc.

**Conclusion**: 

There are many companies in the market that will help you in launching your dream NFT marketplace. With the [White Label NFT marketplace development](https://www.turnkeytown.com/white-label-nft-marketplace) solutions, you can launch an NFT marketplace in no time and at an affordable cost.
How to Position Yourself for a New Career in Programming
Tags: career, learning, codenewbie, programming
Published: 2022-08-23 12:17:33


Some tips to make the transition to a new career smooth, 
  
## Be Persistent
Make it routine and include it in your day-to-day schedule. Persistence is the key to being successful in every domain. Try to set aside some time for coding.

## Start Building Apps
Creating is another way to become a successful developer. The projects don't need to be always vast and complex. You can start with simple small projects. Try to develop a small project on every small skill don't wait to learn enough.

## Pair Program
You can try to find someone who is at your skill level or even with a higher skill level than you. Frequently plan some Pair programming sessions with them. As you will learn a lot with this activity. Maybe you can get some information about some of the best practices for doing a certain thing.

## Start Coding Blog
Starting your own blog is another great way to learn more. Teaching something improves your skill. If you set a project for this it will be an add-on to your project list which you can include in your CV/Resume

## Keep Positive Attitude
There will be certain conditions when you don't understand certain topics or you may get tired of things. 
Remember to be consistent in this scenario. 
There will be so many ups and downs in the journey just keep your positive attitude and stay consistent.

## Never Stop Learning
There is always something new to learn in IT so never stop learning new technologies. It will increase your value. And, staying updated with the latest technology always helps.


Hope it will help you a lot in your career. You can suggest more in the comments.
Go pro! With these free Golang resources
Tags: go, tutorial, beginners, programming
Published: 2022-08-23 12:08:00

With these resources, you’d learn GO fast and with the right approach.

1). [Learn Go With Tests](https://quii.gitbook.io/learn-go-with-tests/) 

To learn GO is one thing, while to learn GO alongside test-driven development is another. This book introduces you to GO’s syntax and semantics, teaching the crux of TDD as you progress. The best resource for beginners!
 
2). [Effective GO](https://go.dev/doc/effective_go)
 
Now that you have completed the first resource, you need to know how to write GO like a professional syntactically and semantically. The official documentation on how to write GO effectively is most helpful.

3). [GO Patterns](https://github.com/tmrts/go-patterns)
 
Learning a new language such as English or Spanish by knowing how to read, write, speak and listen may be incomplete without knowing some idioms. Same with programming languages. To improve your GO idioms, this right here is the best resource.
 
4). [Mario Carron's Tutorials](https://www.youtube.com/c/MarioCarrion/videos)
 
Now that you are fluent with GO. You may want to see its application. GO is quite popular in distributed systems. So you may want to see its concurrency patterns, how to build microservices with it, and how to use GO as a DevOps tool. Mario Carron’s tutorials do justice to that. Mario also teaches you to shed some weight off your GO code and improve memory conservation. What I love most about this resource is that it focuses on the non-functional requirements detailing how GO is used to achieve concepts such as documentation, throttling, security, availability, circuit-breaking, etc.
 
Well, here you GO! GO is that language to learn with great simplicity. You could build quite a lot without heavy reliance on frameworks. GO allows you to code the right way.
 
###Learn Go today. Don’t be sorry🙂.
Responsive E-Book Website Using HTML CSS JavaScript
Tags: css, javascript, beginners, tutorial
Published: 2022-08-23 11:59:07

{% youtube tsUUOLsca6M %}

Responsive E-Book Website Using HTML CSS JavaScript

This video will show you how to build a responsive e-book website using html css javascript

[Github Repo](https://github.com/codewithsadee/bookish)

---

HI 👋
I'm Sadee (webdev)
In this channel I make videos about Complete Responsive website.
You can checkout my channel 👇

📺 My Channel : [codewithsadee](https://www.youtube.com/channel/UC1PZHWV6VvICTL1LgFUZq6g)
🔔 Subscribe : [subscribe now](https://www.youtube.com/channel/UC1PZHWV6VvICTL1LgFUZq6g?sub_confirmation=1)

---

🔗 Essential links
-----------------------------
[Download the starter file to practice](https://drive.google.com/file/d/10zK5ujMKHi3FciWAh0LV2ny0cjb5r8Hw/view?usp=sharing)

---

⏱️ Timestamps
-----------------------------
0:00 - Demo
5:07 - File structure
5:34 - Project initial
12:21 - Header
25:15 - Hero section
34:12 - Benefits section
43:26 - Chapters section
49:41 - Preview section
57:28 - Pricing section
1:04:25 - Author section
1:08:43 - Achievement section
1:14:04 - Contact section
1:24:03 - Footer
1:28:15 - Media queries

---

[![Become a patreon](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fnjl14kdm5qf08hu5lop.png)](https://www.patreon.com/bePatron?u=62535867)
How to Avoid These Common Errors in Your App Development
Tags: productivity, android, ios
Published: 2022-08-23 11:47:00

In today's world, with so many choices to make, it can be hard to know which ones are worth your time and resources. But when developing an app, you should never let technology hold you back. Using the right tools can help you get the job done quickly and efficiently no matter the project. Here are four tips for getting started with [android app development company](https://grewon.com/services/mobile-app-development/android-development/).


## Technology Can Be a Hindrance to Your Business.

One of the biggest problems with using technology in business is that it can often cause problems. For example, if you’re trying to track customer data on a computer, you might lose it or be unable to access it at all. This can be a considerable inconvenience and prevent you from tracking your business performance effectively.

Similarly, if you’re working on a website or app, you might not be able to see the changes that happen in the background. This could lead to errors or even crashes – which could negatively affect your business operation.

To avoid these types of issues, make sure to do your research and find out what technologies are used by your competition. Also, follow coding guidelines and safe programming practices (like proper security measures).


## How to Avoid Technology-Related Error?

If you experience a technology-related error while working on your Business, there are some simple steps that you can take to try and fix the issue as quickly as possible. One such technique is to use an online troubleshooting tool like Google Code or Microsoft Windows Ejection Investigator. These tools help you identify and fix common software issues within minutes without going through complex technical documentation。

## How to Remain Competitive in the Future?

In order for businesses of all sizes to stay competitive in the future, they must continue developing new technologies and strategies that will allow them to remain ahead of their competitors. This can be done by following coding guidelines and using safe programming practices (like using proper security measures. 

By learning how technology can impact your business and taking steps toward fixing any potential problems early on, you’ll keep yourself ahead of the curve and ensure your business remains successful over time.

We provide Mobile App, Web Development, [iphone App development company](https://grewon.com/services/mobile-app-development/ios-development/). We have been developing best-in-class iOS, Android, and cloud apps
The opengauss active and standby architecture is used with keeplive
Published: 2022-08-23 11:37:02

Is there any risk in using opengauss active and standby architecture with keeplive?

Explanation: The use of the opengauss active/standby architecture with keeplive is mainly to consider that the application connection string does not need to be modified when the application uses the domain name (the domain name of the keeplive virtual IP) to connect and switch.

Is there a better architecture than this one for opengauss usage scenarios?
How to create an action and an action creator in Redux? (Freecodecamp notes)
Tags: webdev, beginners, programming, redux
Published: 2022-08-23 11:35:00

**Notes in QnA format**

**1) What is one of the core tasks of Redux?**
Redux is a state management framework , so updating state is one of its core tasks and state updates are triggered by dispatching actions

**2) What is an action in Redux?**
An action is simply a JS object that contains information about an action event that has occurred. The Redux store receives these action objects, then updates its state accordingly. Sometimes a Redux action also carries some data. While data is optional, actions must carry a type property that specifies the 'type' of action that occurred.

**3) What's an example of Redux action? **
An action can be Logging in and data carried by that could be Login Username.

**4) What does Action creators do and how to create one?**
In Redux we need Action creators to accomplish an action , it is simply a JS function that returns an action. 

**5) Define a function named actionCreator() that returns the action object when called**

 {% gist https://gist.github.com/NaveenDK/e3696c7695c52849b33abcf7b64496ff.js %}

**Knowledge Check**

1) What is one of the core tasks of Redux?
2) What is an action in Redux?
3) What's an example of Redux action? 
4) What does Action creators do and how to create one?
5) Define a function named actionCreator() that returns the action object when called
This Week In React - 🎉 10.000 subscribers 🥂 - 2k€ MRR - Ask Me Anything
Tags: react, reactnative
Published: 2022-08-23 11:27:00

---
series: This Week In React
---

As some of you know, I run [This Week In React](https://thisweekinreact.com/dev-ama): a weekly newsletter of React and React-Native news.

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

I try to filter the noise and only keep what is relevant for experienced React developers.

Just crossed 10k subscribers and wanted to celebrate!

I build this newsletter in public and [post everything on Indie Hackers](https://www.indiehackers.com/post/this-week-in-react-10-000-subscribers-2k-mrr-ama-c88cf6136f):
- How everything started in 2019
- Monthly reporting: the time it takes, revenues, paid ads, growth stats, experiments...
- Public sponsoring and growth dashboard
...

I wonder if people are interested to know more about the "behind the scene" to building a profitable tech curation newsletter.

Let me know if you have any question to ask me: I have nothing to hide!
What is Confidentiality in Network Security
Tags: confidentiality, network, security, networksecurity
Published: 2022-08-23 11:25:59

Do you know what is confidentiality in network security ? Confidentiality in network security is keeping the contents of communication or data on storage secret. 


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

Confidentiality deals with preventing the unauthorized reading of information. AOB probably wouldn’t care much about the confidentiality of the information it deals with, except for the fact that its customers certainly do. For example, Bob doesn’t want Trudy to know how much he has in his savings account. Alice’s Bank would also face legal problems if it failed to protect the confidentiality of such information.

Note that confidentiality and integrity are not the same things. For example, even if Trudy cannot read the
data, she might be able to modify this unreadable data, which, if undetected, would destroy its integrity. In this case, Trudy might not know what changes she had made to the data (since she can’t read it), but she might not care—sometimes just causing trouble is good enough.




Read more at:
https://hecodesit.com/what-is-confidentiality-in-network-security/