fabiochiu/medium-articles huggingface dataset:
8 Fundamental Statistical Concepts for Data Science
By: Rebecca Vickery
Tags: Editors Pick, Education, Getting Started, Data Science, Statistics

4. Probability

Probability, in simple terms, is the likelihood of an event occurring. In statistics, an event is the outcome of an experiment which could be something like the rolling of a dice or the results of an AB test.

Probability for a single event is calculated by dividing the number of events by the number of total possible outcomes. In the case of, say, rolling a six on a dice there are 6 possible outcomes. So the chance of rolling a six is 1/6 = 0.167, sometimes this is also expressed as a percentage so 16.7%.

Events can be either independent or dependent. With dependent events, a prior event influences the subsequent event. Let’s say we have a bag of M&M’s and we wanted to determine the probability of randomly picking a red M&M. If every time we removed the selected M&M from the bag the probability of picking red would change due to the effect of prior events.

Independent events are not affected by prior events. In the case of the bag of M&M’s if each time we selected one we put it back in the bag. The probability of selecting red would remain the same each time.

Whether an event is independent or not is important, as the way in which we calculate the probability of multiple events changes depending on the type.

The probability of multiple independent events is calculated by simply multiplying the probability of each event. In the example of the dice roll, say we wanted to calculate the chance of rolling a 6 three times. This would look like the following:

1/6 = 0.167 1/6 = 0.167 1/6 = 0.167

0.167 * 0.167 * 0.167 = 0.005

The calculation is different for dependent events, also known as conditional probability. If we take the M&M’s example, imagine we have a bag with only two colours red and yellow, and we know that the bag contains 3 red and 2 yellow and we want to calculate the probability of picking two reds in a row. On the first pick, the probability of picking a red is 3/5 = 0.6. On the second pick we have removed one M&M, which happened to be red, so our second probability calculation is 2/4 = 0.5. The probability of picking two reds in a row is therefore 0.6 * 0.5 = 0.3.
Code a Deep Neural Network
By: Jeremy Zhang
Tags: Artificial Intelligence, Getting Started, Python3, Deep Learning

Code a Deep Neural Network

Photo by timJ on Unsplash

In last post, we’ve built a 1-hidden layer neural network with basic functions in python. To generalize and empower our network, in this post, we will build a n-layer neural network to do a binary classification task, in which n is customisable (it is recommended to go over my last introduction of neural network as the basics of theory would not be repeated here).

All images created on my own, referred images are source-added.

Weights Initialization

Firstly, weights need to be initialized for different layers. Note that in general, the input is not considered as a layer, but output is.

(For detailed training and testing process, please check here)

We’ve learnt that for lth layer:

where n^[0] equals the number input feature.

Consider a neural network below:

In this case, the first W^[1] would have shape (4, 2) , and the second W^[2] would have shape (1, 4) .

Where input requires to be a list, for the case above the input layer would be

[2, 4, 1]

And our initialized weights need to be small enough so that the gradient would large in the backpropagation process and learning would be faster.

Forward Propagation

The forward process would be straight-forward as listed below:

Where l is the lth layer and g(x) is the activation function. Here we would use 2 different activation function:

All the function above applies to matrix.

The forward propagation would be following the equations above. Note that in our implementation, except the last layer we use sigmoid activation, the rest we use relu activation function.

Cost Function

Still we consider this a binary classification, the cost of a batch would be:

Where a is the predicted value, and y is the actual one.

Backward Propagation

Now that our forward process has finished, in order to let our model to improve through iterations, let’s get to the key which is backward propagation.

