teleren/devto huggingface dataset:
Digital Transformation Guide
Tags: coredna, transformation, guide, digital
Published: 2022-04-19 06:27:03

If you’re ready to embark on your digital transformation journey, but wondering what digital transformation means for you, then look no further.

In this guide, you'll learn:

- What is digital transformation
- Common digital transformation mistakes
- How to get people on board with digital transformation plan
- Technology’s role in digital transformation
- Digital transformation examples and case studies
- Digital transformation template that we use internally
- And much more.

Check it out [here!](https://www.coredna.com/guides/what-is-digital-transformation)
How to manage all emails in a custom label in Gmail?
Tags: gmail, email, tutorial, beginners
Published: 2022-04-19 06:22:55

Gmail is a powerful and easy tool for collecting and managing our emails. we can get many confirmation emails for verification purpose we do subscriptions.

When we open our Gmail account we see all the random stuff that no one likes. Everyone like managed data and that's why in this post I'm going to show you how you can manage all your subscriptions and important emails using Gmail. 

In my case i wants to organize all WPBeginner Emails in a Separate Label.
###Step 1
I'll open any WPBeginner Email 

###Step 2
Click on vertical three dots on top right side 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eneslpd9xpuj2utle05b.png)

###Step 3
Dropdown Open, Click on Option 'Filter Messages like this'
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d9tysix11rnwx25d5u21.png)

###Step 4
New Screen with popup open up, click on the 'Create filter' button 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yo7qq02uewc38o0rvnng.png)
 
###Step 5 
Another Popup Open where you can select and create label, in my case i want to check 2 options "Apply Label" (from dropdown select your custom label or create new) and "Never send it to Spam". 
After checking these options click on "Create filter" button 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ksj2ukgf31wziyz9frl.png)

###Step 6
If you have already created your label select one 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ub4yqg884j5r25ymzorn.png)
or  create New Label... 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xw18m1oc3a2m5571wewf.png)

 
Now Click on 'Create Filter Button'. Now on left sidebar you see your label click and you will see all the emails of WPbeginner are managed under Label WPBeginner. 

Now all the newly upcoming emails also collected under this label. 

See how easy it is... 

I Hope this article will be very helpful. 
Thanks for Reading. 
Like & Share with your fellows and friends.
5 Handpicked Learning Resources About Data Ethics
Tags: datascience
Published: 2022-04-19 06:20:38

Understand core ethics concepts and challenges

Data ethics are vital pillars for the data science industry, ensuring that we minimise harm from data practices. In this article, we will explore some learning resources about data ethics.

