teleren/devto huggingface dataset:
How to Install or Uninstall a Windows Service
Tags: webdev, service, windowservice, webdevelopers
Published: 2020-11-19 08:17:43

In this article. I will show how to install or uninstall a Windows Service. this Service is written in .NET using C#.
To install or uninstall Windows Service use the utility InstallUtil.exe.

Follow the steps . 
Step 1 : Open the Command Prompt window. (as Administrator)
         Press Windows+R to open the “Run” box. Type “cmd” into 
         the box and then press Ctrl+Shift+Enter to run the 
         command as an administrator.
         ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/rezvv5pqerexzbr3kyj4.png)

Step 2 : Open InstallUtil.exe in the directory for Framework 2.0 (it depends on you in which version you want to install).I will install in v4.0
the path is C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/0e4qej1bjlauaq2h1qx4.png)

Note: The path will be different for different versions of .NET Framework. You can see on this path (C:\Windows\Microsoft.NET\Framework) or search on your machine where InstallUtil.exe is stored.

Step 3 :.NET service runs as a command (specify the full path to your service such as (service location C:\Debug\yourServiceName.exe)
type command in cmd InstallUtil.exe C:\Debug\yourServiceName.exe Press enter key as you can see here.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/de2tm6mou0bhiofj999p.png)

Step 4: If you want to see service is where it is installed.
        press window+R and type in run like services.msc
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/1yrk0yera18dromteuu3.png)
as you can see where service is installed . just click to start your service.Now it is ready to work. :)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/lw5rx9zs98umk1m7xm1j.png)

Step 5: To uninstall service. just type simple command in prompt
just add ‘/u’ between installutil.exe and the path as in the following:
InstallUtil.exe /u C:\Debug\yourServiceName.exe
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/d2ule3spy270jlpvfy0l.png)

I hope this is helpful to you .If you like my post Please follow me on Instagram @twostepdevelopers and share your feedback.
Tips On How Amazon Sellers Can Benefit From Black Friday 2020 Sale
Tags: amazon, blackfriday, onlinesellers
Published: 2020-11-19 08:17:39

Looking to make more money on the biggest shopping carnival of the year? – The Amazon Black Friday 2020 sales.

Good news for all the Amazon sellers worldwide!!

This year Amazon is expected to announce an 8-day long shopping gala on occasion on Black Friday 2020,

The Black Friday and Cyber Monday week is known to be one of the busiest shopping days of the year, which makes it an opportunity of a lifetime for both customers and sellers to make loads of benefits in a single week.

So, a big question arises –

##When Is Black Friday 2020?
This year Black Friday will fall on November 27, 2020, right after thanksgiving. The shopping week will commence from 23rd and will end on the 30th of the month.

So as an Amazon seller, it becomes your responsibility to make the most from this year’s Black Friday Sale on Amazon.

You already do have the upper hand as you don’t have to look for customers. You are already selling on the world’s largest online marketplace, and now all you need to do is to set a firm foot on it.

But the fact could not be overlooked that to become efficient enough to win the buy box on Amazon Black Friday Sale week will require a series of smart planning and flawless decision making.

No problem, I’ll guide you through it all. But first, let’s learn the significance of Black Friday Sales 2020 from the perspective of Amazon Sellers.

##How To Sell On Amazon Black Friday 2020 Sale?
Here are a few tips and tricks that will keep you in the race of being the bestseller on Amazon Black Friday:

