teleren/devto huggingface dataset:
TOP 5 Challenges People Face When Starting An Online Business
Tags: onlinbusiness, digitalmarketing, businesschallenges
Published: 2021-03-10 18:10:41

1.Painful Start

Once you have chosen and tested your idea to see if there’s a real market out there for it, it’s important that you stick with it, even when things get a little rough. It takes time for businesses to grow and start making a profit.

. Most of the companies don’t make a single cent over what they invested until the end of the first year.

2.Self Doubt / Self Realization

“Am I really cut out to be an entrepreneur?” – Everything boils down to this. Not everyone is cut out to be an entrepreneur. If you don’t have that specific mindset, that confidence when you talk about your work, and that stature, things will get really hard for you.

.  Real entrepreneurs think a little differently from people who are not cut out to be on their own in this cutthroat business world.

3.Unrealistic Expectations 

Founders of young and exciting companies tend to grandiose views of themselves and think that they can handle every single position within their company. Development, marketing, sales – they think that they can do it all, which you and me both is wrong

Next to that, they tend to have unrealistic expectations when it comes to their company’s success. They set high and almost unreachable goals, and then they get bummed out when they don’t reach them.

4. Security

This is the biggest one on this list. If you’re going to deal with customer data and even online payments, you better make sure that every part of your business is 100% safe. Even the big companies like Dropbox have an issue with safety, so how are you planning on protecting yourself from all sorts of data leaks and hacker attacks?

If you want to make your customers feel safe, you should really invest in your hosting. You should keep your website on a dedicated server, with over the clock Support.

5. Marketing

A good marketing plan for an online business focuses on a lot more elements than just getting people to click on your website and read your content. You need to know what makes people who visit consider your services. You need to know what stimulates them to buy your products, spread the words about your business and in the end, come back 

You got to do a lot of research before you jump into this. You need to get your facts straight and when, where and how intensely to start marketing your business

  Thank you for reading this post. I hope this content helped you better understand what are some of the biggest challenges every young entrepreneur has to face when starting a new and exciting online business.

Follow Me : https://www.instagram.com/muaz_socialmediamarketer/
Should a company do trial employment?
Published: 2021-03-10 18:06:46

---
title: Should a company do trial employment?
published: true
description: There are a lot of benefits to trial employment—hiring someone for less than a month to decide if you want to hire them full time.
tags: 
//cover_image: https://direct_url_to_image.jpg
---

