teleren/devto huggingface dataset:
Announcing GitHub README Templates - Amazing README's to get you started with your own.
Tags: showdev, webdev, programming, react
Published: 2021-01-06 17:03:26

Hello and thank you checking out my post about GitHub README Templates!

Adding an amazing README to your GitHub project is a great way of introducing new people to the codebase, teaching them about how to use your project/code, and will inspire them to contribute themselves.

I've always struggled with what makes a great README. That's why I've gathered some that I really enjoyed and made them available on www.readme-templates.com.

You can preview all the README's, copy their markdown, and view the original projects on GitHub.

I'd love to hear what you think and if you have any README's you can recommend to add!

Cheers 😄

www.readme-templates.com
Flutter plugin not installed error. When running flutter doctor - fluttercorner.com
Published: 2021-01-06 17:03:06

Hello Guys How are you all ? Hope you all are fine. When I first time installed flutter in My system. Then When we use android studio we have to use Flutter plugin in android studio. and then When I was try flutter doctor command I found Flutter plugin not installed; this adds Flutter specific functionality. in my console log.

So Here is all Possible Solution to solve this Error.

Flutter Plugin Not Installed Error, When Run flutter doctor.
Here Is Defined all Possible Solution to solve your Error. Just Follow Below Step.

#What Is Error ?

I am configuring Flutter SDK on my Linux Ubuntu 16.4 system. Why am I getting the following error when I run the flutter doctor? I have specified both PATHS for flutter and dart in the .bashrc but I get this error when I run flutter doctor

```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.5.1, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
[✓] Android Studio (version 3.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] IntelliJ IDEA Community Edition (version 2018.2)
[!] VS Code (version 1.25.1)
[!] Connected devices
    ! No devices available

! Doctor found issues in 2 categories.
```

#Solution 1
Solution that worked for me:

Here is All Possible Solution added please visit <a href="https://fluttercorner.com/flutter-plugin-not-installed-error-when-running-flutter-doctor/">Flutter plugin not installed error. When running flutter doctor
</a>
TextField inside of Row causes layout exception: Unable to calculate size - fluttercorner.com
Published: 2021-01-06 17:01:13

Hello Guys How are you all ? Hope You all Are fine. In todays tutorial we are going to solve TextField inside of Row causes layout exception: Unable to calculate size error in flutter.

I’m attempting to create a column that has 3 rows. First children is Row [Image] Second Children in Row [TextField] and Third Children is Row [Buttons]. When I run I get the following exception:

```
I/flutter ( 7674): BoxConstraints forces an infinite width.
I/flutter ( 7674): These invalid constraints were provided to RenderStack's layout() function by the following
I/flutter ( 7674): function, which probably computed the invalid constraints in question:
I/flutter ( 7674):   RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:256:13)
I/flutter ( 7674): The offending constraints were:
I/flutter ( 7674):   BoxConstraints(w=Infinity, 0.0<=h<=Infinity)
```

#Solution 1

TextField inside of Row causes layout exception: Unable to calculate size

Here is All Possible Solution added please visit <a href="https://fluttercorner.com/textfield-inside-of-row-causes-layout-exception-unable-to-calculate-size/">TextField inside of Row causes layout exception: Unable to calculate size
</a>
PluginRegistry cannot be converted to FlutterEngine In Flutter - fluttercorner.com
Published: 2021-01-06 16:58:05

Hello Guys How Are you all? hope you all are fine. today when I updated my flutter version, suddenly I got the following error: “error: incompatible types: PluginRegistry cannot be converted to FlutterEngine GeneratedPluginRegistrant.registerWith (registry); ” from firebase_messaging plugin.

I Got This Error From firebase_messaging plugin
```
error: incompatible types: PluginRegistry cannot be converted to FlutterEngine
    GeneratedPluginRegistrant.registerWith(registry);
```
Line where I Got This Error

```
  public void registerWith(PluginRegistry registry) {
    GeneratedPluginRegistrant.registerWith(registry);
  }
```

#Solution
Replace this code line:

Here is all possible solutions added <a href="https://fluttercorner.com/pluginregistry-cannot-be-converted-to-flutterengine-in-flutter/">PluginRegistry cannot be converted to FlutterEngine In Flutter</a>
Fractional knapsack using C++
Tags: programming, codenewbie, computerscience, algorithms
Published: 2021-01-06 16:53:49

