teleren/devto huggingface dataset:
Ipad pro's box, recycled! 🤯
Tags: watercooler, apple, recycling
Published: 2020-04-23 22:15:03

My girlfriend ordered the iPad Pro and it was finally delivered yesterday.
The cardboard box had "Please Recycle" written on it.

It took around 10 minutes to build this awesomeness:

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


Thanks to the add-on it comes in 2 different heights 🤩
The very cool part is that since the lockdown we really needed a second laptop deck.
It was just a pity she had to use hot glue to join 2 pieces, glue is never environment friendly ... but as we are under lock down we have to do our best with what we have in the house.

PS: I'd like to share the instructions but I didn't see the building process.
Create a Network on Google Cloud Platform (GCP)
Tags: gcp, cloud, devops
Published: 2020-04-23 22:10:03

---
title: "Create a Network on Google Cloud Platform (GCP)"
published: true
description: "Create a Network on Google Cloud Platform (GCP)"
tags: "gcp, cloud, devops"
canonical_url: "https://pbhadani.com/posts/gcp-network/"
---

Network is a fundamental resource for creating Infrastructure on the Cloud like VM Instances, Google Kubernetes Engine (GKE), etc.

In this video, I explain the Network option available on the Google Cloud Platform(GCP) and how to create them using Google Cloud Console UI.

Hope you enjoy the video tutorial.

{% youtube DDovDxKL6go %}

