teleren/devto huggingface dataset:
ParseHub Vs. Proxies API
Published: 2021-03-09 13:18:36

The world of web scraping is varied and complex, and Proxies API sits at one of the most crucial junctions. They are allowing web scrapers/crawlers to bypass IP blocks by using a single API endpoint to access our 20 million-plus high-speed proxies on rotation.
One of the questions we get frequently is how we are different from services like OctoParse or Diffbot. Many times it is like comparing Apples and Oranges. Still, when we send this comparison table to our customer's developer team, their CXO, their marketing, or SEO team, they typically get it quite quickly if we are a convenient service or not.

So here is how we are different from ParseHub.

Parsehub offers a desktop app that makes scraping visual, point, and click, and accessible. The tool supports multiple pages, AJAX support, form submission, dropdowns, etc.

They offer export of data via JSON, Excel, or even an API.
Difference between Carrara and Calacatta Marble

Published: 2021-03-09 11:55:26

It’s not very difficult to make a mistake in the distinction between Carrara and Calacatta marble. They are very much similar but have some key differences. Let’s find out what they are before you are buying them for your home.

Carrara vs. Calacatta Marble:
However, even if they are queried from the same region, not all stones are treated equally. Some characteristics distinguish each marble slab. Calacatta and Carrara Marble are some of the best rocks. They are, however, sometimes misidentified. Calacatta Marble is often thought to be “better” than Carrara Marble because it is more common. However, this is not the case—a key point to remember about marble tiles in general and those in particular.

But while considering Carrara vs Calacatta marble, here are some differences between these stones;

Color:
Carrara marble has a dusty white background. In other words, the color scheme of Carrara marble has a greyish hue rather than a clear tone. Calacatta Marble, on the other hand, has a more whitish background.

Carrara marble has softer grey marble veining, while Calacatt has a thicker honed vein. To the untrained eye, the variations are challenging to discern. We suggest that you seek the advice of a professional, such as this Interior Decorator.

Cost:
The Calacatta stone is the scarcer of the two. Components or goods that are difficult to come by will often be more costly. Calacatta stone is the more expensive of the two stones due to its scarcity. When it comes to marble, the whiter the background, the more costly it is because it is a purer stone. The cost would be determined by where you live, as well as the volume of your room. And the amount of marble provided, such as flooring, backsplashes, and window frames.
https://skstonesusa.com/carrara-vs-calacatta-marble/
What are the Best Affiliate Programs to Join in 2021?
Tags: affiliate, tutorial, website, hosting
Published: 2021-03-09 13:04:19

Here I am going to introduce you to some of the best affiliate programs to join in 2021.
So, before knowing them, I would like to tell you that, there are two types of Affiliate Programs: -
1. One-Time
2. Life-Time (Recurring)

**One-Time** Affiliate program means you will be paid once as an affiliate member at the first purchase from every single user.
Some of the One-Time Affiliate Program providing companies are:
* HostGator
* Bluehost
* WPX
* SiteGround
* Page
* JustHost
* DreamHost
* HostArmada
* BionicWP

**Life-Time or Recurring** Affiliate program means you will get a commission at the time of purchase and some percent of commission every month after purchase till your referral is with the web host.
Some of the best Recurring Affiliate programs are:
* RoseHosting
* Nestify
* Kinsta
* JixHost
* TDWebServices
* CloudWays

So, these are some of the <a href="https://cheapandbesthosting.com/best-web-hosting-affiliate-programs/">best hosting affiliate programs</a> that you can join.
Daily Developer Jokes - Tuesday, Mar 9, 2021
Tags: jokes, dailydeveloperjokes
Published: 2021-03-09 13:00:05

---
title: "Daily Developer Jokes - Tuesday, Mar 9, 2021"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Tuesday%2C%20Mar%209%2C%202021"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258b924543.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
A programmer's significant other tells them, "Run to the store and pick up a loaf of bread. If they have eggs, get a dozen."

The programmer comes home with 12 loaves of bread.
 -->
How Laravel uses `doctrine/inflector` package
Tags: laravel, php
Published: 2021-03-09 12:56:25

