teleren/devto huggingface dataset:
Blog explaining your Granny about Machine Learning 
Tags: machinelearning
Published: 2020-06-02 07:26:43

Ok, so what is Machine Learning? Well, I hope I am able to explain it to you in a way that's easy to understand.

__Machine Learning__ is a set of methods which enables the computer to take decisions or draw out conclusions without us having to guide it.

Safe to say, a feature that __imitates and adapts human like behaviour__.

Now, granny, you would ask me how does a machine imitate us. A very valid point to ask. So just like how we humans would see, observe our surroundings and try to come up with the best possible solutions to the situations, or probably observing what others did in similar situations, or even to just learn from various past experiences, machines also execute it in the same way.

####There are two types of ML Techniques:
i) Supervised Learning  
ii) Unsupervised Learning

####Supervised Learning:
Finds patterns (and develops predictive models) using both, input and output data.
All Supervised Learning techniques are a form of either __Classification__ or __Regression__.

#####1.Classification:

Classification is used for predicting discrete responses.
For example: Will it rain tomorrow or not?

#####2.Regression:

Regression is used for predicting continuous responses.
For example: Weather forecast, etc.

####Unsupervised Learning:

Finds patterns based only on input data. This is useful when you’re not quite sure what to look for(output).


####Some common applications of Machine Learning that you can relate to:

1. Your personal Assistant Siri or Google uses ML.
2. Weather predictions for the next week comes using ML.
3. Win Predictor in a sports tournament uses ML.
4. Medical Diagnosis dominantly uses ML.

So granny, that's Machine Learning for you.
What is HTTP? How HTTP Works: Explained with Example!
Tags: internet, tutorial, codenewbie
Published: 2020-06-02 07:11:04

{% youtube 8DywnvsnkOE %}

In this tutorial, we will discuss What is HTTP? How HTTP works. 

Content:
----------------------------------------
00:00 Welcome
00:55 What is HTTP?
02:32 Evolution of HTTP.
04:21 How HTTP/1.0 works.
06:35 How HTTP/1.1 works.
08:31 How HTTP/2 works.
11:30 How HTTP/3 works.

Github: https://github.com/codingx01/nodejs-production-demo
Twitter: https://twitter.com/TechParida
Linkedin: https://www.linkedin.com/company/codingx/
Facebook: https://www.facebook.com/codingx
Instagram: https://www.instagram.com/coding.x

Please do like, share, comment, and subscribe.
Preserve The Fresh Charm Of Wedding With Wedding Photographers In Cape Town

Published: 2020-06-02 07:08:57

Wedding Photography is one of the most important portions of your wedding. It not only captures your memories but tells you the story of your wedding day. We can say wedding photography is the art of capturing your memories forever and it remembers little things long after you have forgotten. So if you want to confine your special wedding moments uniquely, honestly, and exquisitely you need to hire a Professional Wedding Photographers in Cape town, who can offer you the best feeling and authentic memory of your wedding day and make you smile and cherish remembering those sweet memories throughout your life.
Generally, Cape Town is one of the top wedding destinations replete with its stunning beaches, rolling mountains, and lush green wine lands. Here you will get the most interesting and romantic place to make this important day more memorable and relish. But to capture and translate this special moment into meaningful photographs you need a professional Wedding Photographers in Cape town who can help you incarcerate this real essence and moments of these special events and make it memorable for life long.
In Cape Town, you can get lots of amazing photographers but choosing one to suit your needs might seem daunting. So, in this case, a professional Wedding Photographers in Cape town can release your hassle and offer you the best photography service that you are longing for.
Why do you opt a professional Wedding Photographers in Cape town?
A professional Wedding Photographers in Cape town always strive to capture your dreams and turn them into reality. They are very skillful to push the boundaries of creativity and continue to think outside the box and freeze your loving and soulful moments that appear once in a lifetime.   
Backed with rich years of experience they take pride to be a pioneer in this service and help you create moments that you will remember forever. Whether you are planning to capture your dream wedding or your family memories they take pride to share those moments with you and make the clients satisfied with their photography needs.
They work closely with all the clients to create a cherished experience and turn those magical moments to natural, organic, and truly beautiful photos. They believe that everyone's love story is beautiful and feel honored to tell your story in the most compelling way possible.
If you are looking for Wedding Photographers in Cape town, you can visit ameerismailphotography.com to get the best photography service in affordable pricing.
How to set up a Node.js application for production on EC2 Ubuntu: Hands-on!
Tags: ubuntu, tutorial, node, codenewbie
Published: 2020-06-02 07:08:49

