teleren/devto huggingface dataset:
Do not leak your codebase in private projects
Tags: security, react, web, bundling
Published: 2018-09-12 11:18:29

---
title: Do not leak your codebase in private projects
published: true
description: Sometimes tech people forget to disable source-maps in production, especially when using the create-react-app project
tags: security, react, web, bundling
---

Sometimes tech people forget to disable source-maps in production, especially when using the create-react-app project.

This might sound too basic, but I've looked this mistake so many times in private production projects.

## TL&DR ... not really, this is a very small article

The create-react-app build command is not production ready, before publishing your project you should remove source-maps. However, this applies to any private web project, so, be careful and take a look at your production code maybe you are leaking the whole codebase.

Related issue: https://github.com/facebook/create-react-app/issues/2005
How to style navigations and center containers in CSS | Couple Code Therapy
Tags: podcast, beginners, webdev, css
Published: 2018-09-12 11:15:34

---
title: How to style navigations and center containers in CSS | Couple Code Therapy
published: true
cover_image: https://thepracticaldev.s3.amazonaws.com/i/t3bgbgrihsocegyur7rf.png
description: This is exciting, In Couple Code Therapy Episode Five My Lovely partner continue using CSS to improve her website look and feel
tags: 
    - podcast
    - beginners
    - webdev
    - css
---

Hey Friends!

