teleren/devto huggingface dataset:
FireCode Marathon – Coding competition
Tags: javascript, html, css, codequality
Published: 2019-06-12 12:13:11

FireCode Marathon is a coding competition that’ll be held for the first time at Sevan Startup Summit 2019 (July 28 - Aug 3). Any developer with any technical background is welcomed to apply. 
The best 50 candidates out of applied developers will get chance to take part in #SSS19. On the second day of the Summit all the problems will be introduced to the developers. Staying true to our mission, the developers should form the teams of 8-11 people and start solving the problems. The gained points for the solved problems will be added to the groups’ total points. The developers who have solved the problems will get the special prizes for that problems. 

On the 2nd of August, the team with most of the points will be announced as the winner and the developers as the finalists. On the last day, the finalists will work individually and fight for the main prize of $5,000. They will take part in a 4-hour long code fight after which the winner will be announced.

Code on fire and at the same time get new friends, meet great people with great ideas, learn something new and have fun in Sevan Startup Summit 2019!
Location: Sevan, Armenia
Timeline:  Sevan Startup Summit 2019 (Jul 28-Aug 3)
Application deadline: June 25, 2019
Prize Fund: $5,000 Grand Prize and $15,000 Prize Fund

Apply here: 
https://www.seasidestartupsummit.com/sevan19/firecode
Do You Dual-boot?
Tags: discuss
Published: 2019-06-12 11:58:15

---
title: Do You Dual-boot?
published: true
tags: discuss
---

Another "discuss" thread popped this question in my head. To me, with how dead-easy it is to virtualize, I was surprised to see (espcially) Linux-users claiming to dual-boot rather just use some virtualization framework.

I mean, dual-booting between a gaming-OS and a non-gaming OS can still make sense. However, if you don't have a use-case where you _need_ "bare-metal" access, virtualization has seemed to me to be the way to go for well over a decade, now.

I guess my real question, then, is probably, "if you're dual-booting, what drove you to that versus using a virtualization solution?"
What playlists do you listen to when programming?
Tags: discuss, music
Published: 2019-06-12 11:31:25

---
title: What playlists do you listen to when programming?
published: true
description: What sort of musik do you listen to when working? Do you even listen to music at all?
tags: discuss, music
---

 What sort of music do you like to listen to? Feel free to link to playlist on spotify, youtube etc. 🎶🎵

I like to listen to Acoustic music like this:

{% spotify spotify:user:spotify:playlist:37i9dQZF1DXcLDm348RRYK %}
I'm learning to Ruby, I need your input.
Tags: noob, ruby, improvement, input
Published: 2019-06-12 11:28:03

