teleren/devto huggingface dataset:
Test Seamlessly on real iPhones and iPads!
Tags: ios, testing, emulators, webdev
Published: 2019-10-16 13:38:54

I discovered an interesting platform "BrowserStack" wherein one can test apps and websites on real iPads and iPhones online without any specific setup. You can simply upload your app and choose to run your app across a variety of iPad and iPhone devices. You can also choose to test on <a href=''>iPad emulator</a> for initial level of testing.

This platform is not just restricted to iOS, you can also test your web-app instantly across a variety of Android devices. You can perform hassle-free cross-browser testing across combination of popular browsers and devices!
Integer Reversal - Common Interview Problem
Tags: javascript, interview, frontend, react
Published: 2019-10-16 13:37:35

Hi all, I'll make this quick and go straight to the meat and paneer :) of things. 

Reversing a string or reversing a number is one of the common questions asked at programming interviews. Let’s take a look at how this is done.

Limitations/Rules: 
negative numbers should remain negative 
any leading zeroes must be removed
function that can accept floats or integers
the function will return integers a integers


```javascript
//enclose your code in parsefloat first
const reversedNum = num => { parseFloat(num.toString()
 .split('')
 .reverse()
 .join(''))*Math.sign(num) //make sure you multiply by this to correct the negative sign 
}
reverseNum(1234) // 4321
```


Ok, so now we have mentioned the limitations, let's break down the following arrow function solution into step.Arrow functions have an implicit return value — if they can be written in one line, without the need for the{} braces.

1. Notice, first we must convert the number into a string in order to use the split array method. num.toString() converts the given number into a String so we can use the split function on it next. 
2. the split function - takes a a string and turns it into a array of characters, we need to do this in order to use the next array reverse function. 
3. Reverse the array - num.reverse() reverses the order of the items in the array 
4. join() function - num.join() function - combines the reversed characters into a string.
5. Parse the input value into a floating point number. parseFloat(num) converts num into a float from a String. Notice the example below, it removes the 0s and the - and gives you only the float point numbers. 
```javascript
num = '0012345-'
parseFloat(num)
//num - 12345 
```
6. Multiply it by the sign of the original number in order to maintain the negative value. num* Math.sign(num)
```javascript
original value of num = -5432100
//num = 12345

num * Math.sign(-5432100)

//num = -12345
```
and there  you have it!
[Feedback] Slack: Cannot sign into new Workspace since update to 4.1.1
Tags: feedback, highstandard, slack
Published: 2019-10-16 13:34:40

---
title: [Feedback] Slack: Cannot sign into new Workspace since update to 4.1.1
published: true
description: 
tags: #feedback #highstandard #slack
---

because of your change to only login via browser, its not possible for us to sign into new workspaces.

in our companies all network enabled products have to run in seperate environments/sandboxes and the apps must not interact with each other. the apps have different access level on filesystem. so slack can't start firefox because the life in different environments/sandboxes. firefox can't be started in the slack sandbox because slack has no permission the access the appdata of firefox. so if slack tries to start firefox i only get the error message "Profile missing - Your Firefox profile cannot be loaded. it may be missing or inaccessible."
yes users cannot click on links but have to copy the link and paste it in the browser.

so beeing not able to simple enter a username and a password in an independent app but require a seperate app to log in is really wrong.

at least allow to generate/copy the "add new workspace" link from within the app.

please allow us to keep our serurity policy, support enhanced security and re-add the possibility to sign in via app only.

(i would have added a screenshot but your system really makes it complicate to upload a file. will open a seperate ticket for it)
Kubernetes Patterns : The Stateful Service Pattern
Tags: kubernetes, devops, docker, patterns
Published: 2019-10-16 13:33:46