{% youtube l7KlkVyWemc %}
In this tutorial, We will set up a node.js application for production on EC2 ubuntu 18.04. We will use Nginx as a reverse proxy and PM2 as a process manager.

Content:
-------------------------------------
00:00 Welcome
01:12 Connect to Server
01:27 Installation of NGINX
02:34 Setting Up Nginx as a Reverse Proxy Server
04:29 Installing Node.js
07:02 Creating a Node.js Application
07:40 Installing PM2


Github: https://github.com/codingx01/nodejs-production-demo
Twitter: https://twitter.com/TechParida
Linkedin: https://www.linkedin.com/company/codingx/
Facebook: https://www.facebook.com/codingx
Instagram: https://www.instagram.com/coding.x/


Please do like, share, comment, and subscribe!
What game series do you want to see get a triquil (third installment)?
Tags: game, question, watercooler
Published: 2020-06-02 07:04:57

We want to see what you think. If you feel inclined to answer, vote [here:<br/>https://twitter.com/QGameware/status/1267699016734834688](https://twitter.com/QGameware/status/1267699016734834688)
{% twitter 1267699016734834688 %}
With that out of the way, I hope you all have a good day!
How to setup Python Flask applications with Gunicorn and Nginx on Ubuntu
Tags: python, tutorial, ubuntu, codenewbie
Published: 2020-06-02 07:00:08

{% youtube o2WA-A67Bks %}
In this tutorial, you will learn How to setup Python Flask applications with Gunicorn and Nginx on Ubuntu 18.04.

Content:
--------------------------------------
00:00 Welcome
00:57 Connect to Server
01:42 Installation of Python Libraries
02:34 Creating a Python Virtual Environment
03:45 Setting Up a Flask Application
06:10 Configuring Gunicorn
09:37 Configuring Nginx for Reverse Proxy

Github: https://github.com/codingx01
Twitter: https://twitter.com/TechParida
Linkedin: https://www.linkedin.com/company/codingx/
Facebook: https://www.facebook.com/codingx
Instagram: https://www.instagram.com/coding.x/

I hope you have learned from this tutorial, please do like, share, comment, and subscribe.
DAY 3:-Exclusive content from WHO API & web-monetization
Tags: gftwhackathon, webdev, webmonetization, react
Published: 2020-06-02 06:55:17

Hello to all,we are working on this project since 20 MAY for few hours a day so this the second last article for our hackathon project next one is our final submission for hackathon project.

Note: For tuning in to this article, please read the first-day/second-day article of this series so you can catch up and be part of our journey.
Let's begin.
So hally fetched news from API and i resolved some bugs in that `ExclusiveContent.jsx` file and i pushed my changes there and hally able to get news title content and links also and hally did styling also mostly work is done by hally.
Check view how news looks/works that we get from WHO API🔽
![FIRST NEWS](https://dev-to-uploads.s3.amazonaws.com/i/j3kji1v23b40vsluliix.png)
![Second Part](https://dev-to-uploads.s3.amazonaws.com/i/kj633ilt38s55jcev67a.png)


Now last thing remaining is web-wallet and then we are going to deploy our final project submission. thank you guys all the best to all have a good days .😊👋
#Authors 
* hally 
* krishna
# Team Members
* Follow Hally on Twitter👉[Hally](https://twitter.com/_itshally)
* Follow Me on Twitter👉[krishnadevz](https://twitter.com/_itshally)
* Follow hally on Dev.to👉[hallyDevto](https://dev.to/itshally)
* Follow hally on Github👉[hally](https://github.com/itshally)
* My Github 👉[krishnadevz](https://github.com/krishnadevz)
ANDROID TELEGRAM CHANNEL - All you need to become Top Class Android Developer
Tags: android, tutorial, computerscience, codenewbie
Published: 2020-06-02 06:54:41

<p><strong>An Android Telegram Channel that smoothens your journey of becoming a Top Android Developer with finely written tutorials and even better real-time projects.</strong></p>
<p><span style="font-weight: 400;">There are 3,500,000,000 smartphone users across the globe at present and out of these, a staggering 74% of which are Android users only. <strong>And this is enough to depict the supremacy of Android OS in the world of smartphones.</strong></span></p>
<p><a href="https://t.me/LearnAndroidDev"><strong><em>Android Telegram Channel for all the Android Aspirants out there</em></strong></a></p>
<p><span style="font-weight: 400;">This also indicates that Android App development ain&rsquo;t going out of fashion anytime soon or probably never. <strong>Android Developers will always be in demand no matter what.</strong> But this also introduces a fierce competition among Android App Developers.</span></p>
<p><a href="https://t.me/LearnAndroidDev"><strong><em>Be an Android Developer in the best possible way</em></strong></a></p>
<p><span style="font-weight: 400;">To be one and be able to make through this competition, you need to be skilled enough and even more than that. <strong>Being an Android Developer is a sure shot guarantee of a really bright career but you need to put those extra efforts as well.</strong></span></p>
<p><span style="font-weight: 400;">So, keeping all of these in mind, we bring you <strong>Telegram Channel that makes sure that you end up being a top class Android Developer.&nbsp;</strong></span></p>
<p><span style="font-weight: 400;">This channel makes it sure with the finest of Android Tutorials available on the internet. <strong>All these tutorials are specially designed by some of the top industry experts out there.</strong></span></p>
<p><a href="https://dev.to/anujgupta/stay-ahead-of-your-friends-with-all-the-latest-technology-trends-43k3"><strong><em>All the Latest Technology Trends at your fingertips</em></strong></a></p>
<p><strong>Thanks for your time!! &nbsp; :-)</strong></p>
Store your git ssh in keychain (and make it persist across logins)
Tags: beginners, git, mac, tips
Published: 2020-06-02 06:38:59

---
title: Store your git ssh in keychain (and make it persist across logins)
published: true
description: quick tip to tell your mac to always use your ssh key to connect to git
tags: #beginners, #git, #mac, #tips
---


Expecially during these times of remote work, I happened to be switching among different devices many times.  I found very annoying that every time I needed to run some git push or pull I was asked for my git credentials.

 I have an SSH key for that!

To use that key you need to add it to your keychain :
```
ssh-add -K ~/.ssh/[your-private-key]
```
This works pretty well, until you restart... If you are on Catalina you have to persistently store the key with a specific configuration:

```
touch .ssh/config
vi .ssh/config
--> i  ( to start typing in the file )
Host *
  UseKeychain yes
  AddKeysToAgent yes
  IdentityFile ~/.ssh/id_rsa
--> ESC (to exit from editing)
:wq  ( to save and close)
```

Credits go to [this answer on Apple.StackExchange](https://apple.stackexchange.com/a/250572) but this issue kept occurring to me and I found myself having to constantly google for it, so I decided to saving it here for future reference.
CSS Calc Function
Tags: css
Published: 2020-06-02 06:23:08

The CSS Calc() function is very useful to mix percentage values with fixed pixels.
We can also use the calc() function to divide into equal sets.

## How to use CSS Calc()?

```css
div {
  width: calc(100% - 50px);
}
```

You can already see here we make the div `100%` and then minus `50px`.

We can use the following:

- Minus (-)
- Plus (+)
- Multiplication (\*)
- Division (/)

So another cool thing we can do is the following:

```css
span {
  width: calc(100% / 3);
}
```

Awesome right! Not the recommended way of making a grid, but it will work!

See the following Codepen.

<p class="codepen" data-height="265" data-theme-id="dark" data-default-tab="css,result" data-user="rebelchris" data-slug-hash="VweZpPj" style="height: 265px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="CSS Calc Function">
  <span>See the Pen <a href="https://codepen.io/rebelchris/pen/VweZpPj">
  CSS Calc Function</a> by Chris Bongers (<a href="https://codepen.io/rebelchris">@rebelchris</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>

### 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)
Two ways of grouping a dataset
Tags: rails
Published: 2020-06-02 06:18:11

## ActiveRecord::QueryMethods#group

omit..

## Array#group_by

It's useful when you want a hash such like
- key: the group id
- value: objects

You can get it by like this

```ruby
Book.includes(:author).group_by{|book| book.author.name }

#=>
{
'Jhon' => [A, D, E],
'Alex' => [B, C]
}
# A,B,..E are Book objects.
```
Only flat file CMS and serverless functions are enough for my needs
Tags: netlify, serverless, serchengine
Published: 2020-06-02 06:16:17

This also obliviate the need to monitor your own database or entrust a third party to do it for you.

Still, you might need some functions you cannot rely on clients' web browser, such as [adding search](https://www.gatsbyjs.org/docs/adding-search/). Downloading indexes to client's machine is expensive and bad for SEO.

So, I use [lunr.js](https://lunrjs.com/guides/searching.html) instead.

I built two essential files on the fly, before starting up a Nuxt server.

- `db.json` created by `JSON.string(glob)`
- `idx.json` created by `JSON.stringify(lunr)`

See, [polv's homepage -- /scripts/init.js](https://github.com/patarapolw/polv/blob/1d569576d26d4332b47592054f2900f7eb9c5571/scripts/init.js)

Do you know that you can rollup a temporary server, potentially needed by `gatsby build` or `nuxt generate`? Such solutions are

- [marmelab/json-graphql-server](https://github.com/marmelab/json-graphql-server)
- [typicode/json-server](https://github.com/typicode/json-server)

I still have an editor / CMS, though; but it specifically targets a flat file folder,

{% github patarapolw/superflat no-readme %}

Did I mentioned that I think [I was wrong in thinking that I need a CMS](https://dev.to/patarapolw/comment/pljm)? The truth is I still need a CMS, but I don't want to monitor a database.

One more thing I need is commenting engine. Indeed, an option is just use Disqus, but in the end, I hosted by own using Remark42, with [a little tweak to make it work with SPA](https://github.com/umputun/remark42/pull/723).

{% github umputun/remark42 no-readme %}

Crossposted from <https://www.polv.cc/post/2020/06/flat-file-cms-and-serverless-is-enough>.
Debugging Mocha tests in vscode 🧪
Tags: vscode, testing, todayilearned
Published: 2020-06-02 06:14:07

# Brief introduction 
{% youtube TDynSmrzpXw %}
Software testing is an action to assess the functionality of a software application and its quality with the intention of finding out whether or not the developed software meets the specified requirements and identifying defects to ensure that the product is free from defects to produce the quality product.

# What is Mocha? It's just a coffee drink?
No, in this context **Mocha is** a feature-rich JavaScript test framework running on **Node.js** and in the browser, **making asynchronous testing simple and fun**. 

Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases, you can see more [here](https://mochajs.org/).

# So, How can I debug my tests in vscode?
#### The simplest thing in the world.

Vscode already comes with debug extension by default in latests versions, you just need to click in the **"prevent bug"** icon or a **"bug with play"** icon, after this click on **cogwheel** icon and select `configure or fix launch.json`.

![](https://code.visualstudio.com/assets/docs/editor/debugging/launch-configuration.png)

Now you can see a file named **launch.json** opened, then you'll paste these lines on its file
```json
{
    "version": "0.2.0",
    "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Mocha Tests",
      "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
      "args": [
        "--require",
        "esm",
        "--require",
        "${workspaceFolder}/your-test-folder/your-setup.js",
        "--reporter",
        "dot",
        "--slow",
        "5000",
        "--colors",
        "${workspaceFolder}/your-test-folder/**/*.spec.js",
        
      ],
      "internalConsoleOptions": "openOnSessionStart",
      "skipFiles": [
        "<node_internals>/**"
      ]
    },
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "program": "${workspaceFolder}/src/yourNodeIndex.js"
        }
    ]
}

```
The first configuration is the **abrakadabra** ✨  for debugging mocha tests in vscode, the second is the most commom configuration for debugging node.js applications, if you aren't familiariazed with this see this video:
{% youtube 2oFKNL7vYV8 %}

After the configuration you can see something like that on run section:

![](https://res.cloudinary.com/practicaldev/image/fetch/s--5kk0csqo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://user-images.githubusercontent.com/3082655/50573829-99274f80-0ddb-11e9-9c70-b88520888678.gif) 

Without tests: 🤬
With tests: 🧘🏾‍♂️


🍻
How to Connect with Amazing TYPO3 Community?
Published: 2020-06-02 05:52:07

Welcome to the TYPO3 Community! Do you want to connect with TYPO3 friends online as well as offline? Here, I would like to guide 10 ways to connect you with the amazing TYPO3 community.

IMHO, the TYPO3 community has lovely, supportive, and friendly people as compared to other OpenSource projects. I’ve been in touch with other communities but personally I just love the TYPO3 community, they are simply loving, welcoming, and helping guys and gals.

Explore how to, 
- Connect with TYPO3 Community 
- Why should you connect with the TYPO3 Community?
- Where can I know future TYPO3 Events?
- How can I Become a TYPO3 member?
- TYPO3 Developer’s Favourite: T3DD
- All-in-One Liked TYPO3 Camps
- Vocal for Local: TYPO3 User Groups (TUG)
- Explore TYPO3 with Sports (T3BOARD)
- Dedicated TYPO3 Official Teams & Sprints
- Business Partnership with TYPO3 Official Partners
- Connect TYPO3 Community at Digital Platforms
- Meet T3Terminal: Your First-Ever TYPO3 Marketplace

Read complete article at - https://t3terminal.com/blog/typo3-community/
entity2sql
Tags: dotnet, sql, opensource
Published: 2020-05-16 10:40:21

---
title: entity2sql
published: true
description: A simple SQL generator
tags: #dotnet #sql #opensource
---
I have always had a strong interest in making small libraries that could facilitate the life of a developer. The most useful libraries are those that allow you to solve recurring problems ( possibly without creating others :) )

For this purpose, some time ago, I created a library that would allow me to generate SQL code from the definition of classes that represented my entity data model. It is not an ORM (complete or micro) but a simple generator of SQL code.

I know that there are already many excellent solutions around, but for me, it was an opportunity to analyze an interesting problem and at the same time have full control of the SQL code that I wanted to generate.

The final result is the following:

    var sqlBuilder = new SQLStatementBuilder();

    var select = sqlBuilder.MakeSelect<User>( o => o.FirstName == "Antonio" || o.LastName == "Di Motta" && o.Age == 150 );
    // SELECT t1.ID,t1.FIRST_NAME,t1.LAST_NAME,t1.AGE,t1.RoleID FROM USERS t1 WHERE (t1.FIRST_NAME = 'Antonio' OR (t1.LAST_NAME = 'Di Motta' AND t1.AGE = 150 ))
    
    var join = sqlBuilder.MakeJoin<User,Role>( (u,r) => u.Role.Id == r.Id );
    // SELECT t1.ID,t1.FIRST_NAME,t1.LAST_NAME,t1.AGE,t1.RoleID,t2.ID,t2.NAME FROM USERS t1 INNER JOIN ROLES t2 ON t1.RoleID=t2.ID

In order to generate the SQL code, I added metadata (by custom attribute) to the classes of the domain model, below an example:

    [TableMap( Name = "USERS" )]
    public class User
    {
        [PKeyMap( Name ="ID")]
        public int Id { get; set; }

        [ColumnMap( Name ="FIRST_NAME")]
        public string FirstName { get; set; }

        [ColumnMap( Name = "LAST_NAME" )]
        public string LastName { get; set; }

        [ColumnMap( Name = "AGE" )]
        public int Age { get; set; }

        [ColumnMap( Name = "RoleID" )]
        public Role Role { get; set; }
    }

    [TableMap( Name = "ROLES" )]
    public class Role
    {
        [PKeyMap( Name = "ID" )]
        public int Id { get; set; }

        [ColumnMap( Name = "NAME" )]
        public string Name { get; set; }
    }

The main classes of the library are SQLStatementBuilder and EntityInfo.
The first generates the SQL code by reading the metadata via reflection, which is a very expensive operation in terms of speed, for this reason, it maintains an EntityInfo dictionary for each entity whose metadata it has read.

EntityInfo retains metadata information and It is created on first access to the entity, from the second access on it will no longer be necessary to use reflection.

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

The code of the entire project is available [here](https://github.com/antdimot/entity2sql)

Any advice is welcome.
Internshala internship program free offer for limited time
Tags: internshala, internship, trainingprogrms, techcompanies
Published: 2020-06-02 05:04:30

Internshala ‘Summer Interns of 2020' campaign has to offer -

🤩 27,500+ work from home internship openings in brands like CodeChef, HCL, Sportskeeda, and many more
😎 Internships in profiles like marketing, web development, and more
💸 All internships come with a guaranteed stipend and you can earn up to ₹1.8 lacs!
🥳 Chance to win early entry pass and rewards up to ₹10,000

So, let’s become the Summer Interns of 2020! Hurry up, register now- https://internshala.com/summer-interns-of-2020?utm_source=refer_whatsapp&utm_medium=6002841