teleren/devto huggingface dataset:
Snapchat Snap Kit Central
Tags: snapchat, snapkit, ios, swift
Published: 2018-08-11 18:09:50

---
title: Snapchat Snap Kit Central
published: true
description: A place for all things Snap Kit 
tags: Snapchat, Snap Kit, iOS, Swift
---
{% youtube Os_q9z-olHQ %}

Interested in integrating Snapchat elements into your iOS or Android apps?  Come by  - contribute and learn.

{% github bbookman/Snapchat-Snap-Kit-DIY-Docs %}
Response to 25 Tips for New Developers
Tags: video, beginners, career, tips
Published: 2018-08-11 18:02:17

---
title: Response to 25 Tips for New Developers
published: true
description: My impressions of Ali's advice to new programmers
tags: video, beginners, career, tips
---

{% youtube esN1dL5K--4 %}

The source article:

{% link https://dev.to/aspittel/25-tips-for-new-developers-advice-from-a-mostly-self-taught-software-engineer-1ff1 %}
Change swap size in Ubuntu 18.04 or newer
Tags: linux, swap, ubuntu
Published: 2021-02-12 19:49:37

---
title: Change swap size in Ubuntu 18.04 or newer
published: true
date: 2018-08-11 16:57:09 UTC
tags: Linux, Swap, Ubuntu
canonical_url: https://bogdancornianu.com/change-swap-size-in-ubuntu/
---

_[Updated July 26, 2020]: Change swapfile permission; Set swapfile in /etc/fstab._

Swap is a special area on your computer, which the operating system can use as additional RAM.  
Starting with Ubuntu 17.04, the swap partition was replaced by a swap file. The main advantage of the swap file is easy resizing.

**Note:** before running the following commands, please make sure you have a backup of your data!

In the following example, we’ll extend the swap space available in the /swapfile from 4 GB to 8 GB.

+ Turn off all swap processes 
```
sudo swapoff -a
```

+ Resize the swap
```
sudo dd if=/dev/zero of=/swapfile bs=1G count=8
```

> if = input file  
> of = output file  
> bs = block size  
> count = multiplier of blocks

+ Change permission 
```
sudo chmod 600 /swapfile
```

+ Make the file usable as swap
```
sudo mkswap /swapfile
```

+ Activate the swap file
```
sudo swapon /swapfile
```

+ Edit /etc/fstab and add the new swapfile if it isn’t already there
```
/swapfile none swap sw 0 0
```

+ Check the amount of swap available
```
grep SwapTotal /proc/meminfo
```
 

The post [Change swap size in Ubuntu 18.04 or newer](https://bogdancornianu.com/change-swap-size-in-ubuntu/) appeared first on [Bogdan Cornianu](https://bogdancornianu.com).
Help the Masonite community help out PyCon Nigeria
Tags: help, masonite, python
Published: 2018-08-11 13:25:42

---
title: Help the Masonite community help out PyCon Nigeria
published: True
description: Help the masonite community help PyCon Nigeria
tags: #help #masonite #python
---

# Introduction

The [Masonite](https://github.com/masoniteframework) project has received a lot of amazing support by a lot of people over the last few months and I want to give back to the community.

I stumbled on [PyCon Nigeria](https://twitter.com/pyconnigeria) and thought that a great way to give back is to buy tickets for those who have submitted financial aid applications and who could not otherwise attend the event.

So on behalf of the [Masonite](https://github.com/masoniteframework) project I'll be buying 5 tickets for those individuals who submitted for financial assistance! Which I think is awesome!

# Community Support

The reason I make this post and something else I thought of was that for those of you who would also like to help out, I created a [PyCon Nigeria Patreon Tier](https://www.patreon.com/masonite). For those who sign up for the $7 tier, I'll buy an additional $20 ticket for those who can not afford it.

If you would like to help out but don't have the $20 to buy a ticket then this is a great way to help out!
React Weather App Video Course - 10
Tags: javascript, react
Published: 2018-08-11 12:46:08

---
title: React Weather App Video Course - 10
tags: javascript, react
published: true
description: React tutorial for beginners. Making weather app part 10.
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ojsoibgy6hwt92m05eq8.jpg
---

Phew 😅, episode 10! Didn’t expect myself go that far.

Today fix minor display issues and move icon to a separate component.

* [Part 10](https://youtu.be/Zfc5DbQgUrQ)
Friday Blast #46
Tags: fridayblast, links, post
Published: 2019-01-20 15:26:13

---
title: Friday Blast #46
published: true
tags: friday_blast,links,post
canonical_url: https://horia141.com/friday-blast-46.html
series: "Friday Blast"
---

[Why Kubernetes is the new application server (2018)](https://developers.redhat.com/blog/2018/06/28/why-kubernetes-is-the-new-application-server/) - a case for K8s as the new “enterprisey” thing to build applications against. From RedHat, makes or JBoss and other enterprisey things (and some not-so-enterprisey things as well).

[How we built Uber engineering’s highest query per second service using Go (2018)](https://eng.uber.com/go-geofence/) - an interesting read about the _geofence_ service inside Uber. The numbers are quite impressive - 100K QPS is tremendous. Sure, it’s all in-memory serving, but even like that Go’s performance is stellar. Interesting that only basic locking was used to build the thing, cause the team found more advanced methods were complex and not needed.

[How not to structure your database-backed web applications (2018)](https://blog.acolyer.org/2018/06/28/how-_not_-to-structure-your-database-backed-web-applications-a-study-of-performance-bugs-in-the-wild/) - the Morning Paper review of a paper by [Yang et al](https://hyperloop-rails.github.io/220-HowNotStructure.pdf). The main bit is about how massive performance gains can be had by small tweaks in the ORMs are used by programmers. The median fix they applied was just 5 lines. I think the hardness of getting these things right is one of the reasons micro ORMs like Dapper or Knex are popular.

[For more and more people, work appears to serve no purpose (2018)](https://news.ycombinator.com/item?id=17260911) - A HackerNews discussion on an interesting article in the New Yorker. Both are worth the read. My take is that we’re going to see a lot of automation in the future, and bullshit jobs or minimum income schemes would be the two realistic ways forward which don’t result in outright dystopias.

[Your progress as a programmer is all up to you (2014)](http://thecodist.com/article/your_progress_as_a_programmer_is_all_up_to_you) - wise words. Employers, colleagues, clients, professional associations etc. won’t care about your future. But our is an industry which is very unforgiving to folks who haven’t kept current. But then again, most professions are like that. Medicine, the law etc. don’t stand still.
Modern Altmetric badges
Tags: altmetric, badges, shieldsio
Published: 2018-08-17 10:03:21

---
title: Modern Altmetric badges
published: true
tags: altmetric,badges,shields.io
canonical_url: https://larsgw.blogspot.com/2018/08/modern-altmetric-badges.html
--- 

I recently found myself working with [Altmetric badges](http://api.altmetric.com/embeds.html) again, and I realized how cumbersome it can be to work with scripts. The Altmetric badges can only be added by using their JavaScript library, while it would be a lot more user friendly to have a simple URL that embeds the badge, preferably even an image. I may be a bit spoiled by the badge ecosystem of the open source community, including [Shields.io](https://shields.io). There, badges are dynamically generated on the server side.

![Badges in open source JavaScript projects](https://lh3.googleusercontent.com/UQg3vzcJxQfpfN-BxyrPL1mPXJA8DJuPbMaBT3f2j8OlO0rllgifKTGPIkTzKJFvEAWXNxXrNaGaHw "Badges in open source JavaScript projects")  
_Badges in open source JavaScript projects_

Unfortunately, Shields doesn’t support Altmetric. It does, however, support dynamic badges, and Altmetric does have an API. The endpoint is `api.altmetric.com/v1/doi/` for DOI-based access (which is what we want in this case). So the parameters needed for the badge are:

- Data type: JSON (the output format of the API)
- `label`: Altmetric
- `url`: `https://api.altmetric.com/v1/doi/<DOI>`
- `query`: `$.score`
- `style`: `social`

The `logo` would be `https://www.altmetric.com/wp-content/themes/altmetric/favicon.ico`, but I can’t get that to work. The resulting URL is

```
https://img.shields.io/badge/dynamic/json.svg?url=https://api.altmetric.com/v1/doi/DOI&label=Altmetric&query=$.score&style=social
```

Which looks like this: ![Altmetric badge](https://thepracticaldev.s3.amazonaws.com/i/jqhwmhokrwm7ij0kg6qm.png)

Note, however, that the use of the [Altmetric API is limited](http://api.altmetric.com/):

> Free, rate-limited API
> 
> - No key required.
> - Includes research object metadata and metrics only.
> - Available only for one-time, limited term research projects.
> - Best for small projects.
> - Rate limited to 1 call per second.
What are the musts for training fresh graduate developers?
Tags: discuss, beginners
Published: 2018-08-11 10:22:59

---
title: What are the musts for training fresh graduate developers?
published: true
description: Query post
cover_image: https://thepracticaldev.s3.amazonaws.com/i/p8ybw5sb3gahxqx8nuk5.png
tags: #Discuss #Beginner
---

Working in a small team, We are assigned to train newly employed fresh graduate developers and I am having some difficulties. I admit that I do not know whether I am in the right place to train them since I my self is a fresh graduate too (1 year of experience) and thinking even my self needs to learn and improve a lot of things with my programming foundation. Since we are in a small team and our senpais *(Senior member of a group in Japanese)* are let say "unavailable" he he, me and one of my team mates was assigned to help the new ones. I really want to train them like how my seniors train me *(They are still teaching me some cool stuffs, they are awesome people!)*. My current mindset is to learn with them and learn from them, I just want to ask if you guys have any ideas, suggestions, mindset, opinion, etc. on how to handle this kind of scenario, to train them effectively, to strengthen our programming basic fundamentals before we proceed to deeper aspects of software development.
How to run a command in your shell until it succeed
Tags: shell, bash, cli, crosspost
Published: 2018-08-11 10:04:19

---
title: How to run a command in your shell until it succeed
published: true
description: I am regularly copying big files over the internet via rsync, and since I am travelling a lot, I don’t generally have access to stable internet connection, so I end-up rerunning the command multiple times until it succeeds.
tags: shell, bash, cli, crosspost
canonical_url: https://mayeu.me/blog/run-command-until-stops/
---

I am regularly copying big files over the internet via `rsync`, and since I am travelling a lot, I don't generally have access to stable internet connection, so I end-up rerunning the command multiple times until it succeeds.

Turns out there is a better way. Of course you could use `while` and test the return of the command, but that sounds like a lot of work for a *ad hoc* command. But I am lazy and I recently discovered that an `until` command exists!

Pretty straightforward to use:
```bash
$ until <put your command here>; do echo "Retrying at `date -Iminutes`"; done
```

So with `rsync` you get:
```bash
$ until rsync -aP src:/path/to/src dest/; do echo "Retrying at `date -Iminutes`"; done
```

And if you are really lazy, just create an alias (left as an exercise ;) ).

*This post was originally published on [mayeu.me](https://mayeu.me/blog/run-command-until-stops/).*
Choosing Front End Framework for Large Scale Application(Angular/React/Vue)
Tags: webdev, angular, react, vue
Published: 2018-08-11 09:02:09

---
title: Choosing Front End Framework for Large Scale Application(Angular/React/Vue)
published: true
description: Front End Framework Selection
tags: webdev, Angular, React, Vue
---
Recently I am working in a Large scale application which includes HR system, Accounting system and many more. We have decided to go with Java Spring Boot 2.0 write now. We will use Multi module architecture for back-end technology.We want to select the front end framework right now that's why we need your experience sharing about Angular/ React / Vue. What are the pros and cons about using them? Please share your view and experience which will be pretty helpful for me.
Facebook Developer Circle: Building the Heart of the Capital City.
Tags: learning, developer, facebook, developerscircle
Published: 2019-03-14 22:56:41

---
title: Facebook Developer Circle: Building the Heart of the Capital City.
published: true
tags: learning,developer,facebook,developers-circle
canonical_url: https://medium.com/@iNidAName/facebook-building-the-heart-of-the-capital-city-6e4c0ffec1a7
---

### Developer Circles Abuja: Building the Heart of the Capital City.

![](https://cdn-images-1.medium.com/max/960/0*EDArJ-1eNpd1R4gr)<figcaption><a href="https://www.facebook.com/groups/DevCAbuja/"><strong>Facebook Developer Circles Abuja</strong></a></figcaption>

Facebook Developer Circle Abuja was lunched on Saturday 4th August 2018, as much as I will like to talk about the full free plate of rice and chicken, the second-best part was the swags, the blue and the white. Now before you quote me wrong, the food wasn’t the best part and the swag was the second-best part.

#### This is it

Facebook Developer Circles is a global community of developers connecting developers to collaborate, learn and code with other local developers… _Hope I didn’t lose you_, in Nigeria alone as at this write up they are about 10 circles doing exactly what I just tried to define.

![](https://cdn-images-1.medium.com/max/960/1*8vovR2zIthaI4y3sWat5ag.png)

As a developer we always get an abbreviation for everything, so I give you DevC Abuja.

#### Let me get to it.

During one of the guest speaker’s talk, there was a question **What makes you a baddas developer?** _Confession time:_ My answer would have been, know every programming language that exist. So, you will be happy to know my answer was wrong.

_The Answer_: Collaboration, communication skills and abilities to solve problems with code and this is exactly in-line with Facebook Developer Circles’ definition, in a summary, DevC Abuja is here to produce World Class Developers.

![](https://cdn-images-1.medium.com/max/960/1*m05Jtzur99R9dwNTgmY12g.png)

Seriously are you still reading for the best part, what more do you want me to say? Okay here is part of the best part…

DevC Abuja has tailored curriculum to teach and mentor developers at all level of experience, hold on, there will be training on how to use JavaScript, HTML, CSS, React, Python and more, also there will mentorship on building start up, technical writing and public speaking.

There will be a DevC Abuja meet-up at least twice every month and there will always be a swag for someone, just to be on a safe side please EAT something before you come.

![](https://cdn-images-1.medium.com/max/960/1*Kiz9wXodN-UrUjC1YMQLng.png)

To be part of this awesome circle visit [www.facebook.com/groups/DevCAbuja](http://www.facebook.com/groups/DevCAbuja)

#### Now the best part.

Oh wait, you thought that was the best part? Let me get to it.

If you join the group now and participate actively you could win Scholarship to learn Web Development.

I told you the food wasn’t the best part.
Simple Form Validation In Reactjs Example
Tags: react, javascript, webdev, programming
Published: 2018-08-11 08:27:31

---
title: Simple Form Validation In Reactjs Example
published: true
description: Simple Form Validation In Reactjs Example
tags: #react #javascript #webdev #programming
---

<a href="https://www.skptricks.com/2018/06/simple-form-validation-in-reactjs-example.html" > Download Source Code </a>

This tutorial explains how to validate simple user registration form in reactjs. Form validation is most important part in web development, through which we can restrict invalid entries and validate user details in some extent by using valid sets of checkpoints or validation rules.
Here we are using simple user registration form and performing Client Side Validation using RegisterForm Component. Let see the React user registration form below :
<img src="https://2.bp.blogspot.com/-y_2762nutx4/WxzvrgXfEYI/AAAAAAAABjc/XEcspuqeLK4T893Cn2cpAXmcBrdie682ACLcBGAs/s400/1.PNG" />

<a href="https://www.skptricks.com/2018/06/simple-form-validation-in-reactjs-example.html" > ReactJs Form Validation Example</a>

Apart from above Form Error Message Validation, we have covered some other checkpoints or validation rules, Lets see the some more validation one by one.

Name Field : This field accept only valid user name, which include user First, Middle and Last name.
Email Field : This field accept only valid Email address of user.
Mobile Field : This field accept valid 10 digit mobile number of user.
Password Field : This field accept only accept user password details. This validation makes the user password very strong and which complies below format :
 Must be at least 8 characters
At least 1 special character from @#$%&
At least 1 number, 1 lowercase, 1 uppercase letter


{% youtube ofcolqx5cYM %}
Deploying to Heroku
Tags: help, heroku, express, mongodb
Published: 2018-08-11 04:43:25

---
title: Deploying to Heroku
published: true
description: 
tags: help, heroku, express, mongodb
---

Hey everyone! I was curious to know if anyone knew how to deploy a node.js server to Heroku? I’ve made an simple application that made with React, Redux, and an Express server with Mongodb. I’ve been trying to research on how to do it but I keep trying to do it but it never seems to work... any help with be greatly appreciated. I’ll add a link to the server repo. :)) Thanks

[Github Repo] (https://github.com/alexknite/authentication)
Setting up a Custom Domain name and FREE SSL certificate for Heroku Apps
Tags: herokudomain, herokussl, customherokudomain, herocustomdomain
Published: 2018-08-11 08:09:43

---
title: Setting up a Custom Domain name and FREE SSL certificate for Heroku Apps
published: true
description: Add a custom domain name and FREE SSL certificate for your Web Application running on Heroku
tags: herokudomain, herokussl, customherokudomain, herocustomdomain
cover_image: https://mikateach.com/wp-content/uploads/2018/07/Setting-up-a-Custom-Domain-name-and-FREE-SSL-certificate-for-Heroku-Apps.jpg
---

##Introduction
In this post, I am going to walk through on how to set up a custom domain name for Heroku apps in easy steps. Please be aware that you have to set up your application with Heroku first and in this case, [_I have set up Laravel 5.6 on Heroku_](https://postsrc.com/posts).

We will also be setting up free SSL certificate that's provided by [Let's Encrypt](https://letsencrypt.org/) through utilizing the [CloudFlare](https://www.cloudflare.com/) tools for ease of installation and to lessen the procedure of getting it up and running.

![Lets Encrypt Homepage](https://mikateach.com/wp-content/uploads/2018/07/Lets-Encrypt-Homepage-994x420.png)


##Getting Started
To get started we first need to link the domain to our Heroku application and to do that just run `heroku domains:add example.com --app=awesomeapp` do make sure to use the `--app` flag to ensure you specify the right application. For an alternative, in the settings section of the Heroku website, you can visit the "Domains and certificates" tab. From there you can add the domain that you have purchased.

![Add new Domain on Heroku](https://mikateach.com/wp-content/uploads/2018/07/Add-new-Domain.png)

Once you have added the domain, now we have to set up our CloudFlare site settings. If you haven't set an application yet, make sure to add it first and now let's set up the DNS. In the DNS tab, you will need 2 CNAME and it will look like the following.

![Add a new CNAME record](https://mikateach.com/wp-content/uploads/2018/07/Cloudflare-DNS-1352x420.png)

By now you will be able to visit your website with the domain name that you have specified. Next head on to the Crypto tab and enable the ssl certificate. by default this will install Let's Encrypt and by doing so, you will be able to access the website using the https protocol.

![Cloudflare Crypto tab](https://mikateach.com/wp-content/uploads/2018/07/Cloudflare-Crypto-tab-1087x420.png)


##Conclusion
Setting up a Custom Domain name and obtaining FREE SSL certificate for Heroku Apps is very easy with the help of Cloudflare.

😉 Thanks CloudFlare.
Ridiculously simple Github release for public or private repos
Tags: productivity, github, php, showdev
Published: 2018-08-11 06:56:45

---
title: Ridiculously simple Github release for public or private repos
published: true
description: Bash script for automating new version release in Github that supports both private and public repositories 
tags: productivity, github, php, showdev
---


https://github.com/adhocore/please


Please is a bash script for automating new version release in Github which supports both public and private repositories. If you embrace semver this is the right tool for you. It saves you time and boosts productivity if you maintain many packages and their versioning/releasing.

## What it does and how

- Determine remote git repo based on local git config
- Checkout and Update `master`
- Get latest release from github api endpoint
- Collect new commits since the latest release
- Create a changelog (prepend to if exists), reflect that into `./CHANGELOG.md` file and commit it
- Bump the version, reflect that into `./VERSION` file
    - If any of the latest commits start with `feat` `<minor>` is bumped
    - But if only you didnt explicitly pass `scope` already
- If there is `package.json` file, bump `package.json#version`
- Commit all changes
- If `package.json#private` is not set to `true`
    - If npm user not already logged in, run `npm adduser`
    - Run `npm publish` finally
- Release the new version and tag to github
- If there is `box.json` file, compile phar using `box` (download `box.phar` if required)
- Upload the compiled `phar` as asset for the recent release


Here's a preview of its beautiful UI:

![Help Preview](https://imgur.com/zxc5deM.png "Help Preview")
adhocore/cron-expr- Ultralight and super fast PHP Cron parser
Tags: php, cronexpression, cronparser, showdev
Published: 2018-08-11 06:44:58

---
title: adhocore/cron-expr- Ultralight and super fast PHP Cron parser
published: true
description: Fastest crontab parser and scheduler for PHP 
tags: php, cronexpression, cronparser, showdev
---

https://github.com/adhocore/php-cron-expr


This could possibly be the fastest crontab expression parser in PHP7 currently. Real benchmarks show that it is somewhere between 6-9x faster than existing solution. 

**Neat simple API**

Just set a single cron entry for your PHP based scheduler once and for all like so:


```
* * * * * php /path/to/scheduler.php
```

Then all you need to do is invoke your due jobs in `scheduler.php`, this is where `cron-expr` comes in play: it tells you if specific job/task is due at the moment with simple api. See a quick simple example below:

```php
$job1Schedule = '*/5 * * * *';
$isJob1Due    = Ahc\Cron\Expression::isDue($job1Schedule);
```

// run job 1 if due and so on for job 2 etc... !

Also supports some humanly tags for representing schedule intervals like `@hourly`, `@daily`, `@10minutes`.

[scrutinizer rating 10/10, test coverage 100%, version 0.0.4, dead simple usage, single api]
Swagger: Custom java rest server api generator
Tags: swagger, rest, codegen, tutorial
Published: 2018-08-11 06:33:53

---
title: Swagger: Custom java rest server api generator
published: true
description: We look into the swagger generator in the swagger codegen cli, in order to generate our own little simple java rest web server.
tags: swagger, rest, codegen, tutorial
---

{% youtube GYVrEI4taSI %}