teleren/devto huggingface dataset:
Automating New OSX Setup #1.5 - A curveball
Tags: osx, bash, zsh, discuss
Published: 2019-10-02 15:21:35

Up until now, I've been using BASH as my default shell in OSX, and just learned today that with the next version of MacOS, Apple is [changing the default shell to zsh.](https://www.google.com/url?q=https://support.apple.com/en-us/HT208050&sa)

This is going to mean porting my stuff from [BashIt](https://github.com/Bash-it/bash-it) over to [Oh-My-Zsh](https://github.com/robbyrussell/oh-my-zsh) and also porting over everything in my dotfiles.

Anybody have any advice on moving to zsh?

EDIT - 

I'm now second-guessing switching to zsh?  Why?  Basically every system I'd ever connect to is going to have bash as it's default shell.  Maybe I'd be better off grabbing the latest bash release and installing it myself.
Open Source Montreal Hacktoberfest special meetup
Tags: hacktoberfest, meetup, opensource, montreal
Published: 2019-10-02 15:12:51

---
title: Open Source Montreal Hacktoberfest special meetup
published: true
description: A meetup for all things open source in Montreal, this month we're having a Hacktoberfest-themed meetup.
tags: hacktoberfest, meetup, opensource, montreal
---

The folks organized around the [Open Source Montreal](https://opensourcecities.github.io/montreal/) community do their best to organize some meetups from time to time.

This month we're hosting a special Hacktoberfest-themed meetup and Kim Noel will be talking about Open Source!

> We’ll go through a kick run down of the history behind Hacktoberfest, an intro to open source and a short demo about contributing – what a documentation contribution looks like, what a code sample contribution looks like, and maybe even checkout some core code contributions! We will also explore what it takes to create a community around your open source project and how to help ensure folks feel safe approaching and contributing to your OSS project.

After this talk, we plan to have lightning talks from the crowd - five minutes each - about open source projects you love or worked on. If you want to present anything just make sure to arrive a bit earlier so that we can get your name on the list.

## ✏️ take note:
9 October 2019 starting ~6:00pm
**Location:**
Upgrade Inc
1080 Beaver Hall Hill, 2nd floor
Montreal, QC

> ⚠️ If you live in Montreal or will be visiting during the time and want to attend, make sure to RSVP in our event page:
> 
> https://www.meetup.com/Open-Source-Montreal/events/264825988/

---

Note: This meetup follows the Conf Code of Conduct. Please abide by it, and please let the organizers know at the earliest moment if you feel someone else is violating the CoC. https://opensourcecities.github.io/montreal/code-of-conduct/
How to Web Scrape with Python Using 9 Lines of Code
Tags: python, scrape, startup, productivity
Published: 2019-10-02 15:10:14

Scraping is extracting data from websites. In this article, I will show you how to scrape links from a [test e-commerce](https://www.webscraper.io/test-sites/e-commerce/allinone) site with Python 3.

##Prerequisites
If you haven't done so already, install beautifulsoup4 and requests.
```pip install beautifulsoup4
pip install requests```

##Start Scraping!
{% gist https://gist.github.com/songthamtung/172c13f87cdacdbfe2270c011cb13622 %}

Here is the full snippet that you can copy and paste directly to your terminal, favorite text editor, or jupyter notebook.

To check if you did it correctly, the output for data should be something similar to:

`{'MSI GL62VR 7RFX': '/test-sites/e-commerce/allinone/product/326', 
'Dell Vostro 15…': '/test-sites/e-commerce/allinone/product/283', 
'Dell Inspiron 17…': '/test-sites/e-commerce/allinone/product/296'}
`

##That's it
Web scraping is great and can save you plenty of time when you want to quickly extract data from websites. The examples above are used for you to quickly get started. Of course there's more to it than what I showed above e.g. (crawling, pagination, viewing the DOM, authentication, cookies, etc). This is only the tip of the iceberg 😉.

Thanks for reading! Originally published on [The Startup](https://medium.com/swlh/how-to-scrape-with-python-9784030dca67).
Magento 2 Premium Request for Quote Extension - FMEextensions
Published: 2019-10-02 09:31:03

---
title: Magento 2 Premium Request for Quote Extension - FMEextensions
published: true
description: 
tags: 
---

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/4z7ue60nni47z65uif5n.png)
Increase your Store Sales by encouraging customers to request for quote and get a personalized cost estimate. The extension Premium Request for Quote helps you allow customers to ask price for a product in bulk. 
You can display the ‘Add to Quote’ button on Products and Categories.  The extension supports multiple types of Products, such as Simple, Configurable, Bundle & Downloadable products.

**Powerful Key Features**
Allow Users to Ask Estimates of Multiple Products
Enable ‘Add to Quote’ button to Products, Categories
Customize Add to Quote option by text, color
Allow specific customer groups to Request for Quote
Configure email notification, Manage All requests
Customers can add comment and view quotes in accounts

**MORE**
45 days money back
FREE lifetime support
FREE lifetime upgrades
2 Minutes installation
Developed by Magento certified developers
Verified by Market Place
Easy to install
Responsive Design
100% Open Source

Visit - https://www.fmeextensions.com/premium-magento-2-request-for-quote.html
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/uzhrqqai2vayygkn3yil.jpg)
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/o8g0nzgli72gul2cqz3g.jpg)
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/cz3cpmq17i170skabzaf.jpg)
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/77y72q53a73ikbce4hbb.jpg)
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/roammvr25wzur0nazlar.jpg)
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/pcnjl58bucdj1cz5fno9.jpg)
A CLI based Images to Slideshow Converter in Ruby
Tags: ruby, gem, slideshow, video
Published: 2019-10-02 15:07:17

