teleren/devto huggingface dataset:
Please Notimate @rutujak24 as a Github Star
Tags: github, opensource
Published: 2020-10-03 06:52:09

GitHub Stars is a program that recognizes those who go above and beyond and help inspire and educate their communities which is exactly what the I am has been doing from my very start! My GitHub ID is rutujak24.

This program will give us access to cool new features on the GitHub platform and also let us showcase what we do before a larger audience!

Steps:
Go to https://stars.github.com/
Click the Sign-in button and Authorize the GitHub-Stars application
Make sure you are on the Nominate page, https://stars.github.com/nominate/
Type rutujak24 as the username. The @ character is provided automatically
Type the following text for your reasoning: they took an abandoned project and turned it into the leading open-source test management system with their code and blogs for open source around the world!
Click on the checkbox to acknowledge your nomination
Click the Submit nomination button!

Thank you for helping us and happy testing!
Creating a Simple CRUD App with Flask.

Published: 2020-10-03 06:50:11

Motivation
Hello, fellow developers. This week I am going to create a simple CRUD app using Flask. My goal is to give anyone looking to learn Flask a quick bite on how it works. I'll start by showing what we are going to build, then I'll list the necessary dependencies, and finally, I'll show the steps to create our application. Cheers!
What We're Building


Install Dependencies
If you're developing on Mac or Linux you should already have python installed. If you're on windows you can download python from, https://www.python.org/downloads/.
Check your python installation by running the following command in your terminal:
python --version
>> Python 3.8.2
Next in our project directory, we want to install "Flask" and "flask_sqlalchemy". Today I'll be using python3 so I'll use "pip3" for installation.
pip3 install flask flask-sqlalchemy
Hello World
With our dependencies out of the way, let's create a simple route to test our installations. I'll start by creating a file named "app.py" and adding the following code inside.
Then in our terminal, we can run our file and if all is correct we will see our hello message in our browser!
python3 app.py
Rendering HTML
Now let's make our route serve an HTML page. First, in our same project directory, we'll create a folder called "templates". Inside this folder, we will create a file called "index.html" and fill it with the following boilerplate code.
Now back in our "app.py" file. We will add an import from flask called "render_template". Also, where we previously were returning a string in our routing function we will instead return "render_template('index.html')".
Now if we refresh our browser we should see our HTML being rendered!
Initializing our Database & Creating our Model
In our app.py file we'll add the following imports and configurations:
On line 2 we import "flask_sqlalchemy, on line 3 we import "datetime "for later use in our model, and on lines 6 and 7 we initialize our database. Now we can go ahead and create our Dog class.
Our dog model has little attributes just for demonstration purposes. We have an Id that will serve as the primary key, a name, and a birthday that is recorded on creation. Finally, our __repr__ method returns a string representation of every created dog by interpolating its "id" property.
Now in our terminal, we will run "python3" in order to enter a python environment.
python3
>>
Next, we run:
from app import db
db.create_all()
exit()
If all goes correctly we should see a "test.db" created in our project directory.
Best Data Science Course Online 
Published: 2020-10-03 06:38:42

A Data Scientist gets home a huge income per year and they owe it to the deficiency of skilled professionals in this field. This is the reason why Data Science Certifications are at an all-time high! And what’s better if you get that certificate by just sitting at home! That’s a cherry on top in this period of pandemic. All you need is your complete dedication, and that’s it. Our trainers are there to help you out with everything. We bring to you the best online data science course in India. Click on the below link to know more.
<a href=” https://haihub.in/”> best data science course online</a>
ONE YEAR
Tags: oneyear, dev, hacktoberfest
Published: 2020-10-03 06:28:09

WOW, I can't believe that one year has passed. Thanks to everyone here for helping with so many questions last year.  

Good news!  I have paid it forward and helping over 100 people tonight with the same questions I had last year.  #gofigure
It's an online event for Hacktoberfest 2020.  Started out with just a simple idea of helping a few people.  It sort of went a little wild with registration.

Thanks again.  Here's too a super #hacktoberfest2020
Anatomy of a Rspec Test
Tags: ruby, rails, rspec
Published: 2020-10-03 05:37:18


