teleren/devto huggingface dataset:
Hello! I've been running developer events and building communities since 2012. Bring it on and #AMA !! <3
Tags: ama
Published: 2020-01-20 19:53:47

---
title: Hello! I've been running developer events and building communities since 2012. Bring it on and #AMA !! <3
published: true
description: I want to give back to the community and offer any tips and advice straight to the truth to help guide others in the right path. I'll answer any question!
tags: #ama
cover_image: https://thepracticaldev.s3.amazonaws.com/i/fu395gqsafdcpuwowgid.jpeg
---

> Are you thinking about starting a community? Have a community already? Just curious? Ask away! I'm accepting any questions, even if it's personal or sensitive!

It all started in 2012 when I was frequently attending [Jeremy Lindblom's Seattle PHP Meetup](https://twitter.com/jeremeamia), which quickly led to me being a co-organizer, then running a PHP Conference with Jeremy a couple years, then eventually I took over the meetup and continued the conference, then later starting the [Seattle API City Conference](https://apicity.io).

I organized:
Seattle Joomla Meetup
Seattle PHP Meetup
Pacific Northwest PHP Conference

I currently organize:
Seattle Vue.js meetup
Seattle Developer Relations Meetup
Seattle APIs and Technology Meetup
San Francisco JAMstack Meetup
Seattle API City Conference

I've also organized countless one-off developer events, recent events include the Seattle Developer Christmas party (80 developers), the JAMstack pre-conference party (150 developers), and the list goes on forever.

After 8 years of running events, I'm at the point of getting a bit burnt out as it takes a lot of time planning and pure dedication to making it a success. I plan on delegating more and focusing on less events that help my jobs ecosystem. 

More than often I get asked to help co-organize or help someone with their events, and countless times I have consulted with others on building/growing their community.


So, as someone who's been doing this for a long time, I am ready to give back and I am ready for your questions.
Can the JAMstack be used for the public good?
Tags: jamstack, jamuary
Published: 2020-01-20 19:33:48

Running a government website to inform or provide essential services to the public is an extraordinarily difficult, albeit crucial task. Compared to their non federal counterparts, websites run by the government have a dizzying list of compliance standards and security protocols to adhere to. Chief among these is attaining the Authority to Operate (ATO), which determines whether or not a service can be integrated into an existing network. With such a strict rubric, technologies used to build and deliver websites cannot be picked haphazardly and without scrutiny. In this context, the freedom that the JAMstack paradigm provides is met with resistance. While APIs offer the flexibility of outsourcing complexity to external services, the restrictions of government websites mean that services need to be pre-approved before they can be integrated. Considering the dynamic qualities that the API ecosystem brings to the JAMstack, this constraint can seem limiting. Be that as it may, the lack of full access to the API ecosystem doesn’t completely negate the JAMstack as an architecture for building government websites. 

The JAMstack is principally characterized by its focus on pre-rendered static assets and the decoupling of frontend from backend. This makes it possible for content authors to work independently from developers thereby separating content from context. In the realm of government websites, keeping content up to date and maintaining compliance standards are equally critical. The decoupled architecture that the JAMstack provides enables government agencies to fulfill these needs independent of one another; developers can focus on technology and standards maintenance while content authors can focus on keeping content up to date. 

The JAMstack model’s rootedness in Git additionally means that there is a single point of entry between code and content. Instead of having to manage multiple user accounts, government agencies can grant and revoke access easily with the power of GitHub credentials. This, alongside serving publicly accessible content statically over a CDN is key to keeping a site secure, since only authorized parties have access to the raw site and build scripts at any given time. By encouraging a separation between frontend and backend, and a reliance on Git for version control and user management, the JAMstack eases the workflow for building and delivering federally compliant websites.

If you’re keen on learning more about how government agencies lean on the JAMstack, check out [this incredibly informative workshop by the folks at 18F covering Federalist, US Web Design Standards and GitHub, a publishing platform for building modern 21st Century Integrated Digital Experience (IDEA) websites.](https://digital.gov/event/2017/12/12/workshop-making-government-websites-with-github-federalist-us-web-design-standards/)
DevWeb Vs TruClient Protocol
Tags: devweb, truclient, performance, testing
Published: 2020-01-20 19:28:56

Micro Focus products have evolved recently; product names, version conventions, new features, enhancements etc. It is performance testers responsibility to adhere to the recent changes and be top of it. One of my reader has asked what is the difference between DevWeb and TruClient protocol in Micro Focus LoadRunner Professional. This blog post will address the comparison between DevWeb and TruClient.

## DevWeb Protocol

* Free up to 150 VUsers
* Light-weight
* Scalable 
* Cross-platform
* JavaScript SDK and Full Unicode support
* Best to measure server side metrics
* Supports recording, scripting, and execution using standalone version
* Latest version is 2020

## TruClient Protocol

* Free up to 50 VUsers
* Browser based protocol
* Best to measure browser rendering and DOM measurements
* Requires LoadRunner Professional or other compatible Micro Focus products to execute the TruClient script
* Latest version is 2020

For the detailed comparison, please visit [my blog](https://qainsights.com/devweb-vs-truclient-protocol/).
Thank you DEV and everyone! 🤝 I have become one of the Distinguished Authors of 2019!
Tags: webdev, writing, motivation
Published: 2020-01-20 19:22:51

<h3>Wow, It really feels awesome 📝😎🙌 </h3>

Thanks to DEV for building this cool platform! 🤝

I use DEV every day, not only that I write here but also I read a lot from a lot of cool writers. 👋

Thanks, DEVCommunity for being awesome!

I got these below stickers as a gift from DEV which can make anyone happy 😊


![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/ai2e2tobtb9cj5n2k8j4.jpg)

If anyone wants to say <b>HI</b>, you can follow me here on DEV or Twitter https://twitter.com/destro_mas or both 😊 and if you wanna start any discussion you can comment...

Cheers!
👋
PythonAnyWhere Vs AWS EC2 for Django hosting
Tags: python
Published: 2020-01-20 19:14:58


We have hosted Django applications on AWS EC2 as well as on PythonAnyWhere. Here is a brief comparison of both.



AWS EC2:

- Offers pay-as-you-go compute capacity
- This is a small service that provides resizable compute capacity
- Free for 12 months (750 hours of CPU usage)
- Can use a custom domain in free tier plan (Extra charges may apply)
- SSH access available
- Browser-based SSH connection available
- The developer needs to set up everything from scratch. Intermediate level of expertise required
- Root level access available
- Can install and use whatever tool/software is required
- Highly scalable
- The developer needs to manage the webserver
- Pricing https://aws.amazon.com/ec2/pricing/
- [Create a free account](https://aws.amazon.com/free/)
- [Hosting the Django app on EC2](https://www.pythoncircle.com/post/697/hosting-django-app-for-free-on-amazon-aws-ec2-with-gunicorn-and-nginx/)



PythonAnyWhere:
- Offers fixed price shared hosting starting with $5 per month
- Small Paas (platform as a service) provider which supports only Python web apps
- Always free plan available. 100 CPU seconds per day. 512 MB space
- Can not use a custom domain. The app will be hosted on username.pythonanywhere.com
- SSH access available
- Browser-based terminals available
- The application setup is extremely easy.
- Root level access not available
- Apart from web hosting, Only MySQL, Postgres and schedule tasks support is provided
- Good for small to medium traffic apps
- The developer needs to take care of code
- Pricing https://www.pythonanywhere.com/pricing/
- [Create a free account](https://www.pythonanywhere.com/?affiliate_id=000f9990)
- [Hosting the Django app on PythonAnyWhere](https://www.pythoncircle.com/post/18/how-to-host-django-app-on-pythonanywhere-for-free/)



If you want to add points, please comment below.

Originally published on [PythonCircle.Com](https://www.pythoncircle.com/post/698/aws-ec2-vs-pythonanywhere-for-hosting-django-application/)

**This post includes affiliate links; I may receive compensation if you purchase products or services from the different links provided in this article.**
Real Time Chat App with Laravel 6 Vue Js and Pusher
Tags: larave, pusher, chat, vue
Published: 2020-01-20 19:11:16

Hi Artisan,

In this tutorial, i will guide you step by step how to use event broadcasting using pusher and laravel-echo-server in laravel 6 application. Laravel provide event broadcasting topic. event broadcast is a very interesting and it's also easy to implement with pusher specially.

In this tutorial we are going to build laravel chat application using pusher. It will be real time chat app cause we use broadcasting. So using broadcasting we are going to make laravel chat demo. So let's try to complete real time chat system with laravel pusher and vue js. 

I will use vue js to to create it. So let's start. you can read also below post to konw basic knowlege about broadcasting and defenitily you will know how laravel broadcasting works.

#link https://www.codechief.org/article/real-time-chat-app-with-laravel-6-vue-js-and-pusher
In-depth Review: Should You Host Your Python Web App On PythonAnywhere
Tags: python
Published: 2020-01-20 17:39:06

Back in 2016, I was doing a bit of Embedded C and PHP, when internet’s high decibel machine learning rush hit me. Realizing the limits of my skills, I pivoted to Python. One thing led to another and I decided to follow Lean Development Methodology to quickly launch a website and then improve it gradually. Flask was selected and I started with Flask Mega Tutorial.

Next came the search for Python web hosting service. After a few days of researched, I couldn’t really made up my mind. But since I really wanted to get started, I chose and signed up for PythonAnywhere.

Even after significant research on Python website hosting service, I could not understand various moving parts clearly. I selected Pythonanywhere based on a hunch.

PythonAnywhere is a web hosting company which offers hosting solution for Python web applications. One can use it to host Python wen apps and scripts. It’s a 7 years old company based in London.

I’m reviewing PythonAnywhere for following reasons:
1. I’ve been its user for three years.
2. When I started with Python-Flask web apps, I had to spend many days searching “Hosting services for Python website”. When a service is finally decided, I went in with a leap-of-faith, in-spite of all the research.
3. There are many people who keep asking in forums “where should I host my Python website and Python applications”.
4. A wrong decision in hosting a Python app, costs dearly, in time, performance, project growth and energy.
5. Internet’s signal/noise ratio is going down everyday. If I can help put even one thing in perspective, it will be a success.

The goal here is to simplify and present enough information so that you can take a well-informed decision, instead of relying on hunch or PR articles.

So if you are wondering “is PythonAnywhere good?” or “should I use PythonAnywhere for web hosting?”, sit tight, we are about to discover the truth.

What you can do on PythonAnywhere?
1. Code, run and host python app and scripts
2. Build & host Django web applications
3. Build & host Flask web applications
4. Build & host web2py web applications
5. Build & host Bottle web applications

These are the core offerings of PythonAnywhere. “Code, Run and Host” are the words they focus on. 

This word-set means that you can open PythonAnywhere.com on any web browser to:
1. Write code for Python Applications in a web-based editor there [or in a console],
2. Save and run the code, validate its output,
3. Host the code on PythonAnywhere for ever.

What are PythonAnywhere’s big promises?
1. Start hosting quickly
2. Develop anywhere
3. Amazing support

In this review, we will see how PythonAnywhere fares on these promises among many other things.

Here is the link to complete in-depth review: [In-Depth Review: Should you host Python website on PythonAnywhere?](https://www.thoughtlytics.com/blog/in-depth-review-pythonanywhere-for-python-website-hosting)

Let me know if you find it helpful. If you find it helpful, clap and share!
What is Apollo Link and its purpose in the GraphQL ecosystem?
Tags: graphql, apollo, architecture, webdev
Published: 2020-01-20 18:39:03

To kick this explanation off, the [Apollo Link Documentation](https://www.apollographql.com/docs/link/) describes Apollo Link as...

> A standard interface for modifying control flow of GraphQL requests and fetching GraphQL results.

...but what does that really mean?

Personally, I feel the easiest way to begin understanding Apollo Link is to first understand what problem Apollo Link has been built to solve.

In the [original Apollo Link announcement post](https://blog.apollographql.com/apollo-link-the-modular-graphql-network-stack-3b6d5fcf9244), the Apollo team explains that the GraphQL developer community, as a whole, has varying functionality requirements for a GraphQL client library, and because of this, they simply could not add every needed functionality to Apollo Client core.

So on July, 25th 2017, the Apollo team introduced Apollo Link as a way to add modular pieces of functionality to Apollo Client, effectively allowing the community to create customized versions of Apollo Client to satisfy their specific GraphQL Clients needs.

To further elaborate on this definition, let's break down this simple passage from the Apollo Link documentation.

> You've probably come across "middleware" that might transform a request and its result: Apollo Link is an abstraction that's meant to solve similar problems in a much more flexible and elegant way.

So essentially in layman's terms, Apollo Link is a simple-to-use toolkit that contains optional helpers that are designed to solve common problems between your frontend application's Apollo Client and your backend GraphQL API server.

To check out all of Apollo's developed Links, [head on over to the Apollo Link Documentation](https://www.apollographql.com/docs/link/) and browse through them, and while you're at it, the GraphQL community can also create [custom Apollo Links](https://www.apollographql.com/docs/link/links/community/) that solve niche edge cases, so be sure to check those out as well.
How to post json with comments?
Tags: meta
Published: 2020-01-20 18:20:43

---
title: How to post json with comments?
published: true
tags: meta
---

Using a `json` codeblock expects strictly valid JSON:

```json
{
  "Email": { // <-- settings grouped under "Email"
    "ClientKey": "xxx",
    "ClientSecret": "xxx"
  }
}
```

I tried `jsonc` and `json5`, both don't seem to be supported. Anyway to get dev.to to play nice with commented json without marking it as `javascript`?
MeCardGenerator - my first npm package!
Tags: showdev, javascript
Published: 2020-01-20 18:15:54

> I just published my first npm package!

The package is called [MeCardGenerator](https://www.npmjs.com/package/mecardgenerator) and can be installed via: 
```sh
npm i --save mecardgenerator
```

At the current version `1.0.6` the package contains only one function to create a [MeCard](https://en.wikipedia.org/wiki/MeCard_(QR_code)) string.

The idea came up while working on the third side project where I copied my function from a previous project.
Since I wanted to publish a package ever since but had no idea what, I thought why not use this as first package?

So here is the usage:
```js
const MeCardGen = require("mecardgenerator");

const mcs = MeCardGen(
	"Jon", // First name
	"Doe", // Last name
	"jon.doe@acme.com", // email address
	"1-316-019-2128", // phone number (can be formatted)
	"https://acme.com/", // website / url
	"758 Elmo Gateway", // Street address
	"Murphyborough", // city
	"WY", // state
	"80562", // zip code
	"United States of America" // country
);

console.log(mcs);

```
Which will output the following string:
```
MECARD:N:Jon,Doe;EMAIL:jon.doe@acme.com;TEL:1-316-019-2128;URL:https://acme.com/;ADR:,,758 Elmo Gateway,80562 Murphyborough,WY,United States of America;;
```

This string is usually used with a QR-Code generator to enable phones to add contacts by scanning this QR-Code.

I will update the package with a QR Function. But it's just this one function for now.

Feedback welcome!

{% github DarkSmile92/mecardgenerator %}
my next open source startup ideas
Tags: starter, projects, todos, startup
Published: 2020-01-20 17:59:54

my next open source startup ideas (aka my todos)
* chromium browser extension to expose devtools screenshot feature
* xfce cascade windows app/plugin (maybe fork https://xmonad.org/ https://github.com/xmonad/xmonad)
* call devto api to followback
* call devto api to predict optimal time to post for max likes
* call devto api to post at optimal time
* create an auto unlike bot to unlike a user who doesnt like your jokes or who says says anything nasty about you

co-founders / partners / contributors /creators most welcome please DM me

if you have already created one of the above please comment below or send me a DM and if i like it i will replace my todo with a link to your app - everyone wins !
How to solve the "own property" issue in Handlebars with Mongoose
Tags: javascript, mongoose, express, handlebars
Published: 2020-01-20 17:50:11

With the recent patch to [handlebars](https://mahmoudsec.blogspot.com/2019/04/handlebars-template-injection-and-rce.html), pages began returning errors anywhere I had referenced a mongoose document.

`Handlebars: Access has been denied to resolve the property “email” because it is not an “own property” of its parent`


So, looking up the error, I get this [page](https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access), which seems more focused on how to go around the patch rather than complying with it. So, I check stack-overflow to see what my fellow dev's are doing. I found (mostly) just people explaining how to get around it. A few astute comments pointed out we just need a new object, were hasOwnProperty is true for the values being referenced. 

It occurred to me that I'd seen `.toObject()` in mongoose when I'd created virtuals for a few of my models. For those unfamiliar, when creating virtuals it's generally advised you pass a configuration object with the schema that looks like the following:
```javascript
{
  toObject: {
    virtuals: true,
  },
  toJSON: {
    virtuals: true,
  },
}
```

This means that a user schema might look like this:
```javascript
const UserSchema = new mongoose.Schema({
  birthday: {
    type: Date,
    format: 'MMMM Do YYYY',
  },
  secondLanguage: {
    type: String,
    default: 'None',
  },
  email: {
    type: String,
  },
}, {
  toObject: {
    virtuals: true,
  },
  toJSON: {
    virtuals: true,
  },
});
```

With that in place, we have access to the .toObject() method on documents. 
So, in our routes (using Express in this example but the idea remains the same regardless): 
```javascript
router.get('/dashboard', async(req, res) => {
try {
  const user = await User.findOne({email: req.body.email.toLowerCase()});
  res.render('index/dashboard', {
    user: user.toObject(),
  })
} catch (err) {
    console.error(err);
  } 
}
```

Places where you did .find() you simply forEach and run .toObject on each document. I ended up making some wrapping functions:
```javascript
const multipleMongooseToObj = (arrayOfMongooseDocuments) => {
  const tempArray = [];
  if (arrayOfMongooseDocuments.length !== 0){
    arrayOfMongooseDocuments.forEach(doc => tempArray.push(doc.toObject()));
  }
  return tempArray;
};

const mongooseToObj = (doc) => { if (doc == null){ return null; } return doc.toObject(); };

module.exports = {
  mongooseToObj,
  multipleMongooseToObj,
};
```

These can be used as follows: 
```javascript
const user = mongooseToObj(await User.findOne({email: req.body.email.toLowerCase()})); // Returns the same as user.toObject()
const users = multipleMongooseToObj(await User.find()); // Return arrays where .toObject() was called on each document
```
Unified Meta Tag for GDPR/Privacy - Discussion about the future of web privacy
Tags: discuss, healthydebate, webdev, privacy
Published: 2020-01-20 17:37:50

Some times ago to Europe come GDPR law. With it comes another ton of pop-ups and alerts on websites and SPA apps. And since most of the websites have very poor handling of consents, every time when we enter to some page, firstly we must agree with agreements once again. 

What do you think about creating a universal and unified meta tag for GDPR policies instead of tons of pop-ups on every website? This type of meta tag would have content of policy for page and web browser would store a hash of the content, if the content change, show it to user once again. Furthermore, the browser in this approach can handle displaying policy content in a more native way and could even asynchronously tell script on the page if the user agrees or not.

What do you think about the idea of a unified meta tag for the privacy policy? We are DEVelopers and in our interest is to make the Internet a better place for people who don't have the required know-how.
To blog, or not to blog? What should a girl do?
Tags: blogging, writing, discuss, developerrelations
Published: 2020-01-20 17:49:34

---
title: To blog, or not to blog? What should a girl do?
published: true
description: Looking for insight on if I should blog or not
tags: blogging, writing, discuss, developer relations
---

I have been studying front-end development for almost 2 years now. 
I am attending a front-end BootCamp right now, taking advantage of a DevOps program through Udacity, and working a full-time job. 

I will be graduating at the end of March, and start my career change.
I am looking into getting into Developer advocacy/evangelism/liaison/relations.

I have spoken, read, and listen to others in the industry what I should do to get in, and most say that I need to blog/vlog.

My question is with so many platforms like this one, Medium, Stackoverflow. 
Should I start a blog or just contribute to platforms like this. 

For those that do blog, and contribute on platforms like this.
How do you manage your time?
How often should I contribute to a blog?

Thank you