teleren/devto huggingface dataset:
Inheritance in CSS 
Tags: css, beginners, inheritance
Published: 2020-07-16 13:41:42

In this post I will explain what inheritance is in CSS, why it's useful, and how to take advantage of it. 

If you're like me, you may have dabbled with CSS, heard thar some values of properties are inherited, and been generally confused by the whole thing.

First let's make sure we understand what a CSS property and value is. Together, they tell us what style we are applying to a selector.. The property is the thing within the declaration block that tells what you are declaring a value on: things like padding, color, font-family, and so forth. The value tells us the actual style: things like 30px, blue, and Arial. 

So what exactly is inheritance? Inheritance takes place when values for some specific properties are passed down from parent elements to their children. A parent element is the selector that refers back to the html tag that contains the child element. 

For example: 

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


So, we can select .parent and .child in our css file, and some select properties that we declare on .parent will apply to .child as well.

Why is inheritance important? It allows us to achieve more easily responsive websites without writing a lot of extra code with complicated calculations. It makes code more maintainable. If you declare a value for a property, your declared value overrides inheritance, but inheritance can be a nice way to write less code, rather than declaring "font-size: 16px" in every single element! 

How does inheritance work? The computed value of a property gets inherited - not its declared value. For example, let's say you write your font-size as 1.5rem (with a root font-size of 16px). That value gets parsed and is computed to 24px. In the child section, the font-size 24px gets inherited, because it is the computed value that was declared by the 1.5rem in the parent element. 

What kinds of properties are inherited? Properties related to text, like font-family, font-size, color. Properties which are not inherited are things like padding, margins. Although, you can force inheritance by using the <b>inherit</b> keyword. You can reset a property to its initial value by using the <b>initial</b> keyword.
What is the first thing that you do with a new tool or language?
Tags: discuss
Published: 2020-07-16 13:40:59

I often skip past "hello world", since it doesn't give you a good understanding of what a language looks or feels like. Usually, I try to dive into a project, often a smaller-scaled version of the idea that inspired me to try out the framework or language itself. For example, when I was diving into Go, I wrote a small application to grab data from the Goodreads API and parse it to my console, since I wanted to use Go for CLI or back-end applications. 

Does anyone else skip "hello world"?
Why is SQL injection still a thing?
Tags: sql, database, csharp, dotnet
Published: 2020-07-16 13:35:43

I've just published [Back to basics: SQL Injection](https://zoharpeled.wordpress.com/2020/07/16/back-to-basics-sql-injection/) over on [What the # do I know?](https://zoharpeled.wordpress.com/).  
It's not that I think the already existing articles and posts about SQL injection aren't good enough, but because I've seen way too many questions on stackoverflow lately with vulnerable code - and I find it amazing (in a bad way) that this is still a problem today.  
I mean, there is an easy-to-use 100% bullet proof solution to this problem for more than two decades now - so why hasn't this threat been eradicated yet?

In this post I summarize the following topics:
 * What is SQL Injection?
 * How does this work?
 * How can you write safe SQL?
 * How do parameters prevents SQL Injection?
From Chef To Software Developer
Tags: career, codenewbie, html, python
Published: 2020-07-16 13:33:08

This is my story of how I went from being a chef working 65+ hours a week to 3 years later being a software developer.

I don’t have a degree, I don’t even think I’ve ever got an A in any subject in school, I didn’t have any contacts in the industry. I’m just an average person that was fitting in learning around my very demanding job, whilst still climbing the ladder in hospitality (I had two promotions during this time) and without spending £10k on a Bootcamp.