This is exciting, In Couple Code Therapy [Episode Five](https://anchor.fm/couple-code-therapy/episodes/How-to-style-navigations-and-center-containers-in-CSS-e26q0d)

My Lovely partner continues using CSS to improve her website look and feel, We'll cover how to style navigations in a website and some layout techniques to center containers

Here's a preview of the progress
![Couple code therapy Website example](https://pbs.twimg.com/media/Dmwmtj0XcAAd-tt.jpg:large)

We'll cover :

- How to style navigations in CSS
- CSS layout techniques
- Make responsive containers


Check out the [show notes](https://couplecodetherapy.com/therapies/how-to-style-navigations-and-center-containers-in-css) for more details.

Please let us know how we can improve to better teach basic web development

#### About the show: 

Couple Code Therapy! A new twist on learning web development…Where our brave coding expert host, tries to teach his beautiful, lovely, intelligent, and immaculate wife how to update her own website.
It’s learning the basics of web development & coding – without being overwhelmed.
How satisfied are you with the code quality of your current project?
Tags: surviveasaprogrammer, codequality, survey, discuss
Published: 2018-09-12 11:12:06

---
title: How satisfied are you with the code quality of your current project?
published: true
description: Short survey regarding code quality
tags: surviveasaprogrammer, codequality, survey, discuss
---

Hi Everyone,

Since I'm always fighting for better code quality on the projects I'm working for I'm curious how satisfied are you with the code quality on the projects you are working for?
Writing personal blog posts vs writing posts on community sites?
Tags: discuss
Published: 2018-09-12 10:18:19

---
title: Writing personal blog posts vs writing posts on community sites?
published: true
tags: discuss
---

What are the biggest drawbacks and advantages of writing posts on your own blog vs writing posts on community sites such as dev.to or medium?

And what would you recommend people to do? Write in your own blog and a community site of your choice? Or just stick to community sites?
WHAT'S YANG AND NETCONF
Tags: explainlikeimfive, netconf, yang, networking
Published: 2018-09-12 09:35:25

---
title: WHAT'S YANG AND NETCONF 
published: true
description: 
tags: explainlikeimfive, netconf, yang, networking
---

What is NETCONF and what is YANG and what are they used for. I can't quite workout anything from the docs I tried reading.
Be careful what you wish for!
Tags: freelancer, ionic, thoughts, growth
Published: 2018-09-12 09:04:40

---
title: Be careful what you wish for!
published: true
description: be prepared to handle all the work
tags: #freelancer #ionic #thoughts #growth
cover_image: https://thepracticaldev.s3.amazonaws.com/i/uhw9mfcfqjz5dbwapbsb.jpg
---


In my first post i created a list of lets call them "*goals*" that i want to do to become an independent developer. In the post, i made a list of things that i should do to start my path to become an actual freelancer (i say my path because it does not apply to everyone). Almost a month has pass since then.

Out of the blue the company im working for ([argentinian company](http://www.sisorg.com.ar)) offered me 2 new projects; a russian company offered me an intership to become a native iOS developer; my [capoeira teacher](https://www.instagram.com/cuecacdo) offered me to start giving kids classes again (i was doing it in Argentina); we started the renovation of the appartment AND! my parents decided to come visit for the first time and for 3 weeks!

![](https://thepracticaldev.s3.amazonaws.com/i/yzsb6z34vse9qj6a24yk.jpg)

No, just kidding. I'm very exited about all this. I'm quite hyperactive dude and this come like a ring to my finger. Well.. maybe i'll preffer a little more space in between all of this tasks. But when the universe
gives you lemons.. you know! buy Cachaça and prepare some tasty [Caipirnhas](https://www.thespruceeats.com/caipirinha-recipe-759290)!

So, time to reorganize my goals:

**C.V. :** DONE! but i still need to look for some cool stylish design one online to steal. You know what they say: ["Good artists copy, great artists steal"](https://quoteinvestigator.com/2013/03/06/artists-steal/)
**Github:** Working on it !. I upload some code and ideas, but still need to work on it.
**Portfolio:** Its actually connected to my repo and my personal website so: Working ...
**Website:** idem.
**JS Frameworks:** Success! i managed to introduce some Vue.js code in our company software. A teeny-tiny piece of code, but its only the beginning!
**Programming languages:** here i detoured. Swift, its my new goal. And this includes using a Mac (i'm a windows user; third world problems 🤷‍♂️) and using xCode as a development interface (until now i only use it for the building process)
**Writing a blog:** well here i go again. I have had plenty of ideas on what to write about but they always occur while on the street and then .. puf .. i forget. But i will try to wright more often (at least every 2 weeks)
Ok. Enough! let start working!! 
See you all and bora treinar galera! 

P.S.: thanks for the comments on my last post. To realize that people actually read you it's an amazing feeling.
P.S.2: sorry for my english writting, i know its not the best but i'm working on it too!
How To Build Books Reading Habit In Busy Routines
Tags: discuss, help, productivity
Published: 2018-09-12 08:48:24

---
title: How To Build Books Reading Habit In Busy Routines
published: true
description: How to build Book Reading Habit despite being studying and doing a full-time job.
tags: discuss, help, productivity
---


How can we build a book reading habit? 

Everyone got routines, someone needs to manage his family, job and open-source work while someone needs to handle multiple projects besides job, open-source work, family and gym.

Talking about me, I'm doing Masters along with full-time job and handling my Visual Studio Code Settings Sync extension. 

I have to 

- Read research papers for my Thesis
- Do 8 hours of office work (Development)
- Find time, to improve my extension and response to multiple issues in gihtub.



The main objective is to get suggestions in building the habit of books to read.
I personally prefer self-help books are we can always read technical things while learning and doing work.

What daily routine do you follow and how u build a habit for book reading?
YT Podcaster
Tags: php, api
Published: 2018-09-11 12:24:49

---
title: YT Podcaster
published: true
description: From youtube to your podcast app.
tags: #php, #api
---

I’ve been looking for a tool that would convert YouTube videos to MP3 files so I could listen to the audio on my podcast player. There are a few MP3 converters, but they let you download files and none of them have the podcast feature.

Luckily, I’m a programmer. So I made one!

[YT Podcaster](https://github.com/mlichwa/YT-Podcaster)  is a YouTube to MP3 converter and a podcast feed generator written in PHP and based on the youtube-dl library. Right now, the interface is very minimal and consists of two API calls- convert and delete. YT Podcaster is a self-hosted app so its code needs to be hosted on your server and at this point it isn’t ready for a wider public.

There are lots of websites to convert YouTube videos into audio. Typically, you submit a URL, the conversion takes a few seconds and then you get another link to download the file. Well…what I was looking for is something that would take the URL of a YouTube video and serve it to my podcast player without additional clicks, downloads and uploads.

Of course, this app is not suitable for most YouTube videos. After all, people record videos (and not audio) for a reason. They want us to pay attention to the stuff they’re presenting as much as to what is being said. However, most of the YouTube channels I’m subscribed to are interviews or monologues where visuals aren’t necessary, so I don’t lose much anyway.

The tool I made is a server-side API and it requires a little bit of a back-end knowledge in order to install and configure the code. I don’t think it is a valuable solution for a non-technical users but it was a fun weekend exercise that makes me smile every time I convert a file and it shows up on my podcast player.

The code is available on [Github](https://github.com/mlichwa/YT-Podcaster). If you find this remotely useful, let me know! I’m curious to hear your thoughts.
I worked on MSN, Live, and Bing Search at Microsoft, Ask Me Anything!
Tags: ama, career, search, beginners
Published: 2018-09-12 08:16:36

---
title: I worked on MSN, Live, and Bing Search at Microsoft, Ask Me Anything!
title2: I worked on Microsoft Search (MSN, Live, and Bing), Ask Me Anything!
published: true
description: Nick Karnik is a Computer Scientist with a broad range of skills and experiences. If you are reading this AMA, Ask him ANYTHING!
tags: ama,career,search,beginners
cover_image2: https://thepracticaldev.s3.amazonaws.com/i/g5l0nfikbujutze2mos0.jpg
cover_image: https://thepracticaldev.s3.amazonaws.com/i/0i63iy8hqcrhym23qo24.jpg
---

I worked on ~16 different teams within Search. I built high-volume, low-latency, highly-available distributed systems that served ~12,000 requests/sec.

I built a Big-Data Validation Framework as a side-project which was one of the largest cross-team grass-roots projects in Bing and later a candidate for the Microsoft Engineering Excellence Award. 

I built a Machine Learning algorithm for Natural Language Processing to perform Sentiment Analysis and Attribute Extraction for reviews scraped across the web in the Computers & Electronics domain. It processed ~10,000 sentences/second.

I won a Hack-Day award at Bing on a prototype that optimized the creation of new services while maintaining the same level of performance as their predecessors in addition to reducing the time-to-market by several months.

Another Hack-Day project led to a patent in [Intelligent Intent Detection from Social Network Messages](https://patents.google.com/patent/US8918354B2/en).

Later, I worked on Exchange Server / Outlook (OWA & Outlook Mobile) as the Memory-Management & Performance expert.

#### If this AMA is helpful, ❤️ it and [follow me on Twitter](https://twitter.com/intent/follow?screen_name=theoutlander).

---
Free PHP, HTML, CSS, JavaScript IDE - Codelobster IDE
Tags: php, html, tool, webdev
Published: 2018-09-12 04:49:41

---
title: Free PHP, HTML, CSS, JavaScript IDE - Codelobster IDE
published: true
description: Free PHP, HTML, CSS, JavaScript IDE - Codelobster IDE
tags: #php #html #tool #webdev
---

Post Link : <a href="https://www.skptricks.com/2018/04/free-php-html-css-javascript-ide.html" >Free PHP, HTML, CSS, JavaScript IDE - Codelobster IDE</a>


Lets check out this Codelobster IDE. It may help you while doing coding activities for  PHP, HTML, CSS, JavaScript Languages and it may make your work bit faster.

Codelobster IDE has been a top of the line software tool to edit web languages for a long time now
and has a lot of fans. In this article, we will tell you everything you need to know in order to get
adequately familiarized with it.

<img src="https://4.bp.blogspot.com/-foWSR3yYASs/Wse-pGr4mHI/AAAAAAAABfA/KVHSoRhP2mUR9bdhxX_MJJHOBo9PNAT2gCLcBGAs/s640/1.gif" />

<a href="https://www.skptricks.com/2018/04/free-php-html-css-javascript-ide.html" >Read More...</a>
Case Sensitive WHERE Clause
Tags: sql, laravel, mysql
Published: 2018-09-12 03:05:53

---
title: Case Sensitive WHERE Clause
published: true
description: 
tags: SQL, Laravel, MySQL
---

Today I found a bug in my URL shortener app;

It didn't occur to me that the fields in a table aren't automatically case sensitive. This is a problem for my app because the auto-generated URLs uses base62 (A-Za-z0-9). "a1b2" will forward to the same link as "A1B1".

I learned that this is the expected behaviour for Laravel's default database collation. "UTF8_unicode_ci" isn't case sensitive. To change that, I can use "UTF8_bin" for the whole database. But that introduces another peculiarity to my database when it comes to ORDER BY.

So in this case, I prefer to keep the default charset/collation and just use "UTF8_bin" for one specific table.

To fix this behaviour. I've added these two lines to my migration:

```
$table->charset = 'utf8';
$table->collation = 'utf8_bin';
```

And now everything works as intended.

Alternatively, if you're using MySQL version 8+, you only need the following line:

```
$table->collation = 'utf8mb4_0900_as_cs'
```
The fine line between being lazy and challenging yourself
Tags: career, discuss
Published: 2018-09-12 01:43:01

---
title: The fine line between being lazy and challenging yourself
published: true
description: Am I brilliant or just plain lazy?
tags: career, discuss
cover_image: https://thepracticaldev.s3.amazonaws.com/i/deax2cnsz4atoyqcttpj.jpg
---

### I know I haven't been here in a while.

Development learning has taken a backseat since I have been given actual design assignments at work

-- and I know I am very good at design.

However, I can't help but feel but a twinge of shame knowing that perhaps I might not be challenging myself enough by not coding.

In contrast, however, I know I'm good at design, but I am not by all means an expert. I still want to improve my design skills.

My question is:

## How can you tell if you're simply taking the easy way out? Should I feel any shame for wanting to stick with what I'm good at?
Give me an idea that benefits people and I might build it
Tags: discuss
Published: 2018-09-12 01:39:03

---
title: Give me an idea that benefits people and I might build it
published: true
tags: discuss
---

I have some free time and a hunger to build something cool with web technologies that would benefit people and yet I seriously lack any decent idea that isn't already well executed. I'm not looking to make any money on this, but it would be nice if this something would cost little money to upkeep. Bring it on, people.
Is My Contact Form Going To Defer Potential Clients?
Tags: discuss, freelance, webdev, critique
Published: 2018-09-12 00:58:32

---
title: Is My Contact Form Going To Defer Potential Clients?
published: true
description: 
tags: discuss, freelance, webdev, critique
---

So I recently redid my portfolio, and one thing I did was setup a "Start a Project" form that asks some questions to give me a better idea about the person/company and their project ideas/budget. A thread I stumbled across was asking about "Contact form vs Email" on portfolio's and a large majority of the responses were for Email. 

Is my contact form going to deter potential clients, or is it a good filter to weed out the ones that don't want to value my time?

[Check it out »](https://harnerdesigns.com/contact-us/)

I'd love any feedback you have or suggestions to make the funnel more efficient.
Clever code
Tags: discuss, clever, coding
Published: 2018-09-11 22:35:20

---
title: Clever code
published: true
tags: discuss, clever, coding
---
Do you remember „clever code“ you wrote, to show off or because you thought it was cool, and it could have been way more simple?

I remember when learning C++, I loved the increment and assignment operators, so I wrote ridiculous lines like:

int c = (a=b) * d++
Tracking Mutual Fund in case the broker runs out of business
Tags: learn, brokers, mutualfundeduation, regularmutualfunds
Published: 2018-09-12 11:15:17

---
title: Tracking Mutual Fund in case the broker runs out of business
published: true
tags: Learn,brokers,Mutual Fund Eduation,Regular Mutual Funds
canonical_url: 
---

Investing in Mutual Funds through third-party mutual fund platforms will allot the investors the Regular schemes. One can verify this in the account statement for the presence of Advisor that matches the name of the company through which you have invested into the Mutual Fund. It is rather daunting for many budding investors that what […]

The post [Tracking Mutual Fund in case the broker runs out of business](http://mfrepublic.com/tracking-mutual-fund-in-case-the-broker-runs-out-of-business/) appeared first on [Mutual Fund Republic](http://mfrepublic.com).
Setting Up a Component Library with React and Storybook
Tags: javascript, react, storybook, frontend
Published: 2018-09-11 21:42:39

---
title: Setting Up a Component Library with React and Storybook
published: true
description: Learn how to set up a component library with React and Storybook to create modular and reusable components that can be shared across projects.
tags: #javascript #reactjs #storybook #frontend
canonical_url: https://auth0.com/blog/setting-up-a-component-library-with-react-and-storybook/
---

In this post, we are going to explore how to organize a basic project, how to implement a style guide to help us achieve consistent branding, and how to build the foundation of a component library to make our components reusable and easy to maintain.

[Read on ⚛️📘](https://auth0.com/blog/setting-up-a-component-library-with-react-and-storybook/?utm_source=dev&utm_medium=sc&utm_campaign=aueng_react_storybook)

![Setting Up a Component Library with React and Storybook](https://thepracticaldev.s3.amazonaws.com/i/c6xi9221ixyxj96z19nm.png)
How to test methods in Go
Tags: go, beginners, help
Published: 2018-09-11 21:31:31

---
title: How to test methods in Go
published: true
description: Need help with testing a method I implemented so that my custom type implements a built-in interface.
tags: go, beginners, help
---
Hello, last week I've started learning Golang. Following the [Tour of Go](https://tour.golang.org/methods/20) I've implemented a function to calculate square root of a given float64 number.

```go
import "fmt"

type ErrNegativeSqrt float64

func (e ErrNegativeSqrt) Error() string {
	return fmt.Sprintf("cannot Sqrt negative number: %g\n", float64(e))
}

// Sqrt calculates the square root of a number.
// If given negative number it returns an error.
func Sqrt(x float64) (float64, error) {
	if x < 0 {
		return 0, ErrNegativeSqrt(x)
	} else {
		z := float64(x)
		for i := 0; i < 100; i++ {
			z -= (z*z - x) / (2 * z)
		}
		return z, nil
	}
}
```

To test if it's working as expected I've wrote this test:
```go

import (
	"math"
	"testing"
)

func TestSqrt(t *testing.T) {
	var tests = map[float64]float64{
		3:  math.Sqrt(3),
		2:  math.Sqrt(2),
		1:  math.Sqrt(1),
		0:  math.Sqrt(0),
		4:  math.Sqrt(4),
		5:  math.Sqrt(5),
		-5: 0,
		-1: 0,
	}
	precision := 0.00000001

	for key, expectedVal := range tests {
		val, _ := Sqrt(key)
		if val < expectedVal-precision || val > expectedVal+precision {
			t.Error(
				"For", key,
				"expected", expectedVal,
				"got", val,
			)
		}
	}
}
```

My question is *How do I write a test for the `Error` method of `ErrNegativeSqrt` type* which I wrote so that `ErrNegativeSqrt` can implement the `error` interface?

Thanks in advance. ❤️


### PS. This is my first dev.to post! 🙌

PPS. Feel free to checkout my repo {% github radlinskii/go-playground %}
Thoughts regarding an app that'll aggregate and display #devdiscuss discussions?
Tags: discuss, twitter
Published: 2018-09-11 21:27:51

---
title: Thoughts regarding an app that'll aggregate and display #devdiscuss discussions?
published: true
description: Would it make sense to have a platform that displays stuff discussed during #devdiscuss?
tags: devdiscuss, twitter
---

I've been thinking about ways which would make it easier for folks not on UTC-4 to catch up on things discussed during [#devdiscuss](https://twitter.com/hashtag/devdiscuss) on Twitter. Personally, I miss out on the discussions most times because I'm on UTC+1 and it's usually around 2am when [#devdiscuss](https://twitter.com/hashtag/devdiscuss) happens.

So, I was hoping to get suggestions regarding what the community thinks about having a platform that aggregates the discussions and, maybe even show past topics (for as far as the Twitter API permits).

Do you think this would be better than searching the hashtag on Twitter and just reading discussions around topics there?
The Cable TV Deals - Your Trusted Partner to Find the Right Home Services
Tags: thecabletvdeals, cabletvproviders, cabletv
Published: 2018-09-11 20:24:44

---
title: The Cable TV Deals - Your Trusted Partner to Find the Right Home Services
published: True
description: We have an array of bundle offers that include HD TV service, high speed internet and lowest rates for national and international calling for your home phone.
tags: #thecabletvdeals #cabletvproviders #cabletv
---
Get a list of all of your GitHub repositories
Tags: github, jq, curl
Published: 2018-09-11 20:13:24

---
title: Get a list of all of your GitHub repositories
published: true
description: As the title says
tags: github, jq, curl
---

*My posts are usually notes and reference materials for myself, which I publish here with the hope that others might find them useful.*

Requires the `jq` command-line JSON processor utility, here called using `npx`.

Replace `<username>` with your GitHub username and be prepared to enter your GitHub password on the command line.

If you have more than 100 repositories, you'll need to run this command several times, editing the `page=?` parameter each time.

```bash
curl --silent --user "<username>" "https://api.github.com/user/repos?page=1&per_page=100" | npx jq '.[].ssh_url' | while read repo
do
    repo="${repo%\"}"
    repo="${repo#\"}"
    echo "$repo"
done
```

This nonsense `repo="${repo%\"}"` strips the leading and trailing double-quotes `"` from the line.

If you want the `git://` or `https://` schemes instead of SSH, then in the `jq` query, replace `ssh_url` with `git_url` or `clone_url`.

To save the output to a text file, append a redirect to the end, as in:

```bash
   ...
   echo "$repo"
done > output.txt
```