Please subscribe to the [YouTube](https://www.youtube.com/channel/UCR8RtRbr87S86UJakb7D0Pw) channel for the updates.  

If you have feedback or questions, please reach out to me on [LinkedIn](https://linkedin.com/in/pradeepbhadani) or [Twitter](https://twitter.com/bhadanipradeep)
Twilio Office Hours with Phil & Dom
Tags: twilio, twiliohackathon
Published: 2020-04-23 21:58:35

---
title: Twilio Office Hours with Phil & Dom
published: true
description: Tune in on Thursday April 23 for Twilio Hackathon office hours with Phil and Dom
tags: twilio, twiliohackathon
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/asrfa94ug0fcujpo72as.png
---

We hope your #twiliohackathon projects are going well but we also know that everyone hits a stumbling block at one point and we at Twilio want to make sure you have all the help you might need.

One way you can seek our help every day is by reaching out to the [Twilio Hackathon Help Thread](https://dev.to/thepracticaldev/twilio-hackathon-help-thread-1jno) or by requesting access to the DEV connect live chat. 

But if you prefer to see the faces of the people answering your questions, you can also jump onto our weekly office hours on Twitch! Over there [Phil](https://dev.to/philnash) and [I](https://dev.to/dkundel) will be chatting hackathons, answering your questions, bounding around ideas and checking out some of the projects people are working on. And if we have some time, we'll be jumping into some live coding ourselves.

*The Hackathon office hours will be hosted on the [Twilio Twitch channel](https://twitch.tv/twilio)* at:

19:00 EDT Thursday 23th April
16:00 PDT Thursday 23th April
09:00 AEST Friday 24th April

(They're all the same time, Phil is just a day ahead in Australia!)

We'll see you on Twitch right here: https://www.twitch.tv/twilio
Day 123 : ABC
Tags: hiphop, code, coding, lifelongdev
Published: 2020-04-23 21:53:39

_liner notes_:
- Professional : I got it deployed!! The refactor of an old side project to use my company's APIs for an internal hackathon / learning session is done enough (of course there's always more that can be done). I'll do those this in the future. For now, you can check it out at https://ticREACTtoe.com Got to demo it along with all the other projects people worked on. I work with some really smart and talented folks. Also had a meeting of a demo I've been working with another team. We discussed what I've created so far and where we can take it. We want to make it as easy as ABC to go through the demo and pick up the API.

- Personal : Last night, I worked on my project so that I could get it done before the demo.

![View of the Golden Gate Bridge in San Francisco, California](https://dev-to-uploads.s3.amazonaws.com/i/lrsrr33a6p9n2buw79d9.png)

Brain is pretty fried from the hackathon. Think I'll just go through some tracks for this week's radio show and call it a night early.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube ho7796-au8U %}
Turing and AI
Tags: AI, computerscience
Published: 2020-04-23 21:30:25

Turing defines an intelligent machine as one that can cause doubt in the human perception of it. Contrary to what it seems, this experiment is not a real measure of intelligence, it's more like a pseudoscience. What makes the judge doubt who is the machine and who is the human is not based on knowledge or processing power, but instead on things like the delay between sending messages or remembering the topic at hand. I'm not saying that is an easy task, but it's not as hard as it sounds.

This experiment might be more of a data-gathering / processing kind than an AI experiment since the machine needs to minimize the number of unknown topics that the user might talk about, and the most straight forward method seems to be that of increasing the known topics. Although some other machines employ different techniques for handling this task, for example, ELIZA, that claims to be a psychologist, keeps converting her inputs to questions and then asks them back from the owner. This might sound funny and not so intelligent, but the 56-year-old AI does a surprisingly good job. But does this mean that ELIZA - [which is written in less than 2 thousand lines of lisp](https://github.com/emacs-mirror/emacs/blob/d0e2a341dd9a9a365fd311748df024ecb25b70ec/lisp/play/doctor.el)- is smart? I don't think so.

But Turing wasn't that far from reality, what separates humans from animals is the power to tell stories, a process in which the storyteller must imagine a made-up world and live and make decisions as each and every one of the creatures in the said world, and then tell it in an entertaining way. All tasks that us humans start doing at an early age of 2 or 3. Also, it doesn't have to be a complete story every time, telling a lie is a form of storytelling too, we imagine a made-up world where things happened in an order that caused the vase to be broken without us being responsible for it.

It might make more sense to say that a machine is intelligent if it can tell a story that entertains humans. But how can we measure it? We've previously talked about the fact that part of the story is the medium (p.s: This article was in Persian and I have not translated it yet, sorry :P), so maybe the measuring should depend on the medium. In the Turing experiment, the medium is a chat in a terminal, whereas a story could be said in any medium, from a multiplayer game to an interactive story in a book, and sometimes the medium makes the storyteller jobs extremely easier.

With all that, how can we measure the story teller's creativity?
Day-11 Height Checker
Tags: python, challenge
Published: 2020-04-23 05:30:51

---
title: Day-11 Height Checker
published: true
description: 
tags: #python #challenge
---
This problem statement is a part of Leetcode's Introduction to Data Structures Fun with Arrays-101. Under the sub-heading Conclusion.

##### Problem Statement

Students are asked to stand in non-decreasing order of heights for an annual photo.

Return the minimum number of students that must move in order for all students to be standing in non-decreasing order of height.

Notice that when a group of students is selected they can reorder in any possible way between themselves and the non selected students remain on their seats.

##### Example 1
```
Input: heights = [1,1,4,2,1,3]
Output: 3
Explanation: 
Current array : [1,1,4,2,1,3]
Target array  : [1,1,1,2,3,4]
On index 2 (0-based) we have 4 vs 1 so we have to move this student.
On index 4 (0-based) we have 1 vs 3 so we have to move this student.
On index 5 (0-based) we have 3 vs 4 so we have to move this student.
```

```
Input: heights = [5,1,2,3,4]
Output: 5
```

```
Input: heights = [1,2,3,4,5]
Output: 0
```

Constraints:

1. 1 <= heights.length <= 100
2. 1 <= heights[i] <= 100

There was one hint given. Sort the array and compare the two arrays. Hence, some steps followed.

##### Solution Approach
1. Using sorted sort the initial list. Remember, sorted returns a new sorted list.
2. Compare the new sorted list with the original list. Now, compare the value of each element at the same index in the original list and in the new sorted list.
3. On indexes where the values are different. Increment the counter by 1.

```
class Solution:
    def heightChecker(self, heights: List[int]) -> int:
        count = 0
        sorted_heights = sorted(heights)
        for i in range(0, len(heights)):
            if heights[i] != sorted_heights[i]:
                count += 1
        return count
```

##### Learnings
1. Currently, the solution is correct but unoptimized. Time complexity is O(nlogn), space complexity is 0(n).
2. Time complexity of sorted - 0(nlogn)

##### Pending TODO
1. The solution can be derived without using an extra array though. This would make the time complexity O(n), space complexity 0(1).


##### NOTE
I am an absolute beginner in data structures and algorithms. Practicing these topic wise. Hence, there is also a possibility that there is some concept I am unaware of at the moment that might help in the optimization.
Dev.to/Twilio Hackathon: Writing a Rocket launch bot!
Tags: twiliohackathon, java, bot
Published: 2020-04-23 21:16:17

---
title: Dev.to/Twilio Hackathon: Writing a Rocket launch bot!
published: true
description: My submission to the Twilio x DEV Hackathon!
tags: #twiliohackathon #java #bot
---

## Introduction
This is my first hackathon with Dev.to I will be participating so I'm looking forward to it!

(this is not my first post but I have decided to remove the first one because it was really minimal)

At the beginning I started making a bulk project, with myself parsing the messages received through the web-hook directly.

After looking at Twilio's resources I came across Autopilot bots, a conversational AI stack that parses most of the data with a very convenient to use UI (which reminds me a lot of Dialogflow). With this I would just need to set up a couple endpoints to provide the responses.

## Link to Code
This time I have started the [GitHub repository](https://github.com/NahuLD/launch-twilio-bot) for the project!

## What's the stack?
I have decided to stick with Java for the project.
We'll be used Twilio's provided SDK, alongside with my Java wrapper and SparkJava for webhooks.
DEV x Twilio Hackathon Journey: Working all day and night
Tags: twiliohackathon
Published: 2020-04-23 21:12:57

---
title: DEV x Twilio Hackathon Journey: Working all day and night
published: true
description: This is going to be a quick update since we still have some work to do in order to meet the deadline! In my last article, I've introduced you to the PROTOTYP team and our idea of the app concept for the DEV x Twilio Hackathon.
tags: twiliohackathon
series: DEV x Twilio Hackathon Journey
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/2akma69h4rvbjrtwuna8.png
---

This is going to be a quick update since we still have some work to do in order to meet the deadline!

In my last article, I've introduced you to the PROTOTYP team and our idea of the app concept for the DEV x Twilio Hackathon. 

The team has been working days and (sometimes) nights on this project and having lots of fun in the process. Our designer, [Igor Plac](https://dribbble.com/igorplac) has managed to come up with an awesome design for the app and we're working hard to bring it to life.

So far you've seen our Homebound logo, but here is a design of a splash screen and a login screen.

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

You can see what kind of feel we're going for. We started by creating a fun & simple design using Figma. Making sure that user flow is easy and logical while keeping you at home, in your safe zone. 

As we said, we are currently developing the design into a fully functioning app using React and Firebase as our infrastructure. And let's not forget about the essential part - Twilio API, which will play an important role in our app.

![](https://media.giphy.com/media/GXmXd0d9W5IMo/giphy.gif)

That's it for now! We can't wait to show you the final product! We'll have a much detailed post ready for our submission. See you all next week!
A Dive Into React Hooks
Tags: react, javascript, webdev, reactnative
Published: 2020-04-23 21:10:28

If you have ever worked with React State, you must have come across ‘this’ binding. Personally, I do not like the use of classes in React and somewhere out in the world, there are people who don’t fancy using classes in React as much as I do. You're in luck, with the addition of React hooks that gets rid of the classes, ‘this’ binding and still does the same works that react states do with shorter, cleaner code.
React hooks is an addition that was introduced with React 16.8. They let you use state and other React features without writing a class.
Generally using classes in react results to a lot of lines of code that can be easily cut down using a function. A simple hello world program will look like this with classes and state.

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

When using a function and React hooks you can optimize this same code down to:

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

If you observe the two codes you can clearly see that Hooks make things easier for you with shorter, faster code.
Now let’s go into how React hooks actually work, what you should know before using react hooks.
Before you decide to use React Hooks there a JavaScript principle you should already be proficient in and that is destructuring.
What is destructuring? This is simply unpacking the values of an array or object into a distinct value. There is a really good article on destructuring <a href='https://dev.to/sarah_chima/destructuring-assignment---arrays-16f'>here</a>.
React hooks uses the principles of destructuring to unpack values from the useState() function.

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

The left side is where the variable name is declared. The first item is the variable name for the state and the second item in the array separated by a comma is the function for setting the value of the state, this serves the same purpose as the setState() function in classes.
The right side is where the destructured array (useState function). The parameter for the function is where the value for the state is initialized. It might take a little getting used to but when you start using the hooks it gets a little bit easier.
The setValue function can be used to update the value of the state.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/93hwhroh7w2mkadm1u95.png)

The setValue function is called on button click and updates value from ‘World’ to ‘Earth’.
For further insight on react hooks, you can check out <a href='https://reactjs.org/docs/hooks-intro.html'>the documentation</a> from the React Team.
What advice would you give to junior developers?
Tags: frontend, junior, beginners, senior
Published: 2020-04-23 20:52:36

Seniors or not-so-junior developers, what advice would you give to people just starting working as junior devs? The advice could be anything really. I'm still very new in this role (this month would be my fifth, after switching fields from product management) so I don't think I'm qualified to give advice (or maybe I'm wrong?), but I would really like to hear from people with more experience. What would you want beginners to know when starting out?
⚡⚡⚡ 3 Tips and 1 Gist For Using Python and The Twitter Search API
Tags: python, todayilearned, sideprojects
Published: 2020-04-23 20:10:57

These past days I've been playing around with the Twitter Search API. Here are a few things that you may find useful if you are getting started with it: 


1. Use Tweepy. It's much better documented and easier to work with compared to python-twitter

2. If you are only reading public data, use Application-only authentication. You can do up to 450 requests in a 15-min window. The Application-user authentication gives you only 180 requests in the same time window.

3. Read the best practices for Standard Search. There's a lot of things you can do in the queries (e.g., filter by tweets' sentiment)


Finally, here's a simple gist that allows you to get the last 100 tweets for a given query and inserts them in a SQLite DB every 30 seconds: https://gist.github.com/dylanjcastillo/99a79d53a3d73d8eebf0a5c0b81531d1
Modern Deployments with .NET
Tags: dotnet
Published: 2020-04-25 15:36:09

---
title: Modern Deployments with .NET
published: true
date: 2020-04-23 20:07:22 UTC
tags: dotnet
canonical_url: 
---

 ![Modern Deployments with .NET](https://images.unsplash.com/photo-1514984879728-be0aff75a6e8?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=2000&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ)

We live in a golden age of .NET. We now have something we haven't had before - _choice_.

_Choice 1_.  
We can continue to build our ASP.NET applications and publish them to run under IIS on Windows.

_Choice 2._  
We can use .NET Core (and soon .NET 5) to publish and run on Windows/Max/Linux under Nginx/etc or under Kestrel directly.

_Choice 2a._  
We can use .NET Core (and soon .NET 5) along with Docker and CI/CD to build and deploy on commit to Windows or Linux servers.

_**Choice**  **2b.**_  
We can use .NET Core (and soon .NET 5) along with Docker and CI/CD to build and deploy on commit to Windows or Linux and manage it all under Kubernetes to allow for deploying, no downtime upgrades, and scaling vertically or horizontally at a click.

It's that last choice, the golden '2b' that BitLeaf follows. After years of dealing with deployments, upgrading, and scaling it now is truly a golden age that we can stop manually managing all that. I have spent a good portion of my career on weekend deployments of my code and all the pains it brought. With the tools and options we have available to us, like BitLeaf, I'm happy to not have that pain anymore.

We have choices now. They don't even have to be scary. **Whether in your own setup, on Azure, or on BitLeaf, please just try it**. You'll be amazed how far we have come and how much better it can be.

I'll do my best in coming posts to help you along your journey to the new modern way of getting your beautiful .NET code out into the world.
JavaScript Coding Challenge #1:Learn Split, Splice and Join.
Tags: javascript, datastructure, codenewbie, challenge
Published: 2020-04-23 20:04:54

###**Input** : A single string "aaababbcdff"
###**Output** : Reduced string "abacd"
###**Problem** : Delete each **pair** of adjacent letters that match from the above string.
---
```javascript

let s="aaababbcdff";
let arr = s.split("");
for(let i=0;i<arr.length;i++){
  if(arr[i]==arr[i+1]){
    arr.splice(i,2); 
  }
}
s=arr.join("");
console.log(s);

```

**Next Coding Challenge: [Add all Integer in a string using JavaScript.
](https://dev.to/ritik_dev_js/javascript-coding-challenge-2-add-all-integer-in-a-string-using-javascript-3kdg)**
LIVE // Desktop Apps for our Remote Work Space
Tags: startup, productivity, android, ios
Published: 2020-04-23 19:52:46

Since launching AirSend (www.airsend.io) in December, the team has been working hard. And we now have DESKTOP APPS for Windows, OSX, and Linux!

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

Download them for free here: www.airsend.io
Free Online Courses In Covid-19
Published: 2020-04-23 19:48:30

When the world is in crisis, edTech Companies across the globe are offering limited edition free courses in COVID-19. If you want to learn something new whether is coding, design, marketing, blogging, SEO, content marketing etc, there can't be a best time than this. 

We are privileged section of society who have got the comfort to Learn From Home and Work From Home, not everyone has it. So, Utilize in learning and becoming the better version of yourself. Here I am listing few courses which are free. 

If you know any more free or discounted courses which you think should be helpful for the community, do share by creating a issue or sending a Pull Request. 

You may also like to see [A2Z Resource For Students](https://github.com/dipakkr/A-to-Z-Resources-for-Students) 

This resource is originally published on my github repo. [Free Online Courses in Covid-19](https://github.com/dipakkr/Free-Online-Courses-In-Covid19)

# Online Courses

| SNo | Title | Category  | Link | Timeline | 
| ----|----   |    ----   | ---- | ----     |
| 1| CodeAcademy| Coding  | [Link](https://bit.ly/2xzKIgf) | 90 Days PRO FREE | 
|2 | PluralSight | Coding | [Link](https://bit.ly/2VsBgTG) | Free Till April 2020 |
|3 | Ahref (Blogging For Business) | Content Marketing | [Link](https://ahrefs.com/academy/blogging-for-business) | Limited Period Offer | 
| 4 | Progate | Coding | [Link](https://linktr.ee/progatespecialaccess) |  Free Till April 2020 |
| 5 | Coding Blocks  | Coding- Competitive Programming | [Link](http://cb.lk/cpcpyt) | Limited Period Offer | 
| 6 | Coursera Courses  | Tech | [Link](https://bit.ly/2VPu1Wn) | Limited Period Offer | 
| 7 | Free Courses on Edx  | Tech | [Link](https://bit.ly/2xTJBbj) | Limited Period Offer | 
| 8 | Udemy Free Courses  | All Domains | [Link](https://bit.ly/3cGJTkQ) | Limited Period Offer | 
| 9 | Linux Foundation Scholarship  | Tech | [Link](https://bit.ly/3bwm7I1) | Limited Period Offer | 
| 10 | Udacity 1Month Free Nanodegree  | Tech | [Link](https://bit.ly/3cGldc1) | Limited Period Offer | 


# Books, Journals, Podcast

| SNo | Title | Category  | Link | Timeline | 
| ----|----   |    ----   | ---- | ----     |
| 1| Scribd Library | Books, Journals  | [Link](https://www.scribd.com/readfree?utm_source=readfree) | 30 Days FREE Without Credit Card| 
|2 | Cambridge Library | Books, Journals | [Link](https://bit.ly/2VsBgTG) | Free Till April 2020 |
|3 |


## Other Free Courses

| SNo | Title | Category  | Link | Timeline | 
| ----|----   |    ----   | ---- | ----     |
| 1| Frontend Masters | Frontend (Coding) | [Link](http://bit.ly/2X37LGS) | 6 Months Free With Github Student Pack |  
|2 | PluralSight | Coding | [Link](https://bit.ly/2VsBgTG) | Free Till April 2020 |



Share this resource in your community. Let's connect on [Twitter](https://twitter.com/HQdeepak)
Mid Meet Py - Ep.4 - Interview with Michael Foord
Tags: python, chat, news, community
Published: 2020-04-23 19:26:55

---
title: Mid Meet Py - Ep.4 - Interview with Michael Foord
published: true
description: We meet in the middle of the day in the middle of the week to chat about Python!
tags: Python, chat, news, community
---
PyChat (news in the community):

  [Farewell to Oier Echaniz](https://twitter.com/acpyss/status/1251193690183348225)

  [Pyladies Dub meetup 19th May](https://twitter.com/PyLadiesDub/status/1252162609446629376)

  [Python in Astronomy hackdays kick off at midnight tonight BST (23rd & 24th) April - all welcome!](https://twitter.com/pythoninastro/status/12501441027940433947)

  [New Sponsorship Program for Python Packaging](https://pyfound.blogspot.com/2020/04/sponsoring-python-packaging.html)

  [Ticket sales for EuroPython 2020 Online have started] (https://blog.europython.eu/post/615992284837756928/europython-2020-ticket-sales-started)

Meet Hall of Fame:

  Interview with Michael Foord, Python Core Developer, creator of Iron Python and Mock module

  [Follow Michael on Twitter](https://twitter.com/voidspace)

  [Check out his website](https://agileabstractions.com/)

PyPI highlight:

  [Fades - a library to manage your virtual Envs](https://fades.readthedocs.org)


  [Jupyter-require - Let you run JavaScript, plug-in to Jupyter notebook](https://github.com/CermakM/jupyter-require)