teleren/devto huggingface dataset:
One Good Reason Why You Should Not Use Async Void
Tags: csharp, async
Published: 2020-02-06 08:36:50


Let's take a look at this little example.

```csharp
class Program
{
    static void Main(string[] args)
    {
        try
        {
            AsyncVoidMethod();
            Console.WriteLine("No exception is thrown!");
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
        }
    }

    private static async void AsyncVoidMethod()
    {
        throw new Exception("BOOM!");
    }
}
```

What we have here is a method `AsyncVoidMethod,` which throws an exception and returns `async void` instead of `async Task.` 

Since it's void, we cannot `await` it. What it also means that exception from an async call could not be saved anywhere because there is no `Task` object which could save it.

#### Output
> No exception is thrown!

It's a dangerous problem: an exception is not handled! 

#### Solution
I wouldn't like to describe a solution here, because *John Thiriet* already did a great job doing so, and you know, that duplication is evil, right?

Check this fantastic article for solution:
https://johnthiriet.com/removing-async-void/
Best Company For IOT (Internet of Things)|Tudip Technologies
Tags: ios, android, react
Published: 2020-02-06 08:31:43

"Tudip’s Internet of Things service enables organizations to transform business needs into competitive differentiators by delivering innovative IoT powered solutions. From integrating the right sensors and deriving inspired insights into choosing the best-fit platform, we provide comprehensive IoT services to our clients.

The IoT platforms that we have experience, capabilities, and credentials in are Amazon Web Services, Microsoft Azure and Google Cloud."

Read More:- https://tudip.com/services/internet-of-things-iot/
Best Company for Web Application | Tudip Technologies

Tags: angular, php, java, csharp
Published: 2020-02-06 08:24:04

"Our team is responsive web application development expert across the domains and technologies, in an efficient and cost-effective manner. Our team is website development expert and can give easy and quick solutions to your business"

Get More Information here :- https://tudip.com/services/web-application-development/
Best Software Development Companies (Europe & USA)
Tags: javascript, php, ruby, wordpress
Published: 2020-02-06 08:18:15

"Tudip Technologies provides best-in-class software development services that implement a result-oriented technology framework which in turn changes the vision into reality. We follow a proven Agile development methodology to cover the entire product life-cycle for the full spectrum of software services"

Services: full cycle development of business applications, website development, 
          software and hardware integration, IoT.

Info: https://tudip.com/
The .iex.exs file
Tags: elixir, setup, iex, devtools
Published: 2020-02-06 08:03:11

---
title: The .iex.exs file
published: true
description: What is the .iex.exs file? It will save you time!
tags: Elixir, Setup, IEx, Dev Tools
canonical_url: https://alchemist.camp/episodes/iex-exs
---

The `.iex.exs` file is a "must have" convenience.

You can use it to set aliases, set imports and add define helper functions for every IEx session you run!

{% youtube E0bmtcYrz9M %}

Here's what's in my global one:
```elixir
import_if_available(Ecto.Query)
import_if_available(Ecto.Changeset)

defmodule AC do
  def update(schema, changes) do
    schema
    |> Ecto.Changeset.change(changes)
    |> Repo.update()
  end

  IEx.configure(
    colors: [
      syntax_colors: [
        number: :light_yellow,
        atom: :light_cyan,
        string: :light_black,
        boolean: [:light_blue],
        nil: [:magenta, :bright]
      ],
      ls_directory: :cyan,
      ls_device: :yellow,
      doc_code: :green,
      doc_inline_code: :magenta,
      doc_headings: [:cyan, :underline],
      doc_title: [:cyan, :bright, :underline]
    ],
    default_prompt:
      [
        # ANSI CHA, move cursor to column 1
        "\e[G",
        :light_magenta,
        # plain string
        "🧪 iex",
        ">",
        :white,
        :reset
      ]
      |> IO.ANSI.format()
      |> IO.chardata_to_string()
  )
end
```

And in this project, my local `.iex.exs` has:
```elixir
alias Campsite.{Accounts, Content, Extract, Game, Repo}
alias Accounts.{User, Credential}
alias Content.{Article, Comment, Episode, Podcast}
alias Game.Request
```

