teleren/devto huggingface dataset:
Atomic-powered Fibonacci indentation
Tags: githunt, atom, showdev
Published: 2019-03-04 18:01:34


Atom package that converts the spacing for each successive indentation according to the Fibonacci sequence.


Quite recently I stumbled upon [this vim plugin](https://github.com/dodie/vim-fibo-indent) that does the same job (but, honestly, way better), plus after a short discussion, I had an epiphany that people have never heard about this method of making their code look great.

{% devcomment 95i2 %}

So, here it is.
[Atom plugin page](https://atom.io/packages/fibonacci-indent).

{% github mkrl/fibonacci-indent %}


(wanted to save it for April 1st, but couldn't resist)
Split testing, Image hue change, Popup form & more | Module Monday 30
Tags: showdev, opensource, webdev, javascript
Published: 2019-03-04 17:16:01

---
title: Split testing, Image hue change, Popup form & more | Module Monday 30
published: true
description: Module Monday 30
tags: showdev, opensource, webdev, javascript
cover_image: https://res.cloudinary.com/component/image/upload/b_rgb:ffffff,c_pad,h_370,w_880/v1551636830/split-test_rhfw5n.gif
canonical_url: https://guide.anymod.com/module-monday/30.html
---

## 5 open-source website modules you can use anywhere

Everything below is open source and free to use in any project you choose. [Anymod](https://anymod.com) lets you quickly add features to any website or web app.

Click a mod to see it in action along with its source code.


## Split testing

Create custom split tests for any platform.

<a class="btn btn-sm" href="https://anymod.com/mod/mllmnd?v=20">View mod</a>

<a href="https://anymod.com/mod/mllmnd?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1551636830/split-test_rhfw5n.gif"/>
</a>

## Image hue changer

Click to change the hue of an image.

<a class="btn btn-sm" href="https://anymod.com/mod/dkklrn?h1=33&h2=100&v=35">View mod</a>

<a href="https://anymod.com/mod/dkklrn?h1=33&h2=100&v=35">
  <img src="https://res.cloudinary.com/component/image/upload/v1551633827/hue_vkwf7p.gif"/>
</a>

## Pop up form

Material design form that slides up on button press.

<a class="btn btn-sm" href="https://anymod.com/mod/mllmnm?v=20">View mod</a>

<a href="https://anymod.com/mod/mllmnm?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1551637767/popup-form_isicct.gif"/>
</a>

## Material design card with links

Nicely styled card, ready to use.

<a class="btn btn-sm" href="https://anymod.com/mod/kbolm?v=32">View mod</a>

<a href="https://anymod.com/mod/kbolm?v=32">
  <img src="https://res.cloudinary.com/component/image/upload/v1551639068/mdc-card_dvbouy.png"/>
</a>

## Job posting board

Add jobs to any page and edit them easily.

<a class="btn btn-sm" href="https://anymod.com/mod/onmmk?v=20">View mod</a>

<a href="https://anymod.com/mod/onmmk?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1531358306/job-posting_c5jsep.png"/>
</a>

<hr>

I post new modules [here](https://dev.to/tyrw) every (Module) Monday -- I hope you find them useful!

Happy coding ✌️
Did I waste my time 'launching' on product hunt?
Tags: producthunt, indie
Published: 2019-03-04 16:56:05

---
title: Did I waste my time 'launching' on product hunt?
published: true
description: Reflecting on a failed Product Hunt launch. Why did I do this in the first place?
tags: product hunt, indie
---

I should admit, I had my project featured on Product Hunt before -- for no particular reason. It was a total hack - just a bunch of links with some text and a [fancy domain](http://www.howtodigitalnomad.com/) (with 'digital nomads' trigger word). it was intoxicating! If only I built something **serious** ... right?

Two years later... I spent 2 days preparing to launch [FbaCatalog](https://fbacatalog.com) on Product Hunt. I did all of it:
- different messages for different 'mediums' -- twitter, facebook, reddit, indie hackers -- you name it
- good enough subscriber list from fbamonthly.com
- screenshots, description
- "recommended" timing for a post on PH

I probably overdid it in my attempt to "make it". [I didn't get featured...](https://www.producthunt.com/posts/fba-catalog) But something else was buzzing in my mind all this time... "Why did I launch on PH?"

There were enough reasons not to... I did my research:
- There was very view Amazon Seller related projects on PH
- I already tried launching https://fbamonthly.com with zero luck

All this time tt was in my face -- my target audience was not on PH. I'm probably trying to admit, that I spent two whole days stroking my ego in a right way.
Vulkan Memory Allocator Survey March 2019
Tags: vulkan, graphics, gpu, vma
Published: 2019-03-04 16:09:26

---
title: Vulkan Memory Allocator Survey March 2019
published: true
description: 
tags: vulkan,graphics,gpu,vma
---

Are you a software developer, use Vulkan and the [Vulkan Memory Allocator library](https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/) (or at least considered using it)? If so, please spend a few minutes and help to shape the future of the library by participating in the survey:

**[» Vulkan Memory Allocator Survey March 2019](http://goo.gl/forms/0c5DTDjwDAaZOmJM2)**

Your feedback is greatly appreciated. The survey is anonymous - no personal data is collected like name, e-mail etc. All questions are optional.
Beginners Advice. Learning React.js, building stuff
Tags: beginners, webdev, react, javascript
Published: 2019-03-04 16:05:49

        
{% twitter 1102115003740508160 %}

As a beginner focus on building stuff.

        
{% twitter 1102248664225918976  %}
        

coding is just one part of the software development process


{% twitter 1102249090706956293  %}
Git Magic 1: Undo git amend
Tags: git
Published: 2019-03-04 16:03:47

---
title: Git Magic 1: Undo git amend
published: true
description: 
tags: git
series: Git Magic
---

Git allows you to build up your history in a way so that it has an actual value instead of just being a bunch of hashes with meaningless descriptions.

One of the easier possibilities to keep your history clean is by using `git commit —amend`.
```bash
touch a.txt
git add a.txt
git commit -m 'Add files'
git log
> 175ec0b 4 seconds ago Dani (HEAD -> master) Add files

touch b.txt
git add b.txt
git commit --amend
git log
> d5538f2 48 seconds ago Dani (HEAD -> master) Add files
```

So here we’re amending our previous commit with the added file. But, what if we made a mistake while changing our commit by adding stuff that shouldn’t be added or amended to the last commit?

## Shadow world
The hashes in the example above made very clear, that our `amend` did not actually change the commit, instead it created a new one (175ec0b and d5538f2).
You won’t lose anything in Git that you’ve committed once. So also the first commit from above (175ec0b).

Our graph for the example now looks like this:
![Git Graph](https://thepracticaldev.s3.amazonaws.com/i/nghaae1gx1z2ndob6o70.png "Git Graph")

The commit 175ec0b is still around, but it is not reachable through the graph. With this information, it’s pretty easy and obvious how we can undo our amend.:
```bash
git reset 175ec0b --soft
git status
> (...)
> Untracked files:
>	b.txt
```

Or without using the hash explicitly with offsets on the head pointer:
```bash
git reset 'HEAD@{1}' --soft
```
So we’re resetting to one commit before the current HEAD. The changes are now unstaged again and you can commit them again.

Of course, you can also use `git reflog` to locate the commit.

Now the graph looks the opposite:
![Git Graph](https://thepracticaldev.s3.amazonaws.com/i/3t0b148al82ty7s3fkf2.png "Git Graph")
Again: the commit which was the result from the amend operation is still existing.  So the falsely amended commit is still present but orphaned.
GNU/Linux on Mobile
Tags: opensource, plasmamobile, linux, news
Published: 2019-03-04 15:51:19

---
title: GNU/Linux on Mobile
published: true
description: Just a reshare an interesting post
tags: 
 - opensource
 - plasmamobile
 - linux
 - news
---

I just discovered this port of Nicolas Fella talking about [mobile Linux apps](https://mglapps.frama.io/) and how to create a Plasma Mobile app using [Kirigami](https://www.kde.org/products/kirigami/) and python.
Keep your Javascript dependencies under control
Tags: javascript, webpack, webdev, rails
Published: 2019-03-04 15:48:27

---
title: Keep your Javascript dependencies under control
published: true
description: The best way to explore the size and content of your frontend.
tags: javascript, webpack, webdev, rails
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ymgxlsa0a54kt5qm7f7c.png
---

With all the Javascript libraries and their dependencies these days it’s easy to get carried away and lost track of how heavy your frontend is.

Here is a great tool for Webpack backed applications: [Webpack Bundle Analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer). It shows the exact size (parsed and gzipped included) of each dependency you put inside your `package.json` file.

And here is an example of how to add it to your Rails project.

First, we need to add it to the `package.json`:

```bash
# Save the package to your `devDependencies`
yarn add -D webpack-bundle-analyzer
```

Second, add this to your `config/webpack/environment.js` file, right before `module.exports = environment;` line:

```javascript
if (process.env.ANALYZE_BUNDLE) {
  const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
  environment.plugins.append('BundleAnalyzer', new BundleAnalyzerPlugin());
}
```

Third, make it available as `yarn/npm run` task:

```javascript
// package.json
{
  // ...
  "scripts": {
    // ...
    "analyze": "ANALYZE_BUNDLE=true RAILS_ENV=production ./bin/webpack"
  },
  // ...
}
```

Done. You can run it like this now:

```bash
yarn run analyze
```

Happy keeping your Javascript dependencies under control! :)
Welcome Thread - v30
Tags: welcome
Published: 2019-03-04 15:21:39

---
title: Welcome Thread - v30
published: true
description: Introduce yourself to the community!
tags: welcome
---

Hey there! Welcome to dev.to!
![Magician dog waves hello with a wand](https://media.giphy.com/media/3o6ZtpxSZbQRRnwCKQ/giphy.gif)
<figcaption>`var developer = magician`</figcaption>

Leave a comment below to introduce yourself to the community! ✌️

Here are some ideas to get you started:

1. You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment and say hello or ask them a question. 👋

3. Or answer this question: What's your favorite project you've worked on?
Introducing our March 2019 sponsors
Tags: meta
Published: 2019-03-04 15:16:07

---
title: Introducing our March 2019 sponsors
published: true
description: Our wonderful sponsors are vital to the health of dev.to and it is great to work with companies contributing so much to the ecosystem.
tags: meta
cover_image: https://thepracticaldev.s3.amazonaws.com/i/5p9c1gzljh4fagk5birx.png
---

This March, we return the same wonderful set of sponsors from February.  Thank you to each of those companies for being valuable DEV Community partners and supporters.

Please take a few minutes to check out their offerings and consider them for your company or next project.


## DigitalOcean

[DigitalOcean](https://try.digitalocean.com/performance/?utm_source=devto&utm_medium=display&utm_campaign=Devto_2018_Brand) is a much-loved cloud computing platform. I'm always impressed by how well-built _and well-documented_ the DigitalOcean core products are. It's easier said than done, and they've been able to stay ahead of the curve.

DigitalOcean has been our longest-running supporter to date, and we're extremely thankful for their consistent support.  Their commitment to the developer ecosystem is crystal clear.

## GoCD

[GoCD](https://www.gocd.org/?utm_campaign=dev_to&utm_medium=dev_homepage&utm_source=logo_link&utm_content=gocd_homepage&utm_term=) is a continuous delivery tool built by Thoughtworks, one of the most reputable software development firms we've ever dealt with.

This is a feature-rich tool with some really fabulous visualization. Definitely worth considering for your organization or project. The product is very well supported through documentation, resources, and of course, the open source community. Very much worth checking out.

## Triplebyte

[Triplebyte](https://triplebyte.com/a/YU8fSn0/recognition) allows developers to take one quiz and immediately get into the interview process with top tech companies if you qualify. It should be a part of any developer's job search process.

I personally took the Triplebyte quiz and the questions felt like a genuine test of real world software development principles. I'm spoken for in terms of work and you may be as well, but I'd suggest giving the quiz a spin either way.


***

These organizations are helping us build the best community we can. I urge you to check out their offerings if you are in the market for their services.

Happy coding ❤️
VueJS questions 
Tags: vue, uikit, wordpress, sideprojects
Published: 2019-03-04 15:08:52

---
title: VueJS questions 
published: true
description: side project 
tags: VueJS,UIKit,WordPress,sideprojects
---

Hey all, 
i created [VueJS questions ](https://vuejsquestions.com?ref=devto) for common VueJS questions. 
It is a side project while i started learning UIKIT frontend framework and improving my skills on web performance and seo. 

At the moment it is fetching the questions from stackoverflow. Any feedback will be appreciated negative or positive.
The 7 Most Popular DEV Posts from the Past Week
Tags: top7
Published: 2019-03-04 14:41:01

---
title: The 7 Most Popular DEV Posts from the Past Week
published: true
description: A round up of the most-read and most-loved contributions from the community this past week.
tags: icymi
cover_image: https://thepracticaldev.s3.amazonaws.com/i/sfwcvweirpf2qka2lg2b.png
---
Every Monday we round up the previous week's top posts based on traffic, engagement, and a hint of editorial curation. The typical week starts on Monday and ends on Sunday, but don't worry, we take into account posts that are published later in the week. ❤️


#1. Common Misconceptions

Emma recommends which technologies to *avoid* if you're just starting your journey in code. There are lots of resources/tools out there and sometimes it's just easier to explain what *not* to do.

{% link https://dev.to/emmawedekind/6-mistakes-youre-making-as-a-beginner-web-developer--how-to-avoid-them-5gj4 %}

#2. Will remote be your thing?

Martín shares their learnings from working remote the last ten years. Great article for anyone considering the move!

{% link https://dev.to/mpermar/10-years-of-remote-working-this-is-what-i-have-learned-so-far-21l9 %}

#3. A Simple Framework

James breaks down the software development career path into six stages: coder, junior, intermediate, senior, lead dev, and tech lead. Which stage do you see yourself in?

{% link https://dev.to/jamesmh/the-stages-of-your-software-development-career-2dd %}

#4. "On-call, 24/7"

Molly shares their burnout story and advice to help others recognize the signs of burnout in themselves or others.

{% link https://dev.to/molly_struve/i-cant-do-it-all-my-burnout-story-1e54 %}

#5. Awesome DEV Links

Turns out my recent post was well received :)

This post is a list of resources for portfolio building, interviewing, and starting a new DEV job.

{% link https://dev.to/jess/resources-for-new-devs-looking-for-work-5f97 %}

#6. Write Less Code

Nick replaced an entire app they were maintaining on the side by leveraging GitHub Actions! 

{% link https://dev.to/nholden/how-i-replaced-a-rails-app-with-a-few-dozen-lines-of-ruby-3l1m %}

#7. Make Your life Easier

Ryan shows us the power of customization when providing arguments to bash scripts at call time.

{% link https://dev.to/rpalo/handling-arguments-in-bash-scripts-3o5m %}

_That's it for our weekly wrap up! Keep an eye on dev.to this week for daily content and discussions...and if you miss anything, we'll be sure to recap it next Monday!_
Common and easy-to-make mistakes when you’re new to NgRx
Tags: ngrx, redux, angular, typescript
Published: 2019-03-04 14:26:15

---
title: Common and easy-to-make mistakes when you’re new to NgRx
published: true
description: Writing and refactoring FizzBuzz in NgRx with maintainability in mind
tags: ngrx,redux,angular,typescript
canonical: https://timdeschryver.dev/blog/common-and-easy-to-make-mistakes-when-youre-new-to-ngrx
canonical_url: https://timdeschryver.dev/blog/common-and-easy-to-make-mistakes-when-youre-new-to-ngrx
cover_image: https://cdn-images-1.medium.com/max/2560/0*8IRRfI0SkK8E38n4
---

# Writing and refactoring FizzBuzz in NgRx with maintainability in mind

This post is aimed at newcomers to NgRx.

In the first part of the post, we’ll be creating a new Angular project and we’ll implement a FizzBuzz implementation with NgRx. For the initial setup we’ll use the Angular CLI, and to scaffold the NgRx files we’ll be relying on the NgRx schematics.

The second part of the post will be used to refactor and reason about the implementation of the first part. The goal is to have a more maintainable code base.


[Read More...](https://blog.angularindepth.com/common-and-easy-to-make-mistakes-when-youre-new-to-ngrx-49404ac973ea?source=friends_link&sk=a7a2fbca482a9aed31e11a1207beed58)
What are you using Serverless for?
Tags: devops, serverless, lambda
Published: 2019-03-04 13:56:50

---
title: What are you using Serverless for?
published: true
description: 
tags: DevOps, Serverless, lambda
---

My colleague recently wrote a [blog post](https://link.medium.com/Prusx1EqGU) - on how we use Serverless as a DevOps team, which made me think, what are other people using it for?

Are you using, like we are, to replace load of cronjobs running on an instance and for listening to events emitted by AWS? Or are you doing something different? Maybe some or all of you application is running on Serverless. I’m interested to find out....
Hand-holding Simulator
Tags: showdev
Published: 2019-03-04 13:50:51

---
title: Hand-holding Simulator
published: true
description: A silly and very simple hand-holding sim
tags: showdev
---

For anyone who needs it.

https://handholding-simulator.glitch.me/

![on the cusp of holding hands](https://thepracticaldev.s3.amazonaws.com/i/i4aoyhr5xw8w48e433sw.png)
your ways of writting lots of duplicate / similar code
Tags: help
Published: 2019-03-04 13:20:00

I've been developing basic CRUD application. The application itself is fairly simple, but I waste lot of time writting code reading data from database / writting data to database. 
It consist of: 
FRONTEND
-creating Angular HTML template
-creating typescript interface
-creating Angular Typescript code
-creating Angular Service for said component
-adding additional code for popups, code sharing between components

BACKEND
-creating java class for said component
-creating INSERT, DELETE, SELECT, UPDATE methods
-creating METHODS for getting data for autocompletes

DATABASE
-creating procedure, queries for reading / updating data.  

All above is fairly simple and trivial for applications consiting of 10 elements. But for applications that have something like 100 inputs fields, and 20 forms to read from. and every form having few autocompletes etc... Writting everything above by hand becomes quite boring / time intensive.  

I hope I wrote my post understandable enough to get my point across
Ruby 2.6 new feature: refine `#to_proc`
Tags: ruby
Published: 2019-03-04 12:10:57

---
title: Ruby 2.6 new feature: refine `#to_proc`
published: true
description: 
tags: Ruby
---


> Refinements take place at block passing. [Feature #14223]
https://github.com/ruby/ruby/blob/v2_6_0/NEWS


It's very useful when you want to use the literals as DSL for the block.
Following example refines `Integer#to_proc` and `Array#to_proc` to slice the values.

```ruby
using Module.new {
  refine(Integer) do
    def to_proc
      -> o { o[self] }
    end
  end
 
  refine(Array) do
    def to_proc
      # Same as -> o { map(&o.method(:[]) }
      # https://dev.to/hanachin/ruby-27-new-feature-method-reference-operator-38l2
      -> o { map(&o.:[]) }
    end
  end
}

p "foo".match(/(a)(b)(c)/)&.then(&1) #=> nil
p "abc".match(/(a)(b)(c)/)&.then(&1) #=> "a"
p "abc".match(/(a)(b)(c)/)&.then(&[1]) #=> ["a"]
p "abc".match(/(a)(b)(c)/)&.then(&[1,2,3]) #=> ["a","b","c"]
```
Vulnerability Identified in Docker & RunC
Tags: security, docker, runc, news
Published: 2019-03-04 12:01:43

---
title: Vulnerability Identified in Docker & RunC
published: true
description: RedHat have identified a significant vulnerability.
tags: security, docker, runC, news
cover_image: https://cdn.pixabay.com/photo/2016/12/21/17/39/cyber-security-1923446_1280.png
---

#Docker Vulnerability Reported#

On Saturday, RedHat posted a new entry in the **[Common Vulnerabilities and Exposures Database](https://access.redhat.com/security/security-updates/#/cve)**, with the impact level **important**. The vulnerability could enable a malicious container to be executed, eventually resulting in easy access to the host filesystem. 

It defines the weakness as: 

*"A flaw was found in the way runc handled system file descriptors when running containers. A malicious container could use this flaw to overwrite contents of the runc binary and consequently run arbitrary commands on the container host system."*

The full details can be found **[here](https://access.redhat.com/security/cve/cve-2019-5736#field_cve_details_text)**.


The recommendation is to patch RunC ASAP, if you haven't already.

This was shared to me this morning, and came as a bit of a surprise. Does this affect you, or your organisation? 

**Edit:** *It has been pointed out to me that the initial publication of this CVE was in February! Thanks @ohffs for that. Hope this blog still stands as a useful resource, and a reminder of the importance of keeping patches up-to-date!*
Go internals unofficial wiki
Tags: go, wiki, internals
Published: 2020-10-06 08:02:20

---
title: Go internals unofficial wiki
published: true
date: 2019-03-04 11:09:22 UTC
tags: ['go', 'wiki', 'internals']
canonical_url: https://blog.riff.org/2019_03_04_go_internals_unofficial_wiki_restored
---
[Google Go = Golang](https://blog.riff.org/topic/computing/golang)

The "Go internals unofficial wiki" on goin.wikispot.org used to be a valuable resource for developers interesting in the internal operation of the Go runtime, but disappeared when wikispot.org went down in 04/2014.

I spent a couple of hours this morning to restore and reformat its contents to the [Golang section on the Audean wiki](https://wiki.audean.com/go/internals).

![Table of contents of the Go internals wiki](https://dev-to-uploads.s3.amazonaws.com/i/bxf89w7cdlkwavvs19dd.png)

Enjoy... but responsibly : its content was fresh in 2014, not last week...