teleren/devto huggingface dataset:
AppSync Masterclass is open for early access!
Tags: graphql, aws, serverless
Published: 2020-11-02 15:51:09

---
title: AppSync Masterclass is open for early access!
published: true
date: 2020-10-23 09:30:08 UTC
tags: GraphQL,AWS,Serverless
canonical_url: https://theburningmonk.com/2020/10/appsync-masterclass-is-open-for-early-access/
---

I have some exciting news to share with you. That after some initial delays, the **[AppSync Masterclass](http://appsyncmasterclass.com/)** is now open for Early Access with **40% launch discount**.

![](https://mcusercontent.com/a268ecdd044324f2faa7f05b0/images/201795a8-0643-42c8-8ec6-83c5be7ddc5e.gif)

First of all, thank you so much for your patience, it’s taken us a bit longer than we expected but we’re here, at last.

You can purchase the course from [appsyncmasterclass.com](http://appsyncmasterclass.com/) and gain early access. Overall, the course is ~25% complete. More lessons will be released on a weekly basis from here on and hopefully complete by the end of 2020.

Buying a course that is only 25% complete is a risk, I get it. Which is why we have launched it with a hefty **40% discount** on the final price.

The course comes in 3 packages, depending on how far you want to go. You will implement most of the basic features of Twitter in the Basic Package.

The Plus Package introduces more advanced features such as two-way paginations and caching, and how to use GraphQL Subscriptions to implement real-time notifications.

The Premium Package goes a step further and shows you how to track client-side analytics events (e.g. tweet impressions and profile clicks) and take you through the things you need to think about if you want to go to production with AppSync – observability, custom domain names and how to make the frontend a PWA and support local caching, and so on.

![](https://theburningmonk.com/wp-content/uploads/2020/10/img_5f92a13d26691.png)

The curriculum is likely to change slightly during the Early Access phase, with potentially more lessons being added based on your feedback.

If there are any topics that you’d like me to cover in addition to what’s in the curriculum then please let me know.

In the meantime, if you wanna get a sense of what you will be building then check out the teaser videos I published earlier.

{% youtube bgZX0zDXRCY %}

{% youtube WZcAHvLeBYc %}

{% youtube QXITEX7Azcc %}  

Hope to see you in the course, until then, take care and stay safe :-)

The post [AppSync Masterclass is open for early access!](https://theburningmonk.com/2020/10/appsync-masterclass-is-open-for-early-access/) appeared first on [theburningmonk.com](https://theburningmonk.com).
A cost issue with server-less
Tags: serverless, hosting, jamstack, pricing
Published: 2020-10-23 09:20:13

I love server-less but even if I use it personally for almost all my projects, I can't recommend it for little team work in enterprise.

The reason is simple, for four people in a project on vercel or netlify, it costs 80$! That's much more than a traditional hosting service!

On the other hand, the service is not the same and the price doesn't increase when you have several applications... In any case, this does not incite to try the serverless for a small business!

What do you think about it ? Do you think it's better to host frameworks like Nextjs in more traditional services like Heroku (so come back to the server solution) ?
The delights of C++17
Tags: cpp
Published: 2020-10-23 09:20:07

Over the years, I've made a ton of C++ experiments to understand new language features. Yesterday, I was looking for a specific example I wrote a few years back.

I didn't find it, but I did find this gem that adds additional syntax:

```
#include "new-syntax.hpp"

int main() {

  let [a, b, c] be {42, 3.14, "Hi!"} exec {
    print "a = ", a;
    print "b = ", b;
    print "c = ", c;
  }

  return 0;
}
```
To my surprise, it compiled and ran. The key functionality it makes use of is the C++17 template deductions expressed through a couple of macros in `new-syntax.hpp`:
```
#pragma once
#include <iostream>
#include <tuple>
#include <vector>
#include <tuple>

struct Print {
  Print(std::ostream &s): s(s) {}
  template<class T> Print &operator,(T &&t) { return s << t, *this; }
  ~Print() { s << '\n'; }
private:
  std::ostream &s;
};

#define print Print(std::cout),

#define let for(auto &&
#define be : {std::tuple
#define exec })
```

Not sure that it is particularly useful, but C++ never fails at amazing me with how flexible it has become over the years while remaining statically typed.
Getting package delivery status from docker at opt.nc
Tags: docker, kubernetes, vagrant
Published: 2020-10-23 09:19:57

# Context

Being able to get package delivery status is possible, and there is a dedicated Docker image fo this. This post explain how to do this within a very few lines of code so you can integrate that into your ERP, develop mobile app or simply develop any integration.

# Code snippet

```
sudo docker run --net=host -d -p 8080:8080 rastadidi/colisnc-api:latest
sudo apt-get install httpie jq boxes toilet
http http://localhost:8080/colis/CA107308006SI/latest
http http://localhost:8080/colis/CA107308006SI

# Shell: now the fun part
cat << EOF > colis.sh
#!/bin/bash          
curl -sS http://localhost:8080/colis/\$1/latest | jq -r '.status' | boxes -d boy | toilet --gay -f term
EOF

chmod u+x colis.sh
./colis.sh CA107308006SI
cowsay -f tux That\'s all folks
```

# Outputs

Finally json output for the latest known status of the delivery process:

```json
{
    "country": {
        "code": "NC",
        "iso": "NCL",
        "name": "nouvelle-caledonie"
    },
    "date": "2019-09-09T09:41:13",
    "informations": "",
    "itemId": "CA107308006SI",
    "localisation": "NOUMEA CDC",
    "localization": {
        "longName": "Office des Postes - Agence Principale",
        "name": "NOUMEA CDC",
        "url": "https://goo.gl/maps/verSQbb6tQaqzKq87"
    },
    "pays": "NOUVELLE-CALÉDONIE",
    "rawDateHeure": "09/09/2019 09:41:13",
    "status": "COLIS_LIVRE",
    "typeEvenement": "Votre courrier/colis a été livré"
}
```

# Resources

- [Original Web Front-end I scrap to get the core data](http://webtrack.opt.nc/ipswebtracking/)
- [Refactored website, relying on the API and other APIs with Google authentication and Maps](https://colisnc.redstone.nc)
- [Mobile app demo (with native cloud services like IFTTT, messenger, ...)](https://youtu.be/zlqzmUYxasM)
- [Mobile app on Google Play Store](https://play.google.com/store/apps/details?id=com.adriens.github.mescolisnc)
- [Augmented Reality (AR) experiment that relies on the API](https://youtu.be/BrZoOfFZS9w) 
- [API on RapidAPI Marketplace](https://rapidapi.com/adriens/api/colis-nc)
- [KataCoda Scenario showing how to deploy the API on Kubernetes Cluster](https://www.katacoda.com/rastadidi/scenarios/k8s)

# Full demo

Find below the full video demo, from scratch, with system install thanks to Vagrant: 
{% youtube J57Qhkg8S28 %}
Hacktoberfest
Tags: hacktoberfest
Published: 2020-10-23 08:59:28

<!-- ✨I want to create more issues and solve other's problems! ✨ -->


### [Intro Heading]
<!-- I am totally new in Dev,and I participated Hactoberfest for the first time this year to get an idea about what happens and slowly I got to know more and more about this amazing event.  --> 
### Background

<!-- I'm a budding coder,I am learning Java,C, JavaScript,HTML and CSS currently. →

### Progress

<!-- I had submitted a total of around 13 pull requests among which 4 have been approved,so I have basically completed the Hactoberfest for this year,and the journey was amazing!  -->

### Contributions

<!-- I did a total of around 13 projects which included programmings in various languages like Python,Java and C.
https://github.com/div-bargali/Data-Structures-and-Algorithms
https://github.com/pratik-choudhari/AlgoCode
https://github.com/yuvraajnarula/Hacktoberfest
https://github.com/Bijay555/Hacktoberfest-Algorithms
https://github.com/SusnatoPrime007/Hacktoberfest-Algorithms
https://github.com/SusnatoPrime007/Hacktoberfest-1
https://github.com/SusnatoPrime007/FibonacciForHacktoberFest
https://github.com/SusnatoPrime007/AlgoCode
Here are some of the repositories that I did.
  -->


### Reflections
<!-- Overall the Hactoberfest 2020 has been amazing yet,I enjoyed myself contributing in various projects,and will surely look forward to Hactoberfest 2021.Got the opportunity to know more about GitHub and it's funtions, really thankful for that!  -->
Java Rename Excel Worksheets and Set Tab Color
Tags: java, excel, rename
Published: 2020-10-23 06:04:29

Usually an Excel document may contain several worksheets with similar names like Sheet1, Sheet2, Sheet3, etc. In order to facilitate our search and operation, we can rename these worksheets and set different tab colors by using Free Spire.XLS for Java.

**Import Jar Dependency**
**Method 1:** Download the [Free Spire.XLS for Java](https://www.e-iceblue.com/Download/xls-for-java-free.html) and unzip it. Then add the Spire.Xls.jar file to your project as dependency.

**Method 2:** You can also add the jar dependency to maven project by adding the following configurations to the pom.xml.

```xml
<repositories>
        <repository>
            <id>com.e-iceblue</id>
            <name>e-iceblue</name>
            <url>http://repo.e-iceblue.com/nexus/content/groups/public/</url>
        </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>e-iceblue</groupId>
        <artifactId>spire.xls.free</artifactId>
        <version>3.9.1</version>
    </dependency>
</dependencies>
```

**Java Code**

```java
import com.spire.xls.*;
import java.awt.*;

public class RenameSheetandSetTabColor {
    public static void main(String[] args) {
        //Load the Word document
        Workbook workbook = new Workbook();
        workbook.loadFromFile("Input.xlsx");

        //Rename the first worksheet and set its tab color
        Worksheet worksheet = workbook.getWorksheets().get(0);
        worksheet.setName("Cost");
        worksheet.setTabColor(Color.YELLOW);

        //Rename the second worksheet and set its tab color
        worksheet = workbook.getWorksheets().get(1);
        worksheet.setName("Income");
        worksheet.setTabColor(Color.GREEN);

        //Rename the third worksheet and set its tab color
        worksheet = workbook.getWorksheets().get(2);
        worksheet.setName("Profit");
        worksheet.setTabColor(Color.RED);

        //Save the document to file
        workbook.saveToFile("output/Rename.xlsx", ExcelVersion.Version2010);
    }
}
```

**Output**
![](https://dev-to-uploads.s3.amazonaws.com/i/qxablkf5wr1d29vjzmfw.png)
HacktoberFest-2020
Tags: hacktoberfest, opensource, github
Published: 2020-10-23 08:45:06


### About ME
I am Swayam, I joined DEV to be a part of a good technical community, learn skills and improve myself in the time to come.
I participated in Hacktoberfest this year because I wanted to get a taste of open-source and what it's like to contribute. 

### Background
Yup, I was brand new to open-source this year, although I did coding in general. 
I wanted to participate in Hacktoberfest to have fun and learn at the same time.

### Progress
I've successfully completed 4 pull requests though I struggled during the initial use of Git and GitHub, but after learning how it works, it went really great.

### Contributions
First I made a contribution to a guy who was working on a book on ML.
https://github.com/Vatsalparsaniya/ML_Knowledge/pull/16
Then, I solved two problem statements given by TwoWaits
https://github.com/twowaits/make-pull-request/pull/245
https://github.com/twowaits/make-pull-request/pull/293
Then, I submitted a simple betting game I created using basics of python.
https://github.com/keshavsingh4522/hacktoberfest2020/pull/41

### Reflections
Being a first-timer, I can say it was an amazing experience and I can't wait to dive into open-source in time to come and will surely participate in Hacktoberfest next year.
Hacktoberfest 2020!
Tags: hacktoberfest
Published: 2020-10-23 08:40:04

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


###Hacktoberfest 2020
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 

For a new programmer it is not easy to find a suitable project and get a chance to contribute to it, but hacktoberfest boosted my confidence to contribute to open source and helped me  start my open source journey.

This was my first hacktoberfest experience.

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →

### Progress

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->
Participating in this program has helped me understand the git culture.

### Contributions

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->
The Good First Issues link provided in the welcome email helped me land into repositories which were suitable to my skillsets. 
####My contributions:
* codeezzi/utility
* div-bargali/Data-Structures-and-Algorithms
* Anurag5086/Portfolio-website-themes
* Bijay555/Hacktoberfest-Algorithms


### Reflections
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
I would like to Thank digitalOcean, Intel and DEV for creating this platform for programmers. 
Hacktoberfest has been a great success in all possible respects, also
I must thank all the project managers for helping new programmers to contribute to their projects and for being so supportive.The entire open source community is welcoming and encouraging.
GitHub Actions: use a Private Registry for Job and Service Containers
Tags: github, containers, actions, cicd
Published: 2020-10-23 08:31:30

Today we are talking about a very __new feature__ for GitHub Actions: Job and service containers from __private registries__. 

What does that mean? Let's discover it together.

### Video

If you are a __visual learner__, or simply prefer to watch and listen instead of reading, here you have the video with the whole explanation and demo, which to be fair is much ___more complete___ than this post.

{% youtube S5eZ0YOLJDc %}

([Link to the video: https://youtu.be/S5eZ0YOLJDc](https://youtu.be/S5eZ0YOLJDc))

If you rather prefer reading, well... let's just continue :) 

### What are Job Containers and Service Containers?

First off, what are job containers and service containers?

Job containers allow you to provide the __environment and tools__ that your workflow needs, they are a great way to ensure your dependencies are always exactly met and __under your control__. 

Similarly, service containers provide a way to stand up __additional networked services__ that your workflow may need to build or test against, like a database, an API, and so forth.

### The old way

Previously you may have had a workflow like this:

```yaml
name: JobContainers

on: [workflow_dispatch]

jobs:
  build:
    runs-on: ubuntu-latest
    services:
      redis: redis:latest
    container: alpine:3
    steps:
    - run: ./build.sh
```

In the workflow we have both the service container (a _redis_ image under _services_) and the job container (an _alpine_ image under _container_), and as you can see both images comes from a __public container registry__.

Unfortunately ___there has not been a way to consume these containers from private registries___, or more generally if pulling them required you be logged in. Until now!

### The new way!

With the new feature, in fact, you can just provide the username and password in a new __credentials__ property as you would if you were running docker login.

```yaml
name: JobContainers Private reg

on: [workflow_dispatch]

jobs:
  private:
    runs-on: ubuntu-latest
    services:
      redis: 
        image: ghcr.io/n3wt0n/modified-redis
        credentials:
          username: n3wt0n
          password: ${{ secrets.GHCR_TOKEN }}
    container:
      image: ghcr.io/n3wt0n/modified-alpine
      credentials:
        username: n3wt0n
        password: ${{ secrets.GHCR_TOKEN }}
    steps:
    - run: echo secret!
```

As you can see above, we now have this now `credentials` property that allows us to specify the credentials to authenticate to __any private registry__.

In that example I'm using the new GitHub Container Registry, but in fact that would work for any registry which requires authentication: Private Docker Hub, Azure Container Registry, etc... you name it...

Easy right?

### Conclusion

Let me know in the comment section below what you think of this new feature. I personally think it's a __great addition to GitHub Actions__ that finally opens so many new scenarios.

Once again, [watch the video on YouTube](https://youtu.be/S5eZ0YOLJDc) to see this live with the whole explanation.
Features of Travel Portal Development That Will Help Travel Agents in Growing Business

Published: 2020-10-23 08:23:01

**Following are the Features of [Travel Portal Development:](https://travelportalsolution.com/travel-portal-development/)**

**Advanced search features:** It's an auto recommendation that works when clients search with any objective then the auto-suggestion will seem to assist clients with finding the ideal objective location they are searching for. 

**Content and Image Optimization:** it encourages the client to see the quality, relevant, and keyword-rich material that will improve the design of a web portal. Image Optimization enables the site to load immediately with the images. 

**Pricing and accessibility:** Pricing and accessibility tables for search must be easy and clear so that clients or voyagers pick a suitable item from the list. 

**Google Maps Integration:** It assists the majority of the client to effectively discover the destination through the map and view the close by area. 

**Travel Insurance:** All clients need to know about the travel insurance before they buy any product, the client required data about the secure insurance policy, with the travel insurance any travel portal will get more income. 

**Online web/Mobile booking System:** It assists most clients to look and book the travel product( like flights, hotels, holiday packages, transports, and car rentals) with an online payment gateway integration to pay for assistance instantly to your site. It makes booking more simpler for any client with the details like booking data, contact information, check-in date, and check out date details, passenger information, and other travel booking related data. 

**Ticket Search Filter alternative:** The client can have the option to filter the search choice with various filter choices that make the online booking experience simpler to the client by coordinating their client necessity. 

**Booking Visual Impact:** Travel web portal gets more impressions with the pictures on the site, images play a significant role, more images get more client fascination with regards to travel web designing, so connect most web content with pictures and infographics. 

**Product Reviews and Ratings:** Web portal for the travel-related item and other products like e-commerce business all the clients need to realize other client experience in the site and with the product they are searching for before they purchase. Reviews and ratings pull in more clients and enhance conversion rates.
Noop in ReasonML
Tags: reason, notetoself, noop
Published: 2020-10-23 08:21:16

---
title: Noop in ReasonML
published: true
description: Discord Bookmark to Comments
tags: reasonml, notetoself, noop

---
Note to self on where those explanations where on the purpose of `noop` functions in ReasonML.

https://discord.com/channels/235176658175262720/235176658175262720/768734335552978959
Convert your Pdf in cool AudioBook with 3 lines of python code
Tags: python, opensource, hacktoberfest, github
Published: 2020-10-23 07:55:14

## AudioBook 🔊

<a href="https://pypi.org/project/audiobook/"><img src="https://img.shields.io/pypi/dm/audiobook?style=for-the-badge" alt="download"></a>

The AudioBook is a python module to Listen to your favourite pdf 📖. It also can be used offline.

## Documentation

Check the Audiobook Documentation [here](https://audiobook.readthedocs.io/)

## Installation

Install it from [pypi](https://pypi.org/project/audiobook/)

```sh
pip install audiobook
```

```python
from audiobook import AudioBook
ab = AudioBook("file_path")
ab.text_to_speech()
```

### Linux installation requirements

- If you are on a Linux system and if the voice output is not working, then:
    Install espeak , ffmpeg and libespeak1 as shown below:

```sh
sudo apt update && sudo apt install espeak ffmpeg libespeak1
```

## Roadmap

- speech speed control
- Support more extensions
- save the audiobook for future

## Links

[GitHub](https://github.com/codePerfectPlus/audiobook) • [Pypi](https://pypi.org/project/audiobook/) • [Documentation](https://audiobook.readthedocs.io/)

Contributions are welcome. Share your feedback in comments.

<img align="right" src="https://img.shields.io/badge/Made%20with-Python-1f425f.svg?style=for-the-badge">
Did my first hacktoberfest this year
Tags: hacktoberfest
Published: 2020-10-23 07:50:52

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->



<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 
My friend has been talking about hacktoberfest very much so i decided why not try something new this year. 


<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here → Yeah i am new to open source and in general i have just been writing serious code for not more than a year.



<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->
My 4 PRs have just passed the reviewing period and i have claimed my reward for participating.


<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->
My 3 PRs where in the project from a Nigerian NGO called Dev-career an organisation that helps budding devs by enrolling them in a 3 months program called #laptops4Developers  were they provide them with free laptops, a core working space in different tech hubs across Africa and free courses in their chosen tech field.the other one came from a project by a Indian guy who was making a beautiful web site for university students.  



<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  --> 
As a first time participant, this has been a beautiful experience, i have learnt how to work with different people from different cultural background.Sure next year i am taking part.
Why Data Science with Python is so popular?
Published: 2020-10-23 07:18:36

As you will progress in the [Data Science with Python training](https://www.igmguru.com/data-science-bi/python-training/) program, you will get to know the below things

Statistics for data science
Basic data cleaning techniques for model building
Converting your raw data into a machine consumable format
Working principle of machine learning models and their applicability
Understanding the parameters required for checking model accuracy
Deploying the model to make it available as a service
Maintaining the model over a period of time