teleren/devto huggingface dataset:
Why Data Science
Published: 2021-08-02 18:36:19

##What is Data Science?
Data Science is everywhere. We see it everyday. Even hear about it on the news. But what is data science. Data science is the receiving, cleaning and understanding data in order to answer a variety of questions such as how many workers are needed, whether or not to approve a loan, even to detect fraud.
##What led me to choose Data Science
Growing up I was a gifted child. Unfortunately, along with many others, I fell victim to never learning how to learn. I did well in high-school, taking AP classes and ending with magna cum laude. But as I got to college and the workload increased, I was very overwhelmed. I went on academic probation after the first semester and decided to drop out after my third. I knew I wanted to do something with computer science as those were my most enjoyable classes but had no idea what to do next. Two years later I happen upon Flatiron School on Tiktok. I went through their free courses and Data science peaked my interest. The freedom to work from home, as well as the many kinds of opportunities Data science presents is what I found most appealing.
##What I want to do with Data Science
I am not the type of person who is happy and driven doing the exact same work for 20+ years. That is why I am a Data Scientist. 
What I am most interested to dive into is machine learning. But that will change as I grow and learn more and more. I want to help work with data that will combat climate change, grow infrastructure in developing countries, help with disease prevention rather than cures and treatments. But I also want to figure out statistically what's the best way to win a League of Legends game, and how traffic lights should work to better deal with traffic. Data science gives me all the tools I need in order to make a difference and answer all of the meta questions floating around in my head.
How I cleared my AWS cloud practitioner exam in 3 weeks? 
Tags: cloud, beginners, aws, career
Published: 2021-08-02 18:53:19

###A little about myself :hatched_chick:

I am a software engineer, working for about 3 years now. I decided to give my self some challenge for my professional development so I chose to learn about AWS. I had no prior experience with cloud concepts, so if you are new to cloud, then the foundational certification is the way to go!

The first thing I would suggest is to set a date for your exam:

The best motivation to start preparing for the AWS certified exam is to **Schedule the exam**.

