teleren/devto huggingface dataset:
Explain me this like I'm five
Tags: node, help, deploy
Published: 2020-01-11 15:29:30

---
title: Explain me this like I'm five
published: true
description: I want to know how its works
tags: node, help, deploy
cover_image: https://i0.wp.com/unaaldia.hispasec.com/wp-content/uploads/2018/11/nodejs-event-stream-module.jpg?w=728&ssl=1
---

Hi, yesterday I was talking with a co-workers and we was talking about Node Js, how it works in local to develop API and pretty simples apps, how to connect to a database... but when we started to talk about how it works in Production enviroment, we are lost, i mean, both of us don't know how to deploy, or where is the best way to deploy this types of apps which runs in NODE, he deploy a simple app in Nginx and apache, wich its runs.
But I still have the question, wich server or types or servers are using this plattforms like Digital ocean or Heroku, its worh deploy a Node app in Nginx or Apache? If i have a server, how should i deploy a simple app builded in Node and React (Digital ocean and Heroku are not a option) or what server is the best for this, nginx, apache...
Correct order of programming concepts for a tutorial series
Tags: help, gwion, tutorial, programminglanguagedesign
Published: 2020-01-11 15:22:06

I want to start a tutorial series for [Gwion](https://github.com/fennecdjay/Gwion), accessible to beginners.

For those who don't know **Gwion**, it is an interpreted programming language, strongly typed, running on a [stack VM](https://en.wikipedia.org/wiki/Stack_machine) and with a *very strong relation to time*, as its main use is sound/music generation.

Right now, I think it should start like:
  * Set things up: 
    installing the language and libraries needed
  * Sequential programming:
    Just set up a sequence of instruction
  * Use functions:
    Put instructions in a function and use it instead.
    Leverage this post to demonstrate function overloading
  * Use your Own classes:
    Use a class instead of a function and demonstrate inheritance.

Later on will come templating for functions and classes, lambdas, functions pointers...

Does it seem correct for you?  
If not, how would you order things?  

Any advice will be greatly appreciated.
Got my DEV stickers!
Tags: dev, hacktoberfest
Published: 2020-01-11 15:13:36

I was very excited to see that I had received an envelope in the mail from DEV. I opened it up and _voila!_ there was a bunch of new stickers and a card!

![My with my new DEV stickers](https://thepracticaldev.s3.amazonaws.com/i/pwrxo3o151ty62m0rol2.jpg)

Thanks again to Ben and everybody else that makes DEV such an awesome community. This means you too!
Preparing for Software Engineering Interviews
Tags: help, healthydiscussion, career, beginners
Published: 2020-01-11 15:11:21

---
title: Preparing for Software Engineering Interviews
published: true
tags: help, healthydiscussion, career, beginners
---

Gonna keep this as brief and direct as possible.

I am trying to create a presentation on the subject of *How To Ace Your Very First Software Engineering interview* for the seminar which I'll be conducting in my former college. **The target audience will mostly be students of senior year**. The purpose behind all of this activity is guide students in about the whole process without facing the extra grind. **Because this my first intance where I'll be delivering any sort of seminar, I want to avoid as many mistakes as possible. Hence, I need the help from the awesome community of Dev.to**.

I've already compiled a list of topics which I want to cover in the seminar. Here's the [list](https://docs.google.com/document/d/1N-8BFfze4P2fLCdjsscdpUTnjHtODD7uaYX-py5rcgw/edit?usp=sharing). 

Besides this, **I also want to share your stories** within the context of following questions:
 
- Which steps did you take for interview prepping in terms of technical and soft skills?
- What sort of challenges did you while giving interviews at run time? 
- How did you cope with failures after getting rejected by the companies?
- Tips for effective writing resume/CV
- Any type of **discrimination you faced during the hiring process ** in the form of sexism/racism/ something else? (**For this, input from people of color, LGBT community and women will be really appreciated**).
- How to effectively engage with recruiters and HR managers?
- How much does networking impact on the whole job hunting process? Was it helpful in your case

By covering your experiences,  **I'll be able to reduce tunnel vision of my own and deliver maximum objectivity**.

*P.S: Feel free to add anything which I haven't mentioned  yet you it find important*
New Jhipster nodejs blueprint beta version
Tags: angular, react, node, microservices
Published: 2020-01-11 15:09:32

Happy to announce the new beta 2 version of nodejs jhipster blueprint!
New features:
- More fields and entity relationship for jdl models
- More tests, eslint for server part, github pipelines
- Custom full app prompt customization for UX

https://www.npmjs.com/package/generator-jhipster-nodejs/v/1.0.0-beta.2
Going Serverless Zeit
Tags: zeit, firebase, serverless, lambda
Published: 2020-01-11 14:22:04

---
title: Going Serverless Zeit
published: true
description: Focusing on Zeit as a Serverless Service.
tags: Zeit, Firebase, serverless, lambda
canonical_url: https://jordanfinners.dev/blogs/going-serverless-zeit
---


Continuing from my previous [post](https://dev.to/jordanfinners/going-serverless-2o9p).

I want to focus on a few serverless providers, the first one being [Zeit](https://zeit.co/).

Zeit is different to the other Cloud Providers (like Azure, Google Cloud Platform and Amazon Web Services AWS), as its a company that works across different provides to provide a global platform.

Their **now** platform is a really cool take on the serverless offering, letting you deploy in seconds (like now…) 😂.

Deploying both web sites and services in seconds to their global platform. ITs super easy to get started and their [docs are pretty great](https://zeit.co/docs) at the basics.

They also do some amazing [open source work](https://zeit.co/oss), including [Next.js](https://nextjs.org/) for server rendering react applications and [NCC](https://github.com/zeit/ncc) which is effectively Webpack style compiler for Node.js applications, so that you only ship code you actually use, this is awesome for serverless applications where any extra code impacts your cold start up times and performance.

I’ve used this myself on my side project and seen a noticeable size different between shipping my application normally node modules and all, and after compiling it with NCC.

They also offer domain registration and a CDN as well as a serverless service. Their pricing structure is amazing too! They offer so much totally FREE! [https://zeit.co/pricing](https://zeit.co/pricing)

The only downsides I found was their logging and monitoring offering didn’t feel as mature and slick as some of the other cloud offerings.

On a different note, they also have loads of resources for anyone interested in design including opening up thier design guide publicly, check it out here https://zeit.co/design

Definitely worth checking out for side projects and start ups, larger enterprise work might need more convincing (but then there is the super cheap pricing) 😉

Let me know how you get on!
Change on study plan
Tags: motivation, devjournal
Published: 2020-01-11 14:59:16

I've been writing [a series](https://dev.to/nozomuikuta/day-1-introduction-4log) since few days ago.

But, through next week, I have to research [new features of the next version of Vue.js](https://github.com/vuejs/vue-next), which are not yet well-documented.

I will share them with DEV community when it's done.

This post has been written just for devjournal of my own.
Daily Challenge #159 - Isogram
Tags: challenge
Published: 2020-01-11 14:30:18

---
title: Daily Challenge #159 - Isogram
published: true
description: Implement a function that determines whether a string that contains only letters is an isogram
tags: challenge
---

An isogram is a word that has no repeating letters, consecutive or non-consecutive. Implement a function that determines whether a string that contains only letters is an isogram. Assume the empty string is an isogram. Ignore letter case.

*Example*:
`is_isogram("Dermatoglyphics" ) == true`
`is_isogram("aba" ) == false`
`is_isogram("moOse" ) == false # -- ignore letter case`


***
_This [challenge](https://www.codewars.com/kata/54ba84be607a92aa900000f1) comes from chunjef on CodeWars. Thank you to [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!_
Deploying Svelte App to IIS
Tags: iis, svetle, deployment
Published: 2020-01-11 14:30:03

Nothing fancy here -- just the absolutely bare minimum setup.

I did not find any deployment guidance on the web specifically for IIS. I know just enough about IIS to get this working, so feel free to suggest a better way. Here is what I had to do to get the app working.

+ modify the public/index.html file (came from the Svelte template) to remove the leading / from the public/index.html for style sheets and bundle, so href='/global.css' became href='global.css'
+ do this for the favicon as well
+ build the build command: npm run build
+ copy the public directory to some target application directory on the target server
+ add an "app" to the default site in IIS on the target server, give it a name, let's say it's "blackbird," and when it asks for the directory path, set it to "public" in the application directory
+ the app url then is: http://target_server_name/blackbird

The main takeaway was to fix the paths in index.html. I could see in the console the errors that the app was not finding these files and clearly the app was not starting up.

This does **NOT** seem to break anything during development when I run "npm run dev"
Free O'Reilly ebook about DevOps
Tags: devops, microsoft, ebook, oreilly
Published: 2020-01-11 14:29:51

Microsoft is giving the O'Reilly E-Book "Effective DevOps" away for free if you visit [https://azure.microsoft.com/en-us/resources/effective-devops/](https://azure.microsoft.com/en-us/resources/effective-devops/)

![Effective Devops ebook cover](https://thepracticaldev.s3.amazonaws.com/i/mn9gemtq1ap8o59eqg3h.png)

Read the e-book to learn more about:
* The foundations and central four pillars of effective DevOps.
* Tips for fostering collaboration, strong interpersonal relationships, and * affinity between teams. 
* How to select tools and workflows that support and strengthen your organization’s unique DevOps culture.
* How to troubleshoot common problems and misunderstandings.
* How successful organizations have handled their DevOps journeys.

The book is written by Jennifer Davis and Ryn Daniels
Free Design Resources
Tags: design, free, links
Published: 2020-01-11 14:18:28

---
title: Free Design Resources
published: true
description: 
tags: design, free, links
canonical_url: https://jordanfinners.dev/blogs/design-resources
---


Hey everyone, these are some tools/resources that I’ve found really helpful when designing/making websites! They are really great and mostly free too! :D

I’ll keep updating them when I find new ones, and if you have any you think would be good to add to this list, leave a comment!

*   [https://undraw.co/](https://undraw.co/) — great free illustrations
*   [https://unsplash.com/](https://unsplash.com/) — great free to use photos/images
*   [https://whimsical.co/](https://whimsical.co/) — free to use collaborative design tool
*   [https://blog.prototypr.io/35-new-design-tools-in-2019-169e1b001bbf](https://blog.prototypr.io/35-new-design-tools-in-2019-169e1b001bbf) — new design tools to check out
*   [https://spark.adobe.com/](https://spark.adobe.com/) — greate for creating social media posts and stock images
*   [https://www.adobe.com/products/xd.html](https://www.adobe.com/products/xd.html) — really good free design and prototyping tool
*   [https://webgradients.com/](https://webgradients.com/) — free list of beautiful gradients
*   [https://www.blobmaker.app/](https://www.blobmaker.app/) — SVG blob generator
*   [https://www.designcamera.app/](https://www.designcamera.app/) — Design Camera is an app for your _Mac_ that lets you create, capture, and animate 3D mockups
*   [https://shotsnapp.com/](https://shotsnapp.com/) — Create beautiful device mockup images
*   [https://screen.guru/](https://screen.guru/) — Take clean screenshot of any websites, just paste a link
*   [https://cleanmock.com/](https://cleanmock.com/) — Clean mockups
*   [https://uizard.io](https://uizard.io/) — Pretty cool tech, converts hand drawn sketches to mock ups
*   [https://interfacer.xyz](https://interfacer.xyz/) — Great design resources
*   [https://uisounds.prototypr.io/](https://uisounds.prototypr.io/) — UI sound discovery
*   [https://realtimeboard.com/mind-map-software/](https://realtimeboard.com/mind-map-software/) — Less designy but team mindmap colabs
*   [https://cloudflare.design/color/](https://cloudflare.design/color/) — create accessible colour combinations
*   [https://squoosh.app/](https://squoosh.app/) — optimise your image size
*   [https://codepen.io/z-/pen/OBPJKK](https://codepen.io/z-/pen/OBPJKK) — nice vertical card affect
*   [https://videos.pexels.com/](https://videos.pexels.com/) — free to use videos
*   [https://burst.shopify.com/](https://burst.shopify.com/) - free images
*   [https://www.shopify.co.uk/tools](https://www.shopify.co.uk/tools) - free business tools!
* [https://jonsuh.com/hamburgers/](https://jonsuh.com/hamburgers/) - hamburger menu animations galore
Get Out There!
Tags: opensource, ruby, career, github
Published: 2020-01-11 14:16:19

---
title: Get Out There!
published: true
description: Helping others through open-source contributions
tags: opensource, ruby, career, github
---

### Then

Since I've retired (apparently), I've mostly spent my time working on my own Ruby projects and gems, and on writing (here on DEV).

After a couple of years, though, I realized that these works don't have much "reach";  they don't affect or help many others.  (An exception is my gem <code>markdown_helper</code>.)

### Now

To "reach" farther, I've recently been contributing to open-source projects on GitHub;  mostly:
* Ruby specs.
* Ruby documentation.

For specs, I've been filling in testing that the site itself declares as needed.  This work is mostly invisible, but does help to guard Ruby against regressions.

For documentation, I've chosen classes with weak descriptions and few code examples.  The changes I've made are of course highly visible in the Ruby documentation itself.  Ruby version 2.7 includes the first of these contributions.

### Moral of the Story
* Write, yes.  (Some will read.)
* Code, yes.  (Some will use.)
* But also contribute to open-source projects.  (*Many* will benefit.)

So:  Get Out There!

### Links

To avoid clutter, I've eschewed links above.  For anyone interested, here are a few.

#### Ruby Spec
* [Main site](https://github.com/ruby/spec/blob/master/CONTRIBUTING.md)
* [What to work on](https://github.com/ruby/spec/blob/master/CONTRIBUTING.md#finding-unspecified-core-methods)

#### Ruby Documentation

As I said, I just look around for a weak or incomplete discussion, and especially for missing or weak example code.

My changes for <code>ENV</code> add a fulsome introduction and (not yet complete) example code:
* [ENV 2.6.3](https://ruby-doc.org/core-2.6.3/ENV.html)
* [ENV 2.7.0](https://ruby-doc.org/core-2.7.0/ENV.html)

My changes for <code>Exception</code> restructure (or maybe just structure) the introductory material:
* [Exception 2.6.3](https://ruby-doc.org/core-2.6.3/Exception.html)
* [Exception 2.7.0](https://ruby-doc.org/core-2.7.0/Exception.html)

#### My <code>markdown_helper</code>
* [Documentation](https://github.com/BurdetteLamar/markdown_helper#markdown-helper)
* [Gem](https://rubygems.org/gems/markdown_helper)
* [Source](https://github.com/BurdetteLamar/markdown_helper)

#### My Most Popular Post
* [Retired, Apparently](https://dev.to/burdettelamar/retired-apparently-1210)
Simple truths: Sustainable pace
Tags: sustainable, simpletruths, advice, goals
Published: 2020-01-11 14:02:52

---
title: Simple truths: Sustainable pace
published: true
description: A friendly reminder for teams and individuals: whatever you trying to achieve - make sure you make time and don't over do it.
tags: sustainable,simpletruths,advice,goals
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ux11unbvwb6bxn0auijm.jpg 
---

Feel like now we are in the first week of the year and the reality may be settling in after the holiday season - and maybe you like myself find yourself a little down.

You may also be a little disappointed with yourself - as you had great plans for this year and yet somehow managed to start failing in some of the goals you have set yourself.

One of the crucial pieces of advice I would give to anyone is - whatever you do, always think about how sustainable is the pace at which you are moving. This applies not only individuals - but to software teams too.

It is better to work out a pace that will last - rather than go all out and burn out after a few weeks or months.

And by all means - do dream big - just start with smaller, achievable, realistic steps.


Do you want to learn new language? Why not start by watching some video tutorials?

You want to write more blog posts? Start with writing one a month. Or just writing a paragraph every few days.

And most importantly - for anyone who needs to read/hear this: you can achieve your goals if you stick at it. I believe in you! :)

P.S. This was meant to be a very short piece of writing, no longer than 2 paragraphs wrong - but I got a little carried away :)



Cover Image Source: [Photo by Hope House Press - Leather Diary Studio on Unsplash] (https://unsplash.com/@hope_house_press_leather_diary_studio?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
Node JS Memory Limits
Tags: node, javascript
Published: 2020-01-11 13:54:29

---
title: Node JS Memory Limits
published: true
description: 
tags: NodeJS, Javascript, JS
canonical_url: https://jordanfinners.dev/blogs/node-js-memory-limits
---


Recently came across an issue at work where one of our Node JS micro services kept hitting the default memory limit on Node JS.  
It was moving GB of data around at the time and kept hitting the default of ~1.7GB of memory and causing the process manager to restart it.

So thought I’d share the command line argument to set the memory size to what you like **_max\_old\_space\_size=4096_** as you might find it handy!
MongoDB Tip - Querying For Single Document
Tags: mongodb
Published: 2020-01-11 12:42:42



If you're querying for a single document, prefer `findOne` over `find`

# Usecase:

To find a user by an email field

> One possible approach:

```mongodb
User.find({email: 'shubworkmail@gmail.com'});
```

> Better Approach:

```mongodb
User.findOne({email: 'shubworkmail@gmail.com'});
```
How to add git branch name to shell prompt in Ubuntu
Tags: linux, shell, productivity, ubuntu
Published: 2020-01-11 12:28:17

When I work in a git repository directory that has many branches, I want to know which branch I am currently in on my shell prompt. Below is the sample output result.

Before my shell prompt is like this. Note suppose I am on folder `~/general/repos/playground`.

```
sony@ubuntu:~/general/repos/playground$
```

We will create like this.

```
sony@ubuntu:~/general/repos/playground (master)$
```

On above example, I am on my `playground` git repository directory and it display the branch name `master`. It means I am on `master` branch now.

Today I will share how to create it.

## Scenario
I want to add git branch name to my shell prompt when I am in a project repository directory. I am using Ubuntu, so the default shell is `bash`.

## Step-by-step to go there
**Step 1.** Go to your shell prompt first.

**Step 2.** We have to know the current prompt setting, type like below.

```
echo $PS1
```
> $PS1 is the enviroment variable that store the default prompt setting we see every time when we log in the console.

On mine, the setting is like below.

```
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
```

Looks great.

**Step 3.** Open file `~/.bashrc`

```
vi ~/.bashrc
```

**Step 4.** Add this function on the bottom of your `~/.bashrc` file.

```bash
git_branch() {
  git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
```

**Step 5.** Add this on the bottom of your `~/.bashrc` file. Add the `git_branch` function on the shell prompt, by adding it on `PS1` variable. Sample like below (that based on my `$PS1` output above).

```
export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \$(git_branch)\$ "
```

**Step 6.** You are done. Now save the file `~/.bashrc` and run this command to reflect the changes.

```
source ~/.bashrc
```

Or you can close the terminal and re-open again to reflect the changes.

Now on my shell prompt will display like below.

```
sony@ubuntu:~/general/repos/playground (master)$
```

## Add color to make it better
This is just additional cosmetics things. I will make the branch indicator `(master)` to green for foreground color. Add this `\[\033[00;32m\]\$(git_branch)\[\033[00m\]` to your `PS1` variable. On mine is like below.

```
export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \[\033[00;32m\]\$(git_branch)\[\033[00m\]\$ "
```

That's it.

Thank you and I hope you enjoy it.

## Reference
- https://en.wikibooks.org/wiki/Guide_to_Unix/Explanations/Shell_Prompt
- https://www.shellhacks.com/show-git-branch-terminal-command-prompt/
- https://linoxide.com/how-tos/change-bash-prompt-variable-ps1/
- https://askubuntu.com/questions/590899/how-do-i-check-which-shell-i-am-using

## Credits
- Cover image is photo by Adrianna Calvo from Pexels at https://www.pexels.com/photo/sea-nature-beach-sand-21859/
Makers - Week 3
Tags: ruby, angular, beginners
Published: 2020-01-11 12:03:56

Week 3 has just finished, it was great to get back and see the gang, and be back in the environment to soak up as much knowledge as possible!

This week jumped straight into some basic web framework/server programs, experimenting with some front end (for the first time - eek!). We started getting to grips with Sinatra, a web framework for Ruby. In combination with Capybara (a mind blowing user simulation program used for testing) it became apparent that coding had a whole other world, the front end. 

Our task was to make a Battle style game, with the ability for the user to select names, attack eachother and take turns. It quickly came to light that the world of coding was infinite, ever more confusing, but wonderful at the same time. 

The Battle program was a success, this week i feel like i have understood the self led learning more, and used my time more effectively. I had some great partners to bounce ideas off, and ended the week with a table tennis social and beers with the crew.

Next week looks to be more of the same with some added features. The course is progressing at a warp speed rate, and i often think i am still not understanding as much as i could. However on the weekly reflection on Friday afternoons, i quickly realise that i know FAR more than i did at the start of the week. Dare i say i am almost looking forward to this weekends challenge to see how much i can do....

As always, wish me luck!