teleren/devto huggingface dataset:
Daily Developer Jokes - Monday, Oct 26, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-10-26 12:00:24

---
title: "Daily Developer Jokes - Monday, Oct 26, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Monday%2C%20Oct%2026%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1259ae4191d.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q___: Why did the developer cancel their dinner plans?

___A___: They were unable to fulfil peer dependencies
 -->
Python I.P Logger
Tags: python
Published: 2020-10-26 11:49:03

My very own python tool for logging I.P address and detecting OS of same present on LAN.


https://medium.com/bugbountywriteup/simple-i-p-logger-in-python-2103b49dec0e?source=friends_link&sk=eb1e70e5de660e65989ba09014c79052
Vlog: I quit my Job 😱&& moved out to a new place alone🤦‍♀️ | 2020
Tags: quit, newjob, relocation, quittingajob
Published: 2020-10-26 11:40:12

⬇️In this video:
💪I'm quitting my job, I'm relocating to a new place all by myself and I'm about to start a new job. All those things are happening in less than 5 days... 
😉The experience was a bit scary... but I think it will worth it :)

Have a beautiful and productive week.

**************************************
👋Hello, I' m Eleftheria, an app developer, master student, public speaker, and chocolate lover.

🍩Would you care about buying me a coffee? You can do it here: [paypal.me/eleftheriabatsou](paypal.me/eleftheriabatsou) but If you can't that's ok too!

**************************************