**[Data Science Association](http://datascienceassn.org/code-of-conduct.html)**
Provides codes and model guidelines on how professionals can work ethically. Besides an extensive code of professional conduct list, you can find resources such as academic papers, podcasts, videos and white papers. Filter through the resources to find seminars, courses, and presentation slides to help you understand data ethics.

**[Deon Data Ethics Checklist](https://deon.drivendata.org/)**
The Deon command-line tool empowers you to create more ethical projects. You can customise the checklist to suit your individual or company needs; References to further reading and related data ethics tools are available.

**[22 Questions for ethics in data and AI](https://ideas.the-organization.com/22-questions-for-ethics-in-data-and-ai-efb68fd19429)**
This article provides a framework for ethical data and AI products. By considering the questions asked in this article, you can develop more ethical practices and products. The blog post also points you to further resources to assist you in your understanding of data ethics.

**[General Data Protection Regulation](https://gdpr-info.eu/)**
Everything from user rights to data protection, this website contains links about data protection in Europe. Key issues discussed include consent, right to access, privacy by design and more. The information on this website aligns with rules relating to data protection.

**[Data Science Ethics](https://www.coursera.org/learn/data-science-ethics#syllabus)**
The data ethics course delivered by the University of Michigan via Coursera looks at ethical considerations regarding privacy and control of data. A flexible beginner’s course that requires approximately 15 hours to complete: With over 25,000 enrolled pupils, it is an excellent start to data ethics for data professionals.

Follow my articles to find out more about ethical data practices.
How To Check If Route Name Given Exists in Laravel 8
Tags: laravel, javascript, tutorial
Published: 2022-04-19 06:16:31

Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/laravel/how-to-check-if-route-name-given-exists-in-laravel-8

Do you need to check if the route name given exists in Laravel 8? Sometimes we need to check the route name if exists. For example, if you have a dynamic menu that will call the available routes in your Laravel 8 application then show it as a menu. But if you don't check the route it will throw an error if one of the routes was deleted/removed.

 

Using Route:has('route_name') provided by Laravel Framework it will help us to check and determine if the route exists.

 

Okay here is a simple solution:

```php
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

class TestController extends Controller
{
   public function index() 
   {
      if(Route::has('route_name')) {
        //do something here
      }
   }
}
```

Now you can validate if the route name exists in your Laravel application. I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/laravel/how-to-check-if-route-name-given-exists-in-laravel-8 if you want to download this code.

Happy coding :)
TheyaVue (Update 2022) 100% Effective Eye & Vison Support Formula
Published: 2022-04-19 06:14:28

In truth, you can find a [TheyaVue](https://ipsnews.net/business/2022/03/14/theyavue-eye-and-vision-support-formula-benefits-price-ingredients-and-where-to-buy/) that constructs a terrain for a  That Internet element sort of boggles the mind. That wasn't how to relax with my  In point of fact, I'm a slow poke. You only focus on this ploy and permit me take care of this picture. For a fact, it's simply not worth it. They haven't researched an action well. To the best of my knowledge, vibrant! 

You know that in order to give this lesson that deals with this plan in an unique way. The argument will go on, I'm certain. We'll pull out all the stops. Is there anywhere else masters receive luxurious TheyaVue books? I sense I can be more truthful apropos to your interest. That's how to heal problems with TheyaVue. 

We need to get right to the bottom of the situation. Here are the most serious details to know when it matches TheyaVue. I don't reckon that using it was merchandised properly. I have felt that way before referring to using this. I imagine everyone was ready for the holidays, myself included. 

Visit Here >>> https://ipsnews.net/business/2022/03/14/theyavue-eye-and-vision-support-formula-benefits-price-ingredients-and-where-to-buy/

https://theyavuereviews.tumblr.com/
https://sites.google.com/view/theyavueprice/
https://promosimple.com/ps/1e205/theyavue
https://theyavue.splashthat.com/
https://theyavue.company.site/
https://groups.google.com/g/theyavue/c/PTXQJOwmls4
https://www.homify.in/projects/1140155/theyavue-update-2022-100-effective-product
https://healthreviewssupplement.blogspot.com/2022/04/theyavue-warning-dont-buy-this-eye.html
https://lexcliq.com/theyavue-is-theyavue-a-natural-eye-product-or-scam-read-reviews-before-take/
https://theyavue.clubeo.com/news/2022/04/19/theyavue-warning-don-t-buy-this-eye-product-before-read-reviews
https://medium.com/@theyavue/theyavue-update-2022-100-effective-eye-vison-support-formula-29fc8768e21c
Mobile App Development Company In USA
Tags: mobile, apps, ai, services
Published: 2022-04-19 06:13:35

USM Business Systems is one of the [Mobile application development company in California](https://usmsystems.com/mobile-app-development-company-california/), that uses advanced technologies like AI to develop eye-catching mobile apps. We welcome you to the world of mobile apps development center, where every application is built according to your business requirements.
We are a well known AI mobile app development company in the USA, and we work on various emerging technologies like ChatBot, AR, and VR to deliver top-quality applications.

**Our Services**

1. Mobile app development
2. Android app development
3. IOS app development
4. [AI services](https://usmsystems.com/artificial-intelligence/ai-services/)
5. machine learning
6. Data science
7. [AR Apps](https://usmsystems.com/artificial-intelligence/ar-app-development-company/
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dnyh71vrd1ovk0okkn7b.png))

**Located At:
**
**FRISCO**
6351 Preston Road, Suite 350, Frisco, TX 75034, USA.
Phone: 1-703-263-0855
Email: sales@usmsystems.com

**CHANTILLY (HQ)**
14175 Sullyfield Circle, Suite # 400, Chantilly, VA 20151, USA.
Phone: 1-703-263-0855
Fax: 1-703-378-5231
Email: sales@usmsystems.com
Why I Love Elixir As A Long Time Python User
Tags: elixir
Published: 2022-04-19 05:45:10

---
title: Why I Love Elixir As A Long Time Python User
published: true
description: Interesting Elixir bits from a Py perspective
tags: elixir
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/roinbz4rs9a31vzhab93.jpg
---

Discord uses Python for it's API and ELixir for [realtime](https://elixir-lang.org/blog/2020/10/08/real-time-communication-at-scale-with-elixir-at-discord/) chat capabilities. Functional programming languages are off-putting for everyday uses but Elixir is just beautiful. Here's some musings.

```elixir
> rem(4, 3)
1
```

It's very neat to depart from modulo. You want the remainder? Use rem!

The comparison rule is also clearly spelt. Amazing!

```
number < atom < reference < function < port < pid < tuple < map < list < bitstring
```

String formatting without weird f letters are welcome!

```python
"Hello #{world_var}"
```

But concatenation using `<>` is weird though

`["a"] ++ ["b"]` sure gives a Python feel `["a"] + ["b"]`

Map is convoluted though `dict = %{:x => "a", "y" => :z}` but access feels at home: `dict["hello"]`

The iterables could be clearer, the end statement just bugs me: `Enum.any?(["a", "aa", "aaa"], fn(s) -> String.length(s) == 3 end)`

The `.` is annoying in fn calls `sum.(2, 3)`

The pipe operator is really coool!

`fucntion() |> decorator()`

Documenting feels a lot like docstrings

```elixir
defmodule Hello do
  ...
  @doc """
  
  """
```

For comprehensions, i prefer the in keyword anytime

`for x <- list, do: x+2`

Filtering is sort of neat

`for x <- 1..100,
  is_even(x),
  rem(x, 3) == 0, do: x` i guess in Python we can do `[x for x in range(1, 100) if combined_conditions(x)]`

Using `<<int>>` to represent bytes is very interesting to have natively

The raise use is also very pythonic `raise ArgumentError, message: "the argument value is invalid"`

Concurreny is also weirdly simple:

```elixir
defmodule Example do
  def listen do
    receive do
      {:ok, "hello"} -> IO.puts("World")
    end

    listen()
  end
end

pid = spawn(Example, :listen, [])
#PID<0.108.0>
```

It's also far more friendly than Erlang and more readable than Haskell!
TheyaVue Reviews - Healthy Product To The Eyes Side Effects Benefits Price?
Published: 2022-04-19 05:41:01

TheyaVue
(SPECIAL OFFER) Click Here :- https://ipsnews.net/business/2022/03/14/theyavue-eye-and-vision-support-formula-benefits-price-ingredients-and-where-to-buy/
https://sites.google.com/view/theyavue-price/
https://groups.google.com/g/theyavue-reviews/c/Etoz-bOqvYE
https://theyavueprice.tumblr.com/
https://theyavueprice.wordpress.com/
https://lexcliq.com/theyavue-reviews-healthy-product-to-the-eyes-side-effects-benefits-price/
https://promosimple.com/ps/1e203/theyavue
https://caramellaapp.com/theyavueprice/fGxgg4Ekw/theyavue-price
https://www.scoop.it/topic/theyavue
https://the-dots.com/projects/theyavue-reviews-healthy-product-to-the-eyes-side-effects-benefits-price-715281
https://telescope.ac/theyavue
https://twitter.com/TheyaVue
https://www.crunchbase.com/organization/theyavue
https://kit.co/TheyaVueReviews
https://public.flourish.studio/story/1263195/
https://wakelet.com/wake/67fM2NENGZeNlbV6-50qa
https://www.bulbapp.com/u/theyavue-reviews-healthy-product-to-the-eyes-side-effects-benefits-price
https://telegra.ph/TheyaVue-Reviews---Healthy-Product-To-The-Eyes-Side-Effects-Benefits-Price-04-19
https://fitnesshealthyworlds.blogspot.com/2022/04/theyavue-reviews-healthy-product-to.html
Are mistakes ok?
Tags: watercooler
Published: 2022-04-19 05:39:03

Quite early on, while starting this journey, I realized perfection is not achievable as a blogger.

It has many reasons:

- Tech stacks evolve
- People have opinions
- There are multiple correct ways
- There are multiple wrong ways
- Scenarios can be different
- Context might be missing

While writing an article, which is static, you can include information that some people deem a mistake.

So how should we address these "mistakes"?

I tend to address them early on. It could include a specific version of the system the article is written for.

It could include a disclaimer that there are multiple ways of doing it, and this is just one of them.

I try not to get involved for opinions while writing an article about React for instance. Someone might address it and say Vue can do the same thing better.

It might be true or false, but it's opinionated. And not what the article was about in the first place.
So I thank the person for their comment and leave it there.

What about making actual mistakes?

We should not be scared to fail, and I love to believe my blog/writing is not a set-in-stone article.
When people tell me I made a mistake that can happen, I investigate and address it.
Often this results in writing a secondary essay explaining the mistake I made and how I solved it.

## But you influence people?

This is, for me, the most challenging part. Yes, people read my blog and might be influenced by what I write.

But then again, is it expected always to write the perfect scenario?

Again, think about the reasons mentioned above. It might not even be wrong, but it is just missing some specific context not handled in this article.

And as always, I love to challenge people to try and find the best solution, not by reading one article or using one source.
But by trying it, looking further, reading some more.

This will eventually give you a better understanding of what works for your scenario.

## What do you think?

The main reason for writing this article is to get a conversation going.

What do you think about content creators making these "mistakes"?

Are they ok, or should every piece of content be absolute?

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
How to call multiple time amplify query in react JS
Tags: aws, react, graphql
Published: 2022-04-19 05:31:53

How to call multiple time amplify query in react JS 

How To Use The Same GraphQL Query Multiple Times In A Single API Call. Amplify, DynamoDB

```
const response = await Promise.all(
            signupData.educationalDetails.map(async (item) => {
         
            console.log("item",item)

            const variables = {
                studentId: newTodo?.data?.createStudent?.id,
                examPassed: item?.data?.boardType,
                boardName: item?.data?.boardName,
                passingYear: item?.data?.boardYear,
                percentage: item?.data?.boardPercentage,
                resumeUrl: item?.data?.boardFile
            }
            console.log("variables", variables)
             
            try{
            const newTodo2 = await API.graphql({ query: mutations.createEducational, variables: { input: variables } });
            }catch(e){
                console.log("####",e)
            }
            console.log('newTodo2Demo', { query: mutations.createEducational, variables: { input: variables } })

            return{
                boardName: item?.data?.boardName
            }

            // console.log('newTodo2Demo', newTodo2)

        })
        )
```

thank you for reading How to call multiple time amplify query in react JS
DynamoDB:ConditionalCheckFailedException | Status Code: 400; Error Code: ConditionalCheckFailedException
Tags: aws, graphql, tutorial, programming
Published: 2022-04-19 05:27:20

DynamoDB:ConditionalCheckFailedException, Status Code: 400; Error Code: ConditionalCheckFailedException

"message": "The conditional request failed (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ConditionalCheckFailedException; Request ID: HND4VSCK8HLM5NC08VDEV51CORVV4KQNSO5AEMVJF66Q9ASUAAJG)"

**quick solution is here**

Your goal is to save both records. There are 2 issues here

1. With your choice of hash and range key it is impossible to save both records

The combination of hash and range key make a record unique. Event 1 and event 2 have the same values for hash and range key. Therefore the second put-item wil simply overwrite the first record.

2. Your ConditionExpression prevents the replacement of record 1 by record 2

The ConditionExpression is evaluated just before putting a record. Your expression fails because when your event 2 is about to be inserted, DynamoDB discovers that a record with aggregateId “id1” already exists. The condition fails on "attribute_not_exists(aggregateId)", and you receive the ConditionalCheckFailedException This expression prevents overwriting of record 1 by record 2.

If you want to save both records you will have to come up with another choice of hash key and/or range key that better represents the unicity of your data item. You can not solve that with a ConditionExpression.

other solution

```
An item with that ID allready exists in the Table.

You need to create a unique ID for the item you try to add.
```

If you have any doubt regarding DynamoDB:ConditionalCheckFailedException then ask in comment
Building Laravel 8 Eloquent Query Example
Tags: laravel, eloquent, php, javascript
Published: 2022-04-19 05:19:42

Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/laravel/building-laravel-8-eloquent-query-example

In this post, I will share an example for Laravel Eloquent Query. The Laravel Eloquent all() method will retrieve all results in the model's table. But since each Eloquent model serves as a query builder, you can add additional constraints to your queries and invoke the method get() to retrieve the results.


When doing a simple query to get all records from a table using MySQL your statement:

```php
SELECT * FROM posts
```

But if we use an eloquent query then we will just use all() methods:

```php
$posts = Post::all();
```

Applying query builder methods to our Laravel eloquent query:

```php
$posts = Post::where('status', 1)
               ->orderBy('title')
               ->take(10)
               ->get();
```

That's it, now you have the basics on how to use Laravel 8 eloquent queries.

 

For more methods about query builder just visit the full [documentation](https://laravel.com/docs/8.x/queries).

I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/laravel/building-laravel-8-eloquent-query-example if you want to download this code.

Happy coding :)
Parallel Go tests executed against a PostgreSQL database running on Docker
Tags: go, postgres, docker
Published: 2022-04-19 05:12:16

Hello, I published an article explaining explaining how to run your Go tests in parallel against a PostgreSQL DB running on Docker. The PSQL container is created and destroyed programmatically, with Go, before and after running the tests.

Medium article: https://adrianbrad.medium.com/parallel-postgresql-tests-go-docker-6fb51c016796

Github repo with examples: https://github.com/adrianbrad/psql-docker-tests-example
Class based decorators in python
Tags: python, programming, beginners
Published: 2022-04-19 05:03:02

In the previous articles of [Python decorator series](https://sureshdsk.dev/series/python-decorators) we learnt to create a simple function based decorator, how it works under the hood and how to fix the doc strings. 

In this article, we will learn to create a class based decorator and use it to decorate functions. 


```python

class HelloDecorator:
    """Simple class decorator"""

    def __init__(self, func):
        self.func = func

    def __call__(self, *args, **kwargs):
        """Simple class call method"""
        print(f'Calling {self.func.__name__}')
        result = self.func(*args, **kwargs)
        return result


@HelloDecorator
def add(a, b):
    """Simple function that returns sum of two numbers"""
    return a + b


if __name__ == '__main__':
    output1 = add(2, 2)
    print('Result:: ', output1)

```

```
Calling add
Result::  4
```

OK, We got the decorator working. Lets look at the help and __name__ and __doc__ attributes, 

```
help(add) # --> prints class definition
print(add.__doc__) # --> prints Simple class decorator
print(add.__name__) # --> Raises AttributeError
```

Let's try to fix the doc strings, 
use `funct_tools.partial` to define __get__ magic method and then `funct_tools.update_wrapper` to let python know the wrapped function.


```python
from functools import update_wrapper, partial


class HelloDecorator:
    """Simple class decorator"""

    def __init__(self, func):
        self.func = func
        # fixes __name__ and __doc__ attributes
        update_wrapper(self, func)

    def __get__(self, obj):
        """Fixes help description"""
        return partial(self, obj)

    def __call__(self, *args, **kwargs):
        """Simple class call method"""
        print(f'Calling {self.func.__name__}')
        result = self.func(*args, **kwargs)
        return result
```

now lets check the docs,

```
help(add) # --> prints
"""
add(a, b)
    Simple function that returns sum of two numbers
"""
print(add.__doc__) # --> prints "add"
print(add.__name__) # --> prints "Simple function that returns sum of two numbers"
```

Conclusion, while some may class based decorators prefer, I personally do not prefer class based decorator because of the extra boilerplate code to fix the doc strings.  

In the next article, we will implement various kinds decorator recipes. Stay tuned for upcoming articles. Connect with me on [twitter](https://twitter.com/sureshdsk) to get my future articles.
Hacking tips and tricks
Tags: webdev, beginners, programming, css
Published: 2022-04-19 04:32:50

Hacking tips and tricks Join the group.
link: https://lnkd.in/g85W-mxB

This is my Fiverr account and my portfolio link.
https://developerzisan.com
https://fiverr.com/devzisan

#hacking_tips_and_trick
#dev_zisan
#devzisan