Fractional knapsack problem is a famous problem in greedy algorithms. The problem statement tells that a knapsack is given which has a weight W. You are given a list of weights and values of different items. The expected output is to output the maximum value of items that can be packed inside the knapsack.

**ALGORITHM**
1.We find the value per unit weight for each item
2.Next, we find the item with the maximum value per unit weight and check if the weight of that item is less or equal to the resultant weight of the knapsack then we include that item completely. Then we update the resultant weight of the knapsack.
3.If the weight of the item is less than that of the knapsack but the weight of the knapsack is not zero, then we include that amount of the item which fits into the knapsack.
4.If the sum of weights of all the items is less than the weight of the knapsack, then the output will be the sum of the values of each item.

**CODE**
The code snippet is:

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

Hope this helps you! If you liked the article do follow me on [Github](https://github.com/SAY-droid427)!
How To Make Round button with text and icon in flutter? - fluttercorner.com
Published: 2021-01-06 16:53:17

Hello Guys How Are You all? Hope you all are fine. Today I am Coming With New Tutorial For Futter Where You will Learn How To Make a Round button with text and icon in flutter ?. Here I have all possible methods to make a Round button with text and icon in a flutter. So Without wasting your time, Let’s start this article.

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

# Method 1: Using FlatButton

Here We are using a FlatButton that contains a Column (for showing a text below the icon) or a Row (for text next to the icon), and then having an Icon Widget and a Text widget as children.

Here’s an example:

#Here is all 5 Methods with source code and image at <a href="https://fluttercorner.com/how-to-make-round-button-with-text-and-icon-in-flutter/">How To Make Round button with text and icon in flutter?</a>
How to hide letter counter from the bottom of TextField in Flutter - fluttercorner.com
Published: 2021-01-06 16:50:32

Hello Guys How Are You all? hope you all are fine. Today I faced some issues with Textfield. Actually, My TextFormField counter cannot be hidden. Even when I want to remove.

How to hide letter counter from the bottom of TextField in Flutter
I was Facing Above error. Actually I have PIN text input box that is made by TextField. So Here I Have found below solution that was worked for me. So Lets start without wasting your time.

Solution 1 : using maxLength and counterText 

Here is all possible method and solution added please have a look <a href="https://fluttercorner.com/how-to-hide-letter-counter-from-the-bottom-of-textfield-in-flutter/">How to hide letter counter from the bottom of TextField in Flutter</a>
Coronavirus stats: worldwide country position bookmarklet
Tags: coronavirus, bookmarklet, worldometer
Published: 2021-01-06 16:50:16

```javascript
javascript:
void( 
document.body.onclick = async function (event) {
 event = event || window.event;
 var element = event.target || event.srcElement;
 await new Promise(resolve => setTimeout(resolve, 10));
 state = 'Czechia'; /* CHANGE THIS TO SEE OTHER STATE */
 index = document.body.innerText.search(state);
 place = document.body.innerText.substring(index - 4,index).match(/\n([0-9]+)/);
 alert(state + ' is #' + place[1] + ' in ' + element.textContent + ' worldwide.')} );
```

Simply add this code in place of a bookmark URL - ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/2wbve3m7c0h9x36av8n7.png)

Go to https://www.worldometers.info/coronavirus/ and click this bookmark. Then - when you click on the first row of the data table with data
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/rdustc554wsa7yd38la5.png)
the bookmarklet will show you the position of the selected country (see in code) 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/x175w5om29hoc6qqdjz0.png)
Converting TimeStamp in Flutter, Flutter Date time to Timestamp - fluttercorner.com
Published: 2021-01-06 16:48:05

Hello Guys. Many times we need Converting TimeStamp in Flutter, Flutter Date time to Timestamp. Here We have a tutorial to convert DateTime in different ways.

So Here I Have Share My Date Time Convert Class Which will convert your datetime formate for you.

1 Solution :