If you’ve used Ruby on Rails to build applications, you might have come across rspec testing. Rspec is a testing tool used to test Ruby programs. It follows Behavior Driven Development as it helps developers test out software. 


Rspec uses several key words. The most important are: 

**Describe**
- Used at the top level of the test 
- Accepts a class name or string 

**It** 
- A generic word that refers to a specific example 

**Expect**
- Used to define outcomes 
- Can be combined with to eq or not_to eq, to or not_to

**Subject**
- An object being tested on 

In order to practice writing rspec tests, we’re going going to create a rails project. This simple project will validate that a user enters their name to a form. 

```
$ rails new test-names 
```

Add the rspec gem to the gem file. 

```  gem 'rspec-rails' ``` 


In app, create a spec folder. 

``` 
$ mkdir spec
```

In spec, create a models folder. 
```
$ mkdir models
```

Within the models folder, create a user_spec file. 

```
$ touch user_spec.rb 
```

The _spec at the end lets Ruby know this is a test file. 


```
RSpec.describe User, type: :model do
[...]
end 
```
Here, we declare an rspec test for our User class. 

```
subject {
   described_class.new(first_name: "John",
                       last_name: "Doe")
 }

```
Subject will stand in for an object (in this case, a user with a first and last name). 

```
it "is valid with a first name" do
   expect(subject).to be_valid
 end
 
 it "is valid with a last name" do
   expect(subject).to be_valid
 end
 
 
```

Finally, we create a couple of test cases. The test uses the it keyword, followed by a description of the test. Then, the expect method is used to validate the subject being passed into it. 

In order to run the test, go to the top level directory and run ```bundle exec rspec``` in the terminal. 

Here is the entire test. 
```
RSpec.describe User, type: :model do
 subject {
   described_class.new(first_name: "John",
                       last_name: "Doe")
 }
 
 it "is valid with a first name" do
   expect(subject).to be_valid
 end
 
 it "is valid with a last name" do
   expect(subject).to be_valid
 end
 
end
 
```

The test will run and display the number of examples, failures, and pending tests (if any). 

Of course, the point of tests is to plan for user behaviors and behavior of the software. By building tests that are sure to fail at the onset, we can create more robust code and hopefully plan for user interactions.
Fork Issue Pull Merge 
Tags: opensource
Published: 2020-10-03 03:49:08

## Path Normalized

The first repo I forked was https://github.com/hyunjiLeeTech/URL-FI. while I went over the code I found that the file reader was only taking 1 type of file pat. So, I thought of normalizing the path and to do this I added the path dependency and used the method path.normalize(); with this normalizing the path. I also added the path dependency into the package.json. You can see the accepted pull request here https://github.com/hyunjiLeeTech/URL-FI/pull/7 .

## Optimized Head

The Second repo I forked was https://github.com/joey2031/OSD600-Release0.1. After, I read through the repo I saw that when fetching the status code of links. This person was using the default get request. I found they were only using the status code so I thought a head request might be more efficient. So, I simply added a object param {method:'HEAD'} which should increase the speed at the links are fetched. Here is the pull request 
https://github.com/joey2031/OSD600-Release0.1/pull/8.
How to Build a Trivia App
Tags: java, springboot, python, react
Published: 2020-10-03 03:22:13

---
title: How to Build a Trivia App
published: true
description: Get Out of Tutorial Hell by Building a Trivia App
tags: Java, SpringBoot, Python, React
---

Code can be found here: https://github.com/rabowlen/TriviaApp
A short guided meditation to relax into the weekend
Published: 2020-10-03 03:09:48

It's a long weekend here in Australia. I've just had an intense period of coding - Python hitting DynamoDB with a React front end, thanks for asking. 

I'm determined to make the most of my weekend. I feel like I need to recover, so I won't code. 

Anyone who follows me knows I use meditation to ease these transitions. I recorded this session that I delivered to my colleagues yesterday - I hope it will be useful for you!

{% vimeo 464427731 %}

