teleren/devto huggingface dataset:
2D Character Design -An Ultimate guide to design
Tags: 2dcharacterdesign, animation, innovativeideas, design
Published: 2021-03-29 10:04:04


Have you ever met a person who doesn’t like 2D Cartoon characters? Indeed, Fictional 2D characters enthrall everyone.

Do you want to grab the magic behind the creation of an amazing 2D animation? Let’s know the crucial tips to design your fictional 2D character.

**1. Select a trendy concept**
 Conduct keyword research and observe people’s perceptions about 2D characters. Analyze and choose a trendy subject. Draft the characters that actually people are looking for. This in turn engages the people more effectively.

Come up with brainstorming ideas to fascinate your audience. Collects the pros and cons of critical keywords, and share with your colleagues to choose a story wisely.

**2. Make a Rough Sketch of the character**
The successive step after choosing a concept based on the keyword analysis is to draw a character roughly. create sketches of various poses of characters with spectacular details.

Sketch with various themes and convert the hand drawings to vector format. Craft several images to predict and visualize your creative character.

Edit your 2D character with distinct details. Even minor features like sweat, wrinkles are to be designed distinctly.

**3. Craft Unique characters with accessories**
 It’s a well-known paradox that the accessories of the character allures everyone.

Come up with innovative ideas and design a unique accessory for the proposed 2D character. Illustrate different poses with eye-catching items and choose the matching concept. Ultimately, you will attain an incredible character design.

**4.Number the poses and name the character**
Undoubtedly, it will be a fun session with your team to decide the name of the designed 2D characters. Align the scenes as per the concept. This in turn helps the directors to find any errors or mismatching of scenes.

Eventually, the rough sketch is ready, and get going with designing on user-friendly software such as flash, photoshop.
 
**5. Animate the characters**
Create the 2D model on the software. One of the best software to design 2D characters is photoshop. Photoshop is an exclusive software widely used by professionals. From photo editing to animation can do it all in photoshop.

Also, edit your 2D character with advanced tools and quickly design the characters with jaw-dropping visuals. Ultimately, a striking 2D character design is ready to share with your team!