by [Trek](https://dev.to/trek) and [Sean](https://dev.to/endangeredmassa)

There are many benefits to trial employment – hiring someone for less than a month to decide if you want to hire them full time.

You get to see the candidate work in a real-world scenario. You get to spend a real amount of time with them. You get to verify claims made in the interview. You have a clear check-in point where you can back out.

**However, trial employment can exclude certain groups of candidates from your hiring pool.** Assuming you want a diverse hiring pool, this could be problematic.

For example, candidates who are:

- parents: won't relocate for only a potential job, disrupting their family life.
- new to your tech/tools: will spend time learning instead of performing, making the trial period not representative of their work.
- managing chronic health issues: need continuous health coverage, which would be broken by one or more trial periods
- without savings: need income stability.

In a country with strong social safety nets and worker protections, trial employment could be a really great way to form a longer-term working relationship. This is sadly not the case in many countries.
Constructors in C++
Tags: oop, cpp
Published: 2021-03-10 17:54:35

A constructor in C++ is a  method that is implicitly called when an object of a class is created. 

The constructor has the same name as the class, it is always public, and it does not have any return value.

When memory is allocated for object after that constructor is called. 

Example
class Hello 
{  
  public:         
    Hello() 
    {     // Constructor
      cout << "Hello";
    }
};

int main() 
{
  Hello myObj;
  return 0;
}

constructors can also be defined outside the class.

class Hello 
{       
  public:          
    int x;
    int y; 

    Hello(int x, int y);
};


Hello::Hello(int a,int b) {
  x = a;
  y = b;
}

int main() 
{
   Hello hobj(10,20);
   return 0;
}

Constructors can be useful for setting initial values for attributes.
Python libraries
Published: 2021-03-10 17:49:58

Attaullah Shafiq
attaullahshafiq10@gmail.com

.

#1. NumPy

NumPy is acronym for “Numeric Python”. It is used for advanced mathematical functions on arrays and matrices. Furthermore, NumPy enriches the programming language Python with powerful data structures for efficient computation of multi-dimensional arrays and matrices.

#2. OpenCv

OpenCv (Open Source Computer Vision Library) is the best open source library for computer vision, image processing and machine learning. It has many features like basic image editing(Translation, Rotation, Scaling etc), Video editing, Object detection, Computational photography and many more. It is must have library for all you image related operations.

#3. Requests

Requests is a http library used to send HTTP requests using programming. It is fast, reliable and widely used library for HTTP requests. With it you can add content like headers, form data, multipart files, and parameters via simple Python programs.

#4. BeautifulSoup

BeautifulSoup is used for web scrapping(Extracting data from html page programmatically). With BeautifulSoup you can parse both XML and HTML. All it does is extract provided web page and present you with “Soup” (useful data). Although it slow as compare to Scrapy but it is very useful for beginners.

#5. PyAutoGUI

PyAutoGUI is a cross-platform GUI automation Python usd to programmatically control the mouse & keyboard. PyAutoGUI can simulate moving the mouse, clicking the mouse, dragging with the mouse, pressing keys, pressing and holding keys, and pressing keyboard hotkey combinations. With PyAutoGUI you can automate many mouse and keyboard tasks.

#6. Matplotlib

Matplotlib is 2D numerical plotting library for Python. It can be of great use for data analysis and produces high-quality figures in different formats including interactive graphs and plots.

#7. Pygame

Pygame is the open source library that is for making multimedia applications including games. It includes computer graphics and sound libraries designed to be used with the Python programming language. You can develop many cool games with Pygame.

#8. Selenium

Selenium is used to automate web browser interaction from Python. Selenium provides support for many popular web browsers like Google Chrome, Mozilla Firefox, Safari etc. You just need a WebDriver( a collection of language specific bindings to drive a browser) to automate your browser. You can do many cool things like progammatically opening any link, filling forms etc.

#9. Pandas

Pandas is an open-source Python Library providing high-performance data manipulation and analysis tool using its powerful data structures. Pandas is one of the most widely used Python libraries in data science. It is mainly used for data munging, and with good reason: it's very powerful and flexible, among many other things.

#10. Faker

Last but not least, Faker is a Python package that generates random fake data for your database. It can generate fake name, email, address, country, url etc. It can generate fake data in many languages.

The End

Happy Coding :)
www.github.com/attaullahshafiq10
Wednesday Links - Edition 2021-03-10
Tags: java, jvm, kotlin, microservices
Published: 2021-03-10 17:44:56

FizzBuzz – SIMD Style! (10 min read) 🐝
https://www.morling.dev/blog/fizzbuzz-simd-style/

Find bugs using static analysis (2 min read) 🐛
https://twitter.com/tagir_valeev/status/1369521462839832576

Making sense of GraalVM Native Image contents (9 min read) 🖼️
https://medium.com/graalvm/making-sense-of-native-image-contents-741a688dab4d

Goodbye minikube (2 min read) 🧊
https://blog.frankel.ch/goodbye-minikube/

Best practices can slow your application down (7 min read) 🐌
https://stackoverflow.blog/2021/03/03/best-practices-can-slow-your-application-down

Revisiting Html in Java (4 min read) 🕸️
https://benjiweber.co.uk/blog/2021/02/28/revisiting-html-in-java/

Monitoring Deserialization to Improve Application Security (7 min read) 0️⃣
https://inside.java/2021/03/02/monitoring-deserialization-activity-in-the-jdk/

Welcome 20% less memory usage for G1 remembered sets - Prune collection set candidates early (4 min read) 🧠
https://tschatzl.github.io/2021/02/26/early-prune.html

async-profiler-actuator-endpoint (1 min read) 📈
https://github.com/taboola/async-profiler-actuator-endpoint

Kotlin 1.5.0-M1 (4 min read) 🎉
https://github.com/JetBrains/kotlin/releases/tag/v1.5.0-M1
Build a Responsive Online Portfolio (video)
Tags: tutorial, portfolio, javascript, css
Published: 2021-03-10 17:41:36

In this video, I am going to show you how to build a Personal Portfolio or website that looks great on mobile, tablet and desktop (so in other words, we will make it responsive!). We will be doing this with HTML and CSS, with the tiniest bit of JavaScript. So if you don't know how to use Javascript, don't worry, you can still code along. 

This video is perfect for those looking to learn/improve their CSS and HTML skills.

At the end we deploy the site to a .com website so you can share it with your friends. Hostinger have kindly given a 10% discount to sign up. To get 10% off on Hostinger use code ANIAKUBOW on this link here: https://www.hostinger.com/aniakubow

