teleren/devto huggingface dataset:
Internet blackouts suck but you can still stay connected
Published: 2020-10-15 04:22:06

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/qif6jlsv5ym4od3kc31e.jpeg)

## When Internet Service is shutdown (Complete Blackout)

A complete blackout happens when all local mobile network operators turn off access to the internet.

All local mobile network operators turn off access to the internet. They go offline, and WIFI and cellular data do not work. Sometimes, even GSM goes offline, especially when off-grid.

### How to get connected
There are two scenarios:
- You want to stay connected with close family, friends, and associates
- You want to communicate in a social setting as you do on Twitter, Facebook, and others.

__One-on-one communication with Friends, Family, and Associates__
1. __Bridgefy__: Bridgefy enables you to keep in touch with friends without the need for the internet or SMS. You communicate via Bluetooth and with thousands of users over a long distance. Download Bridgefy for Android and iOS.

__Offline Social networking__
1. __Manyverse__: Manyverse is a social network off the grid. Features include posts, threads, likes, profiles, and more, but data is stored on your phone and works offline and online. Download Manyverse for Android and iOS.

## When certain websites, Apps, or IPs are blocked (Blacklisted)
Mobile network or other parties block access to specific websites, apps, or domains.
### How to bypass
#### On Android:
Download any of the apps below
Psiphon (Free)
Private Internet Access (2 Month Free)
Complete the setting and activate VPN
You will now be able to browse the blocked website or use the blocked apps.

#### On iOS (iPhones):
- Download any of the apps below
  - Psiphon (Free)
  - Private Internet Access (2 Month Free)
- Complete the setting and activate VPN
- You will now be able to browse the blocked website or use the blocked apps.

#### On Windows:
- Download any of the apps below
  - Psiphon (Free)
  - Private Internet Access (2 Month Free)
- Complete the setting and activate VPN
- You will now be able to browse the blocked website or use the blocked apps. OR
- Use Naija Browse

#### On Mac OS:
- Download the following
  - Private Internet Access (2 Month Free)
- Register and complete settings, and you should be good to go OR
- Use Naija Browse


Stay connected!
Hacktoberfest
Tags: hacktoberfest
Published: 2020-10-15 04:20:07

## What I Learned From Hacktoberfest

<!-- What did you learn that can help others contribute to the project you worked on? What did you learn that can help the users of that project?! -->
I learned git, how to do pull request ,find problem in repository and solve them and help other in their projects and also develop our own coding skills by helping others.
UiPath course in Bangalore
Tags: education, teaching, training
Published: 2020-10-15 04:12:30

FITA is offering the best coaching in UiPath  training in Bangalore, students over here is being coached by professional trainers who can able to provide practical classes for the students with the real time examples. Join here and get to know more about UiPath course in Bangalore. We FITA are also available through online platform for giving you the better understanding of the concepts.
Simple way to overcome the multiple SCSS files issue with Shopify
Tags: shopify, gulp, scss, css
Published: 2020-10-15 04:07:00

Shopify uses SCSS already (and compiles it on the server), but only allows you to work on one .scss file, meaning you miss out on splitting up your styles into more manageable, separate files.

Here's a simple (and a little hacky) solution I came up with:

**We compile our multiple scss files into a normal `theme.css` file, but then use Gulp to rename that file to `theme.scss.liquid`.**

We will use Gulp for 2 things - building SCSS and deploying to the server (the latter is optional. Themekit already does this).

I am using the `gulp-shopify-upload` plugin for transferring files to Shopify's server (more info on that here https://www.npmjs.com/package/gulp-shopify-upload).

My  `gulpfile.js` looks as such:

```javascript
const gulp = require('gulp');
const sass = require('gulp-sass');
const rename = require('gulp-rename');
const gulpShopify = require('gulp-shopify-upload');
const watch = require('gulp-watch');

// Normal .scss compilation.
gulp.task('sass', function(){
  return gulp.src('assets/scss/theme.scss')
    .pipe(sass().on('error', sass.logError))
    .pipe(gulp.dest('css'));
});

// Rename css.
gulp.task('rename', function(){
  return gulp.src("css/theme.css")
  .pipe(rename("theme.scss.liquid"))
  .pipe(gulp.dest("assets"));
});

// Compile and rename css.
gulp.task('do-sass', gulp.series('sass', 'rename'));

// Watch files, upload to Shopify server.
gulp.task('shopifywatch', function() {
  gulp.watch('assets/scss/**/*.scss', gulp.series('do-sass'));
  return watch('./+(assets|layout|config|sections|snippets|templates|locales)/**')
.pipe(gulpShopify('API KEY', 'PASSWORD', 'MYSITE.myshopify.com', 'THEME ID'));
});
```


