teleren/devto huggingface dataset:
Day 1: Booting Up My React.js
Tags: react, javascript, 301daysofcode, freecodecamp
Published: 2019-01-05 14:46:45

> "The key to being a successful programmer is to learn how to learn."
> _- Shannon Burns_

As technologies get updated everyday and as new technologies emerge, as curious as we are of a developer, we couldn't help but get intrigued by what these stuff have to offer. Everything seems so fast that you get swallowed by tons of great new technologies while you're at it. The virtual world is a fast-paced place to be in.

If you were able to read the first part of my series on my journey on the #301DaysOfCode, {% link iamjoross/day-0-planning-phase-4jkn %}I spent the first day figuring out the path Im taking as a developer to work and hone on. I spent hours thinking what my strengths and weaknesses are as a software developer. I listed down my skills and rated them honestly. After 2 grueling hours, I still was not able to figure things out. 

Feeling defeated, I opened my Youtube and the first video that popped out was freeCodeCamp's **Learn React.js - Full Course for Beginners Tutorial.**

{% youtube DLX62G4lc44 %}

It was a great way to start my #301DaysofCode. As of this writing, I am about to finish the video tutorial and will definitely post my thoughts on what I learned. In addition, with every readings that I go through, I will be developing a mini capstone for each one.

If you have any links of where I could get some great tutorials for React.js, please do so comment down below. I'm also asking for your suggestions what I could develop using React.js as a beginner's project.
Deploy to Kubernetes with Github Actions
Tags: kubernetes, githubactions, cd
Published: 2019-04-02 10:30:05

---
title: Deploy to Kubernetes with Github Actions
published: true
tags: Kubernetes, Github Actions, CD
canonical_url: https://blog.merzlabs.com/posts/github-actions-kubernetes/
---

# Deploy to Kubernetes with Github Actions v0

Github Actions is now in limited public beta and while trying it out for deploying to Kubernetes, I built this workflow:

{% gist https://gist.github.com/NiklasMerz/1e55dd050a2b755c1c7db1754c32a134 %}


**Lets go through it.** This is workflow is based on the [gcloud example action](https://github.com/actions/example-gcloud) with my first own action which notifies me on Slack when the workflow is finished.

The first step is building my Dockerfile, [I mentioned earlier](https://blog.merzlabs.com/posts/docker-go) and simultaneously logging into Google Cloud. I am running my Kubernetes Cluster on Google Cloud and using the Google Cloud Container Registry for my images. The image then gets tagged with the convenient [tag action](https://github.com/actions/docker/tree/master/tag) and pushed to the registry. Now I have image tagged with the branchname, short Git hash and the latest tag available.

The `deploy to GKE` action now uses the tag with the Git SHA and replaces the placeholders in my deployment file and applies it to the cluster.

After that the deployment gets verified and a Slack hook gets triggered to notify about the end of the workflow. The Slack hook is just a curl command to the URL I got from the Slack integration “Incomming webhooks”.
Gatsby and WordPress: Netlify or Die!
Tags: wordpress, gatsby
Published: 2019-01-05 10:12:48

---
title: Gatsby and WordPress: Netlify or Die!
published: true
tags: wordpress, gatsby
canonical_url: https://booyaa.wtf/2019/gatsby-wordpress-netlify
cover_image: https://thepracticaldev.s3.amazonaws.com/i/5lxrq1yrytz87k7lg8t0.png
series: Gatsby x WordPress
---
_Photo by Billy Huynh on [Unsplash](https://unsplash.com/photos/saS98jKhVjA)_
We’re done with our new site, it’s time to setup Netlify.

- Install `gatsby-cli` in your repo (netlify needs it to build your site): `npm install --save gatsby-cli`
- Get your node version `node -v` and stick it in `.nvmrc` to pin netlify to the version you used to build the site (note: don’t include the `v` in version number i.e. `v11.3.0` becomes  `11.3.0`
- Complete netlify setup up to step 5, but don’t hit deploy: [A Step-by-Step Guide: Gatsby on Netlify | Netlify](https://www.netlify.com/blog/2016/02/24/a-step-by-step-guide-gatsby-on-netlify/#connecting-to-netlify)
- Expand `advanced build settings`

![Advanced in Netlify](https://booyaa.wtf/img/gxw-netlify-1.png)

Remember those environmental variables we set up on `gatsby-config.js`? It’s time add them up in Netlify.

![Environment Variables in Netlify](https://booyaa.wtf/img/gxw-netlify-2.png)

Let’s the click *deploy* button to publish the site. If there were any errors, check out the logs in the Deploys section of your Netlify site.

_To go to the next part of the series, click on the grey dot below which is next to the current marker (the black dot)._
Don't Give Up. Keep Iterating
Tags: pondering, reflection, inspiration
Published: 2019-01-05 12:42:10

---
title: "Don't Give Up. Keep Iterating"
published: true
description: Thoughts of the power of consistent iteration over time
tags: [pondering,reflection,inspiration]
canonical_url: https://www.barbarianmeetscoding.com/blog/2019/01/03/dont-give-up-keep-iterating
cover_image: https://thepracticaldev.s3.amazonaws.com/i/m3jln6jcwlyd7756lsxd.jpg
---

*This article was originally posted in [barbarianmeetscoding.com](https://www.barbarianmeetscoding.com/blog/2019/01/03/dont-give-up-keep-iterating). [Photo by José Alejandro Cuffia on Unsplash](https://unsplash.com/photos/_4815u_ACqQ).*

**Don't give up. Keep Iterating.**

Every single time that I work on any creative endeavor the same process will unfold:

1.  I get this idea about something that I could build, write, draw, do and I become incredibly excited and brimming with enthusiasm.
2.  I build up the idea in my head into something awesome. A delightful and beautiful masterpiece. I envision how cool it'll be when I finish it.
3.  I create the first version and, invariably, **it sucks**.
4.  Boom! Humongous Anticlimax. I get stressed, frustrated and/or slightly depressed depending of the day. I question my skill, value and worth: *If this sucks then I must suck as well*.
5.  Now I have choice. I can remain in this pit of despair, I can give up, or I can get my shit together and keep iterating.
6.  Invariably again, consistent iteration will result in something much, much better. And sometimes, even **something remarkable**.

**So don't give up just yet. Iterate**. That piece of ugly and amorphous stone you have right there might just turn into a beautiful shiny diamond.


**Update 6th January**: [Dan just shared this on twitter](https://twitter.com/dansays/status/1081898586277888000). So much more awesome than this article! :D

{% twitter 1081898586277888000 %}
Run migrations in schemas in PostgreSQL
Tags: postgres, sql, tutorial
Published: 2019-01-05 09:37:28

---
title: Run migrations in schemas in PostgreSQL
published: true
description: 
tags: postgres,sql,tutorial
---

Hy everyone,

This post is a continuation from that [link](https://dev.to/renatosuero/clone-schema-in-postgresql-4fpc).
Now we have schemas, but how can we create a new table in the schemas?

I've been using a function to handle migrations in the schemas, it can be used for anything. create table,changes in the table, triggers,functions,index,etc...

Ok, that is the function you need to run in your database.
{% gist https://gist.github.com/renatosuero/40ad1b6515b1a8df9cfc96d970402ee0 %}

After that, you only need to run 
```
select migrate_schema('your code')
```
In my case,
```
select migrate_schema('CREATE TABLE DEPARTMENT(
   ID INT PRIMARY KEY      NOT NULL,
   DEPT           CHAR(50) NOT NULL,
   EMP_ID         INT      NOT NULL
);');
```

> A tip, you can ignore schemas, take a look in the function. In line 13 I ignore the public schema and in line 11 I ignore schemas that begin with pg_

---

Another thing, I've been using the [goose](https://github.com/pressly/goose) to handle my migrations. I planned to write about that, but fortunately, the [Sho Minagawa ](https://dev.to/msh5) wrote a great [post](https://dev.to/msh5/start-db-schema-migration-with-goose-bhg).
We need to run more complex statements (PL/pgSQL). So, If you decide to use the tool, remember to add these lines in the migration code:

-- +goose StatementBegin
/// your statement here
-- +goose StatementEnd

When we use schemas, the goose looks for its migrations table within the schema. In my case, I want to keep my migrations table in the public schema, so I forked the project and change the instruction to check the table only in the public schema. Right now I have no plan to send a merge request, to the project, maybe it can be useful only to me. In this case, use my [fork](https://github.com/renatosuero/goose).

that's all folks.
Clone schema in PostgreSQL
Tags: postgres, sql, tutorial
Published: 2019-01-05 08:45:44

---
title: Clone schema in PostgreSQL
published: true
cover_image: https://cdn-images-1.medium.com/max/2000/1*AbdeAwXHGpIoBuJvLJ38lQ.jpeg
description: A tutorial to show how we can clone schemas in PostgreSQL
tags: postgresql,sql,tutorial
---

Hi everyone,

My goal is to keep the post short, so If you don't know what is schema access this [link](https://www.postgresql.org/docs/11/ddl-schemas.html).

Schemas can be useful to clients, maybe a schema by the client or schema by "category". In my job(our business is based in soccer) we use schemas by championship and year.
A sample :
ucl_2018
ucl_2017
championship *that's the model

Ok, now we need to create a new schema ucl_2019, right?

I researched and after some time, I found a function to help me, but I needed to do changes. I didn't remember exactly what I needed to do, so I decided to share the function I've been using. Another thing this function will create everything indexes, keys, foreign keys, etc...

Ok, that is the function you need to run in your database.
{% gist https://gist.github.com/renatosuero/8ce67369b7c1b9eb033eb80195333537 %}
 
After that, you only need to run 
```
select clone_schema('source','destination')
```
In my case,
```
select clone_schema('championship','ucl_2019');
```
I hope it can be useful to you. I love PostgreSQL, so I want to write more about other features I like or I think that can be useful.
~~My new post will be a sequence for that, I'll show how to update the schemas, running migrations in the schemas.~~ I wrote the [post](https://dev.to/renatosuero/run-migrations-in-schemas-in-postgresql-306o)
You hated it and then you love it.
Tags: discuss, career, javascript, webdev
Published: 2019-01-05 08:43:31

---
title: You hated it and then you love it.
published: true
description: 
tags: #discuss #career #javascript #webdev
---
It's not about the new year, it's about my 2018 revelation. I'm a selftaught devop, then engineer at college and now i am a selftaught again. I had always hated the frontend, it always had been a pain for me... and then BOOM, `react` and `angular` came to me few months ago, like a tsunami they erased all my frontend's feelings.  
  
Now i make `angular` apps and mentor `typescript`, i felt in love with the frontend, i can build apps instead of pages, delegating to angular and bootstrap to make my hated part of the job :)  
  
So, i want to ask, did you feel that way with any tech? Maybe the community made a change to something that you hated/disslike and then it became one of your main resouces or skills?  
  
Angular made it for me.
2018: Year in Review
Tags: yearinreview, webdev, career, productivity
Published: 2019-01-05 05:16:34

---
title: 2018: Year in Review
published: true
description: 
tags: #yearinreview #webdev #career #productivity
---
Another exciting year has started. I’d like to take a moment to reflect on everything that happened in 2018 as it was an exciting year for me, both career-wise and personally.

This is my first blog post, like my first ever blog post. So take it easy on me.

# Career 

I started developing a keen interest in front-end nuances and decided to look for opportunities where I could nourish and improve my front-end skills. I quit my old job and landed a Frontend focussed role in an amazing company. Everyday I see myself becoming a better dev than the previous day.

# Talks and Meetups

- I attended a meetup on Frontend Frameworks war - by Facebook Developer Circle, Chennai.
- Along with 5 other folks I gave a talk on “Virtual and Augmented Reality” and “Pillars of Web - HTML, CSS and JS” to undergrad students.

# Achievements Unlocked 

- Bagged first place in a hackathon
- Completed hacktoberfest and kick started my open source contributions. (Can’t wait to receive my hacktoberfest goodies)
- Took part in Codevember (first timer here). I got to see a lot of codepen inspirations and I’m totally into it now.
- Created a few CSS illustrations, mostly inspired from dribbble shots. Here’s my handle for the curious - <https://codepen.io/ruphaa/>

# Health and Fitness

- Started working out and I hit the gym 5 times a week now.
- Took up 30 days yoga challenge and completed successfully. Yoga magically gives you a sense of inner peace, boosts up your confidence and improves your focus.

# Bummers

- I took up the `#100DaysOfCode` challenge but somewhere down the line I got side-tracked.
- I started Codevember challenge with all fury but ended up not completing it.
- Planned to build a portfolio but didn’t make much progress in that.

# Lessons Learnt

Setbacks are inevitable. But what we learn from it is what’s important. I set a lot of luxurious goals but didn’t plan and manage my time accordingly. So I’m gonna try and focus on

- Setting realistic goals
- Focussing on one thing at a time

# What’s in store for 2019

- Write more blog posts.
- Build a portfolio
- Listen to 3 podcasts every week
- Read 1 blog post every day
- Create 1 codepen every week
- Complete at least 1 round of `#100DaysOfCode` and log it
- Read 10 books

2018 was really an amazing year for me. Started the year low but looking back, I am grateful for everything. Not yet over, I am so grateful to have a wonderful mentor @flexdinesh, for all the career guidance and motivation that set me on the right track.

Have an amazing year ahead!
Around the Web – 20190104
Tags: blog
Published: 2019-01-28 04:46:52

---
title: Around the Web – 20190104
published: true
tags: Blog
canonical_url: https://wipdeveloper.com/around-the-web-20190104/
cover_image: https://wipdeveloper.com/wp-content/uploads/2017/07/WIPDeveloper.com-logo-black-with-white-background.png
series: Around the Web
---

And now for somethings to read (or watch) over the weekend, if you have some spare time that is.

## [Lightning Web Components – Testing](https://socalledprogrammer.com/2019/01/02/lightning-web-components-testing.html)

**socalledprogrammer.com**  – Jan 1, 11:00 PM – During the last post we explored some of the basics of developing with LWC. Now let’s see what options we have for testing. I have to admit that I have never felt comfortable with front-end JavaScript testing on Salesforce. A few years ago I did a…

## [Apex Collections Nesting Depth Documentation Bug](https://www.salesforcedan.com/apex-collections-nesting-depth-documentation-bug/)

**Salesforce Dan**  – Jan 3, 3:13 AM – The Apex Developers Guide states that collections (List, Set, and Map) can only be nested up to four levels deep. From the documentation (at the time of this writing): Lists can contain any collection and can be nested within one another and become…

## [Website with blog and portfolio using Vue.js + Nuxt + Markdown – Marina Aisa](https://marinaaisa.com/blog/blog-using-vue-nuxt-markdown/)

**marinaaisa.com**  – Marina Aisa – 1 January 2019 — Artículo disponible en español How I created my new website with portfolio and blog in two languages. What technology I used and why. Although some of you already know me, I am Marina Aísa, UX Engineer…

## [The Difference Between Width and Flex Basis](https://gedd.ski/post/the-difference-between-width-and-flex-basis/)

**Geddski**  – This is by far the most common flexbox question I get asked. In fact I remember googling this very thing myself back when I was still just guessing with flexbox. Checking my Google search history it looks like I searched a variation of ‘flex-basis…

## [Aurelia 2018 Year in Review](http://aurelia.io/blog/2019/01/02/aurelia-2018-year-in-review/)

**Aurelia**  – Rob Eisenberg – Jan 2 – 2018 has been an amazing year for Aurelia! We’ve added long-time requested features and improvements, enabled new ways to deploy apps, shipped modern, no-hassle tooling, improved our documentation, built up financial backing, made huge advancements…

## Till Next Week

Want to share something? Let me know by leaving a comment below or emailing [brett@wipdeveloper.com](mailto:brett@wipdeveloper.com)  or following and tell me on [Twitter/BrettMN](https://twitter.com/BrettMN).

Don’t forget to sign up for **[The Weekly Stand-Up!](https://wipdeveloper.com/newsletter/)** to receive free the [WIPDeveloper.com](https://wipdeveloper.com/) weekly newsletter every Sunday!

The post [Around the Web – 20190104](https://wipdeveloper.com/around-the-web-20190104/) appeared first on [WIPDeveloper.com](https://wipdeveloper.com).
Setup for Machine Learning (Pt. 3)
Tags: machinelearning, setup, beginners
Published: 2019-01-05 00:02:12

---
title: Setup for Machine Learning (Pt. 3)
published: true
description: This is about my setup for machine learning. This is part 3 of my machine learning journey.
tags: machine learning, setup, beginners
series: My Machine Learning Journey
---


Machine Learning is heavily computational. You'll need to have some tools to be able to work with machine learning in your own computer. I recommend the following specs: 
- Intel core i5 Gen processor 
- 4GB of RAM. 
- **Not necessary** but having a GPU is a great advantage. With GPU computations come way faster compared to CPU. 
- For storage I’d recommend at least having 250 GB SSD. Having 120 GB is just too little especially when downloading large datasets and installing a plethora of libraries. SSD hard rives allows for faster reads and writes. 

I recommend you watch Siraj Raval’s [video][1] for a more detailed explanation as to which laptops are good for machine learning.

You should use a Linux based system. It's just so much easier to work with ml especially since you'll be using the terminal *aLOT*. With Windows, it's not impossible, but it is definitely harder.

- Have  python (2.7 or 3.5 or newer) installed and add it to your path. 
- Install pip after installing python. Watch my tutorial [here][2]. 
*(please subscribe if it helped you. i'll be posting more content this year ✌🏽)*
{% youtube b2HoPw5Z1dY %}

- Optionally you can to install a virtual environment. I recommend using [virtualwrapper][3]. 

With a virtual environment you can easily manage different packages that you install with pip. 
- I recommend you also install [jupyter notebook][6]. 

```python
python -m pip install jupyter
# do python3 if you installed python 3 or greater
```

With jupyter notebook you can immediately see the result of your code without having to go into a terminal and running `python *.py` every single time you change a line of code. 

- Optionally, you can also use a code editor and a terminal to run your code. I prefer the [VSCode editor][4] and the [iTerm][5] terminal, though you can also opt in to use the default Terminal in the Mac or Linux or any of your preferred code editors. 

Thanks for reading! This is part 3 of a 4 part series. Next we'll talk about getting into the code of machine learning. 

[1]: https://www.youtube.com/watch?v=dtFZrFKMiPI
[2]: https://www.youtube.com/watch?v=b2HoPw5Z1dY
[3]: https://virtualenvwrapper.readthedocs.io/en/latest/install.html
[4]: https://code.visualstudio.com/download
[5]: https://www.iterm2.com/
[6]: https://jupyter.org/install
Partial Commits with Git
Tags: git
Published: 2019-01-05 02:47:32

---
title: Partial Commits with Git
published: True
description: You can choose what to commit. 
tags: git
---

I had some success bringing better commits to our repo.

I happened across a post like this one.

{% link https://dev.to/sublimegeek/semantic-commit-messages-with-emojis-3p8h %}

See I don't really like emoji and people can go overboard, but others do like it so when you give them a dashboard like [gitmoji](https://gitmoji.carloscuesta.me) and tell them to add emoji to their commit message, you start to talk about all the emoji in the message, your commit should only need one...

Which brings me to the partial commit. See git has a staging area which is completely separate from the working tree. Many know you can stage files and leave others uncommitted.

With the right tool (git gui) you can stage just one line. When I first brought up splitting the commit, the reaction is fear because their is so much pain in the stash and edit to break them up. Why would they expect to be able to control lines when UIs don't make the feature obvious and it isn't mentioned in git training.
The Criteria of Selection of the Blockchain App Development Company 
Tags: blockchain, appdevelopers, blockchaintechnology
Published: 2019-01-05 00:50:17

---
title: The Criteria of Selection of the Blockchain App Development Company 
published: true
description: The technological advantages of blockchain technology are worthwhile of its implementation. Now there is a lack of professional blockchain app developers. Many freelancers and companies make an offer in the market, but lots of them aren’t as good as they present themselves. To succeed in it and hire real professionals for reasonable price, the investor should learn some peculiarities of this craft.   
tags: Blockchain, app developers, blockchain technology
---
![Blockchain App Development](https://thepracticaldev.s3.amazonaws.com/i/bqw2uowq3g8oyo7acggm.png)

The technological advantages of blockchain technology are worthwhile of its implementation. Now there is a lack of professional blockchain app developers. Many freelancers and companies make an offer in the market, but lots of them aren’t as good as they present themselves. To succeed in it and hire real professionals for reasonable price, the investor should learn some peculiarities of this craft.   
Completed projects are the arguments of a good team of app developers. These arguments are weightier than any advertisement or feedbacks, which rather are fakes than truth.
If you’re looking for professional blockchain apps development team welcome: http://merehead.com/blog/how-to-choose-a-blockchain-app-development-company/. Check the frameworks and analyze whether the working versions and the information on the web-site of the team, you’re intended to hire are the same. The developers should be experienced in the creation applications, it’s important. It’s also a big plus if they’ve already developed the identical applications you need.  But don’t believe at once some written information, try to clarify details and check their previous projects which are close to your project.
The company or freelancers you hire should have in their portfolio successful complex projects, if they have only simple ones think over whether you wish to cooperate with them.
One of the other methods to check the company is to ask it for the contacts of previous customers. Ask for several ones and don’t limit yourself with one or two customers. If the company tries to refuse in sharing contacts of its customers with you look for another one.
RunJS: A JavaScript 'Scratchpad' Tool for macOS
Tags: javascript, tool, cool, node
Published: 2019-01-05 00:50:13

---
title: RunJS: A JavaScript 'Scratchpad' Tool for macOS
published: true
description: 
tags: js, tool, cool, node
cover_image: https://projects.lukehaas.me/runjs/images/content/quirk-js.png
---
https://projects.lukehaas.me/runjs/

5 stars: *****

![](https://projects.lukehaas.me/runjs/images/content/quirk-js.png)