teleren/devto huggingface dataset:
Settings Visual Studio Code, tools, Chrome 
Tags: vscode, code, developer
Published: 2020-11-07 12:36:35

---
title: Settings Visual Studio Code, tools, Chrome 
published: true
description: settings vscode
tags: #vscode #code #developer
cover_image: https://i0.wp.com/wp.laravel-news.com/wp-content/uploads/2017/11/vscode.png?resize=2200%2C1125
---
A few months ago, I asked myself the question 
**"Why don't you create a Github folder on my configuration"**
So I started to put away my tools folder.

Today, everyone wants everyone's configuration, but I can understand because we are gaining in productivity.

Since I entered the world of developers in 2017, I have always been passionate about the web, but also about the tools that everyone uses. 

I wanted to create my first article, about my configurations.

When I started programming. I use (atom, Sublim Text).

Since 2017, I use VScode because the interface is better, where you can customize everything you want in it (cursor, themes, icons...) 

#### links : 
- [Carbon](https://carbon.now.sh/)
- Chrome extension : Bookolio
- Police: Cascadia Code

- [Github Projects](https://github.com/Grezor?tab=repositories)
- [Github tools](https://github.com/Grezor/Tools/tree/master/VisualStudioCode)
- [Windows terminal](https://github.com/Grezor/Tools/tree/master/WindowsTerminal)

Don't hesitate to tell me what you think. If there are any improvements, if you wish to see more tell me in the comments .Thanks.

Grezor
#codevember - 7 - Black Hole - Made with tsParticles
Tags: codepen, showdev, javascript, html
Published: 2020-11-07 12:35:00

# Black Hole

**Made with [tsParticles](https://github.com/matteobruni/tsparticles)**

{% codepen https://codepen.io/matteobruni/pen/YzWOjyK %}

Checkout more samples on CodePen [here](https://codepen.io/collection/DPOage)
Aptitude topics for placements
Tags: placements
Published: 2020-11-07 11:55:35

1. Problems on Trains
2. Height and Distance
3. Simple Interest
4. Profit and Loss
5. Percentage
6. Calendar
7. Average
8. Volume and Surface Area
9. Numbers
10. HCF and LCM
11. Simplification
12. Chim Rule
13. Bots& Steams
14. Logarithm
15. Time and Distance
16. Time and work
17. Compounds and Interest
18. Partnership
19. Problems on ages
20. Clock
21. Area
22. Premutation and Combination
23. Decimal fraction

Make a note:
 Every topic
Django For Beginners - Life Cycle P2
Tags: python, django, beginners, tutorial
Published: 2020-11-07 11:30:36

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

When client sends a request(http synchronous) and waits for a response from the service, a lot happens in the server side, server will get the request and process it and return the response to the client.


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

### **Note 1**
When client made a request, it will be sent to the server like Nginx(in development, django will use the default development server), then it will connect to the wsgi(standard interface for communication between an application and the web server) module in django to talks to the django project

### **Note 2**
Then the request will be send through the middleware, django has its own premade middleware for things like authendication, session and many more. Middleware is like a gatekeeper, request has to cross each one in order and vice versa. you can even write your own custom middleware.

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

### **Note 3**
**urls** is the router in django, django will look for the requested url and calls the view

### **Note 4**
**view** in django where the logic will be written, view will get the requesting data and process it, queries the model and return back the HttpResponse as template or any other format like json, xml. view is the place where you work, most of the time to build the logic for the application.

### **Note 5**
**Templates** in django are normal html files with extract features included, it will be send to client as html file pre rendered in the server. Template can be reused in another templates by including it (like reactjs component).

### **Note 6**
Response has to cross the Middleware in the reverse order, check **Note 2**. you can validate the response or do any kind of validation in the response middleware.


### Thanks you, have a great day ahead.😎
Looking for Angular Architecture Advise
Tags: angular, architecture, help, webdev
Published: 2020-11-07 11:13:44

After building one or two Angular applications it's time to ask if I'm doing things right. There might be a lot of beginner tutorials for Angular out there, but it's hard to find **architectural best practices**. My most urgent question is:

* How long to keep using data as an Observable? When can/should I "resolve" it to its actual data e.g. with the async pipe?

The answer might be "as long as possible", so I should always try to use an observable and only "resolve" it in the the html template where the data is finally being shown.

![resolve observables in the child components](https://dev-to-uploads.s3.amazonaws.com/i/myonbhmt2yx36w6nt3va.png)

But I guess it's easier to use an observable as short as possible by resolving it in the parent component and providing the data as input for the child components like so:

![resolve observables in the parent component](https://dev-to-uploads.s3.amazonaws.com/i/el0y21c0fbsp9epprqgv.png)

I really don't know the answer. And here are some more questions I keep asking myself:

* Since I only want to fetch data from my http server once, but use it several times - where do I use ReplaySubjects? In the Services or in the Components?
* Should I instantiate Observables/Subjects when declaring their variables? Or should I instantiate in the constructor?
* When it comes to subscribe/unsubscribe I should probably use the `ngOnInit()` and `ngOnDestroy()` hooks, which are available in Components only... so I guess I should never subscribe/unsubscribe in my services, right?
* Is it a bad pattern to have an Observable `foo$` together with its resolved data `foo` in the same class?

Please share your recommendations!

Attributions for the cover image go to [jannoon028 from www.freepik.com](https://www.freepik.com/photos/background).
Check if an array contains a certain string
Tags: powershell
Published: 2020-11-07 11:11:05

Last week I was searching through a huge array of strings by hand/eye. I was looking for certain active directory groups. I quickly realized how stupid this was and researched ("googled" ;-)) how to check if a powershell array contains a string. "-match" comes to the rescue here.

Example: 

```powershell
    $data = @('Zero','One','Two','Three')
    $data -match 'Two'
```

Output: 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/wd4077i1acwduqcoegcz.PNG)
Byte-Sized Tech Tips Round-Up: Week 5
Tags: kubernetes, jupyter
Published: 2020-11-06 18:31:30

## Tip 1: Level up your Terminal with PowerLevel10k

> From
> {% user moficodes %}

As developers we spend a big chunk of our day in the terminal. So making it visually appealing is not a bad idea. There are a ton of ways to customize the look and feel of the terminal UI and you can get into this rabbit hole of custom bash scripts. 

If you want a quick and easy way to make your terminal look all fancy like, then look no further than [PowerLevel10k](https://github.com/romkatv/powerlevel10k). In less than 10 minutes you can get your terminal to look from this (left) to this (right)

![](https://i.ibb.co/yWZYjkM/screen.png)

## Tip 2: Kubernetes namespace management made *EASY*

> From
> {% user lidderupk %} 

I use namespaces in Kubernetes for testing out deployments and services. I am able to try things out in the test namespace without affecting anything in the integration namespace. The goal is to always have a working solution in the integration namespace. There are a few ways to switch between the namespaces.

The [Kubernetes documentation](https://kubernetes.io/docs/tasks/administer-cluster/namespaces-walkthrough) describes a good way to do this by creating two contexts, one for test and another for integration. The user would then use the use-context command as follows

```bash
kubectl config use-context <context-name>
```

Another quick way to set the current namespace is by using the [`kubectx`](https://github.com/ahmetb/kubectx) and `kubens`.

Let's take a look. Here I am currently in the default namespace:

```bash
$ kubectl get po
NAME                                READY   STATUS    RESTARTS   AGE
mariadb34-6957-47-master-0          1/1     Running   11         49d
mariadb34-6957-47-slave-0           1/1     Running   7          49d
```

Now use `kubens` to switch to the test namespace:

```bash
$ kubens test
Context "Prometeo-Kubernetes/bs8vr7fl0civct1kgnpg" modified.
Active namespace is "test".
```

Now let’s list the pods again:

```bash
$ kubectl get po
NAME                            READY   STATUS    RESTARTS   AGE
hello-server-5bfd595c65-ct8n9   1/1     Running   0          2d21h
```

It's just that simple! 

## Tip 3: Generate a Jupyter Notebook with AutoAI

> From
> {% user jritten %} 

This week I discovered a beta feature to save your AutoAI data model on IBM's data science platform. IBM's AutoAI experiment feature, which generates multiple models with a few clicks based on your data set, will now generate a Jupyter Notebook automatically! You can then use the AutoAI experiment results in a notebook to visualize and read your data to test, deploy and score a model! 

*Generating models with AutoAI*
![Screen Shot 2020-11-04 at 2.29.19 PM](https://dev-to-uploads.s3.amazonaws.com/i/g57btukprg5aog5dlvfb.png)

*Generating a notebook with AutoAI*
![Screen Shot 2020-11-04 at 2.30.07 PM](https://dev-to-uploads.s3.amazonaws.com/i/brv95cq5nhnzjbxbztn7.png)

Read more about [AutoAI](https://www.ibm.com/ca-en/cloud/watson-studio/autoai)
Object.keys() vs Object.getOwnPropertyNames()
Tags: javascript, objects, programming, developer
Published: 2020-11-07 10:55:51

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

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

now move on to Object.getOwnPropertyNames() method

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

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/6oyj41ia31jrxqe0yg0r.png)
The first things i do when installing a new shell...
Tags: cli, bash, powershell, shell
Published: 2020-11-07 10:51:45

I love the adaptability of command line interfaces. Use both powershell and bash on windows, maybe bash a little more than the ps. Anyway i add stuff to the bash or powershell Profile Files quite often.  So  the first things i add are two functions(ps) or aliases(bash) when setting up new shell: 

1. A function named eprof (edit profile). This opens the profile file in an editor. 
2. A function named rprof (refresh profile). This reloads the profile for the curren sessiont without having to reopen the shell. 

so how does this look? 

*bash* 

```bash
alias epr="code ~/.bashrc"
``` 

```bash
alias rpr="source ~/.bashrc"
``` 

*powershell*

```powershell
function eprof {
    Set-Location 'Path to my Powershell Profile'
    code .\Microsoft.PowerShell_profile.ps1
}
``` 

```powershell
function rprof {
    . $PROFILE
}
``` 

The code keyword opens the specific files in vs code.
Online course
Published: 2020-11-07 10:44:35

Best Online Arabic Programs, Learn Islamic Sciences and the Holy Quran - Al-dirassa
Learn the Arabic language online easily and quickly, study Islamic sciences and memorize the Holy Quran by Skype with al-dirassa center. Learn Arabic for All.

https://en.al-dirassa.com/

 info@al-dirassa.com
Soffian
The Standard Template Library (STL)
Tags: cpp, beginners, computerscience, oop
Published: 2020-11-07 10:35:39

---
title: The Standard Template Library (STL)
published: true
description: Learning about libraries in C++
tags: cpp, beginner, computerscience, oop 
cover_image: https://images.unsplash.com/photo-1521587760476-6c12a4b040da?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2550&q=80
series: Programming 101 with C++
---

Some languages provide **keywords** to perform specific tasks like print, eval, call, etc. 

C++ used **functions** and **classes** for just about everything and tries not to add keywords as much as possible.

You can create a pile of functions or a pile of classes or a pile of both and then distribute it as a **library** for others to use.

* Libraries can be *linked* into your application along with the object files, or
* included into your code to be *compiled*

Every compiler that meets the [ISO standard](https://isocpp.org), includes a library called **The Standard Library**, popularly known as STL.

It allows you to build an application by using code that other people have already written.

## Misconceptions About STL

![Misconception](https://cdn.searchenginejournal.com/wp-content/uploads/2019/11/busting-10-of-the-biggest-misconceptions-about-googles-e-a-t-5dc105ff6777f-1520x800.png)

* When I started learning C++ and even before that, I used to always hear about STL and worry that it is something vast and extensive and not something that I can completely master.

> Instead, it is one of the most helpful features of C++.

* Some people also think that STL is only useful for competitive programming and that is also not the case. It is useful to anyone who wants to work with C++.

* With libraries like STL, you can write applications in C++ even if you don't fully understand the underlying mechanisms of your code. 

* It is like learning to drive a car. You can easily learn to drive a car without knowing how the car engine works. Ofcourse to be a better driver you would want to eventually learn the workings of a car, so that you can maintain it better but simply learning to drive is good enough to start.

Please leave out comments with anything you don't understand or would like for me to improve upon.

Thanks for reading!
5 Tips To Work Smart
Tags: distraction, productivity, smartness
Published: 2020-11-07 10:24:15

#### **1> NO DISTRACTION :**
Distractions like social media, texting, or even just the notification sound are proven to be the number 1 cause for low productivity in work. Decide on a specific period of time you're going to work and turn off your phone/turn on the airplane mode so you don't have any distractions while working. 
Only practicing this daily take your focus and productivity to a new level

#### **2> USE THE POMODORO TECHNIQUE :**
Studies show, that working in chunks of work increase productivity in work. Cut your work into 20-25 minutes of work, and then 5-10 minutes rest. 
In the working time, your ONLY focus is getting ONE THING done. Turn on the airplane mode and focus for 25 min. Once the time goes off, take a break to get physically moving, take a short rest, and prepare for next Pomodoro. Usually after 4 sessions of 25 minutes it's best to plan a longer break for 30-50 MIN. 

#### **3> OUTSOURCE :**
Find your strengths and focus on them. Find your weak areas, and find the right person whose weakness is his strength. 
For example you're really good at copywriting for your business, but design is your weakness. Focus your time writing MORE copy, and find the right person to take that copy and make designs out of it. 
This will help you achieve more in less time, and maintain the HIGHEST QUALITY. 

#### **4> THE 6 GOALS RULE :**
Aiming to finishing 20 tasks in one day will probably just get you to procrastinate most of your work without focusing on QUALITY. Every single day, aim to finish no more than 6 things. 
Work until finishing these 6 goals for the day. Tasks that you didn't finish will always move to the next day. So if you finished 4 tasks, you can only add 4 more for the next day, keeping your list CLEAN with 6 tasks at a time. 

#### **5> PLAN AHEAD - USE THIS FORMULA :**
 ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/6842qcsvmx4a1lwtd2yf.JPG)

***Do you know any other technique to work smart?
comment down how you are working smartly....?***
Redirection with .htaccess and PHP
Tags: php, apache, webdev, writing
Published: 2020-11-07 09:58:03

I’ve been starting a new blog on my domain, for which I wanted to use the `blog` subdomain. However, this subdomain was already in use for all my coding-related stuff. So, I decided to move my current blog from `/blog` to `/coding` and upload my new blog to `/blog`. So far, so good. Now I have both of my blogs up and running. 

There’s just one problem: Any incoming traffic to existing posts on my blog would resolve to *404s*. In todays post, I’m gonna show you how I resolved that issue.

First of all, my domain runs on an apache server, so I decided to capture all 404s and redirect them to a specific errorpage. To do this, I needed to add the following statement to my .htaccess file, which is located in the root directory of my webspace.

```
ErrorDocument 404 /notfound.php
```

Note that it’s important to use a relative path to the php file. If you use an absolute path, you will override the query-string variable in php, which you might need later for the redirect.

I added the notfound.php file to my blog-directory, from where it will be resolved correctly. The file looks like this:

```
<?php 
  header("Location: https://coding.mjurtz.com" . $_SERVER["REQUEST_URI"], true, 301); 
  die(); 
?>
```

All it does is it takes the request uri, and appends it to the new domain, passing a 301 — permanent redirect back to the browser. And that’s it already — My old links are still working and I can work on both blogs separately.
Competitive Coding, this weekend ? Interview Questions !
Tags: python, codenewbie, competitive, programming
Published: 2020-11-07 09:50:16

Solving (competitive) coding problems or doing development or practising design patterns is something we do on a regular basis to keep us updated with the trend, while boosting our problem solving skills !

Here are some problems, I will make sure to solve this weekend:

☞ Sum of a Range of Integers
☞ Caesar Cipher
☞ Caesar Cipher Redux
☞ Log Parser
☞ Sudoku Solver

If you are looking to upgrade your skills before an interview or someone who just loves solving problem, then let’s do these 5 problems this weekend and nurture our analytical thinking !

[Python Interview Questions](https://realpython.com/python-practice-problems/)
A Path Towards The DEVelopment
Tags: hacktoberfest
Published: 2020-11-07 09:42:47


### [Intro Heading]
--Hi, I'm Yash and I'm new to this community. I joined DEV Community because of the interest in the Development things. I always try to be connected to any development community, so I can gain more knowledge from others.

--Participated in Hacktoberfest because of interest in Coding and Coding related things.


### Background
--I've some experience in Open Source. Like previously I'd uploaded my some projects on GitHub but never Contributed to other projects. Maybe because I wasn't aware of How to Contribute by Forking.

--I got here from Youtube. I follow CodeWithHarry to learn Coding Language and He once told if we can Push our valuable contribution to GitHub's open-source projects. So, I decided to try and gain some experience here too.

### Progress
--I'm quite happy with my progress in Hacktoberfest. After participation, I did contribute to more than 7 projects. Before the fest, I never had contributed to other's projects.

### Reflections
--It was an awesome experience. And yes, I'll participate again whenever I got the chance.

--I've made some connections too in GitHub.

--My next step is to make some good projects as Currently I'm searching for a job to enter in Development field.
CPAN Dashboard
Tags: perl, github, opensource
Published: 2020-11-07 09:28:37

---
title: CPAN Dashboard
published: true
description: 
tags: perl, github, opensource
//cover_image: https://direct_url_to_image.jpg
series: perl
---

The [CPAN Dashboard](https://code.perlhacks.com/) is an excellent way to visualize the status of your CPAN modules.
The same idea could be used by other CPAN authors and by authors of other programming languages as well.

[Dave Cross](https://dev.to/davorg/), the creator of the dashboard [posted about it here on dev.to](https://dev.to/davorg/a-cpan-dashboard-i1o)

{% youtube lejHLAtD23o %}
Top 5 NLP task you can do with python TextBlob
Tags: python, nlp, tutorial
Published: 2020-11-07 09:26:52

https://www.youtube.com/watch?v=Bp2Ewg-k0_A

This Video is about top 5 NLP task with TextBlob .I've used textblob library to perform some common natural language processing task like typos correction, sentimental analysis,language detection,language translation,Antonym finding , noun extraction.
So watch the video till the end to completely understand this topics

Official website for the library:-
https://textblob.readthedocs.io/en/dev/
what is a good react datasheet package?
Tags: react, database
Published: 2020-11-07 09:26:22

I really need something like [Notion.so](https://www.notion.so/) table or excels spreadsheet where I can create formulas. Also, I need it to be very customizable on the level of frontend (the looking) and on the backend, where I can create custom formulas or implement javascript code in the cells.
I tried [jexcel3](https://bossanova.uk/jexcel/v3/) but it is very primitive and I users can't edit footer nor drag and drop columns and rows, Also I tried [ag-grid]( https://www.ag-grid.com/example.php) but it doesn't support formulas at all, finally I tried [react-datasheet](https://nadbm.github.io/react-datasheet/) but users can't edit footers as well and it doesn't have a pattern recognition where I can write 1 and other cell 2 and select the tow cells and drag the selection to have automatically 1,2,3,4,5...
⚠️ Check your Hacktoberfest profile ⚠️ A flaw could have reversed your completion of the challenge without you knowing it
Tags: hacktoberfest, discuss
Published: 2020-11-07 09:18:13

*Note: Don't assume you haven't been affected and check your hacktoberfest profile! This problem applies even after conclusion of hacktoberfest on October 31st.*

Hi All,
 
I wanted to bring to attention an issue with hacktoberfest that was discovered over the past couple of days. This affects anyone who has pull requests still under review after hacktoberfest ended on Oct 31st.

## The problem

A previously validated PR will become invalid due to being marked as submitted to an *Ineligible repository*. This happens if the *hacktoberfest* label is removed from the repository after Oct 31st while the PR was still under review. This affects PRs not marked *hacktoberfest-accepted* which not everyone will mark, as the rules state a PR merged by a repo with the *hacktoberfest* label will count.

You can view the hacktoberfest rules at: https://hacktoberfest.digitalocean.com/details

I discovered this problem when I started receiving messages from authors who contributed to some repos I managed for hacktoberfest because their PRs were being invalidated by the *ineligible repository* tag although they were previously accepted.

If you want a detailed explanation of what is causing this, see the issue I raised with the organisers of hacktoberfest on github.
{% github https://github.com/digitalocean/hacktoberfest/issues/724 %}


## How to avoid your PRs being affected if they aren't already 

If you have PRs still under review check your profile now! Here's the link to access your profile:
https://hacktoberfest.digitalocean.com/profile

**If you submitted a PR to a repo that did not mark your PR as *hacktoberfest-accepted* request for the repo maintainer to do so for the remainder of the PR review period.** 

Otherwise, if they remove the *hacktoberfest* label from the repo before the review period ends your PR will become ineligible and no longer count.

## If you are affected

Unfortunately for those affected, we are still waiting to see if the organisers of hacktoberfest will fix this.

Send an email explaining you have been affected to hacktoberfest@digitalocean.com

Hopefully if more people get in contact they will be more likely to fix this :)

Thanks for reading and feel free to discuss the issue in the comments.