teleren/devto huggingface dataset:
[React Native - iOS] Push notification with development and production
Tags: reactnative, pushnotification, ios, baddevicetoken
Published: 2018-12-22 02:56:32

---
title: [React Native - iOS] Push notification with development and production
published: true
description: How to push notification in iOS with React Native? After you config library but it's not push notification with iOS. Why? As you know, push notification service will have 2 mode (develop and production). If you register token with develop, it will push notification develop build only and else. Server 2 mode Develop and Production, Develop available for "Run" (debug also release build), Production available for "Build" (for release) - for Testflight or App Store. So, if you register token with Develop, but server available Production mode, return 400 - BadDeviceToken.
tags: #ReactNative #PushNotification #iOS #BadDeviceToken
---
Reference Guide: Merge conflicts
Tags: codenewbie, beginners, webdev, productivity
Published: 2018-12-22 02:49:56

---
cover_image: https://www.sydneycriminallawyers.com.au/wp-content/uploads/mp/image-cache/site/2/reference-guide.5ecefa2a847a8cc104ac8982f3a6ce77.jpg
title: Reference Guide: Merge conflicts
published: true
description: A reference guide series for new web developers. 
tags: #codenewbie #beginners #webdev #productivity
---
Welcome back to the Reference Guide series.  

*Merging* is the act of integrating code changes from another branch into a working branch.  With 'Git', there are times when competing changes cannot be resolved without intervention.  Conflicts can occur when someone edits a file and someone else deletes the same file, or, when changes are made to the same line of the same file.  

Merge conflicts can be a bit intimidating at first but rest assured they won't be for long.  After a little practice, you'll be a pro in no time. 

**RESOLVE MERGE CONFLICTS**

Once changes have been pushed to the branch name it’s a good practice to follow a few more steps to resolve potential conflicts before making a `pull request` in GitHub. 
- `git pull origin master`
    * This command updates the local branch to match the master branch. 