🙏It would be nice to subscribe to my [Youtube](https://www.youtube.com/c/EleftheriaBatsou) channel. It’s free and it helps to create more content.

🌈[Youtube](https://www.youtube.com/c/EleftheriaBatsou) | [Codepen](https://codepen.io/EleftheriaBatsou) | [GitHub](https://github.com/EleftheriaBatsou) | [Twitter](https://twitter.com/BatsouElef) | [Site](http://eleftheriabatsou.com/) | [Instagram](https://www.instagram.com/elef_in_tech/)
Forem: Keyboard shortcuts
Tags: meta
Published: 2020-10-26 11:38:51

It's now possible to 'easily' add keyboard shortcuts to components used in forem. Some already exist like pressing `/` to focus on the search bar or pressing `0` to enter 'zen' mode on the feed.

Also feed navigation is coming

{% github https://github.com/forem/forem/pull/10468 %}

Are there any keyboard shortcuts you'd like to see? Make some suggestions in the comments or make a feature request directly on the repo.

**PR to add keyboard shortcuts:**

If you're interested in the hook that is used to make keyboard shortcuts easy it's here.

Feel free to explore it and even use it to add your own shortcuts (once the team accepts the feature request).

{% github https://github.com/forem/forem/pull/10713 %}
Simple tech articles
Tags: tutorial, javascript, codenewbie
Published: 2020-10-26 11:32:19

---
###**Hey everyone**,

We have a startup in the tech freelancing space. We have been growing steadily over the past 4 years. Of course, a large part of that credit goes to the amazing developers in our network.

So to encourage the next generation of developers, who are already learning to code or planning to do so, we have started a new series of articles - **"Simple tech articles".**

The premise of these articles is straightforward - to create a repository of common concepts around all top tech languages. Of course, the aim is to write it in as simple & lucid writing as possible.

While these might be more useful for new developers, they can serve as a quick refreshers for experienced individuals too. The idea largely is to write short articles around highly specific use-cases.

To get things rolling, we started with **JavaScript**. In totality, we have written about 12 topics covering basic to a little more advanced JavaScript concepts. Here they are:

1. [Implementing Bubble Sort in JavaScript](https://flexiple.com/bubble-sort-javascript/)
2. ['Single' vs "Double" quotes for strings in JavaScript](https://flexiple.com/double-vs-single-quotes-javascript/)
3. [Average or Arithmetic mean of an array using JavaScript](https://flexiple.com/get-average-of-array-javascript/)
4. [Declaring optional function parameters in JavaScript](https://flexiple.com/optional-parameter-javascript/)
5. [How to check if an array is empty using JavaScript?](https://flexiple.com/check-if-array-empty-javascript/)
6. [How to check if a value exists in an array using JavaScript?](https://flexiple.com/check-value-exists-array-javascript/)
7. [How to disable or enable buttons using JavaScript and jQuery?](https://flexiple.com/disable-button-javascript/)
8. [Check if a JavaScript variable is of function type or not](https://flexiple.com/javascript-check-if-function/)
9. [findIndex method: JavaScript array](https://flexiple.com/findindex-javascript/)
10. [Check if a number is Prime or not](https://flexiple.com/isprime-javascript/)
11. [forEach vs map method in JavaScript](https://flexiple.com/foreach-vs-map-javascript/)
12. [Get the last element of an array using JavaScript](https://flexiple.com/get-last-array-element-javascript/)

##**What to expect**?
Moving ahead, we plan to write articles focusing on ReactJS, AngularJS, etc. We publish one new article every week so stay tuned for that.

Of course, we are still in the early part of this journey and figuring out the format, etc of this endeavour. So please do share any feedback (constructive :) ), you might have!
NetworkX graph drawing using Matplotlib
Tags: python, graph, network, sna
Published: 2020-10-26 11:31:12

NetworkX is a python library for network/graph analysis. In the real world, the great example usage for network analysis is social network analysis (SNA), which is used for describing the relationship between peoples. Python is widely used for scientific and analysis purposes because there are so many packages that made for it, such as `numpy`, `pandas`, `scikit-learn`, and for the specific field like network analysis, they have `networkx`. I will show you how to get started with it and view the created graph using the `matplotlib` package.

## Prerequisites to code along
You have installed python on your machine, and could use the `pip` to install these packages:

```
pip install --user networkx
pip install --user matplotlib
``` 

or if you follow my previous posts about installing python using `pyenv` and installing packages using `pipenv`, you are welcome to use these commands because I prefer this way:

```
pipenv install networkx
pipenv install matplotlib
```

## Preparation
Let's create two files within a folder for the simple demonstration project, the files are `test.py` and `miserables.json`. The `miserables.json` file contains graph data which you can get it from [here](https://gist.github.com/dendihandian/b3f63496e5cbfef42163da37613e54ec/raw/51997022110e4230ee81078c30f55016ce3a02b1/miserables.json).

```
- project
  |_ test.py
  |_ miserables.json
```

## Coding

Now, let's code the `test.py` 

### Importing the packages
We will be using `networkx`, `matplotlib`, and built-in package `json` since we will deal with a JSON file.

```python
import json
import networkx as nx
import matplotlib.pyplot as plt
```

### Loading data from json file
We use the `json` package to load the JSON file content and convert it into a dictionary object.

```python
miserables_graph = None

with open('miserables.json') as json_file:
    miserables_graph = json.load(json_file)
```

### Creating a networkx graph

Then we create a networkx graph object or instance and add the nodes and edges from the previously imported dictionary object.

```python
G = nx.Graph()

G.add_nodes_from([(node['id'] for node in miserables_graph['nodes'])])

G.add_edges_from([(edge['source'], edge['target'])
                  for edge in miserables_graph['links']])
```

### Drawing the graph

And finally, show the graph using `matplotlib`.

```python
nx.draw(G)
plt.show()
```

You can run the `test.py` file using `python test.py` or `pipenv run python test.py` if you're using `pipenv`. When you run it, there will be a program instance spawn on your desktop.

You may find out the graph drawing is kind off and ugly :laughing: I will find how to prettify it later but have fun exploring it yourself.

________
🤓Tutorial: Don't have a webcam? Use your phone instead! 2020 [+ Bloopers]
Tags: android, webcam, howto, camera
Published: 2020-10-26 11:22:08

⬇️In this video:
I'll show you have to connect your android phone camera to your computer (you can use it on Skype, zoom, and basically everywhere!)

💪More info: 
1. Download [DroidCam](https://play.google.com/store/apps/details?id=com.dev47apps.droidcam&hl=en) Wireless Webcam

2. And then visit [this](http://www.dev47apps.com/) page



**************************************
👋Hello, I' m Eleftheria, an app developer, master student, public speaker, and chocolate lover.

🍩Would you care about buying me a coffee? You can do it here: [paypal.me/eleftheriabatsou](paypal.me/eleftheriabatsou) but If you can't that's ok too!

**************************************

🙏It would be nice to subscribe to my [Youtube](https://www.youtube.com/c/EleftheriaBatsou) channel. It’s free and it helps to create more content.

🌈[Youtube](https://www.youtube.com/c/EleftheriaBatsou) | [Codepen](https://codepen.io/EleftheriaBatsou) | [GitHub](https://github.com/EleftheriaBatsou) | [Twitter](https://twitter.com/BatsouElef) | [Site](http://eleftheriabatsou.com/) | [Instagram](https://www.instagram.com/elef_in_tech/)
Hacktoberfest
Tags: hacktoberfest
Published: 2020-10-26 11:20:36

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


### [Intro Heading]
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 
### Background

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →

### Progress

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->

### Contributions

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->


### Reflections
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
Cuprite: headless Chrome Ruby driver for Capybara
Tags: opensource, ruby, webdev, productivity
Published: 2020-10-26 11:18:50

Ferrum + Capybara = Cuprite

Cuprite is a driver for Capybara that uses [Ferrum](https://evrone.com/ferrum-ruby-chrome-driver) - a minimal-dependency pure-Ruby driver for running headless Google Chrome instances.

If you're already using Capybara, [Cuprite](https://evrone.com/cuprite) gives you all the benefits of Ferrum, but without the overheads of having to switch APIs. Because Ferrum employs Chrome's native DevTools Protocol (CDP), it doesn't need anything special in order to operate Chrome or Chromium in headless mode, unlike some alternative solutions.

[Read more about the solution.](https://evrone.com/cuprite)
Hacktober Fest
Tags: hacktoberfest
Published: 2020-10-26 05:29:45

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


### [Intro Heading]

The Journey Was Cool
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 
### Background

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →

### Progress

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->

### Contributions

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->


### Reflections
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
How to make the radio control unclickable
Tags: html, radio, forms, javascript
Published: 2020-10-26 11:12:32

---
title: How to make the radio control unclickable
published: true
description: So, the boss wants to be able to 'unclick' a radio control in your app? This is how you make it happen.
tags: html,radio,forms,javascript
//cover_image: https://direct_url_to_image.jpg
---

I found myself sitting at the laptop at 10:00 on a Sunday night, thinking about a request that the boss had for one of my apps.  This past week, he asked "What if you accidentally click on a radio control, you want to deselect what you clicked, and you don't want to refresh the webpage? What do you do, then?"  After two "Dunkin' Pumpkin" beers, I figured that it would be an interesting challenge to think about.

With some onClick magic and a variable to hold the value prior to the click event, it is just a matter of writing an if/else statement for each of the radio controls.

{% codepen https://codepen.io/steinbring/pen/PozpzGe %}

In the above example, the first set is a demonstration of the default behavior.  The second set is with the new, modified behavior.

So, what do you think?  Let me know in the comments if you have an easier method.
Open-sourcing Ferrum: a fearless Ruby Chrome driver
Tags: opensource, ruby, productivity, testing
Published: 2020-10-26 11:12:30

If you want to run integration tests on your website, you have three options: Poltergeist, Selenium, and now, a new secret weapon - Ferrum.

Poltergeist is fantastic, but unfortunately, it's really quite outdated now.
Selenium requires installing additional software, it's slower, and it doesn't give you full control of the browser. It's definitely not an option for everyone.
Ferrum is faster than Selenium, there's no additional software to install, and with it, you have complete control of the browser.

Read more about the [Ferrum](https://evrone.com/ferrum-ruby-chrome-driver) [Ruby](https://evrone.com/ruby) Chrome driver.
Seize the last chance to get $50 CPU/GPU resources and win $116000 in prizes
Tags: alibabacloud
Published: 2020-10-26 11:12:01

The Alibaba Cloud Global Innovation Challenge is open now, and the deadline for registration and 1st round submission is Nov 1st. 

Do not miss the chance to get a $50 PAI coupon and win a total of $116,000 in Prizes.

[JOIN NOW] (https://tianchi.aliyun.com/competition/entrance/531832/introduction)

It is an open competition for global AI developers, researchers, startups and solution providers to make and/or enhance their products or projects based on machine learning using PAI. The task of challenge is to use PAI to leverage machine learning to build products or projects. It welcomes innovative AI projects in any field or industries. If you have or are doing a machine learning-based project, register for the challenge now, you can get:

A $50 PAI coupon to start your model training with CPU/GPU resources for free; an additional $400 PAI coupon if you enter the second round.

A voucher of Machine Learning Specialty Certification for free
Chance to win a total of $55,000 in cash prizes and $61,000 in cloud credits
Created Profile Pic Maker app using Vue.js & AI
Tags: showdev, design, vue, python
Published: 2020-10-26 09:58:20

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

Built using Vue.js on the front-end and Python on the backend - background from a photo is being removed by an AI-powered algorithm. You can get yourself a new profile pic with a dozen professional hand-crafted templates for free:

[PFPMaker.com](https://pfpmaker.com/)
The Languages Program You should to learn it if you wanna be Web Developer
Tags: webdev, html, css, javascript
Published: 2020-10-26 10:51:51

If you want be a Web Developer !
You should to learn this languages program,
step by step:

1- HTML
2- CSS
3- HTML5
4- CSS3
5- JavaScript
6- php
7- MySQL
8- JQuery
9- Bootstrap
Developing a universal fintech product core to enter the European market
Tags: ruby, productivity, startup, webdev
Published: 2020-10-26 10:49:36

Fintech company Revoplus is an [installment payment](https://evrone.com/fintech) service that customers can use when purchasing goods online. It is being actively developed in Russia under the Mokka brand. Revoplus is already cooperating with large retailers and has received investments from Baring Vostok totaling $25 million.

In 2018, Revoplus management decided to [develop](https://evrone.com/devops) and launch the service in Europe as well, starting with Poland. The European market holds more potential for any financial service. Since, in Europe, attitudes towards the credit system are generally softer than in Russia, and payment discipline is more stable.

The Evrone team had already contributed to the development of the Russian version of the solution, so Revoplus contacted us to start scaling an [IT product](https://evrone.com/ruby) for use in Europe.

[Read the full story.](https://evrone.com/revo-poland)
How healthcare mobile apps can help us battle the Covid-19
Tags: mobileappsdevelopmentservices, mobileapps, mobileapplicationsdevelopment
Published: 2020-10-26 10:42:48

We are living in a world of technological advancement where everything is available and accessible on our smartphones. Today, tasks like shopping, car booking, hotel reservations, etc. can be performed easily with the click of a button. The healthcare sector has also revolutionized itself with the advent of medical mobile apps. https://milliejackupdates.blogspot.com/2020/10/mobile-apps-development-services.html
Super Productivity v6 is out!
Tags: productivity, opensource
Published: 2020-10-26 10:42:39

---
title: Super Productivity v6 is out!
published: true
description: ToDo-List / Time Tracker Super Productivity is out in version 6. Among lots of other improvements and minor fixes, it brings support for WebDAV sync and custom background images.
tags: productivity, opensource
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/vhh9c22n0wjw40owpsng.png
---

Free open-source ToDo-List / Time Tracker Super Productivity is out in version 6. Among lots of other improvements and minor fixes, it brings support for WebDAV sync and custom background images.

Check it out and let me know what you think!

https://super-productivity.com/
https://github.com/johannesjo/super-productivity



Special thanks go to the gifted Hannes Pasqualini from [Papernoise](https://www.papernoise.net/), who helped me - among many other things - a lot with the very sexy new redesign, and [Manuel Will](https://manuelwill.com) who allowed me to use one of his fantastic images as the default background image. Thank you!!!
How Evrone used blockchain technology and AI to develop Humaniq: A financial mobile app for illiterate users from remote regions
Tags: startup, blockchain, news, python
Published: 2020-10-26 10:41:06

Evrone was approached by the [Humaniq](https://evrone.com/humaniq) team and tasked with creating a blockchain platform and a mobile [financial](https://evrone.com/fintech) application. The catch was that the target audience was the remote populations of Africa and Asia. In many of these regions, financial literacy was just beginning to emerge, and much of the population could not read or write, even in their native language.

[Read the full story](https://evrone.com/humaniq)
42 reasons to fall in love with GCP
Published: 2020-10-26 10:35:30

1st post.



I've been using GCP for a year and for the most of it - can't praise it enough. I've compiled a list of features and products that I find most useful or groundbreaking. Happy to take note/include some other features that you find particularly useful in GCP.

https://snaptube.cam/ https://9apps.cam/
Priority Queue
Tags: hacktoberfest, javascript
Published: 2020-10-26 09:57:58

    class priorityQueue {
        constructor() {
            this.values = []
        }
        enqueue(val, priority) {
            let newNode = new Node(val, priority)
            this.values.push(newNode);
            this.bubbleUp();
        }

        bubbleUp() {
            let idx = this.values.length - 1;
            const element = this.values[idx];
            while(idx > 0) {
                let parentIdx = Math.floor((idx - 1)/2);
                let parent = this.values[parentIdx];
                if(element.priority <= parent.priority) break;
                this.values[parentIdx] = element;
                this.values[idx] = parent;
                idx = parentIdx;
            }
        }

        dequeue () {
          const min = this.values[0];
          const end = this.values.pop();
              if(this.values.length > 0) {
              this.values[0] = end;
              this.sinkDown()
          }
          return min;
        }
        sinkDown() {
            let idx = 0;
            const length = this.values.length;
            const element = this.values[0];
            while(true) {
                let leftChildIdx = 2 * idx + 1;
                let rightChildIdx = 2 * idx + 2;
                let leftChild,rightChild;
                let swap = null;
                if(leftChildIdx < length) {
                    leftChild = this.values[leftChildIdx];
                    if(leftChild.priority < element.priority) {
                        swap = leftChildIdx; 
                    }
                }
                if(rightChildIdx < length) {
                    rightChild = this.values[rightChildIdx];
                    if(
                        (swap === null && rightChild.priority < element.priority) 
                                               ||
                        (swap !== null && rightChild.priority < leftChild.priority)
                     ) {
                        swap = rightChildIdx;
                    } 
                }

                if(swap === null) break;
                this.values[idx] = this.values[swap]
                this.values[swap] = element;
            }
        }
    }

    class Node {
        constructor(val, priority) {
            this.val = val;
            this.priority = priority;
        }
    }

    let ER = new priorityQueue();
    ER.enqueue('common cold', 5)
    ER.enqueue('gunshot woind', 1)
    ER.enqueue('high Fever', 4)
    ER.enqueue('broken arm', 2)
    ER.enqueue('glass in foot', 3)
A cutting-edge integration of blockchain and gaming
Tags: blockchain, python, ux, uiweekly
Published: 2020-10-26 09:54:31

Binary Options is one of the relatively new asset trading services, and it has certainly gathered a huge number of followers over the last few years. The integration of [blockchain technology](https://evrone.com/blockchain) in a binary options trading framework eliminates any concerns about fraud.

Bulls vs. Bears is a blockchain-based binary options trading platform that uses Tronix (TRX) crypto as the main digital currency for making trades, where players can trade on 30-second candles.

[Learn more about how we helped the Bulls vs. Bears team develop this safe betting platform from scratch](https://evrone.com/bulls-vs-bears)