`doctrine/inflector` is a small library which helps in `uppercase/lowercase` and `singular/plural` based manipulation of a **string**.

Laravel uses this package in a class called `Pluralizer` as shown below:

```php
<?php

namespace Illuminate\Support;

use Doctrine\Inflector\CachedWordInflector;
use Doctrine\Inflector\Inflector;
use Doctrine\Inflector\Rules\English;
use Doctrine\Inflector\RulesetInflector;

class Pluralizer
{
    /**
     * Get the plural form of an English word.
     *
     * @param  string  $value
     * @param  int  $count
     * @return string
     */
    public static function plural($value, $count = 2)
    {
        if ((int) abs($count) === 1 || static::uncountable($value) || preg_match('/^(.*)[A-Za-z0-9\x{0080}-\x{FFFF}]$/u', $value) == 0) {
            return $value;
        }

        $plural = static::inflector()->pluralize($value);

        return static::matchCase($plural, $value);
    }

    /**
     * Get the singular form of an English word.
     *
     * @param  string  $value
     * @return string
     */
    public static function singular($value)
    {
        $singular = static::inflector()->singularize($value);

        return static::matchCase($singular, $value);
    }
}
```

<p style={{ textAlign: 'center', fontSize: '0.75rem;' }}>
    Full source code can be found{' '}
    <a
        target="_blank"
        href="https://github.com/laravel/framework/blob/8.x/src/Illuminate/Support/Pluralizer.php"
    >
        here
    </a>
</p>

Laravel then uses `Pluralizer` class in `Str` helper class. `Str::singular()` and `Str::plural()` helper methods leverage `Pluralizer::singular()` and `Pluralizer::plural()` respectively as shown below:

```php
<?php

namespace Illuminate\Support;

use Illuminate\Support\Traits\Macroable;

class Str
{
    use Macroable;

    /**
     * Get the plural form of an English word.
     *
     * @param  string  $value
     * @param  int  $count
     * @return string
     */
    public static function plural($value, $count = 2)
    {
        return Pluralizer::plural($value, $count);
    }

    /**
     * Get the singular form of an English word.
     *
     * @param  string  $value
     * @return string
     */
    public static function singular($value)
    {
        return Pluralizer::singular($value);
    }
}
```

<p style={{ textAlign: 'center', fontSize: '0.75rem;' }}>
    Full source code can be found{' '}
    <a
        target="_blank"
        href="https://github.com/laravel/framework/blob/8.x/src/Illuminate/Support/Str.php"
    >
        here
    </a>
</p>

### How Laravel deals with Uncountables?

If we look at the implementation of `Pluralizer` class, we can see that Laravel maintains an array of **uncountables** like _education_, _audio_, _jedi_ etc. If you provide such value to `Str::plural()` helper method, it will be returned as it is.

---

I hope you find this blogpost useful. Next up we'll see how Laravel uses `dragonmantank/cron-expression` package. Stay in the loop by following me on [Twitter](https://twitter.com/Zubairmohsin33).
Material-ui Dialog Provider - Render modal on-demand and deal with Asynchronous State
Published: 2021-03-09 12:37:20

To use Material-ui `dialog` component, the official way is to add the `dialog` component to the component where you would open or close it by setting a `open` flag to `true` or `false`. The problem with this approach is that React will always render the modal. If the user never opens the modal, it is a waste. This is not a problem we should worry about until we have rarely used and expensive modal. For example, a modal uses a hook to get a large list of data and requires some computation. The computation will take place every time, even if the modal is never opened. This is a good use case for a Dialog Provider to facilitate rendering modal on demand.

