teleren/devto huggingface dataset:
Generate and read barcodes in C#, Java, PHP and Node.js
Tags: dotnet, java, node, php
Published: 2021-05-26 06:57:53

Barcodes have become essential part of various business domains. Almost every product these days contains a barcode that represents a particular information about that product. In this article, I am going to list some useful articles that provide code samples of how to generate or read barcodes in C#, Java, PHP, and Node.js. Hope it will help the concerned developers.

* [Generate Barcodes with UTF-8 Encoding using C#](https://blog.aspose.com/2021/02/19/generate-barcodes-with-utf-8-encoding-using-csharp/)
* [Read Barcodes using C# Barcode API](https://blog.aspose.com/2020/10/20/scan-and-read-barcodes-using-csharp/)
* [Generate Barcodes with UTF-8 Encoding using C#](https://blog.aspose.com/2021/02/19/generate-barcodes-with-utf-8-encoding-using-csharp/)
* [Generate Barcodes using C# – .NET Barcode API](https://blog.aspose.com/2020/10/19/generate-barcodes-using-csharp/)
* [Generate and Scan Barcodes Programmatically using Java](https://blog.aspose.com/2020/04/07/generate-or-scan-barcodes-qr-codes-in-java-using-java-barcode-library/)
* [PHP Barcode Generator and Reader API – Generate and Scan Barcodes in PHP](https://blog.aspose.com/2020/01/29/php-barcode-generator-reader-and-scanner-api/)
* [Generate Barcodes in Node.js Applications](https://blog.aspose.com/2021/05/06/generate-barcodes-in-node-js-applications/)

Cheers!
Weekly web development resources #75
Tags: weekly, webdev
Published: 2021-05-26 06:52:43



______

##[Iconoir](https://iconoir.com/)
[![Iconoir](https://wweb.dev/weekly/content/75/iconoir.jpg)](https://iconoir.com/)
An open source library with currently 914 SVG Icons.

______

##[Learn CSS](https://web.dev/learn/css/)
[![Learn CSS](https://wweb.dev/weekly/content/75/learn-css.jpg)](https://web.dev/learn/css/)
An evergreen CSS course and reference to level up your web styling expertise.

______

##[pmndrs market](https://market.pmnd.rs/)
[![pmndrs market](https://wweb.dev/weekly/content/75/market.jpg)](https://market.pmnd.rs/)
A website for free, web-ready 3D assets.

______

##[50 UI Tips](https://fifty.user-interface.io/50_ui_tips.pdf)
[![50 UI Tips](https://wweb.dev/weekly/content/75/50_ui_tips.jpg)](https://fifty.user-interface.io/50_ui_tips.pdf)
A small e-book with tips to improve user interfaces.

______

##[Tail Blend](https://tailblend.vercel.app/)
[![Tail Blend](https://wweb.dev/weekly/content/75/tailblend.jpg)](https://tailblend.vercel.app/)
A tool to quickly experiment with the Mix Blend Mode feature of Tailwind.

______

##[AImages](https://app.beta.aimages.ai/login)
[![AImages](https://wweb.dev/weekly/content/75/aiimages.jpg)](https://app.beta.aimages.ai/login)
An online tool for quick and easy video enhancement and restoration.

______

##[TODO.md Kanban Board](https://marketplace.visualstudio.com/items?itemName=coddx.coddx-alpha)
[![TODO.md Kanban Board](https://wweb.dev/weekly/content/75/task-board.jpg)](https://marketplace.visualstudio.com/items?itemName=coddx.coddx-alpha)
A VS Code extension to create Todo Kanban Boards and save them as TODO.md.

______

##[Learn JavaScript](https://scrimba.com/learn/learnjavascript)
[![Learn JavaScript](https://wweb.dev/weekly/content/75/learn-js.jpg)](https://scrimba.com/learn/learnjavascript)
Learn the basics of JavaScript by solving interactive coding challenges.

______

##[Getting Started with JavaScript](https://beginnerwebdev.com/)
[![Getting Started with JavaScript](https://wweb.dev/weekly/content/75/beginner-js.jpg)](https://beginnerwebdev.com/)
A free course to learn JavaScript from scratch.

______

##[Aurora](https://www.useaurora.app/)
[![Aurora](https://wweb.dev/weekly/content/75/aurora.jpg)](https://www.useaurora.app/)
A cookie-free open website analytics to collect anonymous data.

______

To see all the weeklies check: [wweb.dev/weekly](https://wweb.dev/weekly)
Writing functions in Python
Tags: python
Published: 2021-05-26 06:51:14

Functions are an essential part of programming, as they can execute a block of code at once.
Often it's an excellent way to re-use blocks of code.

Let's give it a go and see how they work in Python.

## Creating a function in Python

A function is made by prefixing the `def` keyword.

```python
def foo():
	print("Bar")
```

However, running our code now will not do anything since we didn't call our function yet.

## Executing the function

To run/execute the function, we must call it somewhere in our code. In general, this happens when a specific criterion is matched, but let's just run it as is.

```python
def foo():
	print("Bar")

foo()
```

When we run our code now, it returns `Bar`

## Passing and returning data

Having a function that prints out something is not convenient so let's see how we can give it data and return something.

Let's say we want to make a function that multiplies a number by itself and returns the output.

Meaning, if we put in the number 5, it should run `5x5` and return `25`.

```python
def multiply(number):
    return number * number

print(multiply(5))
```

Running this code will indeed return `25`.

We can easily have the function accept multiple arguments like so:

```python
def multiply(number, multiplier):
    return number * multiplier

print(multiply(5, 10))
```

This will return `50`.

And one cool thing we can do is send the arguments based on their key value like this.

```python
multiply(number=5, multiplier=2)
```

You might not know how many arguments you're expecting in some cases, and you can prepend the argument with an asterisk (\*).

```python
def feed_animals(*animals):
    print(animals)
    print(animals[1])

feed_animals('Cow', 'Chicken', 'Goat')
```

Which will return:

```text
('Cow', 'Chicken', 'Goat')
Goat
```

There are some more additions to functions, but this covers the basics for Python functions.

### 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)
6 Machine Learning Real-World Example [infographic]
Tags: ai, machinelearning, mobile
Published: 2021-05-26 06:31:46

For the vast majority of us, concepts like Machine Learning and Artificial Intelligence are still alien. Most people who come across these terms for the first time react with mixed feelings of skepticism and intimidation.  

How can we make machines learn and execute jobs meant for humans?  What really explains an entire industry bent upon making machines behave like humans? 

While these questions are important and call for discussion, we can easily do away with much of the skepticism. That is if we are willing to look at some real-world applications of **Machine Learning and Artificial Intelligence.** 

With the help of this infographic, we show you some ways in which Artificial intelligence and deep learning are turning wheels across industries. 
[Watch the Infographic here.](https://imgur.com/gallery/KsZ8iED)
(For more info visit us)[https://darkbears.com/contact]
What Is The Way To Send Funds From Apple Pay To Cash App?  
Tags: applepaytocashapp
Published: 2021-05-26 06:25:38

There is nothing to worry if you are looking to know about the way to way to transfer money from your Apple Pay To Cash App account. All you need to do is to make proper utilization of the Cash app support if you are not aware of the right way to do the same.  	
https://www.experts-support.com/blog/transfer-money-from-apple-pay-to-cash-app
AWS SQS Case Study: Oyster.com
Tags: aws
Published: 2021-05-26 06:23:37

<h3>Oyster.com</h3>

Oyster, a NewYork based company is known for it's unfiltered reviews of destinations which includes hundreds of images taken by the Oyster team that visits the location to check the cleanliness and locality, also untouched images submitted by the visitors.

<h3>AWS SQS</h3>

Amazon Simple Queue Service is a distributed message queuing service introduced by Amazon.com in late 2004. It supports programmatic sending of messages via web service applications as a way to communicate over the Internet. 
[source: wikipedia]

<h3>The First Migration</h3>
When Oyster started dealing with a million of high quality images, they decided to migrate from on-premises to Amazon S3 in 2010, as they found S3 to be a cost-effective solution for their enormous high quality images.
One of the major challanges faced by Oyster was reprocessing their images a few times each year, to update the copyright year, change the watermarks or change the format of the image for mobiles and tablet devices.

<h3>Why AWS?</h3>
"We were already using Amazon S3 to store the images, so using Amazon Elastic Compute Cloud (Amazon EC2) to process the images was a natural choice,”
- Eytan Seidman (Co-founder and Vice President of Product, Oyster)
[source:aws.amazon.com]

Using AWS the bulk of the processing job has been shifted to the cloud. Oyster is using a customised AMI with EC2. The company connect to AWS S3 and AWS SQS using boto, a Python interface to AWS. The images are processed using ImageMagick software available in the custom AMI.
AWS EC2 and AWS SQS are combined and used in an integrated workflow to generate the desired sizes of images. AWS SQS is used to communicate the photos that need to be processed and the status of the jobs.

<h3>Major Benefits</h3>
<ul>
<li>95% improvement - Oyster's old environment required 400 hours to process one million photos, which drastically came down to 20 hours.</li>
<li>Straightforward Documentation and useful dashboards.</li>
<li>Reduce in-house hardware expenses by repurposing two of it's old servers</li>
<li>Cost effective, efficient scaling & more time to focus on other things</li>
[source: aws.amazon.com]

<h3>Thanks for reading, see you in the next blog!</h3>
Building a Telegram Bot with node.js in 10 minutes
Tags: telegram, node, javascript, bots
Published: 2021-05-26 03:30:36

---
title: Building a Telegram Bot with node.js in 10 minutes
published: true
description: Video tutorial of a very basic Telegram Bot using Node.js, JavaScript and Telegram's Bot API that teaches you the basics of building a bot
tags: telegram, nodejs, javascript, bots
//cover_image: https://direct_url_to_image.jpg
---

👋Hello devs! I made a new video tutorial on building bots for Telegram. Hope you enjoy!

{% youtube IlsygSzikOQ %}

### Who is it for?
This tutorial is for javascript / node.js developers who are new to building bots on Telegram's Bot platform.

### What you'll learn
We will go into the very basics of building a bot, including how to:
- create a Telegram Bot using the **Botfather** account
- use ngrok to develop the bot on a localhost
- setup a Telegram webhook
- receive messages from Telegram using a webhook
- sending messages using the sendMessage API

#### Resources
[Telegram Bot API](https://core.telegram.org/bots/api/) 
[ngrok](https://ngrok.com)
[Github repository](https://github.com/pichsenmeister/youtube-build-a-telegram-bot)
Install PHP Insights on a Laravel project
Tags: php, laravel
Published: 2021-05-26 06:15:47

PHP Insights is a great tool for static code analysis, it add a review about your code on four different areas, 

* the code.
* the complexity of the project.
* the architecture of the project.
* and the code style.

it works on any php project, but in a Laravel project there are some custom rules that would help to start to work with the project as soon as posible, here some tips.

## Install the package

```
composer require nunomaduro/phpinsights --dev
```

## Publish config file

```
php artisan vendor:publish --provider="NunoMaduro\PhpInsights\Application\Adapters\Laravel\InsightsServiceProvider"
```

## Run the analysis

```
php artisan insights
```

### Ok, here the tips...

#### See all the advices at once

By default it will show some tips to fix, so if you fix this issues, you can re-run the `insights` command to get more advices to level up some of the four categories that the package review.

if you want to see all tips at once you need the flag `-v`, so the command would be: `php artisan insights -v`

#### Auto fix the issues

There are some cases that would be useful, I did not use this feature because there are some codebase changes that could be  affected, to auto-fix an advice, run this command:

`php artisan insights path/to/analyse --fix`

#### Discard so rules

If you install the package maybe you could see that it marks some Laravel default codebase as it could be change, to avoid issues with the default Laravel codebase and code style of some Laravel packages like `Jetstream` you can set this rules on `config/insights.php` file:

```php
    'exclude' => [
        'app/Actions/Jetstream',
        'HandleInertiaRequests.php',
        '_ide_macros.php'
    ],

    'add' => [
        Classes::class => [
            ForbiddenFinalClasses::class,
        ],
    ],

    'remove' => [
        AlphabeticallySortedUsesSniff::class,
        DeclareStrictTypesSniff::class,
        DisallowMixedTypeHintSniff::class,
        ForbiddenDefineFunctions::class,
        ForbiddenNormalClasses::class,
        ForbiddenTraits::class,
        ParameterTypeHintSniff::class,
        PropertyTypeHintSniff::class,
        ReturnTypeHintSniff::class,
        UselessFunctionDocCommentSniff::class,
        UnusedParameterSniff::class,
        LineLengthSniff::class,
        DocCommentSpacingSniff::class,
        ClassInstantiationSniff::class,
        NewWithBracesFixer::class,
        NullableTypeForNullDefaultValueSniff::class,
        DisallowArrayTypeHintSyntaxSniff::class,
        NoEmptyCommentFixer::class,
        DisallowShortTernaryOperatorSniff::class,
        ForbiddenPublicPropertySniff::class,
        DisallowEmptySniff::class

    ],
```

Here you can see an example of some classes that you can, exclude, add or remove from the analysis.

In this example I exclude some files related to `Jetstream` and `Inertia` packages, but you can add code from more vendors as your project needs, in most of the cases this is correct, because we only need to get a review about our project codebase  performance.

That is all, thanks for reading!
class grammar suport to react hooks
Tags: react, hooks
Published: 2021-05-26 06:09:27

reason: Sometimes OOP is better suited to address work requirements
Because some functions are not reusable enough, the component hierarchy is unclear
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2jb0ulq6zjfxseeor45s.png)

if use oop code:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rmzlr3ozcodoudjq6eyn.png)

this class component only cares about layout and logicless when rendering
In this case. The code is better organized and supports hooks.

Some say that hooks write function component that is prone to confusion,But this is untenable

Hooks are open to support both FP and OOP

So do not say that hooks cause confusion; they are open and have unlimited possibilities
Game of Life with p5 and Svelte
Tags: showdev
Published: 2021-05-26 05:44:40

---
title: Game of Life with p5 and Svelte
published: true
description: A little web app demonstrating Conway's Game of Life
tags: showdev
//cover_image: https://direct_url_to_image.jpg
---

Made a little web app over the last couple of days of Conway's Game Of Life. It uses TypeScript for the algorithm, Svelte for the web app stuff, and p5.js for rendering cells in a canvas element. Hope you find it interesting!

Check it out over at: [cgof.netlify.app](https://cgof.netlify.app/)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iwx14l37d25ylqdolrn2.png)
BE THE SPARK, THAT LIGHTS UP SOMEONE ELSE'S LIFE
Tags: cloudskills, aws, refer2resume
Published: 2021-05-26 05:31:20



Some of us have been really lucky in the pandemic with comfortable work options and job security. But that has not been the case for many. Keeping this in mind, we have created a simple mechanism to connect active job seekers with organizations in order to let talent meet opportunity. 

**For Job Seekers**
Please visit the Talent Board [https://talent.awsug.in/](https://talent.awsug.in/) and ADD your profile. Make sure to update your LinkedIn with contact details and skillsets, and correct the public view settings.

**HR Friends**
Please visit the Talent Board [https://talent.awsug.in/](https://talent.awsug.in/), find the right profiles for the open roles in your organization and click on their LinkedIn url to download their profile as pdf or connect with them directly for CV/resume. Keep visiting the page to get more profiles. 

**BE THE SPARK**
If you are neither a Job Seeker or nor HR, please help spread the word.

Through this step, let us bring more power to the community. 
* Pass this link [https://talent.awsug.in/](https://talent.awsug.in/) to the people who have lost jobs due to pandemic 
* Refer profiles under your company’s employee referral program
* Share this initiative with your HR team to find talent
* Amplify the program on social channels using #refer2resume

**Important Note** 
This is a community driven initiative and we do not collect any personal data or request for money for this program. Our intent is to connect talent with opportunities as a goodwill, and AWS User Group or the Referrer cannot guarantee a job.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/surchexzt2p2n4ksjpgo.jpeg)
Fix Flutter doctor failed due to java.lang.NoClassDefFoundError
Tags: flutter, java, androidstudio, troubleshooting
Published: 2021-05-26 04:35:23

## Trouble

I updated [Flutter](https://flutter.dev/) version to 2.2.0 on my [Arch Linux](http://archlinux.org/) today.
Then I met the error "Android license status unknown." in running `flutter doctor` for the first time. It seemed strange because I had already run it with an option: `flutter doctor --android-licenses`. Anyway, there was no way except running it again. And the result was:

![Console error](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hfbhle21hc6ndh6u7baz.png)

Thus, I got "java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema". Puzzled.

## Solution

I solved it via [Android Studio](https://developer.android.com/studio) settings with installation of “Android SDK Command-line Tools”

Start Android Studio.
Go to \[ File \] -> \[ Settings \] in main menus.

![Android Studio main menus](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rb9c1sl7yh9z68n9getg.png)

In Settings, go to \[ Appearance & Behavior \] -> \[ System Settings \] -> \[ Android SDK \].
Activate __"SDK tools"__ tab.
Check "Android SDK Command-line Tools". Click "OK".

![Android Studio Settings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/afqj6plygjnc70x6lg7y.png)

Go on.

![Android Studio Android SDK](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s07zvvc6d5m1tctxmmxr.png)

The command-line tools will be installed.

![Confirmation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u41pjx95rqstffrotdhs.png)

Finished when Finsh button is activated.

### Acknowledgment

Many thanks to [Github](https://github.com/) [Flutter](https://github.com/flutter/flutter) issues ([51670](https://github.com/flutter/flutter/issues/51670) / [56778](https://github.com/flutter/flutter/issues/56778)) and [ぶるー](https://zenn.dev/captain_blue)'s [zenn.dev post](https://zenn.dev/captain_blue/articles/flutter-android-licenses-classnotfound).

## Result

`flutter doctor --android-licenses` printed the process had been successful.

![Successful](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4f1ithf1fq2a6mz7v45s.png)

Then `flutter doctor`, too 🙂

![flutter doctor completed](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6e5mf6f1ia9w82e5x0yt.png)
Deploy a Simple Website Using Github Pages
Tags: github, opensource, html, css
Published: 2021-05-26 04:21:05

__So what is github pages?__

Github pages is a feature in github that allows you to deploy static webpages.

__How do I do it?__

Its actually really simple, lemme walk you through it:

*Step 1:*
Make a github repository.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/354sjiujx2f8r0mewjic.png)
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/li8vnf9gncb3jjp0tq0n.png)
  

*Step 2:*
Upload a simple .html page with the name as index.html. It is important to note that the name of the web page **MUST** be index.html
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/paxf1lh2d778q4pxep17.png)
and then commit the change. 

*Step 3:*
Go to 
Repository settings -> Pages.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ujq5x5y5zy9eovfc4fan.png)
 
*Step 4:*
Set the branch to main and save.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9oxqqggpc5xkbzhb0sue.png)
You will see a "<url> is ready to be published."
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/km78ehpqpri6fw0420zh.png)
 

In a few minutes, your website will be ready to view!
And that's it, 4 simple steps and then you have you first website deployed using gitub pages.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uwb6hf0iqz2qmxfikp9l.png)
Connect with me on [Linkedin](https://www.linkedin.com/in/pranav-viswanathan-7976711b7/)
View my [Github Page](https://github.com/PranavViswanathan)
What does Open-Source mean?
Tags: opensource, github, git, beginners
Published: 2021-05-26 04:16:06

Open-source software(OSS) is computer software that is released under a license in which the copyright holder grants users the rights to use, study, change, and distribute the software and its source code to anyone and for any purpose. Let me put it in simpler words, open source is sharing your code with the world and receiving help/modifications from developers all around the globe. Now you might be thinking, it would become messy. Well, no. If you are the repository manager, you get a chance to choose which changes you want to see in your project and would help you out. And you can also revert back the changes if you don't like them. Sounds interesting, doesn't it?

Some open source softwares are Microsoft's Visual Studio Code, code editor, Mozilla Firefox, the web browser, MySQL, open source database management software and many others.

Open-source software may be developed in a collaborative public manner. Any one can collaborate and make pull requests but make sure they are genuine. You can use GitHub, which offers the distributed version control and source code management functionality of Git, to be a part of the open source community. Other options are GitLab, Bitbucket, etc.

Keep Learning! Keep Coding!!