teleren/devto huggingface dataset:
Setup NodeJS Project Space on Raspberry Pi Zero W
Tags: archlinux, raspberrypizerow, linux, node
Published: 2018-04-10 10:00:00

---
title: Setup NodeJS Project Space on Raspberry Pi Zero W
tags: archlinux, raspberrypizerow, linux, nodejs
published_at: 20180410T10:00Z
canonical_url: https://ladvien.com/install-nodejs-arch-linux
main_image: https://ladvien.com/images/RAN_Robot.png
series: RAN
published: true
---

### Setup the Arch Linux SD Card

This article will be building off a previous article, where I walked through a headless setup of Arch Linux on the Raspberry Pi Zero W (rp0w).  And if you aren't familiar with the term "headless setup," essentially, we are talking about setting up the SD card so you don't have to plug it into a monitor.  You can plug it in to your rp0w, boot it, and SSH in.

* [Installing Arch Linux on a Raspberry Pi with Immediate WiFi Access](https://ladvien.com/installing-arch-linux-raspberry-pi-zero-w/)

Now you've setup the Arch Linux card and SSH'ed lets go through setting up a NodeJS environment on the rp0w.  Luckily, there have been people smarter than me who've already done some heavy lifting for us.

Alright, start by SSH'ing into your Raspberry Pi.

### Running a NodeJS Install Script
Now we are at the Raspberry Pi command prompt we are going to run a script which will pull down the latest version of NodeJS built for ARM and install it to the Raspberry Pi.

But before we can do that we need to install a few helper programs

At the command prompt type and say "yes" when prompted.
```
sudo pacman -S wget
```
Wget is a package which allows direct download of Internet content from the command prompt.

Now, we will run a command which pulls a NodeJS installation script of the Internet and run it.  This script was written by `audstanley` and can be found at

* [NodeJS Raspberry Pi Github](https://github.com/audstanley/NodeJs-Raspberry-Pi)

If you like the script, you should go buy `audstanley` a coffee -- the link to do so is the Github page.

As of this writing, the script downloads the latest version of NodeJS for your architecture (that's the tricky part), installs it, then creates the appropriate symbolic links for NodeJS and [npm](https://www.npmjs.com/) to work correctly.

Ok, enough preamble.

To install NodeJS type
```
sudo wget -O - https://raw.githubusercontent.com/audstanley/NodeJs-Raspberry-Pi/master/Install-Node.sh | sudo bash
node -v
```

That's it!

We can now create a new node project by typing

```
mkdir my_node_project
cd my_node_project
npm init
```

If you want to learn more about NodeJS, I recommend the Udemy course:

* [The Complete NodeJS Developer Course](https://www.udemy.com/the-complete-nodejs-developer-course-2/)

I'm not getting kick backs; it's the course I used to get and liked it.  I actually used the Raspberry Pi for the code he walks through building and didn't have a problem.
Introduction to Aspose.CAD, Part 2
Tags: csharp, cad, convert, export
Published: 2018-04-10 09:52:23

---
title: Introduction to Aspose.CAD, Part 2
published: true
description: 
tags: csharp, cad, convert, export
---


If you're willing to use full version of <a href="https://products.aspose.com/cad/">Aspose.CAD</a> API, you'll need to apply your license in your software that uses Aspose.CAD library. In this article I'll show how to do this. It's simple!

There are two types of licenses, one is a traditional license file that is paid upfront, and another is a pay-per-use service key license, called Metered license. Let's dive a little deeper.

##License file
This one is very simple to implement. Just include these lines in your project somewhere:
````csharp
            License license = new Aspose.CAD.License();
			// Pass path to license file
            license.SetLicense("Aspose.CAD.lic");
```
After execution of these lines your Aspose.CAD libary will work in licensed mode, no file complexity limit, no watermark. As such, you'd probably want to put these lines somewhere within your software's startup code, before any other use of Aspose.CAD. <a href="https://apireference.aspose.com/net/cad/aspose.cad/license/methods/setlicense/index">SetLicense</a> also accepts <a href="https://msdn.microsoft.com/en-us/library/system.io.filestream(v=vs.110).aspx">FileStream</a>, so you can perform IO in code that's separate from license setup.

##Metered license
This is a license that measures amount of use of the Aspose.CAD libary, and syncs with Aspose licensing service to perform billing on per-use basis. It also lets you measure the registered amount of use. Everything is done via a static <a href="https://apireference.aspose.com/net/cad/aspose.cad/metered">Metered</a> class Take a look:
````csharp
            // Set public and private keys in Metered class
            Aspose.CAD.Metered.SetMeteredKey("*****", "*****");

            // Get metered data amount before calling API
            decimal amountbefore = Aspose.CAD.Metered.GetConsumptionQuantity();

            // Display information
            Console.WriteLine("Amount Consumed Before: " + amountbefore.ToString());
            
            
            // Do processing
            //Aspose.CAD.FileFormats.Cad.CadImage image = (Aspose.CAD.FileFormats.Cad.CadImage)Aspose.CAD.Image.load("BlockRefDgn.dwg");

            
            // Get metered data amount After calling API
            decimal amountafter = Aspose.CAD.Metered.GetConsumptionQuantity();

            // Display information
            Console.WriteLine("Amount Consumed After: " + amountafter.ToString());
```
As you see, it's equally simple to use.

That's all for now, stay tuned!

For more examples please visit the <a href="https://github.com/aspose-cad">Aspose.CAD GitHub</a> page. There's also <a href="https://twitter.com/Asposecad">Twitter</a> and <a href="https://www.facebook.com/AsposeCAD">Facebook</a> pages for news on Aspose.CAD.
The beautiful marriage of Python and MongoDB
Tags: python, mongodb
Published: 2018-04-10 09:05:42

---
title: The beautiful marriage of Python and MongoDB
published: true
description: 
tags: python, mongodb
---

I'm a PHP developer and managing big data stored with this language is not so easy.

Add data to the db is not a problem, but retrieving a summary and save it as csv is not to easy.

So this time I tried to use Python and it marvelous because:

* In a moment you can create the object containing the aggregate conditions;
* Saving the data as csv is easy.


```py
#!/usr/bin/python
import pymongo
import csv
import collections
from pymongo import MongoClient
db = MongoClient().report_impresa
pipeline = [
    {
        "$group": {
            "_id": "$CompanySummary.CreditRating.CreditLimit",
            "count": {"$sum": 1},
            "min_rating": {"$min": "$CompanySummary.CreditRating.CommonValue"},
            "max_rating": {"$max": "$CompanySummary.CreditRating.CommonValue"},
            }
    },
    {"$sort": {"_id": 1}}
]
descr = db.ggs.aggregate(pipeline)
values = {}
for att in descr:
    chiave = att["_id"]
    if chiave is None:
        chiave = ""
    if chiave == "":
        values[""] = att
    else:
        values[int(chiave)] = att

with open('fido.csv', 'w') as csvfile:
    writer = csv.DictWriter(
                            csvfile,
                            fieldnames=[
                                "_id",
                                "count",
                                "min_rating",
                                "max_rating"
                                ]
                            )
    writer.writeheader()
    for k in sorted(values):
        writer.writerow(values[k])
```
What is the best CI tool on iOS built by Unity using Bluetooth?
Tags: unity, ci, continuousdelivery, discuss
Published: 2018-04-10 07:54:08

---
title: What is the best CI tool on iOS built by Unity using Bluetooth?
published: true
description: I would like to know what is the best CI tool for building, testing, deploying applied to Unity app.
tags: Unity,Continuous Integration,Continuous Delivery, Discuss
---

I am working on a Unity Product (deployed as iOS app) using multiple Bluetooth devices. our team have a future work related to automation of building, testing, deploying. In Google search result, I found many CI tools and some examples and demos that show how to apply them to Unity app. But I couldn't know what tool is easiest to use for development. I'm a beginner for CI tool and I have experienced to use CircleCI for web service (Python).
 
What tool is the best to try to apply?
Our app includes these requirements.
  - Unity (build for iOS app)
  - Using Bluetooth via [iOS library](https://github.com/Polidea/RxBluetoothKit)
  - Using AWS Cognito via iOS SDK (for authentication)
Linux PAM Modules and How To Secure Linux Using Them
Tags: linux, security, beginners
Published: 2018-04-10 06:30:18

---
title: Linux PAM Modules and How To Secure Linux Using Them
published: true
description: 
tags: #linux #security #beginners
---

1 Linux-PAM Benefit
2 Linux-PAM Configuration
3 PAM Services
4 Management Groups
5 Control Flags
6 Modules Order
7 PAM Modules
8 pam_succeed_if Module
9 pam_nologin Module
10 pam_access Module
11 pam_deny Module
12 pam_unix Module
13 pam_localuser Module
14 pam_mysql Module
15 pam_cracklib module
16 pam_rootok Module
17 pam_limits Module

https://likegeeks.com/linux-pam-easy-guide/

Hope you like it.

Thanks.
GDG Johannesburg: IWD Women TechMakers
Tags: google, womenintech, firebase
Published: 2018-04-10 05:01:59

---
title: GDG Johannesburg: IWD Women TechMakers
published: true
description: GDG Johannesburg hosted a meetup to celebrate the women techmakers
tags: Google, WomenInTech, Firebase
---

GDG Johannesburg hosted a meetup on the 4th of April to celebrate International Women's Day. I attended the event and it was nothing but amazing.

#What is GDG Johannesburg?

GDG Johannesburg (Google Developer Group Johannesburg) is a local South African community for developers who have a keen interest in Google's developer technologies. It is organized by Rebecca Franks, Christoff Jacobs, Joshua Leibstein, Peter John Welcome, and Kurt Mbanje.

GDG Johannesburg runs meetups every first Wednesday of the month, and each event can have a variety of topics and speakers.

#Women TechMakers Meetup

This meetup was aimed at women, so as you would guess, the speakers were women.
Here's what the line up looked like: 

17:00 - Welcome Drinks and Snacks
17:30 - Intro to GDG & Women in Tech event welcome!
18:05 - Talk 1 (15 min) -What the hell is UX and Human Centred Design anyway? (Niki De Bruyn)
18:25 - Talk 2 (15 min) - Enhancing your app with Firebase (Mbalenhle Ndaba)
19:00 - Talk 3 (45 min) - Building an artificial John Lennon with Keras (Jade Abbott)
19:45 - End Drinks and Prizes

I thoroughly enjoyed each talk and I have learnt so much from the ladies. The firebase talk was a bonus for me as I wanted to start using it for my future android projects.

#Prizes
I managed to win myself a discount voucher on any JetBrains product of my choice. I won the voucher due to the fact that I tweeted the most about the meetup.
At the end of the talks, we also had to fill in a survey, I also won a T-Shirt for that, but I was feeling generous and I decided to hand the T-Shirt to another lady in the audience that hadn't won one yet. 

Overall, the meetup was fun and informative, also considering that it was my first time attending a meetup, ever! 

Did I mention that there was pizza and cupcakes? Well, there was pizza and cupcakes. 

https://thepracticaldev.s3.amazonaws.com/i/6rdh23kf2gawhtqytl4r.jpg
https://thepracticaldev.s3.amazonaws.com/i/ampddwg4gn455qeefqtc.jpg
https://thepracticaldev.s3.amazonaws.com/i/ktau3zlzhyiqhtk3u4xt.jpg


**GDG Johannesburg information extracted from https://www.meetup.com/GDGJohannesburg/
Confidence level. Do you trust devs that extract duplicated code to funtions by hand instead of using IDE support?
Tags: discuss, confidencelevel, refactoring
Published: 2018-04-09 23:02:51

---
title: Confidence level. Do you trust devs that extract duplicated code to funtions by hand instead of using IDE support?
published: true
tags: discuss, confidencelevel ,refactoring
---
Need Help: Relational vs. Document-based Databases -- What are the pros and cons?
Tags: database, discuss
Published: 2018-04-10 02:16:55

---
title: Need Help: Relational vs. Document-based Databases -- What are the pros and cons?
published: true
description: I need help with the pros and cons of relational vs document-based databases.
tags: database,discuss
---

Hey guys! I need help with the pros and cons of relational vs document-based databases. We're building a progressive web app. I want to hear your thoughts on the comments below!
What interests devs/technical people about sales?
Tags: discuss
Published: 2018-04-10 00:03:10

---
title: What interests devs/technical people about sales?
published: true
tags: discuss
---

A few weeks ago, I sent a survey around a few online tech-related groups I'm on. I was looking for things to talk about on my blog, as I wasn't getting anywhere with the audience I wanted to sell to.

The #1 topic people wanted to hear me talk about was sales.

When I started as a programmer, sales was typically considered a nuisance because of the age-old problem of over-selling capabilities. Devs, of course, couldn't talk to the customer at _most_ companies, so the "sales engineer" role evolved to be a sales role for tech people.

I'm curious what everyone here thinks. Does anything interest you about sales?
Server-side rendering such as Next.JS side effects with protecting routes
Tags: discuss
Published: 2018-04-09 21:06:43

---
title: Server-side rendering such as Next.JS side effects with protecting routes
published: true
tags: discuss
---

Server-side rendering such as Next.JS brings many benefits, but when it comes to protecting routes, it brings its own wrinkles. For example, [this approach by Tyler McGinnis](https://tylermcginnis.com/react-router-protected-routes-authentication/) won't work. Another example is simply checking for some property in *localStorage* won't work in *getInitialProps*, because *localStorage* is a property of the global *window* object which does not exist on NodeJS. If you know of others, would you mind sharing?
Who's looking for open source contributors? (April 9 edition)
Tags: discuss, opensource
Published: 2018-04-09 18:26:55

---
title: Who's looking for open source contributors? (April 9 edition)
published: true
tags: discuss, opensource 
---

This is the call for contributions thread. If you posted in last week's thread you are welcome to post again here.

This is a weekly thing. The sooner you add your comment the more exposure you get 😋.
Outsource Data Mining Services India
Tags: webdatamining
Published: 2018-04-09 18:03:13

---
title: Outsource Data Mining Services India
published: True
description: Searching for the best outsourcing data mining company? Data Reflects is leading India based data mining services company. Our main goal is to deliver 100% customer satisfaction. contact end-to-end customized data mining services at +91  9751 594 216.http://datareflects.in/outsource-data-mining-services.html
 

tags: Web data mining 
---
Outsource Web Research services India
Tags: webresearchservices
Published: 2018-04-09 17:58:57

---
title: Outsource Web Research services India
published: True
description: Searching for best web research company? Data Reflects is leading India based web research services company. Our main goal is to deliver 100% customer satisfaction. contact end-to-end customized online or internet research services at +91  9751 594 216.  http://datareflects.in/web-research-services.html

tags: Web Research Services

---
Am I supposed to follow back?
Tags: meta
Published: 2018-04-09 16:18:50

---
title: Am I supposed to follow back?
published: true
description: 
tags: meta
---
Over the past few weeks, I have been followed by quite some members, as a new suggestion feature has been implemented on this platform. As primarily a reader (noting that I only have 2 published articles, not counting this one), I really don't feel the need to follow those other members back. This is primarily because I don't know about their content and simply don't have the time to check all those people out. On the other hand it feels like I am disrespecting those people as I am not following back: it is nowadays almost a social obligation to do see (especially if one is on Facebook).

So dear followers, thank you for following me but I am sorry that you shouldn't expect a lot of articles from me. 

Do you guys follow everyone back or should I not worry this much about this? I really want to hear your opinion about this.
The 7 Most Popular DEV Posts from the Past Week
Tags: top7
Published: 2018-04-09 14:56:52

---
title: The 7 Most Popular DEV Posts from the Past Week
published: true
description: A round up of the most-read and most-loved contributions from the community this past week.
tags: icymi
cover_image: https://thepracticaldev.s3.amazonaws.com/i/xsr1z6iqv0pd7p3s6ns3.png
---

#1. $XXX,XXX 💸

A list of resources to find remote work - from job board recommendations to community threads to email lists. 

{% link https://dev.to/colinmtech/how-i-find-six-figure-remote-software-developer-jobs-23jd %}

#2. Z5M3MQ

Priyansh previously wrote about an [automated assignment reminder service](https://dev.to/presto412/how-i-automated-the-boring-university-stuff-with-python-5gib) to make university life easier. He references the captcha cracker he built to log into the student portal portion of automating the service. This post dives into the chrome extension that automatically cracks the captcha and fills in the text box. 

{% link https://dev.to/presto412/how-i-cracked-the-captcha-on-my-universitys-website-237j %}

#3. Why do you want to leave?

Developers are often given the advice that they should be constantly seeking higher paying jobs to 'build out their resume', or they should find _meaningful_ work and maybe start their own company. Anna explains why she didn't take either of those paths when given the opportunity.

{% link https://dev.to/annarankin/on-staying-4gfo %}

#4. From AJAX to Vue

An overview of JavaScript frameworks from the early 2000s to today. 

{% link https://dev.to/_adam_barker/the-super-brief-history-of-javascript-frameworks-for-those-somewhat-interested-3m82 %}

#5. 2nd try

Ayo had tried vim in the past but eventually moved on to visual studio code. This post is about how he went back to learn the vim way of doing things and why it stuck this time. 

{% link https://dev.to/ayoisaiah/why-i-switched-to-vim-from-visual-studio-code-5gbl %}

#6. It's cool...I used Regex.

An in-depth explanation of how regexp works --- mathematics, diagrams, and all. 

{% link https://dev.to/katafrakt/regular-expressions-how-do-they-work-1n55 %}

#7. Inputs, Outputs, Variable Scopes..

This post breaks down 'what' functions are and the different types that are called. 

{% link https://dev.to/codetheweb/the-complete-guide-to-javascript-functions-2i0l %}


_That's it for our weekly wrap up! Keep an eye on dev.to this week for daily content and discussions...and if you miss anything, we'll be sure to recap it next Monday!_
iPipeTo - The Node.js cli interactive workflow
Tags: cli, unix, node, javascript
Published: 2018-04-09 14:03:10

---
title: iPipeTo - The Node.js cli interactive workflow
published: true
description: Small command line tool that uses Unix pipelines in order to create interactive workflows for cli users.
tags: cli, unix, node, javascript
cover_image: https://cdn.rawgit.com/ruyadorno/ipt/master/example/git-checkout.svg
---

<br>
<img width="200" src="https://cdn.rawgit.com/ruyadorno/ipt/master/logo.svg" alt="ipt logo">
<br>

`ipt` is a small command line tool that uses [Unix pipelines](https://en.wikipedia.org/wiki/Pipeline_(Unix)) in order to create interactive workflows for cli users. It's similar to [fzf](https://github.com/junegunn/fzf) but it provides more interface options and it only requires Node.js. The best way to understand how it works is by watching some of the examples, like the one below:

<br />

[![asciicast](https://asciinema.org/a/174207.png)](https://asciinema.org/a/174207)

<br />

I just recently wrapped up a ton of work around it and it's a fairly stable and well supported across many OS and terminal clients 😄

If it gets your attention, please make sure to visit its Github repo: https://github.com/ruyadorno/ipt and(or) just get it already on **npm** and give it a try:

```sh
$ npm install -g ipt
```
How/When do you make time for side projects?
Tags: discuss, productivity, sideprojects
Published: 2018-04-09 12:44:43

---
title: How/When do you make time for side projects?
published: true
description: 
tags: discuss, productivity, sideprojects
---

Before work? After work? During the day? At your job? How do set up your routines and days to allow time for side projects?
Nodejs application to share files on the same network.
Tags: javascript, node, showdev, sharefiles
Published: 2018-04-09 10:09:38

---
title: Nodejs application to share files on the same network.
published: true
description: Application that helps to share files within the same network.
tags: javascript, nodejs, showdev, share-files
---

Hello friends, 

Have you bored with sending files to the devices by using various apps or by creating hotspots?


Yes right? :)


Because it's a time-consuming process. I created small node js application that helps to share files over local area network. Beta version available in my repo. Please clone the repo and give suggestions.

Repo URL:  https://github.com/sibinjoy100/flyfiles

Sibin Joy
Why is Laravel much popular in USA than Symfony ?
Tags: discuss, symfony, laravel, php
Published: 2018-04-09 07:36:19

---
title: Why is Laravel much popular in USA than Symfony ?
published: true
tags: discuss,symfony,laravel,php
---
I'm a big PHP lover (I know...) and I know that Symfony is way better in such way.
Why do people don't use Symfony instead of Laravel ?
What's the big deal with privacy?
Tags: discuss, privacy, security
Published: 2018-04-05 16:58:46

---
title: What's the big deal with privacy?
published: True
description: Does protecting your privacy really matter
tags: Discuss, Privacy, Security
---

Hopefully anyone reading this article is aware of the recent privacy news that have been blasting full on from the previous days. I wanted to have a **healthy** discussion regarding privacy.


From my perspective these matter to me:
* My identity not being stolen
* My incognito-mode browsing not being shared

These somewhat matter but aren't the end of the world:
* Current employer knowing i'm searching for a new job

Besides the above, I'm having a hard time caring what companies can know about me and how they can target me for advertisements. If anything, I wished they knew more about me so I can get better advertisements/recommendations. I once had to hear a bed commercial on pandora 3 months after buying my bed.

I read this article [Top 10 Reasons Privacy Matters](https://teachprivacy.com/10-reasons-privacy-matters/) but disagree with the majority of their points.Most of them tend to be regarding the reputation of someone, and sure we all make dubious decisions from time to time, but who really cares? And should everyone be so judgmental if everyone had their secrets shared?

So how does privacy matter to you?
Do you write notes while developing? Where do you write them?
Tags: discuss, notes, development
Published: 2018-04-09 06:07:48

---
title: Do you write notes while developing? Where do you write them?
published: true
tags: discuss, notes, development
---

I always keep a notebook and a pen beside me when I am coding. It helps me keep a track of stuff and do a brain dump when required. What do you use? Like any specific application or good old notebook like me?