[source: https://github.com/enggen/Deep-Learning-Coursera ]

The backward gradient can be calculated in recurrent fashion:

First, implementation of derivative of sigmoid and relu is required.

For symmetrical reasons, here we have both functions with the same input even though it is not required.

Following the equations above, we have our implementation of backward propagation. Note that except the last layer where sigmoid function is used, the rest we all apply relu derivative to get the gradients.

Now given the gradients, we have our weights updated as following:

Apply on Dataset

Let’s have our model apply on created dataset with 200 features.

Now let’s have our model trained.

Here we have a 3-layer NN with 200 input features.

To have the detailed training process, please check my github.
Popular go/links to Get Started
By: Go Links
Tags: Golinks, Getting Started, Tools, SaaS, Productivity

Building a good base of initial go/links is crucial to having a successful adoption of go/links at your company.

In the beginning, creating those first few go links does take some thought because the possibilities are endless. Each company is different, and the go/links that are popular at your company will be different from another company depending on the size of the company and industry.

Here are a few guidelines and tips to help you get started when creating those first few go links.

💡Not sure how to create a go link? Watch this:

When creating the initial set of base go links, remember these tips

Keep it short

Make it memorable

Be general

A good example is go/docs. It’s short, easy to remember and can be used by everyone.

A bad example is go/microsoft-word-document. It’s long, hard to remember, and is not general. If your company one day wants to switch from Microsoft Office to Google Docs, everyone will need to remember a new link. But with go/docs the go link can stay the same but the URL can change.

Need some ideas?

If you’re new to the company, find someone who can help champion the effort of building out the initial go links. Someone who’s been with the company often, and knows which tools and websites employees access the most.

Here is a list of the most popular go/links we’ve seen companies use to get started, and you should use them too!
Before I Officially Become a Year Older 🎂
By: Arisa Chelsea Ueno
Tags: Birthday, Getting Started, Life Lessons, Future, Japanese

(Japanese follows English. / 日本語は英語の後に続きます。)

My habit for welcoming birthday

This is probably one of the things I keep doing almost every year, but before I officially get older on my birthday on October 25th, I usually try to zoom out from the current situation and freely picture myself in the near future in a larger scale. I’ve recently been thinking a lot to figure out how I’d like to spend my lifetime for whom and for what, and how I shape my future with those.

To figure them out, I usually end up trying a bunch of different things. Also, lots of stuff makes me have a principal that we should go and see people we care wherever they are especially before we finally regret something we didn’t do only when the time is up. Experiences are a great teacher all the time. One of the superpowers we have is empathy which could give us a great reason to change our society better. The more we experience, the more empathy we can really feel as it’s just like personal matters.

Our lifetime doesn’t last forever (unless you are one of the superhero like Avengers haha), we might have to be a bit smart how we divide our lifetime and resources. However, it doesn’t mean we have to hurry up and run for well-prepared perfect plans. Being imperfect is a perfect reason to collaborate with others. Unplanned events happen all the time, but those are actually a spice of our life.

Take a detour. Get lost. Enjoy unexpected happenings. Tell your story. Inspire people. Connect and collaborate. Build an inclusive community. Design a sustainable cycle to make everyone feel they safely can be who they really are and feel they belong somewhere so that they always have a place to call “home” to go back anytime they want. That’s the future I’d like to see and create as I get older.

Birthday usually tends to be a day to eat a cake with family and friends or get some birthday cards and gifts, but before you actually go to your own party and have fun, thinking of your future with free ideas and mindset wouldn’t be a too bad idea.

This annual constant habit potentially gives you more reasons to laugh in your life. Please share your care and attention with yourself who is gonna live after 5 or 10 and even more years later. The current situation directly goes to the future. Hope everyone has great years ahead especially with this welcoming-birthday habit.
How To configure GIT in your system?
By: Mutex Tech
Tags: Git, Getting Started, Gitlab, Github, Bitbucket

Download GIT:

This should be the easiest part. The topmost google search result for download git “your OS” should link you to the download page.

For debian based linux systems executing the command below will do the work:

sudo apt-get install git

After installation try configure Global Value for Git and SSH keys in Terminal.

git config --global user.name "Your Name"

git config --global user.email "your-email@address.com"

ssh-keygen -t rsa -C "YOUR@EMAIL.com"

for example:

git config --global user.name "Niraj Nepal"

git config --global user.email "niraj@mutextech.com.np"

ssh-keygen -t rsa -C "niraj@mutextech.com.np"

Just press Enter or Yes when system prompt. Next step is to take the newly generated SSH key and add it to your Github/Bitbucket/Gitlab account. You want to copy and paste the output of the following below command and paste it here(for github users).

cat ~/.ssh/id_rsa.pub

For windows:

Browse into C:\Users\YourUserName\.ssh and look for the file id_rsa.pub. Copy the contents of the file and paste it in ssh-keys section of your Github/Bitbucket/Gitlab account.

Once you’ve done this, you can check and see if it worked:

ssh -T git@github.com //for github

ssh -T git@bitbucket.com //for bitbucket

ssh -T git@gitlab.com //for gitlab

You should get a message like this:

Hi Niraj! You’ve successfully authenticated, but GitHub does not provide shell access.

Congratulations! You can now create a git repository on your system and connect with your remote.More details on the next Part.
How to run Julia on Google Colab
By: Uday Yadav
Tags: Julia, Getting Started, Data Science, Colab, Machine Learning

From here, you have 2 options

Utilize Colab’s GPU

Just run on CPU

Just using CPU

Create a file with .ipynb extension and paste the following JSON in it

This article was written in June of 2020, please check for the newer version, if you can find it.

{

"nbformat": 4,

"nbformat_minor": 0,

"metadata": {

"colab": {

"name": "Julia on Colab.ipynb",

"version": "0.3.2",

"provenance": []

},

"kernelspec": {

"name": "julia-1.2",

"display_name": "Julia 1.2"

},

"accelerator": "GPU"

},

"cells": [

{

"metadata": {

"id": "oMSuTc3pDlHv",

"colab_type": "code",

"colab": {}

},

"cell_type": "code",

"source": [

""

],

"execution_count": 0,

"outputs": []

}

]

}

Open Google Colab and upload this notebook (don’t change any notebook setting now, even if google colab prompts you to do so)

Copy-paste the following code in a cell and run it using Shift+Enter :

!curl -sSL "https://julialang-s3.julialang.org/bin/linux/x64/1.2/julia-1.2.0-linux-x86_64.tar.gz" -o julia.tar.gz !tar -xzf julia.tar.gz -C /usr --strip-components 1 !rm -rf julia.tar.gz* !julia -e 'using Pkg; pkg"add IJulia; precompile"' !echo "DONE"

Again, this is using Julia version 1.2, to use the newer version, just replace the URL of curl with the version you desire

That’s is, you can run your Julia code on colab with ease

Utilize Colab’s GPU

if you want the juicy graphics horsepower, please refer to this forum post :

CONGRATS !!!

I hope you were successful :

Follow me on

Github: https://github.com/dev117uday

Linkedin: https://www.linkedin.com/in/uday-yadav-4995a818a/
Getting Started with YAML Configurations.
By: Randil Tennakoon
Tags: DevOps, Getting Started, Kubernetes, Yaml, Configuration

Getting Started with YAML Configurations.

Photo by Arif Riyanto on Unsplash

YAML is a human-readable data-serialization language which is used to store information in key: value format as similar to the JSON. If you’re already familiar with JSON, you know this key: value format. But if you’re not familiar with JSON, then don’t worry, in this post you will understand YAML configurations easily.

What YAML stands for? it says, YAML Ain’t Markup Language.

When compared to other languages, YAML is so easy to configure and also super easy to read and understand. Even though YAML is easier to configure, these files could do a lot of things in DevOps.

You could save a YAML configuration file using either .yml or .yaml extension. Let’s create a simple YAML file.

Here, you can see, we store information in a key: value format and also we could store different type of data in YAML such as string, integer, boolean, etc. For string type, you can use either single quotes or double-quotes. When you need to comment out something, use a # at the beginning of the comment as above.

Let’s focus to the below example.

We created an employee object and you can see, using YAML we can store more information related to an object and the code is clean and easy to read. In YAML configuration, indentation is more important and it helps you to define the level and scope of the children of that object. Therefore, keep one space at the beginning and increase it gradually when you go into different levels. Also, at the bottom of the code, you will see another data type which is called list and it allows you to store multiple values within the same field.

In the below example, you can see how to store an object in a list item.

There are different ways of storing an object in a list item. You can find them easily by spending a couple of minutes on your browser and you have the freedom to use any of your favourite method.

The next thing that I want to emphasise on is, you can create multiple YAML configurations in a single YAML file. See the below example.

The above example is a sample code which we use in Kubernetes and there you can see three dashes --- and it indicates the separation of YAML files. This feature in YAML is really helpful when merging YAML files into a single file.

Conclusion

In this article, I wanted to make a beginning for you to start with YAML configuration and these YAMLs are important for anyone who’s looking to start with Kubernetes and DevOps.

Read more
Another way to Find Product Ideas
By: Hieu Nguyen, Jack
Tags: Getting Started, Startup, Product, Ideas, Startup Ideas

Start to Work on Something

The way to get startup ideas is not to try to think of startup ideas. It’s to look for problems, preferably problems you have yourself — Paul Graham

Photo by Joshua Earle

A good idea always starts with a problem, especially the one you have. That way, you can develop something to solve it, while being an actual user. But nowadays, most common problems are solved. We don’t often face new problems anymore.

There is another way to find problems is to start working on something. Because often, you will start to see problems that only a few people have worked on, or there isn’t a satisfied solution yet. And there can be good product ideas.

Find problems by starting to work on something

In 2018, I rent a 3 bedrooms apartment not far away from Sydney city. One small bedroom is for me, and I rent out other spaces.

But there was one problem, some tenants don’t pay on time and don’t keep the payment logs. We had a few issues with late payments, needed to go through the payment log, again and again, to figure things out.

I started to look for an app to manage rental payments, but not seeing anything interesting. Then I decided to build the app myself, with React Native. Since it supports cross-platform, and I was comfortable using it.

Though, I realized React Native didn’t have many database options. AsyncStorage was slow, RealmDB was buggy for debugging, firebase wasn’t so offline support.

So I started working on Vasern, a database for React Native.

Validate the idea with the audience

Even though it was an actual problem I have, it’s always a good idea to test with the audience — the developer community.

When the MVP ready, I posted it in a few places. But most of the attention arise from Reddit, and 2 Slack channels.

Then, people started to talk about Vasern in a few Facebook groups. And it got noticed by a few medium-size tech news/blogs. I remember the first 3 websites wrote about it were Jaxeter, programmer, and Entwickler. Which sent a bit of traffic to the landing page.

News and blog websites often get their source ideas from other websites. Which lead Vasern to start spreading out to other medium-size tech news website too. It was a great experience.

Fast forward to today, there are apps in production use Vasern as a local database. One I closed with was Litely. And the database still gets mentions on news, blog articles, or in some presentations once in a while.
How I Got Started with Design
By: Emmanuel Akpan
Tags: Getting Started, Design Career, Design, Graphic Design

I would say my design career actually got started in March 2018, but let us go back in time a bit to get full context on what was going on before then.

Photo by Estée Janssens on Unsplash

Pre-March 2018

I got into into the University in August 2016 to study Petroleum Engineering. In September, I joined a unit in the school called Technical Crew. The unit had people with different skill-sets ranging from graphic design to animation, photography, etc. It was really amazing to see all the creative works they produced and I really wanted to learn how to do things like that. Design a cool flyer, make a cool cartoon animation, edit a photo to perfection, just anything that had a creative feel towards it. Prior to this, I never had any interest in art or design of any form. I couldn’t draw, I had no idea of any design software, all I had was interest.

I quickly got Adobe Photoshop installed on my laptop and work begun. As you can tell already, my initial experience was difficult. I had to constantly go in YouTube, watching videos on how to do certain things or ask my friends for help. Eventually, I got a hang of the software and I could do some basic things like making simple quotes and flyers. I began making these for the notice board we had in the service unit which gave me some good experience with the Photoshop interface.

This went on for a while and my knowledge on design in general gradually improved. I started reading about the fundamentals of design together with watching lots of design videos as well as on YouTube. Also, the designs which I worked on and printed out helped me gain some attention from other students. People began to ask who was making these designs. Eventually, I got contacted in by someone who needed a poster design for a Choir Concert coming up in school. This was around late December 2017 and the concert was to hold on March 2018. I was excited to work on the project as it was something, I had some good experience in. We got talking about various concepts and after a couple of weeks, I came up with a final design for the poster. I presented it to him and he loved it. I had so much excitement in me but I kept it calm on the outside. To add to the feeling, this was the first time I actually got paid for a design (Whoop! Whoop!).
Things to know — Amazon Aurora DB
By: Deepak Sood
Tags: Relational Databases, Getting Started, Things To Know, Amazon Aurora, AWS

Features that are worth exploring

Parallel query for Aurora MySQL

Aurora MySQL parallel query is an optimization that parallelizes some of the I/O and computation involved in processing data-intensive queries. The work that is parallelized includes retrieving rows from storage, extracting column values, and determining which rows match the conditions in the WHERE clause and join clauses. This data-intensive work is delegated (in database optimization terms, pushed down) to multiple nodes in the Aurora distributed storage layer. Without parallel query, each query brings all the scanned data to a single node within the Aurora MySQL cluster (the head node) and performs all the query processing there.

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-mysql-parallel-query.html

Cloning Aurora

Using database cloning, you can quickly and cost-effectively create clones of all of the databases within an Aurora DB cluster. The clone databases require only minimal additional space when first created.

Database cloning uses a copy-on-write protocol, in which data is copied at the time that data changes, either on the source databases or the clone databases. You can make multiple clones from the same DB cluster. You can also create additional clones from other clones. For more information on how the copy-on-write protocol works in the context of Aurora storage, see Copy-on-Write Protocol for Database Cloning.

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Clone.html

Backtracking to an earlier point in time

Backtracking lets you rewind the Aurora DB cluster to the time you specify. With backtracking enabled, Aurora keeps a record of changes to your database and allows you to switch to a previous consistent state. With this feature you can easily undo mistakes. For example, if by accident you perform a destructive action, such as a DELETE without a WHERE clause, you can quickly backtrack to a state before the accident. Unlike restoring from a snapshot or automated backup — a slower operation, backtracking lets you move back and forth in time in a matter of minutes.

Backtracking is not a replacement for backing up your DB cluster so that you can restore it to a point in time.

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Managing.Backtrack.html

Saving data into (Loading Data from) text files in Amazon S3

You can use the SELECT INTO OUTFILE S3 statement to query data from an Amazon Aurora MySQL DB cluster and save it directly into text files stored in an Amazon S3 bucket. You can use this functionality to skip bringing the data down to the client first, and then copying it from the client to Amazon S3. The LOAD DATA FROM S3 statement can use the files created by this statement to load data into an Aurora DB cluster.

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Integrating.SaveIntoS3.html

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Integrating.LoadFromS3.html
Beginner’s Guide to Cloud Computing
By: Advaith U
Tags: Microsoft Azure, Google Cloud Platform, Getting Started, Amazon Web Services, Cloud Computing

Now we hear the term cloud computing quite often but do you know what it is. Then this article is for you. Consider an example while using a pen you don’t have to know how it’s made or how it works. You only want to know whether you can use it comfortably right.

As a technology professional, it would be nice to have these same benefits when developing and deploying applications. Storing data, streaming video, or even hosting a website all require managing hardware and software. This management is an unnecessary obstacle when delivering your application to your users. The solution is for this scenario is cloud computing.

Cloud computing is renting resources, like storage space or CPU cycles, on another company’s computers. You only pay for what you use. The company providing these services is referred to as a cloud provider. Some example providers are Microsoft, Amazon, and Google.

The cloud provider is responsible for the physical hardware required to execute your work, and for keeping it up-to-date. The computing services offered tend to vary by cloud provider. However, typically they include:

Compute power — such as Linux servers or web applications

— such as Linux servers or web applications Storage — such as files and databases

— such as files and databases Networking — such as secure connections between the cloud provider and your company

— such as secure connections between the cloud provider and your company Analytics — such as visualizing telemetry and performance data
Hop on Board
By: Roop Saini
Tags: Help, Outreach, Tutorial, Getting Started, Imodeljs Sample

Recently, we received several emails about how to get started with iModel.js. Some people were new to TypeScript, some were new to React and some just wanted to write some good ole lines of code.

This reminds me of my first day at this job.

I was new to the industry and terrified of the learning curve. I secretly prayed that a future version of me would show up and tell me everything I needed to know.

Luckily, time has passed…and now I am a future version of me.

So I present to you: an iModel.js learning path.

First, let’s build a foundation.

Here are some prerequisites — I recommend watching these if you are new to developing with iModel.js:

Intro video: describes iModel.js mission. Typescript tutorial: short and quick. React tutorial: for conceptual understanding (JS-based). React tutorial: short TypeScript example.

Once you have the basics, the next step is to review some iModel.js specific material.

So we all have our boots strapped.

Overview video: iModel.js business value | developer perspective. The samples repo: contains code samples and apps. Code walkthrough: of an interactive app.

Once we have a basic understanding of an iModel.js app, next let’s stroll through the frontend samples. These samples showcase how to implement some powerful features.

^ a quick stroll ^

You can learn exactly how to do all of the above, right here.

What’s even better…there are more samples coming! We are always looking for new topics to cover. And who better to ask than you specifically :)