Video content:
* 00:00: Introduction
* 03:52: Getting our .com domain
* 05:43: File Setup
* 09:18: Website layout in HTML
* 15:41: Making a Nav bar
* 20:31: Making a 'Hero' Section
* 48:20: Making an 'About Me' Section
* 55:52: Making a 'Projects' Section
* 01:08:35: Using Anchor Links
* 01:12:57: Using media query for tailored views on mobile, tablet and desktop
* 01:14:50: Making a Hamburger drop-down menu
* 01:23:55: Deploying our website onto the internet with SSL

{% youtube -D6oTPA4vXc %}
Other links:
In this video I use Tabnine as my A.I autocompletion tool. You can download it for free here: http://bit.ly/tabnine-free

If you would like to buy me a coffee, well thank you very much that is mega kind! : https://www.buymeacoffee.com/aniakubow

Sign up for weekly coding tips from my newsletter partnership: https://bit.ly/JS-tips

You can also find me on:
Twitter: https://twitter.com/ania_kubow
Instagram: https://www.instagram.com/aniakubow
We Need to Fix Anti-Harassment Tooling with Tracy Chou and Chloe Condon
Tags: discuss, podcast, wecoded
Published: 2021-03-10 17:40:44

---
title: We Need to Fix Anti-Harassment Tooling with Tracy Chou and Chloe Condon
published: true
description: Listen to S4E5 of DevDiscuss!
tags: discuss, podcast, shecoded
series: DevDiscuss Season 4
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9h8ly0nd9grql9za35jv.png
---