####How to schedule the exam?
Follow this link to [Schedule Exam](https://home.pearsonvue.com/Clients/Amazon-Web-Services.aspx). Since I was planning to give the exam from my home office, I opted for the `Pearson Vue` option. 

Once you register for the exam, the confirmation mail will have the necessary details needed for the exam. [Video Reference](https://www.youtube.com/watch?v=hp_4VKvuA2I)

###What resources I used:

* `A Cloud Guru`: 
A cloud guru [course](https://acloudguru.com/course/aws-certified-cloud-practitioner) set a foundation for what to expect on the exam, I found the chapter summary and exam tips to be very helpful.


* `Udemy practice exams`: 
After preparing for about 2 weeks (2 hours everyday), I started giving some practice tests on Udemy. I found these exams useful since they gave me a taste on what kind of questions I should expect in my exam. [Udemy practice tests](https://www.udemy.com/course/aws-certified-cloud-practitioner-practice-test/)


* `White papers`: 
I did not get a chance to go over all the white papers, but I did take a glance on the glossary and read through the topics which I was not comfortable with. I would recommend reading the white papers when you are close to the exam.


* `AWS Free training`: 
This course helped me tremendously to understand cloud concepts with real life exams. Huge shout out to the content creators!! [AWS free training](https://aws.amazon.com/training/digital/aws-cloud-practitioner-essentials/)



###On exam day: 

I just read through the notes I prepared for the exam during the cloud guru course I took and the Udemy practice questions that I answered incorrectly. Try to keep calm and take a walk! :relieved:


###Conclusion:

I hope these resources, links and my experience helps you in passing your AWS Cloud Practitioner Exam, and if you have any questions or need help, please don’t hesitate to reach out to me or leaving a comment below!

**GOOD LUCK!!** 👍🍀
Startup Digest Developer - Issue #2
Tags: discuss, programming, productivity, writing
Published: 2021-08-02 18:42:05

This issue highlights :
How to incorporate a GitOps approach into enterprise architecture - an illustrated guide from Bob Reselman.

How Soroco manages to build large scale systems and products with Python.

For developers concerned with memory allocation by their application, Prof Daniel Lemire explains how to measure memory usage: virtual versus real memory.

As a principal engineer, you can effectively be operating as a team of one – and that makes it a little trickier to manage your time — Sabrina Leandro on how to set and prioritize goals as a principal engineer?

Dan North talks about the purpose of testing.

Gergely Orosz explains, what are the key traits of product-minded engineers?

Google Cloud’s CEO Thomas Kurian spoke about his plans for making the Cloud business unit turn a profit and rise above it’s now third place.

Apple’s ML researchers have developed a no-code AI platform called ‘Trinity’ For Complex Spatial Datasets.

LINK - http://developer.startupdigest.com/issues/startup-digest-developer-issue-2-699218
.NET 5 with RavenDB Series -2
Tags: dotnet, csharp, ravendb
Published: 2021-08-02 18:24:09

## Installing RavenDB

In this second post of the series we will download RavenDB and run it through Docker.
For that you will need to have Docker, you can download it [here](https://www.docker.com/get-started).

####Running on Docker
If you have Docker installed, run the following command on terminal:
``` docker run -p 8080:8080 -e RAVEN_ARGS="--Setup.Mode=None --License.Eula.Accepted=true" ravendb/ravendb ```

With this command Docker will download the latest version of RavenDB and activate a new container to host it. Note that we run in developer mode without any authentication. You can see how RavenDB works in Docker by following the [official documentation](https://ravendb.net/docs/article-page/4.0/csharp/start/installation/running-in-docker-container).

####Accessing the Dashboard
If you ran the previous section, RavenDB will be running locally and you can access it at:
``` http://localhost:8080 ```

When accessing the RavenDB dashboard for the first time, you will need to do a little configuration. You just need to answer the questions. You can consult the [official documentation](https://ravendb.net/docs/article-page/4.0/csharp/start/getting-started) to learn more.

If everything went as expected you will see RavenDB Dashboard ✨🎉🎇

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7oi3fhozjein7utp88d5.jpg)

####Creating a Database

To create your first database
1 - Select the Database option in the left panel.
2 - Click on the New Database button.
3 - Type a name for the new database (Northwind is recommended)
4 - Click on the Create button

✨🎉🎇 You just created your first RavenDB database. But it's empty.

####Loading Sample Data

Let’s load some sample data into our database.
1 - Select *Databases* on the left panel
2 - In the right panel, click on the name of the database you just created (that is empty for a while)
3 - In the left panel, click on *Settings*, and then *Create Sample Data*
4 - Click on the *Create* button

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

The Northwind database is the sample database that comes with SQL Server; It has been used for decades as the sample database in the Microsoft community.
Likewise it is used by the RavenDB team to give us a nice example of data. 💖👏🤩

In the Documents section (left pane) you will see that there are many example documents for you to use.

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

We've just created our first database and loaded some sample data.
And now we have everything we need set up to start our first .NET app with RavenDB.
In the next section we will do this.

You can get more information about this lesson at [Bootcamp RavenDB](https://github.com/ravendb/bootcamp/tree/v4.x/src/unit1/lesson1)
How to create custom Azure Devops Extensions
Tags: devops, azure, tutorial, cloudskills
Published: 2021-08-02 18:09:26

This video is the first part in a series that will show you how to make custom vsts or azure devops tasks/extensions. It does follow the Microsoft Documentation closely, but future installments will show you how to make a powershell task instead of using node.js and typescript.

{% youtube S2A_4pHzQ54 %}

there is also a part 0 that covers dependencies installation in case you need help or guidance.

{% youtube ZcEeIUxHMy8 %}
Snippets in C#: Shorthand Instantiation
Tags: beginners, csharp
Published: 2021-08-02 18:03:21

In order to eliminate some redundancy or increase readability, you can shrink the way you instantiate classes.

See the example below:

{% gist https://gist.github.com/mattkenefick/38f03c5aef28eca0b4f7b188137d6dde %}
“Compiled” Python files
Published: 2021-08-02 17:39:43

To speed up loading modules, Python caches the compiled version of each module in the pycache
directory under the name module.version.pyc, where the version encodes the format of the compiled file;
it generally contains the Python version number. For example, in CPython release 3.3 the compiled version of
spam.py would be cached as __pycache__/spam.cpython-33.pyc. This naming convention allows compiled
modules from different releases and different versions of Python to coexist.
Python checks the modification date of the source against the compiled version to see if it’s out of date
and needs to be recompiled. This is a completely automatic process. Also, the compiled modules are
platform-independent, so the same library can be shared among systems with different architectures.
Python does not check the cache in two circumstances. First, it always recompiles and does not store the
result for the module that’s loaded directly from the command line. Second, it does not check the cache if
there is no source module. To support a non-source (compiled only) distribution, the compiled module must
be in the source directory, and there must not be a source module.
Some tips for experts:
• You can use the -O or -OO switches on the Python command to reduce the size of a compiled module.
The -O switch removes assert statements, the -OO switch removes both assert statements and __doc__
strings. Since some programs may rely on having these available, you should only use this option if
you know what you’re doing. “Optimized” modules have an opt- tag and are usually smaller. Future
releases may change the effects of optimization.
• A program doesn’t run any faster when it is read from a .pyc file than when it is read from a .py file;
the only thing that’s faster about .pyc files is the speed with which they are loaded.
• The module compileall can create .pyc files for all modules in a directory.
• There is more detail on this process, including a flow chart of the decisions
socket multiple nodes
Published: 2021-08-02 17:04:31

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

Hi everyone,

I want to make a cluster of nodes , where each node will be connected each other with web-socket.
means all nodes will be both client and server . 
is this possible ? 
if yes , anyone can refer any docs , git-repo or any other material which I can follow.

Thanks in advance
CAP Theorem with examples
Tags: systems, cap, distributedsystems, database
Published: 2021-08-02 16:39:51

CAP (Consistency, Availability, and Partition tolerance) theorem helps us to make our choice while designing distributed systems. We can incorporate any two of these 3 functionalities into our system, not all of them.
##Consistency: 
If we read immediately after writing to database, our system should return the updated result.
##Available: 
System should operate 24/7 without any downtime.
##Partition Tolerance: 
Tolerating partition means we are agreed to embrace distributed system - our machines are in different networks. There might have some sorts of network outage between different networks in distributed systems, but in that case our system should be operational. If our system does not tolerate network partition, then it is an application with one machine - not a distributed system. 

If we choose to implement distributed system, that means, we are tolerating network partition. So, in the presence of P(Partition tolerance), we either choose C(Consistency) or A(Availability).

###Scenerio 1:
A small system has one machine for database. No sharding, no replication.

Comment: This system ensures CA, i.e. Consistency and Availability compromising Partion tolerance.

###Scenerio 2:
When we post to facebook, instagram, then instantly our friends might not see our post.

Comment: This system ensures AP, i.e Availability and Partition Tolerance comprosmising Consistency.

###Scenerio 3:
When we write at google doc where lots of things can be handled at client side, and client can save the doc whenver the server is available.

Comment: This system ensures CP, i.e. Consistency and Partition tolerance compromising Availability.
Operating Systems: Program Vs Process, What's the difference?
Tags: computerscience, tutorial, os
Published: 2021-08-02 16:52:43

## A Text Book Definition

A program in itself is just a text i.e. a *passive* entity. 

When you run a program that is open an executable( .exe or a.out ), O.S creates an *active* entity known as process. A process is created for the program execution. 

> 💡**A process is a program in execution**

Confused, right? Let's take an example to make this distinction super obvious.

## Understanding by Example 🧶

![Image1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7vuhkyg3seyopr39x156.jpg)

Let's say you wrote a C program, `example.C`

You compiled it into `a.out`  using `gcc example.C` command. 

It is important to note here is both of the files, `example.C` and `a.out` are programs only - a set of instructions.

Both files reside in the *secondary* memory i.e your hard disk.

Now when you type `a.out` in the terminal to execute the compiled file, your operating system creates a data structure( process ) for the program execution in the *main/primary* memory. It looks like the following, 

![Image 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ky27vcp650sjd0aigunq.jpg)

A good analogy is to think of **processes** like our **body** and **program** as our **soul**. The body cannot exist without a soul and the soul needs the body to take action! 

The operating system's job is to give the set of instructions in `a.out` to CPU for execution one by one. 

While executing a program, 

1. Stack space is used for *function calling* - to store **activation records** ( information about called function )
2. Heap space is used for *dynamic memory allocation* - memory allocated using `malloc, calloc` function is present in this section of the process.

It is important to note that, the *stack grows downwards* and the *heap grows upwards* since before program execution operating system cannot predict the exact size of both.

> ❗ Don't confuse this heap portion with **heap** data structure, they both are completely different things.

That's it!
How to change your page layouts in the browser
Tags: extension, css, chromeextension, html
Published: 2021-08-02 16:44:57

Have you ever wanted to edit your web app using developer tools and you end up using much time than? We are going to see how we can change that just in seconds, how do we do that let see it in the leading paragraphs. Enjoy



**Exception in the article**


- develop much faster than you normally do


- increase productivity


- work smart but not hard


Let get into it so, firstly download the extension in the web store now. 

**the extension name is called visbug**

**Windows**

 **Click or press alt + shift + d**


**Mac**

 **Click or press option + shift + d**

it will look like this.

![React App.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1627909985039/_PzzDsHcb.png)


**As conclusion**, it is important to work fast but effectively as the say goes work smart but not hard only if you need it. if you need more details about the extension, go to their official site and read docs(documentation) and also the site you see is all developed using the **visbug **extension
TIL: VSCode snippets can transform inputs
Tags: todayilearned, vscode, typescript, react
Published: 2021-08-02 16:26:16

I'm on a quest to make my development tooling more efficient for my personal wants and needs. This lead me to adding some snippets to VSCode.

I added a snippet for creating a usage of React's useState hook and found my first rendition subpar:

```json
//...
"reush": {
	"prefix": "React useState hook",
	"body": "const [${1:variable}, set${1:variable}] = useState<${2:type}>(${3:default});$0"
}
//...
```

When I used this snippet first I'd put the variable name `isEnabled` which would also populate the setter which was handy. 

```typescript
const [isEnabled, setisEnabled] = useState<boolean>(false);
```

Unfortunately, it would populate the setter with the exact same input so the setter would be left as `setisEnabled` so I'd have to go back and edit this entry.

Finding this I then made a discover from a quick web search: VSCode can transform the input!

A quick update to the snippet shows this in action:
```json
"reush": {
	"prefix": "React useState hook",
	"body": "const [${1:variable}, set${1/(.*)/${1:/capitalize}/}] = useState<${2:type}>(${3:default});$0"
}
```

Now, the same snippet transforms the input! I type in the variable name `isEnabled` which gets duplicated to the setter. When I hit tab to move to the next type field, the setter transforms to be capitalised leaving:

```typescript
const [isEnabled, setIsEnabled] = useState<boolean>(false);
```

Wonderful!

![useStateHook](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l4yqejrt09t0f59c9o25.gif)

Other transforms include upcase, downcase, camelcase, pascalcase. Read more about it in [the VSCode documentation](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_variable-transforms).
Why MongoDB???
Tags: mongodb, node, mongoose, n0sql
Published: 2021-08-02 16:25:40

MongoDB is a Document database with the scalability and flexibility that you want
with the querying indexing that you need.
Scalability is the capacity to be changed in size or scale while
Flexibility is the quality of being modified easily without being broken.

Key MongoDB Features
Document Based: MongoDB stores data in documents (field-value pair data structures, No-SQL) instead of rows and column styles in traditional database in No-SQL pronounced (NO Sequel Data abase)
Scalability: It is very easy to distribute data across multiple machines as your users and amount of data grows. so whatever you do MongoDb gives you the room for you to grow.

Flexibility: There is no need to define a documents data schema before filling it with data meaning each documents can have a different number and types of field, and we can also change this fields all the time. And all this is really inline with some real life business situation and therefore it proves really useful]

Performance: Thanks to embedded data models. indexing, shading(divining a larger part into smaller unit), flexible documents, native duplication
MongoDB has proven to be a very performance database.

Open Source: MongoDB is a Free and open source database published under the SSPL license MongoDB is probably the most used Database with Node.js

BSON : It is the data format for MongoDB, it is used for data storage. like JSON but typed. So MongoDB document are typed. In relational Each field is called a column. It is arrange in table structures.
Another interesting feature in MongoDB is the concept of Embedded Documents. which is again something not present in relational database.
It is also called De-normalizing. Including related data into a single document. This allows for quicker access and easier data models (its not always the best solution though)
The advantage is that it allow us to read all the data at once
In Relational Database it is not possible to embed data, so you have to create a whole new table for the data and then link with some unique key from the field.

Finally the Maximum size for each Document in BSON is 60mb but this might increase in the future. and then each Documents have a unique ID once which act as a primary key to the document. It is automatically generated once you create a BSON documents. and so we don't have to worry about it.
With this understanding that you have of MongoDB, I believe you will start finding interesting to work with it and if you are SQL fan, yoop It doesn't take anything away to try different stuffs. Try MongoDB; you will love it!!!

MongoDB Document structure in picture.
![JSON](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cmqpiukqhmf9jdc2mij1.jpg)
tmux ls
Tags: cli, linux, tmux
Published: 2021-08-02 16:07:52

---
tags: ['cli', 'linux', 'tmux',]
series: tmux
title: tmux ls
canonical_url: https://waylonwalker.com/tmux-ls/
published: true
---

tmux ls will list the sessions that you have running within the tmux server if
tmux is currently running.  This is handy to combine with commands such as `attach`.

``` bash
tmux ls
```
https://waylonwalker.com/tmux-attach/

Be sure to check out the full youtube playlist and subscribe if you like it.

[![tmux playlist on youtub](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v4cgo76y53s1hwykajo1.png)](https://www.youtube.com/playlist?list=PLTRNG6WIHETB4reAxbWza3CZeP9KL6Bkr)

{% post https://dev.to/waylonwalker/how-i-navigate-tmux-in-2021-2ina %}

> Also check out this long form post for more about how I use tmux.