---
title: I'm learning to Ruby, I need your input.
published: true
description: I need your input to become a better ruby dev
tags: noob, ruby, improvement, input
---
![](https://thepracticaldev.s3.amazonaws.com/i/ezy2h76e1bii65o592me.jpg)

I have this weird attraction to Ruby, I feel it understands me and I feel that I understand it. I feel we have a weird connection.
I have no official programming background, I work mostly in operations and do automation with Chef. 

I'm starting out with Ruby, what tips can you give me ...


- books to read
- posts to read
- twitter accounts to follow
- dev.to accounts to follow
- videos to watch
- twitch streams to follow
- things to remember
- quotes to remember
- tools that you use
- things that you've learnt
- what do I need to have in place so that I can form good habits?

in summary I need your input to become a better ruby dev

![](https://thepracticaldev.s3.amazonaws.com/i/x2ngpdwxkmtpr3s63cz4.gif)
Angular 9|8 Store User State in Local Storage with Firebase 6
Tags: angular, angular98, firebase6, angularfirebase6
Published: 2020-01-31 19:37:14

---
title: Angular 9|8 Store User State in Local Storage with Firebase 6
published: true
tags: Angular , Angular 9|8,  Firebase 6, Angular Firebase 6 
canonical_url: https://www.positronx.io/angular-8-angularfire2-tutorial-store-user-state-in-local-storage/
---

The post [Angular 8 Store User State in Local Storage with Firebase 6](https://www.positronx.io/angular-8-angularfire2-tutorial-store-user-state-in-local-storage/) appeared first on [positronX.io](https://www.positronx.io).

Today we are going to discuss the most talked about topic in the web development industry, and that is how to **store user state in local storage using Angular 8 and Firebase** (AngularFire2). In this Angular 8 local storage tutorial, you are about to learn how to store user state in the web browser’s local storage memory. After successfully reading this tutorial, you will be able to manage the user data in local storage.

To understand this topic thoroughly, we will need the following frameworks, npm packages, and database set up in our system. However, if you are an absolute beginner, then I would suggest you should go through by the following tutorials.


[Click here to read more](https://www.positronx.io/angular-8-angularfire2-tutorial-store-user-state-in-local-storage/)
What is the worst thing you've done  directly in prod?
Tags: discuss
Published: 2019-06-12 11:05:03

People of my age might have been involved in some sort of situation where something needed to be done in a production environment. What is the worst thing you've done?


I start with myself, I remember changing the ASP classic files directly in the server to add form fields to a page (we didn't have source control) 😱🤷‍♂️
Hemp Pet Holistics
Published: 2019-06-12 11:03:49

CBD or Hemp oil is considered as the natural ingredients to treat the pets suffering from poor health conditions. We are committed to providing pet owners with the best solution to ensure their pet has a superior health condition. We have a huge collection in hemp oil, hemp dog treats, hemp tincture, hemp oil cat, CBD pet oil, CBD pet tincture, CBD pet treats, and much more. We mainly provide these oils, treat and tinctures for pets whether it is dog or cat. For more detail visit at: https://hemppetholistics.com/pages/cbd-pet-oil
Satisfied User
Published: 2019-06-12 10:59:40

Satisfied User is Providing UI/UX/IDX design services to businesses, startups, and Fortune 500 companies for over 20 yrs all over the USA. Our basic services include [UI] User Interface Design, [UX] User Experience Design, [iXD] Interaction Design and [RD] Responsive Design. With the help of our unique interfaces, we seduce users into an efficient engagement with your products or services. Whatever the specifics of your business, we’ll make your users engaged and provide innovative solutions that help you increase conversions and achieve your goals. We design groundbreaking solutions that will position your company/idea for the Big Leagues.
Update - How do you refactor this piece of code?
Tags: help, go, refactorit
Published: 2019-06-12 10:35:12

Hello fellow gophers, I need some insights. I'm writing a command line client for larder.io bookmark in go. I have this function:

```go
func checkConfigRoute(configDir string) (string, error) {
	usr, err := user.Current()
	if err != nil {
		return nil, err
	}
	route := join(usr.HomeDir, "/", configDir)
	// Check if the directory exist, if not, create it the route.
	if _, err := os.Stat(route); os.IsNotExist(err) {
		if err := os.MkdirAll(route, os.ModePerm); err != nil {
			return nil, err
		}
	}
	return route, nil
}
```
I need to check if a config file exist, but before that I want to check if the route directory exist, if not create it and return the route.

I don't know why but it feels off, not sure if I'm doing it wrong. What do you think? How do you refactor it? Should I pass the full route directly to the function instead of joining it inside? Help much appreciated!

Thanks!

## UPDATE:

Okey, let's see. I've got rid of that function and instead reworked the whole config setup.

Here is the code:

```go
// Config token
// and path
// yaml config file
type Config struct {
	FileName    string
	Path        string
	TokenString string `yaml:"token"`
}

// Token returns the configuration token string
func (c Config) Token(handle []byte) (string, error) {
	err := yaml.Unmarshal(handle, &c)
	if err != nil {
		log.Println("Error: ", err)
	}
	return c.TokenString, err
}

// SetPath defines the configuration directory path
func (c Config) SetPath(condigDir string) {
	c.Path = condigDir
}

func getUsrHomeDir() string {
	usr, err := user.Current()
	if err != nil {
		log.Println("User home error: ", err)
	}
	return join(usr.HomeDir, "/")
}

func firstTimeRun(path string) error {
	// Since we are going to store our api token,
	// for security reasons we don't want give read access
	// to other users in our system.
	if err := os.MkdirAll(path, 0700); err != nil {
		return err
	}

	return nil
}

func readConfig(route string) []byte {
	handle, err := ioutil.ReadFile(route)

	// Most common cases are:
	// Either the file doesn't exist, or
	// Exist but you don't have read permission

	if os.IsNotExist(err) {
		firstTimeRun(route)
	}

	if os.IsPermission(err) || err != nil {
		log.Println("Reading config file: ", err)
		os.Exit(1)
	}
	return handle
}

```

Because ioutil.ReadFile already return any error if there is a problem with the config file, I can directly avoid the whole checkConfigRoute, If there is an error I already know that there is something wrong. So I initalizing it from the readConfig function instead.

Thoughts?

Thanks again!
Lesson 3 : Data Types In Java
Published: 2019-06-12 10:34:02

   ![Alt text of image](https://1.bp.blogspot.com/-AwOtSeE2Xpg/XQDLH4lfAaI/AAAAAAAAIMI/JvjrZBDDnpEjoAihagiySmu3GLZqmqKKACLcBGAs/s1600/datatype.png)

you see in the picture above , the categories of data types in Java . But , don't worry , you will learn to use all of them .
Little Rock’s Dean Goodson: Comprehensive Services 
Tags: deangoodson
Published: 2019-06-12 09:59:20

50-year-old Little Rock man, Dean Allen Goodson, was born and raised in Little Rock, Arkansas. He’s passionate about his career as an arborist, and he serves as the President of his company, Giraffe Tree Service. 
Through Giraffe Tree Service, Mr. Goodson and his team extend their reach beyond Pulaski County and to neighboring states. During emergencies such as Hurricane Katrina, they have donated their time and services to assist residents and cities. They also offer 24-hour emergency care, seven days per week. 

Also check out: https://www.crunchbase.com/person/dean-goodson-little-rock
Coinbase Clone Script
Tags: clonescript, coinbaseclonescript
Published: 2019-06-12 09:25:58

---
title:Coinbase Clone Script
published: true
description: Get a best coinbase clone Script from Bitdeal - Best Clone Script Provider
tags: clonescript,coinbaseclonescript
---

##Coinbase Clone Script 
It is a website clone script that has all the existing and enhanced features, trading plug-ins as like the major cryptocurrency exchangeCoinbase.Bitdeal is famous for providing best Coinbase Clone Script.
##What is Coinbase?
Coinbase is a US-based crypto exchange that supports for both fiat-to-crypto coins and crypto-to-crypto coins.Coinbase is both centralized and decentralized exchange platform, ie., when it is Fiat-to-crypto exchanges Coinbase tends to be centralized and when it is crypto-crypto exchange Coinbase can be decentralized too.

Founded/Launched: June 2012
Headquarters location: San Francisco, California, United States
Founders: Brian Armstrong, Fred Ehrsam
Current CEO: Brian Armstrong 
No. of Countries supported: 42 + countries
##Highlights of Coinbase :
1. Coinbase is a US-based exchange which is both centralized and decentralized.ie.,
 For Fiat-to-crypto exchanges tend to be centralized ( For eg: Coinbase and GDAX makes for easy connection between bank account to buy crypto coins )
Crypto-to-crypto wallets of Coinbase are more decentralized. ( For eg: Coinbase Commerce and Toshi uses the customer-controlled wallet. )
2. Coinbase hits an annual revenue of $ 1 billion USD in 2017.
3. Coinbase serves its exchange/trading of cryptos over 40 + countries and its service Coinbase Pro is available in countries like Argentina, Peru, Colombia, Chile, India and lot more.
4. Coinbase proves to be the one of the best exchange with high trader-density and as of 2017, Coinbase has 13,300,000 + active users approximately.
5. As said before, Coinbase has introduced many products/services to serve their users better day-by-day. Coinbase products include
Coinbase Pro ( GDAX  ) - Crypto-to-Crypto Services
Coinbase Prime - Professional trading/exchange platform for institutional clients
Coinbase Commerce - User controlled Wallet storage/trading.( Decentralized )

##Why Bitdeal for Coinbase Clone Script?
We, Bitdeal is well known for providing the best exchange clone script to start your own exchange business.We furnishes Coinbase Clone Script with the following features :
1. User-friendly User Panel.
2. Unhackable Admin Panel.
3. Coinbase Clone with more enhanced features.
4. Easily Customizable clone script.
5. Advanced Coinbase Clone script at an affordable cost.

[Book a live demo for Coinbase Clone Script from Bitdeal Now !!](https://www.bitdeal.net/coinbase-clone-script)
What can you learn from someone GitHub contribution graph?
Tags: github, profile, discuss
Published: 2019-06-12 09:02:24

---
title: What can you learn from someone GitHub contribution graph?
published: true
description: insight  from a GitHub profile
tags: GitHub, Profile, discuss
---

What comes into your mind when you see someone with a GitHub contribution graph like this?

![Github Profile](https://thepracticaldev.s3.amazonaws.com/i/b8bbti3xr9mzfhzf213e.png)

What conclusion can you draw from it?
Managing Continuous Integration Pipelines with Jenkins
Tags: jenkins, ci
Published: 2019-06-13 12:43:06

---
title: Managing Continuous Integration Pipelines with Jenkins
published: true
tags: #jenkins #continuousintegration
canonical_url: https://auth0.com/blog/continuous-integration-and-continuous-deployment-with-jenkins/
---

Learn how to use Jenkins to add a Continuous Integration (CI) pipeline to your applications.

[Read on 🚀](https://auth0.com/blog/continuous-integration-and-continuous-deployment-with-jenkins/?utm_source=dev&utm_medium=sc&utm_campaign=contdeploy_jenkins)

![Managing Continuous Integration Pipelines with Jenkins](https://cdn.auth0.com/blog/illustrations/technology.png)
What's the best part of being a Dev?
Tags: discuss, beginners
Published: 2019-06-12 07:09:31

---
title: What's the best part of being a Dev?
published: true
description: What's the best non-tech non-business part of being a Dev?
tags: #discuss #beginner
---
Being new to this world, I was wondering, what's the best non-tech non-business part of being a developer?

Do you love it because  "I see my best friend every day at work", or "I love the coffee", or you just get a buzz out of having a cool job? What's your thing?

What do you look forward to every Monday morning?
Gzip Compression for Beginners
Tags: beginners, learnings, webdev, gzip
Published: 2019-06-12 06:44:13

---
title: Gzip Compression for Beginners
published: true
description: This post gives a brief introduction about Gzip Compression
tags: #beginners,#learnings,#webdev,#gzip
cover_image: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQOlY-_1LVEyKQDNIxM4brU6w8cuhpDXAckpP310W71Agq_7rj7
---

Gzip is a compression method that makes files smaller for faster network transfers.

Say, you have an HTML page with 1 MB size, Instead of sending this directly to the client, you can compress it by using Gzip compression. This will reduce the size of the file which will result in faster transmission of the file.
Once the client browser receives the file, it can uncompress and render the file. 

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

This is applicable for all the HTML, CSS, JS and JPEG files. Gzip reduces the file zip by fifty per cent generally. most of the modern browsers support Gzip Compression. if a browser supports gzip it includes,  "Accept-Encoding: gzip,deflate" in its header while making a request. if the header doesn't have this value you can send plan HTML page the old way. 

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

Gzip can be don't dynamically or statically to avoid the server load. Gzip Can't compress PNG, Zip or any other already compressed formats. 

----

Read about my python scripts challenge here 

{% link https://dev.to/ganesh/100-days-100-python-scripts-challenge-3fc %}
Sharing Prettier configuration files
Tags: javascript, typescript, webdev
Published: 2019-06-12 06:41:44

I'm working on several projects where I use Prettier. For those who don't know what Prettier is, it is an opinionated code formatter with support for. Prettier has language support for JavaScript (including ES2017), JSX, Angular, Vue, Flow, TypeScript, CSS (including Less and SCSS), HTML, JSON, GraphQL, Markdown (including GFM and MDX) and YAML.

Prettier only has few options to configure, such as tabs or spaces, print width or quote styles. A complete list of options is available in the [Prettier documentation](https://prettier.io/docs/en/options.html).

As I started to create more projects, I looked for a method to share Prettier configuration files. Fortunately, this feature is already supported by Prettier.

You just need to publish a module which exports your customized Prettier configuration.
 
Create a new directory and create two files: `package.json` and `index.json`. The `package.json` is your module's manifest, it contains metadata, dependencies, and scripts. It is mandatory if you want to publish your module to NPM. Your Prettier configuration goes into the `index.json`.

This is the content of my files:

`index.json`:

```json
{
  "semi": true,
  "singleQuote": true,
  "tabWidth": 2,
  "trailingComma": "none",
  "printWidth": 100
}
```

`package.json`:
```json
{
  "name": "@your-name-here/prettier-config",
  "version": "1.0.1",
  "description": "Prettier Config",
  "main": "index.json",
  "license": "MIT",
  "keywords": [
    "prettier",
    "prettier-config"
  ],
  "repository": {
    "type": "git",
    "url": "https://github.com/your-name-here/prettier-config"
  },
  "homepage": "https://github.com/your-name-here/prettier-config"
}
```

You can now run `npm publish` in your module's directory to make your Prettier configuration available to everyone.

If you want to use your shared Prettier configuration in other projects, you need to reference it in your project's `package.json` manifest by adding the `prettier` property:

```json
{
  "name": "my-cool-library",
  // ...
  "prettier": "@your-name-here/prettier-config"
  // ...
}
```

Additionally, you should delete all other Prettier configurations to avoid that your shared configuration file is overridden.

<hr />

If you like my content, you might want to follow me on Twitter?! [@fullstack_to](https://twitter.com/fullstack_to)
Pagination in LoopBack 3
Tags: loopback, node, javascript
Published: 2019-06-12 06:27:15

*This article was originally published on [Medium](https://medium.com/prototype-berlin/pagination-in-loopback-3-1cb5e7e7bc20).*

When developing an application with a LoopBack backend it usually won’t take long until you will need some kind of pagination in your frontend to make long lists of countless items more user-friendly to navigate.

Thankfully LoopBack has a skip filter and a limit filter which allows us to implement pagination with just using some url parameters. Your first request to fetch the list would contain

```
?filter={“skip”:0,”limit”:10}
```

the next request

```
?filter={“skip”:10,”limit”:10}
```

and so on. This is quite useful!

However whether you are building a classic pagination with pages, a load more button or even some kind of infinite scrolling you might want to know exactly how many pages there are or how many items there are left to fetch. In this post I will discuss two options to solve this issue: the X-Total-Count header and the loopback-paginator mixin.

## The X-Total-Count header

As the headline might suggest one solution would be to add a header to your response that tells you, how much items there are in total. This can easily be done with the following boot script you just have to place into the `server/boot` directory.

{% gist https://gist.github.com/mahnuh/84aa982361e1e87650d783bb8e14242f %}

This will automatically intercept all calls for item lists (find) and add the X-Total-Count header to the response. This also takes filters into account. So if you applied a where filter to your request only items that fit your filter will be counted.

In your frontend you can use that total count to calculate the number of available pages for example or hide the load more button if no more items are available.

## The loopback-paginator

The second option is to use the [loopback-paginator](https://www.npmjs.com/package/loopback-paginator) mixin. (Full disclosure: I’m the author of this mixin which I wrote to have an in my opinion more elegant solution to the pagination problem.) After installing and applying the mixin to your models (check the readme to see all available options), the response body of your GET /api/items requests will look slightly different:

{% gist https://gist.github.com/mahnuh/74f77f6e1ab115f39e1a5a265470f76a %}

Instead of an array with all your items the body will contain data and meta. Data contains the array of items as you are used to and meta contains some helpful information to implement pagination. You will see the total number of items, the total number of available pages, the number of items per page as well as the current, previous and next page (if available). This solution also takes all your applied filters into account.

I just started working on the paginator last week, but I have some more features in mind and updates will come soon.

So which solution you want to use is totally up to you. They will both optimise the user experience of your application.

Have any questions? Want to let me know what you think? Just post a comment below!