> **Monday was International Women's Day and we've spent the past few days hearing the honest, inspiring, and at times, brutal stories of women who code with [#SheCoded](https://dev.to/shecoded). That's why it feels fitting that week's episode of DevDiscuss features two women in software development who have lots of interesting and important things to say about online harassment.**

{% podcast https://dev.to/devdiscuss/s4-e5-online-abuse-and-the-future-of-anti-harassment-tooling %}

There's so much more I could say to preview this week’s episode of DevDiscuss, but the value really lies in our conversations about the future of anti-harassment with guests [Tracy Chou](https://www.twitter.com/triketora) (Founder & CEO of Block Party) and @ChloeCondon (Cloud Advocate at Microsoft). I hope you listen and enjoy it! Let me know your thoughts in the comments.

---

I also wanted to say that, here at DEV, _nothing_ (and I mean nothing) is more important to us than ensuring that this community is safe and enjoyable for everyone. An integral part of this never-ending work is our community success team (shoutout our moderators, @michaeltharrington, @ellativity, @itscasey, and many others who help support this work on our team). If you're newer here and are curious about how we approach moderation on DEV, check out this guide:

{% link https://dev.to/devteam/community-moderation-and-support-on-dev-7me %}

---

_You can [follow DevDiscuss](dev.to/devdiscuss) to get episode notifications and listen right in your feed_ — or subscribe on your platform of choice! Plus, if you leave us a review, we'll send you a free pack of thank-you stickers. Details [here](https://airtable.com/shr8oKAIMZgdYnBxx). 

## Quick Listening Links
- [Apple Podcasts](https://podcasts.apple.com/us/podcast/s4-e5-online-abuse-and-the-future-of-anti-harassment-tooling/id1513053883?i=1000512415283)
- [Spotify](https://open.spotify.com/episode/6izzB02KlaBDBSdyG4Af5I)
- [Google](https://podcasts.google.com/feed/aHR0cHM6Ly9mZWVkcy5kZXZwb2RzLmRldi9kZXZkaXNjdXNzX3BvZGNhc3QueG1s/episode/aHR0cHM6Ly9kZXZwb2RzLmRldi9wb2RjYXN0cy9kZXZkaXNjdXNzLzMw?sa=X&ved=0CAQQkfYCahcKEwiQlt7voabvAhUAAAAAHQAAAAAQAw)
- [Listen Notes](https://www.listennotes.com/podcasts/devdiscuss/s4e5-online-abuse-and-the-jzHxYGZen2v/)
- [TuneIn](https://tunein.com/podcasts/Technology-Podcasts/DevDiscuss-p1324596/?topicId=161415262)
- [RSS Feed](http://feeds.codenewbie.org/devnews_podcast.xml)
- [DEV Pods Site](https://devpods.herokuapp.com/podcasts/devdiscuss)

---
_Acknowledgements_ 
- _@levisharpe for producing & mixing the show_
- _Our season four sponsors: DataStax, New Relic, Educative, and Ambassador Labs!_

# 🗣️🗣️🗣️
Welcome Thread - v115
Tags: welcome
Published: 2021-03-10 17:23:52

---
title: Welcome Thread - v115
published: true
description: Welcome to DEV! A thread of hellos and intros.
tags: welcome
canonical_url: 
---

![Robert Downey Jr. Saying Welcome](https://media.giphy.com/media/HwePORLAGGJOw/giphy.gif)

### Welcome to DEV!

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋 

**Great to have you in the community!**
Despatch Cloud: Multichannel e-Commerce Software

Tags: ecommerce, multichannel, sales, fulfilment
Published: 2021-03-10 17:02:19


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

[Despatch Cloud](https://despatchcloud.com/) is a multi-channel shipping, order and stock management software designed to fully streamline and automate your entire e-commerce operation. Our fulfilment solution enables you to efficiently manage all aspects of your online shop from a single unified platform. Despatch Cloud’s cutting edge technology allows you to control your business operations across multiple sales channels and marketplaces. Whether you sell on one channel or many, our multichannel e-commerce software allows you to seamlessly integrate with as many [channels and shipping couriers] (https://despatchcloud.com/integrations/) as you need.

Managing your e-commerce business can be overwhelming. Despatch Cloud gives you the tools needed to simplify the often complex structure of [sales channels] (https://despatchcloud.com/features/channels-marketplaces/), [inventory databases] (https://despatchcloud.com/features/inventory-control/), [accounting systems] (https://despatchcloud.com/integrations/#financials) and [courier services] (https://despatchcloud.com/features/shipping/),  into one seamless process. By optimising and automating your e-commerce operations, you can provide a more reliable and efficient service to your customers. Get orders out faster, reduce commercial errors, track sales and build better [customer relationships] (https://despatchcloud.com/features/customers/). 

As your e-commerce business grows, Despatch Cloud scales with you to support expansion across multiple online marketplaces and channels. This gives you the ability to expand your multi-channel retailing and sell to customers wherever they are. While growing, our fulfilment software offers complete transparency so that you always know how your business is performing. Despatch Cloud provides full visibility over your [business data and information] (https://despatchcloud.com/features/reporting/) so that you can gain immediate insights into business performance all from one interface. This allows you to make data-driven decisions and ultimately maximise your sales and revenue.
7 Easy Steps to Secure a WordPress Site 🔐
Tags: wordpress, websitedevelopment
Published: 2021-03-10 17:02:16

---
title: 7 Easy Steps to Secure a WordPress Site 🔐
published: true
description: 
tags: #wordpress #websitedevelopment
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4g2p5i4n77l3rgyesolx.jpg
---
 


![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4g2p5i4n77l3rgyesolx.jpg)

WordPress is so widely used, any programmer working with it has to take great care to harden it against external attacks.  

In a single incident last year alone, almost a million websites were attacked in a single month.

But there are some things you can do that will harden a WordPress site against attacks that will stop all but the most sophisticated threats. 

 
Here are the 7 security steps to take on every WordPress site you work with:

1. Update WordPress to the Latest Version
2. Remove Unused Plugins and Update the Rest
3. Minimize User Permissions and Secure Logins
4. Disable PHP Execution in Untrusted Folders
5. Disable PHP Error Display
6. Disable Theme and Plugin Editing
7. Change site database default table prefix to something obscure 

Initially created on Twitter:
{% twitter 1368909034594635779%} 

If you liked this article, be sure to ❤️ it.
LaTeX figures: The figure Environment 
Tags: latex, codenewbie
Published: 2021-03-10 16:41:20

Hello, in the last post I talked about the `includegraphics` command. 

> But, did you notice? it just imports images but you can not change its location or add a caption, and it is so important when you are talking about images because you can add more details to your image. 

In this post, I am going to talk about that, about the `figure` environment 

# The `figure` Environment 

Do you remember the `table` environment? If not you can check it [here](https://dev.to/latexteada/latex-tables-the-tabular-environment-4f0a), the `figure` environment is so similar to this environment.

```
\begin{figure}[position]
align
\includegraphics[modifiers]{yourImage.ext}
\caption{yourCaption}
\end{figure}
```

## `position` options

* `h` to put the image here, it is, at the current position of your cursor in the code
* `b` to put the image at the bottom of the current page
* `t` to put the image at the top of the current page
* `!` indicates *ignore the rules and put the image here*

## `align` options

* `\centering` align the image to the center
* `\raggedleft` align the image to the left
* `\raggedright` align the image to the right 

## `modifiers` and image options

You can change the details in [this](https://dev.to/latexteada/latex-importing-images-4fhj) post,  in the Importing images section

## `caption`

Here you can put the caption of the image


Thanks, this is all for today, enjoy :) 
Do not forget to follow me on Twitter `@latexteada`
How to Apply Sentiment Analysis to Longer Text
Tags: python, datascience, machinelearning, tutorial
Published: 2021-03-10 16:40:33

{% medium https://towardsdatascience.com/how-to-apply-transformers-to-any-length-of-text-a5601410af7f %}

The de-facto standard in many natural language processing (NLP) tasks nowadays is to use a transformer. Text generation? Transformer. Question-and-answering? Transformer. Language classification? Transformer!

However, one of the problems with many of these models (a problem that is not just restricted to transformer models) is that we cannot process long pieces of text.

Almost every article I write on Medium contains 1000+ words, which, when tokenized for a transformer model like BERT, will produce 1000+ tokens. BERT (and many other transformer models) will consume 512 tokens max — truncating anything beyond this length.

Although I think you may struggle to find value in processing my Medium articles, the same applies to many useful data sources — like news articles or Reddit posts.

We will take a look at how we can work around this limitation. In this article, we will find the sentiment for long posts from the /r/investing subreddit. This article will cover:

High-Level Approach
Getting Started
- Data
- Initialization
Tokenization
Preparing The Chunks
- Split
- CLS and SEP
- Padding
- Reshaping For BERT
Making Predictions
Angular 7 Drag and Drop example - Angular Material CDK
Tags: angular7, angularmaterialcdk, drag
Published: 2021-03-10 16:37:00

https://grokonez.com/frontend/angular/angular-7/angular-7-drag-and-drop-example-angular-material-cdk

The <code>@angular/cdk/drag-drop</code> module helps us drag single item or sort it within a horizontal/vertical list, transfer items between lists, show animations, previews, placeholders, custom drag handles. In this tutorial, we're gonna create many simple examples that show you how to work with Angular 7 Material CDK - Drag and Drop.

Related Post: <a href="https://grokonez.com/frontend/angular-7-virtual-scroll-example-angular-material-cdk">Angular 7 Virtual Scroll example – Angular Material CDK</a>

<!--more-->
<h2 id="setup-angular-material-cdk">Setup Angular 7 Material CDK</h2>
- Run cmd:
<code>npm install @angular/material @angular/cdk</code>

- Import <code>DragDropModule</code> into <code>NgModule</code>:
<pre><code class="language-javascript">...
import { DragDropModule } from '@angular/cdk/drag-drop';

@NgModule({
  declarations: [...],
  imports: [
    ...
    DragDropModule
  ],
  ...
})
export class AppModule { }</code></pre>
<h2 id="angular-7-drag-drop-item">Angular 7 Drag and Drop item</h2>
<h3 id="basic">Basic</h3>
Add the <code>cdkDrag</code> directive to element to make them draggable:
<pre><code class="language-html">&lt;div class=&quot;drag-box&quot; cdkDrag&gt;
  drag me
&lt;/div&gt;</code></pre>
<img src="https://grokonez.com/wp-content/uploads/2018/11/angular-7-drag-drop-example-basic-dragable.gif" alt="angular-7-drag-drop-example-basic-dragable" width="504" height="364" class="alignnone size-full wp-image-15564" />
<h3 id="lock-direction">Lock Direction</h3>
Set <code>cdkDragLockAxis</code> on <code>cdkDrag</code> to restrict dragging:
<pre><code class="language-html">&lt;div class=&quot;drag-box&quot; cdkDragLockAxis=&quot;y&quot; cdkDrag&gt;
  only up/down
&lt;/div&gt;
&lt;div class=&quot;drag-box&quot; cdkDragLockAxis=&quot;x&quot; cdkDrag&gt;
  only left/right
&lt;/div&gt;</code></pre>
<img src="https://grokonez.com/wp-content/uploads/2018/11/angular-7-drag-drop-example-lock-direction.gif" alt="angular-7-drag-drop-example-lock-direction" width="504" height="364" class="alignnone size-full wp-image-15565" />

More at: https://grokonez.com/frontend/angular/angular-7/angular-7-drag-and-drop-example-angular-material-cdk