When I first learned about StatefulSets, I always wondered: why to bother creating (and using) a new controller? Why not just use a ReplicaSet or a Deployment (which uses ReplicaSets internally) to serve our stateful app? Let’s assume that you need to run a MySQL database inside your Kubernetes cluster. The database needs to run only on one instance (provided that you are not using a MySQL cluster) that serves as the data store. You can create a ReplicaSet and set the number of replicas to 1. The Pod template would have one container running the MySQL image, and a Persistent Volume Claim that points to a Persistent Volume that was provisioned firsthand. You’d also create a Service that leads to the Pod and provides a DNS name for your MySQL database.
Learn more about best practices for Stateful Pattern: https://www.magalix.com/blog/kubernetes-patterns-the-stateful-service-pattern
Feedback Posts
Tags: feedback, highstandard, softwarediversity
Published: 2019-10-16 13:32:21

---
title: Feedback Posts
published: true
description: Why i do feedback posts
tags: #feedback #highstandard #software-diversity
cover_image: https://thepracticaldev.s3.amazonaws.com/i/8fazi8p8cavg0m8n2ykk.jpeg
---

i often take myself some time to write feedback for apps, devices, software, ... whatever.

most of the time the feedback will be read by one service person, i get a "no" in response and then the text i wrote catches dust in some ticket system.

this is the reason i thought i share some of my feedback messages here. maybe they are interesting for other persons or maybe there are more persons who see the feedback like me and also write a feedback.

together we maybe convince some app/software/device creator to change something.

i prefer diversity not one supersimple userinterface which works for 80% of the standard users but decelerate advanced user. 


feedback posts list (sometimes updated, new posts go to the top):

- https://dev.to/c33s/feedback-slack-cannot-mark-all-messages-in-a-workspace-as-read-31o1
- https://dev.to/c33s/feedback-slack-default-global-settings-1ge5
- https://dev.to/c33s/feedback-slack-allow-uploading-in-security-enhanced-browsers-2ldo
- https://dev.to/c33s/feedback-slack-cannot-sign-into-new-workspace-since-update-to-4-1-1-3bm1
- https://dev.to/c33s/slack-please-fix-tray-notification-allow-disabling-the-blue-gray-dot-2pjj



links:
- cover image by Pixabay https://www.pexels.com/photo/food-colorful-sweet-bear-54633/
How did you get your first dev job? 
Tags: discuss, career
Published: 2019-10-16 13:31:47

---
title: How did you get your first dev job? 
published: true
description: 
tags: #discuss #career
---

I'm looking for my first job as a Full Stack Developer and seriously confused about the transition from learning to getting the job. So I'll love to hear your opinions on what worked for you and how long it took.
#help has had a makeover
Tags: help, meta
Published: 2019-10-16 13:27:07

The `#help` tag has real potential to become an area where developers can come to ask questions and have access to the growing amount of experienced developers that frequent this site. 

Unfortunately, it has become a bit of a free-for-all for anything from helpful articles to extremely broad "I want to build x, how do I do it?" type questions. 

It was time we updated the guidelines to reflect exactly what this section of Dev is for. 

# Introducing #help (again)

Going forward, all articles will be expected to follow the submission guidelines outlined below (it is also on the sidebar of `#help` and will evolve with the community):

```
This tag is to be used when you need to ask for help, not to share an article you think is helpful.

When asking for help, please follow these rules:

Title:

Write a clear, concise, title

Body:

What is your question/issue (provide as much detail as possible)?

What technologies are you using?

What were you expecting to happen?

What is actually happening?

What have you already tried/thought about?

What errors are you getting?

Please try to avoid very broad "How do I make x" questions, unless you have used Google and there are no tutorials on the subject.
```

# What if my question doesn't fit within these guidelines?

There are some other great tags. 

For example, if you want a general discussion about the best way forward or a piece of technology, there's `#discuss`.

If you generally can't find a tag for your question, and you think it should sit in `#help` then please reach out. We're happy to update these guidelines to suite the community.

Generally, the following action will be taken for posts that don't meet our guidelines:

- If a post is made, that doesn't follow the recommended format for the title/body we'll leave a comment and ask you to update it, or provide a reason why that's not possible. We'll remove the tag after 24 hours if we don't see an update/response. 

- If a post is made that doesn't fit in with this section, we'll remove the tag and provide the reason why. 

# What about existing articles?

Nothing will be done to the existing articles. 

