teleren/devto huggingface dataset:
How Machine Learning Works
Tags: machinelearning, machine
Published: 2022-03-21 07:40:18

When you input a lot more data into a new machine, this can help the particular algorithms teach the particular computer, thus enhancing the delivered outcomes. When you inquire Alexa to try out your preferred music station upon Amazon Echo, the girl will go in order to the station a person played usually. A person can further enhance and refine your own listening experience by simply telling Alexa to be able to skip songs, modify the volume, and even many more probable commands. Machine Understanding and the speedy advance of Man-made Intelligence makes this specific all possible.
[Machine Learning certification](https://www.igmguru.com/machine-learning-ai/machine-learning-certification-training/) is undoubtedly, one particular of the almost all exciting subsets involving Artificial Intelligence. That completes the process of listening to be able to advice from files with specific advices to the equipment. It’s important to be able to know what makes Equipment Learning work and even, thus, how that works extremely well in the particular future.

The ML process begins with inputting coaching data in to the chosen algorithm. Training information being known or even unknown data in order to develop the ultimate Machine Learning modus operandi. The sort of training files input does impression the algorithm, together with that concept is going to be covered further more momentarily.

New source data is provided into the device learning algorithm in order to test whether or not the protocol works correctly. The particular prediction and outcomes are then examined against each additional.

When the prediction in addition to results don’t complement, the algorithm is usually re-trained multiple periods until the information scientist gets the particular desired outcome. This particular allows the device learning algorithm in order to continually start studying on its very own and produce the particular optimal answer, progressively increasing in reliability over time.
Best Pythonic youtubers
Tags: python, beginners, tutorial
Published: 2022-03-21 05:48:46

most of the time we have td o use book, relevant blog article or YouTube video for learn something new. if I try to refer book I feel like it's kind of old-school way. not kind of, almost. blog is also give same feel and boring. now a days it's very easy to find video tutorials from youtube, because it's host free and side-hustle for content creators. most of them try to do basic stuff and **few of them trying to create content out of the box. so this is the list, best pythonic YouTubers I found.** 

### Mcoding
person behind the channel is James Murphy, from united state and he is try to do combination of mathematics and python. ( because he is mathematics Ph.D holder ). if you follow this guy, you can catch educational videos every tow-weeks. [link to channe](https://www.youtube.com/c/mCodingWithJamesMurphy)


###CSDojo
former google employee YK ( don't know his real name ) run this channel. he is originally from japan and now bass on Canada. now a days he's disappeared tho this channel have incredible content about data structure and algorithms. [link to channel](https://www.youtube.com/c/CSDojo)

###NeuralNine
even thought at anytime this guy not mention his name his actually  brilliant person compare with other you tubers. because he is trying to do what others not to do. with his *build a brain* slogan he post video every week or twice per week and each video he introduce new module or package ( but existing ) for python beginners. what he every time do is go deep in to selected topic and explain what he doing at once. [link to channel](https://www.youtube.com/c/NeuralNine)
### 

if you have any greet suggestions just comment out. see you later
[Vite Plugin] Jump to local IDE source code while click the element of browser automatically.
Tags: vue, vite, github, javascript
Published: 2022-03-21 06:46:47


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/on0qsu346ek97kiqa4h1.gif)

[vite-plugin-vue-inspector](https://github.com/webfansplz/vite-plugin-vue-inspector)
Day 18/100; 100 Days of Code
Tags: javascript, beginners, codenewbie, devjournal
Published: 2022-03-21 06:35:48

Continued working on weather app today, but I was still following a tutorial. Someone suggested on a previous post that I should try to build without using a tutorial.

I think this is a great idea and better for immersing myself into the language. So I will try this, but with something even smaller.

until next time
My Colleague Got Fired for Drinking Out All the Coffee
Tags: lifelessons, workplace, softwaredevelopment, programming
Published: 2022-03-21 07:36:50

---
title: My Colleague Got Fired for Drinking Out All the Coffee
published: true
date: 2022-03-21 06:17:42 UTC
tags: lifelessons,workplace,softwaredevelopment,programming
canonical_url: https://javascript.plainenglish.io/my-colleague-got-fired-for-drinking-out-all-the-coffee-1779d344880b
---

[![](https://cdn-images-1.medium.com/max/2548/1*0VApwZHr3guL094Ajr2hXQ.png)](https://javascript.plainenglish.io/my-colleague-got-fired-for-drinking-out-all-the-coffee-1779d344880b?source=rss-b970c961c4e1------2)

And I Was Watching It Happen From the First Row

[Continue reading on JavaScript in Plain English »](https://javascript.plainenglish.io/my-colleague-got-fired-for-drinking-out-all-the-coffee-1779d344880b?source=rss-b970c961c4e1------2)
React: Components
Tags: react, component, tutorial, beginners
Published: 2022-03-21 06:02:47

When first learning React, a key concept you’ll encounter are components. These are essentially building blocks for your app. They help to make your code “dry”, dynamic and are an essential part of what developers like to call SOC, or separation of concern. To truly understand how powerful components are, it’s important to know why we use them. 

**What is Dry Code?**

The term “Dry” code refers to the principle that _it is both a bad practice and a waste of time to repeat yourself in coding_. The excess amount of code we get when we overwrite can lead to a major decrease in readability and more room for bugs. Instead we prefer to keep out code D.R.Y, and one way we can do that is with react components. With these components, we can create reusable functions that can be referenced and passed down to cut out extra wording. This helps to make our code dynamic, which by definition is “characterized by constant change, activity, or progress”. In development, this just means, “can your code adapt to change?”. With components and props, this is very possible, especially with the help of dry code. 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k9rvr5edolx74tyenv1u.png)

**What is SoC?**

In Development, this is the principle of separating your program into different sections based on what they accomplish. In theory, it’s possible to have everything in one place, but that would probably be chaotic. The readability of that app would be exhausting and it would be so hard to debug. Instead, we use components to separate our concerns and focus solely on them. This is very important here, because we wouldn’t want to code our filter feature in the same place we’re adding a form/add/delete feature. This lest us organize in a way that is beneficial for us and whoever else will read our code. After we’ve accomplished what we want, we can simply call this component in our parent app to render it correctly.  Separation of concerns is such an easy way to avoid confusion and make an app more organized. 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2edo3bnowtkvpdyo1uss.jpg)
**What advise do you wish you knew when starting with react? Open to feedback.**
check out my github to see some of my react apps:
https://github.com/robinlashae1
A Basic guide to Active Record Commands
Tags: activerecord, guide, cheatsheet, beginners
Published: 2022-03-21 05:55:43

When transitioning to Ruby’s active record, the commands can be a little long winded and tedious. Here i have provided a cheat sheet to basic AR commands

**Classes**

When working with Active Record and making classes, often we will have to write methods, below are some of the basic methods you will most likely encounter along. 

`.column_names`
Retrieve a list of all the columns in the table

`.create`
Create a new entry in the database and saves it

`.all`
Return all the desired instances of the class from the table 

`.find`
Retrieve an instance from the database by id

`.find_by`
Find by any attribute(ie. name)

`.Attr_accessors`
You can get or set attributes of an instance

`#save`
save changes to the database

`.Find_or_create_by`
Finds the first instance with the given attributes, or creates a instance with the attributes if one does not exist

**Rake**
Using rake commands can sometimes get a little confusing, especially with the bundle exec prefix, these are the task you’ll likely encounter most

Create migration
`bundle exec rake db:create_migration NAME=`

Migrate
`bundle exec rake db:migrate`

Create Table
```
create_table :modelName do |t|

      t.string :name

      t.string :genre

      t.integer :age

      t.string :hometown

end
```

Check status
`bundle exec rake db:migrate:status`

Rollback
`bundle exec rake db:rollback`

Running a seed file
`bundle exec rake db:seed`

or to replant with new data 
`bundle exec rake db:seed:replant `

**Looping faker gem**

Another amazing tool we can use is the faker gem, once we have created our migrations and tables, we can use this gem in the seed file to fill our tables with dummy data. This is particularly useful when wanting to test methods

```
50.times do

  # create a movie with random data

  Movie.create(

    title: Faker::Movie.title,

    genre: Faker::Movie.genre,

    ticket_price: rand(0..20) # random number between 0 and 20

  )
```

end

Though this isnt everything, hopefully this will help you when diving into ORM!! Happy coding!
check out my github to see how i utilize these:
https://github.com/robinlashae1
Terminal kommandalari | PART 5
Published: 2022-03-21 05:33:06

#### Bu post Terminal kommandalari PART 4 ning uzviy davomi desak ham bo'ladi

- `g++ main.cpp -o dastur && ./dastur`

main.cpp nomli faylni kompilatsiya qiladi va darhol ishga tushiradi

- `alias run='g++ main.cpp -o dastur && ./dastur'`

yuqoridagi komanda uchun **run** deb yozish kifoya. Bu oraqli siz shu papkadagi main.cpp faylni kompilatsiya qilib darhol ishga tushirib beradi!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aolrn4opir80u8m3lods.jpg)
Binary search in simple phrase.
Tags: dsa
Published: 2022-03-21 05:28:34



binary search is something which divides something in half every time it fail's.
as if the search failed to find any thing then if divide's its array into half and and half and half.
unless it finds the value or array becomes zero.

//visiable presentation.
![Binary search reprentation](https://miro.medium.com/max/912/1*x_PvngvXSCEsMkAU5vIknQ.jpeg)
// random array
**let array = [1, 2,3,4,5,6,7,8]**
// let's make binary function which take and arrays and target to it's value.

**const binary_search_function = (`array`, `target`){**
   //as we have to check find starting to ending of array.
   //we start with 0 and this end of array
   **let start = 0**
// as array will start from **0** and length function also count's **0** as **1** so we divide it' by **1**
   **let end = `array`.length - 1**
   //this will count middle of array.
   **let middle = (start+end)/2**
      **while(`array`[middle] !== target && start<=end){**
			**if(target< `array`[middle]) {** 
			    **end = middle -1**
**} else {** 

**start = middle +1**
**}**
**middle  = (start+end)/2**

**}**
**return array[middle] === target 	? `'found at index ${middle}-> ${target}'` : "not found"** 
**}**


**console.log(binary_search_function(array, 12)** 
//found at 9-> 12

**console.log(binary_search_function(array, 123)**
// not found



[`connect on twitter`](https://twitter.com/AbhayPrajapati_)
Applications I Use Everyday
Tags: weeklyretro, productivity, remote, mylife
Published: 2022-03-21 05:07:10

With only 24 hours in a day, staying productive in a digital world is essential. Doing so can be hard without the proper tools and knowledge. Here is a list of applications I use that make my life more pleasant and easy:

[**Libby**](https://www.overdrive.com/apps/libby)
![Libby book covers](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7nwzxftr314tfcz6ed78.png)

This is my favorite reading app that lets you access ebooks, audiobooks, etc. from your public library for free. I am able to listen to audiobooks while doing other tasks or during a commute.

[**Soothing Pod**](https://appadvice.com/app/meditation-by-soothing-pod/1508720931)
This meditation app is 100% free, does not include any ads nor limits content through subscriptions. Meditation every morning or afternoon allows me to calm my mind and refocus on the tasks that need to get finished.

![Soothing Pod Screenshots](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5toixt1nb4vogqnkm2hu.png)

[**Flora**](https://flora.appfinca.com/en/)
This little app downloads on your phone, plants real trees, tracks your to-do lists with time spent, and makes you stay off your phone during work hours. In addition, I put my phone on a specific focus mode when I have Flora running to help with the unnecessary notifications.

![Flora lightbulb](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ocpd576jojn4esm6u0mq.png)

**Spotify**
Every work session needs some upbeat songs or relaxing music to go along with it. What else helps you get through all the debugging and documentation you have to read *and* write?

**Trello**
Having a board for each side project I have currently in progress is a life-saver! This way I can always go back and add **new features** or changes as new ideas come to mind. It is also satisfying moving a task from "in progress" to "done".

Currently, I like the [Simple Project Board](https://trello.com/templates/project-management/simple-project-board-6QW0Ciu8) template. I also like the idea of the [Productivity Template](https://trello.com/templates/productivity/productivity-template--czpYgC0I) and the [Productivity Workflow](https://trello.com/templates/productivity/productivity-workflow-2ydu8DKc) Template.

[**Obsidian**](https://obsidian.md/)
This note taking app is one I recently discovered and want to add to my list of applications. I found other users saying it is one of their most valuable tools.
Step-by-Step Guide to Building Your First Ionic App with Cordova on Windows
Tags: ionic, android, angular, java
Published: 2022-03-21 04:23:53


_One Question - Did you noticed that building apk with cordova have smaller size rather than use capacitor ? know me your feedback !_

## **How to build a Ionic app using Cordova in windows**
<br>

**Prequsites :**

1.  **Install `Andorid studio, JDK (preferd version 1.8), gradle`.**

    ```
    Tricks

    After installed Android studio build a native hello world app and run it through Emulator or physical device for the first time. It will automatically gives you the support of installing gradle & reduce much time to installing & finding gradle version compability.
    ```

1.  **Checking this info you can run `java --version`**
    ```
    java version "1.8.0_321"
    Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)
    ```
1.  **After install ` JDK` you will get a path in your machine like this `C:\Program Files\Java` or `C:\Program Files (x86)` you able to see this two folder path.**

    ```
    jdk1.8.0_321
    jre1.8.0_321
    ```

1.  **Update environment variable**

    
        // Add these in User Variables :

        ANDROID_HOME : C:\Users\theanam\AppData\Local\Android\Sdk
        ANDROID_PLATFORM_TOOLS : C:\Users\theanam\AppData\Local\Android\Sdk\platform-tools
        ANDROID_TOOLS : C:\Users\theanam\AppData\Local\Android\Sdk\tools
        JAVA_HOME : C:\Program Files\Java\jdk1.8.0_321

        //Add these in System Variables path:

        C:\Program Files\Java\jre1.8.0_321\bin  // Otherwise you will get Jarsigner is not recognized internal or external command

        C:\Program Files\Java\jdk1.8.0_321\bin // Otherwise keytool is not recognized internal or external command

        C:\Program Files (x86)\Common Files\Oracle\Java\javapath
        C:\gradle-7.4.1\bin  // If path not found installed it.
        

    <br>

### **Ionic App build stage & Signing unsigned apk**

<br>

1. **Go to the `App Folder`**
2. **Open `terminal` in that folder.**
3. **Run `keytool -genkey -v -keystore HERE_YOUR_KEY_NAME-key.keystore -alias HERE_YOUR_APP_ALIAS_NAME -keyalg RSA -keysize 2048 -validity 10000`. You will find a keystore file is generated in your app folder.**
4. **Run `ionic cordova build android --prod --release --verbose`**

   ```
   After successfully executed this command you will get a message like this,
   Built the following apk(s):
       D:\xyz\ion-cordova\platforms\android\app\build\outputs\apk\release\app-release-unsigned.apk

   It generate an unsigned apk that you never install in a phone so need to sign this apk.
   ```

5. **Run ` jarsigner --verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore HERE_YOUR_KEY_NAME-key.keystore "D:\xyz\ion-cordova\platforms\android\app\build\outputs\apk\release\app-release-unsigned.apk" HERE_YOUR_APP_ALIAS_NAME` it will start signing this apk.**


Now you are happy to go with the APP.


Signing Off
Sefat
Request Handler Design
Tags: csharp, api
Published: 2022-03-21 04:20:50

This post is a little abstract, not a tutorial or anything. I was rewriting the the class in Impart for the handling of Rest API requests. This led to a a bit of a fork in how I should design the handler.

The idea I previously had was:
(covered in [this post](https://dev.to/pixelatedlagg/hosting-a-rest-api-using-impart-3jni))

```cs
using Impart;
using Impart.API;

public class Program
{
    static void Main(string[] args)
    {
        Rest r = new Rest();
        r.OnRequest += OnRequest;
        r.Start();
    }
    static void OnRequest(APIEventArgs e, RestContext c)
    {
        Json j = new Json("Impart", ("Developer", "William Olsen"), ("Current Downloads", 519), ("Current Stars", 8));
        c.Respond(j);
    }
}
```

Obviously this doesn't even begin to account for the URL routing. For example, if I wanted to send a specific JSON response at `localhost:8080/test`, I am unable. This basically defeats the entire point of creating an API.

The first idea for a fix that comes to mind is to simply include the URL information in the `APIEventArgs` or `RestContext` objects. That would however, lead to the developer writing something like this:

```cs
static void OnRequest(APIEventArgs e, RestContext c)
{
    switch (c.Url)
    {
        case "/test":
            //the user accessed localhost:8080/test
            break;
        case "":
            //the user accessed localhost:8080
            break;
    }
}
```

Now me being the kind of person who didn't add slash commands using Discord.Net because they specifically entailed using giant switch statements, this didn't feel right.

Studying popular C# API hosting libraries, it seems like the clearest fix is to separate each request by method. 

But how would one go about doing this?

The answer is using `System.Reflection` and custom attributes. A little warning: the code to analyze these methods is very, *very*, ugly, so beware.

A quick implementation would look like this to the developer:

```cs
[RestRequest("/test")]
public void RequestHandle1(APIEventArgs e, RestContext c)
{
    //the user accessed localhost:8080/test
}

[RestRequest("")]
public void RequestHandle2(APIEventArgs e, RestContext c)
{
    //the user accessed localhost:8080
}
```

I realize that this is incredibly similar to ASP.NET, but whatever. The invocation of the class inheriting `Rest` will still be the same though.

Hopefully this improved `Rest` class will be finished in time for Impart v2.0.2 when I (eventually) release it at the end of March.

Additionally, I will either update the post I mentioned earlier, or create one about how to host a REST API when the update is released.
Change Date Format Using Carbon In Laravel
Tags: laravel, laravel8, php, carbon
Published: 2022-03-21 03:27:59

In this tutorial, we will see change date format using carbon in laravel, many times we have requirements to change date format in the controller as well as blade file in laravel. So here I will show you how to change the carbon date format using laravel 8.

Carbon package provides many functionalities to users like date format, add day, subtract day, and much more but here we will see change the date format in laravel. 

In this laravel 8 change date format example, we will see many different types of date formats or change laravel date format, carbon change date format.

So, let's see laravel 8 change date format using carbon

---

> **_[Read More : Change Date Format Using Carbon In Laravel](https://techsolutionstuff.com/post/change-date-format-using-carbon-in-laravel)_**
Configuring multiple data sources with Spring Boot 2 and Spring Data JPA
Tags: java, spring, jpa, datasources
Published: 2022-03-21 03:25:28

Link to the story: https://mmafrar.medium.com/configuring-multiple-data-sources-with-spring-boot-2-and-spring-data-jpa-8e236844e80f

I’ll be covering how to configure multiple data sources with Spring Boot 2 and Spring Data JPA in this tutorial. You need to have a basic understanding of Spring Boot to get started.

Cover Image: Photo by [Julia Lobkova](https://unsplash.com/@konecocuki) on [Unsplash](https://unsplash.com)
Go build in the Cloud 1
Tags: architecture, framework, security
Published: 2022-03-21 02:56:52

When you build on AWS,there are design principles and best practises that can help in building efficient workloads.The Well Architected framework captures this beautifully:The Well Architected framework defines architectural best practices for designing and operating reliable, secure, efficient, and cost-effective workloads in the cloud and help in benchmarking this practices and process.There are six pillars that  exist in the framework this include

- Operational Excellence

- Security

- Reliability

- Performance Efficiency

- Cost Optimization

- Sustainability
A pillar that should be given priority is security,building secure workloads is critical for business solutions and organisation.
Implementing the least privilege is pertinent in ensuring a secure foundation.
The need to implement security into every layer cannot be overemphasised as this is one of the advantages in building in the Cloud.
Automated security measures count towards ensuring workloads are secure,encrypting data in transit and rest boosts the confidence of the organisation using the solution.
This ensures that data is accessed by those authorized and authenticated to do so making incidence management easier and swifter.
A quick way to deduplicate arrays in JavaScript
Tags: javascript, arrays, tips, set
Published: 2022-03-21 02:57:17

Need an easy way to deduplicate an array of numbers or strings in Javascript? Use a Set!

Here's how it's done in its simplest form:

```js
const nums = [1,1,1,3,3,5,8,9,9,9,9,9,10]
const uniqueNums = [...new Set(nums)] 
// returns [1,3,5,8,9,10]

const strings = ['JavaScript', 'JavaScript', 'React', 'Node', 'Node', 'HTML', 'CSS']
const uniqueStrings = [...new Set(strings)] 
// returns ['JavaScript', 'React', 'Node', 'HTML', 'CSS']
```
How does this work? To put it simply, each item in a set must be unique. By spreading the Set into an array, you create a new array with only those unique items.

Some caveats: In this simple form, it will not work with nested arrays or arrays of objects, since they are only duplicates in appearance -- Behind the scenes, they're new copies and thus will not be purged out by using this method. You can get creative to figure out how to do this (reduce would work here!), however it's always better to handle this on the back end!

[Learn more about Sets here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)