teleren/devto huggingface dataset:
Shedding My Bootcamp Skin
Tags: bootcamp, learning, javascript, beginners
Published: 2019-10-23 14:17:10

I had the opportunity to attend a coding bootcamp, which I signed up for because I really wanted to learn programming. I found it to be an amazing experience, and came away with a rather specific set of tools (JavaScript, React, Node, Express, and Mongodb) and a particular pattern to use them - nothing wrong with that.  As a newbie, I was convinced that the best thing for me to do was practice these skills - use these tools - over and over until I got good at them.  (My own version of "impostor syndrome".)

There was one tiny problem....

I kept running into some of the same roadblocks over and over, and not really finding a solution for them.  It seemed like everyone else on the internet could make this work, but not me.  So I kept practicing...

Until one day I was researching a problem (Express and Promises) and came across an article that made me stop and think.  It had the kind of title I normally don't click through ("Stop doing/using this"), but I did that day.  The article was talking about the limitations Express has with Promises, and recommended several other frameworks that handle Promises better.  This really made me pause.  In other areas of my life I practice "the best tool for the job" mentality, but with my coding, I was stubbornly sticking to the small tool set I had been taught at bootcamp - I had a "hammer" and everything was a "nail".

So I decided to try a different framework. This sparked some real fear for me - notions of being "disloyal" to the stack I had been taught, fear of going "off the beaten track".  And yet, the framework I chose is actively supported and works well for what I needed.  It has pushed me to learn a new pattern of working with my own REST api building, and perhaps more importantly, it has encouraged me to explore other non-popular technologies in pursuit of the "best tool for the job".

I wanted to share my experience in the hope that if others find themselves in a similar position will be encouraged in their own journeys of exploration.
Thanks for hacktoberfest - CodingAI
Tags: 10secondsofcode, react, javascript, hacktoberfest
Published: 2019-10-23 14:03:52

---
title: Thanks for hacktoberfest - CodingAI
published: true
description: Thanks for hacktoberfest - CodingAI
tags: #10secondsofcode, #reactjs, #javascript, #hacktoberfest
cover_image: https://thepracticaldev.s3.amazonaws.com/i/yk5ng94rpa74cfuf3azf.png
---

Thanks for hacktoberfest, Initially i didn't have any idea, how to start the hacktoberfest event. That time i have created the new repository and it is name as `CodingAI` and url is https://mentors.netlify.com/. It  helps to find a mentor related your technologies stack..! So that i have setup the initial setup and create the list of issues and added the `#hacktoberfest` tag.

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

Suddenly my project PR count is increasing and most of github friends are helped and fixed the `CodingAI` issue and Interested peoples added the request for joined as mentors in `CodingAI`.


In this hacktoberfest, I have learned many things and getting more stars, more PR and more learning.

*"I didn't get T-Shirt, But i get some good friends and more contributors"*

**Repo :** https://github.com/10secondsofcode/coding-ai
**Link :** https://mentors.netlify.com/
**To create issue / Fix issue:** https://github.com/10secondsofcode/coding-ai/issues
**To join as mentor:** Added the your info in https://github.com/10secondsofcode/coding-ai/blob/master/src/response/response.js  and created the PR.
BuilderX: The Design tool for React & React Native
Tags: javascript, react, reactnative, webdev
Published: 2019-10-23 12:21:19

I'm super excited 🤩 to announce [BuilderX](https://BuilderX.io), a browser-based design tool that codes React Native & React.

Design, Collaborate & Get Code — All in the browser! 🎉🥳

First of all, I would like to extend my greatest thanks to the community for sticking with us through this journey. In 2017, we came up with the idea of a Design Tool that uses React (Native) & .js files as its design format.

It took us quite some time to polish and launch BuilderX. There were a lot of ups and downs during development and a lot of ideas took birth and were contested, but all in all, I am extremely excited to share our work with you and the world.

# In a nutshell

- BuilderX is a design tool that runs in the browser and generates developer-friendly & production-ready code.
- You can export the entire project with navigation intact or just the parts as components.
- Share designs through links.
- Convert Sketch designs to React & React Native in seconds.
- Flex & Absolute layouts for Designers and Developers. Take your pick.
- A Component Library within the tool to make the design process easier.
- Export your own components and re-use them whenever, wherever.