Feel free to post any requests you have in the comments below.

Lastly, let’s not forget these:

Important links for iModel.js developers.
How do you know when you’re ready?
By: Sarah Campbell
Tags: Knowing, Getting Started, How To Start, Decision Making, Being Ready

I’ll let you know, but first, let me tell you about these three little pigs …

Something I didn’t predict has happened: the more regularly I talk about finishing, the more conversations I have with people about starting. In the last month, I’ve been approached (separately) by three people who each want to begin a new project. They have an idea they’ve been steeping or otherwise quietly working on and they’re debating if they should make it “real” by committing to it publicly. The subtext of two of these conversations was: how do I know when I’m ready?



There’s no universal answer to this question. Readiness depends upon any number of individual and contextual factors. Still, I’m going to throw this out there: if you keep wondering if you’re ready to start something, you’re ready to start. If you’ve been watching others who started something and you feel excited (and a little bit jealous) as you watch, that too means you’re ready (enough) to begin.



Why “ready enough”? Because you don’t have to feel completely ready — and what’s more, you don’t need to be ready technically either. You really only need to feel restless and impatient to find out what would happen if you did begin. Impatience is readiness in disguise.

Here’s a close-to-home example of what it looks like to be “ready enough to begin.”



My daughter, who doesn’t yet know how to read, has started reading books to us. She’s not reading in the technical sense, but she’s reading in every other sense. She selects a book, has us sit close, and won’t begin until we’re paying attention. She tells the story, from memory, from beginning to end, moving from page to page, her eyes darting around the illustrations for cues to plot points or dialogue. That she can’t read the words doesn’t slow or discourage her. “What’s that say?” she’ll sometimes ask, interrupting herself to point at a line. And then I feed her the line, sotto voce, because she is, after all the lead actor here. She repeats it, not skipping a beat, and the story flows on.
Getting Started With Flask — Python Framework
Tags: Web Development, Flask Framework, Getting Started, Beginner, Python