# I think your guidelines are wrong!

Excellent. Reach out to us and tell us how we can make them better!

# How do I reach out?

The best way is to drop a comment on this post. We'll be linking to it from the sidebar, and it will become a living document.
Kubernetes Patterns : The Stateful Service Pattern
Tags: kubernetes, devops, docker, pattern
Published: 2019-10-16 13:22:57

Most of the components that Kubernetes offers (Pods, Deployments, Jobs, CronJobs, etc.) consider that you are working with a stateless application. A stateless app is made up of several identical components that can be easily replaced. If you’ve heard the famous example of pets vs. cattle, stateless apps are regarded as cattle. If not, let me quickly shed some light on it: when you have several nodes hosting your application (those could be physical nodes, virtual nodes, or containers) you can either treat them as pets or as cattle. When you have a pet, you name it; you feed it, it’s unique among your other pets (you have a dog, a cat, and a turtle, each with distinctive characteristics). If one of your pets got sick, it’s immediately noticeable; you must do something about it.
for more informations visit: https://www.magalix.com/blog/kubernetes-patterns-the-stateful-service-pattern
Most Popular Machine Learning Tools for Every Data Scientist Should Know
Published: 2019-10-16 13:19:16

Machine learning is a kind of Artificial Intelligence that enables programming applications to learn from the data and become more right about predicting outcomes. Machine learning tools can ease your software development bothers in an effective way. With the help of machine learning tools, one could have the option to give your clients an effective software development solution according to their necessities. In the event that you are an entrepreneur and need to join these devices in your portable applications, you should contact a decent mobile application development based organization that can give you the correct solution according to your necessities.

read more:- http://bit.ly/2Bd965E
[Feedback] Slack - Please fix tray notification - Allow disabling the blue/gray dot
Tags: feedback, highstandard, slack
Published: 2019-10-16 13:10:30

---
title: [Feedback] Slack - Please fix tray notification - Allow disabling the blue/gray dot
published: true
description: 
tags: #feedback #highstandard #slack
---

Currently i am in 6 workspaces (after i signed out of 3-4, so i was in about 10 workspaces).  mainly developer workspaces like symfony, codeception, ...) with lots of channels with lots of message traffic.

so my slack tray icon has a blue dot all the time and my workspace logos have a gray dot most of the time. this is not helpful. this is annoying and stressful.
set the notification to "nothing" or "direct messages, mentions & keywords" does not change anything. the only way i can get rid of it is to mute all channels in the workspace (which is cumbersome, no mute-all, no general preferences, no default notification settings for new channels,...).

but i want to see bold channel name, just to see oh i should have a look into this channel again but without the force the blue dot in the tray or the grey dot on my workspace icon emits.

even Benjamin tried it https://beberlei.de/2017/07/29/hide_slack_unread_and_highlight_tray_icon_on_ubuntu_linux.html
please add more settings/options for the notification and allow us to disable all notifications and display dots from non-direct message.
thanks
On Go Package Structure
Tags: go
Published: 2019-10-15 15:22:28

---
title: On Go Package Structure
published: true
description: 
tags: Go
---

Go is getting more and more popular and as it does, some of the information out there about it is less and less idiomatic Go. It is great that Go is getting so popular. It is dangerous that there is more and more misinformation and bad advice out there.

One of the common areas of bad or poor advice I see out there is regarding project structure. This seems to be experience programmers projecting their past experience and trying to make Go into something that it is not.

In #reviews on the Gophers slack, I commented on someones request for review simply by saying "sooo many packages. would be more readable with everything in one package IMO".

Their response was that they tried to use many packages to simulate C#'s namespaces. This is my response:

Go doesn’t have namespaces for a reason. I recommend trying to let go of some aspects of C#.

golang-standards/project-layout is bad advice. I recommend not following it. Instead, https://medium.com/@benbjohnson/standard-package-layout-7cdbc8391fc1 is much better.

If you are writing the code only for yourself, then none of this matters. If you are writing the code on a team with others, then it becomes more important.