Today I would like to share my new CLI based Ruby Gem that can convert images in a folder to a `slide-show` video with awesome background video with transitions.

https://github.com/shivabhusal/erika-slideshow

## How to use?

To compile images in `~/pictures/birthday`, you need to make sure files are named in proper order. I recommend you to prefix the files with number like:-

- `0 My first birthday.jpg`
- `1 My second birthday.jpg`
- `2 My second birthday.jpg`
- `3 My third birthday.jpg`
single command to compile

```bash
cd ~/pictures


erika g -s birthday -o mybirthday.mp4 
```

**This will generate video called `mybirthday.mp4`**

>**Note**: This is just tested in MacOS 10. Please test it in your machines and create issues in `github`. Feedback is really appreciated. 

> Don't forget to hit `Star*` button if you like. Really `star*` hungry.
#hacktoberfest progress 🐢
Tags: webdev, opensource, discuss, hacktoberfest
Published: 2019-10-02 14:59:26

Hi folks!

I have been quite busy at work so I haven't finished the #hacktoberfest yet, but here is my progress so far:

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/vs4pvml9dfe13bm5485w.JPG)

Both PRs made to module 2 of my friend's project 

{% github N0obCoding/Expanding-on-HTML-and-CSS %}

With only 2 PRs left, I think I'll be finishing by tomorrow night.

How is your progress going?... or I'm the only turtle who hasn't finished? >n<

PS: Is there a list of how many people have finished the event? If so, please link me
DevNation Live: Bengaluru 2019, Part 1
Tags: kubernetes, microservices, linux
Published: 2019-10-02 14:52:25

Our first DevNation Live regional event was held in Bengaluru, India in July. This free technology event focused on open source innovations, with sessions presented by elite Red Hat technologists. Watch a few of our presentations from the event here:


**9 steps to awesome Kubernetes and Red Hat OpenShift**
Kubernetes has become the de facto standard for hybrid cloud portable application architecture, and in this session, Burr Sutter shows why Kubernetes and Red Hat OpenShift provide the ideal solution for deploying and managing microservices in your organization.

This live hands-on session is for any developer who is interested in Linux containers and cloud-native application architecture. Our examples will primarily be in Java, as there is some special “care and feeding” related to Java in a container, but the lessons are applicable to any programming language.

