teleren/devto huggingface dataset:
Most Popular Anti-theft Alarm Applications for Android users to protect the Mobile phone from thieves.
Tags: android, sotwsurvey
Published: 2020-03-16 06:29:16


The loss or Stolen of Mobile Phones is a big problem for every person. because every person has saved all important data or pictures in their Mobile Phone. So every person wants to secure their mobile phones. For this purpose, the developer has developed the best Antitheft Alarm application for Android users. you can easily download from the Google play store. But we have picked the most popular Anti-theft alarm Application for android users to protect their Mobile phone from thieves.
Anti Theft Alarm for Mobile — This is one of the best App in the android market. this can help you to protect your mobile from the thieves. the Anti-theft alarm app will detect the motion of your phone that can someone touching your phone so it will be ringing and you will be alert and will save your phone from the thieves. So you must download this app to save your mobile phone.
Anti-Theft & Full Battery Alarm — This is another best app for anti-theft alarm. The main reason for using the Anti-theft alarm app is to protect the mobile from unauthorized users or from the thieves. So this application is very useful for every person who wants to secure their phones. this app is totally free of cost you can easily download the app from google play store.
Privacy Protection Anti-theft alarm App — Using this App you will secure your app from the thieves. it will detect the motion of your mobile phone if someone else touches your mobile it will start ringtone and you will be informed that someone else touching my mobile phone. So you need to use this type of application to secure your mobile phones.

Anti Theft Alarm Saver — Your portable could be stolen in the event that you allow it to sit unbothered at anyplace. Someone can read personal messages and check your gallery. Your friends, kids, and family members can use your phone when you are not there. So it’s the better way to download and install this amazing security app or don’t touch my phone safety alarm.
Find My Phone Whistle — gadget finder by whistling: tool which is loudly ringing on whistling. Cell phone finder will come in handy if you are scared that in case of urgent need, you will suddenly lose your devices. Don’t be scared anymore! Lost mobile gadget finder can solve the problem without GPS navigation: the sound detector app will make an audio search — find phone faster & easily. Look, how you can save time: search your device fast, easy & really quickly. Cell phones finding app lets you really fast find mobile now even in silent mode!
Looking at Gitea as a Git host solution
Tags: linux, devops, git
Published: 2020-03-16 05:46:48

---
title: Looking at Gitea as a Git host solution
published: true
description: We talk about Gitea and see if it's a good replacement for gitlab or a good local choice for organization that want to use github locally.
tags: Linux, devops, git
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/p9xq6odnuo6hvxtlge8u.jpg
---

{% youtube XSXLt-AMoOI %}

We talk about Gitea and see if it's a good replacement for gitlab or a good local choice for organization that want to use github locally.
Connecting to ElasticSearch configured via Docker
Tags: docker, windows
Published: 2020-03-16 05:39:13

# Elastic Search and Docker

Setting up an elasticsearch + kibana runtime is very easy to do with docker-compose:

```yaml
version: '3'
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
    environment:
      - cluster.name=docker-cluster
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    ports:
      - "9200:9200"
  kibana:
    image: docker.elastic.co/kibana/kibana:6.3.2
    ports:
      - "5601:5601"
```

