teleren/devto huggingface dataset:
Day 1 : Myintrotoletuknow
Tags: hiphop, code, coding, blog
Published: 2019-09-30 11:16:36

_liner notes_:
__Where to begin?__
Well, my name is Dwane. Nice to meet you.

Today marks my first day as a __JavaScript Developer Advocate__ at __Nexmo__ / __Vonage__. Really excited about this position!

Not really expecting anyone to read these posts. haha Mostly for me to remember this part of my journey and work on my writing skills.

This is not my first developer job or blog (You can check out my previous posts, if you'd like at https://medium.com/@conshus)
When I started writing blogs, there was no dev.to and the API seems pretty cool, so here I am.

Sidenote: I've had the incredible luck of enjoying everyone and everywhere I was employed as a developer. Met really great people and got to work on some cool projects. Here's my Instagram post about the last place I worked:
{% instagram B27kNAwAfPN %}
I just knew that if I didn't take this new position, I would regret it.

__What else?__
My 2 main interests are HIPHOP and CODE, so there will probably be a lot of that on here.
I have a college radio show called _OUR show_ that I've been doing at Rollins College for over 11 years this year. Really enjoy doing that. You can check out the show at https://kNOwBETTERHIPHOP.com Here's the cover from the last show:
![September 28th OUR show cover image](https://ia801507.us.archive.org/7/items/OurShow9-28-19/9-28-19-1400.jpg)

I also like to go to local tech meetups... like a lot! haha So much so that I created a site that lists upcoming events and I'll even live stream some. You can check it out at https://otech.events

I think that's it for now. Going to get ready to start my first day! Another cool perk is that it's a remote position. No more hour long commutes!

Thanks for your time. 

Have a great day!
Dwane
https://lifelong.dev (I've got to update my site so that it pulls my dev.to posts instead of Medium)

{% youtube bsNsd9MDWOI %}
Where is the best place to start contributing to the dev.to project?
Tags: challenge, discuss
Published: 2019-09-30 10:30:14

---
title: Where is the best place to start contributing to the dev.to project?
published: true
description: I am challenging myself to learn more rails by diving into open source and and as a starting point the dev.to project.
tags: challenge, discuss
---

Hey @ben, I've been doing some rails courses from sites like [upcase](https://thoughtbot.com/upcase) and recently [gorails](https://gorails.com) (thanks to [Github student pack](https://education.github.com/pack)). Currently I'm an intern and I have made a simple requisition app using rails that is being used at my workplace.

I now want to dive into a more mature codebase used by many users so that I can take some ideas and concepts into my own apps. So I chose dev.to because I use it daily and I understand most of how it works so that would be a bonus when navigating the codebase.

I would like to hear your thoughts on the best place to start if I want to start contributing to dev.to project.
How I use axios in React
Tags: axios, react, http
Published: 2019-09-30 10:52:08

---
title: How I use axios in React
published: true
description: The detailed description of how I deal with axios in React
tags: axios, React, http
---

Axios is the one of the most common networking library used in React Ecosystem. We will go through multiple features of axios, which might make your life easier. The whole blog is based on one philosophy, DRY(Do Not Repeat Yourslef)

## Q) I have to set the base path each time I make a request via axios, what other approach can I use? 
Common Approach
```js
import axios from 'axios';
import { BASE_PATH } from "./main.local";

const getBlogs = () => {
  return axios.get(BASE_PATH+"getBlogs");
}

```
The other approach that I mostly use is to create an axios instance for a base path, and use that axios instance so we don't need to add base path explicitly in every request we make, we can also define timeout, default headers, etc.
```js
import axios from "axios";

export const axiosInstance = axios.create({
  baseURL: 'https://iamsourabhh.com/',
  timeout: 1000,
});

```
Now when you need to make a network request, import the axios instance instead of the node_module axios.
```js
import { axiosInstance } from './axiosInstance';
import {BASE_PATH} from "./main.local";

const getBlogs = () => {
  return axiosInstance.get("getBlogs");
}

```

## Q) I have to add auth token in my request explicitly in every request, what other approach I can use?
The axios provides a feature named interceptors, if you add a request interceptor on axios instance, every request will go through the interceptor before hitting to server.
```js
import axios from "axios";

export const axiosInstance = axios.create({
  baseURL: 'https://iamsourabhh.com/',
  timeout: 1000,
});

axiosInstance.interceptors.request.use(function (config) {
    config.headers = { ...config.headers, auth_token: getAuthToken() };
    // you can also do other modification in config
    return config;
  }, function (error) {
    return Promise.reject(error);
  });
```

## Q) I have to explicitly write logic to handle auth failures, what other approach can I use?
In this case, we will use a response interceptor, the request will go through the response interceptor, before returning the actual response.

```js
import axios from "axios";

export const axiosInstance = axios.create({
  baseURL: 'https://iamsourabhh.com/',
  timeout: 1000,
});

axiosInstance.interceptors.request.use(function (config) {
    config.headers = { ...config.headers, auth_token: getAuthToken() };
    // you can also do other modification in config
    return config;
  }, function (error) {
    return Promise.reject(error);
  });

axiosInstance.interceptors.response.use(function (response) {
    if(response.status === 401) {
        // your failure logic
    }
    return response;
  }, function (error) {
    return Promise.reject(error);
  });

```

I hope you enjoyed this article, I am looking to join some open source project based on JS, if you guys got any ideas, let me know. Thanks.
Convert to Hash from a couple of the key-value Array in Rails
Tags: rails
Published: 2019-09-30 10:46:17

---
title: Convert to Hash from a couple of the key-value Array in Rails
tags: rails
published: true
---

## 🤔 Situation
Assume that you have like this a pair of Array.
```ruby
key=[:a,:b,:c]
value=[1,2,3]
```

## 🦄 Solution
```ruby
Hash[*([key,value].transpose.flatten)]
{
    :a => 1,
    :b => 2,
    :c => 3
}
```

## 😎 Mechanism

```ruby
[key,value].transpose
#=> [[:a,1],[:b,2],[:c,3]]
# 😅 Warning: If the dimension isn't same, there will be an error 
 IndexError: element size differs.


[key,value].transpose.flatten
#=> [:a,1,:b,2,:c,3]

# The meaning of the * at the arg, the each element is passed as ISOLATE.
p *[key,value].transpose.flatten
#=>
# :a
# 1
# :b
# 2
# :c
# 3

# Then, 
Hash[:a, 1, :b, 2, :c, 3]
=> {:a=>1, :b=>2, :c=>3}
```

---

## 🔗 Parent Note
{% link n350071/my-rails-note-47cj %}
Analogy: Open source Log viewer
Published: 2019-09-30 10:45:26

Hi All,
I would like to present you a new extendable Log viewer.

Analogy Log Viewer is multi purpose Log Viewer for Windows Operating systems.

The application has many standard operations for analysis logs (like filtering, excluding) but its strength is in the ability to add additional custom data provider by implementing few interfaces. This allows adding any logs formats and/or custom modification of logs before presenting the data in the UI Layer. Some features of this tool are:

1. Windows event log support (evtx files)
2. Logs aggregation into single view.
3. Search in multiple files
4. Combine multiple files
5. Compare logs
6. Themes support
7. 64 bit support (allow loading more files compare to old tool)
8. Personalization (users settings per user)
9. Columns extension to add more columns specific to the data provider implementation
10. Exporting to Excel/CSV files


If you are using your own logs formats you can add those logs to the application by implementing few interfaces to read log files or to get real time logs.

the repository resides at https://github.com/philips-software/logviewer
with many more features to be added in the future.
Hire PHP Developer – Save Time and Cost
Tags: hirephpprogrammer, hirephpdeveloper
Published: 2019-09-30 10:45:03

Are you seeking for an expert PHP developer‘s hand on your custom web application development? Or looking for a highly professional offshore PHP development company at low cost? Then, Logicspice is the perfect place to opt out the solution for open source development. We offer proficient & dedicated PHP developers who have widespread knowledge and experience on 11+ years in PHP programming. With on hand experience in PHP web development, we believe to deliver the work with quality, security and sustainability. </br>

Our expert PHP developers have extensive knowledge about every technical feature and the latest PHP versions. We care about our clients, so our programmer understands your PHP web development need and create innovative web applications within your time-frame and budget. </br>

The primary goal of our dedicated PHP programmers is giving accomplish work for the client by satisfying their needs. By <a href="https://www.logicspice.com/hire-php-developers">hiring PHP developers</a>  from logicspice you will get high level of stability & functionality with the best PHP web development in this competitive market </br>

<b>PHP Solutions </b>: </br>

Web Application

Our developers maintain the project from scratch, handle the PHP web applications and delivery quality result. </br>

e-Commerce Solutions

Increase your online sales by giving amazing user experience with the help of our developers. </br>

Website Development

We utilize our proficiency and experience in delivering the result driven solutions. </br>

CMS Solutions

We provide elegant and effective CMS solution as per your business requirement. </br>

Social Networking App

Get social media apps with great effectiveness with our innovative PHP web developers. </br>

Enterprise Application

We are providing business apps using the latest PHP version for offering the best solutions </br>

<b> Why hire from Logicspice </b></br>

Qualified, Experienced and certified resources

Flexible Hiring Models

Rapid yet Effective development

Monitor team’s performance on regular basis

Track Progress with Project Management Tools

Fast and easy communication

Flexible Timing

Cost-efficient

Consistent Technical and Administrative support

Highly Secured Development Area

Dependable supervision and execution

Optimized Coding

We take deadlines very seriously

100% confidentiality – strict NDA terms

Works on latest technologies

Availability and scope of expansion </br>

 

<a href="https://www.logicspice.com/hire-php-developers">Hire PHP Programmer</a>  Now
Upgrading APIs, Cloud security & some Engineering advice
Tags: career, api, security
Published: 2019-09-30 10:30:06


*TL;DR versions of articles I read today on software engineering. [Sign up for my newsletter](https://mailchi.mp/appsmith/insnippets?utm_source=devto&utm_medium=post1&utm_campaign=is) to receive these in your inbox every weekday.*



### [APIs as infrastructure: future-proofing Stripe with versioning](http://bit.ly/stripe-api) 

*#API #changemanagement*

- Once signed, any changes to a contract become complicated.
- APIs are your contracts for communication with your customers. 
- Stability is a superpower for APIs.
- Extensive backward compatibility + Internal change review process before release + Versioning = Stripe’s API superpower 

*[Full post here](http://bit.ly/stripe-api), 9 mins read*

----

### [7 non-negotiable security practices for any cloud product](http://bit.ly/cloud-security-practice)

*#cloud #security*

1. Track access and usage across cloud providers
2. Manage access to sensitive data 
3. Automate your user provisioning & de-provisioning 
4. Configure single sign-on with your identity provider 
5. Set up login requirements 
6. Routinely audit activity logs
7. Familiarize yourself with your cloud providers security offerings 

*[Full post here](http://bit.ly/cloud-security-practice), 6 mins read*

----

### [All the best engineering advice I stole from non-technical people](http://bit.ly/advice-non-tech)

*#career #teambuilding*

- Ensure fixed ownership of every task that needs to be done in a team. 
- Know what people expect you to be an expert in. Delivering in your area of expertise is more than enough. 
- You truly help others when you solve with them, not when you hand out a solution.
- Learn to harmonize the dichotomy. Everything is an assumption when you are doomed to see in binaries. 
- Ensure people are focused on making their work’s value seen and not focused on making themselves seen working for long hours. 

*[Full post here](http://bit.ly/advice-non-tech), 11 mins read*

----
a common validations concern in Rails
Tags: rails
Published: 2019-09-30 10:18:56

---
title: a common validations concern in Rails
tags: rails
published: true
---

## 🤔 Situation
### 1. a common validations for multiple models
When you have some models that need to validate for `e-mail`, `policy_agreement`, `user_name`, `tel_number`, and so on, do you want to write almost the same things for many models?

### 2. the names of the same meaning column is different!
It's like this.

- User#email
- Company#mail_address

Is it possible to make them common?

## 🦄 We have a great tool `ActiveSupport::Concern`!

```ruby
module CommonValidation
  extend ActiveSupport::Concern

  included do
    # This is for not the columns, but the screen items.
    attr_accessor :mail_address_confirmation
    attr_accessor :policy_agreement

    # This is for situation 1
    validates :name, length: { maximum: 16}
    validates :policy_agreement, acceptance: true, allow_nil: false, on: :with_policy_agreement

    # This is for situation 2
    # obj in the Proc.new is dinamically determine, it will be the very object of the validated model.
    [:email ,:mail_address].each do |column|
      validates column, format: { with: Regexp.new(Constants::EmailRegex) }, if: Proc.new { |obj| obj.respond_to?(column) }
    end
  end

end
```



---

## 🔗 Parent Note
{% link n350071/my-rails-note-47cj %}
Start-up Starts. Mini-interview series with entrepreneurs & their early days
Tags: startup
Published: 2019-09-30 10:05:00

People say starting a start-up is like a marathon. If you ever built one from the ground up, you know this is an understatement. A more accurate description would be running across the Sahara on one leg and very limited water. Ok, maybe two, if you have a co-founder.

 

Even so, few things are more rewarding than seeing your idea come to life. And few things teach you so much in such a short amount of time. Launching a start-up is the ultimate crash course in anything from international law to being a good judge of human character.

 

We know this because we work with start-ups daily. We help them build from the ground up and stay by their side as they scale up. From one-month projects to five years of continuous software development, we have witnessed and supported awesome projects being born, survive and then thrive.

 

If every successful start-up begins with a single decision, we are looking to unpack precisely the early beginnings and that initial decision which led them to where they are today. Whether you are an entrepreneur who is feeling stuck or you are just starting out and wondering if you have what it takes, this one`s for you.

 

*“Start-up Starts” is a mini-interview series with some of the awesome start-ups we`ve worked with throughout the years and their inception. The first few months can make or break a project, so we wanted to dive deeper into these crucial moments for any start-up. We asked everyone the same three questions and … the rest is history. Literally.*

**1.) What sparked the idea for your project?**

**2.) What were the first three steps you took to get things rolling?**

**3.) Describe the biggest hurdle you had to overcome in the first 3 months.**

 

Stay tuned for upcoming interviews!
Need some Help on React and ChatKit
Tags: react, chatkit, pusher, chatapp
Published: 2019-09-30 10:04:06

Hi fellow devs! I need some help. I'm trying to create a chat app with React and ChatKit API. The app is not working as it should. I created 2 users and 6 rooms in Chatkit. I then entered and saved some messages(in the chatkit) but on running the app the messages don't show on the screen(MessageList). Also, after typing a message and hitting ENTER on the UI again nothing shows on the screen (MessageList area). Please how can I fix this?

Website... https://toss-chat.netlify.com/
Github Repo... https://github.com/PJMantoss/toss_chat

Thank you
Flutter news from GDD China: uniting Flutter on web and mobile, and introducing Flutter 1.9
Tags: flutter
Published: 2019-09-30 09:33:05

Now Flutter news from GDD China: uniting Flutter on web and mobile, and introducing Flutter 1.9.

Source to get more details:

For Developer:
https://developers.googleblog.com/2019/09/flutter-news-from-gdd-china-flutter1.9.html

Flutter Latest Release:

https://flutter.dev/docs#latest-release

Now Flutter Changes their Showcase and it added some more applications:

https://flutter.dev/showcase

And list of Flutter Libraries and Widget list at:
https://flutterxp.com
The fastest and easiest website editor
Tags: webdev, design, javascript
Published: 2019-09-30 09:32:55

All FEs devs and designers want to at some point do some realtime changes to our website see how it will look.

We generally resort to inspecting and 
- Edit as HTML
- Modifying the CSS

But there is one very cool and super convenient document property which can help us with that:

<strong>document.designMode</strong>
It has default value set to "off". Just try turning this on, on any website.


MDN link:
https://developer.mozilla.org/en-US/docs/Web/API/Document/designMode
Unable to do AT&T Yahoo Login then just following measures
Tags: attyahoologin
Published: 2019-09-30 09:31:13

If you are incompetent to do AT&T Yahoo Login then first test your internet connectivity and then after that check the details which you have mentioned on your AT&T Yahoo Login page. If in case your internet connection speed is coming perfect and you have defined correct details on the log in page then once clear your browser cache and cookies as sometimes cache and cookies are the main cause of login issue. Read More: - https://www.emailcontacthelp.com/blog/att-yahoo-email-login/
Suggest me some great books...
Tags: jave, laravel, wordpress, linux
Published: 2019-09-30 09:12:23

Please suggest some best guides for the subjects those who are aware of it. 

Laravel

Codeigniter

Wordpress

Java-J2EE

Drupal

MCSE

Citrix

Net app

Linux

PHP

SEO

VMware VCP

Basic computer course (MS Office based)

Advanced MS Office

Advanced Excel

C++

Advanced Java

<a href="https://www.tutorsvalley.com">tutor</a>
[Devmates.co] Square Area
Tags: challenge
Published: 2019-09-30 08:45:53

*Hello👋, 
*My name is [Alex](https://twitter.com/alexwawl) and I'm maker of [Devmates.co](https://devmates.co).* 😊

*We are resolving daily coding problems which asked by top tech companies together. We share our solutions, give some help if anyone stuck, support each other and just hangout together in the internet.* 🍻☕️💬

*I get this problem from our members or just searching them in the internet(leetcode forums, Glassdoor, teamblind, etc.). Sometimes this problem can be very easy, sometimes too 👷‍♂️hard, everything depends on skills but we are trying to resolve all of them and Have Fun.*  🙌 

Today I want to share problem which was asked by 📦 Amazon.

#####Problem:

Given a 2D binary matrix filled with __0__'s and __1__'s, find the __largest__ square containing only __1__'s and return its __area__.


#####Example:
__Input:__

1 0 1 0 0
1 0 __1__ __1__ 1
1 1 __1__ __1__ 1
1 0 0 1 0

__Output:__ 4
What TPOs can do to help improve the employability of engineering students?
Tags: campusplacement, campusemployabilitlabs
Published: 2019-09-30 08:07:11

Employability of engineering graduates is a major concern for colleges. In the past, multiple industry reports have brought forth the lack of employable skills in engineering graduates. Out of 8 lakh engineers who graduated last year, half of them could not get a job. At the same time, there has also been a shortage of skilled workforce in the industry. Unemployment among graduates and shortage of skilled workforce is a clear sign that the skill demanded in the industry and those supplied by colleges are not 
read more:-http://bit.ly/2mOK1dj
Using lambda to get around cors
Tags: help, aws
Published: 2019-09-30 07:50:18

I am building my portfolio and one of the requirements is to not get tied to a web server, in fact I am probably going to host in S3 for the time being. There is one particular API which I want to request in the browser, the GitHub API over graphql, unfortunately I get cors issues as you might expect. So my idea was to create a lambda that makes that request and returns the result. Is this a good use of a lambda? It strikes me that I am making 2 requests. Even then I am struggling to configure cors. I have to say though the serverless framework has been very helpful.
I am a junior data engineer without a senior engineer. What should I do?
Tags: startup, dataengineering
Published: 2019-09-30 07:33:58

---
title: I am a junior data engineer without a senior engineer. What should I do?
published: true
description: 
tags: startups, data engineering, 
---

I am working at a startup and i was promoted to a junior data engineer a couple of months ago. This is my first rodeo with most things data engineering, coming from a dev background. I feel like I have too many blind spots and no one to help cover them.
Optimizing Your Gatsby.js Site for Production
Tags: gatsby, react, jamstack, development
Published: 2019-09-30 07:19:47

---
title: Optimizing Your Gatsby.js Site for Production
published: true
description: I spoke about “Optimizing Your Gatsby.js Site for Production” at WordSesh EMEA 2019 edition. Thanks a ton to my friend Brian Richards for having me once again.
tags: gatsby, react, jamstack, development
cover_image: https://on.ahmda.ws/6024d9/c
---

I spoke about **“Optimizing Your Gatsby.js Site for Production”** at WordSesh EMEA 2019 edition. Thanks a ton to my friend [Brian Richards](https://twitter.com/rzen) for having me once again.

## Talk Highlights

The topic primarily covered all the important steps which should be implemented and configured before your Gatsby-powered website goes live. The reason why I specifically chose Gatsby sites is that I love JAMstack and being the latest trend developers are now shifting gears to it.

I discussed the implementation of functionalities like:

- Adding custom sitemaps
- Support for rendering markdown pages
- Embedding videos from multiple video sources
- Adding an RSS Feed file making your site content subscribable

I plan to write individual blog posts about each of these features which I’ll share some time later.

For now, here are the links to the demo project’s GitHub repo and the presentation deck.

- 🌟 GitHub repo → https://Maedah.dev/WDSEPGH
- 👩‍🏫 Slides → https://Maedah.dev/WDSlidesSep19

I even tweeted about it:

{% twitter 1176875419368329218 %}