And that's it. Running `gulp shopifywatch` now compiles SCSS files, watches normal files and shoots everything up to the server. It might complain about .scss, but it's just a warning.
Hacktoberfest
Tags: hacktoberfest
Published: 2020-10-15 03:37:21

## What I Learned From Hacktoberfest
It was my first hacktoberfest rather I would say my first open source contribution. I got to learn about git and git hub. I got to learn about reading other's code and then working on it. 

<!-- What did you learn that can help others contribute to the project you worked on? What did you learn that can help the users of that project?! -->
My first hacktoberfest experience
Tags: hacktoberfest
Published: 2020-10-15 03:29:19

## I Learned several things from Hacktoberfest 2020. I learned that how we do open source contribution and any person can use and modified it with your permission, across the globe. Now I get full experience about open source and hence from now on-wards I will give such type of open source contribution on Github. From this open source everyone can learn something that how we write code in efficient way and how we used it.

<!--  -->
Kick off to Opensource
Tags: hacktoberfest
Published: 2020-10-15 03:28:26

## What I Learned From Hacktoberfest

So like I am actually a beginner with all this open source and stuff and have seen a repo from a maintainer from our college named Hacktoberfest , so out of curiosity immediately googled and got into Digital Ocean website and read all the guidelines and officially kicked off my open source journey. The first contribution I made was into a Raspberry Pi collection repo and added my project and the setup configuration I have used on my personal Pi projects. Second one was onto a repo which had a huge collection of tech stack badges and I have added my touch to the collection. The rest two of the PR's I have contributed to an open-source algorithms repo.
Distributed Systems Introduction for Beginners
Tags: webdev, javascript, career, tutorial
Published: 2020-10-15 03:08:57

Knowing how to code is enough to get you a job as a programmer, but if you want to get promoted through the ranks to higher levels, system design and architecture becomes just as important as your coding abilities. 

In this video I'll give a brief introduction to distributed systems, the pros and cons associated with them, and why they are used. **If you want to learn more in detail, be sure to subscribe to my channel and check out some of my other videos covering the specific components of distributed systems in depth**

{% youtube MwGOjSld5iE %}
Halftime at Hacktoberfest 2020
Tags: hacktoberfest
Published: 2020-10-15 21:59:47

---
title: Halftime at Hacktoberfest 2020
published: true
date: 2020-10-15 00:00:00 UTC
tags: #hacktoberfest
canonical_url: http://hugomartins.io/essays/2020/10/halftime-hacktoberfest-2020/
---

