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

---
title: "Daily Developer Jokes - Monday, Oct 12, 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%2012%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/5e12589f412c5.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 angry function exceed the callstack size?

___A:___ It got into an Argument with itself
 -->
Have you migrated to Yarn 2?
Tags: discuss, npm, yarn, javascript
Published: 2020-10-12 11:52:28

Yarn 2 has been released for 10 months now.

{% post arcanis/introducing-yarn-2-4eh1 %}

Have you migrated or do you still use yarn 1?

I am still using yarn 1 for some projects or staying with npm. I found that many open-source projects don't have a plan to migrate yet. Also, many libraries don't support Yarn 2 at this moment for example.
Git aliases for increased productivity
Tags: git, productivity
Published: 2020-10-12 11:45:41

It's been almost a year since I posted my first article on git aliases. Since then I've applied a number of additional aliases in my workflow. Be sure to check out my first article [here](https://michaelzanggl.com/articles/git-nah-and-more-handy-aliases/) to how I use "git update", "git nah", and "git amend".

---

Without further ado, here they are:

## git arrange

This command lets you arrange all commits you made in a feature branch. Perfect for cleaning up commits before creating a PR.

#### Register alias

```bash
git config --global alias.arrange "rebase -i develop"
```

## git recent

If you often find yourself switching branches, this is a lifesaver. It will list all branches sorted by recent use.

#### Register alias

```bash
git config --global alias.recent "branch --sort=-committerdate" # most recent branches
```

## git stash-unstaged

Ever wanted to stash your code, but keep everything you staged (with `git add .`)

#### Register alias

```bash
git config --global alias.stash-unstaged "stash save --keep-index -u"
```

## git undo-commit

This will allow you to remove the latest commit and move all the changes back into your working directory. With this, I often prefer committing instead of stashing code that I need for later, because it makes it so much simpler than searching through a list of stashes.

#### Register alias

```bash
git config --global alias.undo-commit "reset HEAD~ --soft"
```

---

What aliases did you apply in your workflow? Let me know in the comments ✌️

---

If this article helped you, I have a lot more tips on simplifying writing software [here](https://michaelzanggl.gumroad.com/l/intent-driven-development).
Azure Storage – The Unsung Hero
Tags: azure, tutorial, webdev, cloud
Published: 2020-10-12 11:41:09

#### 📺 038 - Shannon Kuehn 🎙️ Frank Boucher

{% youtube KpPz3s5GwwE %}

---

Storage is the foundation of so many services. In this episode, Shannon will present a lot of them. To make it easier to get on board she will start by exploring the services by Azure types: (IaaS, PaaS, SaaS). When we work in the cloud one of the challenges is to decide where to save our data. Wich service is the best for our situation and application? During her tour, Shannon will provide examples to help us answer those questions.

In the second part of the stream, Shannon will jump into the Azure portal and create an Azure Storage account show where to find information, provide tips, introduce great tools, and answer question of the viewers.

You have some question? You would like to be part of the [All Around Azure live](https://twitter.com/allaroundazure)? Join us twice a week on Monday & Tuesday at 11am PST/ 2pm EST / 7pm BST.

---


### Useful Links

#### Azure Storage Migration:
🔗 [Get started with AzCopy](https://docs.microsoft.com/azure/storage/common/storage-use-azcopy-v10?WT.mc_id=allaroundazure-devto-shkuehn)

🔗 [Get started with Storage Explorer](https://docs.microsoft.com/azure/vs-azure-tools-storage-manage-with-storage-explorer?WT.mc_id=allaroundazure-devto-shkuehn)

🔗 [Azure Data Box: https](https://azure.microsoft.com/services/databox/?WT.mc_id=allaroundazure-devto-shkuehn)

🔗 [Offline media import for Azure](https://azure.microsoft.com/services/databox/offline-media-import/?WT.mc_id=allaroundazure-devto-shkuehn)


#### Azure Storage Security:
🔗 [Security recommendations for Blob storage](https://docs.microsoft.com/azure/storage/blobs/security-recommendations?WT.mc_id=allaroundazure-devto-shkuehn)


#### Azure Disks:
🔗 [Introduction to Azure managed disks](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview?WT.mc_id=allaroundazure-devto-shkuehn)


#### Azure Files:

🔗 [What is Azure Files?](https://docs.microsoft.com/azure/storage/files/storage-files-introduction?WT.mc_id=allaroundazure-devto-shkuehn)


#### Extra:
🔗 [SOSP Paper - Windows Azure Storage](https://azure.microsoft.com/blog/sosp-paper-windows-azure-storage-a-highly-available-cloud-storage-service-with-strong-consistency/?WT.mc_id=allaroundazure-devto-shkuehn)



### Learn more about Shannon Kuehn

🔗 [@shankuehn](https://twitter.com/shankuehn)

🔗 [LinkedIn](https://www.linkedin.com/in/shannonkuehn/)



### Find Us On

📺 [Twitch](https://www.twitch.tv/microsoftdeveloper)

🔗 Twitter [@allaroundazure](https://twitter.com/allaroundazure)

☁️
Run your code on a quantum computer
Tags: quantumcomputing
Published: 2020-10-12 11:31:10

Hello! Today I wanted to share a great quantum computing website with you, Qiskit.org. On this website you can already run code on a quantum computer for free. The website is from IBM and you can learn about quantum computing as well. If you run code it may take a few days until you get a result due to the high demand, but I think its worth the waiting.

Qiskit is also a development library with which you can:

1. Build a quantum circuit consisting of quantum and/or classical registers
2. add operations to the circuit
3. Simulate the circuit

There are other quantum computing libraries as well, like Cirq from Google, Forest from Rigetti and QDK from Microsoft. Which good sources for learning about quantum computing do you know? Have a nice day. 🙂
So, I heard you like open source games
Tags: opensource, games
Published: 2020-10-12 11:24:05

This is a post aming to show you some open source games, you can start hacking on today. I think open source games, among other things, have a huge advantage in that they probably will outlive their commercial counterparts. As the availability of many AAA games are more-or-less tied to cloud gaming platforms, it is becoming increasingly important that we have these alternatives.

Below you'll find some of my favorites. Maybe you already know them? If you're working on your own game and/or looking for contributions, feel free to add it in the comments.

### Elite/Privateer Clones
Oolite: http://www.oolite.org/
Pioneer: https://pioneerspacesim.net/

### Endless Sky
https://endless-sky.github.io/

### The Battle for Westnoth
https://wesnoth.org/

### Chocolate Doom
https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom

### Civilization
http://www.freeciv.org/

### FreeCol
http://www.freecol.org/

### Transport Tycoon
https://www.openttd.org/development.html

### Xonotic
https://www.xonotic.org/
(Gitlab link at the bottom of the page)

### SuperTuxKart
https://supertuxkart.net/Main_Page

Fellow dev.to user Thamara Andrade has made a great article on how to contribute to Open Source, you can find it here: 
https://dev.to/thamara/contributing-to-open-source-a-brief-how-to-i36

Wikipedia is a great source: https://en.wikipedia.org/wiki/List_of_open-source_video_games
Serverless Functions Saved My Life
Tags: devjournal, codenewbie, womenintech
Published: 2020-10-12 11:10:11

_This post was originally published on October 12, 2020 on [my blog] (https://alexlsalt.github.io/blog)._

As I was clearing out my email inbox this morning, I came across the exact solution to my problem last week (when I couldn't figure out how to hide my environment variables without creating a server).

And that beautiful solution is a serverless function in Netlify!

And to think I was *this* close to deleting a Netlify marketing email with the key that unlocks this week's universe - dodged a bullet there!

So today's work is developing a serverless function that can access my secret API key (for my podcast website) and then be able to render the podcast episodes from the podcast host's third-party API instead of having to rely on hard-coded data.

Looking forward to it! And thank you to the several individuals who helped me out in my last post - this is truly a wonderful community of helpful folks!


----------


P.S. Did you know I have a podcast with new episodes each Wednesday? Go listen [right over here >>] (https://www.ladiescodecollective.com/podcast)

![The Ladies Code Collective Podcast cover art](https://dev-to-uploads.s3.amazonaws.com/i/e9bnxljvfrdjeti7fvbr.png)
How to add Google/Bing search to your web page?
Tags: html, google, bing
Published: 2020-10-12 11:07:30

Adding Google/Bing search to your website is as easy as adding a HTML form to your HTML page.

An article with samples:

https://fullstackdeveloper.guru/2020/10/12/how-to-add-google-bing-search-to-your-web-page/
Need to Know About Drafting a Resume
Published: 2020-10-12 10:50:00

The transition from military life to civilian life can be This is particularly true when you’re hoping to land a traditional job after several years of experience in the military.
Challenges lie in translating skills and experience into something employers will understand, selling yourself on a one- or two-page document, and making your resume easy to read and understand.
Here are some things veterans need to know in order to draft a great resume:
1. Focus on accomplishments
Employers like to see what you achieved at your last job. They don’t want you to list responsibilities. Tell them something about your experience in the military. Did you manage a large number of subordinates? Were you in charge of valuable equipment while doing your job? Did you save the organization money, make a considerable amount of sales, etc.? List these as bullet points under each job as opposed to simply listing responsibilities or duties.
2. Use civilian language
Don’t include acronyms and titles on your resume that a potential employer may not understand. For instance, if you were a radio operator in the military, you might instead call it “Telecommunications Specialist” on your resume. Or if your title was “Navy Boatswain’s Mate,” you could instead call it “Vessel Maintenance Crew” or something similar.
This also applies to duties and accomplishments. Don’t use words and phrases that a potential employer might not be familiar with, such as “air assault operations.” Instead, explain exactly what you did and why your role was important for success.
3. Sell yourself
Think of your resume as selling a product: you. Don’t think of your resume as a document that details your job history — instead, remember that it should highlight your best qualities and accomplishments to show an employer why you’re a good candidate for the job. Basically, you need to sell instead of tell.
On the off chance that you don't generally have an eye for resume formatting, get assistance https://resumewriterreview.net/
D1 mini 啟始時要注意的 3 個腳位
Tags: esp8266, d1mini
Published: 2020-10-12 10:48:47

D1 mini(ESP8266) 的 IO 腳雖然看起來好像都可以隨意使用, 但是在啟始時 (上電或是 RESET) 必須注意 D3(GPIO0)、D4(GPIO2)、和 D8(GPIO15) 這 3 隻腳。其中：

- D3 和 D4 必須保持在高電位, 因此在 [D1 mini 的電路](https://docs.wemos.cc/en/latest/_static/files/sch_d1_mini_v3.0.0.pdf)中預設就有加上上拉電阻。
- D8 必須保持在低電位, 因此在 [D1 mini 的電路](https://docs.wemos.cc/en/latest/_static/files/sch_d1_mini_v3.0.0.pdf)中預設就加上了下拉電阻。

如果你在這些腳位上先接上電子元件, 然後再接上電源, 就會發現 D1 mini 開不了機, 例如：

- 在 D3 或是 D4 接無緣蜂鳴器, 無緣蜂鳴器的另外一腳接地, 這會讓 D3 或是 D4 腳電位拉低到低電位, 使得 D1 mini 無法正常啟動。(實際上會是個高頻的方波, 所以不但無法啟動, 還會聽到刺耳的高頻音)
- 在 D8 接一個 DHT11 模組的 data 腳, 這時因為 DHT11 模組電路上有個上拉電路, 所以會讓 D8 腳無法保持在低電位, 無法正常啟動。

因此, 再配置個別元件的時候, 就要根據元件的特性, 避免因為這些腳位而導致無法正常啟動。
When Should You Code
Tags: codenewbie, webdev
Published: 2020-10-12 10:38:46

In this article I will tell you when should you code.

Well there is no particular time to code, that is true but nobody has all the day to code, they have to sleep, eat, work, job, spend time with family and friends. Well then...

# When should you Code ???
There are **two times in a day when someone should code**

1) Early morning: Well this is a great options for the **"Early Birds"**. You can wake up earlier than your normal routine to code.

**Advantage**:
If you wake up early your mind will be fresh and full with ideas and there would be no one to disturb you.

**Disadvantage**:
Well the disadvantage is that you will have to sleep early or your sleeping time will be effected.

2) Night: Well If You are like me this would be a great options for you and all of the **"Night Owls"*, You can sleep late and code at that time.

**Advantage**:
If you sleep late you will be able to code silently and there would be no one to disturb you.

**Disadvantage**:
Well the disadvantage is that you will have to wake up late or your sleeping time will be effected.

#### How Much Time??
If you are beginner you should give about 2 - 3 hours, intermediate should give about 4 - 5 hours and advanced developer should give about 6 - 7 hours a day.

Well then how would you find out what time you should go for. The answer is simple try out both and see what is best suited for you.

Well Then Thank You For reading, hope this helped you.

Type in discussion what you are a **"Early Bird" Or a "Night Owl"**.
My semester break project: Unsilence
Tags: python, silence, university, college
Published: 2020-07-26 21:00:53

---
title: My semester break project: Unsilence
published: true
description: A Software to detect and delete silence
tags: python, silence, university, college
//cover_image: https://direct_url_to_image.jpg
---

## Introduction

Unsilence is an **open-source tool** that **removes silence** from a media clip of your choice (audio, video).

You can use it to **speed up** videos without changing the audible speed, so you can understand everything, but get through a video **faster**.

### Exemplary use cases

- You are a college student and watch your lectures online (but have access to the video files). Instead of just increasing the playback speed to ~1.5x, you can remove
    the parts that do not contain any value, like your lecturer thinking or waiting for something. But instead of cutting out these silent parts, speeding them up by a 
    different, much faster factor (think 6-8x) makes you still able to follow what is happening, so drawing or writing with no speech is sped up, which makes it far more pleasant to watch
    
- You want a video editor that automatically cuts any time you talk (or make any sound). That could be useful for manual time lapses
    (you make a sound every time a short segment should be recorded), or for very fast jump cut videos with no manual editing required
    
- You want to have some fun and remove all the audible parts from a video, leaving only the parts where nearly silent noises are in the video (breathing, writing, ...)

You can check it out here: [GitHub](https://github.com/lagmoellertim/unsilence)
Convert Python Script To Exe File Using Pyinstaller
Tags: python, linux, computerscience
Published: 2020-10-12 10:19:29

“How to convert Python Script to .exe file?” – Every python developer asks this question when they want to share their developed python application to the outer world. In this blog, we will take a detailed view on how to convert our python program to an executable file using a python module i.e pyinstaller.

##Why Can’t Share .Py File?
While developing in python, we install many packages and use them in our program. Those installed packages are present in our development environment.

When we share our python file to another machine, for that python program to run on that machine the same packages should be present.

One easy way to install all the packages is to use the requirements.txt file which has all the list of installed packages needed for that python program to run.

###Fill The Requirements.Txt File
This command should be executed on the development environment of the python developer.

Fill requirements.txt file
```
$ pip freeze > requirements.txt
```
###Install Packages From Requirements.Txt File
This command should be executed on the machine where the python packages are to be installed to run the shared .py file.

Install packages from requirements.txt
```
$ pip install -r requirements.txt
```
But what if, the developer doesn’t want to share the requirenments.txt file and still want to run that developed application on another machine.

This problem can be solved when we convert the python script file (.py) to an executable file (.exe).

The obtained executable file can run on the windows platform and it contains all the packages needed to run the python program.

##What Is Pyinstaller?
Pyinstaller is a python package that bundles a Python application and all its modules/dependencies into a single package.

This makes tasks easier for the user, as the user can run the bundled app without installing a Python interpreter or any module on the machine.

Pyinstaller also supports many python libraries like NumPy, PyQt, Django, wxPython, and others.

Learn more about how to [convert python script to exe file](https://hackthedeveloper.com/convert-python-script-to-exe-pyinstaller/).
Playing with a sine wave
Tags: showdev, javascript, math, maths
Published: 2020-10-12 10:17:55

---
title: Playing with a sine wave
published: true
description: A toy project on codepen.io demonstrating a sine wave and how to change its properties.
tags: showdev, javascript, math, maths
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/sf4cr1t4h07fm053tak5.jpg
---
I was inspired to make a this toy project by a question on Stack Overflow asking about generating sine waves.

{% codepen https://codepen.io/schmellen/pen/LYZVPVq %}

You can adjust the frequency, amplitude and phase of the wave. The chart spans two seconds. Frequency can be set between 1 and 100Hz, mostly because anything above 100hz becomes indistinguishable at this resolution. Amplitude can be set between 0 and 1. Phase can be set between 0 and 2&pi; (well kinda, javascript maths being what it is).

There is a validation error that pops up on the phase slider, due to ieee floating point rounding and me wanting the slider to move in steps of &pi;/100. I'm not sure the best way to get rid of that.
HacktoberFest 2020
Published: 2020-10-12 10:06:56

I am a 15 year old student, learning python. Can i participate in the fest?
I have made 4 PRs they have been merged do i still have to wait 14 days?
Also, is digital ocean delivering to India?
Will there be any Delivery charges? In what sizes is the shirt available?

HAVE A NICE DAY!
Ultrasonic Sensor (HC-SR04) With Arduino Complete Guide
Published: 2020-10-12 04:56:33

Vcc- Connect to 5V of positive voltage for power
Trig- A pulse is sent from it for ranging more for object detection
Echo-check the object has been detected or not. If the signal comes back means the object has been detected, if not object has not been detected.
GND- It means Ground terminal, It completes the pathway of the power.
#ULTRASONIC SENSOR
This ultrasonic distance sensor provides steady and exact measurements of the distance between 2 cm and 450 cm. It has less than 15 degrees of focus and a range of almost 2 mm.

Ultrasonic sound waves have an extraordinarily high pitch that can not be detected by humans 

 This particular sensor transmits an ultrasonic sound that is around 40 kHz in frequency. The sensor has two main components-a transducers that generate an ultrasonic sound wave, while its echo is listened to by the other portion

Ultrasonic Distance Measurement Principle :
(https://hackthedeveloper.com/ultrasonic-sensor-hc-sr04-with-arduino-complete-guide/)
Hacktoberfest 2020 - Beginner Repository
Tags: hacktoberfest, beginners, python, opensource
Published: 2020-10-12 09:55:55

**Hacktoberfest 2020** is almost halfway up. For all **Python beginners** I have written a little script to calculate the absenteeism rate. That can still be improved.

- [PyAbsenteeism](https://github.com/kaeptnkrunch/PyAbsenteeism) (English Version)
- [PyFehlzeitquote](https://github.com/kaeptnkrunch/PyFehlzeitquote) (German Version)

If you want to **contribute, just proceed as always:**
1. Fork
2. Branch
3. Code
4. Commit
5. Push
6. Pull Request

I wish everyone a nice **Hacktoberfest 2020** and happy hacking and coding.
Remove product compare - Magento 2
Tags: magento2
Published: 2020-10-12 09:48:32

There is no configuration setting to remove Product "Compare" feature in Magento2. This can be done via layout file. (for 
example: in app/design/frontend/vendor/theme/Magento_Theme/layout/default.xml


```
<referenceBlock name="catalog.compare.link" remove="true"/>
<referenceBlock name="category.product.addto.compare" remove="true"/>
<referenceBlock name="catalog.compare.sidebar" remove="true"/>
<referenceBlock name="view.addto.compare" remove="true" />
<referenceBlock name="related.product.addto.compare" remove="true" />
<referenceBlock name="upsell.product.addto.compare" remove="true" />
<referenceBlock name="crosssell.product.addto.compare" remove="true" />
<referenceBlock name="catalogsearch.product.addto.compare" remove="true"/>
```

#### tested in Magento 2.4.0
How You can Boost Sales of Your Magento Store
Tags: magento, ecommerce, wordpress
Published: 2020-10-12 09:30:20

The E-Commerce sector thrives rapidly with approximately 12-24 million websites globally. Magento, a robust eCommerce development platform accounts for around 12% of all these sites. With the advent of Magento 2, the Magento eCommerce development has gained more popularity among retailers and entrepreneurs. However, growing competition in the eCommerce sector makes it difficult to find customers for increasing sales online.

Though better insights of various factors like online marketing trends, customers’ expectations, and online shopping behaviors of customers play a vital role in making your eCommerce shop successful, here we will discuss tips to boost sales from the Magento platform’s perspective. It is fair to mention that Magento is an excellent CMS (Content Management System) that provides all features and functionality to make your online shop interactive to get higher conversions.

Here are the top seven tips to consider for improving the online shopping experience of your potential customers. Whether you want to go for Magento website development or you have a Magento store, these tips can be useful. But, before moving to these tips, let’s quickly go through key factors that affect the shopping experience of your customers.

Read More: https://bit.ly/2Fr8K12