teleren/devto huggingface dataset:
24 JavaScript Array Methods Explained (video series)
Tags: javascript, beginners, tutorial, webdev
Published: 2020-05-06 07:11:11

---
title: 24 JavaScript Array Methods Explained (video series)
published: true
description: Learn how to use 24 Array Methods in JavaScript in this video series
tags: javascript, beginner, tutorial, webdev
---

Arrays are amongst the most important data types one should know in JavaScript and it's usually a good idea to know how to work with them.

For that I created a video series describing the most important [24 Array Methods](https://www.youtube.com/playlist?list=PLgBH1CvjOA62PBFIDq55-S6Beivje30A2).

You can find below all these Array Methods explained with examples.

I hope you'll enjoy! 😃

P.S. While you are there, feel free to [subscribe](https://www.youtube.com/florinpop/?sub_confirmation=1) and help me reach 20k! 

Thank you! 🙏

{% youtube SXb5LN_opbA %}
{% youtube P4RAFdZDn3M %}
{% youtube mJGv12UHqXc %}
{% youtube IXp06KekEjM %}
{% youtube JfZv9QNSpi4 %}
{% youtube FFas8cMHVwg %}
{% youtube RsFBsBep-hA %}
{% youtube PHgeshcXtDc %}
{% youtube t6ErSbYzguw %}
{% youtube ZHsPVhkTUDg %}
{% youtube 1a2OCwBD-yI %}
{% youtube xnjYcyphOoA %}
{% youtube g1hlKlovok8 %}
{% youtube Pgdvj6InRKI %}
{% youtube 9hin-2yeCWY %}
{% youtube _zYb4WB1eDo %}
{% youtube VoY6AkDZjZ4 %}
{% youtube d9WGXz-DLT8 %}
{% youtube 0uDvZSlBOtA %}
{% youtube 8SkHWeDoTf0 %}
{% youtube fwpSme-VPp0 %}
{% youtube qS79OIceQ7k %}
{% youtube eQKo-_ftNbE %}
{% youtube d3TJbWvfSgw %}
Thanks for having me
Tags: welcome
Published: 2020-05-06 07:06:14

Hi all. 

So with 10 years as a Test engineer under my belt, I look at the sector and how much it's changing, and I don't really like what I see. So with that, I have started to try to move in the direction of changing career paths towards development. 
I am currently working through a number of Udemy courses, I do have JS experience but putting that to use in development is a little different to scripting for Automation. I'm getting there though. 
If anyone would like to see my progress so far I am always open to some constructive criticism on my work. the link to my site should be in my bio. 
So I hope to settle in here, learn a few things and try to help others where I can along the way. 
Thanks for having me.
Hunting for a Specialized Job Posting? Look in Your Local Trade Magazine! 
Tags: trademagazines, professionals, jobposting, newsmedia
Published: 2020-05-06 07:04:13



Hi, if you are a skilled professional who has been looking for the right kind of jobs, it’s time to set aside your local newspaper and start looking in your local trade magazine. 

Local trade Magazines often contain a section for related job postings that may not be advertised in other off or online publications. 

Many businesses that are looking for skilled professionals choose to advertise in classified sections of local trade magazines instead of online or local newspapers. 

Because of focusing on readers of local trade magazines, they will be connecting with local professionals who enjoy their trade.
 
After all, people who read trade magazines tend to be very passionate about their profession. 

it is important, however, to choose trade magazines from your area whenever possible, because the more local the magazine is, the better your chance will be to find that perfect job close to home. 

If your area doesn’t have its own trade magazine, or if you don’t mind relocating. it could also be worth your time to check out trade magazines from other locations. 

National trade magazines can also be of some help but will have a larger readership and because of this, a larger number of applications submitted to their job postings. 

So, if you are looking for a career in a specialized market, but haven’t been able to find your ideal job online or in the local newspaper, you should take a look in the back of a local trade magazine. 

By applying for a job that is advertised in a local trade magazine, you will show your potential employer that you are passionate about your chosen trade while limiting the competition that you would otherwise have to face when applying for a position that has been advertised in other more mainstream media.

Finally, let me know your thoughts on Zid News Blog @ https://zidnews.blogspot.com/, where I post the latest job notifications.

 Thank you for taking the time
CĂNG THẲNG TINH THẦN Ở NGƯỜI BỆNH TĂNG HUYẾT ÁP
Published: 2020-05-06 06:36:01

Căng thẳng tinh thần ảnh hưởng đến huyết áp thế nào?

Những căng thẳng của chúng ta để lại nhiều hậu quả xấu lên tim mạch, khiến cho huyết áp tăng dần. Khi chúng ta căng thẳng, cơ thể phản ứng lại bằng cách tiết ra hormone adrenaline và cortisol đi thẳng vào máu, những hormone này làm tim đập nhanh, co giãn thành động mạch để bơm máu về các cơ quan quan trọng. Và kết quả là huyết áp của người đang bị căng thẳng tăng lên đáng kể.

Những triệu chứng tăng huyết áp này chỉ là tạm thời trong thời gian bạn bị căng thẳng. Huyết áp của bạn sẽ quay về ngưỡng an toàn khi cảm giác an toàn được giải tỏa. Tuy nhiên nếu căng thẳng tinh thần xảy ra trong thời gian dài, và bạn không có cách kiểm soát chúng, thì đó là chính là nguy cơ dẫn đến các bệnh về tim mạch và huyết áp.

Căng thẳng tinh thần từ thay đổi thể chất

Những thay đổi về thể chất là dấu hiệu dẫn đến căng thẳng tinh thần, và tuy rằng căng thẳng tinh thần là bệnh về tâm lý, nhưng tác động của nó lên sức khỏe, cơ thể vẫn thấy rất rõ rệt. Bệnh tăng huyết áp của bạn sẽ khó kiểm soát hơn khi bạn phải đối mặt với những vấn đề sau:

Đau đầu dữ dội
Buồn nôn, tiêu chảy, táo bón
Đau mỏi toàn thân
Đau thắt ngực kèm tim đập nhanh
Mất ngủ kéo dài
Run rẩy, lo lắng, toát mồ hôi lạnh ở tay và chân
Khô miệng, mỗi khi nuốt lại cảm thấy đau.

Nhận biết căng thẳng tinh thần về mặt hành vi

Thay đổi thể chất theo chiều hướng tiêu cực cộng với tâm lý không tốt dẫn đến việc thay đổi hành vi và lối sống ở nhiều người. Thường những thay đổi này là tiêu cực và hoàn toàn đi ngược lại so với định hướng xây dựng một lối sống lành mạnh, kiểm soát và điều trị tốt bệnh tăng huyết áp.

Một số điểm sau đây để bạn nhận ra rằng mình đang thay đổi hành vi theo chiều hướng không tốt:

Cảm giác ăn không ngon miệng, thậm chí chán ăn, không muốn ăn gì cả
Cảm thấy trì trệ, có tâm lí nặng nề khi bắt đầu công việc gì đó
Hút thuốc, uống rượu hay thậm chí là sử dụng chất kích thích
Luôn bồn chồn lo lắng, đi tới đi lui không mục đích

https://bit.ly/2zjfoTl
https://bit.ly/2L5Kqks
Searching for a blog plugin
Tags: react
Published: 2020-05-06 06:27:09

Hi together!
I'm working on a coaching platform which is built with React and Firebase.
Now we have a new team member who is responsible for all the online marketing stuff. He mentioned that it would be great, if our platform could give the coaches the possibility to write blog posts which will be shown on a general blog page. This way we could generate original content which is relevant for Google.
So now to my question.
Does anyone of you know, if there is a blog plugin which could be integrated in a react app?
Vanilla JavaScript string endsWith
Tags: javascript
Published: 2020-05-06 06:20:41

Yesterday we had a look at the [`startsWith()` function](http://daily-dev-tips.com/posts/vanilla-javascript-string-startswith/), and today we are looking at its brother the `endsWith()` function!
As the name suggests, this one looks if a string ends with a specific substring.

## Using endsWith function in JavaScript

To use the function, we need to have a string then we can call the `string.endsWith('substring')` function and we will get a `boolean` value in return (true/false)

```js
var string = "Life is what happens when you're busy making other plans.";

// Check if it ends with `plans.`
console.log(string.endsWith('plans.'));
// true
```

As we saw in the `startsWith()` function this one is also case sensitive.

```js
var string = "Life is what happens when you're busy making other plans.";

// Check if it ends with `Plans.`
console.log(string.endsWith('Plans.'));
// false
```

## Using an offset search position on endsWith

The `endsWith()` also has the option to offset, but from the end, so let's say we know the string always ends with "plans".
We can then offset by six characters using the `position` attribute.

```js
var string = "Life is what happens when you're busy making other plans.";

// Check if it ends with `other`
console.log(string.endsWith('Life', 4));
// true
```

With this `position`, keep in mind it will cap the string after four characters from the starting point!

Feel free to play with this Codepen:

<p class="codepen" data-height="265" data-theme-id="dark" data-default-tab="js,result" data-user="rebelchris" data-slug-hash="eYpeXjG" style="height: 265px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="Vanilla JavaScript string endsWith">
  <span>See the Pen <a href="https://codepen.io/rebelchris/pen/eYpeXjG">
  Vanilla JavaScript string endsWith</a> by Chris Bongers (<a href="https://codepen.io/rebelchris">@rebelchris</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>

## Browser Support

This function works in all browsers but not in IE 😢.
We can use [this polyfill](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith) to help IE.

### Thank you for reading, and let's connect!

Thank you for reading my blog, feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
A roadmap for learning R
Tags: rstats, datascience
Published: 2020-05-06 05:41:52

Some folks at work expressed an interest in how to get started learning R. There are lots of resources out there, but I thought I'd share with you what I shared with them as a pathway that I followed that's working out well for me.

You don’t need all these steps but I suggested starting from 1 and working your way through them that way.

1. Read **R for Data Science** (https://r4ds.had.co.nz/). I only made it to Chapter 16 and could already do a lot of the stuff I wanted to do. This book takes a really nice approach of FIRST getting you some results and then working through some programming-specific stuff, so you won’t just be working through a lot of programming concepts without knowing what you are working towards. 
1. **There are exercises** (which I largely skipped), but if you do them and want to check your answers, you can read the companion book here: https://jrnold.github.io/r4ds-exercise-solutions/
1. **If you get stuck**, there is a super helpful Slack channel where you can post questions according to the chapter you are on and people will help you.
Once you get the hang of manipulating data, I encourage you to practice with some datasets from the Tidy Tuesday challenge. This is a weekly challenge where people create visualisations of the same dataset. It is GREAT for learning how others do things because they often share their code and you can learn a lot. You don’t have to wait for a new dataset, go ahead and look for old datasets that interest you!
1. You can **view past TidyTuesday submissions** and their code  here: https://nsgrantham.shinyapps.io/tidytuesdayrocks/
1.If you want to participate in posting your own visualisations, you’ll need to **join Twitter**. Here’s a free guide on how to get started on Twitter for R programmers: https://www.t4rstats.com/
1. **If you like podcasts**, there is also a TidyTuesday podcast with short episodes that cover the previous week’s submissions and helpful tips.

I hope that helps you on your journey. Exciting times ahead :).

_Image credit: Photo by oxana v on Unsplash_
What is Microsoft Authenticode? - Explained in Bried
Tags: microsoft, codesigning
Published: 2020-05-06 05:37:25

Microsoft Authenticode, a code signing technology developed by Microsoft that helps to recognize the publisher and the developer of the Software. Authenticode also helps to verify the Software is original, and not tempered, altered, or changed since the code was signed.

Why Choose Microsoft Authenticode Signing?

1. For the Integrity of the Software

2. Publisher or Developer's identity verification

3. Avoid unwanted Download warnings

4. Clues for Microsoft Authenticode

5. Build up Trust, Authentication & Assurances

Source: https://codesigningstore.com/cheap-microsoft-authenticode-code-signing-certificate
[TUTORIAL] - Make Your Own Top-Level Domain Name (like .com, .org, and .net)
Published: 2020-05-06 05:27:37

So you want to make your own .com or .org, and let's say you don't want to make a private one only you can use because that is exhausting (because it is, and adds more complexity). This will be a tutorial on how you get your own TLD, owned, and ran by you. Also, note we use the TLD acronym a lot, and it simply means "Top-Level Domain" and is quite common. The parts of a domain name are subdomain (usually www. or blog.) you also might not see them, the domain name (here is dev), TLD is the .com .org, etc.

## Step 1 - Build/buy the backend
The backend means, as defined by [ICANN](https://www.icann.org/resources/pages/registries/registries-en) as *"The role of the registry operator within the Internet ecosystem is to keep the master database of all domain names registered in each top-level domain"*

You can buy one or build your own, but it will be a long process, not to mention very difficult. I would say buy one if you can't put a server in your house or office space.

## Step 2 - Wait for the opening
ICANN only takes applicants every few years, so be sure you are not only prepared but you also have a solid $150K to $300K sitting in your bank, as it isn't cheap. The ability for single letter TLDs are either nill or much more expensive, so keep it to 3 letters or more. Do not choose two letters, unless you can convince a country to allow it. They will also most likely take royalties and a good chunk of control. This means to .js, .cs, .bs, .bf, unless it is already a ccTLD (country code TLD) based on the ISO standard, or a country wants it. Sorry.

## Step 3 - Fight, bid, and work hard
This can take years, as TLDs like the newly released .gay TLD started their fight in 2012. Now eight years-ish later it is available. There were only four applicants too, some might take more. You might also not be in this step, as most gTLDs (Generic TLD) do not make it past step two as either it is too expensive or they were just rejected.

The process here can also very much differ between circumstances.

## Step 4 - Sell
Good job, you did it. You spent hundreds of thousands of dollars and spent several years of your life doing a thing. Good news, people will most likely buy it. I mean people buy things like .moe, .ooo, and many other seemingly stupid ones all the time, so even if it sucks (like .lmnop), someone will buy it because they can.
Where is Show Preview Packages in Unity 2020.2?
Tags: unity3d, todayilearned
Published: 2020-05-06 05:22:17

---
title: Where is Show Preview Packages in Unity 2020.2?
published: true
description: Unity has moved the option to Show Preview Packages in 2020.2
tags: Unity3D, TIL
---

# Steps to Show Preview Packages in Unity 2020.2
1. Edit -> Project Settings
2. Find Package Manager in the window hierarchy
3. Check the Enable Preview Packages box
4. Click I understand

This one stopped me in my tracks tonight. I went live on Twitch to explore the latest AR Foundation (4.0), which is only available in Unity 2020.2. I should've at least started a project to confirm I could find the package, but I didn't. I just went live and tried it! 

I couldn't find the setting until I finished the stream and had time to figure out where it was.

Thankfully, a kind user had [posted the answer in the Unity forums](https://forum.unity.com/threads/asset-manager-show-preview-packages-missing.875803/). I'm bringing to you in hopes that Google makes it easier for you to find. 

Have fun!
NodeJs or C#
Tags: node, csharp, webdev, api
Published: 2020-05-06 05:16:25


I have worked with C# for over 15 years and used it from desktop, server, web, and mobile development.  I also use Node.Js for a lot of real-time applications. I have experienced real-time applications being easier to develop NodeJs vs SignalR in C#. That being said, I still believe that the strong typing of C# enforces  discipline and reduces the amount of bugs within your application.  

Also now with .Net Core has demonstrated superior performance benchmarks.  I am not sure if I would make a full switch I’m NodeJs direction.

I have found that NodeJs is good for small to medium application, where if I’m designing something on an enterprise level I’m sticking with C#.

At the end of the day I think it boils down to what tribe you want to live in.

Fellow polyglots out there what are your thoughts? ☺️
How to deploy an application using Templates in OpenShift?
Tags: openshift, kubernetes, devops, php
Published: 2020-05-06 05:13:17

## Objective
- Create project **my-project**
- Deploy **PHP** Application using Templates

### Step 1: Set up Openshift environment
Go to [Katacoda.com](https://katacoda.com/openshift/courses/playgrounds/openshift39) & click on start scenario

### Step 2: Create project my-project
```
oc new-project my-project
```

### Step 3: Update permissions
```
setenforce 0
```

### Step 4: List templates
```
oc get templates -n openshift
```

### Step 5: Describe php template
```
oc describe template cakephp-mysql-persistent -n openshift
```

### Step 6: Deploy php application
```
oc new-app cakephp-mysql-persistent --name cakephp -l app=demo
```
```
oc get pods --watch
```

### Step 7: List route
```
oc get route
```

### Step 8: Access application
```
From browser, Browse http://<ROUTE_URL>
```

{% youtube bRdNnrpfb0Y %}
Java functional vs OO programing
Tags: discuss, java, functional, oop
Published: 2020-05-06 05:12:34

Hi Java guys,
I want to know how you guys use java. My previous job still uses OOP (except simple lambda and stream). Now, I joined Oracle. I found they use functional programing almost everywhere. How do you guys do your work? 

Note, when I say functional programming, I am not just talking about simple lambda and stream functions. I especially reference if you use functions in the return type and method parameters. 

During my previous job, I tried to avoid using functions in returns and method parameters. Since there are saying that function is not performing that well. I still think that is probably true. Functions are compiled to anonymous classes in behind.

For example,

Functional:
```
public Supplier<String> someMethod() {
return () -> "Hello!"
}

or

callMethod(() -> "Hello!")
```

More OOP style. 

```
private Supplier<String> hello = () -> "Hello!";

public Supplier<String> someMethod() {
return hello;

or 

callMethod(hello);

```

Let me know your ideas.
The Power of Habit by Charles Duhigg
Tags: books, habits, watercooler, selfimprovement
Published: 2020-05-06 04:59:17

_This article has been originally posted on my [blog](http://sandordargo.com/blog/2020/05/06/the-power-of-habit). If you are interested in receiving my latest articles, please [sign up to my newsletter](http://eepurl.com/gvcv1j)._

Books on habits can be extremely popular as we all, of course, want to create ones that can help us in our life. They help is both in our careers and in our everyday lives. Though maybe it's easier to see that in our professional path. That's why [The 7 Habits of Highly Effective People](https://amzn.to/2UwCH4y) can be so influencing. Corporations organize training around that book and hand out copies to their employees.

[The Power of Habit](https://amzn.to/2wD0fvr) is not about successful habits, it's simply about habits.

It analysis the core of habits. If you read [this book](https://amzn.to/2wD0fvr) you'll learn how a habit works in your brain and what do you need to do in order to create a new one and what will not help to form a habit.

You might remember [my talk on Zuckerberg's gray T-Shirt and coding guidelines](https://www.youtube.com/watch?time_continue=2&v=CNDejB6Hg5A&feature=emb_logo). I emphasized the importance of decisions already made for you versus willpower. While I advocated for rules already set and automation to free your willpower so that you can focus it on more important matters, habits also produce similar results. 

When a repeated activity becomes a habit you don't waste any willpower on continue doing it. Once your brain identifies the cue, the automated pattern will kick-in and you'll perform it without thinking in order to just to get the reward your brain used to.

![Cue Routine Reward cycle from The Power Of Habit](https://dev-to-uploads.s3.amazonaws.com/i/6l8jmsgu5wq8ln5j2u37.png)

Duhigg's book can help you identify which are the habits that matter the most in your life, the so-called keystone habits and how to form them. But it goes beyond because there are not only individual habits. Families, companies, and societies also have them. How habits helped the [Saddleback Church](https://saddleback.com/) or the [Montgomery bus boycott](https://www.history.com/topics/black-history/montgomery-bus-boycott) to succeed? You can learn from the book.

While courts might say that in certain cases we are not responsible for horrible acts. They might say that we cannot be responsible for acts that came out of habit, without being aware of what we were doing, don't forget it is your sole responsibility to form good habits.

Which habit of yours are you going to change?

[Happy reading!](https://amzn.to/2wD0fvr)
Book: Twitter for R Programmers!
Tags: rstats, datascience
Published: 2020-05-06 04:58:29

People using R for analysis or data science might have heard that the R community is really active on Twitter, but feel a bit lost when trying to figure out how to use Twitter. 

Like most social media apps, there's a bit of a learning curve to get going. In an effort to help newcomers get the most out of Twitter and join the great community, I have co-authored a short book to help you get started, and it's free :)!

You can find it at www.t4rstats.com