For more information on the defaults (`ulimits` or `environment` variables, please see [this](https://blog.k2datascience.com/running-elasticsearch-kibana-using-docker-5ff10ad017d0) post)

To run, you simply:

```bash
docker-compose up -d
```

And then navigate over to http://localhost:9200 for elasticsearch or http://localhost:5601 for kibana.

## Gotchas

As with all things, there may be some gotchas associated with this setup. Specifically, you may notice that sometimes navigating to the URLs referenced above will result in connection errors.

This can be for quite a few reasons, I'll list some common ones I've encountered below.

### Windows: ElasticSearch doesn't work

A few things to check - run a `docker ps -a` to ensure your container is running and for how long.

if it only lives for a few seconds, it may be due to a default [`max_map_count` issue](https://stackoverflow.com/a/11685165). To fix, if using `docker-machine`:

```bash
docker-machine ssh
sudo sysctl -w vm.max_map_count=262144
exit
```

If _not_ using `docker-machine`, try:

```bash
docker exec -it <container_id> /bin/bash
sysctl -w vm.max_map_count=262144
```

*NOTE*: this will not persist after container is killed. TO make it "permanent" you might want to:

```bash 
vi /etc/sysctl.conf
vm.max_map_count=262144
```

(press `:q` to exit)

```bash
vi /etc/rc.local
echo 262144 > /proc/sys/vm/max_map_count
```
[_source_](https://stackoverflow.com/a/53047291)

### Even after changes above, not working

One bit to note is that the docker container is simply wrapping the elasticsearch service. As such, sometimes it just takes a bit of time to load.

To ensure that elasticsearch is running properly, consider running:

```bash
docker-compose logs elasticsearch
```

This will display the log messages emitted as elasticsearch is booted inside your container.

```bash
example_elasticsearch | [2020-03-16T05:32:12,704][INFO ][o.e.n.Node               ] [IzFG4tZ] initialized
example_elasticsearch | [2020-03-16T05:32:12,704][INFO ][o.e.n.Node               ] [IzFG4tZ] starting ...
example_elasticsearch | [2020-03-16T05:32:12,959][INFO ][o.e.t.TransportService   ] [IzFG4tZ] publish_address {172.18.0.2:9300}, bound_addresses {0.0.0.0:9300}
```

Once you see those three lines, you _should_ be safe to attempt your "healthcheck" such as visiting `http://localhost:9200` in the browser or curling for it.

Alternatively, if something is foobar'd you'll see it here which gives you further clues as to what went wrong.
Process creation in UNIX : Simplified
Tags: unix
Published: 2020-03-15 23:40:07

Process is an instance of a program in execution. Its also called task or job. For example the command who would display all the users currently logged into Unix. Here the execution of the program who is a process. The actual program resides on the secondary memory (such as hard disk) while the process will be executed in the RAM. (In some cases memory may be allocated from secondary memory as well which is known as virtual memory).

Some key aspects of processes:

Process is “born” when it starts execution and is said to “die” when it completes execution
Kernel takes care of process management
Process communicates with other process through system calls
Process is created by the “fork” system call.
 

There must be some process which starts ‘fork’ as well. This is called parent process and the new process created is called child process. Each process is associated with “process_id”.  The First Process which gets created is Process 0 (called Parent process as told before), when the system boots up. After this process is ‘Forked’ for a child process, process 0 becomes ‘swapper’ process. This process is part of the kernel and will be used for scheduling other processes.

The child process is called ‘Process 1’ which is considered as ancestor of every process in UNIX and is called the ‘init’ process.

After the system gets logged in, the Kernel creates the SHELL process. Hence Shell is also a process and is associated with PID. To know PID type the below command:

echo $$

For example, in the below command:

ls –l | more

The parent process is the shell. ls-l is executed first and the output is fed to more which displays output one page at a time. Hence ls-l and more are two child processes here.

_______________________________________________________________________________

The process creation consists of three phases:

Fork : When a process is said to be forked, it creates a copy of the process. The new process will have a new PID.

Exec:  Just creating a new process is not sufficient to execute it. The child process will require to overwrite the code and data of the parent process. This is known as ‘exec’. Note that the no new process is created here. This is just a mechanism to execute the process.

wait: The parent process would call ‘wait’ system call, which would suspend its execution and wait till the child process is complete.

One of the best example of process creation is the logging process.

In a multi user system, once system boots up, process 0 which is part of kernel process forks the init process and becomes the swapper process. The init process then spawns the getty process (which is get terminal- the terminal process). The getty process then execs the login program which waits till the user enters credentials which it validates. If login is successful, it execs the shell program else it exits and the init program again forks and creates the getty process. The below flow diagram would give a clear picture.

https://dev-to-uploads.s3.amazonaws.com/i/2s9ly5nxgx7eo4531tp6.png
Compiled VS Interpreted: A Code Example
Tags: python, nim, todayilearned
Published: 2020-03-16 04:44:59

I've been writing code in python (interpreted language) for some time and as expected I, unconsciously, got habitual of writing interpreted code and python's lazy evaluation. For example, the following code works in python:
```python
if(1 == 2):
    print(a)
```
It doesn't matter if the variable `a` has been declared or not, the code works because python never executes the print statement until the `if` condition is true.

On the other hand, when you try to do it in a compiled language like nim, it fails, because as expected of a compiler, it evaluates everything it can during compilation. So I get the error:
```nim
if(1 == 2):
    echo a #ERROR: undeclared identifier: 'a'
```
The above example seems extremely simple, but you can end up with this kind of gotcha anywhere, like I did when writing the following code in nim:
```nim
type 
    htag* = object
        text: string
        level: int
        name: string
        
    atag* = object
        text: string
        link: string
        name: string
        
    
            
proc renderTag(tag: object): string =
    echo tag
    if(tag.name == "h"):
        return "<h" & $tag.level & ">" & tag.text & "</h" & $tag.level & ">"
        
    elif(tag.name == "a"):
        return "<a href='" & tag.link & "' target='_blank'>"
    
    else:
        return "nothing"
```
Here, if I declare one kind of object, I'll get an `undeclared field` error with the other.
Responsive and Multi-level Navigation Menu
Tags: html, css, beginners, webdev
Published: 2020-03-16 04:44:48

I have made a simple but responsive and multi-level navigation menu created with HTML, CSS, and a little bit of jQuery for the mobile view. 

Source code and demo:
https://github.com/junsantilla/jsnav/

Note: For the demo,  I include Twitter Bootstrap and Google Fonts.
Angular Material Smooth Scroll Bottom To Top
Tags: angular, todayilearned, todayisearched, webdev
Published: 2020-03-16 04:41:52

Angular is a popular JavaScript framework wth has a large number of communities and supports. Previously, we used angular material components to do something creative. So here we make Smooth Scroll Bottom To Top using angular material with CSS properties.

In this component, we used mat-icons and Also, used function to make a scrollable. Here we used angular scroll behavior in functions. Here we only modify mat-icons font size and fixed position of icons to the bottom-right side.

Make it yours now by using it, downloading it and please share it.

[Download source code](https://w3hubs.com/angular-material-smooth-scroll-bottom-to-top/)
Categorical data and a hungry girlfriend.
Tags: datascience, data
Published: 2020-03-16 03:40:53

You can get data anywhere.  But what better way then get data from personal life experiences.  Here I gathered data regarding on what my girlfriend would want to eat.  Seems like it would be a simple problem but believe me it is not.   I gathered the data and had to deal with categorical data.  Project is still in progress but would hope to be able to make a machine learning model that would accurately predict what my girlfriend would want to eat.   
Check out my github project [Here](https://github.com/williamjfermo/Hungry_GF_Project/blob/master/Workign_with_cat_data_and_a_hungry_gf.ipynb)
Not understanding this project.
Tags: java, discuss, help
Published: 2020-03-16 03:30:07

Hey everyone I am working on this [project](https://docs.google.com/document/d/1u4waO83jAyULCBCx5AtuzEhfYcx5ZMc7SZDapgWRyPo/edit?usp=sharing) and am having a hard time trying to complete it. The information given is confusing and at times lacking in clarity on what is supposed to be done. I don't know what to do because I believe I know OOP but with this project the directions are weird. Can someone look it over and tell me if it makes since to them and if it does tell me what I am missing in my project [here](https://gist.github.com/sonAndrew/4cd9aab78afb695fe2ebf704144804ad). You would go into the bin folder all the way down to get to the project.

I thank you in advance for your help.

update: Code is now a Gist.
Published `ip-filter` v3
Tags: javascript, node, webdev, showdev
Published: 2020-03-16 03:26:35

---
title: Published `ip-filter` v3
published: true
description: New major release
tags: javascript, nodejs, webdev, showdev
---

## Major v3 Release

- require `node >= 10.13`
- relicense to `MPL-2.0`
- switch to use `micromatch@4` instead of old `is-match`
- continuation of https://github.com/tunnckoCore/ip-filter/issues/8
- new home https://ghub.now.sh/ip-filter (`tunnckoCore/opensource/@packages/ip-filter`)
Visualizing COVID-19 data - Part-1
Tags: datavisualisation, javascript, nivorocks, covid19
Published: 2020-03-16 03:15:08

This article is based on the weekend-hack that I have been working on.

To start off with, I have used the REST API provided by mathdro which provides the latest data related COVID-19 affected regions and numbers across the world.

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

Some of the useful tools that I have used are:-

1. REST API from [COVID-19](https://covid19.mathdro.id/api)
2. [NivoRocks](https://nivo.rocks/) for visualization
3. [NextJS](https://nextjs.org/) - For app development with [React](https://react.org)
4. [Netlify](https://app.netlify.com/) - For code deployment

The deployed version can be found at [COVID-19 VIZ](https://covid-19-wa.netlify.com/covidGlobal)

The code-base can be found at [Covid-19 Viz](https://github.com/nitinreddy3/corona-viz)


**Currently, this only shows the world-wide numbers for "Confirmed", "Recovered", and "Deaths" cases.**
React Native – O projeto /dev/All Mobile – Introdução
Tags: reactnative, react, javascript, mobile
Published: 2020-03-16 20:49:49

---
title: React Native – O projeto /dev/All Mobile – Introdução
published: true
date: 2020-03-16 01:59:54 UTC
tags: React Native,React,javascript,mobile
canonical_url: https://www.itexto.com.br/devkico/?p=3069
---

Tal como mencionado em meu último post, algo que estava planejando é a escrita de uma série de posts sobre React Native. Mas mais do que uma série de posts, achei que seria interessante narrar o processo de criação de um produto.

Sendo assim demos início ao projeto /dev/All Mobile: um app para Android e iOS que substitui o front-end atual do site (https://devall.com.br). Vocês entenderão por que no app removemos a maior parte dos recursos que existem hoje no site atual (há boas razões pra isto), os erros que cometemos na implementação deste front-end e como a partir da análise de comportamento dos usuários estamos realizando um verdadeiro reboot no site.

Claro, tudo descrevendo passo a passo aspectos do desenvolvimento com React Native. Sendo assim as principais dificuldades que enfrento no desenvolvimento (e que provavelmente outros iniciantes também enfrentam) são descritas nesta série de posts.

O primeiro post é sobre arquitetura: como é a arquitetura atual do /dev/All (que não deve sofrer grandes mudanças além da inclusão de um novo cliente), como monitoramos o comportamento dos usuários e quais os "erros" que cometemos na encarnação atual do site.

Logo na sequência apresento os próximos passos do projeto que vocês poderão acompanhar semanlamente no meu blog. Interessou? Leia os detalhes neste link: https://www.itexto.com.br/devkico/?p=3069
Why Software Development?
Published: 2020-03-16 01:59:04

I decided to start learning software development to become a builder of useful programs. I think that being able to understand how programs are built or being able to develop programs from scratch is a very powerful - and fun - skill that is needed in any startup or large company in the modern world. I'm excited to be living in a time where relevant tech companies had their starts in a dorm with just one computer. It's an interesting time to be living in, and I'm learning how to code so that I have the necessary toolset to make the best out of it.
A great way to keep track of all language features oh my cheat sheet
Published: 2020-03-16 01:55:23

I have been coding for the last 10 years. I have been through Quick Basic, Visual Basic, C, PHP, Ruby, Javascript and Web UI with CSS, HTML and Bootstrap. Its impossible for anyone to remember all the features and syntax of everything.

Then, I found https://ohmycheatsheet.com . It has everything I need like CSS, HTML, jQUery, Ruby and Javascript cheat sheets.

Some useful links are:-

https://ohmycheatsheet.com/
https://ohmycheatsheet.com/css
https://ohmycheatsheet.com/jquery
https://ohmycheatsheet.com/ruby
https://ohmycheatsheet.com/ruby/Array
https://ohmycheatsheet.com/html
https://ohmycheatsheet.com/fontawesome/
https://ohmycheatsheet.com/material_icons/
Better way to unsubscribe in Angular
Tags: rxjs, angular, typescript
Published: 2020-03-16 01:48:09

---
title: Better way to unsubscribe in Angular
published: true
description: 
tags: rxjs, angular, typescript
---

---
You might be wondering why do we need to unsubscribe every subscriptions. Well, you can get the answer from our friend here [Netanel Basal](https://netbasal.com/why-its-important-to-unsubscribe-from-rxjs-subscription-a7a6455d6a02). He have a nice .gif example so check it out.


As time goes on, we(developer) really tired of keep repeating the same process:

```
1. Importing ngOnDestroy,
2. Implement the interface
3. Create public function ngOnDestroy() { … }
4. Create a variables to keep list of subscriptions
5. … 
6. …
7. And repeat the whole process for other components.
```

This is tedious and a waste productivity.
So, I'm going to share a 2 approach on how to unsubscribe subscription easily. But let's start with normal approach.


---

## 1. Using Inheritance


Create a BaseComponent so that, whoever extends this component are able to easily add subscription and easily unsubscribe on destroy.

{% gist https://gist.github.com/AzrizHaziq/837befe71d64d5e73ae540e981ded24a file=base-inheritence.ts %}


And this is how to implement in component class.

{% gist https://gist.github.com/AzrizHaziq/837befe71d64d5e73ae540e981ded24a file=child-inheritence.component.ts %}


One caveat tho, if the component extends BaseComponent and it also have implement ngOnDestroy() you would have to add super.ngOnDestroy();

{% gist https://gist.github.com/AzrizHaziq/837befe71d64d5e73ae540e981ded24a file=any-child.ts %}


## 2. Decorators

I think this approach kinda complicated a little bit as it mutate prototype. BTW i'm using [mixin](https://javascript.info/mixins) approach. Plus is not battle tested with `this`.

{% gist https://gist.github.com/AzrizHaziq/837befe71d64d5e73ae540e981ded24a file=base-decorator.ts %}


And here how to implement it

{% gist https://gist.github.com/AzrizHaziq/837befe71d64d5e73ae540e981ded24a file=child-decorator.component.ts %}

Thats all, feel free to play around here.

{% stackblitz better-way-to-unsubscribe-in-angular view=both %}

### Update
- Decorator approach with previous example it doesn't really work
- Added `once` method to auto close the subscription. Can be really help full for something like click button, then trigger one http, and after that close it. (save your time to import `take`)
- Added type to functions params and return
- I'm still having difficulty with the return type in Decorator approach. Any typescripts master, please help me with this.
My Courses Are Free During the Crisis
Tags: teaching, courses
Published: 2020-03-24 20:31:14

---
title: My Courses Are Free During the Crisis
published: true
date: 2020-03-16 01:38:17 UTC
tags: Teaching,Courses
canonical_url: http://wildermuth.com/2020/03/16/My-Courses-Are-Free-During-the-Crisis
---

![Courses](https://wilderminds.com/images/logo_300x94.png)Not sure if anyone is as anxious about the state of the world as I am, but I'm a little freaked out. I don't have any medical skills and am already isolating myself in place (with my wonderful wife). So I don't feel like there is much I can do to help.

I had an idea last week to discount my Bootstrap 4, but it still didn't feel like enough. So instead, I've decided to open all my personal course (not the Pluralight courses) for free until this all blows over. If you're home waiting for something to do, you can go watch any of these courses completely free.

You do _not_ need to register, or anything, just visit the course and all the videos are available as ‘previews’. You will be able to take the entire course without even giving me any personal information! The courses include:

> [Bootstrap 4](https://courses.wilderminds.com/p/bootstrap-4-by-example)

> [Using Vue with ASP.NET Core By Example](https://courses.wilderminds.com/p/vue-js-by-example)

> [SignalR in ASP.NET Core Projects by Example](https://courses.wilderminds.com/p/signalr)

> [Integrating SignalR and Vue](https://courses.wilderminds.com/p/integrating-signalr-with-asp-net-core-and-vue)

> [Integrating SignalR and Angular](https://courses.wilderminds.com/p/integrating-signalr-ng)

Just to be clear, you're not going to be able to ‘buy’ the course for free. The ability to view the course will end in approximately eight weeks. If you want access after this period, you'll need to buy the course. But for now, you can watch all these courses completely for free.

To view the courses, just click the ‘preview’ button as I've made all the videos made available for preview:

![Preview Videos](https://wilderminds.blob.core.windows.net/img/preview.png)

I hope you find some respite in learning something new while you keep yourself safe.

[![Creative Commons License](http://i.creativecommons.org/l/by-nc-nd/3.0/88x31.png)](http://creativecommons.org/licenses/by-nc-nd/3.0/)

          This work by [Shawn Wildermuth](http://wildermuth.com) is licensed under a [Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License](http://creativecommons.org/licenses/by-nc-nd/3.0/).  
          Based on a work at [wildermuth.com](http://wildermuth.com).

* * *

If you liked this article, see Shawn's courses on [Pluralsight](http://shawnw.me/pscourses).
 ![](http://feeds.feedburner.com/~r/ShawnWildermuth/~4/yRZnhinXhVk)