With these in place, every time IEx starts up, commonly used modules are automatically aliased, Ecto queries are easier and there's a nice 🧪 prompt making it clear the terminal is in IEx. 🎉

*Request a free email-based Elixir course from [Alchemist.Camp](https://alchemist967856.typeform.com/to/FA0SUF)*
How Airdrop help a Project
Tags: tron, newairdrop, bestairdrops, freeairdrop
Published: 2020-02-06 07:42:42

This infographic provides a guide to airdrops and examples of airdrop coins. It shows reasons, advantages of airdrops and Illustrations of airdrop coins. To know more about Latest Airdrop, Click here 👉 https://www.cryptoknowmics.com/airdrop
How to use GF Avatar in Flutter app
Tags: flutter, opensource
Published: 2020-02-06 07:37:40

Does your app have a requirement of Avatar? 

Why Not try GF Avatar to build an awesome avatar with the inbuilt widget component.

**What is Avatar Widget?**

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

It generally refers to the user profile images. Once users create an account with your application then Avatar design decides how their profile picture will look like. It might be a circular, square, and others as you would like too. GF Aavatr widget help you design your app that will decide how your user profile image will visible to users.

**Most Common Avtar used in Flutter App:**

Circular, Standard, and Square.

**How to use Flutter Avatar Widget with GetWidget?**

**Circular Avatar Widget Uses:**

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

    import 'package:getwidget/getwidget.dart';
    
    GFAvatar(
      backgroundImage:NetworkImage(AvatarUrl);
    )

**Get Flutter Standard Avatar Widget:**

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

    import 'package:getwidget/getwidget.dart';
    
    GFAvatar(
      backgroundImage:NetworkImage(AvatarUrl);
      shape: GFAvatarShape.standard
    )

**Get Flutter Square Avatar Widget**

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

    import 'package:getwidget/getwidget.dart';
    
    GFAvatar(
      backgroundImage:NetworkImage(AvatarUrl);
      shape: GFAvatarShape.square
    )

Read More about Get Flutter Widget and it uses: https://docs.getwidget.dev/gf-avatar

IF you have any suggestion or you would like to contribute to GetWidget open-source then check out GitHub: https://github.com/ionicfirebaseapp/getwidget
I created Flexbox Playground
Tags: css3, javascript, flex
Published: 2020-02-06 06:36:50

---
title: I created Flexbox Playground
published: true
description: I created a flexbox playground to learn about flex
tags: css3, Javascript, flex
---

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

Hello, Fellow Devs,

A few months back I created a flex playground to learn about flex and its properties. Right now I haven't uploaded it anywhere but soon will do.

[Here](https://youtu.be/mwX1p_cPKTU) is the video

Tech used:

- HTML
- CSS
- JavaScript (no framework)

I hope you will like it :) 

Thanks!!
What's new in iOS 13 SDK?  ARK infosoft
Tags: softwaredesigning, javascript, development, webdesigning
Published: 2020-02-06 05:58:48


IOS 13 has at last been turned out to people in general, firmly followed by 13.1. I'm certain you'll be shipping your next application refreshes with it, on the whole, we should experience an agenda of basic things.
•	The PencilKit Framework has discharged with iOS 13. It permits engineers to effectively coordinate a drawing situation for hand-drawn substance by taking contribution from an Apple Pencil or client's fingers. 

•	On Device Speech Recognition utilizing SFSpeechRecognizer permits engineers to do stuff like disconnected translations, discourse investigation and significantly more. This would absolutely support Voice-based AI applications. 

•	The SwiftUI system has gotten the most eyeballs this year. It lets you assemble cool and imaginative UIs in a totally extraordinary manner. You should know about this except if you've been living under a stone. 

•	Combine is a Reactive Programming Framework. 

•	RealityKit structure is utilized to reenact and render 3D content effectively. Manufacture far better AR applications! 

•	Project Catalyst permits us to effortlessly port iOS applications to macOS. Simply tick the checkbox to include macOS as an objective. This should work in Mac OS 10.15 or more.
Hiding Ruby 2.7 Deprecation Warnings in Rails 6
Tags: ruby, rails, beginners, tutorial
Published: 2020-02-06 05:50:58

# Hiding Ruby 2.7 Deprecation Warnings in Rails 6

If you have upgraded your Rails app to Ruby 2.7, you are probably seeing a lot of deprecation messages in your console. You should first make sure that none of these messages are coming from your code, and address them if they are! If the deprecations are coming mostly from Rails, it may be time to disable the messages and save yourself from messy terminal output.

The TL;DR is that you need to use `RUBYOPT='-W:no-deprecated -W:no-experimental'` to disable the deprecations. This will also disable experimental feature warnings as well.

Here are some options you have to make that happen. But first, lets create a new Rails app to experiment with!

## Generate a new Rails app with Ruby 2.7

You can either use the CLI or [this template](https://github.com/andrewmcodes/rails_template/generate).

If you use the CLI, I recommend something like:

```sh
rails new silence_ruby_2_7_deprecations -d postgresql --webpack=stimulus
```

## Method #1: Using `dotenv-rails`

If you are using the [dotenv-rails](https://github.com/bkeepers/dotenv/) gem, or another method of using `.env` files, simply add the following to your `.env` file:

```sh
export RUBYOPT='-W:no-deprecated -W:no-experimental'
```

Then run the following in the root of the project:

```sh
source .env
```

You should no longer be seeing the Ruby 2.7 deprecation warnings coming out of Rails! 🎉

## Method #2: Prefixing commands

Another option you have for ignoring the Ruby 2.7 deprecation warnings is to prefix all of your Rails commands with `RUBYOPT='-W:no-deprecated -W:no-experimental'`.

Example:

- `rails server` would become `RUBYOPT='-W:no-deprecated -W:no-experimental' rails server`
- `rails console` would become `RUBYOPT='-W:no-deprecated -W:no-experimental' rails console`
- etc.

This is obviously not ideal but it will work!

## Method #3: Updating your environment

If you want to disable these deprecation messages everywhere, you can add the following to your `~/.zshrc` or `~/.bashrc`:

`export RUBYOPT='-W:no-deprecated -W:no-experimental'`

This will disable deprecation and experimental feature warnings for all versions of Ruby, for all projects. I have heard of this creating issues for some so you may want to be careful using this method if you work on multiple apps that aren't on Ruby 2.7.

[View repo for this post](https://github.com/andrewmcodes/silence-ruby-2-7-deprecations)

Hopefully this helps! Happy coding!
How to Fix Windows 10 Search is not working
Tags: productivity, design, windows, windows10
Published: 2020-02-06 05:27:59

Originally posted on [HariHaran Subramanian](https://hariharan-subramanian.netlify.com/posts/2020/02/how-to-fix-windows-10-search-is-not-working/)

As the title states you're here reading this to fix :shit: your windows 10 Search. So this recently happened to me as well on the latest version of windows. This seems to be a issue from MSFT end that alot of users are affected due to this issue. :collision:

![](https://imgur.com/download/3MSvP1U)

* I have came across alot of blogs asking to try to update / troubleshoot windows update, but all those things did not resolve the issue for me.

* Here's the final working method :grey_exclamation::grey_exclamation:. 

* All you need to do is execute tje below commands one by one from a Adminstrator command prompt.

```sh
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Search /v BingSearchEnabled /t REG_DWORD /d 0
```

```sh
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Search /v CortanaConsent /t REG_DWORD /d 0
```

```sh
tskill searchui
```

* You don't have to restart your computer. The search will now work normally.

### PROOF :fire:

![](https://imgur.com/download/uKnJeKk)

### Thanks for reading! :v: :v:
#### Stay tuned for more blogs :open_hands:
I wrote a lightning fast prime number generator in C!
Published: 2020-02-06 05:22:37

I recently found out about [this](https://github.com/kimwalisch/primesieve/wiki/Segmented-sieve-of-Eratosthenes) improved and cache optimized version of the segmented sieve of eratosthenes algorithm. Now, me being super interested in primes, I wanted to make it *even faster*. So I wrote it in `C`!

Check it out [here](https://github.com/TotallyNotChase/cFastSieve)!
It is not a Choice! You must become IT Literate
Tags: technology, adaptability, coaching
Published: 2020-02-06 05:06:33

The coming of information and communication technology (ICT) has brought drastic changes in the way we labor, learn and live. In the yesteryear, the accountant was one who could keep records and balance books; a student in Santa could only travel to San Francisco to get lectures; and we could only communicate with our friends and family via old fashioned methods like letters. That reminds me of “pen pals”. I remember we used to exchange letters with our unknown friends in the USA, Germany, India, Japan, etc. Today, pen pals have a different form due to the coming of information technology (IT). 

Sometimes I ask myself what the world would be without these technologies? The truth is, my parents and grandparents could easily answer that question not me, but let me tell you 3 things I know. These technologies: crosscut in every domain of life, are not leaving us this soon, and are in constant evolution and change. Since they affect all areas of our lives, and will not leave us this soon, we MUST become IT literate today in order to be relevant in the world of tomorrow.

The big question is: “who is an IT literate?” I guess you are already saying that: “an IT literate is he who can use an ICT system” well, you just missed it. In this constant evolving and changing world, an IT literate is he who can easily adapt in the use of any IT system. 

I guess the question now is: “what is the difference between your definition and mine?” the answer is at the level of the word “adapt”. Adaptation is the process of changing to fit new environments or conditions. As Darwin said: “it is not the strongest species that survives, but the ones who can easily adapt”. In this ever changing technological world we are in, I will tell you that: “An IT literate is not he who is strong in a particular technology, but it is, he who can easily adapt to use any technology. So, to stay relevant in this ever changing world: you have to become IT literate. 

I think the big question now is: “how can one become IT literate as per your definition?” We’ve got a road map for you, but that will depend on which level you want to play as an IT literate. Visit https://ictadaptabilitycoaching.com/ to learn more.
What the heck is :: in php?? (aka the scope resolution operator) 
Tags: php, html, scoperesolutionoperator, static
Published: 2020-02-06 04:08:00

:: is what you call the scope resolution operator.

We use this to access constants and static properties, functions

Here's some code , for lack of better words

```
<?php

class FirstClass{

    const EXAMPLE = "I AM CONSTANT";

    public static function test(){
        echo self::EXAMPLE;
    }
}

?>
```

Say you wanted to execute the test() method outside the firstClass how would you do it? We use that "scope resolution operator" and it is used as follows:

$a = FirstClass::test();
echo $a; 


And then say we write another class extended

```
<?php
class SecondClass extends FirstClass{

    public static $staticProperty = "I AM STATIC";

    public static function anotherTest(){
        echo parent::EXAMPLE;
        echo self::$staticProperty;
    }

}
?>
```

Even inside the function anotherTest() we can see that :: used. 

Instead of using $this->staticProperty; we said self::$staticProperty, and this is because the staticProperty is actually a static property with the static keyword used. :)

Okay hope this is clear, so before closing can I ask a question. How would you access function anotherTest() from outside the class 'secondClass'?

Answer is 

echo SecondClass::anotherTest();

Please note when you echo it prints out what is returned from that function. in this case it will return "I AM CONSTANT" AND "I AM STATIC"

Thanks for reading !
Learn a new Programming Language
Tags: codenewbie
Published: 2020-02-06 04:02:41

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

**This post was published first at https://21-lessons.com/2020/02/05/learn-a-new-programming-language/**

When you learn your first programming language or an additional one, have you wondered where to start learning?
A programming language comes with a lot of features, syntax and language constructs. If you look at it for the very first time, it can all be intimidating.

Over the last 13 years I learned something between eight and twelve programming languages. Looking back at it, I’d like to share my method with you.

## Step 1

Install the language on your computer. Most languages have an installer on their website that works for your operating system.

## Step 2

Open the language’s documentation website. Most programming languages have a documentation on their website that walk you through the basics.

## Step 3

Read about these topics in the documentation

- How to run Code in this language
  - Does it need to be compiled?
  - Is there anything else you need to take into account?
  - What is the basic program structure?
- Variables + Variable Declarations
  - How do you declare variables
  - How do variables work in this language? Are there any special behaviors to take into account? (Variables behave very similar in many languages but here and there this can differ)
- Data Types
  - What kind of data types does the language offer?
- Assignments
  - How do you assign values to variables? Is there anything to take into account?
- Expressions vs. Statements
  - How do Expressions and Statements work in this language? What’s the syntax?
- Functions
  - What’s the syntax for functions and how do they work?
- Loops
  - What kind of loops are available? for, while, …
- Conditionals / If Statements
  - How do Conditionals / If Statements work? Are there other types of conditionals the language offers?

## Step 4

Write the first programs to apply all of these features. These programs should be small and are only meant to exercise the new knowledge. Once you become more comfortable with the new language these serve no purpose anymore.

## Step 5

Once you become more familiar with the language basics, you can start to read and learn about the more advanced features. Advanced features can be:

- Classes
- Macros
- Higher-Order Functions
- Meta Programming
- Reflection / Introspection
- …

I’m curious to hear from you how this method works for you or if you have a different approach. Comment below and share your thoughts!
Warn: Multiple node fields resolve to the same GraphQL field
Tags: gatsby
Published: 2020-02-06 03:58:00

I am getting the warning messages when run gatsby develop. It's still being run but I can't figure out what causes the error message

Below are the example warning messages
warn Multiple node fields resolve to the same GraphQL field `Airtable.data.Project` - [`Project`, `Project___NODE`]. Gatsby will use `Project___NODE`.
warn Multiple node fields resolve to the same GraphQL field `Airtable.data.Publication` - [`Publication`, `Publication___NODE`]. Gatsby will use `Publication___NODE`.


The version library in package.json
"gatsby-source-airtable": "^2.0.8",
"gatsby": "^2.18.13",


Does anyone found a solution yet?

Many thanks
6 JavaScript rules to get by
Tags: javascript, beginners, webdev, motivation
Published: 2020-02-06 03:02:25

1. Use `const`, then `let`
  - When creating a variable, you should use `const`, unless you expect you variable to change, in which case, you should use `let`. Never use `var`, especially as a beginner. If you're not sure whether your variable will change, always use `const`. Keeping with this rule will generate errors in your code that help you understand the nuanced differences between `const` and `var` over time. Intellectual curiosity will eventually lead you down that rabbit hole of addressing "scope" with this point. For now, stick with this role.

2. Default to triple equality
  - JavaScript has this funky behavior of implicit type conversion (or coercion) that forces your variable into a type, based on the context. This is what allows you to add a string and a number. But when testing for a condition, using triple equality (`===`) insures that JavaScript will interpret your code exactly how you wrote it.

3. Start with Model View Controller (MVC)
  - The first design pattern I learned will of course be my easiest to understand; so I may be biased. But having explored a few design patterns since my first line of code, I find MVC to be the most beginner friendly. MVC organize your code according to your programs concerns:
      - Model layer will hold your data model (your database)
      - View is the visual / presentation layer
      - Controller handles communication between the Model and View

4. Try the module design pattern
  - Once you have a good grasp of the MVC pattern (or if you just want to learn an additional pattern), check out the module design patter covered [here](https://www.youtube.com/watch?v=SKBmJ9P6OAk). Using this patter will encourage you to break your code into small functional components that each do one thing. This is a good habit to develop early.

5. Learn functional programming before Object Oriented Programming
  - I'm sure you've heard that JavaScript is both a functional and an object-oriented language. Of the two, functional programming is easier and has a shorter learning curve than OOP. While there are hundreds of blogs  to argue both sides of that statement, you can start building with FP before understanding classes, instances, inheritance and more. OOP can also be challenging if you don't have a good understanding of what your objects will be, [also explored here](https://tylermcginnis.com/javascript-inheritance-vs-composition/).
  - Functional programming, on the other hand, is easy to get started with. It's about having modular code that focuses on what your functions do, instead of what your objects are. Again, developing great habits early. 

6. Always use template literals
  - Template literals are not only easier to read, but also easier to write, especially with multi-line strings. Switching to back ticks can be a bit awkward at first, but the small amount pain is completely worth never having to use a `+` sign to create a new line.