- Keep an eye on last year’s trends and sales patterns.
- Get to know all the updated Amazon Seller Policies
- Filling up the inventory with Black Friday Products
- Enhance your listing with High-Quality Images
- Know About Amazon SEO and A9 algorithm
- Provide A Detailed Product Description
- Opt For Fulfillment By Amazon (FBA)
- Keeping an eye on your competitors
- Selling The Right Products At The Right Time
- Work On Customer Retention
- Plan Ahead For The Upcoming Holiday Season
- Switch To An Automated Way Of Selling on Amazon
So let’s get to know [How Amazon Sellers Can Benefit From Black Friday 2020 Sale](https://cedcommerce.com/blog/amazon-black-friday-2020/?utm_source=Dev.to-magento-amazon-black-friday-2020-sonker&utm_medium=18-Nov) details.
Thank You! Feeling Good This Morning
Tags: beginners, javascript, codenewbie, programming
Published: 2020-11-19 08:11:44

I made a post yesterday and I can honestly say I am overwhelmed by the amount of support and encouragement I received. 

I woke up feeling good about myself and willing to go even harder this time. I love this community.

Might just make this my personal blog where I write my feelings as regards being a programmer each day.
Understanding Docker: part 16 – Push images
Tags: docker, devops, beginners, cloud
Published: 2020-11-19 07:58:45

---
title: Understanding Docker: part 16 – Push images
published: true
description: Serie of sketchnotes about Docker. Explaining in a visual way Docker principles.
tags: Docker, DevOps, beginners, Cloud
series: Understanding Docker in sketchnotes
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/t20k1vfobcacn360w86v.jpg
---

Understanding Docker can be difficult or time-consuming. In order to spread knowledge about Cloud technologies I started to create sketchnotes about Docker. I think it could be a good way, more visual, to explain Docker (and other technologies like Kubernetes and Istio).

We continue the series of Docker sketchnotes with a focus about how to push Docker images.

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

As usual, if you like theses sketchnotes, you can follow me, and tell me what do you think. I will publish others sketchs shortly :-).