Watch the complete presentation.
{% youtube 9RUQYDrQ-MU %}

**Java microservices and how to become cloud-native**
Many of us are on a journey from traditional monolithic applications to a more distributed cloud-native microservices architecture. In this session, Burr Sutter discusses the key microservices architecture principles and explains how and why to evolve to this approach. You’ll learn how to become a new cloud-native developer and architect.

Watch the complete presentation.
{% youtube VSofy6cssbo %}

**Kubernetes serverless application architecture**
In this session, Burr Sutter discusses serverless architectures, which have become a common approach in organizations that want to be more effective in DevOps and optimize their IT resources. This approach adds further flexibility to the next generation of microservices, and Knative helps running your microservices serverless workloads on Kubernetes/OpenShift be more agile and effective.

Watch the complete presentation.
{% youtube sVA2EoUAQNE %}

**Dreaming of streaming with reactive programming**
In this tutorial, presented by Edson Yanaga, you’ll learn about reactive programming and why it matters in this new cloud-native era. We’ll use live coding demos to explain how to be reactive and benefit from this brave new streaming world.

Watch the complete presentation.
{% youtube NzxjGuIGKHg %}

*These articles originally appeared on https://developers.redhat.com*
Free mailbox @ onbox
Tags: mail, dev, custom, domain
Published: 2019-10-02 14:40:33

On a need for a mail server but don't want complicated setup for mail server?

I found a service that offers mail server up to 3 account for free.
If you own a domain name that is parked you can get one easily.

### Register at [onbox.hu](https://onbox.hu)
### After log in get to the console app and set up your domain records