And in this article, I will tell the story of how I did this, and detail what I would do differently if I were to do it again!
[Continue here](https://medium.com/swlh/how-i-landed-my-first-software-developer-job-without-a-degree-or-attending-a-bootcamp-ee21e73b5660)
Terraform Tips & Tricks, Issue 2: Registry, Locals and Workspaces
Tags: terraform, tips
Published: 2020-07-16 13:16:29

---
title: Terraform Tips & Tricks, Issue 2: Registry, Locals and Workspaces
published: true
description: Learning Terraform: Tips & Tricks 2
tags: terraform, tips
cover_image: https://assets.mkdev.me/posts/covers/000/000/012/original/mkdev_article.png
---
In addition to our [Lightning Course](https://dev.to/mkdev/infrastructure-as-code-and-how-terraform-fits-into-it-40bl), Kirill Shirinkin will share extra tips on using Terraform. In the second issue of Terraform Tips & Tricks, you will learn 3 more useful Terraform features:

{% youtube oSliU84GTNA %}

***

* [Terraform Tips & Tricks, Issue 1](https://dev.to/mkdev/terraform-tips-tricks-issue-1-format-graph-and-state-c6o)
* [Terraform Tips & Tricks, Issue 2](https://dev.to/mkdev/terraform-tips-tricks-issue-2-registry-locals-and-workspaces-664)


*You can always hire [our mentors](https://mkdev.me/en/specializations) and learn directly from them!*
Learn awesome web design😉
Tags: webdev, web, design, programming
Published: 2020-07-16 12:54:35

Hey guys,

I'm a front-end web designer, I started my new page on Instagram some days ago.

My page is about learning web design, I post web tutorials there.

So guys if you have interest in web development or in web designing then you should follow my account.

@nwtutorials
{% instagram CCiGEDXAX7x %}
Building a website with Cobalt.rs
Tags: cobalt, rust, webdev, blog
Published: 2020-07-16 12:54:34

I had considered making a blog/journal site for a while, but never found the time to work it into my already busy schedule.

But after doing some light research into the latest and greatest static site generators, I came across a unique specimen called [Cobalt](https://cobalt-org.github.io/). Cobalt is essentially a re-implementation of Jekyll in Rust, but with its own unique quirks.

![Cobalt Static Site Generator](https://dev-to-uploads.s3.amazonaws.com/i/gtg61gu1qw4edxc6arat.png)

Though Cobalt doesn't have the same maturity as Jekyll, I still find using it to be very enjoyable. It's also one of those situations where, as someone who appreciates what the Rust community is building, it can be worth sacrificing some convenience for the sake of supporting a cause.

When I had a problem with the `where` function in Liquid not working, I put up an issue on Cobalt's GitHub page and the maintainers added it in less than a day. This made me a very happy camper.

## The setup

Installing Cobalt couldn't be more straight-forward. Assuming you have [Rust installed](https://www.rust-lang.org/tools/install), simply run the following:

```
curl -LSfs https://japaric.github.io/trust/install.sh | sh -s -- --git cobalt-org/cobalt.rs --crate cobalt
```

And that's it. Cobalt's installed.

To create a new site:

```
cobalt init <my-site-name>
```

`cobalt init` without a site name will initialize a new site in the current directory. With the name, it creates a directory for your site. _It just works._

For designing and configuring your site, I recommend referring to their docs, which are fairly well written.

## The takeaway

_Is Cobalt mature enough to build a blog site?_

Absolutely. It's super easy to build a blog with Cobalt.

_Is Cobalt right for a business's website?_

It's tough to say. Depending on what you want to implement on the site, it might be enough. It also might not be. Like Jekyll, Cobalt is blog-aware, which means that configurability is more limited than something like Hugo or Gatsby. I recommend at least pairing Cobalt with [Netlify CMS](https://www.netlifycms.org/), which gives the site a simple and convenient interface for non-coders.

_Why would I choose Cobalt over Jekyll?_

1. You like to see your site built blazingly fast.
2. You like Rust and the community that goes along with it.
3. You like to support the underdog.
4. You prefer simplicity over features-galore.
Feeling under utilized/not challenged, how to over come?
Tags: devops, career, productivity
Published: 2020-07-16 12:34:10

I work as a Software Developer for a top 50 Fortune 500 company where I am part of a team which specializes in Dev-Ops. Lately I’ve been feelings underutilized with most of my team members always asking others for help instead of coming to me or I always get stuck with tedious work which anyone can do. Based on my job title I am considered a Junior Developer and feel like the work handed to me isn’t challenging me. I find myself bored some days and others I immerse myself with reading various technology blogs, CS sub reddit or reading my book to pass time. But I want to know if any Junior Developer has ever felt like this? How do I change? I want to be promoted to at least a mid-level developer. I will preface that I have developed bad habits in terms of producing work at a slow pace or simply being too afraid to ask questions. I’ve been working here for over a year now and I want to improve and be taken more seriously, I want to excel, I want to be that go to person. Some other areas I need to work on are better articulating my issues when they arise. I have intense impostor syndrome where I am always nervous talking to Senior developers because I believe that I am not as good as everyone else or my level of thinking isn't on par with everyone else on the team.
Let's go for 100 Days of Code
Tags: 100daysofcode, codenewbie, computerscience, womenintech
Published: 2020-07-16 12:47:45

Hello Everyone!
So it is for the first time that I am writing a blog but it seems exciting. Recently I came across several amazing devs on twitter. They all are doing amazing job. So yes I thought why don't I go for 100 days of code challenge. I have seen people starting from zero and at the end they all were just different person. I hope I will complete this challenge till the very end. In this exciting journey of 100 days, I wish to I make every day a new milestone.
Wish me luck!
The fastest way to train Coding 🚀
Tags: todayilearned
Published: 2020-07-16 12:42:29

### 👋🏻 Hey, there

First of all, get your favorite drink, prepare your IDE, and come with me through this huge valley called "programming"...

---
At start of our life as developers, the desire for knowledge about coding is huge, but sometimes the anxiety fill us and all this hype flush away from us. So, to solve this brief problem, find a place to practice coding is essential. For this, there is [Codewars](https://codewars.com).

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

---

# 🤔 What is Codewars?

This is a place where you are able to make several algorithms, since easier of them, until the hardest of all. At each level of evolution, new privileges are reached and then new functionalities become unlocked. And not only this, but some these algorithms also are used in some interviews of huge companies that are in this category from technology.

# ⚙️ How this tool works?

All the process is simple and fast:

1. 🚪 Sign Up/Log In

    *It's possible do this using your account from GitHub.*

2. ⚙️ Define your preferences of coding language
3. ▶️ Choose a algorithm along several others
4. Start coding! 🎉

# ℹ️ Why?

1. 🎚️ Several levels of difficulty

    With this, any type of developer, in any level of knowledge about coding, can practice and train your abilities.

2. 🔀 Many ways to solve each problem

    After each challenge that you conclude, the solution used by others users are shown, so affording you to know so many others logical insights about that problem.

3. 💬 Direct contact with community

    Build and solve challenges. From developers, to developers.

# 🌿 Alternatives

1. [HackerRank](https://hackerrank.com)
2. [HackerEarth](https://hackerearth.com)
3. [LeetCode](https://leetcode.com)
A proxy in electron
Tags: discuss, node, webdev, javascript
Published: 2020-07-16 12:37:28

I'm searching for a proxy module easy to implement in electron. Do you got some? I just went a proxy able to block http request.

Also let's talk about the potential interest of a proxy to increase your productivity. Are you interest by the possibility of setting-up a black list of website/server to focus on your job in a timelapse?
Types of NoSQL Data Storages (Part 2)
Tags: database, nosql
Published: 2020-07-16 12:26:07

Continuing from [part 1](https://dev.to/nyashanziramasanga/understanding-non-relational-nosql-databases-32aa-temp-slug-7517842/edit) 

## Characteristics of NoSQL data storage

- Often Open Source
- Non-Relational (NoSQL)
- Schema-less
- Horizontally scalable
- Uses BASE consistency

## Types of NoSQL Data Storages

NoSQL uses different data stores to optimise for specific purposes based on the system requirements, below in Table 4 there are 4 categories of NoSQL data stores and examples of vendor software offerings:

### 1. Key-Value Store

Store data (a value) and apply a label to it (a key) and store it in either in-memory or storage system optimised for fast data retrieval. Used for caching objects in applications.

Example: [Redis](https://redis.io/)

### 2. Document Store

Designed for storage, retrieval, and managing of document-oriented information. Document stores save all information of an object as an instance in the database, instead of spreading data amongst different tables as with relations databases.

Example: [MongoDB](https://www.mongodb.com/)

### 3. Wide Column Store

Uses tables, rows and dynamic columns, different to relational databases as each row does not require the same column allowing for horizontal scaling of the database a use case is storing user profiles

Example: [Cassandra](http://cassandra.apache.org/)

### 4. Graph Database

Stores data as nodes and edges. Nodes store the object data and Edges stores information on the relationship of the nodes. Used to traverse relationships and patterns in data use cases are social networks, artificial intelligence, and a recommendation engine.

Example: [Neo4j](https://neo4j.com/)

The following table below shows the types of NoSQL databases and features associated with them:

| Type  | Performance | Scalability | Flexibility | Complexity 
| ------------- |:-------------:| -----:|-----:|-----:|
| Document Store | High | Variable | High | Low|
| Column Store | High | High | Moderate|
| Low Kev-value Store | High | High | High | High|
| Graph-based | Variable | Variable | High | High|

[[Part 1] Understanding Non-Relational (NoSQL) Databases (Part 1)](https://dev.to/nyashanziramasanga/understanding-non-relational-nosql-databases-32aa-temp-slug-7517842/edit)

[[Part 3] Document Store Database - MongoDB](https://dev.to/nyashanziramasanga/document-store-database-mongodb-part-3-3dne-temp-slug-9317257?preview=5243e39ccf173731c271e0db7b47d254ff6bacab568a704d140589d1fc694ad9d26aaf87ce216b7b2ed88938303e8c63a7f69bcd36f38ea7eea37ef3)
What is Recovery Model in SQL Server 
Tags: sqlrecover, sql, restoresql, sqldataserver
Published: 2020-07-16 12:25:45

I would like to recommend you to use this <a href="http://www.pcrecoveryutility.com/sql-database-recovery.html">SQL Server Database Recovery</a> software which is a reliable and effective software that can easily repair your damaged and corrupted SQL database. With this software you can easily repair both .mdf and .ndf sql data files.

The tool is designed with an advanced and secure algorithm to deal with all minor or major corruption issues. This software can easily repair every bit of sql data in every scenarios. It is fully capable to recover all the SQL file objects such as tables, views, triggers, stored procedures, constraints, default constraints, indexes, rules, user defined functions & user defined data types.

Technical or non technical both can easily use this software without any technical skill and provide an enhanced easy to use user friendly interface to make this 

software fast and simple. This software can support all version of MS SQL server such as 2018, 2017, 2016, 2014, 2008, 2012, 2008 R2, 2008 Express, 2008*64, 2005*64, 2005, 2000, Express, 2000*64 and 7.0 

<b>Use this coupon code (SYSMOON20OFF) to get 20% discount on purchasing the full licensed product.</b>

Visit here to know more:- http://www.pcrecoveryutility.com/sql-database-recovery.html
What is SQL Server Recovery Model
Tags: sqlrecovery, sql, sqlrepair, restoresql
Published: 2020-07-16 12:24:17

You may use any manual method to recover SQL data at free of cost but sometime it doesn't work well and unable to repair data then in this situation, using third party software would be better option to recover all corrupted sql server data.

With this <a href="http://www.undeletepcfiles.com/sql-database-recovery-tool.html">SQL Data Server Recovery</a> software you can easily repair both .mdf and .ndf sql data files. The MDF files also called as the master data files which are 

the primary data files stored in MS SQL database. As MDF files are the base files of all the primary data, any type of damage to these files may result in the fall down of the whole SQL database.

This software can support all version of MS SQL server such as 2018, 2017, 2016, 2014, 2008, 2012, 2008 R2, 2008 Express, 2008*64, 2005*64, 2005, 2000, Express, 2000*64 and 7.0 and compatible with all windows such as 10, 8, Windows 7, Vista, Server 2008, Xp and Server 2003.

Use this coupon code (SYSMOON20OFF) to get 20% discount on purchasing the full licensed product.

Simply follow this link to more information:- http://www.undeletepcfiles.com/sql-database-recovery-tool.html
Types of SQL Server Recovery Models
Tags: recoversqlserver, sql, sqldatarecover, restoresqldata
Published: 2020-07-16 12:22:22

If your SQL data got corrupted due to several reasons such as power failure, dirty shutdown, hard drive error, virus, server bug and etc. Then you may use any manual method to repair it but problem is that manual method is very complicate and has very long steps which take much more time to process.

Use this SQL database recovery software which is a reliable and effective software that can easily repair your damaged and corrupted SQL database. With this software 

you can easily repair both .mdf and .ndf sql data files. The MDF files also called as the master data files which are the primary data files stored in MS SQL database. 

Technical or non technical both can easily use this software without any technical skill and provide an enhanced easy to use user friendly interface to make this software fast and simple. Use it free demo version to see the preview of bak files and export 25 records per folder.

Use this coupon code (SYSMOON20OFF) to get 20% discount on purchasing the full licensed product.

Read more info:- http://www.filesrecoverytool.com/sql-database-repair.html
Multiple types of HashMap parameters through Ajax in Android Studio
Tags: ajax, android, studio, javascript
Published: 2020-07-16 12:21:48

f you are initializing HashMap with fixed data type then you can not store any other values for that other then specified datatype. If you want to store any data as a value then you should use Object data type.



HashMap<String, Object> param = new HashMap<>();
Then after you can add any value (Bitmap or String) as a Map value.

You can store the value like,

HashMap<String, Object> param = new HashMap<>();
param.put("listing_title", ETitle.getText().toString()); // String values
// add Other String parameters here..
param.put("listing_img_file", bitmap); // Your Image Bitmap file
My suggestion is replace your HashMap<String, Object> with LinkedHashMap<String, Object>. HashMap doesn't maintain any order while LinkedHashMap maintains insertion order of elements.

Know more here: https://stackoverflow.com/questions/55881005/is-there-a-way-to-send-multiple-types-of-hashmap-parameters-through-ajax-in-andr/55881344#55881344
Free online GPU resources for your next machine learning project
Tags: machinelearning, datascience, resources
Published: 2020-07-16 12:20:38

The training phase in machine learning is a **resource-intensive** task, which needs a lot of **computation power**.

A **GPU** (Graphics Processing Unit) is a specialized electronic circuit designed to perform mathematical calculations faster than CPU in order to render images or graphics.

If you are familiar with some machine learning algorithms, you have seen that training is just **finding the best possible weights(numbers)** which can fit the data well. 

In this post, I'll share two resources you can use to train your machine learning model faster on cloud GPUs for free.

### 1. Google Colab

[Google Colab](https://colab.research.google.com/) is one of the free resources available out there. It provides a free Jupyter Notebook environment in the cloud with **Tesla K80** GPU. However, GPU is not enabled by default. To enable GPU goto `Edit > Notebook Setting` and select `GPU` from the options.

![google colab enabling gpu](https://dev-to-uploads.s3.amazonaws.com/i/zt3o63dq21afzy7hbnjm.png)


It also provides features like importing and exporting data directly into your Google drive.

### 2. Kaggle Notebooks

[Kaggle](https://www.kaggle.com/notebooks) is an online community of data scientists and machine learning practitioners. The website hosts many competitions throughout the year. It also provides a cloud environment for data science and machine learning with **Tesla P100 16GB** GPU. 

To enable GPU you have to select an accelerator during the creation of a new notebook or by clicking the three dots on the top-right corner of the notebook.

![enabling GPU in kaggle notebooks](https://dev-to-uploads.s3.amazonaws.com/i/8pw8qtvilga3apefkrpv.png)


![enabling GPU in kaggle notebooks](https://dev-to-uploads.s3.amazonaws.com/i/6ruuab2i6mtj52syr40e.png)

### Code to test if GPU is enabled

Run the following code to test if the GPU is enabled in your environment.

```python
import torch

print("Current device :{}".format(torch.cuda.current_device()))

print("Device count :{}".format(torch.cuda.device_count()))

print("Device name :{}".format(torch.cuda.get_device_name(0)))

print("Device available :{}".format(torch.cuda.is_available()))

```

If the GPUs are enabled you'll the output something like below

![output of gpu enabled notebook](https://dev-to-uploads.s3.amazonaws.com/i/7zubsm0lln3e8ghmlxp1.png)
Taken from my notes: Create a new React app
Tags: react
Published: 2020-07-16 12:02:10

#About Me

I'm a self taught programmer. I taught computer programming to high school students at in Cleveland, OH. I attended Le Wagon Coding Boot camp and COVID-19 hit during my big job hunt. I'm now trying my hardest to learn React so I can make a living building beautiful websites.

#React Quick Start
###(Note this is for Linux)

##Installing
Download and install [Nodejs](nodejs.org/en)
Download and install [nvm](github.com/nvm-sh/nvm) (Use LTS)
Make sure you also install [yarn](classic.yarnpkg.com/en/docs/install/).

##Create React App

1. In your terminal navigate to the parent directory of where you want to start your new project. If you use `yarn create` skip step 4.
`> npx create-react-app ‘project_name’` **or** `> yarn create react-app ‘project_name’`

2. navigate to the project
`> cd ‘project_name’`

3. Install SCSS (optional)
`> yarn add node-sass`

4. for routing install react-router-dom (optional, skip if you used `yarn create` in step 1)
`> yarn add react-router-dom`

5. Start the server
`> yarn start`


… and you're ready to go...