Creating Your First Flask App — Let’s Get started

Requirements :

1) Python — Download Latest Version from here

2) Flask — Documentation here

Installing Flask

$ pip install Flask



or $ pip install -U Flask

3)IDE’s — Any IDE’s of Your Choice (pycharm preferable for its feature set)

Now that we are set with the our prerequisites, Let’s Get into knowing more about Flask

Flask is a lightweight WSGI web application framework. It is quick and easy to get started with(This blog makes it even easier😛 ).Flask has the ability to scale up to complex applications and It primarily depends on Jinja template Engine And Werkzeug WSGI toolkit.

It is also one of the most popular Python web application frameworks.

Flask offers suggestions, but doesn’t enforce any dependencies or project layout. It is up to the developer to choose the tools and libraries they want to use. There are many extensions provided by the community that make adding new functionality easy.

Here’s a survey conducted by JetBrains , 48% of python developer’s use Flask compared to Django’s 44%.

PS : It’s an individual preference to choose the suitable framework for their Application , Don’t get into it any frameworks by seeing their numbers or their popularity . Posted this survey for a reference .

Python Developer Survey 2019

Hello World — In Flask

The Reason why flask is simple and easy to get started with is because you can create an app with the below 5 lines, It’s that simple.

app.py

Do not name the file as Flask.py , it throws an error