The big difference with C# namespaces, or even projects/dll is that in Go, circular references are not allowed. So if you split things into packages when they don’t need to be reused, you will someday find yourself wanting to import something else and will create a cycle, and then you have to restructure things, as you should have to start with, to avoid the cycle.

Another important difference between Go packages and C# namespaces is that in C#, many namespaces can be in a single project/dll. The namespacing is orthogonal to the compilation unit. Trying to use Go packages as a namespace conflates the two and confuses things.

The best guidance for this is all over the standard library. e.g. net/http is all in one package. There isn’t net/http/server and net/http/request and net/http/response, even though often only one or some of them are used.
Computer Fun Part 1: Aliases
Tags: watercooler, humor, fun
Published: 2019-10-16 11:50:18

### So yesterday I was reading this article where this guy was doing stuff with the Arch Linux package manager. I guess as a joke the guy did this:

```
yay opera browser
```

Then to uninstall it he went

```
eww opera-bin
```

Well that really got me thinking. What other crazy stuff can you alias?

## Sudo
This one is on that people do all the time. A few good ones I have done is:

```
please (a really popular one)

your_majesty

kittypower (made this one up)

flowerpower

all_hail

just_do_it
```

Now you really don't want the alias to be too long, but doing this can make using the command line really fun. 

## The Package manager

I don't see this one done as much as sudo. But I can say when you alias both sudo and your package manager you can end up with stuff like:

```
kittypower catnip install []

(I am a cat lover)
```

A few good ones I know are:

```
icanhav

gimme

iwant

furball 
```

## You can also alias a full command like:

```
goodnight_sweet_prince = 'sudo shutdown -h now'

pewpewpew = 'kill' or 'sudo pacman -R'

your_fired = 'exit'

kthxbye = 'exit'
```

Drop your favorite aliases in the comments! And remember to have fun!
Let's Talk about Movies! Part 1
Tags: webdev, movies, motivation, career
Published: 2019-10-16 11:38:36

