teleren/devto huggingface dataset:
What is the most unique place you have worked from?
Tags: discuss
Published: 2019-01-17 19:16:08

---
title: What is the most unique place you have worked from?
published: true
description: What is the most unique place you have pulled out your laptop and snuck in some work?
tags: discuss
---

As I am writing this post I am sitting next to a horse show ring in Ocala, FL waiting to show my horse. 

![](https://thepracticaldev.s3.amazonaws.com/i/6u095rucvg3xmi99k3lv.jpg)

What is the most unique place you have pulled out your laptop and snuck in some work??? 😃
Address Bar Spoofing in Microsoft Edge and Safari
Published: 2019-01-17 18:54:20

The second location bar ridiculing occurrence was found by Pakistani scientist Rafay Baloch, who addresses at different meetings, for example, Blackhat, on his exploration of program security. The location mocking method he found influenced Microsoft Edge and Safari programs. 

While a site diverted its guest to another site with a shut port, the assailant could intercede and change the substance of the present website page any way they enjoyed. 

Since the URL bar previously demonstrated the location of the area with the shut port, clients were persuaded that they were perusing a real site rather than an aggressor controlled one and are persuaded to enter their accreditations. 

In his evidence of-idea, before diverting the client to the site with the shut port, Baloch decoded the base64 encoded rendition of Gmail login page and after that adding it to the DOM. Hence the location in the URL (http://gmail.com:8080) and the phishing page looked exceptionally persuading. Baloch figured out how to keep the parodied location stable by utilizing the setinterval() work that attempted to divert the client like clockwork.

###The Code Used to Spoof the Web Browser Address Bar
Baloch used the following code for the aforementioned exploit.
<pre>function spoof()
{
var gmail = 'PCFET0NC8+KArOK.........ZHk+PC9odG1sPg=='; // The base64 encoded version of the Gmail page
x=document.body.innerHTML=atob(gmail);
document.write("<title>Gmail</title>");
document.write("x");
window.location.assign("https://www.Gmail.com:8080");
}
setInterval(spoof(),100000);
</script></pre>

The proof-of-concept above was the one working on the Microsoft Edge browsers.
Blockchain vs traditional database
Tags: blockchain, traditionaldatabase
Published: 2019-01-17 18:27:03

---
title: Blockchain vs traditional database
published: true
description: Difference between blockchain and database
tags: Blockchain, traditional-database
---

In a traditional database, a client can perform four functions on data: Create, Read, Update, and Delete (collectively known as the CRUD commands) Where as in Blockchain every user can be sure that the data they are retrieving is uncorrupted and unaltered since the moment it was recorded

https://thepracticaldev.s3.amazonaws.com/i/o9wmvhk49g7zqf3ogtkm.png
Frontend developers, do you want to transition to fullstack? Why?
Tags: discuss, career, webdev, javascript
Published: 2019-01-17 18:25:12

---
title: Frontend developers, do you want to transition to fullstack? Why?
published: true
description: When? Is it your goal right now? Or in the future?
tags: discuss, career, webdev, javascript
---

When? Is it your goal right now? Or in the future?
What is Cryptocurrency exchange?
Tags: cryptocurrency, exchange
Published: 2019-01-17 18:23:04

---
title: What is Cryptocurrency exchange?
published: true
description: Cryptocurrency exchange allows users to buy/sell cryptocurrency
tags: Cryptocurrency,exchange
---
Cryptocurrency exchange allows users to buy/sell cryptocurrency.
A cryptocurrency exchange or a digital currency exchange (DCE) is a business that allows customers to trade cryptocurrencies,
Businesses that allow customers to trade digital currencies for other assets, such as conventional fiat money, or different digital currencies. They can be market makers that typically take the bid/ask spreads as transaction commissions for their services or simply charge fees as a matching platform.

https://thepracticaldev.s3.amazonaws.com/i/t75n8sh05zzpy1u76g06.png
How does a Cryptocurrency Exchange Start?

For an exchange to function, there needs to be both bids and asks simultaneously. If there is no asks, then no one can buy that specific cryptocurrency therefore there is no volume/trades.
Pros and Cons of Headless CMS
Tags: pros, cons, cms, headless
Published: 2019-01-17 17:45:33

---
title: Pros and Cons of Headless CMS
published: true
description: A Headless CMS is a backend only content management system which works as a content repository and gives access to this content via REST (or GraphQL) services.
tags: pros, cons, cms, headless
cover_image: https://thepracticaldev.s3.amazonaws.com/i/1v9ttj6sw97cdnjiod54.jpeg
---

A Headless CMS is a backend only content management system which works as a content repository and gives access to this content via REST (or GraphQL) services.

In traditional CMS, you have the following core subsystems:
<ul>
<li>Content creation and management.</li>
<li>Publication workflow.</li>
<li>Content delivery.</li>
<li>Analysis and monitoring.</li>
</ul>
Headless CMS focuses just on content creation and publication workflow. It is your application's responsibility to get the content and display it in an appropriate way based on your users' needs, devices they use, and the channels they operate on.

# Advantages of Headless CMS:
<ul>
<li>No tight coupling between business applications and CMS, resulting in flexibility that allows you to choose whatever technology and framework you like for your application.</li>
<li>Headless CMS are usually much easier to deploy and use.</li>
<li>Ability to easily integrate new channels, as we are not blocked by the functionalities available in a CMS.</li>
<li>Nicely fits into microservice-based solution landscapes.</li>
<li>Improved scalability and security due to dividing responsibilities of authoring and delivery, delivery can be separately scaled, and the authoring part can be completely hidden and not accessible to the outside world behind company firewalls.</li>
</ul>

# Disadvantages of Headless CMS:
<ul>
<li>Content authors are not able to preview how created content will look in the applications from the inside CMS.</li>
<li>The analytical capabilities and content personalization features of a full blown CMS cannot be used and must be developed somewhere else.</li>
</ul>
Tips to be a good leader?
Tags: discuss, beginners, career, productivity
Published: 2019-01-17 17:28:36

---
title: Tips to be a good leader?
published: true
description: At some point, we'll be given more responsibilities at our workplace. We've got to learn how to manage teammates and projects.
tags: discuss, beginner, career, productivity
---

So, to begin the year, I was just assigned as *Project Owner* of a mobile app we're developing at the company I currently work for. Which is a big deal for me since I'm a self-taught developer and started working only a year ago, but apparently the managers are happy with my performance (yey :D).

My main responsibilities involve *Sprint plannings*, *Sprint reviews* organizing daily *Scrum meetings*, of course communicating with the team to see that everything's alright,  and getting in touch with the client from time to time for updates and requirements.

What advice do you guys have to be a good leader? 

What soft-skills and practices do you think a leader should have to achieve a good working environment and getting the job done?
A Day, no, not Even an Hour, of Life on Stack Overflow
Tags: programming, coding, productivity, personalnews
Published: 2019-01-17 17:17:36

---
title: A Day, no, not Even an Hour, of Life on Stack Overflow
published: true
description: 
tags: programming, coding, productivity, personalnews
---

I've been a Stack Overflow user from since a few months of its launch, and have seen a lot of changes.  This is more a complaint you are likely to hear from newbies, but even to me it hardly seems to be worth participating anymore.

So today a low rep (~1000) asks a question but gives it an improper tag.  A 100+K rep user complains but does not remove the tag, which I am able to do with my mere 7K rep.

BTW how much time do you have to spend at work on Stack Overflow to get over 100K rep?  Speaking of such users, when I matter-of-factly commented that with my significantly lower level of rep I was able to remove the tag, I got a snarky comment from a different 100+K rep user.

Nice.

Furthermore, the issue in the question was caused by a typographical error, so I voted to close it, but people answered it nonetheless.  So I had to waste rep down-voting answers that never should have seen the light of day.

I'm only participating anymore to get the "gold" (top) level "Socratic" badge awarded for 100 good questions, I'm over 90% of the way.  By the way, I ask about 2/3 as many questions as I answer, I also don't understand users who do nothing but answer.

If you don't have questions about programming, you're doing it wrong.
NgAtlanta is Changing Tech
Tags: angular, ngatlanta, javascript
Published: 2019-01-17 17:11:09

---
title: NgAtlanta is Changing Tech
published: true
description: Auth0’s Ado Kukic, Kim Maida, and Sam Julien all participated in ngAtlanta, an Angular conference focused on diversity and inclusion.
tags: #angular #ngatlanta #javascript 
canonical_url: https://auth0.com/blog/ngatlanta-is-changing-tech/
---

NgAtlanta has a very special place in my heart. In January 2018, I had just launched my upgrade course and was asking for help from the community to find ways to spread the word about it. My friend Sani Yusuf told me about a new conference taking place in Atlanta called ngAtlanta. He had an extra ticket and told me that it was mine if I could just get over there. Thrilled, I jumped on the opportunity, booked my flight, and arranged to stay with some old friends of mine in Atlanta...

[Read on 🅰️🎡](https://auth0.com/blog/ngatlanta-is-changing-tech/?utm_source=dev&utm_medium=sc&utm_campaign=ngatlanta_changingtech)

![NgAtlanta is Changing Tech](https://thepracticaldev.s3.amazonaws.com/i/drfphc1ijuuh6w17pl96.png)
Which Use-Cases do You Have?
Tags: discuss
Published: 2019-01-17 16:52:21

---
title: Which Use-Cases do You Have?
published: true
description: Which use- and business-cases do product developers face?
tags: discuss
---

I'm in the research phase of my new book _"MVPs with AWS"_ and spoke to a few experts on AWS technology. 

I want to create a learning resource for creators of software products, especially in their MVP phase.

I assume that creators want to build MVPs fast and want to scale them up later, regarding features and utilization. Also, creators wish for one code-base mobile/web and one back-end for them.

I think AWS has many services, especially the serverless ones, that solve these problems, but they aren't very accessible at the moment.

My idea was to write a use-case or business-case oriented book, where I solve the technical problems of the most common use-cases.

I already got _technical_ input from experts; people want real-time and offline apps, people want one code-base for android/ios/web, people want one back-end for these apps, etc.

Now I'm searching for use-cases, so it would be cool if you could write a bit about the use-cases you needed to solve and what problems you were facing.

[If you want to stay updated on this topic, you can drop your email here.](https://docs.google.com/forms/d/e/1FAIpQLSe_rGiFbaR-clviNxxvyC2q9TOLyFn8vj29hNZhplQd-RKRsA/viewform)
One Recent Lesson in Scaling the dev.to Rails App
Tags: rails, postgres, webdev, scaling
Published: 2019-01-17 16:48:18

[dev.to](/) has a fairly scalable architecture in that we've built it so most traffic is [cached statically on the edge via our CDN Fastly](https://dev.to/ben/making-devto-insanely-fast). In this sense we scale like a static site might, but any time content changes (like a new comment, or an update to the article, or any other freshness change), we start over and go straight to the origin. We also serve _some_ dynamic content asynchronously with most requests. So there's still a lot of load on the server.

Like any Rails app, we hit different resource constraints and work through them as we scale.

In addressing fluctuations in resource bottlenecks we basically need to know what resources are being used up and what levers to pull when they get used up. Because of highly successful tech companies that have scaled this stack in the past, we rarely need to be all that clever, we just need to know the tools.

But despite this, we still have problems, of course. Code is tough. I want to share a few mental blocks I've needed to overcome to help lead our team in this regard. On to the lesson:

## When problems arise, go back to old material

I've failed to re-read good material when we hit rough patches, erroneously thinking the problem is something new. Often it's the same basic problem in a new light. The next time we hit a particular rough patch, I will re-read a lot of great material. Read lots of stuff with an open mind, rather than purely reading to problem solve. You don't want to miss the forest for the trees when thinking this stuff through.

In this regard, the [Speedshop blog](https://www.speedshop.co/blog/) by Nate Berkopec and other content from him has been very practical. The specific problems we faced don't need to be re-hashed here, but the advice not to think you need _new_ material is the lesson here.

A couple DEV members who's stuff has also been helpful either on platform or on their personal blogs of years past:

{% user mscccc %}

{% user molly_struve %}

Both definitely worth following, as are many more folks who post in [#rails](/t/rails)

Recently [this old post](https://medium.com/swlh/running-a-high-traffic-rails-app-on-heroku-s-performance-dynos-d9e6833d34c4) from Mike was particularly helpful in terms of thinking through Heroku resource issues. Re-reading was critical because I'd gotten some of the important conclusions mixed up in my memory. 

## Going forward

The future holds many challenges. For example, we have not had Postgres as a bottleneck in a while, but in the future it will become one again. When that happens, rather than scramble to learn new things in that moment, the best immediate action will be to thoroughly re-read old material that has helped us get over a few hiccups in the past. From here we can go on to learning new things, but we cannot have the fallacy of having fully learned and retained old material for indefinite new problems.

Happy coding!
Why I'll Love Flutter Next Year
Tags: flutter, rithfoss
Published: 2019-01-17 16:48:11

---
title: Why I'll Love Flutter Next Year
published: true
description: I like Flutter now, but I wouldn't want to use it. Next year, though...
tags: flutter,rit hfoss
---

If you've used [Flutter](https://flutter.io/) a little, you're probably overjoyed with it. A cross-platform mobile development suite? Which actually *works* cross-platform, with no platform-specific configuration? Hot restart and stateful hot reload, so you can test changes in seconds? No need to mess with platform-specific configuration files? All of your layout is done in the language itself?!

All in all, it seems like a perfect thing. The hot-reload and hot-restart especially make Flutter hard not to love. I really can't put in words how useful it is to wait _seconds_, not minutes, to see your changes on your device.

The more you use Flutter, though, the more that initial warmth seeps away, replaced by the cold realization that it has its limitations, like anything else. 

Among those is sending notifications. If you're building an entirely offline app -- in my case, a mobile game -- then it's not easy to get notifications working. Sure, you could go through [FCM](https://firebase.google.com/docs/cloud-messaging/) (since GCM is [phasing out in April this year](https://developers.google.com/cloud-messaging/) in favor of it), but that would require me to do a round-trip between a server just to send a notification from an app on the device to the device, or at least bundle that capability in when I don't need or want it.

So how do you do offline notifications in Flutter?

The short answer is that you can't. You can, of course, call out to native code, but the point of Flutter is to _avoid_ writing native code yourself, and let Flutter handle it automagically. Instead, you have to look for third-party libraries which [sort of work](https://pub.dartlang.org/packages/flutter_local_notifications), except that you can't schedule or group notifications. (Maybe you can, but I couldn't get it to work.)

That kind of little thing is all over Flutter. For example, when it comes time to make a release for your app -- or even give it a pretty icon -- you need to do [platform](https://flutter.io/docs/deployment/android) specific [things](https://flutter.io/docs/deployment/ios) (which, let's be fair, can be [automated](https://flutter.io/docs/deployment/fastlane-cd)) to get that done. It'd be easy to make a lot of that platform-independent -- static icons could be generated from a single high-res file, like what [`flutter_launcher_icons`](https://pub.dartlang.org/packages/flutter_launcher_icons) does; permissions could come from a list in `pubspec.yaml` or even code analysis.

None of this is to say Flutter is bad. It's new. It's barely two years old, and when you're building something as complex as an entirely new way to develop cross-platform mobile apps, some early stumbling is to be expected. It has a ton of promise, and I think they're quickly getting to where they should be, but they're not there yet.

In short, I'll love Flutter a lot more next year.
create-react-app or Custom Webpack config?
Tags: react, webpack, javascript
Published: 2019-01-17 16:17:19

---
title: create-react-app or Custom Webpack config?
published: true 
description: Do devs always use create-react-app?
tags: react, webpack, js
---

Been working with React/Redux over the past month or so. Last night, I was finishing up a streaming app that uses Node Media Server and ran into a CORS problem 🤦‍♂️.  After searching Google for a little while and trying a few different options (without success), I finally decided to call it a night 🥵. Waking up still a little 🥺, I remember some of the potential solutions involving a Webpack config, I decided to investigate a little more. Started playing with some Webpack configs in isolation. This got me thinking  about create-react-app using webpack under the hood. 

Just wondering if devs let create-react-app take care of everything or you have your own React webpack config?
How to debug Apollo Server with Typescript in Docker with VS Code
Tags: docker, typescript, node, vscode
Published: 2019-01-17 16:14:15

---
title: How to debug Apollo Server with Typescript in Docker with VS Code
published: true
description: How to debug Apollo Server with Typescript in Docker with VS Code
tags: Docker, TypeScript, NodeJS, VS Code
---



Repo: https://github.com/michaelchiche/debug-ts-docker-apollo-server
On Being a Maker
Tags: maker, engineering
Published: 2019-01-17 16:08:50

---
title: On Being a Maker
published: true
description: A reminder that things don't always come easily
tags: maker, engineering
---


*You’ll never be a successful gardener without first killing a few plants.* 

Growing things and making things is a skill not a talent. As a kid, I remember people talking about what I was or was not talented at all the time. I was a “talented artist“ and a “talented actress“ but I was never a talented student or a talented engineer. The led to a lot of frustration and insecurity when I went to college. In my mind, my success or lack of success was due to talent. 

It wasn’t until I met my husband that I learned that very little comes of talent and a lot comes from the qualities he shows every day; hard work, self care, and patience. He's a very unique person.

These days, we expect to have exactly what we want immediately. Entertainment (Netflix), food (UberEats), transportation (Uber or Lyft), stuff (Amazon) is all at our fingertips and on our doorstep within an hour. Living in this new economy of immediate gratification means that it’s really easy to forget that sometimes it takes time to get what you want. 

If you want to make something that’s beautiful, delicious, or helpful you’ll have to be ready to embrace failure and iterate based on what you learn. That process takes time and navigating the ups, downs and frustrations of that process is a skill that you have to cultivate through practice. Start making things and you’ll become kinder, more patient, and more skilled at doing just that … making things.
Go is supported in Google functions
Tags: go, serverless
Published: 2019-01-17 15:53:44

---
title: Go is supported in Google functions 
published: true
description: 
tags: #go,#serverless
---

Now we can use Go to run google functions =). Take a look an example:

```go
// Package helloworld provides a set of Cloud Function samples.
package helloworld

import (
        "fmt"
        "net/http"
)

// HelloGet is an HTTP Cloud Function.
func HelloGet(w http.ResponseWriter, r *http.Request) {
        fmt.Fprint(w, "Hello, World!")
}    
```
Deploy:

```bash
gcloud functions deploy HelloGet --runtime go111 --trigger-http
```

{% youtube RbnyUpVRq_4 %}
What Bugs Have This New Year Brought?
Tags: discuss
Published: 2019-01-17 15:44:14

---
title: What Bugs Have This New Year Brought?
published: true
description: 
tags: discussion
---
![image](https://thepracticaldev.s3.amazonaws.com/i/snv4w3skd20160vzu9kx.jpg)

 
What's been the toughest problem you've had to debug so far this year? The problem doesn't have to even be a technical problem. It can be a "people" problem.