[Create an incredible 2D animation with our innovative ideas for your brand and fascinate the target audience with stunning visuals. ](https://pixlnexs.com/)
[We are here to guide you to grow your business as well as your audience.](https://pixlnexs.com/2d-Character-design)
View which activity is open in the current app
Published: 2021-03-29 10:01:47

**Method 1**
open Android Studio,At the bottom, there is a terminal button,click and open it.
Enter: adb shell dumpsys activity | findstr "ResumedActivity" ,and press enter.

**Method 2**
Click the window key (on the right side of the CTRL key) and enter the power shell.
Enter: adb shell dumpsys activity | findstr "ResumedActivity" ,and press enter.

**Method 3**
"Window key + R key" to open the computer's "run" window, enter "CMD",Enter your adb.exe Directory
Enter:adb shell "dumpsys window | grep mCurrentFocus",and press enter
DevDojo Weekly Winners Week 4 March 2021
Tags: writing, webdev, devops
Published: 2021-03-29 09:58:45

Can you believe that it's almost the end of March! With it being the last week of the month, that means it's time for a weekly winner announcement. 🎉

Just a reminder, if you want a chance to earn some cash prizes each week, 💰 you can learn more here about the [DevDojo Weekly Winner Contest](https://devdojo.com/featured/info). 🏆

Here are this week's weekly winners. 👏

# 1. [Use Local Storage in React](https://devdojo.com/savio/use-local-storage-in-react-the-fastest-way) 

Written by [savio](https://devdojo.com/savio).

[![Use Local Storage in React](https://cdn.devdojo.com/posts/images/March2021/use-local-storage-in-react-the-fastest-way.jpg?auto=format&q=70&w=1280)](https://devdojo.com/savio/use-local-storage-in-react-the-fastest-way)

# 2. [Getting Started with Prometheus](https://devdojo.com/ruanbekker/getting-started-with-prometheus-and-node-exporter) 

Written by [ruanbekker](https://devdojo.com/ruanbekker).

[![Getting Started with Prometheus and Node Exporter](https://cdn.devdojo.com/posts/images/March2021/getting-started-with-prometheus-and-node-exporter1.jpg?auto=format&q=70&w=1280)](https://devdojo.com/ruanbekker/getting-started-with-prometheus-and-node-exporter)

# 3. [6 YouTube Channels About Web Development](https://devdojo.com/bo-iliev/6-youtube-channels-about-web-development) 

Written by [bo-iliev](https://devdojo.com/bo-iliev).

[![6 YouTube Channels About Web Development](https://cdn.devdojo.com/posts/images/March2021/6-youtube-channels-about-web-development1.jpg?auto=format&q=70&w=1280)](https://devdojo.com/bo-iliev/6-youtube-channels-about-web-development)

# 4. [6 Best React Dashboard](https://devdojo.com/suniljoshi19/6-best-react-dashboard-templates-that-you-can-use-in-2021) 

Written by [suniljoshi19](https://devdojo.com/suniljoshi19).

[![6 Best React Dashboard](https://cdn.devdojo.com/posts/images/March2021/6-best-react-dashboard-templates-that-you-can-use-in-2021.jpg?auto=format&q=70&w=1280)](https://devdojo.com/suniljoshi19/6-best-react-dashboard-templates-that-you-can-use-in-2021)

# 5. [Laravel Best Practices](https://devdojo.com/alpdetails/laravel-best-practice-coding-standards-part-01) 

Written by [alpdetails](https://devdojo.com/alpdetails).

[![Laravel Best Practices](https://cdn.devdojo.com/posts/images/March2021/laravel-best-practice-coding-standards-part-013.jpg?auto=format&q=70&w=1280)](https://devdojo.com/alpdetails/laravel-best-practice-coding-standards-part-01)

# Conclusion

As always, thanks to everyone who has been writing tutorials and articles on the DevDojo. We've also got some cool open source projects coming down the pipe, so be on the lookout. 😉 

Let's wrap up March with some awesomeness as we welcome a new month of awesome articles and possibilities. 😉
Are you stuck in Tutorial hell?
Tags: tutorial, codenewbie, programming, python
Published: 2021-03-29 09:51:24

### If you are then you are not alone. Every new developer goes through it so it's completely normal. I would like to share how I came out of tutorial hell.

I used to get ideas for creating web apps but didn't know how to implement them and used to search for some tutorials and code along with it, this is when I got stuck in tutorial hell. 

I created a lot of projects only by watching tutorials without gaining any actual knowledge. I was totally dependent on youtube channels like traversy media, web dev simplified, florinpop, and many more. I just copy-pasted their code. This is the worst you could do.

- I would like to tell you that it's totally fine watching tutorials but after watching and creating the app try implementing something of your own in the app, try and customize the app, play with the colors, take some effort to make it our own.

- Also after creating the app try creating a clone of it without watching the tutorial and change the complete UI, use your own imagination, and see how much you have learned watching the tutorial, you would really see the difference.

- After you get comfortable with the language I would suggest you clone the app before watching the tutorial, it would be a good challenge and it would boost your energy and improve your skills too.🚀

- If you want ideas for your next project leverage GitHub and look through people's code, you'll definitely get a new idea and also learn conventions and practices to write clean code.

**I hope this helped you and you'll take necessary actions and also make sure to help others by sharing the article🔥. You can follow me on Twitter, where I post about web development and similar content [Deveshb15](https://www.twitter.com/Deveshb15)**
Few basic commands that may come in handy for System Engineers
Published: 2021-03-29 09:36:09

# Process related

```ps -ef|egrep "java||httpd||nginx"``` Or 
```ps -ef|grep java``` (Any process that you want to grep)
```top``` ( To check process utilization)
```kill -9 pid``` ( to kill a process)
```kill -3 pid``` (to take heapdump)
```kill -9 $(lsof -t -i:port_number)```
```systemctl status/stop/start service_name```
```service service_name stop/start/status```


# Logs related

```tail -100f access.log/error.log```
```tail -100f SystemOut.log|grep -i "hung"``` (to check out the hung threads)
```more access.log/error.log``` ( to check the previous logs)

# FileSystem cleaning

```df -kh /directory_name```
```du -sh *|sort -n```
```find file_path -type f -size +100M -mtime +90 -exec rm -r{} \;```

# SSL related

To import a java certificate:-
```./keytool -import -keystore key_store_path -trustcacerts -file cert_file.cer -storepass changeit```

To create a new java keystore:-
```./keytool -genkey -alias alias_name -keyalg rsa -keysize 2048 -keystore name_keystore -storepass changeit

To raise a Cert request or raise a csr:-
./keytool -certreq -file cert_file_name.csr -keystore name_keystore -storepass changeit```

To view a certificate file using openssl:-
```openssl x509 -text -in file_name.cer``` /
```openssl x509 -text -inform DER file_name.cer```

To create a new self signed certificate using openssl:-
```openssl req -x509 -days 365 -nodes -newkey rsa:2048 -keyout file_path_key_name.key -out file_path_cert_name.crt```

# Network Rekated

```netstat -at/au``` (to show ports open for tcp or udp)
```curl -Ik URL``` (to check header information and return code)
```nslookup ip_address/domain```
WebComponent com HTML, CSS, SVG e JavaScrip puros
Tags: webcomponents, customelements, javascript, svg
Published: 2021-03-29 09:33:01

Neste vídeo apresento como conseguimos usar web components sem necessidade de frameworks e como isso se tornou um tarefa simples de ser feita, com pouco código e o melhor, organizado.

Componentes da Web de forma nativa usando apenas HTML, CSS, SVG e JavaScript com a API Custom Elements.

> Neste momento a especificação de elementos personalizados (custom elements) está sendo incorporada na especificação [W3C DOM](https://www.w3.org/TR/dom41/) e no padrão [WHATWG DOM](https://html.spec.whatwg.org/multipage/custom-elements.html), na especificação [W3C HTML](https://www.w3.org/TR/html52/) e no padrão [HTML WHATWG](https://html.spec.whatwg.org/multipage/) e outras especificações relevantes. Consulte o [repositório de componentes](https://github.com/WICG/webcomponents) da Web do W3C para continuar a discussão sobre este assunto.

Isso é um ótimo sinal e em breve polyfills ou frameworks não serão mais necessários para este objetivo em específico, conforme nossas APIs vão evoluindo e ganhando suporte dos navegadores, quase que sem perceber, nós vamos adicionando o uso das mesmas em nosso dia-a-dia.

Então mostro como alguém que nunca criou um, chegou a hora : )

Segue [link do video](https://youtu.be/7tsyjXxaloI) no YouTube

<a href="https://youtu.be/7tsyjXxaloI">
![Componente de ícone em SVG. Usando WebComponent nativo apenas com HTML, SVG e JavaScrip.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zkmp8dem2170d6tikkne.png)
</a>
Tab Design using HTML & CSS | Vertical Tab
Tags: tabdesign, verticaltab, csstab, tabdesigns
Published: 2021-03-29 09:21:54

Hello, Guys welcome to my new blog on tab design, today I will create tabs by using HTML & CSS. There are several tutorials on the internet about tab design by using JavaScript but now I,m going to create tabs with the help of HTML & CSS only. I have already created various designs that are important for the website and this tab design is also an essential part of the website.

In simple form, a tab is the combination of various hyperlinks that contain a different section of an article or other contents as per their topic. Tabs helps to reduce space on the webpage and it makes it easy to use for a quick movement from one tab to another.

I have given the image of the tab that we are building today. As you can see on the image there are five topics that contain different sections as per their topic. There is on blue indicator inside the help tab and we can see the help content of that tab.

##You May Like This:##
<a href="https://www.codinglabweb.com/2021/03/css-responsive-profile-cards-with-slider.html">Responsive Profile Cards</a>
<a href="codinglabweb.com/2020/12/responsive-navigation-menu-bar-design.html">Resposnive Footer Section</a>
<a href="https://www.codinglabweb.com/2020/12/responsive-footer-html-css.html">Responsive Registration Form</a>
<a href="https://www.codinglabweb.com/2021/03/responsive-portfolio-website-using-html-css-javascript.html">Complete Portfolio Website</a>

##Tab Design [Source Code]##
You can download all source code from the given link. <a href="https://www.codinglabweb.com/2021/03/tab-design-using-html-css-vertical-tab.html">Click Here To Download All Source Code</a>
Some small Css tips #012
Tags: webdev, css, html, beginners
Published: 2021-03-29 09:19:02

---
title: Some small Css tips #012
published: true
description: I try to tweet a small css tip every day. Here is a collection of some of them.
canonical_url: https://since1979.dev/some-small-css-tips-012/
cover_image: https://since1979.dev/wp-content/uploads/2021/03/small-css-tips-012.jpg
tags: webdev, css, html, beginners
---

To continue on my [previous post](https://dev.to/vanaf1979/some-small-css-tips-011-1ng5) here are some more tweets with little Css tips that might help you in your projects. 

### Css background image set.
{% twitter 1364546365934628867 %}

--- 

### Control touch interactions.
{% twitter 1364919788296880128  %}

--- 

### No pointer events.
{% twitter 1365279151498878976  %}
{% codepen https://codepen.io/Since1979/pen/OJbzBaO %}
Pointer-Events docs: https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events

Event Bubbling: https://javascript.info/bubbling-and-capturing

--- 

### Slicing with Clip path.
{% twitter 1366360874034823172  %}
{% codepen https://codepen.io/Since1979/pen/oNYqmbQ %}
Clip-path docs: https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path

--- 

### Subscribe and Follow

**[Subscribe to my Youtube channel.](https://www.youtube.com/channel/UCeyqA3y26RlnfUSx3ufgFoA)**

**[Follow me on Twitter](https://twitter.com/Vanaf1979)**

**Thanks for reading/watching and stay safe**
Why can't browsers natively handle cookie consent?
Tags: webdev, privacy, discuss, javascript
Published: 2021-03-29 09:18:54

---
title: "Why can't browsers natively handle cookie consent?"
published: true
description: "Cookie consent banners suck really hard, why can't we have the option to handle them with browsers?"
tags:
  - webdev
  - privacy
  - discuss
  - javascript
//cover_image: https://direct_url_to_image.jpg
---

With the implementation of GDPR and CCPA, every website has to have their own half-baked implementation of a cookie consent banner. For the uninitiated, these are the banners that appear at the bottom of webpages that say "Accept Cookies" or "Decline". These banners can sometimes take up half the viewport or not be responsive on mobile. Moreover, it's really common that these [banners often have serious accessibility issues that might make them non-compliant](https://uxdesign.cc/cookie-banners-and-accessibility-d476bf9ee4fc).

There should be a better way.

What if browsers could have a similar native UX implementation for cookie consent as with getting access to the microphone, for example? The user experience I'm thinking about here is as follows: the user would be prompted in the browser context whether or not to allow access to cookies when navigating to a webpage. There's a lot of room in the design space here to make sure that the user is in control while minimizing the damage to the user experience on the web.

Before I get in to a few roadblocks I see, there could be ongoing work in this space, but some googling didn't help me here. If it's not being worked on, there's probably a few other reasons this hasn't been done yet (this is just a random thought I had), so please leave a comment if I've missed something.

#### Roadblock 1: Old browser versions

This is inevitably a huge roadblock. But we already have a bad patchwork of implementations, so it seems like that damage has been done here. Why not try to move towards a better standard?

#### Roadblock 2: Not granular enough

It's probable that a cookie interface for the browser wouldn't be granular enough to support all use cases (say, missing different levels of cookies to opt-in to). But, again, I think websites that want to support use cases outside of regulatory frameworks should probably implement their own interfaces. Getting 95% of the way there seems worth it.

#### Roadblock 3: Regulatory patchwork

This is probably the main roadblock for the near future. A lot of these laws are in their infancy, and many jurisdictions are considering their regulatory frameworks on data privacy right now.

This could be totally naive, but this could actually be an argument for writing a standard now. If there's a consistent standard that gets negotiated with all parties at the table, it would be way easier to lobby governments across the world that they should write regulation that matches the standard.

I'll just reiterate: I'm not super familiar with this area or what ongoing work or discussions have been had in the past here. Just sketching out some thoughts I had and found it difficult to find any information about decisions in this space.

Thanks for reading!
The Benefits of Design Principles and Design Patterns
Tags: design, principles, patterns
Published: 2021-03-29 09:17:33

### 1. What is Design Principles?

Design Principles are a set of general guidelines that are used to design and structure a class in object-oriented designing. It make code easier to understand, collaborate, extend & maintain.

### 2. What is Design Patterns?

Design Patterns is best practices to implement Design Principles.

### Conclusion

Design Principles and Design Patterns make the program easier to read, understand, extend, maintain and scalable.
How to install and configure celery
Tags: django, python, redis
Published: 2021-03-29 08:53:32

Early in my articles I wrote about use celery, but not wrote how to install and configure it.

#### Prepare
* You have Django project
* You want to connect project with `celery`

#### Short description
* Install broker (`redis`) globally
* Install `celery python` library
* Configure celery in `settings`
* Write `async` function
* Run celery

#### Detail
1. Install `Redis`:
```
sudo apt install redis-server
```
Check:
```
➜  ~ redis-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> 
```
2. Install `celery`:
```
pip install celery
```
3. Create config file. Please don't name at `celery` because may be names conflicts. For example, `run_celery.py`:
```python
from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
from django.conf import settings

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
app = Celery('my_celery_application')
app.config_from_object('django.conf:settings')
```

4. `settings.py`
```
BROKER_URL = 'redis://127.0.0.1:6379/0'
CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6379'
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
```
5. Check all:
```
(ienv) ➜  project git:(master) ✗ celery -A run_celery worker -l info
 
 -------------- celery@MacBook-Pro-User1.local v5.0.2 (singularity)
--- ***** ----- 
-- ******* ---- macOS-10.16-x86_64-i386-64bit 2021-02-14 13:26:14
- *** --- * --- 
- ** ---------- [config]
- ** ---------- .> app:         ptt:0x7fe9f133c2e0
- ** ---------- .> transport:   redis://127.0.0.1:6379/0
- ** ---------- .> results:     redis://127.0.0.1:6379/
- *** --- * --- .> concurrency: 8 (prefork)
-- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
--- ***** ----- 
 -------------- [queues]
                .> celery           exchange=celery(direct) key=celery
                

[tasks]
  . apps.centrifuge.centrifuge.send_sms_async

```
6. Write you async task:
```
from run_celery import app
from django.conf import settings
from .models import PhoneCode

@app.task
def send_sms_async(identifier: int):
    code = PhoneCode.objects.filter(pk=identifier).first()
    if code:
        provider: SMSProviderBase = Test()
        provider.send_private_sms(code.phone, code.code)
```

#### Conclusion
* Celery with redis (or another backend) is a good way for your asynchronous Django projects
* You may create as many tasks as you wish
* You may choose a class-way for celery tasks
* To control use [flower](https://flower.readthedocs.io/en/latest/) to control your asynchronous tasks
* To run celery via supervisor (`-B` - to use periodic tasks):
```
[program:example-celery]
command = <path/to/your/project/ienv>/bin/celery --app=run_celery:app worker --loglevel=INFO -B
directory = <path/to/your/project/>
user = <user>
stdout_logfile = <path/to/your/project/ienv>logs/celery.log
redirect_stderr=true
environment = LANG=en_US.UTF-8,LC_ALL=en_US.UTF-8
```
**Thanks for reading**