##### Who Don't love movies or TV Shows?? Netflix Huh!
I am sharing my personal Recommendations about the movies **(related to Tech Industry or Start-ups)**. These Movies are entertaining to watch, and you can also easily relate to it. This will be a weekly series. The next part will be posted next Wednesday.
___
### The Founder
![The Poster of Founder - Micheal Keaton - Justaashir](http://static.hd-trailers.net/images/-75727-poster-xlarge.jpg)
Yep, a film about McDonald's. This is a must-watch for all the Burger-Eaters and Startup Entrepreneurs. It is not directly related to the tech industry but you can learn a lot about it in this movie. I am now the biggest fan of Michael Keaton (Oh! Man)
 - **Main Cast**: Michael Keaton, Nick Offerman, Linda Cardellini
 - **Genre**: Comedy, Business, Drama 

### The Social Network (Facebook)
![The Poster of Social Network- Micheal Keaton - Justaashir](https://images-na.ssl-images-amazon.com/images/I/81s3kbveNJL._SL1500_.jpg)
Just wanna say. If you haven't watched this movie yet, then go and watch
 - **Main Cast**: Jesse Eisenberg, Andrew Garfield, Justin Timberlake
 - **Genre**: Biography, Comedy, Drama 

### The Imitation Game
![The Poster of Imitation Game - Justaashir](https://upload.wikimedia.org/wikipedia/en/8/87/The_Imitation_Game_%282014%29.png)
Really Underappreciated but it's a history that What was the First Computer and who made it? Why we say ATM(Alan Turing Machine). It's a Drama biography of Alan Turing for Cryptography fans
 - **Main Cast**: Benedict Cumberbatch (Dr. Strange), Keira Knightly, Charles Dance
 - **Genre**: Biography, History, Cryptography

----
- I'm kinda active on Twitter : [www.twitter.com/justaashir](www.twitter.com/justaashir)

#### Some of my Popular Articles:
  - **Most Popular** : [Bulma - The Most Underrated Framework of the CSS Framework Era
](https://dev.to/justaashir/bulma-the-most-underrated-framework-of-the-css-framework-era-2gj8)
 - [Awesome Tools and Resources I Found on Twitter -
](https://dev.to/justaashir/awesome-tools-and-resources-i-found-on-twitter-3am8)
Angular 9|8 JWT User Authentication Tutorial
Tags: angular98, expressjs, mongodb, node
Published: 2020-01-31 21:07:55

---
title: Angular 9|8 JWT User Authentication Tutorial
published: true
date: 2019-10-16 11:17:07 UTC
tags:  Angular 9|8,Express JS, MongoDB, Node JS
canonical_url: https://www.positronx.io/angular-jwt-user-authentication-tutorial/
---

The post [Angular 8 JWT User Authentication Tutorial](https://www.positronx.io/angular-jwt-user-authentication-tutorial/) appeared first on [positronX.io](https://www.positronx.io).

**Welcome, fellas! Today, In this step-by-step Angular 8/9 tutorial, we are going to understand how to build a secure user authentication system using JSON web tokens (JWT) and RESTful Auth APIs built with express, node and mongoDB.**

We will be using the token-based user authentication RESTful APIs which we covered in our earlier tutorial. Learn how to build secure JWT Token-Based RESTful authentication API with Node/Express Js from scratch.


[Click here to read more](https://www.positronx.io/angular-jwt-user-authentication-tutorial/)
3 ways of strengthening your GraphQL API
Tags: graphql, webdev, showdev
Published: 2019-10-16 11:12:32

---
title: 3 ways of strengthening your GraphQL API
description: Ways of strengthening your GraphQL API which might save your teams from jumping at each other's throats.
published: true
tags: graphql,webdev,discuss,showdev
cover_image: https://thepracticaldev.s3.amazonaws.com/i/9343708peqpngpuoeqkd.png

---

Some time ago I have read that:

> *GraphQL is really about collaboration, and the teams that get furthest are those who work closely together on their GraphQL API.*

This idea is very true but collaboration becomes a very tricky part of any development project where there are multiple teams involved. So a question arises, is there any way to make collaboration on a GraphQL API easier & more pleasant experience? I think that it's possible!

Let me introduce you three ways of strengthening your GraphQL API which might save your teams from jumping at each other's throats.


### #1 Install GraphQL Code Inspector

[GraphQL Inspector](https://graphql-inspector.com/) is a CLI tool from [The Guild](https://medium.com/the-guild) member [Kamil Kisiela](https://github.com/kamilkisiela/), that detects changes, similar or duplicated types, validates documents against a schema and looks for deprecated usage, everything as simple as this:

```
$ graphql-inspector diff OLD_SCHEMA NEW_SCHEMA
```

There is also a programmatic API available in case you want to build something on top of it on your own.

![GraphQL Inspector CLI](https://cdn-images-1.medium.com/max/800/1*EgkI2pedKBucOh0tdbm9mw.gif)
##### Source: [GraphQL Inspector](https://medium.com/the-guild/graphql-inspector-481c1a5ef616)


### #2 Use GraphQL Editor

The [GraphQL Editor](graphqleditor.com) is a tool to build, manage and collaborate on your GraphQL schema visually! It includes features that help you make sure that your GraphQL API and its clients are well-developed. The latest update introduced a couple more interesting features like:

- **Autocomplete for Queries**  - Create an auto-complete library for JavaScript or TypeScript with a built-in [GraphQL Zeus](https://github.com/graphql-editor/graphql-zeus) feature.

- **Schema versioning** - with a click of a button you can see & manage all changes.

- **Schema Libraries (Schema stitching done right)** - built-in GraphQL libraries allow you to create new GraphQL schemas from multiple underlying GraphQL APIs.

- **Fake backend** - allowing you to run a GraphQL Server with faked data available for testing with a single click.

[![GraphQL Editor](https://thepracticaldev.s3.amazonaws.com/i/ogpdx7ubkn7zl1ho50yf.png)](graphqleditor.com)



### #3 Why not use both?

Get your GraphQL API a bulletproof vest by combining these two tools!

![Fusion](https://thumbs.gfycat.com/ReasonableLonelyJuliabutterfly-size_restricted.gif)