![Console app](//i.imgur.com/UDhIb5R.png)

### Enjoy the free mail account

At this time the service supports only hungarian language but as I've seen it is getting more and more features so I think there will be other languages added.
On the Moral Obligation to Decomputerize: programmers, liturgists, and Luddism
Tags: philosophy, discuss
Published: 2019-10-02 14:30:16

---
title: On the Moral Obligation to Decomputerize: programmers, liturgists, and Luddism
published: true
description: The role of a programmer, irrespective of technology, is that of a liturgist. 
tags: philosophy, discuss, meta
cover_image: https://thepracticaldev.s3.amazonaws.com/i/uw9zt4pxtepntlpxsjiz.jpg
---


*The role of a programmer, irrespective of technology, is that of a liturgist.*



For reasons both humanist and ecological, we all need to reconsider Luddism. As Ben Tarnoff says in [his recent Guardian piece](https://www.theguardian.com/technology/2019/sep/17/tech-climate-change-luddites-data): "To decarbonize, we need to decomputerize." He is absolutely right, and [as I have said before](https://dev.to/samosborn/post-progress-software-development-921), if we don't nurture that change internally, it will be forced onto us externally as social, economic, and technical institutionalism crumble under the weight of climate collapse.


It is time to take up the task of decoupling Information Technologies roles from digital terrain.  What does it look like when you point a programmer at a problem but don't let them use a computer? What happens when digitization is just one tool in a larger collection of information technologies being imagined, trained, and maintained by an IT department?
**What are we without our computers?**

---
The role of a programmer, irrespective of technology, is that of a liturgist.
---

Programmer's are the keepers of ritual. We design the abstract into the material and people it diversely with compassionately trained users. We imagine, design, and dictate repeatable patterns of behavior that capture arbitrary qualities as material objects to do the business of naturalist thinking. We speak a profound and academic language, rich in symbolism and multiple meanings; it is inaccessible to our congregations. We are the mediators of the arcane into the mundane, and populate daily life with enchantment and animation. In as much as our code has the ability to make meaning, it is identical to the ways in which liturgy and ritual make meaning.

---

> The work of expression, the creation of a fabulous environment to derive experience from, is not, however, the first or most pressing operation employing the religious mind. Its first business is rather the work of propitiation; before we stop to contemplate the deity we hasten to appease it, to welcome it, or to get out of its way. Cult precedes fable and helps frame it, because the feeling of need or fear is a practical feeling, and the ideas it may awaken are only incidental to the reactions it prompts. Worship is therefore earlier and nearer the roots of religion than dogma is.
-*The Life of Reason* Vol VII Book 3: *Reason in Religion*, by George Santayana
How to contribute to xLayers this hacktoberfest
Tags: hacktoberfest, xlayers, angular
Published: 2019-10-02 14:29:15


---
title: How to contribute to xLayers this hacktoberfest
published: true
description: 
tags: hacktoberfest,xlayers,opensource,angular
cover_image: https://xlayers.dev/assets/xlayers-ui-1.webp
---

### The **[Hacktoberfest 2019](https://hacktoberfest.digitalocean.com/)** is here. :D

This event is organized by digitalocean every year in October, to celebrate the open-source community and their contributions. It not only promotes the idea of open-source but also provides a great opportunity for developers across the world, to make contributions to ANY open source project.

If you have never made any open source contribution but are willing to, then this is the best opportunity for you to begin with and learn.  

Don't know how to make PR to any open source project? Well, you got to read this:

[Demystifying Open Source Contributions](https://dev.to/wassimchegham/demystifying-open-source-contributions-1moi)

In order to keep the momentum of open source, [we](https://xlayers.dev), the [xLayerians](https://github.com/xlayers/xlayers/graphs/contributors) also invite your contributions.

### **What is xLayers?**

[xLayers](https://github.com/xlayers/xlayers) is a community driven open source project which is a perfect companion for designers who want to see their design running ;) 

### **What does xLayers do?**

1. Convert your [sketch](https://www.sketch.com) prototype into code of [any framework](https://github.com/xlayers/xlayers/wiki).
2. Display your design directly on the web.
3. 3D rotation, preview mode and zooming support
4. Display metadata of your design such as size, position, layout structure, etc. 
   on the page.
5. Edit, run and deploy the generated code directly from your browser. Thanks to [stackblitz](https://stackblitz.com) :)
6. Download generated code as a zip file.


### **How to contribute to xLayers?**


It is very simple. 

1. Just go through [this link](https://github.com/xlayers/xlayers/labels/hacktoberfest) to get a list of hacktoberfest issues. 
2. Pick any issue you want 
3. Read our [contribution guidelines](https://github.com/xlayers/xlayers/blob/master/CONTRIBUTING.md) 
4. Get started. :)


Apart from the main xLayers project, we also have few more projects in our github [organization](https://github.com/xlayers) which you can look around:

1. [xlayers-lite](https://github.com/xlayers/xlayers-lite)  (Web Component of xLayers)
2. [xlayers-vscode-extenstion](https://github.com/xlayers/xlayers-vscode-extenstion)  (vscode extension of xLayers)


So what are you waiting for? Let’s begin. Afterall, it is open to all :)


If you have any doubt, feel free to comment here or [raise an issue](https://github.com/xlayers/xlayers/issues/new/choose), or [tweet/DM](https://twitter.com/xlayers_) us :) .
Find WordPress Function Declarations
Tags: replit, python
Published: 2019-10-02 14:19:31

---
title: Find WordPress Function Declarations
published: true
tags: replit, python
---

Early stages Python script that reads in a WP core file and creates a list of functions declared within the file.

Eventual goal is that this would be able to parse all of WP core and that it would leave off function and just provide the declaration.

developer.wordpress.org/reference, unfortunately only shows 49 pages of results for functions, so if there are more results, you don't get to see them. No easy way to browse all functions.

{% replit @davidshq/findwpfunctiondeclarations %}
Custom dashboard with Flask
Tags: python, flask, webdev
Published: 2019-10-02 14:16:54

In the previous article you learned <a href="https://dev.to/codesharedot/flask-dashboard-with-python-5a0k">how to setup a Flask dashboard</a>. That's great and all, but how do you get your own data in there?

![top items](https://thepracticaldev.s3.amazonaws.com/i/2yyygdw78c7q9bdmslvl.png)

I'll show you how to change the dashboard data, so that you can use the dashboard as user interface for your Python app.


## the template

Flask has app logic and templates. Templates are html files with the jinja template langue. Templates are stored in the directory /templates.

The top template is stored in /templates/includes/top-stats.html

Change into this:

```html
    <div class="col">
        <h5 class="card-title text-uppercase text-muted mb-0">CPU</h5>
             <span id="stats_traffic" class="h2 font-weight-bold mb-0">{{ cpu }}</span>
    </div>
```

where `{{` and `}}` is used to show the variable output 
(see <a href="https://pythonbasics.org/flask-tutorial-templates/">template language tutorial</a>).

## the view

Then open views.py
Scroll down to where it says:
   
```python
    # App main route + generic routing                                                                     
    @app.route('/', defaults={'path': 'index.html'})
    @app.route('/<path>')
    def index(path):
```

Then change the lines:

```python
    return render_template('layouts/default.html',
                                content=render_template( 'pages/'+path ) )
```
Into
```python
    return render_template('layouts/default.html',
                                content=render_template( 'pages/'+path, cpu=99) )
```

Now restart your local webserver. Open the index url and you'll see your variable in the dashboard:

![variable](https://thepracticaldev.s3.amazonaws.com/i/wee9irgpo9f42kldtavc.png)

That's it. The principle works for all templates and pages. You can pass any data, from database, url request or more.

**Related links:**
* <a href="https://flask.palletsprojects.com/en/1.1.x/">Python Flask module</a>
* <a href="https://gum.co/IMzBy">Create apps with Flask course</a>
* <a href="https://pythonbasics.org/flask-tutorial-hello-world/">Flask hello world tutorial</a>
Осторожно, лямбдлиоз!
Tags: javascript, программирование, кодинг
Published: 2019-10-03 08:47:29

---
title: Осторожно, лямбдлиоз!
published: true
date: 2019-10-02 14:04:41 UTC
tags: JavaScript,Программирование,Кодинг
canonical_url: https://dev.to/dashbird/lambda-functions-are-not-fault-tolerant-by-default-b7d
---

Несколько лет назад лямбда-функции были одной из самых хайповых тем. Считалось, что их повсеместное использование радикально снизит количество потенциально аварийных ситуаций в коде. Но время показало, что не такие уж они и помехоустойчивые. [Вот статья об этом](https://dev.to/dashbird/lambda-functions-are-not-fault-tolerant-by-default-b7d).
Welcome Thread - v43
Tags: welcome
Published: 2019-10-02 13:55:33

---
title: Welcome Thread - v43
published: true
description: Welcome to DEV! A thread of hellos and intros.
tags: welcome
---

![whale hello](https://media.giphy.com/media/3rgXBA2pMZn1PSuYtW/giphy.gif)

### Welcome to DEV!

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋 

**Great to have you in the community!**
Daily Challenge #81 - Even or Odd
Tags: challenge
Published: 2019-10-02 13:47:36

---
title: Daily Challenge #81 - Even or Odd
published: true
series: Daily Challenge
description: confirm whether the total of all the individual even numbers are greater than the total of all the individual odd numbers
tags: challenge
---

Given a string of numbers confirm whether the total of all the individual even numbers are greater than the total of all the individual odd numbers. Always a string of numbers will be given.

If the sum of even numbers is greater than the odd numbers return:

`Even is greater than Odd`

If the sum of odd numbers is greater than the sum of even numbers return:

`Odd is greater than Even`

If the total of both even and odd numbers are identical return:

`Even and Odd are the same`

***
_This challenge post comes from slater at [CodeWars](<https://codewars.com/>), who has licensed redistribution of this challenge under the [2-Clause BSD License](<https://opensource.org/licenses/BSD-2-Clause>)!_

_Want to propose a challenge idea for a future post?  Email **yo+challenge@dev.to** with your suggestions!_