teleren/devto huggingface dataset:
Never run a migration again using PHPs Composer
Tags: php, composer, automation
Published: 2018-01-10 05:52:54

---
title: Never run a migration again using PHPs Composer
published: true
description: With composer running migration commands is a thing of the past.
tags: php, composer, automation
---

Every get tired of running database migrations after updating your application? Let composer do it for you! In this example we will use Yii2's migration command as an example:

```
{
  "name": "Application Name",
  "description": "Some desciption text",
  ...
  "scripts": {
    "post-install-cmd": [
      "php console/yii app/setup --interactive=0"
    ],
    "post-update-cmd": [
      "php console/yii app/setup --interactive=0"
    ]
  }
}
```

If you write your migrations in an atomic fashion (once changed, do not over write) the migration can be run over and over without causing errors. You can even run multiple commands after a composer action via the command hooks.
npm tips/tricks
Tags: discuss, npm, node, javascript
Published: 2018-01-10 03:44:30

---
title: npm tips/tricks
published: true
description: Discussion of npm tips/tricks.
tags: discuss, npm, node, javascript
canonical_url: https://www.iamdeveloper.com/posts/npm-tipstricks-10ea/
series: all things npm
---

I almost never install packages globally unless it’s something like yarn or yeoman. When you’re in the root of your Node/JS project, if you want to run something like mocha without an npm script, you’d do `./node_modules/.bin/mocha`.

What I do to be able to just run e.g. `mocha` is I add `./node_modules/.bin` to my path in my shell’s profile/config file and whenever I’m in any of my Node/JS projects, I can just run e.g. `mocha`.

Have any npm tips/tricks you want to share?
How to document the learning on Internship? 
Tags: discuss
Published: 2018-01-10 03:37:37

---
title: How to document the learning on Internship? 
published: true
tags: discuss
---

I am a Data Engineering Intern at a startup in India. I am learning new things every day because of switching teams back n forth. How to document these learning day to day or week to week so that I will remember these stuffs after a year or two? Any ideas will help a lot :D
Introduction to the CSS :not selector
Tags: css, beginners
Published: 2018-01-10 00:46:16

---
title: Introduction to the CSS :not selector
published: true
description: Here is a quick introduction to one of my favorite selectors in CSS, the :not selector. This helps reduce the amount of times you have to undo CSS declarations in your codebase.
tags: css, beginner
---

{% youtube RMVNySfb1-s %}

Here is a quick introduction to one of my favorite selectors in CSS, the :not selector. This helps reduce the amount of times you have to undo CSS declarations in your codebase.
What was the first project you completed on your own? (And felt proud of)
Tags: discuss
Published: 2018-01-09 21:03:15

---
title: What was the first project you completed on your own? (And felt proud of)
published: true
description: 
tags: discuss
---

As a student, I don't have a ton of time for personal projects, but I've worked on a few very small pieces. I'm about halfway through a text-based adventure game myself, and it will probably be my first real project.  

I'm curious as to what your first project was, and were you proud of it? Are you still proud of it?
Is Perl still used ?
Tags: perl, discuss
Published: 2018-01-09 20:54:04

---
title: Is Perl still used ?
published: true
description: 
tags: perl,discuss
---

When I started as a junior sysadmin with zero scripting skills. I inherented many perl scripts that I just used for operational tasks.
Some of our monolithic apps are still running on perl. But nobody touches these servers as the dev talent pool has cycled and anyone with perl knowledge is gone. I attempted to learn perl I did manage to write a script to emulate a user logon to one of our apps but just couldnt grow to love it, finding solice in python and bash instead.
I never heard or read much discusssion about perl so is there many people here actively using it and for what ?
Why I'm Excited About Serverless
Tags: serverless, aws
Published: 2018-01-09 18:22:11

---
title: Why I'm Excited About Serverless
published: true
description: I have a few practical reasons for mixing in some functions as a service.
tags: serverless, aws
cover_image: https://thepracticaldev.s3.amazonaws.com/i/tdosvvphdbro1j31c81m.png
---

I've been passing this great tutorial around lately:

{% link https://dev.to/dangolant/creating-serverless-functions-with-python-and-aws-lambda-dli %}

The article didn't present me with the aha moment in and of itself, it's just a really easy-to-follow tutorial about getting up and running with a few key tools in the "serverless" game. Following it through took about 15 minutes and only requires basic dev tooling prerequisite knowledge, but it gave me some really good hands on appreciation for some benefits I hadn't given much consideration.

There are plenty of potential benefits of "serverless architecture" as a means of organizing and scaling code efficiently and cost effectively and potentially reducing complexity in a lot of cases. But I'm not terribly motivated to solve problems I don't have. I have a few practical reasons for mixing in some functions as a service. That was my motivation for exploring this area, but that was not really the source of my aha moment.

## The aha moment is that I wrote Python code!

I know how to write Python, more or less. But I'd never done it. I've never had to write it, so my experience in Python has been installing some pip packages for tooling purposes. I wouldn't know where to start with getting my environment set up to execute Python for any practical reason.

But with Lambda/Serverless Framework I only had to write an algorithm and I had production-ready code. This really emboldens me to learn more programming languages. The unified interface of functions as a service means that the programming language chosen is an implementation detail. It would _never_ be that way if we had to maintain our own environments. I am not intending to deploy services written in code I barely understand, but often the code logic is only a small piece of the puzzle.

I feel incredibly liberated with this technology in my tool belt. There are _so many things_ that are not replaced. Tuning, scaling, and maintenance of technology stacks cannot responsibly be taken away and as far as I can see, there are only a few areas where serverless functions belong in any of the code I am working on. I am still very happy in the developer experience associated with spinning these up and it is an area I want to explore further.

I'm not sure how I feel about the complexity gotchas and/or performance hits associated with trying to do too much with these functions. Use the right tools for the job. I'm still very personally excited about serverless when the right opportunities arise and for personal experiential development.
In Windows (10), where are the explorer folder icon settings located?
Tags: windows, help
Published: 2018-01-09 18:03:22

---
title: In Windows (10), where are the explorer folder icon settings located?
published: true
description: Windows allows you to set a custom icon for shortcuts and folders but where are these settings defined?
tags: windows, help
---

Hi. Some of my folders have a custom .ico file as their thumbnail. (right click, properties, customize)

Where exactly are these settings located?  Are they in the registry?

_When I rename a folder, I have to set the icon again so I guess the full path is stored somewhere._
The Complete Guide To Deploying JavaScript Applications - Part 1: Database, and API Deployment
Tags: javascript, googlecloud, azure, netlify
Published: 2018-01-09 17:29:07

---
title: "The Complete Guide To Deploying JavaScript Applications - Part 1: Database, and API Deployment"
published: true
description: Learn how to deploy JavaScript applications on different platforms.
tags: #javascript #googlecloud #azure #netlify
canonical_url: https://auth0.com/blog/the-complete-guide-to-deploying-javascript-applications-part-1/
---

Atwood's law states that Any application that can be written in JavaScript, will eventually be written in JavaScript. In 2018, eleven years after this law was proposed, JavaScript is now the most popular language in the world. In this tutorial, we'll show you how to deploy your JavaScript applications to different cloud platforms such as Google Cloud, Microsoft Azure, Netlify, and others.

[Read on ☁️🚀](https://auth0.com/blog/the-complete-guide-to-deploying-javascript-applications-part-1/?utm_source=dev&utm_medium=sc&utm_campaign=deploying_javascript)

![Deploying JavaScript Apps](https://thepracticaldev.s3.amazonaws.com/i/v5k8nhd5l7t2jlf5gruv.png)
Monolithic, Automated or Transitioning
Tags: discuss, devops, sysadmin, infrastructure
Published: 2018-01-09 17:27:42

---
title: Monolithic, Automated or Transitioning
published: true
description: 
tags: Discuss,Devops,sysadmin,infrastructure 
---

I am just curious to understand the state of Automation adoption in IT Sector.

I know Automation is a broad term to use so lets just use this scope.

Automated = Automated provisioning of servers (Infrastructure as code ) with CI/CD pipelines in place.

Monolithic = Manual server provisioning & Manual app deployment.

Transitioning = Open project to deliver automation of provisioning and deployment tools and pipelines (Openstack Chef Jenkins etc...)

To start I am currently in the Transitioning Phase.
Can I help you?
Tags: career
Published: 2018-01-09 15:25:26

---
title: Can I help you?
published: true
description: After a couple of weeks off of work, I am excited to be back and building again. One of my goals of 2018 is to help give back more. ​I am looking to help an underrepresented beginner front-end developer get started in the industry somehow.
tags: career
---

{% twitter 950162170335125515 %}

After a couple of weeks off of work, I am excited to be back and building again. One of my goals of 2018 is to help give back more. I am looking to help an underrepresented beginner front-end developer get started in the industry somehow. I am thinking I could help this person get started with building a simple portfolio site, get started on github, make their first pull request, or make any connections I can for them.

I am thinking of a weekly one-on-one for up to a months time. I think that could be enough time to help up and running to hopefully secure a job in some way.

Are you this person or know of someone who could need some help in this way? I would love to hear from you! Feel free to get in contact with me or leave a comment below.
Android custom progress bar
Tags: android, progress, java
Published: 2018-01-09 14:35:32

---
title: Android custom progress bar
published: true
description: help need to create a progress bar
tags: #android #progress #java
---


Hello every one,

Any help will be appreciated!

I am trying to create smth like this: https://thepracticaldev.s3.amazonaws.com/i/u7ch7cc6fdm0xt2s5g46.png

I mean the progress bar on the top! So far I did the image with the white shape as drawable, the challenging thing is that I have no idea how this can be used in progress bar as shown in the picture!

Any ideas are acceptable!
P.S. this may be used in old version android like KitKat o:) 


Thank you in advance
Reduce website bounce rates using 404 error page.
Tags: development, webdesign, nocode
Published: 2018-01-09 14:02:23

---
title: Reduce website bounce rates using 404 error page.
published: true
description: 
tags: development, web design, no-code, 
---
Learn why your 404 page is important and [how to make it brilliant](https://blog.zeroqode.com/reduce-website-bounce-rates-using-404-error-page-93dcbea6d3b2).
Bash Script Step By Step for beginners
Tags: linux, beginners, opensource, bash
Published: 2018-01-09 13:46:23

---
title: Bash Script Step By Step for beginners
published: true
description: 
tags: #linux #beginners #opensource #bash
---
In a previous post, we saw how to use the bash shell and how to use Linux commands https://likegeeks.com/main-linux-commands-easy-guide/.

The concept of a bash script is to run a series of Commands to get your job done.

1 Bash Script Shebang
2 Set Script Permission
3 Print Messages
4 Using Variables
4.1 Environment Variables
4.2 User Variables
5 Command Substitution
6 Math calculation
7 if-then statement
8 if-then-else Statement
9 Numeric Comparisons
10 String Comparisons
11 File Comparisons

https://likegeeks.com/bash-script-easy-guide/

Thanks in advance.
Structuring my Node.js RESTful API using Express
Tags: help, javascript, beginners, rest
Published: 2018-01-09 13:35:01

---
title: Structuring my Node.js RESTful API using Express
published: true
description: 
tags: help, javascript, beginners, rest
---

Hello everyone, just a little intro. I just started learning Node.js a few weeks ago. I came from a PHP background and I have been using it for around 2-3 years professionally.

I understand that Express.js offers freedom in structuring your application, but I need recommendations on how one usually structures their application (RESTful API) assuming that it will scale in the future.

My current directory structure is as follows:

    - config
    - controllers
    - models
    - routes
      - api
    - app.js

I mostly followed [this repo](https://github.com/gothinkster/node-express-realworld-example-app/) as my inspiration. However, [wearehive/project-guidelines](https://github.com/wearehive/project-guidelines#6-structure-and-naming) stated that this structure is bad. I want to refactor my code to be able to follow it because personally, it makes much more sense if my project scales; my project will be seperated by *features* and not *roles*. But how do you even group these features?

I used Express.js because it's the most popular one and it's like everybody knows it or studied it first. I am open to other frameworks but will it be practical for a beginner like me to use, for instance, Restify or any other framework than starting out with Express.js?

Also, here are my dependencies so you can have an idea of the stack I'm using.

```javascript
  "dependencies": {
    "bcrypt-nodejs": "0.0.3",
    "dotenv": "^4.0.0",
    "express": "^4.16.2",
    "jsonwebtoken": "^8.1.0",
    "mongoose": "^4.13.7",
    "mongoose-unique-validator": "^1.0.6",
    "nodemailer": "^4.4.1",
    "passport": "^0.4.0",
    "passport-jwt": "^3.0.1"
  }
```    

P.S.: Are there also recommendations on how you structure your app for versioning?

How do you usually structure a RESTful API?
Job offers: Don't get lost along the way
Tags: career, advice, tips
Published: 2018-01-09 06:47:54

---
title: "Job offers: Don't get lost along the way"
published: true
description: Don't forget the most important pieces of information in your job offer.
tags: career,advice,tips
canonical_url: https://www.einenlum.com/articles/job-offers-dont-get-lost
---

Dear potential employers,

I know your company is dealing with urgent issues. I know the market is quite rough at the moment. I know good developers have now high and diverse expectations: keeping track of these must not be easy.

It seems like for some of you, free coffee or free candies are a must have. Available Nerf guns in the office are maybe the line in your job offer that will make your company stand out from the others.

Maybe you're right. Maybe I totally underestimate this kind of features. But one thing that matters to me and that you **often forget, is the technical stack** you want me to deal with.

I'm not kidding. **Some offers don't even mention one programming language**. You could think it's an exception and that I chose only small and dubious companies. You would be wrong.

Here is a [job offer](https://boards.greenhouse.io/reddit/jobs/655395?t=onmjps1#.WlRYj_ZG2Hs) to work at Reddit.

![A job offer to work for Reddit](https://thepracticaldev.s3.amazonaws.com/i/aagddeldcoeem2ssofas.png)

It seems all they want is *clean, maintainable, and well-tested code*. You should know what it means, you, little *Backend* developer. Does it include Node? Python? Ruby? Rust? PHP? Go? No one will know. I hope you are working to be familiar *with the whole web stack*.
Consider the list of all the things we know about this offer.

* Pet Care Stipend
* Monthly Cell Phone Allowance
* Catered Meals & Snacks

It's great to know this. But I have the feeling that the authors got lost along the way. Please, next time, try not to forget to mention a few more details about the work I will be doing for you.  Write it down even at the very top of your job offer. It will save time to anyone.
Image Recognition in Go using TensorFlow
Tags: go, tensorflow, machinelearning
Published: 2018-01-09 00:13:10

---
title: Image Recognition in Go using TensorFlow
published: true
description: Tensorflow is computation library that represents computations with graphs. Its core is implemented in C++ and there are also bindings for different languages, including Go.
tags: go, tensorflow, machine learning
---
![IRiGuTF](http://pliutau.com/IRiGuTF.jpg)

Tensorflow is computation library that represents computations with graphs. Its core is implemented in C++ and there are also bindings for different languages, including Go.

In the last few years the field of machine learning has made tremendous progress on addressing the difficult problem of image recognition.

One of the challenges with machine learning is figuring out how to deploy trained models into production environments. After training your model, you can "freeze" it and export it to be used in a production environment.

For some common-use-cases we're beginning to see organizations sharing their trained models, you can find some in the [TensorFlow Models repo](https://github.com/tensorflow/models).

In this video we'll use one of them, called [Inception](https://github.com/tensorflow/models/tree/master/research/inception/inception) to recognize an image.

We'll build a small command line application that takes URL to an image as input and outputs labels in order.

[Video: Image Recognition in Go using TensorFlow](https://youtu.be/P8MZ1Z2LHrw)
What have been your biggest learning curves as developers? #discuss
Tags: development, programmers, learning, discuss
Published: 2018-01-08 23:53:13

---
title: What have been your biggest learning curves as developers?  #discuss
published: true
description: What have been your biggest learning curves as developers?
tags: development, programmers, learning, discuss 
---

There are so many areas in Computer Science and the technologies that make up this vast sector can range from basic to outlandishly complex and difficult.

The web, for example, encapsulates just one area of the industry, yet in itself has an immeasurable amount of languages, frameworks, tools etc. I'm sure the typical web developer could rattle off 20-30 off the top of their head.

But, each and every concept/language/technology/tool required some form of learning to begin to us - whether basic or otherwise.

Tough learning curves can be occur for a number of reasons. Perhaps that language had poor or non-existent documentation; perhaps it was difficult to find support online or from peers for that tool; perhaps that technology required context from another technology to learn it effectively?

Whatever the reason and whatever the concept/language/technology tool, it is very interesting, and often surprising, to discover what people in the industry have found to be the steepest learning curves, and why this was the case.

And, perhaps by addressing and discussing some of the learning curves faced, we can begin to find solutions to the issues for future generations of developers.

So, what have been your biggest learning curves, and why?
Changelog: Bookmarks!
Tags: meta, changelog
Published: 2018-01-08 23:18:34

---
title: "Changelog: Bookmarks!"
published: true
description: This has been in high demand and it's now available.
tags: meta, changelog
---

This has been in high demand and it's now available.

You can now bookmark posts. If you see something you like, tap the bookmark icon and it will be sent to [Your reading list](/readinglist).

We also modified the left-hand tag navigation on the home page. It now shows all the tags you follow first and you can scroll down to see more. This is a change that puts the content you are interested in closer to the top. It also includes a bit of a redesign.

We'll follow this up with some polish and additional features here and there once we get a feel for the new features in production . One follow-along feature will likely be to have posts from your reading list periodically cycle in to your main feed so you get caught up with stuff you meant to read in the past.

Happy coding ❤️
What are the best options for creating a community?
Tags: discuss, communities, alternatives
Published: 2018-01-08 22:07:49

---
title: What are the best options for creating a community?
published: true
description: I want to create a community, but what are the options?
tags: discuss, communities, alternatives
---

I'm trying to build a community where teenagers who code can share their experiences, collaborate and help each other.

For me, the best alternative it's a forum, and I've researched into Discourse, Flarum, etc. but I'm curious to see what other alternatives are out there.

I don't want to use Slack or Discoud, because in a "linear discussion" help requests and opinions are often lost in the middle of a conversation.

What other options are out there for communities?

PS: Yeah, I know building a community is very hard, but that's another discussion :)
Were you born to be a developer?
Tags: discuss
Published: 2018-01-08 21:03:36

---
title: Were you born to be a developer?
published: true
tags: #discuss
cover_image: https://images.fineartamerica.com/images-medium-large-5/sea-at-sunset-sky-is-in-beautiful-dramatic-color-ulrich-schade.jpg
---

This question has been floating around in my head for a while. I know I wasn't, I'm the kind of guy that likes to try _everything_, I'm just genuinely curious about lots of things and I feel like I am at least decent at them.

### Is there any of you who has been coding since you were little?

### If so, do you feel like you are "ahead" of your colleagues because of it?
Changelog: Onboarding New Community Members
Tags: changelog, meta
Published: 2018-01-08 20:43:20

---
title: "Changelog: Onboarding New Community Members"
published: true
description: New dev.to members are now greeted with a series of welcome slides explaining how to customize their DEV feed. 
tags: changelog, meta
---

We've been wanting to create a more welcoming experience for new community members and make sure everyone is aware of some key dev.to features. For example, not everyone knows that following a tag actually customizes their dev.to home feed with more relevant content. This is particularly useful for surfacing more niche programming topics directly onto your feed.

We'll continuously improve new member onboarding as the site evolves, but here's what the first iteration looks like:

**1. Quick Overview**
![welcome slide](https://thepracticaldev.s3.amazonaws.com/i/5c37ha3r24klr99eckee.png)

**2. Shows popular tags**
![follow tags slide](https://thepracticaldev.s3.amazonaws.com/i/45l2np4huqboxyptuvah.png)

**3. Encourages new members to get involved**
![get involved slide](https://thepracticaldev.s3.amazonaws.com/i/0w40hce0a646y8db7l7m.png)

Next up: including a slide that lets people follow their twitter friends and/or popular dev.to writers from the topics they care about.