Run the file

To run the file : Python “filename”.py

Example: Filename is saved as hello.py

In Console run the following command : python hello.py

The following lines shows that your app is ready and running on default http://127.0.0.1:5000/

Enter the URL(http://127.0.0.1:5000/) in any browser of your choice :

Hello World Running on http://127.0.0.1:5000/

Now that you created your first Flask app and its running , Let’s break down what does the 5 lines of code do:

1)from flask import Flask

Importing Flask (F : capital ) from the flask package which creates an object

2)app=Flask(__name__)

An instance of the Flask Object stored in variable app

3)@app.route(“/”)

4)def First_Flask_App():

5)return “hello world”

The primary function of our app is called First_flask_app() , which is wrapped by Flask's most important decorator: .route() and the function returns “hello world”.

Decorator is a function for us to wrap other functions , Flask comes with a route decorator which allows us to serve up functions based on which page of the app the user is loading. By setting @app.route("/") , we are specifying that the function First_flask_app() should trigger whenever somebody uses our app.

That’s it , Start implementing .

I tried to make it simple and yet understandable !
Start loving Mondays!
By: Jan O. Nilsson
Tags: Mondays, Monday Motivation, Self Improvement, Getting Started, Motivation

To start loving Mondays could be something already from today

Start loving Mondays! Where are we heading with this article, you may ask? Well, if we turn around the question a bit and say:

“Thank God it’s Friday!”…

…then I assume that the topic sounds more familiar.

It all boils down to the relationship between your work and your free time. Despite the tremendous growth of independent entrepreneurs and business owners, the traditional model still represents the daily situation for the majority of people.

Perhaps the pandemic is changing the mindset in some way. The vulnerability you have as an employee shows how the old traditional labor market is turning upside down.

But let’s assume that you have a job, typically a 9–5 job, Monday to Friday. Depending on your position, your tasks to execute are well defined, and for your performance, you get paid. You are trading your knowledge and experience for money.

The position you were hired for defines in detail through a job description of what the company and your boss expect from you. As always, there are tasks you like more and assignments you like less. However, your boss doesn’t care. He hired you to perform in a certain way, and for that performance, he or she pays you.

To start loving Mondays isn’t that easy. After a long and pleasant weekend together with the family, it’s tough knowing that on Monday morning, you’re back doing something you’re not very passionate about.

The prominent argument people have to continue their corporate job is usually money-related. You need a salary to pay bills and fulfill other financial obligations.

Reviewing all different surveys available about satisfaction at work is curious. No report is known so far, where the money comes first as a priority to find happiness with your job….continue reading>>
Perfection VS Progress 📈
By: Jesse Young Iii El
Tags: Perfectionism, War Of Art, Getting Started, Procrastination

I work in a manner seeking progress, not perfection. The further I progress, the closer to perfection I’ll get.

And this is also why I push to Start Small. Start Early. Start Now.

“Don’t let perfect be the enemy of the good… If you can’t do it perfectly, do it good enough” — Eleanor Konik

Put this quote to work and see how it’s easier to start, start small, and actually accomplish something.

You can do iterations on it to make it better, but you have to start somewhere.

The desire to have something perfect actually stifles most people.

It stops them in their tracks — it leads to procrastination.

That reminds me of Steven Pressfield’s book “The War of Art” —

In the book, Pressfield writes an onslaught attack on the Lower Self — which he refers to as “Resistance”, the enemy to our life’s work.

Most importantly, he explains how procrastination is the most common manifestation of Resistance because it’s the easiest to rationalize.

Don’t give in to Resistance. Don’t give in to procrastination. Don’t let perfect be the enemy of good.

Peace and Love
Get Started with Open Source. What is open source?
By: Rishabh Bhardwaj
Tags: Computer Science, Getting Started, Open Source, Complete Guide

Step 1: Set up a copy of this repository on your computer.

First visit the above link and click on the fork button.

This will create a copy of the repository in your own GitHub account and you’ll see a note that it’s been forked underneath the project name: Rishabh450/NIT_Results_APIs/

Now you need a local copy.

open git bash run the command:git clone https://github.com/<YourUserName>/NIT_Results_APIs

change into the project directory run: cd NIT_Results_APIs

Finally, in this stage, you need to set up a new remote that points to the original project so that you can grab any changes and bring them into your local copy.

run the command: git remote add upstream https://github.com/Rishabh450/NIT_Results_APIs

You now have two remotes for this project on disk:

the origin which points to your GitHub fork of the project. You can read and write to this remote. upstream which points to the main project’s GitHub repository. You can only read from this remote.

Step 2: Run the project on your computer.

Go through the README file. It contains the details to install the project.