(I'm giving free guided meditations weekly at the moment - if you want to register, hit me up at daragh at codingmindfully dot com and I'll add you to the list. Or you can find out more on [my Facebook page](https://www.facebook.com/Coding-Mindfully-101433214844774)).
How to snap out from procrastination mode 👩‍💻
Tags: career, productivity
Published: 2020-10-03 03:00:43

Steven Kotler in his book The Rise of Superman specifies that people procrastinate activities for 2 reasons, first because they are too easy and do not suppose a challenge for us, which is why our brain rejects the option of wanting to start something that really does not represent satisfaction. Or the second reason, when our brain feels completely intimidated by the activity by feeling that it is going to suffer, either because the activity is a much higher challenge than which we feel capable, or because we know that somehow that project reveals a facet of ourselves that we don't have a desire to explore.

Having that knowledge the first thing that you should do is identify which one is the reason you are procrastinating the task that you should be doing, and depending on that you could trick your mind, if your task is too boring, make it spicy, for example, if you have to write a user manual, try to write it giving yourself a challenge or promise yourself a nice reward after the work is done.

In case that the root of your problem to begin or focus in your work is because you feel inadequate or is too complex, nothing like breaking it down and make a list of those little and simpler tasks. And always imagine how is going to feel the future you, when he/she had to deal with all the delayed work that now has to do it in a rush manner. But if this doesn't do enough you always can implement these 5 tips:

1. Go to walk for at least 15 minutes, jump a rope, or just swipe your room but get away from the thing that is distracting you (in many cases social media), you need to cut that rush of dopamine that your brain is getting from the distractor object because your task in comparison is a pain.

2. Make a schedule for every activity you want to do and make sure to include the leisure ones too, that is the way you can motivate yourself giving that treat time.

3. If you are in the middle of an activity that you are stuck for more than half an hour and you are suffering, ask for help if you can, don't let that the difficulty demotivate you, because hard has to be in a sweet spot, can't be as easy that is boring or as difficult that demoralize you.

4. Make yourself accountable and daily give your list of activities to a friend, a coworker or a family member that evaluate the fulfilment of your commitments.

5. Finally, count in an audible voice from 1 to 5 and promise yourself to start your task at that 5 sound, you need to begin to trust in the promises that you do to yourself, and treat your time with the same diligence and respect that you treat the time of others.  

I hope that this might help someone and thank you for reading!!
Lab 2 Update
Tags: opensource
Published: 2020-10-03 02:56:21

This is the third week of open source and the task for this week is to complete lab 2: filing an issue from one classmate's Release 0.1 project, fixing it, and sending a PR to the owner of the project. 

I have filed an issue regarding the removal of duplicate links for [Philip](https://github.com/1jz). After I finished the code, I sent a PR to the repo, and gladly [Philip](https://github.com/1jz) accepted it. Here is the[link](https://github.com/1jz/WISA/pull/12) for the details.


Thanks to [Tony](https://github.com/tonyvugithub), my project got another feature added. He filed an issue requiring to add a new feature of glob pattern passing and finished the code before sending me the PR. Click [here](https://github.com/isabellaliu77/urlChecker/pull/7) for the details.
Bash Flag Conventions
Tags: bash, conventions, shell, script
Published: 2020-10-03 02:53:41

I've been thinking about bash / shell flag conventions a bunch lately. I was considering creating a list of commonly shared flags. If you're making a script and you want to create a flag, it could be confusing to use `-v` for `--velociraptor`, because it's more commonly used for `version`.

| flag      | description        | examples         |
| --------- | ------------------ | ---------------- |
| -C        | Set's working path | git, npm         |
| -h        | Output help        | git, mongo       |
| --help    | Output help        | node, git        |
| -v        | Output version     | node, ruby       |
| --version | Output version     | mongo, node, git |
| --dry-run | Detail's action    | npm              |
| -v        | Verbose Output     | bash             |
| --verbose | Verbose Output     | bash             |
|           |                    |                  |

Please comment below and I'll add them to the list. Please provide two scripts that use this flag.

Related:

* [Common flag designations and standards for shell scripts and functions](https://unix.stackexchange.com/questions/108058/common-flag-designations-and-standards-for-shell-scripts-and-functions)
Data engineering essentials
Tags: hacktoberfest, python, devops, dataengineering
Published: 2020-10-03 02:15:47

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

I worked on improving the repo "DataEngineerEssentials". It contains commands that Data Engineers use in day to day work.

https://github.com/arverma007/DataEngineerEssentials
Bootcamp Java Developer Day #11
Tags: java, bootcamp
Published: 2020-10-03 02:02:52

#### Day 11:

Finished one course and solved 5 challenges level easy.

#### 8) Finished: Implementing Collections and Streams with Java

Today's topic were:

- Optional
java.util.Optional

- Streams
stream().count());
stream().max(Comparator.comparingInt(String::length))
stream().filter()
collect(Collectors.toList())
stream().map()
stream().limit(3).collect(Collectors.toList())
stream().peek()
collect(Collectors.joining(", "))
collect(Collectors.toSet())
collect(Collectors.groupingBy())

#### 9) Arithmetic Fundaments in Java

This part was composed by five challenges about arithmetic operations. Level easy.
Programming for everybody (getting started with python) course summary
Tags: python, coursera, course, summary
Published: 2020-10-03 01:39:47

Hi!

I hope you're all OK

so let us begin summarizing Programming for Everybody (Getting Started with Python) course

Before you read this summary there's some points you should know:

1- English IS NOT my native language so you maybe face some writing mistakes or another kind of that stuff.

2- I will not tell you everything about this course I will just SUMMARIZE it, So if you didn't find some condition or function here then that doesn't mean it's not explained in the course

3- It's my first experiment with summarizing courses so my summary will be awful, ('m not joking) so if you found another summary for this course just tell me in the comments

Now after all that bla bla bla let me begin
## Week 1

In this week the instructor will welcome you and explain to you some basic things about hardware, python and programming in general, So ... let's go to the next week.

## Week 2

This week is about how will you use python in this course, where will you write python code and all that stuff

## Week 3

Your first assignment: "Hello world"!!

## Week 4

Some expressions and assignments

## Week 5

Conditional statement

## Week 6

Functions

## Week 7

Loops and iteration

## Detailed notes

- **try - except:** the code after "try" will be tried if it works, great, if not: the code after except will work. in other words: you give the computer alternative code to run if the first code didn't run

```python
age = input("what's your age?")

try:
    Int = int(age)
except:
    print("error, please enter a number")
```

- **"elif"** is a condition which used in a function to add another question without building a new block or in other words " without making a new function". another thing: if elif condition is true then it ignores the next whole conditions in its function.
- **"continue"** stops the current iteration and goes to the top of the loop again
- **"Break"** when you type it in a function body it skips the remaining code lines in the function body or skip the remaining function to the next line after all the function immediately
- **None** is a kind of variables has only "None" variable like boolean (which has true and false) Warning: You MUST write "None" not "none"

```python
smallest = None
```
finally you reached the end of this post so if you reached these words thanks a lot for reading my summary. Please give me a feedback so I can improve my summaries in the future!
see you in another post (or summary I don't know)
Definitive guide to solve CORS error, Access-Control-Allow-Origin in Python Flask APIs
Tags: python, flask, cors, preflight
Published: 2020-10-03 01:21:32

In this video, I'll show how to enable Flask-CORS for Flask based API projects. Explains and code three different options available to configure CORS for your projects.

{% youtube -u5BdG_6Lzs %}

Python;
https://www.python.org

Flask;
https://flask.palletsprojects.com

Flask-CORS;
https://flask-cors.readthedocs.io
The Customer and Boring Tech
Published: 2020-10-03 01:07:56

![The Customer and Boring Tech Sketchnote](https://dev-to-uploads.s3.amazonaws.com/i/vg77hgjmqhwwi3ep1vvi.jpg)
For a long time, I really hated on Ruby on Rails. It did too many things, too much magic, not following idioms, etc.

From a developer perspective, these were all valid points. If I was to come up with a solution that’s abstracted in a better way, has less magic, then it’d be more valuable than Rails. That it probably would take longer wasn’t a concern. I was a Software Developer and it was my job to deliver well-designed and abstracted solutions.

My point of view has changed over the last years. Direct interaction with customers has taught me a lot. 

The customer doesn’t really care if I used Rails, Django, Sinatra, or a custom-built web framework. It just needs to do its job. 

I use Rails whenever I can to get the job done faster and more reliably, whenever I can. Technical elegance is not as important anymore as a happy and productive customer.
First Look at the No-Code Overlays Web App
Tags: nocodeoverlays, justfingshipit, womenmakechallenge
Published: 2020-10-03 00:26:55

---
title: First Look at the No-Code Overlays Web App
published: true
description: I merged the first PR for No-Code Overlays on October 2nd, 2020. Let's take a look.
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/147cl7aach1mu7bs2dne.png
tags: NoCodeOverlays, JustFingShipIt, WomenMakeChallenge
canonical_url: https://nocodeoverlays.com/blog
---

Guess what I did today? I planned the features for the MVP, set up a [Next.js app](https://nextjs.org/docs/getting-started) and its [GitHub repository](https://github.com/NoCodeOverlays/app.nocodeoverlays.com), and I merged the first PR for the [No-Code Overlays Web App](https://app.nocodeoverlays.com)! If you'd like to read all of the details in the PR, you can do so [here](https://github.com/NoCodeOverlays/app.nocodeoverlays.com/pull/1), but I'll give you a quick run down.

![The first merged PR as shown in GitHub.](https://pbs.twimg.com/media/EjXEFlkWoAAvGX2?format=jpg&name=medium)

So, when you arrive at the app, you need to log in with an email and password. Having a login keeps everyone's information separate and private. I don't want anyone to be able to edit my streaming overlay, and no one wants me to edit theirs either! Here's a preview of that page:

![The No-Code Overlays login page. It shows email and password inputs in a white card on a dark purple background.](https://pbs.twimg.com/media/EjXEy0NWoAEa_BS?format=jpg&name=medium)

To put all of this together, I added a couple of pages to the app, installed the [Firebase npm package](https://www.npmjs.com/package/firebase), set up a new Firebase project, added a test user for logging in, and set up some functions for interacting with Firebase auth in [this API file](https://github.com/NoCodeOverlays/app.nocodeoverlays.com/blob/master/lib/api.js). This part was a little tedious, but pretty straightforward!

The last step was to handle redirects to the login page when a page that requires a logged in user is trying to be reached. [Next's router](https://nextjs.org/docs/api-reference/next/router#routerpush) makes it very easy to redirect, so the hardest part was checking with Firebase for a logged in user. In the API file I mentioned, I wrote a function for getting the current user. If there's no current user, then there's a redirect to the login page.

I'm thinking about writing a blog post on this for my personal site, but no promises. This project has me pretty busy at the moment! Stay tuned for the next update! :)
open cubic player
Published: 2020-10-03 00:23:28

check out open cubic player ,after mpd, ncmpcpp its truly a tihng of beauty in CLI
   https://cirrusuk.wordpress.com/2014/03/22/open-cubic-player/

[![](https://dev-to-uploads.s3.amazonaws.com/i/oq91hqgutzcrkzcxcxjk.png)]
What do you use to create logos?
Tags: webdev, discuss, frontend, productivity
Published: 2020-10-03 00:14:15

---
title: What do you use to create logos?
published: true
description: 
tags: webdev, discuss, frontend, productivity
cover_image: https://www.hubsol.ae/public/assets/main/images/about/logo%20design%201.png
---
Logo design is important as it establishes your brand’s visual identity and stands as a memorable symbol of who you are.

Do you usually use online services like [Hatchful](https://hatchful.shopify.com/), [Canva](https://canva.com/), and [LogoMakr](https://logomakr.com/) to get inspiration from available templates, fonts, color palettes?

Or do you always prefer to use apps like [GIMP](https://www.gimp.org/), [Inkscape](https://inkscape.org/), [Photoshop](https://www.adobe.com/products/photoshop.html) and [Illustrator](https://www.adobe.com/lv/products/illustrator.html) to start from scratch and be in full control?

What is your approach to creating logos and what apps/services do you normally use?