Here Is My 3 Method Added With Code and Step By step image please visit <a href="https://fluttercorner.com/converting-timestamp-in-flutter-flutter-date-time-to-timestamp/">Converting TimeStamp in Flutter, Flutter Date time to Timestamp</a>
Flutter Pub: Expected a key while parsing a block mapping. path: - fluttercorner.com
Published: 2021-01-06 16:45:38

Hello Guys. Many times we Face Flutter Pub: Expected a key while parsing a block mapping. path:. So in this tutorial, we are going to Solve this error.

So Error That I have faced is as below.

Error on line 30, column 6 of pubspec.yaml: Expected a key while parsing a block mapping. assets: ^

Here is my pubspec.yaml File:

```
  dependencies:  

  flutter:

  sdk: flutter

  cupertino_icons: ^0.1.0

  dev_dependencies:   

 flutter_test:

      sdk: flutter

    flutter:

    uses-material-design: true

      assets:

       - loadjson/person.json
```
*Solution:*

Here is all possible solution added please visit <a href="https://fluttercorner.com/flutter-pub-expected-a-key-while-parsing-a-block-mapping-path/">Flutter Pub: Expected a key while parsing a block mapping. path:</a>
Agrega la opción de emails de verificación en Laravel Jetstream.
Tags: laravel, php, jetstream
Published: 2021-01-06 12:39:58

### Modificar el archivo "config/fortify.php":

Debemos quitar el comentario sobre este feature.

```php
'features' => [
    Features::registration(),
    Features::resetPasswords(),
    Features::emailVerification(),
    Features::updateProfileInformation(),
    Features::updatePasswords(),
    Features::twoFactorAuthentication([
        'confirmPassword' => true,
]),
```

### En el modelo User implementar la interface "MustVerifyEmail":


```php
class User extends Authenticatable implements MustVerifyEmail
```

### Agregar un servicio proveedor de correos de prueba.

Puedes usar mailhog, pero el mas conocido y utilizado para pruebas en mailtrap.io, te logueas gratis y el servicio para una sola cuenta no tiene costo.

#### Agregas las llaves del servicio de mail

En tu archivo ".env" agrega las credenciales del servicio seleccionado, aquí un ejemplo con mailtrap.io

```env
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=273b5ab0b82231
MAIL_PASSWORD=b5612d6ea6iir3
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="admin@tuapp.com"
MAIL_FROM_NAME="${APP_NAME}"
```

###### Nota

Si deseas trabajar en producción, uno de los servicios mas beneficiosos y fáciles de implementar es Sendgrid.