Step 3: Make your changes:

Any new changes must be made in a separate branch. This is the most important rule. So get it straight.

How to create your own branch:

We assume you are on the master branch:

run the commands:

git checkout master

git pull upstream master && git push origin master

The above command will sync the parent repository with your forked repository.

Now run the below command to create a branch and switch to it.

git checkout -b <branchname>/<featurename>



Fix some errors or add some features.

Fix only those issues that you are working on.

Commit your changes.

Final Step: Create a Pull Request:

Push the changes to your branch

git push -u origin <branchname>/<featurename>

This will create the branch on your GitHub project. The -u flag links this branch with the remote one so that in the future, you can simply type git push origin.

Open the link to the forked repository(Your version of project)

You will see your branch name displayed at the top. Click on Compare and Pull request.

Next on this page, ensure that the “base fork” points to the parent repository and master branch.

In the description box, describe the changes made by you briefly.

Click on Create Pull request

Wait till the owner of this repository accepts your pull request. They may also request changes.
Connecting Azure DevOps Repo with Visual Studio Code
By: Randula Koralage
Tags: Angular, Azure Devops, Getting Started, Visual Studio Code, Azure Repos

Visual Studio Code is a lightweight source code editor that comes with built-in support for JavaScript, TypeScript, and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity).

In this article, I’m going to present the basic steps of connecting an existing azure repository with Visual Studio Code. I have already created a project in Azure DevOps and setup a repo with an angular sample project.

Prerequisites

Visual Studio installed in your computer (as you should have TF.exe to setup Azure Repos extension)

Cloned copy of your azure DevOps project repo

PAT with full access to your Azure DevOps Account

How to create a Personal Access Token in Azure DevOps

Creating a PAT

User Settings -> Personal Access Tokens click on new token and create a PAT with full access

Step 1 : Install Azure repos extension

Search for Azure Repos Extension in Marketplace

Step 2 : Open your project with visual studio code

It will show like this

Step 3 : Click on set Up TFVC Support

Then the icons in the status bar will change like this

Step 4 : Sign in

Then get command palate ctrl+shift+p And type Team: signin

Select first option Provide an Access Token Manually, and paste your access token

Enter your PAT

Now you can see that the status bar has changed with a few more icons.

The azure repo has successfully connected

Now you have successfully connected your azure repo with visual studio code.
Getting started with front-end web development in 2020
By: Code Corner
Tags: Web Development, Getting Started, Design, Programming, Front End Development

When you first search the internet for learning materials, this can be quite overwhelming. At least that was the experience I had, you don’t know which one to use and which explanation best suits you.

I was confused by this great tangle of information, I no longer knew what I could use and more importantly what was important to learn.

Below are some resources to get started with the basics in front-end web development:

HTML Crash Course For Absolute Beginners from Traversy Media

CSS Crash Course For Absolute Beginners from Traversy Media

The 2020 Frontend Developer Crash Course for Absolute Beginners from DesignCourse

These crash courses are all free, and explain the basics of the ‘programming languages’ in a relatively short time.

If this is in line with what you expect to learn, and you want the ultimate goal to ‘design’ and ‘program’ beautiful and professional websites, you can also purchase courses. A website with a wide range of courses is Udemy. Below are a number of courses that I have followed and that I recommend to everyone.

Advanced CSS and Sass: Flexbox, Grid, Animations and More! from Jonas Schmedtmann

The Complete JavaScript Course 2020: Build Real Projects! from Jonas Schmedtmann

The Web Developer Bootcamp from Colt Steele

During courses you often follow a project. But nothing is more important than creating your own projects, this is not only good as an exercise but also for your creativity and to put your learned material into practice. Projects that are often done are creating your own portfolio, creating a fictional landing page, a to-do list and much more. You can also create small projects to put it into practice per subject, for inspiration take a look at codepen.

Good luck!
The Ripple Concept of getting things done.
By: N Nithin Srivatsav
Tags: Talk To That Girl, Life, Getting Started, Getting Things Done, Life Lessons

How many times haven’t we thought of getting things done, but couldn’t?

How many times haven’t we thought of making an impression on someone, but somehow couldn’t or the impression faded away slowly?

How many times haven’t we wanted to get things done by others(maybe ask for a raise)? But we just haven’t.

As an INTJ, I personally feel the world works in a different way.

You can’t force things to happen. Each time you do something or wish something, you emit a frequency or energy into the universe. It then ofcourse takes time for that to happen.

But what you can do to maximize getting things done is with the ripple concept as I call it.

Moving forward lemme explain you the concept of ripples first.

So if you have observed a round circular bucket, if you create a small disturbance in the middle, what exactly happens is, the ripple travels from the center to the walls of the bucket, bounce back and travel back to your finger at the center.

That’s it! One ripple at a time.

Now if you create disturbances before the rebounded wave comes back to you, the rebounded ripple and the second ripple you just sent gets evened out in the middle causing no good to you.

