teleren/devto huggingface dataset:
My first Hacktoberfest: giving back
Tags: hacktoberfest, django, womenintech
Published: 2019-11-01 20:00:44

This year I started working in tech and discovered this great community. It was here where I first heard about hacktoberfest.

It looked like a cool challenge with a good cause and I wanted to participate. When I started browsing through the issues labeled as hacktoberfest it felt a bit overwhelming. The projects all seemed very intimidating and I didn't feel like I could really contribute.

After reading [this posts](https://dev.to/torianne02/hacktoberfest-getting-over-the-fear-of-open-source-41kg), I was inspired again and gave it a second chance. This time, instead of searching for hacktoberfest issues again I decided to contribute to projects that had helped me in the past.

The first project I chose was [Django Girls tutorial](https://github.com/DjangoGirls/tutorial). Attending a Django Girls workshop changed my life this year and I wouldn't be working where I am if it weren't for them. So, I checked to see if there were any open issues I could help with and saw there was a problem with some links and I offered to help (my PR is now merged 🎉). 

The other project I worked on was mentioned by {% user molly_struve %} and it's a compilation of resources to help moms get into the tech world. It's called [Moms-Learn-Tech](https://github.com/BekahHW/Moms-Learn-Tech). I added a few resources, and since every resource has to be submitted as a PR, I was able to complete the challenge.

My PRs are in review now, but I'm happy I participated and I'll keep contributing to these projects that I believe have a positive impact in the world. 

Update: My PRs were validated, so hacktoberfest is officially over for me.
![Will Smith doing a happy dance](http://giphygifs.s3.amazonaws.com/media/b5LTssxCLpvVe/giphy.gif)
1.2 Download and install Python 3.x
Tags: python, beginners, webdev
Published: 2019-11-01 19:39:09

->> If you are a Linux user then no need to install python3.x because it is 
   preinstalled in linux OS.
->> If you are a Window user then follow the following steps to download and 
    install python3.x in your system.

Before going to this please known about Python2 vs python3 https://dev.to/mohit355/python-2-vs-python-3-mgn

#Downlaod Python3.x
  1. open the link www.python.org. this will take you to the offical site of the Python.
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/3l7ry2j323jgabphc5y7.png)

  2. Click on "Downloads".
  3. Latest version of Python will appear  with download option as shown in figure below.
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/bt92fam9fx1sr93o1w7r.png)

  4.  Click on "Download Python 3.x.x" x- may be any number.  your download starts now.

# Install Python3.x
  1. Open the file which you downlaod and double click on it,a window appear as shown below 
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/5xebdrtlb5a44etgo8b4.png)
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/5innp37uua7gsivy9qy7.jpg)

  2.  On that window two option appear tick both of them and then click on "Install Now". 
     ->>Please not forgot to add python to the path.

  3.  Now python installed in your system.

#Check python install successfully or not
  1. open your command prompt and type "python" .
     it will show you the latest version of python installed in your system.

#Open Python in your system
  1. When we install python then an IDE(Integrated development environment) is also installed along with that so now search IDLE in your system.
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/7ny85giy80vh6ovzrgca.png)

  2. Open it. It look like as shown below. you can python code here.
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/blaz5vhyh0k3pgwyofb3.png)
 You may change its background colour etc.

  3. Now you are ready with Python installed .let's try something write in  it
try to write " print("hello World")  " . Output is looking like this_
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/luvyt9tr91dd475d09yw.png)



#Different IDE for Python
  =>> You may use different IDE for writing Python code . Here i provide some of the useful IDE link that is used by the professional
  1. visual Studio Code - https://code.visualstudio.com/
  2. PyCharm - https://www.jetbrains.com/pycharm/download/#section=windows
  3. Anaconda - https://www.anaconda.com/distribution/

Next part Python Basic - https://dev.to/mohit355/python-basics-3cjd

=>> Ithink it will help you alot. If you have any problem please let me know in the comment box.


