teleren/devto huggingface dataset:
Not Defined vs. Undefined in JavaScript
Tags: javascript
Published: 2020-01-29 05:45:57

---
title: Not Defined vs. Undefined in JavaScript
published: true
description: 
tags: javascript
---

There are two conditions that are closely worded but mean very different things in JavaScript.  A variable can be *undefined* vs. *not defined*.

Let's open up your browser's console and take a closer look.

Suppose you type `a + b` and hit `ENTER`.  You will see something like the following:

![not defined](https://dev-to-uploads.s3.amazonaws.com/i/161jy9pdkyyfvr634dtt.PNG)

This `ReferenceError` is telling us that we have not *declared* the variable `a` and therefore it is *not defined*.

Let's declare `a` and see what happens.

![undefined](https://dev-to-uploads.s3.amazonaws.com/i/f7mtkc4leeiwarsh4zjh.PNG)

The `let` (as well as the `var` and `const`) keyword is used to *declare* a variable but since we have not assigned it an actual value, `a` is *undefined*.

The difference may feel subtle but they really are different things. In one case, `a` doesn't even exist (i.e. not defined) and in the other it does but doesn't have a value.
Top 10 Vue.js Libraries
Tags: vue, javascript, webdev, productivity
Published: 2020-01-29 05:43:56

Navigating the ever-expanding world of Vue.js and all of its libraries can be difficult. That is why I have put together this guide to show you the Top 10 libraries according to [awesomejs.dev](https://awesomejs.dev/for/vue/).
1. [@storybook/vue](https://storybook.js.org/docs/guides/guide-vue/) - Storybook for Vue is a UI development environment for your Vue components. With it, you can visualize different states of your UI components and develop them interactively.
{% github storybookjs/storybook %}
2. [element-ui](http://element.eleme.io/) - 
Element, a Vue 2.0 based component library for developers, designers and product managers
{% github https://github.com/ElemeFE/element %}
3. [vuetify](https://vuetifyjs.com/) - 
Vuetify is a Vue UI Library with beautifully handcrafted Material Components. No design skills required — everything you need to create amazing applications is at your fingertips.
{% github https://github.com/vuetifyjs/vuetify %}
4. [vuex](https://vuex.vuejs.org/) - 
Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official devtools extension to provide advanced features such as zero-config time-travel debugging and state snapshot export/import.
{% github https://github.com/vuejs/vuex %}
5. [vue-devtools](https://github.com/vuejs/vue-devtools) - 
Chrome and Firefox DevTools extension for debugging Vue.js applications.
{% github https://github.com/vuejs/vue-devtools %}
6. [vue-router](https://router.vuejs.org/) - 
Vue Router is the official router for Vue.js. It deeply integrates with Vue.js core to make building Single Page Applications with Vue.js a breeze.
{% github https://github.com/vuejs/vue-router %}
7. [framework7](http://framework7.io/) - 
Framework7 - is a free and open-source framework to develop mobile, desktop or web apps with native look and feel. It is also an indispensable prototyping tool to show working app prototype as soon as possible in case you need to.
{% github https://github.com/framework7io/framework7 %}
8. [quasar](https://quasar.dev/) - 
Quasar (pronounced /ˈkweɪ.zɑɹ/) is an MIT licensed open-source Vue.js based framework, which allows you as a web developer to quickly create responsive++ websites/apps in many flavors
{% github https://github.com/quasarframework/quasar %}
9. [bootstrap-vue](https://bootstrap-vue.js.org/) - 
With BootstrapVue you can build responsive, mobile-first, and ARIA accessible projects on the web using Vue.js and the world's most popular front-end CSS library — Bootstrap v4.
{% github https://github.com/bootstrap-vue/bootstrap-vue %}
10. [vue-resource](https://github.com/pagekit/vue-resource) - 
The plugin for Vue.js provides services for making web requests and handle responses using an XMLHttpRequest or JSONP.
{% github https://github.com/pagekit/vue-resource %}
Kubernetes Certifications Deal
Tags: kubernetes, beginners
Published: 2020-01-29 05:21:11

{% youtube EbR3iRCGMT8 %}

Linux Foundation is running a 20% OFF sale for CKA and CKAD certifications.  Anyone planning for the CKA or CKAD certifications within the next year should make use of this opportunity.

Use the below links to register for the exams:

[Certified Kubernetes Administrator (CKA)](http://shrsl.com/22td1)

[Certified Kubernetes Application Developer (CKAD)](http://shrsl.com/22td6)

Apply coupon code CNY2020

To prepare for the exams go to: [KodeKloud](www.kodekloud.com)
Launched Free Desklog for Linux
Tags: projectsoftwarelinux, opensource
Published: 2020-01-29 04:49:38

We are delighted to announce that we have launched free Desklog, our project management software for linux operating system. Explore all its features and know the importance, benefits and requirements of Desklog in Linux platform.

Explore here: https://bit.ly/37zYCM1
Automate Mojave Dark mode configuration
Tags: macos
Published: 2020-01-29 04:45:13

---
title: "Automate Mojave Dark mode configuration"
published: true
description: Using bash to set Mojave's dark mode option
tags: macos
cover_image: https://www.ciccarello.me/assets/img/imac-dark-mode-thumbnail.jpg
canonical_url: https://www.ciccarello.me/blog/2018/09/25/automate-mojave-dark-mode-configuration/
---


If you like to [automate your macOS configuration](https://kalis.me/dotfiles-automating-macos-system-configuration/) via bash scripts and have recently
setup Mojave, you may be wondering how to enable dark mode, the configuration
is called "AppleInterfaceStyle" and can be set using the following command.

    defaults write "Apple Global Domain" "AppleInterfaceStyle" "Dark"

If you would like to revert back to the default (light) theme, delete the key.

    defaults delete "Apple Global Domain" "AppleInterfaceStyle"

Both enabling and disabling will require a restart of your computer to take
affect. If you would like to try out the theme immediately, open the General
tab of the mac preferences.

    open /System/Library/PreferencePanes/Appearance.prefPane

---

_Originally published [Sep 25, 2018](https://www.ciccarello.me/blog/2018/09/25/automate-mojave-dark-mode-configuration/)_
Day 75 : Tightrope
Tags: hiphop, code, coding, lifelongdev
Published: 2020-01-29 04:37:02

_liner notes_:
- Professional : Ran into a little problem with getting my code to work the way I want using our Client SDK. I think I may have figured it out. I did some preliminary rough code and it seems like it may work.

- Personal : Went the Black Orlando Tech panel discussion. The topic was Afrofuturism. Interesting talk.

![A lake surrounded by a forest with mountains in the distance in Grüner See, Austria](https://dev-to-uploads.s3.amazonaws.com/i/1n0ari6fmxvkypab0stj.png)

Keeping this short because I got back home late from the meetup. Got to get up early tomorrow and to sit in on some talk prep sessions. There's a tightrope between going to meetups and getting your work done. Going to bed.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube pwnefUaKCbc %}
Using Ruby to Compare Two Lists of Email Addresses
Tags: ruby
Published: 2020-01-29 04:29:41

---
title: Using Ruby to Compare Two Lists of Email Addresses
published: true
description: 
tags: ruby
---

I recently joined the committee of my son's daycare and have been helping out on the communications side of things. One of my first tasks was to add the new parents to our mailing list and remove folks who had left. This seemed easy enough until I realised that I'd need to manually compare two lists of around 100 emails to figure out who was new and who had left ... 😅

Since this is something I might need to do regularly, I thought I'd write up a little Ruby script to help out. I initially started with two loops comparing each line of a file with every line of the other. After looking for a more eloquent way to achieve this however, I found the `select` method does a much better job of finding multiple matches and makes for more readable code.

```ruby
def find_unique_emails(list_01, list_02)
  # given two email lists, find all emails
  # in list_01 that are not in list_02
  unique_emails = []

  list_01.each do |email|

    # Create an array of any matched emails
    matches = list_02.select { |line| line[/#{email.chomp}/i] }
    
    if matches.empty?
      # if no matches, it's a unique email
      puts email
      unique_emails.push(email)
    end
  end
  
  return unique_emails
end
```

I'm currently just printing out the lists in the terminal, but each list can be saved to a file if needed. I've made a gist of the full file [here](https://gist.github.com/aaronmoodie/b8e3b40c639b7ffb2c9af4e04e369edc). Happy diffing.
Install Laravel in Ubuntu using Composer
Published: 2020-01-29 08:54:22

---
title: Install Laravel in Ubuntu using Composer
published: true
date: 2020-01-29 03:58:06 UTC
tags: 
canonical_url: https://www.itsolutionstuff.com/post/how-to-install-laravel-in-ubuntuexample.html
---

In this post i will show you how to install laravel in ubuntu using composer you can easily install laravel in ubuntu 1604 ubuntu 1804 and ubuntu 1904 version we can install laravel 6 using composer commandI will give you step by step instruction of how to install laravel in ubuntu os so
The 20 most downloaded mobile apps of 2019
Tags: android, apps, ios
Published: 2020-01-29 03:43:42

---
title: The 20 most downloaded mobile apps of 2019
published: true
description: Google Play store and IOS Downloaded Apps in 2019
tags: Android, Apps, IOS
cover_image: https://i.imgur.com/niJNprf.jpg
---

Visual Capitalist has compiled statistics on unique application downloads through the App Store and Google Play from January 1 to December 31, 2019. Pre-installed apps for Apple and Google were not counted.

Mobile apps are one of the reasons why smartphones are so much popular today. These apps are what make your phones and tablets smart, in terms of functionality and features. The app market is going through a positive revolution with hundreds of new applications being introduced every day.

From 2016 to 2019 
![Old Downloads](https://i.imgur.com/lJ04duE.png)

List of Country Top Downloads 
![Country Downloads](https://i.imgur.com/N3ONhMc.png)
Simple Way to Make Friends When You Work Remote
Tags: career, productivity
Published: 2020-01-29 03:11:14

With more people working remotely, people are becoming more isolated than ever.

People work in their own locations away from their peers if they have any.

One good thing about the office is that we can make some friends from people at work.

How do we do the same thing working remotely?

We have to learn how to make friends digitally.

According to [Harvard Business Review](https://hbr.org/2019/11/how-remote-workers-make-work-friends), 50 percent of remote workers work in a cadence.

This means that they work at similar times each day, which is good because it helps people make friends even though they work remotely.

They go online at the same time and can talk via meetings and messages. Since people work at similar times, they can find each other easier.

If we want to make friends, we can do the same thing.

We have to be a reliable work partner and when you're working, look at your messages, emails, and don't miss any meetings.

Once you talk, you'll have friends in no time no matter if you're working in-person or remotely.
Comparison of Languages
Tags: language
Published: 2020-01-29 02:15:18

After writing a couple articles which directly compared Python with D, I realized I should bring additional languages into the mix.

As such I will try my hand at a new series (with no specific direction). [Rosetta Code] (http://www.rosettacode.org/wiki/Rosetta_Code) provides similar language comparison, but I think I can dive into some semantic differences. While I won't have specific language to make a comparison for, D will definitely be involved, Python, C#, Lua, Java, Javascript are definite candidates. 

I'd like to focus on the features with interesting differences and the languages which present them, but sometimes it might just be synthetic. 

-----

For reference, this was my reply to my comparison to Python. 

{% link 
https://dev.to/jessekphillips/what-is-with-all-the-python-hate-5c9j %}
Code Review best practices
Tags: codereview, softwaredevelopment, webdev
Published: 2020-01-29 01:42:56

---
title: Code Review best practices
published: true
description: 
tags: codereview, softwaredevelopment, webdev
cover_image: https://efficientuser.files.wordpress.com/2019/10/20191021_224946_0000.png
---

Originally posted in [efficientuser.com] (https://efficientuser.com/2019/10/21/code-review-best-practices/)

> Everyone has there own set of best practices. Here are the few points which I would like to share with you regarding the code review.

The aim of the code review is to build the team spirit, improve the code quality and collaboratively learn the best practices.

## One feature at a time
Make sure your CRR or commits are based on a single feature or story or bug fix. Keeping multiple features or bug fixes in a single code review request will create more confusion. So keep it simple.

## Add members to review
Add everyone from the team to your code review request. At least 2 reviewers should review your code before it has been merged to the remote repository.

## Information about what has been changed
Add information about what has been changed in the CRR. Add the related tickets/story/bug link in the CRR (in most of the cases). This will help the peer-reviewers to get insight or information about the task.

## Notify the team
Send an Instant message to your team when the CRR request is sent or when the individual completes reviewing a particular request.

If you have any automated system like webhook or slack notification, that's fine. Otherwise, it’s OK to maintain a separate channel or group to discuss CRR.

## Write it simple and clean
Keep the commit message concise & clear (if it is a bug fix mention it clearly).

When you are reviewing, look into the code and make sure you understand what code does actually; if there is any doubts/clarification needed highlight the code and add comments for clarification.

The aim is to have a readable code so that the remaining team member can also understand.

## Be an advisor
If you find the code is difficult to understand or it could be even simpler feel free to suggest the better way to do that.

It’s a good habit to suggest something good instead of just mentioning that a particular piece of code can be improved.

## Maintain patience
Don’t urge to get your code get reviewed; Give some time to the reviewer and add a gentle reminder if it takes too long.

## Be gentle
Stay humble, all these processes are to improve ourselves in a better way.

The code review process is to improve the code quality and build the team spirit in a better way. Collaboratively we can learn more from Code Reviews.

Happy Coding!

> Help me to test whether the comment section is working? Leave your feedback in comment section, please!

Click that follow somewhere in this page to see more content in future!!
New package - Storybook Directories
Tags: storybook, package, javascript, frontend
Published: 2020-02-01 18:50:09

---
title: New package - Storybook Directories
published: true
date: 2020-01-29 00:00:00 UTC
tags: storybook, package, javascript, frontend
canonical_url: https://samturrell.github.io/2020/01/29/storybook-directories/
---

If you haven’t heard of storybook, you’re missing out. We’re big fans of it at Netsells, and it has really helped us have clear visibility of what’s available to us when build our web apps. In a nutshell, Storybook gives you an isolated sandbox environment in which you can code up your components outside of your main application. It has a variety of addons available, which allow you to influence your stories and test them with different data and situations. I highly recommend you check out the [Official docs](https://storybook.js.org/) and give it a go.

Organisation is key in your storybook, whether it’s only visible internally or is part of a public-facing component reference. Keeping your stories categorised will mean you’re able to find the components you’re looking for a lot easier, and ultimately save time.

What also takes time is figuring out the structure you want, and updating multiple stories with the perfect structure that works for you. This is a lot of duplicate code, just for the sake of formatting.

That’s why I built this package. This simple module solves this problem by allowing you to control the story structure right from the drag and drop UI of your file system, meaning no code updates are required.

## Installation

```
yarn add @netsells/storybook-directories
```

## Usage

Simply import the package into your storybook config, and update your `configure` statement to pass in the `storybookDirectories` function with a `stories` parameter which matches your `require.context` call.

```
import storybookDirectories from '@netsells/storybook-directories';

configure(
    storybookDirectories({
        stories: require.context('../stories', true, /\.stories\.js$/),
    }),
    module
);
```

Your stories now no longer need to specify a default export, although if you require it you can simply omit the `title` property. However, if you wish to override the directory structure for a story you can do this by simply specifying a title as you would normally.

Take the following directory structure:

```
stories/
│
├─ 0. Welcome/
│ └─ Welcome.stories.js
│
├─ 1. UI/
│ ├─ Typography.stories.js
│ ├─ Buttons.stories.js
│ └─ Icons.stories.js
│
├── 2. Forms/
│ ├─ Inputs/
│ │ ├─ TextInput.stories.js
│ │ └─ CheckboxInput.test.js
│ └─ ContactForm.stories.js
│
```

Would generate stories with titles in the following format:

```
0. Welcome|Welcome
1. UI|Buttons
1. UI|Icons
1. UI|Typography
2. Forms|Inputs/TextInput
2. Forms|Inputs/CheckboxInput
2. Forms|ContactForm
```

This format matches the Storybook separator formats, and would generator a storybook with grouped sections matching your directory structure.
How to Publish ASP.NET Core App to Azure through FTP
Published: 2020-01-28 23:43:05

In this [tutorial](https://github.com/patricksameerajayalath/AzureTutorials/blob/master/How%20to%20Publish%20ASP.NET%20Core%20App%20to%20Azure%20through%20FTP.pdf) I’m going to show how to:

•	Create an ASP.NET Core MVC Application
•	Create an App Service Plan
•	Create an App Service
•	Publish the App using the Folder option
•	Publish the code to Azure through FTP Client
•	Publish the code to Azure through FTP Deployment
•	Use FTP to modify the content

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/249ifqbwr7lut2zimv48.jpg)

You can find the PDF version of this tutorial [here](https://github.com/patricksameerajayalath/AzureTutorials/blob/master/How%20to%20Publish%20ASP.NET%20Core%20App%20to%20Azure%20through%20FTP.pdf).

You can find all my Azure/.Net tutorials [here](https://dev.to/patricksameerajayalath) and [here](http://sameerajayalath.blogspot.com/).

Enjoy !!
Git blameless?
Tags: discuss
Published: 2020-01-28 23:17:26

I recently put out a question to my Twitter friends:
{% twitter 1222289107252056064 %}

I found myself using `git blame` quite a bit, but that command never sat well with me.

No one likes to be "blamed" for stuff, and everyone thrives better in a blameless culture, so why have a blame command?

Word matter and play a very big role in the culture we build.

I got some great replies on Twitter, but was wondering if anyone on DEV had other aliases they liked?
Türkçe Podcastler Listesi
Tags: podcast, ux, techtalks
Published: 2020-01-28 23:11:31

Selamlar herkese, bugün yazılım, girişimclik gibi alanlarda yayın yapan türkçe podcastler listesini yayınlayacağım.

Hiç kendi radyo programınızı yapmayı hayal ettiniz mi? Şarkılarınızın, sohbetlerinizin kitleler tarafından duyulmasını ümit eden bir yayıncı ya da şarkıcı mısınız? Onlarca yıl önce, duymak için çok fazla bağlantıya ya da bir servete ihtiyacınız olurdu.

Ama şimdi, internete teşekkür etme zamanı.  İnternet sayesinde milyonlarca insana anlık ulaşabilme imkanı var. Hayalleriniz gerçek olabilir. 

Podcast, İnternet kullanıcılarının podcast web sitesinden bilgisayarlarında veya kişisel dijital ses oynatıcılarında dinlemek için ses dosyaları (genellikle MP3'ler) almasına olanak tanıyan ücretsiz bir hizmettir. Terim iPod (Apple tarafından yapılan kişisel bir dijital ses çalar) ve yayın kelimelerinin birleşiminden gelir. Terim iPod'dan türetilmiş olsa da, bir podcast'i dinlemek için iPod'a ihtiyacınız yoktur. Neredeyse tüm taşınabilir medya oynatıcıları veya bilgisayarınızı kullanabilirsiniz.

İnternet radyosundan farklı olarak, kullanıcıların belirli bir yayını 'ayarlamak' zorunda değildir. Bunun yerine, podcast'i istek üzerine indirir veya podcast'i bilgisayarlarına otomatik olarak indiren bir RSS (Gerçekten Basit Sendikasyon) feed'i ile abone olurlar. Teknoloji, kullanıcıların hangi programları kaydetmek istediklerini ayarlamasına izin veren ve daha sonra izlemek üzere bu programları otomatik olarak kaydeden kişisel bir video kaydedici olan TiVo tarafından kullanılana benzer.

Severek takip edilen podcastleri aşağıda bulabilirsiniz. <p> Ayrıca <a title="Podcast Dünyası" href="podcastdunyasi.wordpress.com">Podcast Dünyası</a> sitesinden detaylı podcast haberlerini okuyabilirsiniz.</p>

<ul>
<li><a title="Jüpiter'deki Fika" href="https://fika.wtf">Jüpiter'deki Fika</a></li>
<li>devPod</li>
<li>Codefiction</li>
<li>Giik.fm</li>
<li>Paraş&uuml;t&rsquo;le &Uuml;retim Bandı</li>
<li>Remote Talks</li>
<li>1: 0</li>
<li>Radyo 521</li>
<li>Swifthane</li>
<li>Lemi&rsquo;nin Not Defteri</li>
<li>Yazan ve Y&ouml;neten</li>
<li>Girişimci Muhabbeti</li>
<li>kodpod</li>
<li>D&ouml;rt Podcast</li>
<li>Turuncu Pasaport</li>
<li>1 Proje 1 İnsan</li>
<li>Made In Turkey</li>
<li>Sıfır</li>
</ul>

<p><a href="https://www.mahmutcan.com.tr" title="Mahmut Can">Mahmut Can</a> sitesini ziyaret edebilir veya&nbsp;&nbsp;<a title="Mahmut Can Kimdir" href="https://www.mahmutcan.com.tr/mahmut-can-kimdir-neler-yapti-ne-yapabilir">Mahmut Can Kimdir</a> yazısını okuyarak hakkımda detaylı bilgiler edinebilirsiniz.</p>
SMSS -'Connect to Server' Hell
Tags: sql, database, devops, azure
Published: 2020-01-28 23:01:57


If you've used Microsoft SQL Management Studio long enough you've probably encountered the connection dialog box from hell.

## Connection settings randomly disappearing

No matter which version of SMSS you use, there's an inconsistent behaviour with it remembering SQL Server connections -  applies to all editions.

Sometimes, your last used database server connection settings will be remembered and at other times SMSS will completely forget them. If you're using SMSS on a daily basis and accessing different server instances it can cause much frustration.



## The fix - 'Registered Servers'

Various solutions exist to resolve this, some with mixed results. One of them involves tweaking the entries via the registry - no thanks! 🙄

The other, is much simpler using SMSS's Registered Servers feature:

1. First, fire up SMSS - bypass the 'connect to server' dialog box, you won't need to be connected to a database instance for this.

2. Then navigate to View -> Registered Servers.

3. Right click on the 'Local Server Group' folder and select 'New Server Registration'.


![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/d8h2t6jdqz59xed517fc.png)


* Enter the SQL Server instance connection details:


![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4fuibyl1wau6l0kypfze.png)


* You can repeat this process and add as many SQL Database connections as you like here.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ehqhxx9bhh2s2t9f6jtm.jpeg)


 Once all your connections have been entered into the 'Registered Servers' feature, the connections will be available in the SMSS 'Connect to server' dialog. 

and that's it - no more missing connection settings 😎