teleren/devto huggingface dataset:
DMarket Launches New Platform To Boost Multi-Billion Dollar Digital Goods Market
Tags: dmarket, news
Published: 2019-09-25 08:03:08

SANTA MONICA, California, August 16, 2019 – DMarket, a platform for digital goods and the global leader in skins trading, has introduced a next-generation marketplace featuring instant in-game items exchange and purchases.

[DMarket’s new platform](https://dmarket.com/) allows users to buy, sell, and exchange in-game items seamlessly. Henceforth, players can exchange gaming gear without any money involved. The platform has other unique features. For instance, players can make offers for desirable skins even before they are put up for sale which creates a consistent demand for in-game items.

Meanwhile, game developers get an opportunity to monetize titles before their launch and build communities by leveraging DMarket’s pre-order campaigns and data analytics. The new platform is using different AI mechanisms, including data mining and neural networks to help game developers increase player engagement and retention.

Also, DMarket is built on distributed ledger technology to ensure the transparency and safety of every transaction on the platform.

“We gathered years of skins trading data and analyzed countless expert and user reviews to deliver this product. It took us 12 months to build it. The world is becoming digital, and soon people will buy regular physical goods like soda not only in the supermarket but also in the gaming worlds. We have introduced a new approach to in-game goods trading that will accelerate the growth of the digital trading market and the gaming industry overall.” - said DMarket CEO Vlad Panchenko.

The annual volume of virtual goods purchases has reached $15 billion. By 2025, this number is expected to rise to over $185 billion.

In 2017, DMarket raised $19 million. Version 1.0 of the platform was released in March 2018. Further DMarket updates, including exclusive opportunities for DMarket early adopters, are on the way.

Source: https://dmarket.com/blog/dmarket-new-platform/
Recently designed website
Published: 2019-09-25 07:07:52

I am a freelancer and have been designing websites for a long time now. Recently I contributed in one of a high name brand called Hair and Skin Factory as their website designer.

It was really an amazing time designing their website and had a good experience while doing it. I had to deal with different webpages and it was amazing. Here is the site, check it out!

<p><strong><a href="https://www.hairandskinfactory.com/">Hair and Skin Factory</a>
Software Design or Just Winging It?
Tags: architecture, productivity, discuss
Published: 2019-09-25 06:43:05

Today I went down the path of designing the initial database schema of a work project I'll be kicking off in the next day or two. And then it had me thinking . . .

**Do current Full-Stack and/or Backend developers actually use architecture design tools any more?**

Back in my early days of the software development industry, it was common for a senior developer or architect to create a UML design doc of their projected Class & Method interactions for the platform. And in turn they created the necessary UML document for the database structure to support their overall software design. Nowadays, at least in the past 5+ years for me, I haven't seen such a wholistic document created. 

**So what are "modern" developers & architects doing? Winging it?**

![What you doing sucker](https://media.giphy.com/media/moHRAoGsLBg88/giphy.gif)
Javascript Learning From Scratch -00002
Tags: javascript, beginners, posttwo, khanacademy
Published: 2019-09-25 06:18:30

Variables

var circle = 40;

ellipse(100, 100, circle, circle);

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

#if ellipse's width and height the same size so it is a circle.

#elips fonksiyonunda yükseklik ve genişlik değerlerini eşit verdiğimizde daire elde ederiz.



||||||||||||||||||||||||||||||||||||||||||
The Eyeball Effect 
Tags: testing
Published: 2019-09-25 05:59:03

When dealing with testing software, I've determined that it is important to communicate things aren't going to be tested. We want to have good test coverage to meet the need of having confidence in our releases, but with limited man power and rigid deadlines, choices about where to focus testing need to be made. It's not like this isn't understood or that such statements are unknown, but I think the implications of such a situation are not understood. 

I want to talk about something which I feel is well described as, "the eyeball effects" because it relates to how many and what eyes are on a release. This really has two impacts related to testing.

* It creates pressure for QA to deliver a functioning and bug free solution
* It also provides an opportunity to leverage distribution of work.

This focus usually comes in relation to a new feature or a high profile bug. This extra focus isn't a huge issue but when combined with only QA can 'officially' test we have many duplication in testing. 

Part of this can be addressed by having QA document the effort which took place. But this becomes a challenge since a QA member feels they are providing the approval but were not the one in control of the testing.

Personally I find too stringent requirements on documenting testing done can prevent good collaboration strategies. I don't now how many times I've been over a devs shoulder as he walks me through some testing he is doing, and we discuss edge cases.

I realize this throws out the awesome regressions for future testing. Well I don't believe a manual regression is a good plan for future proofing.
rubocop for code quality and formatting in Rails
Tags: rails
Published: 2019-09-25 05:56:48

---
title: rubocop for code quality and formatting in Rails
tags: rails
published: true
---

## 🔗 Parent Note
{% link n350071/my-rails-note-47cj %}


## 🤔 What is rubocop?
​
📚 [rubocop document](https://rubocop.readthedocs.io/en/latest/)
​
> RuboCop is a Ruby static code analyzer (a.k.a. linter) and code formatter. Out of the box it will enforce many of the guidelines outlined in the community Ruby Style Guide.
​

## 🤔 How to use?
​
put the `.rubocop.yml` on app directory and run following command.
​
```sh
bundle exec rubocop --config .rubocop.yml
```
​
then, get the results like this.
​
```
path/to/file.rb::11.1  C: Layout/TrailingWhitespace: Trailing whitespace detected.
273 files inspected, 1 offenses detected
```
​
It means that rubocop detects White Space which should be removed at the end of the line at row11, 1char, and the violation is only 1 in 273 files.
​
​
## 🤔 How to fix it?
​
### 1. Google with the detected message
​
When you google with [Layout/TrailingWhitespace](https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/TrailingWhitespace), you'll see following explanation, then fix it.
​
```ruby
# The line in this example contains spaces after the 0.
# bad
x = 0
​
# The line in this example ends directly after the 0.
# good
x = 0
```
​
### 2. Auto correct
use `-a` option.
​
```
bundle exec rubocop -a
```
​
You can find other options on the 📚 [document](https://rubocop.readthedocs.io/en/latest/auto_correct/).
​
Enum - Partition on ruby
Tags: ruby
Published: 2019-09-25 05:33:33

---
title: Enum - Partition on ruby
published: true
description: How to partition array
tags: ruby
---


```
data = [1,2,4,5,6,7,8,9,10]

odd, even = data.partition(&:odd?)

=>[[1, 5, 7, 9], [2, 4, 6, 8, 10]]
```

*This is a sample only.
AWS Media Services
Published: 2019-09-25 05:30:18

# Elastic Transcoder
•	It converts the several media and stores it and convert it to the system adaptable format (android, ios)
•	Workflow
```
o	The audio files get stored in S3, which invokes lambda function.
o	This lambda function would invoke Elastic Transcoder, which would convert to different format.
o	And then it would be stored in S3.
```
•	Pay based on the minutes that you transcode and the resolution at which you transcode.
 

# Media Convert
•	it converts the media to storage 

# Media Live
•	it helps in live streaming

# Media Package
•	It provides the complete package.

# Media Store
•	it stores the media

# Media Tailor
•	it helps in putting the content like advertisement into the media.

From the lifecycle of media, the above services can be linked in the following ways:
```
Media ==> Media Live (Live)
Media ==> Media Convert (conversion) ==> Media Store (Storage) ==> Media Tailor (Putting advertisement) ==> Media Package (complete package)
```
AWS Desktop And App Streaming
Published: 2019-09-25 05:26:34

# Workspace
• provides users with a desktop experience in the cloud that can be accessed from any 
connected device.

# AppStream
• It is a fully managed, secure application streaming service that allows you to stream desktop 
applications from AWS to a web browser.
• You can have a desktop over in cloud and many apps can be opened, like:
```
o Eclipse
o Excel
o Firefox
o word
```
AWS Analytics
Published: 2019-09-25 05:16:37

# Athena
EMR (Elastic Map Reduce)
CloudSearch
Elastic Search Service
Kinesis
•	It’s a platform
```
o	To send your streaming data.
o	To make it easy to load and analyze streaming data
o	To provide platform to build our own custom applications.
```
•	Streaming data
```
o	Purchase from online store.
o	Stock price
o	Game data
```
•	Core services:
```
o	Kinesis Stream
o	Kinesis Firehose
	No need to worry about the shards.
	It can have the inbuilt lambda which would do analytics on the fly.
```


# Kinesis Video Stream

# QuickSight

# Data Pipeleine

# Glue
AWS Security Identity And Compliance
Published: 2019-09-25 05:12:32

# IAM (Identity Access Manager)
•	It helps in managing roles, groups, policy to be attached with the AWS services
•	IAM is global, it’s not restricted to any region.
•	Normal AWS account is a root account.
•	You can have multiple user defined and attached these with the group, and this group also can be defined.
```
o	Group is a way to group the users and used to apply the policy and /or role to them.
o	Permission to user can be assigned while tagging it to group or directly with the policy.
o	Access Key Id and Secret Access Key is used to access AWS programmatically.
o	User and Password are used to login to AWS Management Console.
o	New users have no permission when created.
o	Power User Access: Provides full access to AWS services and resources, but does not allow management of Users and groups.
o	Group and Role both contains policies but Group is associated with the user while Role is associated with the AWS service.
o	Custom policy also can be defined.
```
•	To avoid misuse, you can enable Multi Factor Authentication (MFA) to your root account.
•	Role is a way to group the policy.
•	Policy is permission definition.
•	Policy Documents is JSON.
•	Allows password rotation policy
•	Through the putty or AWS CLI, you can login with the user name (one what you create here), using configure command, but this option creates a file, where it stores the credentials in ~/.aws/credentials:
```
o	aws_access_key_id
o	aws_secret_access_key
```
•	Roles are more secured than access key and access id.
•	Roles are easier to manage.
•	Roles can be assigned even after it has been provisioned.

# Cognito
•	it helps in restrict access to the given AWS services.

# Guard Duty
•	it monitors the malicious activity in your AWS account.

# Inspector
•	through this you can run bunch of test cases to find out the vulnerability

# Macie
•	it scans the S3 bucket and finds out if it has any personal information such as card number, mobile number

# Certificate Manager
•	by default, AWS provides SSL certificate with domain registration.

# Cloud HSM
•	it is used to store the keys like public or private keys.

# Directory Service
•	it integrates the MS level directory

# WAF (Web Application File)

# Shield

# Artifact
How to generate random IDs that are not individually unique, but unique across 2 fields (columns) in a MySQL database table?
Tags: help, mysql, database, sql
Published: 2019-09-25 05:10:34

There already are answered questions on how to generate unique, random alphanumeric strings in MySQL. That is not the question.

I am trying to generate a 4 character, random alphanumeric string in MySQL such that the COMBINATION of that field and another are unique in MySQL. In other words, given an existing field in the table (userID), I need a 4 character, random alphanumeric string for another field in the same table (commentUID), such that the combined userID+commentUID is unique. Note that commentUID by itself is not necessarily unique - 2 or more users with different userIDs can have the SAME commentUID value.

Background: I have a users table, and a comments table. I need a unique combination for: the user's username (or ID) and the Unique ID of the comment they leave, so that every comment in the system can be uniquely identified in the URL, while also keeping the comment UIDs (and therefore URLs) as short as possible.

The unique ID for the comment should be 4 alphanumeric characters, because each user is not likely to leave more than 36^4 = 1.6M comments (36 denotes all possible values from a-z0-9, lowercase only). An example of this is actually dev.to. See https://dev.to/mindplay/comment/dm5i

How can I do this as a pure MySQL-only solution, such that the commentID is generated when a new record is inserted into the comments table? If you know how to do this, your thoughts are appreciated.
The Flow
Tags: programming, foreverlearner, flow, workflow
Published: 2019-09-25 05:02:35

---
title: The Flow
published: true
description: Programming is Like Weather, When it Rains it Pours... I Like it When it Pours. 
tags: #programming, #foreverLearner, #flow, #WorkFlow
cover_image: https://images.unsplash.com/photo-1531005798731-8449437de73e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60
---

###When it Rains it Pours 

I was looking at a github commits history of a project I've been working on and realized a strange phenomenon with the commits. They were fairly consistent in number throughout the project, but the bulk of actual code and at that "functional code" came in chunks. When I thought about the chunks I could remember vividly the sensation, the experience of pumping out the code. I could also remember the days that little content was added, but the days I was cranking I remembered that I was *in the groove*. I was cranking because I was grooving and in that reminiscence I realized I need to get cranking or at the very least I want to get cranking! 


###What's Flow
When working through my undergraduate degree at Quest University I had a class with a particular professor's assistant who claimed to have invented the term Flow. When I questioned him about it he doubled down and reaffirmed what I had heard. So still quite confused I pressed him further and had him explain flow to me. He never once mentioned anything familiar to my understanding of physics. He explained flow as a psychological phenomenon. He talked about the experience of moving through a task with intention and consideration. He defined flow as the moment one becomes so focused on something that their actions become entangled with that thing. At that point I began to recognize what he meant by *flow*. My narrow focus upon his abrupt introduction had been widened. I knew *flow* well. I knew *the groove* well. The Flow was when I got shit done. But how do I cultivate Flow?

###1, 2, 3, Flow.
Flow is when "shit gets done" and as such is necessary to be effective at anything one does. To cultivate flow one must understand flow. The key components of flow like many other experiences are the experiences preceding the moment and the local environment it exists in. Working with this framework of flow, to cultivate flow one needs to understand the experiences that proceed their flow and the environments that they experience flow. Once the environments and experiences one associates with flow have been identified the process becomes a little repetitive as  cultivating flow now becomes cultivating the experiences that precipitate the experience of flow. With that I leave you to cultivate your flow. 

Cheers!

*For those keeping score at home - JS Set vol. II coming soon...*
*For those keeping score at home who missed it - [JS Set Vol. I](https://dev.to/anders1216/js-set-part-1-5e72)*
AWS Developer Tools
Published: 2019-09-25 04:41:49

#CodeStar
•	It helps you to manage your project.

#CodeCommit
•	It helps you to store your code using different source control service repository like Git.

#CodeBuild
•	It helps you to build the code and the package ready.

$CodeDeploy
•	It helps you to deploy the code through EC2 instance or lambda.

#CodePipeline
•	It helps you to integrate the code development life cycle to make release process smooth.

#X-Ray
•	it helps you to debug and analyze in finding the root cause of the issues.

#Cloud 9
•	it provides the infrastructure to develop your code so that you don’t need the IDE in your laptop.

The development life cycle, what we follow in our respective organization can be connected with the above mentioned services in the following ways:
```
Cloud 9 (IDE) ==> CodeStar (Development) ==> CodeCommit (Check in) ==> CodeBuild (Build) ==> CodeDeploy (Deployment) ==> CodePipeline (CI/CD) ==> X-Ray (Debug)
```
AWS General
Published: 2019-09-25 04:37:10

#Region 
•	It is just the geographical name.

#Availability Zone 
•	It consists of one or more Data center.

#Edge 
•	It is the caching delivery form AWS (eg Cloud Front), mainly media file etc.

Each Region consists of at least 2 AZs. Region is different from Edge and there are many more Edges than Regions.
Edge is light storage, when it’s accesses first time then only it gets the content, and also to provide smooth operation to the user, it should be more.

#AWS Organization
•	It's an account management tool, used to maintain the multiple AWS accounts (multiple accounts responsible for various team with in the organization) and these multiple accounts are called linked accounts.
•	It helps in giving the consolidating bill, which turns out to be cheaper as compared to the individual bills which comes for the individual team.
•	It also helps in sharing the resources rather than it’s being idle for other teams.
•	It's just the paying account not for deploying resources.
•	It supports 20 linked account maximums, but it can be raised by contacting AWS.
•	Cloud trail can be enabled on the AWS account and region level so to enable cloud trail on root account level:
```
o	Create the S3 bucket for root account.
o	Grant access for other AWS accounts.
o	Enable cloud trail for each of the AWS account and redirects the log to this S3 bucket. 
```

•	From the above diagram, we can have following advantages:
```
o	Centrally managed policies across multiple AWS accounts.
o	Control access to AWS services.
	With the Service Control Policies control (SCP), you can deny access to DB and kinesis to HR team.
	SCP overrides IAM.
o	Automate AWS account creations and management.
o	Consolidated billing across multiple AWS accounts.
```

#AWS Support Plan
•	It has following plans:
```
o	Basic
o	Developer
o	Business
o	Enterprise
```
•	All customers receive Basic Support included with your AWS account.
•	All plans, including Basic Support, provides
```
o	24x7 access to customer service
o	AWS documentation
o	Whitepapers
o	support forums. 
```
•	 Business and Enterprise plans provide access to full set of Trusted Advisor checks.
Anonymous & arrow functions in Javascript
Tags: javascript, beginners, discuss, webdev
Published: 2019-09-25 04:26:16

I've been exploring with javascript anonymous & arrow functions, and found this quite an interesting puzzle: what are the return types of these functions? Bonus points for an explanation of how some of these work (or not)

```javascript
export const values = {
    key: 'value',
    getKey: function () {
        return function() {
            return this.key;
        }
    },
    getKeyArrow: function () {
        return () => this.key;
    },
    getKeyArrowCall: function () {
        return (() => this.key)();
    }
};

const v1 = values.getKey(); // function
v1(); // undefined
const v2 = values.getKeyArrow(); // function
const v3 = values.getKeyArrowCall(); // value
```

**Edit**: I changed getKey to be a bit more difficult. The previous version executed `return this.key;`
Learn Python 3 Fundamentals From Scratch
Tags: python, webdev, machinelearning, tutorial
Published: 2019-09-25 04:11:27

Master Python 3 Fundamentals and Build 3 Fun Projects From Scratch

This course is for the absolute beginners who want to learn the fundamentals of python programming language.

This course will teach you the basics of programming in a practical, easy and fun way!

Here are 5 reasons to learn Python right now!

Easy to learn: Python is the easiest programming language to learn. In fact, at the end of this single course, you’ll be able to master Python and its applications regardless of your previous experience with programming.

High Salary: Did you know that the average Python programmer in the U.S. makes approximately $116 thousand dollars a year? With “Python 3 Beginning to Pro Masterclass” you’re setting yourself for up for increased earning potential that can only rise from here.

Scalability: It’s true, Python is easy to learn. But it’s also an extremely powerful language that can help you create top-tier apps. In fact, Google, Instagram, YouTube, and Spotify are all built using Python.

Versatility: What’s more, Python is by far the most versatile programming language in the world today! From web development to data science, machine learning, computer vision, data analysis and visualization, scripting, gaming, and more, Python has the potential to deliver growth to any industry.

Future-proof Career: The high demand and low supply of Python developers make it the ideal programming language to learn today. Whether you’re eyeing a career in machine learning or artificial intelligence, learning Python is an invaluable investment in your career.

What you’ll learn:

Variables and data types & Comparison operators
For and while loops & Functions
Logical Operators & Conditional statements (If-else)
Fundamentals of Python Programming

{% youtube -iJ5fej9t74 %}
Need recommendations - Learn JavaScript Design Patterns & Anti-patterns.
Tags: help, javascript, designpatterns
Published: 2019-09-25 03:25:23

Hi awesome coders out there,

Can someone please suggest good resources (interactive and useful) resources to learn JavaScript Design Patterns & Anti-patterns?

I got tons of results on a simple Google Search, but I'm looking for something which makes it fun to learn (in a non-wiki way ;P ) -- something like https://scrimba.com/
The most convenient tool to mock requests for axios, with built-in Chrome extension support.
Tags: axios, mock
Published: 2019-09-25 03:13:23

## Why need mock requests
* Instead of waiting for the dependent web service to develop and deploy, you just need to define the interface fields and the front back end can be developed in parallel.
* Some web service may contaminate the data in the production environment, while the real request will not be sent by simulating the request and specifying the response you want. 
* Many times, the web service may return various types of responses, and developers and testers need to verify if it is working correctly under different returns, for example, when web service status code is 500, the page can be displayed as expected. Creating the data through normal operations can sometimes be particularly cumbersome or difficult, while using mock requests is convenient, and boundary testing can be done efficiently if you want to return what you want. 
* It is the base of TDD (test-driven development) and automated testing.

## Homepage
https://github.com/eshengsky/axios-mocker