I sincerely hope that you find BuilderX useful. We are here to shake things up in the app development space. We urge you to explore BuilderX as much as you can & if you like BuilderX, leave an upvote and comment. We’ll be waiting to hear from you and make BuilderX even better as time rolls on.

[Open BuilderX](https://BuilderX.io)
Kubernetes Patterns : The Reflection Pattern
Tags: kubernetes, docker, devops, patterns
Published: 2019-10-23 13:41:35

What is “Reflection”?
Reflection is a concept that is available in most (if not all) programming languages. It simply refers to the ability of an object of some type to reveal important information about itself. For example, its name, its parent class, and any metadata that it happens to contain. In Cloud and DevOps arenas, the same concept holds. For example, if you are logged into an AWS EC2 instance, you can easily get a wealth of information about that particular instance (its reflection) by issuing a GET request to http://169.254.169.254/latest/meta-data/ from within the instance itself.

Why Do We Need an Object’s Reflection?
An object here is used as a generic term to refer to the unit of work. So, in a programming language, an object is an instance of a class, in your on-prem infrastructure, the object may be a physical or virtual host, in a cloud environment, it is the instance, and in Kubernetes, it’s the Pod.

In this article, we are interested in Kubernetes, so Pod and object may be used interchangeably.

There are many use cases where you need the metadata of a Pod, especially if that Pod is part of a stateless application where Pods are dynamic by nature. Let’s see some possible scenarios:

You need the IP address of the Pod to identify whether or not it was the source of suspicious traffic that was detected on your network.
The application running inside the container needs to know the namespace in which the Pod is running, perhaps because it is programmed to behave differently depending on the environment where it is running, conveyed by the namespace.
You need to know the current resource limit (CPU and memory) imposed on the container. You can further use this data to automatically adjust the heap size of a Java application when it starts, for example.

For More information visit: https://www.magalix.com/blog/kubernetes-patterns-the-reflection-pattern
Daily Challenge #98 - Make a Spiral
Tags: challenge
Published: 2019-10-23 13:24:37

---
title: Daily Challenge #98 - Make a Spiral
published: true
series: Daily Challenge
description: Your task is to create an NxN spiral with a given size
tags: challenge
---

Your task is to create an NxN spiral with a given `size`.
For example, a spiral with size 5 should look like this:

`00000
....0
000.0
0...0
00000`

and with the size 10:

`0000000000
.........0
00000000.0
0......0.0
0.0000.0.0
0.0..0.0.0
0.0....0.0
0.000000.0
0........0
0000000000`

Return value should contain array of arrays, of `0` and `1`, for example for given size `5` result should be:

`[[1,1,1,1,1],[0,0,0,0,1],[1,1,1,0,1],[1,0,0,0,1],[1,1,1,1,1]]`

Because of the edge-cases for tiny spirals, the size will be at least 5.

General rule-of-a-thumb is, that the snake made with '1' cannot touch to itself.

***
_This challenge comes from Bugari on [CodeWars](<https://codewars.com/>), who has licensed redistribution of this challenge under the [2-Clause BSD License](<https://opensource.org/licenses/BSD-2-Clause>)!_

_Want to propose a challenge idea for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
Weekly Picks #98 — Development Posts
Tags: javascript, webdev, git
Published: 2019-10-23 12:55:38

* [ClickUp 2.0 — One app to replace them all](https://app.dailynow.co/r/1d2f4759c88eaa5944bc5abf4d1610a2)
* [A complete <dev> guide for better buttons](https://app.dailynow.co/r/3c9acd18197da2f01d478b77421a275a)
* [JavaScript Optional Chaining Just Arrived in VS Code!](https://app.dailynow.co/r/833827ad1d80bb8757a01f8ad537e178)
* [Avion — A smarter way to plan and build software](https://app.dailynow.co/r/fa0fd27ba53af46632f9089cc8b79cbe)
* [How to design a button?](https://app.dailynow.co/r/460fa46ac1a8895c52a3e52f46f9e38e)
* [? You can edit any Web Page. Design mode](https://app.dailynow.co/r/1915f5a007be78dc1df55858a13cf0b9)
* [The Worst Bug I Ever Caused](https://app.dailynow.co/r/5fa88f85663a4841910f44bbd94a1391)
* [How the JavaScript engine works](https://app.dailynow.co/r/4315dc8b537f45afac67c984565c2093)
* [The Most Understated Benefit of GraphQL](https://app.dailynow.co/r/26c43680101345097121bc3c23a2c35f)
* [Writing Your Own Changelog Generator with Git](https://app.dailynow.co/r/ddbca95759f973d10bdc58e760dddd3a)

* * *

[_Thanks to Daily_](https://www.dailynow.co/) _developers can focus on code instead of searching for news. Get immediate access to all these posts and much more just by opening a new tab._

[![Daily promotion cover](https://cdn-images-1.medium.com/max/1024/1*7bwIhcH467BKX5Ni8XWpQg.jpeg)](https://www.dailynow.co/)
How to use Anko Library to run background task in Android 
Tags: android, kotlin, opensource
Published: 2019-10-23 12:55:12

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

Today I will tell you how easy it is to use Anko Library to run background tasks in android.

There are so many libraries(Rxjava, Loader, AsynTask and more) that can help you do the job but most are very complex and make it tasky to achieve a simple goal of getting out of the main thread.

Coroutines came to the rescue and made everything pretty simple, but Anko team wanted developers to have more time for there logic than learning much on how to work with Coroutines.

Anko takes advantage of Kotlin power to offer an easy and light solution to free the main thread from long-running tasks.

Below are the steps to run a background task with Anko Library


#Add the dependency to your project

The first thing is to include the dependency.

As Anko does many things, the size of the library got out of hand. So there came a time when they decided to break it.

For this example, you only need to add the following import:
 ```
implementation 'org.jetbrains.anko:anko-common:0.9'
 ```
#Run the task in a background thread

 ```
doAsync {
    var result = runLongTask()
    uiThread {
        toast(result)
    }
}
 ```

The code above will run your background task easily.
how to convert the PHP to python?
Published: 2019-10-23 12:39:14



ASME / ANSI B16.9 Long Radius Pipe Bend / LR Pipe Bend in Noida - Mesta INC

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-81712327-17"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }
    gtag('js', new Date());

    gtag('config', 'UA-81712327-17');

</script>
<meta name="msvalidate.01" content="2A069501DA4E94F375C59CC2A0E24C98" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,600i,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500,500i,700,700i,900" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="canonical" href="https://www.mestainc.net/long-radius-pipe-bend-manufacturer-noida.php" />
<link rel="stylesheet" href="css/bootstrap.min.css" media="all">
<link rel="stylesheet" href="css/all.min.css" media="all">
<link rel="stylesheet" href="css/owl.carousel.min.css" media="all">
<link rel="stylesheet" href="css/light-box.css" media="all">
<link rel="stylesheet" href="css/tp-animation.css" media="all">
<link rel="stylesheet" href="css/style.css" media="all">
<link rel="stylesheet" href="css/responsive.css" media="all">
<link href="images/logo.png" rel="icon">


So this is the example of my shortcode here I mention my view-source:https://www.mestainc.net/long-radius-pipe-bend-manufacturer-noida.php here you can see my source code. help me out
What is this "Javascript Engine" they speak about?
Tags: explainlikeimfive, javascript, computerscience, webdev
Published: 2019-10-23 12:06:25

### The Premise

If you are not living under a rock or inside a cave for the past decade, chances are, you have come across this magical programming language called Javascript.

I call it magical because it started out as a language to add interactions to your static html page back in 1994 and today, it powers the backend services of some giants in the industry like __Netflix__.

### The Basics

So Javascript is that code that provides __functionality__ to your code. It is either executed inside the browser environment or inside the operating system environment via something like node.JS. 

But how are these lines of code that you write finally understood by the __environment__ where you are executing that code? This is where the Javascript engine comes into the picture. It is that entity that converts this high-level language into something that your "environment" can make sense of. 

### The explanation

I created a small animated video explaining the core concepts around the engine in chrome. 

Some things covered in the video are:
* What exactly the javascript engine.
* How it differs between different browsers.
* What are the different code optimizations it applies.

#### Do check out the video and feel free to share your feedback:
https://www.youtube.com/watch?v=KM9coMpy5sQ
Underrepresented Authors Promotion Thread
Tags: books, discuss, watercooler, healthydebate
Published: 2019-10-23 11:30:41

[Damien](https://dev.to/damcosset) brought up an interesting point about my recent ["20 Most-Recommended Books"](https://dev.to/awwsmm/20-most-recommended-books-for-software-developers-5578) article -- it's populated almost entirely by authors who happen to be white men:

{% devcomment gpph %}

Of course there's nothing wrong with promoting books by white men, but when these sorts of lists are disproportionately populated by authors in a particular socioeconomic class, it promotes their views and biases -- however slight or glaring -- at the expense of others.

These books were not my personal recommendations, but simply an aggregate of the books which are most recommended online. It seems that we, as an industry, have a lot of work to do to get to the point where authors of all genders, sexes, and ethnic backgrounds are equally represented.

So tell me, __what are your favourite tech-related works by authors from underrepresented groups__? Do you know any Java books by women of colour? Or Kubernetes tutorials made by persons with disabilities? What about YouTube channels with tech reviews by members of the LGBT+ community?

Let's build up a new, more diverse list of resources by creators with different viewpoints so we can all better ourselves and promote authors with backgrounds that might be different from our own. (If _you_ are a creator from an underrepresented group, feel free to self-promote below!)
Installing Google Cloud SDK on Windows
Tags: cloud, beginners
Published: 2019-10-29 11:22:15

---
title: Installing Google Cloud SDK on Windows
published: true
date: 2019-10-23 10:46:59 UTC
tags: Cloud,Beginner,cloud
canonical_url: https://educosta.dev/blog/installing-google-cloud-sdk-on-windows/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/z3nr5o8xohm6a718xjc0.jpg
---


[Google Cloud SDK](https://cloud.google.com/sdk/) (Software Development Kit) is a Command-line interface for Google Cloud Platform products and services. It has a set of useful tools for manage VM Instances, network, firewall, disk storage and more. In the video below you see the steps to install it on Windows. If your operating system is other than windows, visit the Google Cloud [Quickstarts documentation](https://cloud.google.com/sdk/docs/quickstarts) and follow the steps according to your operating system.


{% youtube zqAiRd0R0jI %}


Check [other tutorials](https://educosta.dev/blog/tag/gcp/) for Google Cloud Platform.

The post [Installing Google Cloud SDK on Windows](https://educosta.dev/blog/installing-google-cloud-sdk-on-windows/) appeared first on [Be Cloud Native](https://educosta.dev).
Vue Js 2 - punch game (vue03)
Tags: codepen, vue, javascript, beginners
Published: 2019-10-23 10:43:51

<p>Vue Js 2 small punch game. This is a game developed by #Shaun in vue js tutorial 13. The original code can be found <a href="https://github.com/iamshaunjp/vuejs-playlist" target="_blank">here</a></p>

<p>Small interactive game where i used all the functionalities learned so far in vue</p>

<p>Beside the code that #Shaun wrote in tutorial, i added some nice animations when the bag gets punched</p>


{% codepen https://codepen.io/FlorinCornea/pen/YzzZZPr %}
V by Examples
Tags: v, beginners, showdev
Published: 2019-10-23 10:25:44

[V Programming Language](https://vlang.io) is getting better day by day and more libraries being made with V. It's hard for beginners or people coming from other languages to get the grasp of the language because of less documentation and not every can go through the source code. To solve that I have made [V by Examples](https://github.com/v-community/v_by_example) which aims to teach you V by Examples and compares the similarity with other languages. It also gives you some exercises to solve and the repo structure is very easy to browse which can be handy if you want to find something. It will be uploaded on Gitbook and PDF is also planned when most of things are done.

It's extremely WIP and help would be appreciated so that beginners would be able to use V.

Greetings!
DNS Haiku with TXT Records and Terraform
Tags: terraform, showdev, dns, jokes
Published: 2019-10-23 10:24:35

Recently, I wanted to test the basic powerdns terraform provider, and whether I could write multiple TXT record entries for one name.  

Hey, what do you know, it worked.  I just had little test messages in there, and decided, maybe it would be neat to put the "DNS Haiku" in a text record. I used the latest Terraform, 0.12.12.

Here's my code.  Notice I changed the haiku just a little.

```terraform
// don't forget to put vars in separate file
// for pdns_api_key & pdns_server_url

provider "powerdns" {
  api_key    = var.pdns_api_key
  server_url = var.pdns_server_url
}

// example of multiple TXT records for name
resource "powerdns_record" "text" {
  zone    = "geexology.org."
  name    = "text.geexology.org."
  type    = "TXT"
  ttl     = 900
  records = ["\"It's not DNS.\"","\"There's no way it's DNS.\"","\"Oh no, DNS.\""]
}
```

Example tfvars.tf.
```terraform
// cat tfvars.tf 

variable "pdns_api_key" {
  description = "current api key"
  default     = "notrealzlolputyourkeyheresilly"
}

variable "pdns_server_url" {
  description = "current api url"
  default     = "http://127.0.0.1:8087"
}
```

The reply from the server for the dig query.

```
; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> txt text.geexology.org @172.29.100.102
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22695
;; flags: qr aa rd; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1680
;; QUESTION SECTION:
;text.geexology.org.            IN      TXT

;; ANSWER SECTION:
text.geexology.org.     900     IN      TXT     "It's not DNS."
text.geexology.org.     900     IN      TXT     "There's no way it's DNS."
text.geexology.org.     900     IN      TXT     "Oh no, DNS."

;; Query time: 76 msec
;; SERVER: 172.29.100.102#53(172.29.100.102)

;; WHEN: Wed Oct 23 06:19:43 EDT 2019
;; MSG SIZE  rcvd: 134

```

When refreshing state, or performing *terraform plan* the id looks like this.

```
powerdns_record.text: Refreshing state... [id=text.geexology.org.:::TXT]
```
Arrays in Javascript - 00014
Tags: javascript, beginners, deliaslan, khanacademy
Published: 2019-10-23 09:34:01

// Arrays!
//ignore xPos and yPos.

var myFriend = "Sophia";

var myFriends = ["Sophia", "John", "Leif", "Winston", "OhNoes Guy!!"];

// myFriends[1]
fill(255, 0, 0);
text( myFriends[0], 10, 30);

__Output:__ Sophia

text( myFriends[1], 10, 80);

__Output:__ John

text( myFriends[2], 10, 130);

__Output:__ Leif



text("I have " + myFriends.length + " friends!!!", 10, 150);


__Output:__ I have 5 friends!!!
End to End Restful API development using OpenAPI Specification
Tags: programming, tutorial, api
Published: 2019-10-23 09:14:08

---
title: End to End Restful API development using OpenAPI Specification
published: true
description: Build APIs like a Pro using OpenAPI Spec
tags: programming, tutorial, api, opensource
cover_image: https://miro.medium.com/max/900/1*HVxOQi8bSHrnmndMykScog.jpeg
---

With the increasing number of adoption towards service-oriented architecture and for better integrations with external systems, it became a necessity to write Restful APIs for our services. While building so we might often find several challenges such as,

- Standard & Consistent API design
- Better documentation
- Client Libraries
- Playground (better developer experience)

So while writing APIs, we have to make sure it sticks to a standard design principle, update documentation (hosted elsewhere) and finally write client libraries (harder if you have to support multiple languages). Doing all of this manually is a painful job.

Likely we have [OpenAPI Specification](https://swagger.io/specification/) (formerly known as swagger), which offers us a standard, language-agnostic interface to write RESTful APIs which allows both humans and computers to understand the service capabilities.

[Read more...](https://medium.com/swlh/end-to-end-restful-api-development-using-openapi-specification-c73d45e98c8d)
What's your take on the Hiring Process in the Tech Industry?
Tags: discuss, hiring
Published: 2019-10-23 08:55:33

I have heard a couple of folks complain that the hiring process is broken in tech. I personally have experience with this and will like to know from the Dev community what's your take on this topic?

- Do you think something better can be done?
- How do you feel about Data Structure / Algorithm challenges people have to pass through to prove you know what you're doing?
- Care to share your experience?
Active admin print current user.email but single row
Tags: rails, ruby
Published: 2019-10-23 08:36:56

 



form title: 'Edit Leave Application' do |f|
    inputs 'LeaveApplication' do 

      f.li do
        f.label :user_id
        f.span f.object.user.email
      end

      f.input :title
      f.input :description
      f.input :status
      f.input :leave_credit
      f.input :leave_type
      f.input :half_leave_session
    end
    actions
  end
end