Thank You...
Load JSON to modal
Tags: help
Published: 2019-11-01 19:38:51

Hi, I need a bit help loading some JSON onto a modal window using Javascript. Here's the JSON:

`{
"Shirts":[{"id":63, "name":"Winter Style", "price":9.99,
 "options": [{"name":"large", "price":2.99},{"name":"Small", "price":1.99}]
}]
}`

I create markup with the parent product above e.g. **Winter Shirt and price** with an add to cart button, I would like to load a modal with the **options** and then add to the price of the parent product e.g. 9.99 + 1.99.

What would be a good way to go about loading the options on a modal and then matching it up with its parent product. There will be a few products that may or may not have the options.

EDIT:
Currently I have some items without the options which gets added to an array `items` with a javascript event. The item data are loaded onto a button with data attributes:

`<button class="proAdd btn-sm" data-id="2117" data-price="3.45" data-name="Basic Jeans">Add</button>`

On the event handler:

`var name = $(this).attr("data-name");
var price = parseFloat($(this).attr("data-price"));
var id = parseInt($(this).attr("data-id"));`

`var item = {"id":id, "name": name,"price": price}`

This is just part of the code:

`cartItems.items.push(item);`

I suppose I'd need to somehow check if the product contains options then combine it with the `item` object, I'd imagine it'd look something like this after adding the options:

`var item = {"id":id, "name": name,"price": price, "options":[{"name":large, "price":2.95}]}`

Not entirely sure how to go about it, Any help/techniques would be highly appreciated.
The Great Developer Burnout Survey 2019
Tags: productivity, programming, javascript, webdev
Published: 2019-11-01 19:31:30

---
title: The Great Developer Burnout Survey 2019
published: true
description: 
tags: #productivity #programming #javascript #webdev
cover_image: https://d2wnr6vhvo10lt.cloudfront.net/wp-content/uploads/2019/11/hans-eiskonen-qTxwKHZwl6M-unsplash.jpg
---


I'm pretty passionate about burnout. I've even done it myself a few times.