Espero el post sea de utilidad.
Flutter Firestore causing D8: Cannot fit requested classes in a single dex file (# methods: 71610 > 65536) in Android Studio
Published: 2021-01-06 16:43:45

Hello Guys. Many times we Face Flutter Firestore causing D8: Cannot fit requested classes in a single dex file (# methods: 71610 > 65536) in Android Studio. So in this tutorial, we are going to solve this error.

What is Error ?

I am facing this error when I Use firestore with flutter app.
```
D8: Cannot fit requested classes in a single dex file (# methods: 71610 > 65536)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: C:\Users\Milan\AndroidStudioProjects\Milan_flutter_projects\bakery\bakery\build\app\intermediates\transforms\dexBuilder\debug\2.jar, 
  The number of method references in a .dex file cannot exceed 64K.
```
How to solve Flutter Firestore causing D8: Cannot fit requested classes in a single dex ?

All Possible Solution added here please visit <a href="https://fluttercorner.com/flutter-firestore-causing-d8-cannot-fit-requested-classes-in-a-single-dex-file/"> How to solve Flutter Firestore causing D8: Cannot fit requested classes in a single dex ?</a>
The road to 250,000 words
Published: 2021-01-08 18:30:19

---
title: The road to 250,000 words
published: true
date: 2021-01-06 16:40:31 UTC
tags: 
canonical_url: https://mikebobadilla.com/the-road-to-250-000-words/
series: My Year of Writing
---

Im not even sure where to start, but `250,000 / 350 = ~715` so that sounds  kinda doable. So the thinking is that I write around 715 words a day and by the end of the year, I will have written 250,000 words. I'm sure most of it will be crap, but who cares. At this point I'm writing for myself.

I always wanted to try and write so the main topics I am thinking of writing about are:

- Programming
- Deploying code
- Mentality
- Stuff I find interesting
- My family (maybe)


For the programming posts that I work on I am going to avoid beginner tutorials. I think there is plenty of content, made by really good developers, so Im not going to do that. The main focus here will be things that save me time and stress.

Deploying code is weird. I remember just using FTP to push my new pages to my shared hosting provider. Now, you can do a JAM stack, Serverless, VPS, blah blah blah. There are so many that it's a bit overwhelming. Deployment posts will be more of a documentation for myself instead of a tutorial. I will be writing for my future self, kinda like coding.

Mentality posts are going to be the most difficult ones since they can be super intimate. I hope these posts can shed some light on how much a toll imposter syndrome can take on you. I still struggle with imposter syndrome every day, so maybe these will be a bit therapeutic and might actual help someone else.

My things Im interested in posts are the ones I am actually looking forward to. I like a lot of random shit and I am hoping this will give me reason to just share some weirdness with others. And also for me to remember what my flavor of the week was.

Im sure the word count will go up as I write more of these, but I just need to get the first one out.


Current word count: 343 / 250,000
Angular 11 ElasticSearch Example
Tags: angular11, elasticsearch, example
Published: 2021-01-06 16:39:40

# Angular 11 ElasticSearch Example

Link: https://loizenai.com/angular-11-elasticsearch-example/

![Angular 11 ElasticSearch Example](https://loizenai.com/wp-content/uploads/2021/01/Angular-11-ElasticSearch.png)

– Tutorial: “Angular 11 ElasticSearch Example – How to add Elasticsearch.js”
In this tutorial, I guide how to add ElasticSearch to an Angular 11 Project.

## Check Result

Run Angular 11 App, go to http://localhost:4200/:

![Angular 11 Elasticsearch Example Quick Start Result](https://loizenai.com/wp-content/uploads/2021/01/Angular-11-Elasticsearch-Example-Quick-Start-Result-1.png)

Open Browser Console, we can see:

![Angular 11 Elasticsearch Example Quick Start-Result Console](https://loizenai.com/wp-content/uploads/2021/01/Angular-11-Elasticsearch-Example-Quick-Start-Result-Console.png)

## Read More

- [Node.js Upload Image to PostgreSQL Example](https://loizenai.com/node-js-upload-image-to-postgresql-example/)
- [Image to Base 64 Java 8](https://loizenai.com/image-to-base64-java-8/)
- [Angular 11 Node.js MySQL CRUD example](https://loizenai.com/angular-11-node-js-mysql-crud-example/)
- [Angular Node.js MySQL CRUD Example](https://loizenai.com/angular-node-js-mysql-crud-example/)
- [Angular 11 Node.js PostgreSQL CRUD Example](https://loizenai.com/angular-11-node-js-postgresql-crud-example/)
- [SpringBoot MongoDB Angular CRUD Example Github](https://loizenai.com/spring-boot-mongodb-angular-crud-example-github/)
- [Nodejs Token Based Authentication JWt Web Tokens Authentication MySQL Example](https://loizenai.com/nodejs-token-based-authentication-jwt-json-web-tokens-authentication-mysql-example/)

## Tutorial Link

https://loizenai.com/angular-11-elasticsearch-example/

## Youtube Video

- https://www.youtube.com/watch?v=dTR-41_jMvc&t=86s
- https://www.youtube.com/watch?v=y-i52oP-l_E&t=72s
- https://www.youtube.com/watch?v=XIzmmwWmCqg&t=41s
- https://www.youtube.com/watch?v=XIzmmwWmCqg&t=41s
- https://www.youtube.com/watch?v=XIzmmwWmCqg&t=41s
Flutter Error: MediaQuery.of() called with a context that does not contain a MediaQuery - fluttercorner.com
Published: 2021-01-06 16:38:20

Hello Guys. Many times we Face Flutter Error: MediaQuery.of() called with a context that does not contain a MediaQuery. So in this tutorial, we are going to Solve this error.

Suppose This is My Code

```
return new Container(
      height: MediaQuery.of(context).size.height,
      decoration: BoxDecoration(
        color: backgroundColor,
      ),
      child:   DecoratedBox(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          mainAxisSize: MainAxisSize.max,
          children: <Widget>[
            Center(

                mainAxisAlignment: MainAxisAlignment.center,
                children: <Widget>[
                  Container(height: 120.0, color: Colors.yellow, child: new ColorLoader2(color1: Colors.redAccent, color2: Colors.deepPurple, color3: Colors.green),),

                ],
      ),
            )
        ],
      ),
        decoration: BoxDecoration(
          color: Colors.redAccent,
        ),
      )
    );
  }
}
```
And I am facing error at this line

MediaQuery.of(context).size.height,
What is The problem ?
Reason behind this issue is MediaQuery Is used by Scaffolds internal component. Thats why it must be wrapped inside a widget which will provide us MediaQuery Something like MaterialApp Widget or WidgetsApp . Material App Will Provide Mediaquery and that will solve our error.

Solution
Here is all possible solution added please visit <a href="https://fluttercorner.com/flutter-error-mediaquery-of-called-with-a-context-that-does-not-contain-a-med/">Flutter Error: MediaQuery.of() called with a context that does not contain a MediaQuery</a>
Yet another way to convert a website (with backend) to desktop app
Tags: webdev, desktop, go, crossplatform
Published: 2021-01-06 16:37:01

Use a real GUI framework (not really Electron), to let people know that web server is running (without showing the Terminal).

I use [systray](https://github.com/getlantern/systray) to show web server in Notification Area.

{% github getlantern/systray no-readme %}

And, [xgo](https://github.com/karalabe/xgo) to build cross-platform from Linux; yet I can run in Windows and macOS.

<small>But when it touches native GUI and CGO, it's not without troubles...</small>

The app is here. It's super small, but most of the size comes from fonts and SQLite database.

{% github zhquiz/zhquiz no-readme %}
How to open a web browser (URL) from Flutter code?
Published: 2021-01-06 16:36:09

Hello Guys. Many times we need to open some hyperlinks in the flutter project. So in this tutorial, we are going to learn How to open a web browser (URL) from my Flutter code?

Without Wasting Your Time Lets Start This Article.

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

How to open a web browser (URL) from Flutter code?
open a web browser url in flutter, open a web browser flutter, web browser url flutter, open a web browser (URL) from Flutter code

Time needed: 3 minutes.

Follow All Step To Open a web Browser in flutter

Here is Step By Step Guide please visit <a href="https://fluttercorner.com/how-to-open-a-web-browser-url-from-flutter-code/">How to open a web browser (URL) from Flutter code?
</a>
How to solve Flutter could not find tools.jar? fluttercorner.com
Published: 2021-01-06 16:33:57

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

Hello Guys How Are You All ? Hope You All Are Fine. When I Update my MacBook to macOS Big Sur version 11.0.1. I am Faced Flutter could not find tools.jar Error in my mac. So here is all possible way to solve flutter could not find tools.jar.

Flutter could not find tools.jar
What is error
```
* What went wrong:
Execution failed for task ':apple_sign_in:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
```
I Think Some Problem with JDK path That’s Why facing This Error. So lets solve this error by all possible ways.

Solution 1:

Here Is all Possible Solution added please visit <a href="https://fluttercorner.com/how-to-solve-flutter-could-not-find-tools-jar/"> How to solve Flutter could not find tools.jar? </a>
Flutter Error : No Firebase App ‘[DEFAULT]’ has been created – call Firebase.initializeApp() in Flutter and Firebase

Published: 2021-01-06 16:32:05

Hello Guys How are you all? hope you all are super fine. well whenever we use a firebase service-related plugin in a flutter project and then we get dependency, almost every developer would face this error Flutter Error: No Firebase App ‘[DEFAULT]’ has been created – call Firebase.initializeApp() in Flutter and Firebase.

I have decided to make all possible solution write down here so it will helpful for you. So without wasting your time lets start this article.

What Is Error:

```
══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
The following FirebaseException was thrown while handling a gesture:
[core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()
```
What Is Solution
Solution 1 :


Here is all Possible solution added Please visit at <a href="https://fluttercorner.com/no-firebase-app-default-has-been-created-call-firebase-initializeapp-in/"> Flutter Error : No Firebase App ‘[DEFAULT]’ has been created – call Firebase.initializeApp() in Flutter and Firebase </a>