teleren/devto huggingface dataset:
Check User is ONLINE/OFFLINE using Snackbar in Angular in a minute!
Tags: angular, javascript, typescript
Published: 2019-06-02 07:26:47


Here is a small and easy Angular application to check if user is connected to Internet or not with use of Angular material!

First of all you have to install a packaged called ng-connection-service. Lets see how do we do that.

Create new Angular application using CLI

*ng new Online*

Install the ng-connection-service package inside the application from the CLI using:

*npm install ng-connection-service - save*

Once if you done this process please check your package.json whether it is added or not

you should see like below,

![angular-online](https://cdn-images-1.medium.com/max/1600/1*ow_7wLeRjTiu5B8ODCyCCg.png)

now, time to install Angular Material into your project using CLI

*install - save @angular/material @angular/cdk @angular/animations*

now, import it in app.component.ts like below:

*import {MatSnackBar,MatSnackBarConfig,MatSnackBarHorizontalPosition,MatSnackBarVerticalPosition} from '@angular/material';*

Let us finally inject the service inside the component. If you are familiar with service, you'd know that to inject a service, we go to the constructor of the component class and inject it as follows:

*constructor(private connectionService: ConnectionService, public snackbar: MatSnackBar){
});*

now the time for write logic of checking the internet connectivity. See the code below:

![angular-online](https://cdn-images-1.medium.com/max/1600/1*XtHPSpnIsXiFPupJ-QZH5g.png)

app.component.tsFinal result look like:

![angular-online](https://cdn-images-1.medium.com/max/1600/1*bJdwRa36GPDwbkfOK2czww.gif)

final outputhere you can see whenever I turned off my wifi connection Snackbar pop up in bottom and show OFFLINE Status.
Friday Blast #72
Tags: fridayblast, links, post
Published: 2019-06-02 20:37:57

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

[Replicated data consistency explained through baseball (2019)](https://mwhittaker.github.io/consistency_in_distributed_systems/1_baseball.html) - a first part of a series dedicated to _consistency in distributed systems_. This one prepares the ground and then reviews the article of the same name. Granted, I don’t know the baseball rules, but I picked up enough to get something decent out of this.

[When Google Wave crashed and the tech press burned (2019)](https://500ish.com/when-google-wave-crashed-and-the-tech-press-burned-84cc99eb518a) - about how the tech press and society at large has become more cynical about consumer technology. It’s easy to miss that _this stuff_ is just 20 years old. We’ve had computers for 70-80 years and networks of them for about 50. But it’s only with the personal computer and the web that they’ve started impacting society at large in a _grand way_. So we’re in uncharted waters, and they’re quite perilous to boot.

[Von Neumann’s critique of automata theory and logic in computer science (1947)](https://www.yodaiken.com/2019/02/20/von-neumanns-critique-of-automata-theory-and-logic-in-computer-science/) - interesting read. Interesting that such things crop up wrt distributed systems, but we’ve made single computers so reliable as to not make it required to think about hardware failures except as catastrophic.

[Serverless pitfalls - issues with running a startup on AWS Lambda (2019)](https://medium.com/@emaildelivery/serverless-pitfalls-issues-you-may-encounter-running-a-start-up-on-aws-lambda-f242b404f41c) - from the “why would you do that?” series. Now, it isn’t a bad idea to use serverless for some things. But for everything like the authors do? Not there yet - and perhaps we never will. In the end they settled on a hybrid approach with some stuff on Lambda and some latency sensitive stuff in regular old VMs.

[Serverless computing - one step forward, two steps back (2019)](https://blog.acolyer.org/2019/01/14/serverless-computing-one-step-forward-two-steps-back/) - a morning paper review of a paper by Hellerstein (of database fame) critiquing serverless computing. Their idea is not to bash on serverless but to rather incite folks to build _better_ offerings here.
Does this form of testing already exist?
Tags: help
Published: 2019-06-02 06:49:02

I've been writing SQL code for years now and the QA loop is always done by a human, in every job I've had. 

Any time I propose automated testing or some forms, people dismiss it because every data set is different blah blah blah.

What I want to do is build something that scans a SQL script and writes to a text file everything the QA person should check based on the SQL script.

I know i could do it using powershell, but that's hardly high tech. I looked into building a VS Code extension to do it, but I would be learning that all from scratch.  

Does this sort of thing already exist before I go and re-invent the wheel? Where It can parse text and based on pre-determined rules output something specific?

Many thanks in advance.
Think twice before sending a proposal.
Tags: webdev, career, discuss, advice
Published: 2019-06-02 06:01:10

Before starting reading this article keep this thing in mind " It was my mistake "

I remember, it was my first web development project that failed (only failed as per client thinking. I delivered a full web solution. But, client not satisfied. Yes, It was my great mistake.)

So, what happened is, my friend was working in travel company as a digital marketing head. ( he left now and started his own digital marketing business) and contacted me for web development project for the company he working for. So, finally we ( company's CEO, my friend and me) met and discussed about requirements of the project and CEO asked me to send the proposal for the project. So, I my self created a proposal and suddenly I got a mail. It was my friend's mail with other 3 proposal's of other developers attached who also in the race😎. So, I looked into those proposals and changed my entire proposal to win this battle 😁.
(Yes, this is completely fine for me. It's a battle of business. And this is how the big corporates works when it comes to filling a tender of government projects.)
So, finally I created my proposal very lucrative with low margin and high quality.

Finally, My proposal got selected and I got an advance 40% payment. after that I started working on the project as per our discussion.

After a week I delivered a final project and I asked for a remaining 60% of my payment. Now, real game began. CEO asked me to add blogging system with social media sharing facilities for their website. I agreed and created that. After that he asked me to do the same as their competitors website.(Look like their website which means completely re-design the website. Which is not possible. "Within the budget we agreed with.") So, I said no with humble. Then he told me that ok, I don't pay you remaining amount until you don't do that. I said its completely wrong. Then he said that you didn't mentioned about it in proposal we signed and agreed. Now I'm little bit scared 😬. At that time I've all the control over his company's online presence. ( Domain , Hosting, their social media accounts all of that with passwords.) I can do a huge amount of damage of their online presence with those control. But, I'm not evil. Somehow, we settle down this situation and the great lesson I learnt is that
" look and think twice before sending and signing an agreement or proposal "
Elixir is written in Elixir
Tags: elixir, computerscience
Published: 2019-06-02 03:53:59

![](https://thepracticaldev.s3.amazonaws.com/i/herz5rqy77d4bi1uk9h2.png)

Okay, I exaggerated the title a bit but most of the elixir’s source is written on top of elixir itself. But how? Did the chicken came first or the egg?

Turns out that, there is a technique called Bootstraping in compiler design which creates a self compiling compiler. What that means is, you write the core compiler for Y language in X language and then write a new version of the X compiler in Y language. Then you compile the Y compiler with the X compiler. Mindfuck.

In Elixir, the core compiler is written in Erlang and the tooling and libraries are written in elixir itself.

Coming from a ruby background with no prior CS degree, this really caught me off guard.
parallels
Published: 2019-06-02 01:32:31

Help wanted!
I'm developing a library for abstraction of software system's interactions & task distribution, coordination for parallel execution.

Tech stack: golang, cassandra, redis to begin with

Learn more here: https://github.com/SharedCode/parallels

If this interests you, please feel free to provide feedback and perhaps, join! the project. :)

It is in the first few days of incubation, thus, there is not head way that had been done yet. So, it is a good time to join and collaborate.

Thank you, sincerely,
-Gerard
How to read Medium members-only posts for free.
Tags: medium, memberonly, freemedium, mediumfreememberonly
Published: 2019-06-02 01:31:53

---
title: How to read Medium members-only posts for free.
published: true
description: "If you are like me who reads the medium article a lot but don't want to pay for it 🤫. Follow this article to read for free."
tags:
  [
    "medium",
    "member only",
    "free medium",
    "medium free member only",
  ]
---

If you are like me who reads the medium article a lot but don't want to pay for it 🤫. Follow this article to read for free.

> ⚠️ Before you proceed I'm using Google Chrome to demo but I'm sure process should be similar in any other browser.</h1>

1. On your computer, open Chrome.
2. At the top right, click More ![More](//lh3.googleusercontent.com/mR6ULZOdPFY5nzxPHdvC-7Rl5jDPqwBdfPDSVDg3DLnWBNGi-lVTXCsvUY7S1pYFFg=w18-h18 "More") ![and then](//lh3.googleusercontent.com/BP4EnS7AofL2zeRKpT9xDZR3DjOD0nQ_pvAI-VTHx4RZoPD-QVVWwsjNn3lv3OxO8FI=w18-h18 "and then") **Settings**.
3. At the bottom, click **Advanced**.
4. Under "Privacy and security," click **Site settings** ![and then](//lh3.googleusercontent.com/BP4EnS7AofL2zeRKpT9xDZR3DjOD0nQ_pvAI-VTHx4RZoPD-QVVWwsjNn3lv3OxO8FI=w18-h18 "and then")** Cookies**.
5. Next to "Block," "Clear on exit," or "Allow," select **Add**.
6. Enter the `[*.]medium.com` and `https://[*.]medium.com`
7. Select **Add**.

That's it
My First Year of University
Tags: computerscience, beginners, career, discuss
Published: 2019-06-02 01:25:40


My first year at university is just about to finish; my last exam is tomorrow. This first year was both harder and more comfortable than expected. I found I already knew or understood many concepts and found more than a few harder to understand, but I have enjoyed this year of university. I have learned just as much outside the lecture hall as in class. I don’t regret leaving my job as a trainee software engineer, despite being on track for a promotion to junior software engineer. I feel I will go so much further than I would have otherwise, I have gained so much from the first year.

Being a developer/software engineer is so much more than being a good programmer. Almost anyone can write code, but it takes an engineer to design and build a system. An engineer needs to be able to design the system as a whole, from the user interface to the data processing algorithms. As system design is vital to the success of a project; a poorly designed system will lead to poor implementation. 

During my six months working in the industry, I began to understand my deficiencies; I lacked some vital skills and knowledge. I know I could have gained this knowledge during though experience. But I felt I would have been held back, as many companies ask for degrees. That said I’m aware that lack of experience is just as much a setback maybe even more so then lack of education. To solve this, I plan to work in the industry over my summers. I’m also working on a new CS podcast and blog with my friend [Henry](https://dev.to/badrecordlength), where we plan to talk about CS and build cool and exciting projects.

I’m so glad life has led me to this place in life. I have had a few setbacks, including dropping out of [sixth-form college](https://en.wikipedia.org/wiki/Sixth_form) (post-secondary education), but these setbacks help prepare you for the future.  **_There is always light at the end of the tunnel._**  

Let’s end this with a message to high schoolers starting College or University this fall. It may be weird, strange, and even scary to live without your parents, who may make sure you’re up for school in the morning or cook dinner every night. And it may be sad to leave friends behind.  But remember this experience will help you provide to your self what you’re capable of. Use it to grow as a person, explore new ideas and help humanity progress as a society.

---
I'm working on more post's and projects, including a computer science podcast with my friend [Henry](https://dev.to/badrecordlength). To stay informed sign up to my email list [here](https://mailchi.mp/8dc9d35d15cb/nathantamez)


Photo by Gabriel on Unsplash
Can't Find Work? I Can Help
Tags: work, resume, education, job
Published: 2019-06-02 00:19:32

---
title: Can't Find Work? I Can Help
published: true
description: This article is a guide on how to make your Cv professional, and I can review the resume too
tags: #work, #resume, #education, #job
---
Have you been in a situation where you send your resume to hundreds of companies and you get this message:
<i>"Thank you for your interest in the XYZ position at XYZ company. Unfortunately, we will not be moving forward with your application, but we appreciate your time and interest in XYZ company."</i>

Well, not anymore. This article represents a small guide on how you can make your resume a professional one for free.

<b>1- Select A Simple Resume Type.</b> 

Choose an easy to read resume template. Try to stick to 2 or 3 colors in total in your cv. Taking the time to choose the best type of resume for your situation is well worth the effort.

<b>2- Make It Legible. </b>

Your resume should be easy to read.A great resume is the one that shows your key points as soon as the hiring manager reads it. Therefore, use a legible font and straight to the point phrases that summarise all your work in a couple of words. The smaller the phrase, the better.

<b>Related Article:</b> <a href="https://dev.to/hussein_cheayto/how-to-achieve-your-personal-goals-in-12-months-303o">How to Achieve Your Personal Goals in 12 Months</a>

<b>3- Be Consistent.</b>

Professional resumes need to have consistent formatting. For example, if you use diamond bullet points to describe your duties at one position, be sure to use diamond bullet points in all other positions as well. Also, make sure that you're using diamond bullet points in all the sections. Be consistent with font size and style.

<b>4- Keep Your Resume Focused. </b>

A resume shouldn’t be several pages long for the average job seeker, a one-page resume is probably enough, or two pages at most. Your resume should focus on the skills and attributes that qualify you for the job. It will be helpful to leave out anything that won’t help you get the job you want.

<b>Related Article:</b> <a href="https://dev.to/hussein_cheayto/get-rich-while-sleeping-j3n">Get Rich While Sleeping</a>

<b>5- Avoid Grammar Mistakes</b> 
 
Grammar errors can make an applicant seem inattentive to details. Carefully review your resume to ensure that it's error free.
It's better to let someone else help you detect typos, since you might miss out some tiny errors.

<b>6-I Can Review Your Resume</b>

If you're still struggling, send me a message on my <a href="https://husseincheayto.com/#contact">website</a>

And I will be glad to correct as much CVs as I can.

<b>Related Article:</b> <a href="https://dev.to/hussein_cheayto/how-to-gain-millions-of-dollars-using-your-skills-1e0k">How to Gain Millions of Dollars Using Your Skills</a>
What are some of your favorite newsletters?
Tags: discuss, newsletters, learning
Published: 2019-06-02 00:19:25

---
title: What are some of your favorite newsletters?
published: true
description: Newsletters are a great way to broaden our perspective and Gain knowledge. I would love to see which newsletters you find valuable. 😀
cover_image: https://images.unsplash.com/photo-1517816428104-797678c7cf0c?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&dl=oleg-laptev-546607-unsplash.jpg
tags: discuss, newsletters, learning
---

Newsletters are a great way to broaden our perspective and Gain knowledge. I would love to see which newsletters you find valuable. 😀
Keep Homebrew Formulae Up To Date
Tags: homebrew, macos
Published: 2019-06-08 14:22:40

---
title: Keep Homebrew Formulae Up To Date
published: true
tags: homebrew, macos
canonical_url: https://stephencharlesweiss.com//2019-06-02/update-homebrew-formulae/
---

In the same vein as cleaning up my git branches, today I recalled that I can easily update my Homebrew formulae with the command `brew upgrade`.

This kicks off the process which may take a minute or two depending on how long it’s been since your last upgrade and how many formulae you have.

The upgrade process will:

1. Update Homebrew if it needs it.
2. Add new formulae
3. Delete formulae
4. Upgrade outdated packages
5. Run `brew cleanup` if it’s been 30+ days

```
$ brew upgrade
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
catch2 deno include-what-you-use pprint
clzip erlang@21 lizard spice-gtk
csvq heatshrink molten-vk spirv-tools
==> Updated Formulae
harfbuzz ✔ fluxctl mailutils raylib
imageoptim-cli ✔ fn mame re2
node ✔ fobis mat2 rebar3
```

While this is easy enough to do every few weeks (and I’ve set a reminder in my Things list, right next to sharpen my kitchen knives), my next challenge is to schedule it using a “chron job” — something I’ve never done before!

Also worth noting, if there’s a specific formula you want to upgrade, you can use `brew upgrade <formula>` (which you may notice is out of date by checking the version (`brew <formula> -v`).
How do you manage your usernames and passwords?
Tags: discuss
Published: 2019-06-01 23:42:59

---
title: How do you manage your usernames and passwords?
published: true
tags: discuss
---

Hi, The last week I lost 3, yes TRHEE! credentials:

1-Grandstream IP-PBX.
2-Hikvision NVR.
3-and pizza hut online delivery.

The 1 and 2 item; I lost $160 in spending.

and you... How many users and password did you lose on mid of 2019?
How manage your credentials?
Do you really hate frontend or just the traditional frontend development
Tags: frontend, backend, web, javascript
Published: 2019-06-01 23:00:27

---
title: Do you really hate frontend or just the traditional frontend development
published: true
description: A brief discuss about why some backend developers hate frontend 
tags: frontend, backend, web, javascript
---

Do you feel like that is a lot of backend developers that says: "Oh, I hate CSS" or "I was not made to deal with HTML" and you get the impression that they actually do not know how the web has evolved today? They really hate it or they just still think that frontend is a UX design that knows how to code? 

If they have ever tried to use a framework like Angular or React (Modern technologies in general) that has more Javascript logic and more programmer's stuff, do you think that they would change their minds about the frontend?
How do you find all pairs of an integer array whose sum is equal to a given number?
Tags: python
Published: 2019-06-01 21:56:56

```python
input = [10,18,20,5,11,2,10,15]
sum = 20

length = len(input) 
for i in range(length): 
  for j in range(i+1, length):
    if(input[i] + input[j] == sum):
      print(input[i], input[j])
```
and the output is

```
10 10
18 2
5 15
```
How do you find the largest and smallest number in an unsorted integer array?
Tags: python
Published: 2019-06-01 21:41:14

Python is very simple language to do these kind of operations. Thats why its using in Machine Learning processes

```python
input = [10,20,30,11,10]

print(max(input))
print(min(input))
```

And, the output is

```
30
10
````
Review my JavaScript? #2 
Tags: help, javascript, beginners
Published: 2019-06-01 21:30:06

Hello to all the experts of JavaScript! 

I've worked on a fairly easy piece of code here (to me it's quite extensive since I'm just starting out) that I would love some pointers on. 

Here's the link to it: https://codepen.io/Nova/pen/RmEYoZ

Now I know, I give the answer to the missing number in the JavaScript code. That's actually one of my questions. So let me begin:

First, I want to be able to randomly generate a number that users have to guess, since just one look at my JavaScript code you know automatically what the correct guess is. I need to use something like Math.floor and Math.random... but I don't know how to apply it to my variable to make it work. 

Second, is there an easier way I could have done this? 

Third, did I "break" the while loop the right way? 

Fourth, if there is something I could have done better please let me know. 

Thank you guys for reviewing my code! I really appreciate it.
Handle Static Webflow Forms
Tags: webflow, form, html, serverless
Published: 2019-06-01 21:26:39

[Webflow](https://webflow.com) is a web-based drag and drop tool for building responsive websites. There are hundreds of professionally-designed templates. You can customize your selected template so that it’s perfect for your brand and goals. [Webflow](https://webflow.com/feature/changes-to-forms) recently stopped supporting form handling for exported sites.
You can easily handle your forms, receive files, integrate with over 1000 apps (Slack, Google Spreadsheet, E-mail, Google Docs and more) via [Getform](https://getform.io).  

Set up your Webflow form with 3 easy steps:
1- Create your first form in [Getform](https://getform.io) and get your form endpoint url.


2- Choose form element in Webflow and select its settings. Paste your Getform endpoint into Action input and set your method as POST. 3- Publish your website and send your first submission. Voilà

{% youtube NNvwKW2HFP4 %}

Getform features:
[File upload support](https://getform.io/docs/collecting-submissions/uploading-files),
CSV Export,
[E-mail notification](https://getform.io/docs/collecting-submissions/email-notifications),
[Webhook support](https://getform.io/docs/webhooks/how-to-setup-webhooks-on-getform),
[AJAX support](https://getform.io/docs/using-ajax/sending-submissions-with-ajax)