I have adapted [this awesome solution](https://stackoverflow.com/questions/63737526/material-ui-how-to-open-dialog-imperatively-programmatically/63737527#63737527) by NearHuscarl from StackOverflow, with some tweaks to meet my needs better. I also have to come up with a solution to resolve stale states in modals created on-demand. Code is shown in below CodeSandbox.

{% codesandbox dialogprovider-forked-wyjp4 %}

### Tweaks

1. `DialogOptions` now extends material-ui `DialogProps` so that all Dialog props are available to our `createDialog` function. This is powerful because now we customise our modal as if we are working with material-ui's `Dialog` component directly. Note that because of this change, our `closeDialog` is only responsible for removing the last modal, no more worry about modal events like `onClose`.

1. `DialogContainer` now takes a title and render a title bar a close icon button.

### Problem with asynchronous state

As we know, React state is asynchronous, i.e. we would not get the lastest state right after we set it. We will have it in `useEffect` or the next render circle. For example, if we `setState('new value')` then `console.log(state)` right after, what gets printed in the console will not be "new value" but the previous stale state. If we console log the state in `useEffect`, we will have the current state.

This is a problem for our modal because if we use states in our modal, when we set the states and launch our modal right after, our modal would not have the latest state because it is created and rendered in the same render circle. For a demonstration, refresh and click the "Without Hook" button in CodeSandbox. One way to resolve the problem is that we delay and launch the modal in `useEffect`.

I have implemented a hook called `useRunAsEffect` for the above problem.

1. It takes a `callback` function.

1. It maintains a call state and initialised to false.

1. It calls the given callback in a `useEffect` block whenever the call state is `true`. The `call` is then restored to `false` right after the call.

1. The hook returns a function. Calling the function would set the `call` flag to `true` and consequently calling whatever is given as `callback`.

I would love to know a better way to do it, and please share if you have one.

Happy coding…
12 Best Places In Pakistan You Have To Visit 

Tags: pakistan, beautifulplaceinpakistan
Published: 2021-03-09 11:54:06

Coronavirus has put an end to all life outside of the confines of our homes. But just like anything else in life, this too shall end, and we will venture out once again. Once this azmaaish ends, why not start exploring the world once again by starting at home? Pakistan is a beautiful country and considers a paradise on earth, especially in the north area of Pakistan. Pakistan has some beautiful places in pakistan. Here is the list of the best places in pakistan.

When people think about Pakistan, all over the world comes to mind terrorism, extremism, corruption, load shedding sectarianism, and inflation. What people say about our country it doesn’t matter. Point is how you represent your country through social media blogs through this, and you can change their mind. Besides all these, we have forgotten the beauty of the northern area of Pakistan. If you love travelling You should visit Pakistan.
https://entertainmentbracket.com/12-best-places-in-pakistan/
¿Es cierto que PHP está muerto?
Tags: reflexiones, php
Published: 2021-09-16 12:13:18

---
title: ¿Es cierto que PHP está muerto?
published: true
date: 2021-03-09 12:30:22 UTC
tags: Reflexiones,PHP
canonical_url: https://academy.leewayweb.com/es-cierto-que-php-esta-muerto/
---

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

Leo por ahí cosas como: «He vuelto a estudiar PHP porque quiero aprender bien a programar con él y no entiendo por qué siempre se termina hablando sobre si PHP está o no muerto, personalmente lo veo muy vivo pero cuando veo tanto vídeo de ese estilo dudo un poco en seguir estudiando PHP« «No […]

La entrada [¿Es cierto que PHP está muerto?](https://academy.leewayweb.com/es-cierto-que-php-esta-muerto/) se publicó primero en [Leeway Academy](https://academy.leewayweb.com).
B2B E-Commerce Trends That Will Share the Industry in 2021

Tags: ecommerce, b2b, trend, it
Published: 2021-03-09 12:21:19

The topic of COVID-19 affected the economy of many countries, and this, of course, had its consequences. In this situation, most customers have massively moved to online stores, and the e-commerce market has become a paradise for many people and entrepreneurs due to its format.

According to a McKinsey study in the US, more than 75% of consumers have changed their preferences for the brands they buy. This is due to the following reasons:

Product availability for consumers;
Easy to buy;
Purchase security. 

Analyzing this, we can say that the pandemic has accelerated the process of changing consumer behavior and now e-commerce is expected to grow by 265% in 2021. The "Exceed Team" team has collected for you the most current trends in the development of the digital commerce market in the B2B system and a number of other interaction schemes. I propose to consider some of them.

General trends in the development of B2B e-commerce
1. Transition to digital sales;
2. The variety of purchases will depend on the availability of customer channels;
3. Large commodity producers will create their own trading platforms;
4. The emergence of new payment systems;
5. The leadership of Western e-commerce is no longer relevant;
6. Transparency;
7. Personalization.

Our team understands how important it is for a brand to find its niche and create a unique application to increase efficiency and increase the profit of your company.
If you are interested in this topic, you can read more about it in our blog :)
https://exceed-team.com/blog
I made a list of 70+ open-source clones of sites like Airbnb, Tiktok, Netflix, Spotify, etc. Great for learning purpose!
Tags: react, node, webdev, beginners
Published: 2021-03-09 12:17:25

I curated a list of 70+ open-source clones of popular sites like Airbnb, Amazon, Instagram, Netflix, Tiktok, Spotify, Trello, WhatsApp, YouTube, etc. 
List contains source code, demo links, tech stack, and, GitHub stars count. Great for learning purpose!

More open-source contributions are welcome to grow this list.

GitHub link: https://github.com/GorvGoyl/Clone-Wars

Pretty view: https://gourav.io/clone-wars

I was building this list for a while... Please share it with others 🙏


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

---

I share my learnings about startups, tech, and life on Twitter [@GorvGoyl](https://twitter.com/GorvGoyl)
Introduction
Tags: fahmitech
Published: 2021-03-09 12:11:32

---
title: Introduction
published: true
description: Introduction
tags: fahmitech
//cover_image: https://direct_url_to_image.jpg
---

Halo, saya Fahmi Rachmat Hidayat. Memulai coding sejak umur 10 tahun dengan bahasa program Python. 

Seorang tech-geeks yang sedang menempuh ilmu di jurusan Teknik Informatika.

devto blog ini akan berisikan hasil riset saya yang memfokuskan dalam bidang Informatika.

Selamat Datang! :D
COBSE The Council of Boards of School Education in India 
Tags: cobse
Published: 2021-03-09 12:10:16

The Council of Boards of School Education in India (COBSE) is a voluntary association of all the Board of School Education in India. It works closely with the Ministry of Human Resource Development, Government of India, other national level top educational organizations and agencies such as National Council of Educational Research and Training (NCERT), National Institute of Educational Planning and Administration (NIEPA) and National Council. Of Teacher Education (NCTE).
Working remotely with a cargo cult 
Tags: remote, social, covid19
Published: 2021-03-09 12:02:12

---
title: Working remotely with a cargo cult 
published: true
description: Remote working and human factors
tags: remote, social, covid19
//cover_image: https://direct_url_to_image.jpg
---

If before all this (COVID-19) you worked a normal job in an office, for sure you spent a lot of time there and most of your daily social interactions where with people from the office.

Now that you have been remote for more than a year, do you have forced social interactions as part of your work schedule? to keep you being a team player and keep social cohesion at work? But nobody cares about this and people just go not to look bad, but this interaction are completely pathetic and forced?

I think companies should advice or encourage the people they employ to should find a social space somewhere else, so there is a more natural way to fill the void of social interactions with friends, neighbors or activity specific friends, not work related. Companies will have to evolve to to manage their project as opensource projects are managed. Distributed with async communication, like issues and pull requests or something like that.

I don't know for sure, these are random thoughts.
Why Content Marketing Importance in 2021
Published: 2021-03-09 11:37:56

Content marketing is an essential technique for conveying profoundly important and relevant information to a particular audience dependent on their requirements.

We mostly talk about writing, audio, and video here on Copy blogger, so we'll experience every one of those various types of content later in this post. The main thing to recollect is that you must be helpful. There's no reason for making any content if your audience doesn't get any incentive from it.

Content Marketing have some formats for publishing content to the audience:

Social Media Content Marketing
Infographic Content Marketing
Blog Content Marketing
Podcast Content Marketing
Video Content Marketing
Paid Ad Content Marketing

For more click here:

https://www.zinavo.com/blog/what-is-content-marketing-and-why-content-marketing-is-more-powerful-2021.html
Coding a .NETCore project on an iPad using Github Codespaces
Tags: github, codespaces, csharp, netcore
Published: 2021-03-09 11:37:07

Ever wondered if you could use an iPad to develop C# code for a .NETCore project. Surely thats not possible, how do you run the database server, node and the .NETCore runtime. It just seems impossible.

## Take a look for yourselves
I work for an [open source .NET CMS Umbraco](https://umbraco.com/) and I wanted to investigate the snazzy new feature of [GitHub Codespaces](https://github.com/features/codespaces) and VSCode remote container development.

{% youtube HAWqQiqRRlY %}

## Where's the code ?
Well the work in progress PR for the Umbraco CMS repository can be found here - https://github.com/umbraco/Umbraco-CMS/pull/9835

{% github https://github.com/umbraco/Umbraco-CMS/pull/9835 %}

> I can highly recommend adding a .devcontainer to your opensource project
Mass Scan for a Vulnerability on Microsoft Exchange Server
Tags: cve, exchange, security, go
Published: 2021-03-09 11:09:18

This tool to mass scan for a vulnerability on Microsoft Exchange Server that allows an attacker bypassing the authentication and impersonating as the admin (CVE-2021-26855). By chaining this bug with another post-auth arbitrary-file-write vulnerability to get code execution (CVE-2021-27065). As a result, an unauthenticated attacker can execute arbitrary commands on Microsoft Exchange Server.

[Mass Scan for a Vulnerability on Microsoft Exchange Server](https://kali-linuxtr.net/proxylogscan-mass-scan-for-a-vulnerability-on-microsoft-exchange-server)
Expert session
Published: 2021-03-09 11:03:29

->  Concurrent Versions System (CVS) is a program that lets a code developer save and retrieve different development versions of source code.
-> Git offers much more tools than CVS. One of the more important is "git bisect" which can be used to find a commit (revision) that introduced a bug; if your commits are small and self-contained it should be fairly easy then to discover where the bug is.
->  Using multiple environments ensures that your software is rigorously tested before it is deployed and made available to users.
-> Global Traffic Management (GTM) is designed so that Internet users can more reliably get to your websites or any other IP application.
-> Chaos testing is used for finding how our cluster behaves when something goes wrong in our production system.
-> CPU request for a Pod --> the sum of the CPU requests for all the Containers in the Pod.
-> CPU limit for a Pod --> the sum of the CPU limits for all the Containers in the Pod.
-> CPU Leaks --> the program's CPU usage slowly climbing to 100% and then the whole system slowing down - without memory footprint changing.
Book notes: Clean Code - Chapter 8
Tags: books
Published: 2021-03-09 10:25:07

### Chapter 8 - Boundaries

* We can and should keep third party code abstracted so we have control over which properties and methods are accessible
* We should create tests for third-party code so we create a better understanding of it and how we can use it on our application. This would also make us sure that if these libraries update in the future, that portion we are using in our code did not broke.

^ I don't think this is very practical, most libraries are not that easy to write relevant tests on. I can see why this is good and will try to do this in a future project but I am not optimistic.

* When writing code that will integrate with code that doesn't yet exists and have no interface, we can create a class that has the interface we wish we had to mock that integration. Once we have the real code, we can adapt this class and abstract the implementation of the newly written module.
Developing an Etsy-inspired online marketplace for local users
Tags: writing, webdev, programming, portfolio
Published: 2021-03-09 10:23:53

Depst is an online marketplace where you can find things like furniture, clothing, and decorative items from independent craftsmen and designers. It was launched in 2011, and it has become a niche site for those who are looking, not for mass-produced products, but for unique items.

The founders of the marketplace startup approached us with design layouts for their platform and the idea of creating a local version of the Etsy online marketplace. The development team had to meticulously transfer the ideas embodied in the interfaces to the technology platform, as well as develop a frontend and backend designed for future scaling.

[Read the full case study.](https://evrone.com/depst)