{% link https://dev.to/daraghbyrne/developer-burnout-is-real-2f0p %}

I've learned a few things along the way. 



Burnout sucks. I should know, as a veteran of a couple of major ones. 

Like most adverse experience, you can learn a lot from burnout if you approach it in the right way. I sure have. It’s part of the reason that I started my website - to document strategies and practices that help.

I like to write. I find it therapeutic, but it’s also a way to share super valuable information. 

My current project has a working title of “The Software Developer’s Burnout Bible”. It’s going to be a resource that covers everything you need to know about recognising, preventing and recovering from burnout. 

##I need your help! To keep me on track, I want to hear about your burnout experiences. 

It would be AMAZING if you could take a few minutes out of your day to complete this short questionnaire about burnout and how it’s shown up in your life as a developer. All results are naturally confidential. 

[Click here to take the survey](https://docs.google.com/forms/d/e/1FAIpQLSeulaJtHjLFSZNbnhqDB2WPMPmTr6KIU1W_WI656JnaI28EBw/viewform?usp=sf_link).

Many thanks!
Call for Contributions: Move All Cache Keys From Memcache to Redis
Tags: contributorswanted, ruby, redis
Published: 2019-11-01 19:23:02

---
title: Call for Contributions: Move All Cache Keys From Memcache to Redis
published: true
description: Looking for people who would like to contribute to DEV by moving some of our Memcache keys to Redis.
tags: contributorswanted, help, ruby, redis
---

Hey everyone!!! 👋

One of my first projects as DEV's newly minted SRE is to move all of our existing cache keys to Redis and I would love your help! Click on the Issue linked below to learn more!

There are lots of details in there about why we are moving to Redis, how we plan to do it, a guideline for helping out, and even a few example PRs to get you going. I think this is a GREAT opportunity for anyone looking to dip their feet in the open-source waters. Let me know if you have any questions and feel free to tag me(@mstruve on github) or the SRE team in your PR when you open it!

Happing coding 😃

{% github https://github.com/thepracticaldev/dev.to/issues/4670 %}
Showing desktop notification in C using libnotify
Tags: todayilearned, c
Published: 2019-11-01 19:08:52

---
title: Showing desktop notification in C using libnotify
published: true
description: showing desktop notification in linux
tags: #todayilearned #c
---

Let me just start by saying this: it works on my machine.

The relevant piece of code is this.

```c
#include<libnotify/notify.h>

NotifyNotification *notif;
notify_init("some-name");
notif = notify_notification_new(title, message, NULL);

notify_notification_show(notif, NULL);
```

Taken from here: [Working with libnotify](https://manishtech.wordpress.com/2009/03/29/working-with-libnotify/).

This is probably the fifth time I've done a version of this thing. Here is an example that uses a list of parameters to show information about a song. I use this to add desktop notification to [cmus](https://cmus.github.io/).

{% gist https://gist.github.com/VonHeikemen/93db9290a3e7a166df514cfc6e3423f2 %}

I know almost nothing about C, so if anyone has an idea of how this could be improved let me know.

---

If you find this article useful and want to support my efforts, [buy me a coffee ☕](https://www.buymeacoffee.com/vonheikemen).

[![buy me a coffee](https://res.cloudinary.com/vonheikemen/image/upload/v1618466522/buy-me-coffee_ah0uzh.png)](https://www.buymeacoffee.com/vonheikemen)
What is your process to document what you learn while writing code?
Tags: discuss
Published: 2019-11-01 18:17:32

Once a teacher told me:

> You don't need to know everything in software engineering but you should definitely know where to look for.

I document all the things I learn while coding. It's kind of a mini post. First I did it in Trello but know I feel more comfortable doing this in Dropbox Paper.

I'd usually include details about the *reason I was doing that feature* or why I was looking for that information to provide context, and also **add code snippets, images, links to repositories or issues, quotes** of people who commented on an important tip. Everything that looks important.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/5nsoddh5xeyetgxtbbvx.png)

For example, one day I was building a feature that required PDF generation and I did it in the local environment with `wkhtmltopdf`. Everything seemed to work fine in _staging_ environment but the day I tried it on _UAT_ it didn't work. It wasn't working at all in the cloud.

The issue was *DevOps team uses Docker Alpine images* and this meant I needed to take more care about the dependencies installed. The process to figure out how to solve this thing included terminal commands, GitHub issues, API calls to AWS S3, and more.

**All of the findings are well-documented**, with links, images, and more, in case anyone asks me or I get to be in a similar situation I'd know where to look for answers :)

That's kind of my process. **Do you have one?** If so, share it in the comments to learn new ways :)
➕ GIT: ⏬ Pulling from a different repository.
Tags: git, todayilearned
Published: 2019-11-01 19:01:48

Recently while working on a freelance project, i came across an interesting scenario where the previous developer has maintained 2 repositories, one in gitlab and the other in heroku.

The gitlab account is a repository to hold the code, and the heroku repository is linked to the build pipeline. i have made changes to the gitlab repository and the changes needs to be made to the master branch of heroku repository.

This is a scenario which i have never encountered before. After some investigation i found out that, you would do this when you want to create a new app from the same base or core (that's meant to be its purpose, but the scenario here is different).

Coming to the solution, 

- Add the other repository as a remote
`git remote add upstream https://www.gitlab.com/something/somrepo.git`
(upstream refers to the gitlab repository)

- Now the two remotes will be shown (Screenshot from Source Tree)
![Sourcetree](https://i.imgur.com/lt0U6PN.png)

- Now pull the changes from master branch of gitlab repository to heroku.
`git pull upstream master`              

- Push the changes to the repository , now your heroku branch will have all the changes from the master branch of gitlab.



<a href="https://twitter.com/JP1016v1"><img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/jp1016v1?style=social"> </a>
Clash Royale Gems Generator 2019 
Tags: clashroyale, clashroyalegemsgenerator, clashroyalgenerator, clashroyaleonlinegenerator
Published: 2019-11-01 18:58:31

Hi everyone, Let me tell you first about <a href="https://http://clashroyalegemsgenerator.club">Clash Royale Gems Generator</a> where you can generate unlimited gems in just a few clicks with some easy steps.

1. Go to URL
2. Enter your username
3. Select platform
4. Choose gems
5. Click on generate
6. Human Verification

Using these six easy steps, you can generate lots of gems direct into your clash royale mobile game account.
1.1 Python-2 vs Python-3
Tags: python, beginners, webdev
Published: 2019-11-01 18:29:01

{% link https://dev.to/mohit355/python-for-beginners-introduction-3-11k4 %}

In this Complete  series we are going to learn python 3. 
You people think that why Python 3 . so i  am going to tell you you why python3 in place of python2
 # Important difference between Python2.x and Python3.x
   1.Division operator
   2.print function
   3.Unicode
   4.xrange
   5.Error Handling

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/2agzfyqp1t6iqjrdihfv.png)

#1. Division operator
       If we are porting our code or executing the python 3.x code in python 2.x, 
it can be dangerous if integer division changes go unnoticed (since it doesn’t raise any error). I will discuss about the operators in upcoming parts

#2. print function
     In python2 print function is replaced by print() function.  

#3. Unicode
        In Python 2, implicit str type is ASCII. But in Python 3.x implicit str type is Unicode.

#4. xrange
         xrange() of Python 2.x doesn’t exist in Python 3.x. In python3  range() function is implemented

#5. Error Handling
       There is a small change in error handling in both versions. In python 3.x, ‘as’ keyword is required.

Python3 have so many in-builts library which makes its use easier on industry lebel,web developers and daily by daily python3 evaluated
to a new level.


next part: {% link https://dev.to/mohit355/download-and-install-python-3-x-1boo %} 

If you have any problem use the comment box and ask me what you want related to the topic
Thank You...
Linux desktop, what to choose
Tags: linux, desktop
Published: 2019-11-01 17:58:46

Linux comes with <a href="https://www.tecmint.com/best-linux-desktop-environments/">many deskop environments and window managers</a>. Some of the big names are Gnome 3, KDE, Mate, XFCE, Gnome classic and LXDE.

There are many window managers too (you can use Linux without desktop), like i3wm, window maker, blackbox and others.

So between all of these what should you use?

## Low memory use

For me, I need to have one that uses few memory, so only a few left:

* LXDE
* LXQt
* XFCE
* Window managers (i3wm, wm, bbox)

### Search

Of these, LXDE doesn't have a good search menu. Both LXQt and XFCE have a search option. So does i3wm. But neither wm and bbox come with an out of the box search solution.

Yes, it's possible to install some app search like Cerebro, Synapse,  Gnome Pie, ULauncher and all the others.

<img src="https://www.fossmint.com/wp-content/uploads/2017/02/Ulauncher-for-Ubuntu.png">

Thing is, I want the desktop or wm to come with this functionality out of the box. Not install another app on top of it.

That leaves:

* LXQt
* XFCE
* i3wm

### i3wm?

i3wm is really nice, but I haven't found a good desktop recording software that works well on it (Kazam does not). 

<img src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.redd.it%2Fd1mscg9xqj7z.png&f=1&nofb=1">

### lxqt

LXQT uses the Qt framework, which makes all the desktop apps look kind of the same (if you use the Qt apps).  From a desktop perspective, that's really good.

<img src="https://external-content.duckduckgo.com/iu/?u=http%3A%2F%2Fubuntuhandbook.org%2Fwp-content%2Fuploads%2F2015%2F02%2Flxqt-0.9-ubuntu-1024x575.jpg&f=1&nofb=1">

### xfce

Very fast, but based on X. Overall nice desktop environment.

<img src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.ghacks.net%2Fwp-content%2Fuploads%2F2009%2F05%2Fxfce_desktop.png&f=1&nofb=1">

### Wayland

Should switch to Wayland instead of X. Why is Wayland necessary?

Wayland allows better isolation between processes: one window cannot access resources from, or inject keystrokes into, another window. 

But to <a href="https://wiki.debian.org/Wayland">use Wayland</a>, have to switch to one of these desktops

* GNOME 3.20+
* KDE (Plasma 5.4)
* Enlightenment
* Hawaii 

Not a big fan of Enlightenment, maybe go for Hawaii. What do you use?
HotSpot - Offering people a warm Meal
Published: 2019-11-01 00:20:58

#HotSpot - Offering people a warm Meal

## Summary
* [Introduction](#introduction)
* [FAQ](#faq)
      


### Introduction
<a name="introduction"></a>

Here in Germany, the days become shorter and the nights longer and colder. Today again, I noticed that it gets very cold in the evening hours. People who don't have a warm home or a warm meal have it even harder. 

This thought simply didn't let go of me on the cold way home. I asked myself, how can we create something together where many people can give other people shelter, joy and a smile in a warm place? The answer to this question is actually very simple, but I still needed the whole way home until it became completely clear to me.

**Only together!**

Exactly, because only if we all pull together can we make the world a better place. 

Therefore I would like to call an official Open Sources Project into life which is about creating an app that runs both Android and IOS (*I thought, that we could use use Flutter to get a Codebase from day one for every Platform*) and can help people in any country in cold months.

***Because nobody should fall asleep in such cold days and nights without something warm in their stomach.***

##Let's work together..
..to make sure that for everyone who lacks a meal, a meal can be given.

**My ideas:**

A Google Maps Map showing the opened "HotSpots". ( A HotSpot is only considered opened when at least 4 people have signed up for it. ) 

Before opening a HotSpot, certain criteria must be met: 

- at least four participants have agreed to participate 👨👨👧👧 (See FAQ)

- Give the police in your area a hint that you are making a food/clothes/drink donation at "Place XXX".  Best also with a time indication about the approximate/estimated duration.👮🏽👮🏽‍♀️🚔 

- Always opens a HotSpot only in spacious/clear and public places. 🌳 

- The dispensing of alcohol or drugs is prohibited. 🚫 


Donations can only be deposited via a donation link in the app.  (See FAQ)


### FAQ <a name="faq"></a>

Q: ***Why do you need at least four people to open a HotSpot?***

A: It has the background that two people should stay on the scene and at least two more should go on the lookout for potentially needy people. 


Q: ***Why shouldn't donations be accepted locally?***

A: Often it is regulated in countries in such a way that one may collect donations in public places only then if one is an official organization or one possesses official permission of the city. 

**|—————————————**

What do you think of my idea ? 
Would you be able to inspire yourself for this project? 


Should the project find further interested parties, I would provide the appropriate GitHub repository. 


Thank you for reading and sorry if my English wasn’t that perfect. ☺️

***Looking forward to your feedback. Please feel free to write down your personal opinion and ideas of what could make this project even better. ***

— to be continued.. —

Kells
TIL about formatted strings that was introduced in Python 3.6
Tags: python, string, formatting
Published: 2019-11-01 17:39:39

---
title: TIL about formatted strings that was introduced in Python 3.6
published: true
description: Easy way to format strings
tags: python, string, formatting
---

If you want an easy way to format strings, using formatted strings would be a good way to go! I came across it [here](https://docs.python.org/3/whatsnew/3.6.html#whatsnew36-pep498) when trying to refactor an old code of mine from python2 to python3.

Here's how I was doing string manipulation when I first started off with python:

`val = 'This ' + str(a) + ' here multiplied by ' + str(b) + ' = ' + str(a*b)` 

And now I have learned to do this:

`val = f'This {a} here multiplied by {b} = {a*b}'`

So much easier to read!