So here the main part now.

If you want to get a work done, or maybe talk to a girl or a guy you are checking out, first approach the person, introduce yourself, strike up a conversation, talk for not more than two or three minutes(Doesn’t have to be this small, if you really have an ample amount of time, Hit it xD), Smile and leave.

Next time you see them or perhaps the next day, just smile and look away ( PS: I’m talking about this with experience. Will sure write to explain behind the theory of it)REMEMBER not to Talk or start a convo. Let this be on for a few days.

What you just did? Yeah you just successfully completed the first ripple. Way to go buddy!!

Now is the time for second ripple.

This time when you meet them. Strike a convo and this time considerably talk for a longer duration.

What happens here is that, according to psychology, their brain forms positive impressions about you, completing the previous incomplete impressions of yours.

BOOM! There goes the second ripple.

All of this must happen in accordition with intution.

I pretty much sure everything will turn out well.

If you could just apply the same concept to other areas, like maybe asking for a raise it’s gonna be really a fruitful one I assure you.

Alright babye cya.

The first ripple with you is successfully completed. Seeya next week.
So, How DID You Get Started Speaking?
By: Jenny Bramble
Tags: Conferences, Speaking, Tsqa2020, Getting Started, Testing

Like many testers, I fell into the role of Quality Assurance. My company didn’t have a QA group or a formal testing process until I stepped into the role. This made me the entirety of the testing group. It also meant that I started alone and without a community of practice. Learning to test by stumbling around in the dark until I bumped into a bug worked for a while, but I longed for a group of people I could talk to as peers.

Finding the TSQA meetup and conference changed all of that for me. Suddenly, a whole room full of people understood what I do for a living. They were doing and learning the same things as me. The more deeply involved with testing and our local community I became, the more value I got out of it. I wanted to give back and share the things I’d learned and absorbed from this beautiful community and help shape our direction.

My first speaking engagement was at a TSQA meetup… then a local agile conference… then a non-local test conference… then the 2018 TSQA conference itself. I’d never presented in front of my hometown crowd like this. Questions filtered through my brain: would they think I was smart enough? (Yes.) Would they laugh at my cat pictures? (Yes.) Would this be something I’d want to do again? (Yes!!)

I’ve taken the trust that the planning committee of TSQA 2018 put in me and used it to jump start a career in conference speaking, I have spoken as a dozen conferences and have been asked to speak and keynote at almost a dozen in 2020 already. I’m also mentoring several new speakers who will be taking stages across the world. What I’m most proud of is that the TSQA board asked me to help plan TSQA 2020. I get to give back to the community that made me the professional I am today.

The conference features a lineup of primarily local speakers (including several first-time speakers) with an incredible array of things to talk about. We’ll hear about ethics in computing, how to make sure your automation has the return you want, managing test teams, tools like Cypress/JQ/TestCafe, continuous delivery, handling tech debt, and more.

In so many ways, my speaking career has come full circle back to TSQA. The program we’re going to present in February is top notch and represents the incredible talent and skill in our area and industry.

TSQA 2020 will be held in Durham, NC February 26–27. Grab your tickets now at TSQA.org!
Getting Started with Competitive Programming 👨🏻‍💻
By: Junaid Rahim
Tags: Cpp, Getting Started, Competitive Programming, Beginner, Leetcode

March 24, 2020.

Almost all of the colleges in India are shut due to the COVID-19 pandemic. We know you might be bored to death at home.

If you are someone who has heard about “Competitive Programming” either from your seniors or your peers but still don’t know what it is about then this article might help you out. This article will be more relatable to the undergrads studying in Indian colleges, possibly someone who took a semester of maybe programming in C or Python, depends on your curriculum. We tend to put Competitive Programming on this pedestal as it helps us bag better career opportunities in the software industry.

What is it ?

Google code jam

Competitive Programming is a mind sport.

That’s true. Competitive programming contests are usually contests that have people solve algorithmic puzzles and challenges with a given time and memory constraint to make things more fun. You know, the kind of puzzles that would have you write a program to find the solution.

Such programming competitions involve solving a set of logical or mathematical problems, and contestants are required to write a program to solve the problem. Programs can come from the fields of combinatorics, number theory, graph theory, string analysis and data structures or any field closely related to mathematics or computer science. Read the following to get the gist of the problems usually asked.

Longest Sub-string from leetcode.com

How does it happen ?

It starts with you reading the problem statement. Let’s go over a sample problem. This is from codeforces.

You think a little, code something, test it, its wrong, you think again, code again and finally arrive to the correct solution.

You copy your code, paste it in the submit section and hit submit.

Now your submitted code will be tested against a lot of test cases. If your code gives the correct output in the given time and memory constraints, Congratulations! you just solved your first problem.

yay

Competitions usually have a set of problems that you have to solve say in 3 hours. Each correct submission rewards you some points. The one with the max score wins 😬