![git pull](https://thepracticaldev.s3.amazonaws.com/i/d7qyo4f8zm732cvzkz1i.jpeg)

Open a code editor of choice to review changes or conflicts. Generally, `current` changes will be highlighted in one color and `incoming` changes will be highlighted in a different color.  Accept the `current` or `incoming` changes.  Once completed run the following commands: 
- `git status`
- `git add –A`
- `git status`
- `git commit –m “add comment description of changes made”`
- `git status`
- `git push origin <name of branch>`


Up next: [Pull Requests](https://dev.to/kymiddleton/reference-guide-pull-requests-5an9)

For the completed Reference Guide Series: 
- [Part One:](https://dev.to/kymiddleton/reference-guide-common-commands-for-terminal-6no) Reference Guide: Common Commands for Terminal. 
- [Part two:](https://dev.to/kymiddleton/reference-guide-create-a-github-repository-30f8) Create a GitHub Repository
- [Part three:](https://dev.to/kymiddleton/reference-guide-committing-changes-43el) Committing Changes
- [Part four:](https://dev.to/kymiddleton/reference-guide-committing-changes-with-branches-2f8d) Committing Changes with Branches
-[Part five:]( https://dev.to/kymiddleton/reference-guide-merge-conflicts-6op) Merge Conflicts
- [Part six:](https://dev.to/kymiddleton/reference-guide-pull-requests-5an9) Pull Requests
- [Part seven:](https://dev.to/kymiddleton/reference-guide-conducting-a-code-review-k6m) Conducting a Code Review
-[Part eight:]( https://dev.to/kymiddleton/reference-guide-complete-and-merge-a-pull-request--12n4) Complete and Merge a Pull Request
The price of blockchain implementation 
Tags: blockchain, blockchainbusiness, blockchainproject
Published: 2018-12-22 00:11:21

---
title: The price of blockchain implementation 
published: true
description: The article runs about the cost of blockchain implementation in different countries
tags: blockchain, blockchain-business, blockchain-project
---

The cost of blockchain implementation is different in different countries. In our review, we’d consider how much money the Governments of different countries are eager to invest in blockchain implemenation. 
France is intended to invest 700 euros into state projects to cut down the bureaucracy in state structure. This sum of money was announced by Macron in his election race, due to this the Government of France is intending to shorten 120 000 jobs in public sector and economize 75 billion of dollars.
Australia is going to invest one billion of Australian dollars into public administration systems. This sum of money would be invested into information system and would improve the work of the Departments of Defense and Home Affairs.
How Much does it Cost of Blockchain Implementation this question is considered here: http://merehead.com/blog/how-much-does-it-cost-of-blockchain-implementation/. 
300 millions of euros are allocated by the European Union to the implementation of the Blockchain technology. The aim of it is the creation of the EBSI – European Blockchain Services Infrastructure.
The Government of South Korea has taken the decision to allocate $ 200 million into the implementation of Strategy for the Technological Chain for the infrastructure of their state. 
In spite of all serious sums of money the realization of blockchain projects could also be free. There arelots of companies determined to finance these projects for their expense. Of course they’ll find the way of monetization of these projects further on.
Easily Upgrade to PHP 7.3
Tags: php
Published: 2018-12-22 00:00:00

---
title: "Easily Upgrade to PHP 7.3"
description: "PHP 7.3 was released a few weeks ago and it's time you upgrade to it. Learn how simple it is."
author: "Wilbur Powery"
date: "2018-12-22"
tags: [php]
published: true
---

![Thumbnail](https://res.cloudinary.com/wilburpowery/image/upload/v1545503015/easily-upgrade-to-php-73.png)

First published on my [website](https://wilburpowery.co/posts/easily-upgrade-to-php-73/).

PHP 7.3 has been out for a couple of weeks now and if you're interested in upgrading, the process is super simple.

> **Note:** This small guide if meant for Mac OS users. If you're a Windows user, a quick google search should help you out!

## Let's update everything

To pull install or update any applications or services, I use a Mac OS package manager called <a href="https://brew.sh/" rel="noreferrer noopener" target="_blank">Homebrew</a>. Before we go about upgrading our PHP installation, lets' quickly run a Homebrew commands to update our formulae and Homebrew itself.

```bash
$ brew update
```

### Upgrading PHP

Now that our formulae is updated, we can proceed to upgrade our PHP installation with the latest version available on Homebrew.

```bash
$ brew upgrade php
```

After the upgrade completes, you can open a new tab in your terminal and check your PHP version with `php -v`. If all went well, you should see something like this: 

```bash
PHP 7.3.0 (cli) (built: Dec  7 2018 11:00:11) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.0, Copyright (c) 1999-2018, by Zend Technologies
```

In only a couple of minutes, you're already upgraded to the latest version of PHP. Keep in mind that some packages or services you're using in your system or applications might not be updated just yet to work on PHP 7.3.

## Bonus for Laravel users

If you're a Laravel user you're more than likely using Laravel Valet. In order to get Valet working on PHP 7.3, you simply need to update it to the latest version released. Just do a `composer global update` to update all your globally installed Composer packages and then just do a `valet install`.

Running `valet install` again is necesarry to configure the installation to work with your new PHP version.

> **Warning:** There are some known bugs with PHP 7.3 and Opcache when queueing emails in the Laravel framework so I encourage you to keep an eye on the issues in the Laravel repository on <a href="https://github.com/laravel/framework/issues/26819" rel="noreferrer noopener" target="_blank">Github</a>.
swarm-cronjob
Tags: docker, swarm, cronjob, go
Published: 2018-12-21 23:39:52

---
title: swarm-cronjob
published: true
description: Create jobs on a time-based schedule on Swarm
tags: docker,swarm,cronjob,golang
---

{% github crazy-max/swarm-cronjob %}

📅 swarm-cronjob creates jobs on a time-based schedule on Swarm 🐳 with a dedicated service in a distributed manner that configures itself automatically and dynamically through labels and Docker API. Here are the main features:

* Continuously updates its configuration (no restart)
* Cron implementation through go routines
* Allow to skip a job if the service is currently running
* Timezone can be changed for the scheduler

Hope it will help some of you. Your comments are welcome!

---

Support this project by [**becoming a sponsor on GitHub**](https://github.com/sponsors/crazy-max) 👏 or by making a [Paypal donation](https://www.paypal.me/crazyws) to ensure this journey continues indefinitely! 🚀

Thanks again for your support, it is much appreciated! 🙏
The hotness of O RLY Cover Generator    
Tags: discuss
Published: 2018-12-21 23:39:44

---
title: The hotness of O RLY Cover Generator    
published: true
description: Our team loves using the O RLY Cover Generator. Sparked some interesting conversations in our team.
tags: discuss
---

My team just discovered the [O RLY Cover Generator](https://dev.to/rly) and it has brought so much joy. Just wanted to make a plug for it!
Can you recommend a good operating System Fundamentals book?
Tags: os, operating, system, book
Published: 2018-12-21 23:04:01

---
title: Can you recommend a good operating System Fundamentals book?
published: true
description: 
tags: os, operating, system, book
---

Hey can anyone recommend a good book on Operating system fundamentals?... Currently looking to buy this one: https://t.co/yZvN8WnukA
#computersience #os #operating #system
Deploy Next.js project to Netlify
Tags: nextjs, netlify, git
Published: 2018-12-21 20:26:21

---
title: Deploy Next.js project to Netlify
published: true
description: I have just finished my own test with [Netlify](https://www.netlify.com/). It is a static page provider with Git deploy integration opportunity (GitHub, GitLab, Bitbucket) . Netlify has got very good performance, it provides https sertification and we can use our own domain with the projects. So, we have got everything that we need for a starter project. Here comes a brief guide! 
tags: nextjs, netlify, git
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ltopg2gpiedaff45t0el.jpg
---

I have just finished my own test with [Netlify](https://www.netlify.com/). It is a static page provider with Git deploy integration opportunity (GitHub, GitLab, Bitbucket) . Netlify has got very good performance, it provides https sertification and we can use our own domain with the projects. So, we have got everything that we need for a starter project. Here comes a brief guide!

Our next excellent tool is [Next.js](https://nextjs.org/)! It provides server-side rendering application development tool for us. Next.js can export our full application by pages. So it can behave as a server-side rendered application, but without Node.js server.

**🔥 Important note:** Netlify can serve static page only! So if you have multiple route in your application then you need to export every of them! It is not a Next.js guide article, but I would give you a hint, how to do that:

You only need to add three additional script to you *package.json*:

````javascript
{
  "scripts": {
    "build: "next build",
    "export": "next export",
    "deploy": "npm run build && npm run export"
  }
}
```

After the *"npm run export"* command, Next.js will take care about the rest. It will generate every of your page and subpage as a static application.

**🤔 Ok, what's next?!**

Deploy your project to GitHub/GitLab or Bitbucket. After that, you can create your Netlify project and connect it to your repository.

![Create Netlify Project](https://thepracticaldev.s3.amazonaws.com/i/85n9jgo9qg0gtpblcpwc.jpg)

As you can see, you can select the branch, where you would like to watch the changes. Netlify will copy every new version after commits, and then you can give a command which will take care about the build process. In our case, we can use *"npm run deploy"* as the build command.

You have a publish directory option in the form, where you can give the generated build's folder name. In Next.js case, we need to use *"out"*, because Next will export everything into that folder.

That's all! After these settings, Netlify will take care about hosting and build process on your selected branch.

👨‍💻 Happy coding!
What is the hardest thing about learning to code?
Tags: discuss, webdev
Published: 2018-12-21 20:13:11

---
title: What is the hardest thing about learning to code?
published: true
description: Coding is hard. I struggled to learn for the first several years because I wasn't active within the dev community. What was the hardest thing you've experienced on your coding journey?
tags: #discuss #webdev
---

The thing I struggle with most is staying up-to-date. It's hard to code from 9-5 and come home at night and continue to learn. It's important to maintain a healthy work-life balance, and I still struggle with this. What is the hardest thing you've experienced on your coding journey?
Archipelago v3 is out!
Tags: javascript, xtermjs, terminal, electron
Published: 2018-12-21 20:09:23

---
title: Archipelago v3 is out!
published: true
tags: javascript, xterm.js, terminal, electron
---

<img src="https://raw.githubusercontent.com/npezza93/archipelago/master/.github/logo.png" width="300">

Archipelago is a terminal inspired by [Hyper](https://github.com/zeit/hyper). I started using Hyper as my default terminal while it was in beta and into v1. It was by far the coolest, best looking, minimal, and extensible terminal emulator I had used. But, I found it to be really slow, to the point where if I was going to run a command that I knew would have a lot of output, I would opt for using a different terminal. Along with that, occasionally buffers would overlap making the terminal unreadable and force me to restart.

At the time Hyper was using [Hterm](https://github.com/chromium/hterm) which was the culprit of all my issues, but then I heard about the the [Xterm.js](https://xtermjs.org/) project which was being used by [SourceLair](https://www.sourcelair.com/home) and Microsoft was using it inside of [VSCode](https://code.visualstudio.com). Xterm.js solved all the problems I had encountered so a little over a year ago I started making Archipelago. Some of the stand out features include: 
- Tabs (You can also disable tabs if you use a multiplexer like TMUX exclusively)  
- Panes that can be split and resized
- Cross platform (macOS, Linux, and Windows)
- Theming which can be saved to a profile
- Easy setting configuration
- Searching through the scroll-back
- A visor window that can be called from anywhere
- A suite of system tests

![Screenshot](https://raw.githubusercontent.com/npezza93/archipelago/master/.github/screenshot.gif)

Visit [archipelago.pezza.co](https://archipelago.pezza.co) to see more gifs or [download](https://archipelago-terminal.herokuapp.com/download) now to give it a shot!
ckd.css for your ticks
Tags: css, ux, showdev
Published: 2018-12-21 16:30:41


[ckd.css](https://ckdcss.now.sh) v2 has been released and it will bring beautiful and small micro interactions to your checkboxes and radios. You can use it even on your custom imputs.

## Why are micro interactions important?

> It’s likely that you started your day with a micro-interaction. By turning off the alarm on your mobile phone, you engaged with a user interface in a single moment.

> You will continue to engage throughout the day in these moments with your digital devices. Each one is a micro-interaction. Each one is probably so small you don’t think about it. And each one works because of that simple fact.

> As a designer, recognizing the invisibility of micro-interactions is just as important as designing them. You have to create something that feels human and accomplishes a task, making the life of a user easier. You also have to focus on a design that can work in a variety of environments and does not need any instruction or explanation.


— [The Next Web](https://thenextweb.com/dd/2015/08/17/why-micro-interactions-are-the-secret-to-great-design/)



{% github equinusocio/ckdcss %}
What could possibly go wrong?
Tags: git, devops
Published: 2018-12-21 16:25:54

---
title: What could possibly go wrong?
published: true
description: 
tags: git, devops
---

Last day in the office before the Christmas break.  A couple of glasses of fizzy at lunchtime before the office party. 

Now would be a great time to sort out some git repos and tinker with the build server.

Hilarity ensues...
How do we allocate server resources for managing hundreds of websites and more to come?
Published: 2018-12-21 15:44:53

---
title: How do we allocate server resources for managing hundreds of websites and more to come?
published: true
description: 
tags: 
---

I'm looking for some advice. We have a dedicated server for over 100 websites we manage along with emails hosted for each site. The server is setup with liquid web years ago. We have outgrown this server and are now at the limit edge.

With the server at its limit and now with new server technologies I'm wondering how to start allocating resources. All sites need emails as well. Some get a lot of traffic and others don't.

I'm thinking of 3 options:

1. Just get a second large dedicated server for new sites.
2. Start putting each website on its own digital ocean droplet? but then email? I guess we put email on its own cloud.

I'm juggling how to manage all the server resources as well as keeping in mind budget of course.

I would love to get some thoughts from fellow devs. What would you do? Thank you guys so much.
Performance oriented Next.js application boilerplate with Redux, Typescript, Express.js and Sass.
Tags: react, nextjs, boilerplate
Published: 2018-12-21 15:02:28

---
title: Performance oriented Next.js application boilerplate with Redux, Typescript, Express.js and Sass.
published: true
description: 
tags: React.js, Next.js, Boilerplate
cover_image: https://thepracticaldev.s3.amazonaws.com/i/1dyo6c05o6ac9cqlitb0.jpg
---

Next.js is a minimalistic React framework that runs in the browser and the server. It offers developers an easy way to get started, and as it uses React.js for templating it is also a straightforward way for developers with React experience to get productive fast.

The advantages of this approach is to be able to create Rich User experiences in a uniform way, without compromising Search Engine Optimisation (SEO) factors that are key to good ranking on Google and other search engines.

We created the production-ready pankod/next-boilerplate to make it easier to get started with a well-structured Next.js and TypeScript application. You may check out our [Github Repo](https://github.com/pankod/next-boilerplate/) for more information.
What exactly is dropshipping and how does it work?
Tags: dropshipping
Published: 2018-12-21 13:30:56

---
title: What exactly is dropshipping and how does it work?
published: true
description: Dropshipping is a retail fulfillment method where a store doesn't keep the products it sells in stock. Instead, when a store sells a product, it purchases the item from a third party and has it shipped directly to the customer. As a result, the merchant never sees or handles the product.
tags: Dropshipping
---
Dropshipping is a retail fulfillment method where a store doesn't keep the products it sells in stock. Instead, when a store sells a product, it purchases the item from a third party and has it shipped directly to the customer. As a result, the merchant never sees or handles the product.

The biggest difference between dropshipping and the standard retail model is that the selling merchant doesn't stock or own inventory. Instead, the merchant purchases inventory as needed from a third party – usually a wholesaler or manufacturer – to fulfill orders.

Benefits

#Less Capital Is Required
#Easy to Get Started
#Low Overhead
#Flexible Location
#Wide Selection of Products
#Easy to Scale

AliExpress is an extremely popular retail platform, whose order volume exceeds that of Amazon and eBay combined. And AliExpress' prices are so low that you can multiply them by 10 and still have the best offers in your market.no wonder that so many online entrepreneurs are keen to start a drop shipping business with AliExpress.And today starting this kind of business is easier than ever. Because there is AliDropship Plugin! It's the unique WordPress based solution to assist with the creation of AliExpress drop shipping stores and easy importing of Ali products. You can have your own webstore built in minutes. This tool is so easy to manage, that even a kid can launch a drop shipping store with its help!Key benefits of AliDropship plugin:- Affordable price with no limitations

 - Fully compatible with WooCommerce
 - Simple and user-friendly interface
 - Easy product search and instant upload
 - Live stats and auto updating
 - Built-in themes optimized for high conversions
 - Free lifelong support and updatesYou can have your AliDropship plugin forever now.And in case you want a 100% hassle-free start, you can order a turnkey custom drop shipping store from AliDropship professional team, and begin getting revenues right away.

#Dropshipping: $10,000 per Month 
#Read more:) https://www.oxipress.com/dropshipping/
Create a Custom Plug
Tags: elixir, learning, video
Published: 2018-12-21 10:41:45

---
title: Create a Custom Plug
published: true
cover_image: https://thepracticaldev.s3.amazonaws.com/i/r30o8ryhro5jmxt58n0v.jpg
description: Learn to create a custom elixir plug.
tags: 
  - elixir 
  - learning 
  - video
---

We show you how to create your own elixir plug in 3 parts. Check out the free code example. 

[![Custom Plug Part 1](https://thepracticaldev.s3.amazonaws.com/i/r30o8ryhro5jmxt58n0v.jpg)](https://www.codemy.net/posts/elixir-custom-plug-part-1-008/sets/elixir-foundation)