Even though [shitoberfest](https://twitter.com/shitoberfest) threatened to ruin Hacktoberfest 2020, I still pushed forward and I’m participating in it, as usual. I’ve written about my participation in [2016](https://hugomartins.io/essays/2016/10/hacktoberfest-the-end/) and [2019](https://hugomartins.io/essays/2019/12/minor-followup-on-hacktoberfest/). In both I have failed (0 PRs in 2016 and 3 PRs in 2019), I have succeeded in 2018 and it has introduced me to a few open-source projects - for example, `pytest`.

We are now halfway into Hacktoberfest 2020 and I have submitted 2 PRs - one already approved and another under review. To start, I submitted a quick PR to a project I maintain ([awesome-linters](https://awesome-linters.hugomartins.io/)) to resolve a simple grammatical error that a user spotted. Since the user didn’t want to open the PR, I ended up creating the PR and accepting it as an Hacktoberfest contribution - all in all I have to maintain it so I thought it _kind of made sense_.

For a second PR, which is still under review, I tried to contribute something more substantial. Even though it is still a beginner-friendly PR, [this PR](https://github.com/pytest-dev/pytest/pull/7875) I opened in `pytest` aims to improve the reporting of the tool when it is executed with `--collection-only`. A user reported that [it was a bit confusing](https://github.com/pytest-dev/pytest/issues/7701) and I tried to understand where the reporting issue came from and “fixed it”. I hope his small 29 LOC PR gets accepted, as it will be my first PR to `pytest`’s core - I made a few contributions to documentation but not to the core codebase.

Let’s see what I can still do with the rest of Hacktoberfest 2020 but I am already happy about this core contribution to `pytest`.
Weekly Challenge #082 Task #1 :: (Raku) 
Published: 2020-10-15 02:16:59

## [TASK #1 › Common Factors](https://perlweeklychallenge.org/blog/perl-weekly-challenge-082/#TASK1)
Submitted by: Niels van Dijke

You are given 2 positive numbers $M and $N.

Write a script to list all common factors of the given numbers.
Example 1:
```
Input:
    $M = 12
    $N = 18

Output:
    (1, 2, 3, 6)

Explanation:
    Factors of 12: 1, 2, 3, 4, 6
    Factors of 18: 1, 2, 3, 6, 9
```
```
Example 2:

Input:
    $M = 18
    $N = 23

Output:
    (1)

Explanation:
    Factors of 18: 1, 2, 3, 6, 9
    Factors of 23: 1
```
It was really easy than I think it should be... quite opposite to Task #2 which I think easier.

If we are given N = 1000, We can get a series of divisors like below

```perl
> [ 1 .. 1000 ].grep({ 1000 %% $_ })
(1 2 4 5 8 10 20 25 40 50 100 125 200 250 500 1000)
```

we can use for loop, or ["gather and take"](https://docs.raku.org/syntax/gather%20take) if you want.

if we are done with finding both divisors we can create a
set which contains intersection by
```perl
> [ 1 .. 12 ].grep({ 12 %% $_ }) (&) [ 1..18 ].grep({ 18 %% $_ })
Set(1 2 3 6)
```
and only grab the values
```perl
([ 1 .. 12 ].grep({ 12 %% $_ }) (&) [ 1..18 ].grep({ 18 %% $_ })).keys.sort
(1 2 3 6)
```
[infix (&), infix ∩](https://docs.raku.org/routine/(&),%20infix%20%E2%88%A9)
I used "∩" infix during the [Challenge #076 Task #2](https://perlweeklychallenge.org/blog/perl-weekly-challenge-076/#TASK2) as you can see in this [code](https://github.com/manwar/perlweeklychallenge-club/blob/fbd351f17d2386b990425b937ecbb8d6bd93ef9a/challenge-076/jeongoon/raku/ch-2.raku#L146).
I wrote something like [this perl code](https://github.com/manwar/perlweeklychallenge-club/blob/fbd351f17d2386b990425b937ecbb8d6bd93ef9a/challenge-076/jeongoon/perl/ch-2.pl#L184) in Raku. but couldn't see big difference or slightly faster when using "Set".😅 so I thought "why should I use my own code if raku gives me faster one?", and changed it into simple line. quite convenient operators!!

## **[gcd Infix](https://docs.raku.org/routine/gcd)**

But we have gcd in Raku, so we don't have to make both divisors.
```perl
with [gcd] (12,18) { [ 1..$_ ].grep(-> \k { $_ %% k }) }
(1 2 3 6)
```

## **Final Code**
```perl
sub MAIN ( *@n where { @n.elems == 2 and @n.all ~~ Int and @n.all > 0 } ) {
    with [gcd] @n {
        say( [1.. $_].grep(-> \k {$_ %% k}));
    }
}
```

If we are still unsure, we can still use "any"

```perl
sub MAIN ( *@n where { @n.elems == 2 and @n.all ~~ Int and @n.all > 0 } ) {
    say( [1.. @n.min].grep({any(@n)%%$_}) );
}
```

Thank you for reading ~!
Create a Free DB on Google Cloud
Published: 2020-10-15 02:45:18

Once you've created a Google Cloud Console account follow these steps to create a free DB:
1. Create a project
2. Go to the Market place and search for MYSQL Bitnami and select **MYSQL packaged by Bitnami** and click launch. 
3. Configure it with the cheapest possible options. Should be $5.65 if you select SSD for storage.
4.  Once the deployment is done take note of the Admin User and Password click SSH and enter the following command to edit your MySQL config: `sudo nano /opt/bitnami/mysql/conf/my.cnf`
5. Edit the file and change `bind-address=127.0.0.1` to `bind-address=0.0.0.0`. This configures your MySQL installation to allow remote connections.
6. Restart the mysql server by running: `sudo /opt/bitnami/ctlscript.sh restart mysql`
6. Now we need a static IP address so go to VPC Networks -> External IP Addresses. For your MySQL deployment change the type from `Ephemeral` to `Static`. Fill the prompt and submit.
7. Next, we need to allow external IPs access our VM. So still under VPC Networks go to Firewall and Click Create Firewall rule.
a. Enter the name and description
b. For targets select All instances in the network
c. For source IP ranges enter 0.0.0.0/0
d. For protocols and ports click Allow All
e. Leave the rest as is and click Create
8. Now we can test our MySQL Database connection using TablePlus.
a. Host will be the static IP address from step 6
b. Port is 3306
c. User and Password will be the credentials from step 4

That's it! If everything goes right then we have a Free MySQL DB that should cost almost nothing till things get really serious.
Hactoberfest 
Tags: hacktoberfest
Published: 2020-10-15 02:17:25

## What I Learned From Hacktoberfest

<!-- I learned a way to earn swags and prizes by contributing. Hactoberfest is the fest for all to participate and gain confidence. The organization also provides t-shirts to the participants in a way of motivation which is really appreciable. I have started contributing and would suggest everyone to be a part of hactoberfest2020. -->
 #hactoberfest
#Hacktoberfest event
Tags: hacktoberfest
Published: 2020-10-15 02:07:40

#Contributing in open source program program is not only to get just a reward .. It's main focus is to encourage people in programming field...

Contributing in projects can speed up your mind in finding and resolving bugs.. It also helps you to become skillfull in a programming language....
 
Resolving bugs and doing some creative work in a project can help users of that project to know something new..

Thank ❤❤👏👏 to #Dev community and digitalocean in bringing such program..
React from scratch
Tags: react, tutorial, webdev, javascript
Published: 2020-10-15 01:51:26

With availability of utilities such as [create-react-app](https://npmjs.org/package/create-react-app) and [create-react-library](https://npmjs.org/package/create-react-library), setting up the barebones for a new react application development has become child's play. But such utilites hide a lot of nitty gritty under their hood.

My idea of writing this post is, to allow new user learn how to start building a react application from scratch, without using any utility. Thus I created an empty application at [react-from-scratch](https://github.com/vishalraj82/react-from-scratch). The documentation mentions the step for application setup. The latter part of the document describes in brief about how the project has been setup.

Originally published at [https://vishalraj.blog](https://vishalraj.blog/creating-a-react-application-from-scratch/) on October 14, 2020.
Sharing my experiences with cancer in the workplace
Tags: workplace, cancer, experiences, apple
Published: 2020-10-15 01:26:35

Header Note: The post is on blind App shared by an anonymous person who works at the apple.

sharing my experience so someone here might feel less daunted.

Summary: 
-it was not rough. at worst, it was a tremendous inconvenience, even considering I started a brand new job just before radiation started and could not take days from work. 
-was told to expect mood swings, after some thought I gave a heads-up at work without mentioning the c-word. 
-supportive environment makes all the difference! 
—————
mine was an early-stage diagnosis. I found no reason to panic. treatment protocols are well defined. almost like assembly line production. 

process: 
—mammogram, 2 biopsies to confirm. biopsies can be painful but definitely tolerable. my pain threshold is very low, so it is probably easier for the average person. 
—2 surgeries - a small portion of the breast removed in the first one, lumpectomy. 2nd one checking to see if cancer had spread to lymph nodes.

one week rest at home for the first surgery, not lifting anything heavy for a few weeks.

for the second surgery, I was up and about in 3 days.

—radiation - I started a brand new job a couple of weeks before radiation started. I went to work during radiation.

I had to leave work mid-day for an hour to get radiation and get back. I also could not stay late but caught up with work easily after a couple of hours’ rest. no one could tell.

upon radiation ending, I was asked to expect mood swings for a couple of days. this was tricky!  I did not share the diagnosis but clearly communicated my mood may be “off” for a couple of days due to unspecified treatment, requested them to please bear with me and not hold any change in behaviour against me. they were understanding.

to add, soon after radiation I started treatment for freezing eggs. it had to be done before I start cancer medication. again I was asked to expect mood swings.

it was scary knowing my work and relationships could get jeopardized but except for snapping at a co-worker (the heads-up came in handy here and my apology was accepted), it was fine.

I over-compensated so met and for a couple, even beat deadlines.

emotionally, the diagnosis had little impact on me. helps that I experienced a lot of turmoil on several fronts earlier on in life. not having family responsibilities,  knowing I'm not leaving behind dependents helped. having a supportive environment - close family and friends helped!

hope this helps! it's not all gloom and doom!

[Original Post:](https://www.teamblind.com/post/sharing-my-experiences-with-cancer-in-the-workplace-tGdr3m6e)
Need help with Material Design
Tags: design, css, materialdesign
Published: 2020-10-15 00:48:36

Hi...
I am trying to learn Material Design & ReactJS. I could just use Material-UI React component library and get going. But, wanted to understand more by reading docs at material.io, where content is organized into 4 categories like web, android, flutter & ios. I started out with Web. 

Now, here's the PROBLEM I AM FACING: In the button component documentation styles part, it is mentioned... ```@use @material/button"; @include button.core-styles;```

To understand this, I started following the first Material Design Web Google Codelab (there are 5 of'em, go here--> "https://codelabs.developers.google.com/?cat=Web" and type MDC in search box) to see how the styles are actually used. There are 5 steps in total, in fourth step where styles for text-field/button component are imported like this ```@import "@material/button/mdc-button;``` which is different from what is mentioned in its documentation & I couldn't understand & relate to. 

What am I missing while reading the component docs? *Can someone please explain the differences between styles usage in a particular component docs vs its actual usage shown in codelab?*
alias to toggle your microphone using terminal
Tags: ubuntu, beginners, linux
Published: 2020-10-15 00:31:49

If you type it on your bash, you will alternate your microphone on/off switch (toggle).  If you are using ubuntu 18.04 open a terminal and type the command below:

`echo "alias mic='amixer -D pulse sset Capture toggle'" >> ~/.bashrc && . ~/.bashrc`

now when you type mic on your terminal it will alternate between muted or not.
Problem upgrading Ubuntu 18.04 on a Dell computer
Tags: ubuntu, linux, discuss, help
Published: 2020-10-15 00:19:16

Last week I had an interesting problem with ubuntu 18.04. I updated the system using 'sudo apt-get update && sudo apt-get upgrade' and for my surprise when I restarted the computer I had no sound e no mic. The only output was Dummy Output. I tried everything tutorial.
So I decided to reinstall using USB boot. Ok... Everything was working fine until the update, AGAIN!
I reinstalled again! 
This time, I decided to update using Software Update and it worked!! I don't know why but updating ubuntu 18.04.2 to 18.04.5 with sound and mic functioning properly, just using the Software Update. Is this problem only on Dell G3 3590 or is it a general problem?

(sorry my english, rs)
Useful Free APIs — Anime
Tags: productivity, codenewbie, beginners, webdev
Published: 2020-10-14 23:39:43

**Check out my books on Amazon at https://www.amazon.com/John-Au-Yeung/e/B08FT5NT62**

**Subscribe to my email list now at http://jauyeung.net/subscribe/**

In the software development world, practice makes perfect. Therefore, we should find as many ways to practice programming as possible. With free public APIs, we can practice programming by creating apps that use those APIs.

In this article, we’ll look at some practice project ideas that can use some of those APIs.

### Anime

There are many APIs we can use to access anime data for free.

### AniList

The AniList API lets us get anime data all in one place.

It provides us with GraphQL API.

Like most GraphQL APIs, it comes with a sandbox to let us try the API.

Data that this provides include studios, reviews, activities, site statistics, and more.

It also lets us change data like follows, likes, activities, and more.

Rate limiting and pagination is provided for large data sets.

And authentication is done via OAuth.

### AnimeNewsNetwork

The AnimeNewsNetwork API lets us get the latest anime news with its API.

We can get data in HTML or XML format.

Data provided includes manga details, animes series data, ratings, and more.

There is a usage rate limit imposed on this API, but authentication isn’t required.

### Jikan API

The Jikan API API is a REST API that lets us get various anime and manga data in our apps.

We can get detailed data including person, character, search, seasons, schedules, genres, producers, magazines, clubs, and more.

It has a REST API, and it has client libraries for many runtime environments.

Wrappers for PHP, Python Ruby, .Net, Node.js, TypeScrtipt, and more are written by individual contributors.

There’s a rate limit for accessing this API.

### Kitsu API

The Kitsu API is another API that lets us get anime data.

The data that’s provided by this API is similar to the Jikan API.

Data provided includes anime, manga, categories, streamers, posts, characters, media, and more.

OAuth authentication is required to access its data.

### MyAnimeList

The MyAnimeList API is another anime and manga database and community.

With it, we can get anime and manga data from it.

OAuth authentication is required to access its data.

### Studio Ghibli API

We can use the Studio Ghibli API to get various kinds of data about Studio Ghibli films.

They include data about the films, the people involved, locations of the films, vehicles, and more.

OAuth authentication is required to access its data.

### What Anime

The What Anime API lets us get specific details from anime images.

We can upload an image to the API to let it scan for details.

We upload the image as a base64 string and it’ll return the data from it.

It also returns images and video previews for us to view.

It has a rate limit and searches quota.

### Conclusion

We can get anime and manga data from various free APIs on the Internet.