teleren/devto huggingface dataset:
How to say no in a nice way to a meeting invitation?
Tags: communication, meeting, programmer
Published: 2018-09-19 20:06:25

---
title: How to say no in a nice way to a meeting invitation?
published: true
tags: communication,meeting,programmer
canonical_url: https://howtosurviveasaprogrammer.blogspot.com/2018/08/how-to-say-no-in-nice-way-to-meeting.html
---

Most of the software developers hates meetings. Especially if they have no additional value for the development.

Ok it is clear, some of them are boring, but still needed. On the other hand some of them makes totally no sense for the whole development team. Of course just to decline a meeting is really not nice. What else can you do?

First of all never attend any meeting which has no agenda in the invitation. If so, then send an answer and ask for the agenda. Once you have an agenda go through and check which points can be relevant for you. If there are no relevant points ask the organiser why he/she invited you and what he/she would like to discuss with you. If there’s no “good” answer, you can simple tell that you feel it unnecessary to attend the meeting and if it’s ok you won’t join.

If only a part of the points are relevant for you, then you can suggest to the organiser to organise the agenda in a way that all relevant points are after each other and you are only attending to that part and not to the other ones.

If most of the points are relevant, but you still don’t wanna attend then check who are the other invited ones. If there’s someone else who has more or less the same knowledge in the relevant topics as you (like a teammate) then tell it to the organizer that you think it would be more effective (effectivity, it is an important keyword if you wanna ensure a manager!) if only one of you would attend. Once the organizer said yes to that ask the colleague if he/she plans to attend the meeting. If the answer is yes you don't need to attend.

All things summarized never tell "no" directly. Try to show that it is not really necessary for you to join the meeting and try to show that participation on the meeting would decrease your effectivity.

That’s the way what is working for me, but if you have any better idea feel free to share with us!  
  
RelaxedProgrammer
http://howtosurviveasaprogrammer.blogspot.com/
Coding makes us happy
Tags: happycoding
Published: 2018-08-09 20:31:09

---
title: Coding makes us happy
published: true
description: Happy coding everyone.
tags: happy-coding
---