If you are interested, I published all the sketchnotes on Docker (and new ones!) to make a "book" of 93 pages: ["Understanding Docker in a visual way"](https://gumroad.com/aurelievache#YTLzM).
How Do I Fix Antimalware Service Executable High CPU Usage?
Tags: antimalware, service, executable, disableantimalware
Published: 2020-11-19 07:52:59

‘Antimalware Service Executable’ is a background running service of Windows Defender—(available by-default as an antivirus in Microsoft’s Windows 10) that plays a crucial role in the Windows Defender service of providing Windows 10 a real-time protection from threats and viruses.  However, this Antimalware service executable service of windows 10 also became infamous for consuming a fair amount of CPU processing power, and also for reducing your computer’s speed to a huge extent. 
Thus, if you have been struggling with high CPU usage due to ‘Antimalware Service’ then, here are the ways to fix it. Have a look:

Solution 1: Delete Windows Defender Directory:
To delete the Windows Defender Directory, direct yourself to the ‘C: Program’ files directory.
There, all you have to do is look for the Windows Defender folder.
After locating the same, take ownership of the Windows Defender folder and then, just delete its directory.

Solution 2: Disable Windows Defender: 
To disable Windows Defender, navigate to the ‘Update and Security’ option from the ‘Settings’ of your Windows 10 computer.
Under it, select the Windows Defender option and then, click on ‘Open Windows Defender Security Center.’
After doing so, select the ‘Virus and threat protection’ option to turn off the real-time protection of ‘Windows Defender’ in order to finally disable it.

That’s it! These two are the possible solutions that you should consider to disable antimalware service executable for simply fixing the high usage issue of ‘High Memory Usage by Antimalware Service Executable.’
Visit: https://www.allneedy.com/how-to-disable-antimalware-service-executable/
Fixing Firefox graphics configuration using Nvidia on Ubuntu Linux
Tags: firefox, ubuntu, linux, nvidia
Published: 2020-11-19 07:49:43

**What ?**

A quick tip on how to fix the graphics GPU acceleration on Firefox 83 using Ubuntu Linux LTS 20.04 and Nvidia cards.

**Why ?**

Because I love Firefox but on Ubuntu with Wayland was very slow, specially the scrolling and the video ... so I tried to fix it and now I want to share the trick with others that it might help.

**How ?**

* Ensure you have the Nvidia drivers active (you can do this at the "Aditional Drivers" section of the "Software & Update" configuration app ... on my computer now I use "Nvidia Server driver 450")

* Also ensure you have the `mesa-va-drivers` and `libvdpau-va-gl1` packages installed (you can install them with `apt`)

* Reboot your computer (if it fails try to start in safe graphics mode and try again with other drivers)

* Open Firefox and go to `about:config` (you may skip the warning page when appears)

* At the `about:config` page add these parameters:

```bash
media.ffmpeg.vaapi.enabled = true
widget.wayland-dmabuf-vaapi.enabled = true
media.ffmpeg.vaapi-drm-display.enabled = true
media.ffmpeg.enabled = true
```

* Restart Firefox and check the scrolling is working and the video it's also working with Netflix or Youtube (you can also go to `about:support` to check if the Compositing feature is `WebRender` and more info about Firefox configuration)

**Who ?**

This trick is possible thanks to Martin Stransky's hack for fixing Firefox with Fedora -> https://mastransky.wordpress.com/2020/06/03/firefox-on-fedora-finally-gets-va-api-on-wayland/

**IMPORTANT:** You may brake the video if the drivers are not the right ones and with that have no access to your computer desktop, please try to have an USB or DVD with Ubuntu ready to try to regain access _before_ trying this trick.
What every MEAN Stack developer should know
Tags: meanstack, review, mobile
Published: 2020-11-19 07:35:59

MEAN stands for MongoDB, Express.js, Angular.js, Node.js. 
Here's a little tech skills review for a MEAN stack developer.
If you're a junior developer, it can help you to set goals in your studying. In case if you're an expirienced MEAN stack developer, use the information as a list to check yourself.

Libraries to explore:
* React.js
* Underscore.js
* Redux 
* Lodash 
* Vue.js


MEAN stack developers should also be skilled with 
* Java 
* Javascript
* SQL
* JQuery
* JSON 
* HTML and CSS

Other knowledge:
1.deployment processes;
2.analysis and debugging;
3.common web apps’ vulnerabilities;
4.browser “hotspots” and workarounds;
5.design standards in the specific industry.

To learn more and see the additional requirements for MEAN stack developers you can find  <a href="https://exceed-team.com/hire-mean-stack-developers">in this article</a>.
Why Python is bad (and also good)
Published: 2020-11-19 07:31:25

## Where it is bad?
I think python is bad because of it's syntax. Many schools introduce students to programming via python, but it makes students make more mistakes if they use a static-typed language like C or Rust. Like adding ';'s after lines and giving types to variables, although 3.9 has type annotations I guess.

Also there is speed. Python can't be said bad because of this, because there are other implementations of python like Jython or IronPython. But it is CPython that makes it slow.

## What is it good for?

Well, python is a pretty good language quick prototyping or data science, machine learning, etc.

But since python gets a boost from C/C++ modules, it makes up for the slow speed, atleast till some extent.
Developer Diaries : Refactor Code!! Noooo.. :'(
Tags: productivity, refactorit, discuss, codequality
Published: 2020-11-19 07:18:48

Every time someone mentions refactoring code,
My stomach churns like a washing machine mode.
It's like cleaning out my closet or tidying up my bed,
Except it's a million times worse, or so I've said.

"Why bother?" I whine, "It'll just be a mess again,
Like a tornado just swept through and left a big stain."
But deep down, I know it's the right thing to do,
And that's why I'll grudgingly say, "Okay, fine, I'll do."

So I roll up my sleeves, and dive right in,
And feel like a frog, trying to swallow a gin.
The code is a mess, and it's in need of some love,
So I get to work, like a diligent beaver, I shove.

I tackle the easy parts first, with a grin,
Like picking up the garbage, left in the bin.
Then comes the hard stuff, and that's when I sweat,
Like a contestant on a game show, feeling the regret.

But I'm determined to make it all better,
To improve our code, make it faster, and wetter.
I'll streamline our functions, cut the bloat,
Optimize our algorithms, and give them a coat.

And when it's all done, and the code runs like a dream,
I'll do a victory dance, like a ballerina queen.
I may not get the recognition I deserve,
But I know I'm the one who preserves.

I preserve the quality of our software,
And keep our users happy, without a care.
I preserve the integrity of our code,
And make it easy for anyone to decode.

So here's to all the developers, big and small,
Who refactor their code, and give it their all.
You may not get the recognition you deserve,
But you're the ones who preserve!

... TO_BE_CONTINUED
Content monetization 
Tags: decentralization, blockchain, development, platforms
Published: 2020-11-19 07:12:55

---
title: Content monetization 
published: true
description:platforms decentralization 
tags: decentralization, blockchain, development,    platforms 
//cover_image: https://direct_url_to_image.jpg
---
I have recently come across new platforms that are decentralized where you own your data and profit from your content. Then i had a light bulb moment, why can't we build our own decentralized platform and call it dev.to 2.0, we can build it as an open source and benefit from it while using it. E.g https://twet.ch/inv/NhlanhlaHasane and https://www.publish0x.com/?a=LDdwjKMJb1
When life gives you lemons, make lemonade and plant lemon trees
Published: 2020-11-20 02:55:11

---
title: When life gives you lemons, make lemonade and plant lemon trees
published: true
date: 2020-11-19 06:53:17 UTC
tags: 
canonical_url: https://phongduong.dev/blog/when-life-gives-you-lemons-make-lemonade-and-plant-lemon-trees/
---

Sometimes everything doesn't happen as you expected. You may get stuck in difficult situations. You may lose your job, your house, or your family. You would get hurt and frustrated but don't give up. But you can improve your situation and make it better.

More, you can make use of difficult situations as a source of growth. They will teach you invaluable lessons.

You can view every situation as a lemon and its seeds as lessons. When life gives you one lemon, you make lemonade. You improve the situation.

But what about its seeds? After you have the seeds, you can take them to plant new lemon trees. You will harvest your own lemons. This is when you apply your lessons in difficult situations in the future. You are going to know how to solve the problem and improve it.

The more trees you plant, the large your lemon garden is. You will learn more lessons and become a better person.

> You don't need to be scared of difficult situations, just love and make use of them.
Billion Dollars Startup Idea
Tags: startup
Published: 2020-11-19 06:40:28

We all need that one idea to go off like a light bulb in our minds which would make us an overnight success.

Realistically, there is no such idea.

No idea in itself can bring you success or infact any amount of money if it’s not executed well. Execution is the key which many people overlook when talking about these ideas.

Even a simple idea can be a billion dollars one if executed properly.
#PureCSS - Responsive DigitalOcean Sammy the Shark
Tags: codepen, purecss, css, digitalocean
Published: 2020-11-19 06:40:19

---
title: #PureCSS - Responsive DigitalOcean Sammy the Shark
published: true
tags: codepen, purecss, css, digitalocean
---



{% codepen https://codepen.io/AsyrafHussin/pen/gOMJPxy %}
Tailwind 2.0 is released
Tags: css, html, javascript, webdev
Published: 2020-11-19 05:58:48


After 18 months when released v1.0, the Tailwind team introduces [Tailwind 2.0](https://tailwindcss.com/)

##Key updates and new features:


### **A New color palette**

Now Tailwind has 220 colors (22 colors with 10 shades each) and 5 includes shades of gray color
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/rr2o4pcdv9fp1x3gqsqb.png)



### **Dark mode**
The most desired feature is available now
Dark mode in Tailwild easy to use and it works with background colors, text colors, border colors, and even gradients out-of-the-box

Simple example:
```html
<div class="lg:bg-white lg:dark:bg-black">
  <p class="text-gray-500 dark:text-gray-300">
    The feature you've all been waiting for.
  </p>
</div>
```



### **Extra wide 2XL breakpoint**
New 2xl breakpoint out-of-the-box that lets you target things at 1536px and above:
```html
<h1 class="... 2xl:text-9xl">Godzilla</h1>
```



### **Default line-heights per font-size**
Every utility font-size now comes with a sensible default line-height. More info about it is [here](https://blog.tailwindcss.com/tailwindcss-v2#default-line-heights-per-font-size)



### **Extended spacing, typography, and opacity scales**
Tailwind in v2 spacing scales has been extended and now you able to use more values for every use-case

```html
<span class="ml-0.5">Just a little nudge.</span>

<div class="p-96">This is too much padding.</div>
```



### **Use @apply with anything**
Good news that you able to use @apply with every Tailwind class

```css
.btn {
  @apply bg-indigo-500 hover:bg-indigo-600 focus:ring-2 focus:ring-indigo-200 focus:ring-opacity-50;
}
```


### **Drop IE11 support**
Somebody can say about is a bad fact, but let's be honest - The most popular dream of web developers, who supporting and debugging IE11 every day, is to leave it and sleep better.

I congratulate Tailwind for do that step after Bootstrap.
And don't forget is that if you need to support IE11, you can always use Tailwind CSS v1.9


#### Read more about Tailwind 2.0 in [release notes](https://blog.tailwindcss.com/tailwindcss-v2) and [documentation](https://tailwindcss.com/docs)
Setup for React + Tailwind CSS
Tags: react, javascript, tutorial, programming
Published: 2020-11-19 04:33:10

TalwindCSS is an awesome CSS framework that we can use to style anything with ease and get our webpage to look better. Integrating TailwindCSS with React is not so simple at first as lots of different things have to installed and not just doing two npm install and it will be done. I made it hell simpler now to do this. You can have a review over this and let me know if this works fine for you.

### Installing React App

```bash
npx create-react-app .
```

### Installing TailwindCSS

```bash
npm i -D tailwindcss postcss-cli autoprefixer
```

Here -D means `dev dependencies` '
Here postcss is used for compiling tailwindcss and also allows us to use autoprefixer 

### Installing Tailwind config file

```bash
npx tailwind init tailwind.js --full
```

### Create a postcss config file

```bash
touch postcss.config.js
```

Add in the following code in postcss.config.css

```
const tailwindcss = require('tailwindcss');

module.exports = {
    plugins: [
        tailwindcss('./tailwind.js'),
        require('autoprefixer')
    ]
}
```

* **Now open src folder and create a file named assets and create two CSS files in it named main.css and tailwind.css**

Add the below code in tailwind.css

```
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
```

Now go to package.json as we want to create some extra scripts:-

Your scripts code should look like this:-

```
"scripts": {
    "start": "npm run watch:css && react-scripts start",
    "build": "npm run build:css && react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "build:css" : "postcss src/assets/tailwind.css -o src/assets/main.css",
    "watch:css" : "postcss src/assets/tailwind.css -o src/assets/main.css"
  },
```

After doing this I faced error of not found postcss and autoprefixer, 
I just installed both of them using:-

```bash
npm i postcss
```

```bash
npm i autoprefixer
```

Now one last work to do is change the css file name in `index.js`

```
import './assets/main.css';
```
You should have this to import all the tailwindcss.
Project 13 of 100 - React Movie Search
Tags: react, javascript, 100daysofcode, css
Published: 2020-11-19 05:56:39

*Hey! I'm on a mission to make 100 React.js projects in 100 days starting October 31, 2020 and ending February 7th, 2021. Please follow my dev.to profile or my twitter for updates and feel free to reach out if you have questions. Thanks for your support!*

Link to today's deployed app: [link](https://100-react-projects-day-13-movie-search.netlify.app/)
Link to the repo: [github](https://github.com/jwhubert91/100daysofreact/tree/master/day-13-movie-search)

I've been meaning to follow along with the excellent James Q Quick-led React [movie search app tutorial](https://scrimba.com/learn/reactmovie) on Scrimba for a while now. It seemed almost as though it were designed for students who just finished Bob Ziroll's React intro course, so I'm glad I finally made the time for it.

##The Application
This application has a simple structure with just 3 functional components. We use all functional components because one of the primary intentions of the course is to practice using React's new-ish `useState` hook.

The 3 components were `Main`, `SearchMovies`- where we write a search form, and a `MovieCard` component which we later import into a container and use when looping through API results from a text query sent to **themoviedb.org**, which is another full-featured API with documentation perfect for simple fetch() based apps like this.

##The useState Hook
In a previous blog post I wrote that I was confused that we were just creating a constant called `state` without using the constructor function in class based components. That's been a thing in React for about a year, and it's very convenient.

`useState` adds a whole new level of convenience by completely removing the need to reference `prevState` when changing state. It provides a neat syntax which is even includes its own required setState mini-function upon declaration.

Compare the following two ways to change a state given some text input:

###1. setState()
```
class MyComponent extends React.Component {
  state = {
    userInput: ''
  }

  handleInput(e) {
    this.setState({userInput: e.target.value})
  }
  ...
}
```

###2. useState()
```
function MyComponent() {
  const [userInput, setUserInput] = useState('');

  handleInput(e) {
    setUserInput(e.target.value)
  }
  ...
}
```

Overall in terms of intuitive-ness I find it to be a big improvement.

5/5 stars would code again.
7 ES6 Features Recommended For Getting Started with ES6
Tags: javascript, beginners, programming, modernjavascript
Published: 2020-11-19 05:43:43

1. let and const 

2. arrow functions 

3. template literals 

4. default parameters 

5. object literals 

6. rest and spread operators 

7. destructuring assignment 

These are the seven features that would be recommend if you are getting started with es6.

Click to read more on 
<a href="https://yuvrajhinger.in/post/seven-es6-features">7 ES6 Features Recommended For Getting Started with ES6</a>