After reading Ben's '[Ah to be the justin bieber of open source](https://dev.to/ben/ah-to-be-the-justin-bieber-of-open-source-4jog)', what strikes me is the following paragraph after someone's comment on Hacker News regarding "standard Rails mess".

> It's true. We are a pretty standard Rails mess. We didn't get here because we write perfect code. We got here because we care a lot about the community. I happen to think that now that we are open source, we may eventually live up to our status as an important web app in the developer community. But that is not where we are today.

It is the same with every project out there including my own. I suffer from anxiety and the thoughts of putting my own repo on Github or contributing to other repos available in case I get slated for it.

Then Ben finished with a simple sentence at the end of it:

> Happy coding ❤️

It is all too easy to forget why we enjoy coding in the first place. Have fun!
Python Scrapy Installation And Example Crawler
Tags: python, scrapy, webcrawler
Published: 2018-08-09 20:25:28

---
title: Python Scrapy Installation And Example Crawler
published: true
description: 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/dpf1jzsiy8n1tmdfxn1v.jpg 
tags: python, scrapy, web crawler
---

Scrapy is an open source framework written in Python that allows you to extract data from structural content such as html and xml. It is able to scraping and crawling on websites especially fast enough. First of all, you should install python packet manager, pip.


Installing with using pip:

```bash
pip install scrapy
```
Starting a new project:

```bash
scrapy startproject tutorial
```

When a scrapy project is created, a file / directory structure will be created as follows.

```
tutorial/
    scrapy.cfg            # deploy configuration file

    tutorial/             # project's Python module, you'll import your code from here
        __init__.py

        items.py          # project items definition file

        pipelines.py      # project pipelines file

        settings.py       # project settings file

        spiders/          # a directory where you'll later put your spiders
            __init__.py
```

Example spider:

```python
import scrapy

class QuotesSpider(scrapy.Spider):
    name = "quotes"
    start_urls = [
        'http://quotes.toscrape.com/page/1/',
        'http://quotes.toscrape.com/page/2/',
    ]

    def parse(self, response):
        for quote in response.css('div.quote'):
            yield {
                'text': quote.css('span.text::text').extract_first(),
                'author': quote.css('small.author::text').extract_first(),
                'tags': quote.css('div.tags a.tag::text').extract(),
            }
```

Scrapy spiders can scan and extract data on one or more addresses. With Scrapy selectors, the desired fields can be selected and filtered. Scrapy is supported by xpath scrapy in selectors.

For crawling:

```bash
scrapy crawl quotes
```

For writing output to json file:

```bash
scrapy crawl quotes -o qutoes.json
```
What state management you use?
Tags: javascript, statemanagement
Published: 2018-08-09 20:10:31

---
title: What state management you use?
published: true
description: ######Six Hey everyone! I'm search about state management lib, and i need to know what you use in your projects.
tags: javascript, state management
---

###### Hey everyone! I'm search about state management lib, and i need to know what you use in your projects.
Seeking Feedback
Tags: android, medium, writer, androidpie
Published: 2018-08-09 19:44:12

---
title: Seeking Feedback
published: true
description: People who are active writers at Medium, I am looking for some feedback for my recent article, Anyone would like to help!! 
tags: Android, Medium, Writer, AndroidPie

---
People who are active writers at Medium, I am looking for some feedback for my recent article, Anyone would like to help!!
https://medium.com/mindorks/android-9-pie-neither-pancake-nor-pineapple-say-hello-to-pie-161d6dd80850
Looking for an non-profit organization
Tags: python, training, nonprofit
Published: 2018-08-09 19:23:10

---
title: Looking for an non-profit organization
published: true
description: I'm looking for a non-profit organization to give Python trainings
tags: [python, training, nonprofit]
---

Hi there,

Quick post to let you know I'm looking for a non-profit organization to give Python trainings.

Since I'm living in Paris, France, you'll find more details (in French) on [my blog](https://dmerej.info/blog/post/je-cherche-une-asso/).

Cheers!

_Update: Found it! Thanks for your interest_

P.S: The follow-up article to [Bye bye Pylint](https://dmerej.info/blog/post/bye-bye-pylint/) is in the works, don't worry :)
Ah, to be the Justin Bieber of Open Source
Tags: meta
Published: 2018-08-09 19:22:17

---
title: Ah, to be the Justin Bieber of Open Source
published: true
description: As software developers we hope to deserve the success of this project as we grow over time.
tags: meta
---

In the past couple days, [dev.to](/) has racked up a lot of internet points. Since we launched as an open source project early yesterday, we have remained at the top of [GitHub's worldwide trending repos](https://github.com/trending).

![](https://cl.ly/3S0o0n2l381X/Image%202018-08-09%20at%201.55.57%20PM.png)

GitHub stars don't necessarily mean anything, but they also don't mean nothing. One way or another, there is an expectation that comes with popularity. People certainly correlate popularity with "greatness", or something along those lines.

{% twitter 760849549506195456 %}

A lot of people see this as a chance to learn from us, and of course, we hope to teach as much as we can —  especially to newer folks.  That said, most of the teaching will be peer-to-peer; from the top down, we don't have that much to offer. We are here to learn as much as anyone else.

{% link https://dev.to/michael/what-are-you-learning-from-the-devto-codebase-2na1 %}

This Hacker New comment tells a pretty typical story in terms of expectations:

> Looks like the standard rails mess :/ Don't get me wrong. From time to time i am going to look at other peoples rails code to learn, how they solved common problems in grown rails apps. Most oft the time i leave rather disappointed...
I like the spec for Comment#id_code_generated ;)

It's true. We are a pretty standard Rails mess. We didn't get here because we write perfect code. We got here because we care a lot about the community. I happen to think that now that we are open source, we may eventually live up to our status as an important web app in the developer community. But that is not where we are today.

We are popular for, in my opinion, all the right reasons. We have worked closely with the community every step of the way and have always strived to do the right thing. But in a sense, we're also famous for being famous, and as software developers we hope to deserve the success of this project as we grow over time.

Happy coding ❤️
Can i have a Chrome tab on vscode?
Tags: chrome, vscode, pluging, integration
Published: 2018-08-09 18:44:05

---
title: Can i have a Chrome tab on vscode?
published: true
description: chrome integrated on vscode
tags: chrome,vscode,pluging,integration
---

What I'm looking for is something similar to [this](https://github.com/FabianLauer/chrome-vs-code) but with more features
Would it be possible to have Dev.To community meetup?
Tags: discuss
Published: 2018-08-09 17:41:46

---
title: Would it be possible to have Dev.To community meetup?
published: true
description: 
tags: #discuss
---

![](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSjS0QRJz53FK9hBoxYFq5X4eiRlUJMjFAnn8OndvVo_qjX1J61)
Inspect your node application on a different machine
Tags: webdev, node, network, debugging
Published: 2018-08-09 15:41:39

---
title: Inspect your node application on a different machine
published: true
description: Use your Chrome to inspect a node app on a host.
tags: #webdev #node #network #debugging
---

## Problem

You wrote a node app, which works on your workstation but not on your server, and you plan to use your Chrome to debug the remote app.

## Warning

Debugging anything on a public server, especially on a production server, is an extremely typical way to a monday morning mistake. If your server runs in a container or in a virtual machine, you can use Docker or Vagrant to run an equivalent instance on your local machine, and the method below will still work, it will be even faster without the extra networking overhead. 

## Solution

Thankfully our problem is fairly easy to solve with the all powerful [SSH](https://en.wikipedia.org/wiki/Secure_Shell) command, which among other breathtaking features allows you to forward TCP connections from your local machine to your host or vica-versa. So we will forward connections directed to the node debugging port on our workstation to our host.  

1) On the host start your app with the `--inspect` switch

``` shell
$ node --inspect myapp
```

In the output you should seek a line like this. 

```
Debugger listening on ws://127.0.0.1:9229/e9580cde-b1ee-4ed1-a23b-e8178390b1b9
```

It tells us two important things. First the IP `127.0.0.1` ensures us that the debugger won't accept any connection from the network, which may have some shady characters lurking around, especially if you are doing this on the Internet against my warning, then let me hold your beer in awe.

Second the `9229` number just after the IP is the port number used by the debugger, eager to accept a connection from our local chrome.

2) Type the following command on the local machine.

``` shell
 ssh -L9229:localhost:9229 user@remote_hostname_or_ip
```

It will forward any TCP connections directed to your local 9229 port to the same port on the host.

3) If everything is fine, now you can debug your remote app the same way as the local one. Just put this line to your URL bar.

```
chrome://inspect/#devices
```

The following page will be presented to you.

![Screenshot showing Chrome's interface for inspecting devices](https://thepracticaldev.s3.amazonaws.com/i/sood2o247t3xf5ye3q92.png)

4) Just click on the inspect 

5) Hunt the bugs.

![A comic from XKCD where the programmer tells a story to his friend, that after a long debugging session found the sword of Martin the warrior, his friend assumes that he switched the puzzles in his story](https://imgs.xkcd.com/comics/debugging.png)
image source: [xkcd comic](https://xkcd.com/)
How do you style components with React Native?
Tags: discuss, javascript, reactnative
Published: 2018-08-09 15:26:52

---
title: How do you style components with React Native?
published: true
description: Styled components are great for React, but do they work with RN?
tags: discuss, javascript, react-native
---

I'm a huge fan of styled components and I use them extensively with React. I find the code much clearer without inline styles, and I can build some kind of UI Kit easily with it.

I can't recall where I read that, but it seems that they're not as great for React Native. Can anyone share their experience, and whether they have a similar solution?
Problem Solving Checklist
Tags: learning, programming
Published: 2018-08-09 14:43:53

---
title: Problem Solving Checklist
published: true
description: A checklist to myself on how to approach problems.
tags: learning, programming
canonical_url: https://monicagranbois.com/blog/programming/problem-solving-checklist/
---

I  was recently working on a problem from a tutorial.  The problem was basic: write some code that will build a Google search URL.  It had the following requirements:
* take a string to use for the search term
* specify the google domain to search
* use the 'num' parameter to limit the number of search results
* use the 'as_qdr' parameter to limit the date range 

I only had a limited amount of time to work on the problem (real-life constraints, not a limit imposed by the tutorial).  So, I jumped in and created a function that took all the required parameters.  "This is an easy problem", I thought. "I can get this done quickly!"

At the end of my time, my code didn't compile.  I had parameters that were not used and I had made a mistake in my understanding of the as_qdr parameter.

Instead of jumping in and trying to solve the problem all at once, I should have broken it into steps.  I know this, but I got caught by my own ego. I thought the problem was simple and I could solve it quickly.

So, here is a reminder to myself on how to approach problems, no matter how easy they may seem:

* Is it possible to manually test the requirements/solution?
    * In this case, it would be to try an URL in the browser. Example: [https://www.google.co.uk/search?q=cat+pictures&num=50&as_qdr=y](https://www.google.co.uk/search?q=cat+pictures&num=50&as_qdr=y)
* Pick one feature to implement.
    * In this case, there were four features: search term, domain, num, and as_qdr
    * For this problem, the search term is the best place to start.  The other 3 requirements refine the results of the search term
* Investigate and question any constraints. 
* Once that feature is working repeat the steps for the remaining features.

The benefits of this approach are:
* It breaks the task into manageable pieces.  
* I always have something to show for my work.  So, even if I run out of time, I have hopefully implemented one of the features. 

It is better to have a working solution for some of the requirements rather than a partial implementation for all the requirements. Why? Because if this were a real-world task I would have a product that I could potentially release. It may not have all the features, but it has some and they work. This is in contrast to having a bit of everything implemented and nothing working.

Hopefully, I will remember next time!
Repository-Specific Ignored Files in Git
Tags: git
Published: 2018-08-09 14:27:00

---
title: Repository-Specific Ignored Files in Git
published: true
description: See how to tell Git to ignore files without affecting your fellow contributors' gitignore!
tags: git
---

_Originally published at [hoelz.ro](https://hoelz.ro/blog/repository-specific-ignored-files-in-git)_

Have you ever been working in a Git repository and wanted Git commands like `git status` to ignore certain files, but you didn't want to contaminate the project's `.gitignore` file with your specific ignore rules?  Well, with `.git/info/exclude`, you can!

Let's say you want to ignore a file called `notes`.  I do this a lot, because I don't like polluting the revision history when I make changes to notes I have about a project.

Instead of doing this:

```
  $ echo notes >> .gitignore
```

do this:

```
  $ echo notes >> .git/info/exclude
```

`.git/info/exclude` is never shared between repositories, so you can keep some files to yourself without the extra output from `git status` and friends.

You can also add ignore patterns specific to your computer using `~/.gitconfig`; simply add the following (or something like it):

```
[core]
  excludesfile = /home/myuser/.gitignore
```

Now `/home/myuser/.gitignore` will also be consulted for ignore patterns!
Get the current folder in Node
Tags: node
Published: 2018-08-18 09:55:51

---
title: Get the current folder in Node
published: true
tags: node
canonical_url: https://flaviocopes.com/node-get-current-folder/
---

There are basically two ways to reference the current folder in a Node.js script:

- `./`
- `__dirname`

> Along with `./`, there is `../`, which points to the parent folder. They behave in the same way.

There is a big difference between the two.

Using `__dirname` in a Node script will return the path of the folder **where the current JavaScript file resides**.

Using `./` will give you the **current working directory**. It will return the same result as calling [`process.cwd()`](https://nodejs.org/api/process.html#process_process_cwd).

Initially, the current working directory is the path of the folder where you ran the node command, but that can be changed during the execution of your script, by using the [`process.chdir()`](https://nodejs.org/api/process.html#process_process_chdir_directory) API.

There is just one place where `./` refers to the current file path, and it’s in a `require()` call. In there, `./` (for convenience) will always refer to the JavaScript file path, letting you import other modules based on the folder structure.
Read CSV File using Node JS
Tags: node, javascript, webdev
Published: 2018-08-09 12:06:15

---
title: Read CSV File using Node JS
published: true
description: 
tags: #node #javascript #webdev 
---

I am currently working on a business project that exports the processed data to CSV file.  I wanted to process that into the dashboard. I can choose python or any other backend language to read the CSV file. However, I have found out that node js may be much better option. I already have the node on the front end side. So I thought If I can process this using node. And make it available in the dashboard so that I don't have to waste much time with other language. 

Here's simple code that got me started. You can also check out [Read CSV with Node JS](https://www.youtube.com/watch?v=ErfEKTrgq5Y&index=4&list=PLUY1lsOTtPeIFpuZEeQH2-5PDn4n3rpO7) video for alternative explanation. 

Check out the example code below that got me started. There's a lot more to be done to extend the below code. Like say if I wish to take the data from the mysql and export it to CSV then I have to change read to write operation. 

    const fs = require('fs'); 
    const csv = require('csv-parser');
    
    fs.createReadStream(inputFilePath)
    .pipe(csv())
    .on('data', function(data){
        try {
            //perform the operation
        }
        catch(err) {
            //error handler
        }
    })
    .on('end',function(){
        //some final operation
    });  

Here's the [CSV module](https://www.npmjs.com/package/csv-parser) that I have used. I think there are plenty of npm modules that you can check out. But the CSV parser seems to be simple and gets the job done. 

What's your favorite node module for the CSV parsing?
Using Strapi for Node.js Content Management with a React SPA
Tags: javascript, webdev, react, node
Published: 2018-08-09 17:45:03

---
title: Using Strapi for Node.js Content Management with a React SPA
published: true
tags: javascript, webdev, react, node
canonical_url: https://snipcart.com/blog/node-js-react-strapi-tutorial
---

![Using Strapi for Node.js Content Management with a React SPA](https://snipcart.com/media/203792/node-js-react-strapi-1.png)

A few months ago, we summoned our in-house Node.js expert to craft [a piece](https://snipcart.com/blog/javascript-nodejs-backend-development) about the state of its ecosystem.

In it, he never mentioned **Strapi.js**. 

What a fool. 🤦‍♂️

Sure enough, our readers put him back on track by suggesting this powerful Node.js API framework in the comments.

Today, to prove we took this feedback to heart, I'll make good use of Strapi. **I'll show you how to handle content management in Node.js with a React single-page application.**

Steps:

 1. Setting up a Node.js backend for Strapi with MongoDB.
 2. Creating appropriate content types in Strapi for the SPA.
 3. Building a React SPA (a basic online shop) with `create-react-app`.
 4. Bundling & deploying the Universal JS app!

In the process, I reflected a lot about this kind of *Universal JavaScript* stack and its place in the developer's space.

So let's get philosophical a bit before jumping into technical stuff.

## Node.js with React: Why go the Universal JavaScript way?

Only a few years back, building a full stack JavaScript app was pure fantasy. But things have changed.

![node-js-react-stack](https://snipcart.com/media/203785/javascript-everywhere.jpg)

Some might call it *Isomorphic JavaScript*, but there seems [to be a consensus](https://cdb.reacttraining.com/universal-javascript-4761051b7ae9) around the term *Universal JavaScript*. So I'm sticking with the latter here.

It all started with the MEAN stack (MongoDB/Express/Angular/Node)&mdash;the first go-to JS full stack. You can still opt for it today, but it would be a mistake to think it's the *only* available stack. 
  

→ Read the full post and technical tutorial [here](https://snipcart.com/blog/node-js-react-strapi-tutorial)