teleren/devto huggingface dataset:
Advent of Code with Kotlin in 1 minute!
Tags: adventofcode, kotlin, intellij
Published: 2019-11-14 20:57:55

---
title: Advent of Code with Kotlin in 1 minute!
published: true
description: Start your Advent of Code adventure in Kotlin using GitHub template repository with project boilerplate.
tags: advent of code, adventofcode, kotlin, intellij
---

The first of December is close. Some may have already heard that the fifth edition of [Advent of Code](https://adventofcode.com) is starting next month.

For those who do not know what is going on - I will quickly quote its creator, Eric Wastl:

> Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other.

The general idea is simple - every day there is a new puzzle to solve. We have to deal with the previous one to unlock the next ones and help Santa with his surprising problems in the final.

This year I decided to use the Kotlin language - mainly because I want to get to know it better and - classically - feel the competitive spirit.

Let's get to the point!


I have created already a preconfigured Kotlin project with sources and tests structure, README template and solution for Day 1 of the 2015 edition.

It is a GitHub **template repository** that can be easily used as a boilerplate for your own Advent of Code solutions set.

It can be found here: https://github.com/hsz/advent-of-code-kotlin-template

![advent-of-code-kotlin-template](https://thepracticaldev.s3.amazonaws.com/i/amopzii2mgroqqti81om.png)

All you have to do is hit the *Use this template* button, clone repository and open it within IntelliJ IDEA.

![advent-of-code-kotlin-template](https://thepracticaldev.s3.amazonaws.com/i/b7d3ed5g0ck4kh8nor05.png)

Good luck!
The Full Stack Developer
Tags: books, firstyearincode
Published: 2019-11-14 20:37:59

Technical books are a funny thing - most of them are out of date shortly after publishing. I can't even begin to remember how many I have either donated or deleted from my digital library. The problem is simple. They don't stay relevant in the fast-paced world that is software development. So I get excited when I find a technical book that has what it takes to stand the test of time. The latest one is [The Full Stack Developer](https://www.goodreads.com/book/show/41800851-the-full-stack-developer) by Chris Northwood. 

This book stands-out due to the focus on the day-to-day aspect of being a developer. Don't pick this up expecting to learn the details of a framework or language. What you will learn is how planning works, designing system, dev-ops, and so much more. Take a second and read this excerpt on "Constantly Learning"

> “One area where the modern full stack developer working in a digital organization will differ from a traditional enterprise is that the products they are working on will constantly evolve in response to the real world at a rapid pace, rather than simply in response to requirements being pushed upon them by the organization. It is no longer enough to build something to meet some acceptance criteria and then push it out into the world; you and your team will have to check that any change you've made is actually having the impact you want it to have.
>
> Getting into a position to do this can be hard unless your team is truly working as a core part of your organization. Any new feature you build or change you make also requires you to understand why that change is being made—is it to increase sign-ups or sales, or to satisfy some other business need? Once you understand this underlying motivation, then shipping a feature is no longer enough, if that feature cannot satisfy this underlying cause.”
>
> _Excerpt From: Chris Northwood. “The Full Stack Developer.”_

It has been said there are two kinds of unknowns: Those you know and those you don't. A "known unknown" is when you recognize where a knowledge gap is; while an "unknown unknown" is when you don't.

You typically learn these "unknown unknowns" on the job, but The Full Stack Developer is a jumpstart down that path. If you want to be a professional software developer then you need this book. There is a lot of information to gain, and nothing to lose.
Which one should I use for my new project? RoR, Django or Laravel?
Tags: discuss, ruby, python, php
Published: 2019-11-14 20:35:16

Hey there people.

So I have a new project that's not forced to be written using a specific language or framework and I wanted to ask if anyone has any suggestion about any of these three frameworks for the back-end?

I know Laravel and it was my first choice but I want to try a new one too.

Front-end is going to be on Nuxt.js (My favorite XD) so the back-end is only going to be used for building RESTful.

The website is going to be a very simple social network so nothing very special is needed.
"Practically" Accessible
Tags: todayilearned, a11y, design
Published: 2019-11-14 20:22:37

I was designing a button component today, and it was looking pretty good. But when I decided to check accessibility with a plugin, I realized that I had issues. I spent hours playing with my design before I came to a wonderful conclusion. *Dark text on a light background is more accessible than light text on a dark background.*

![A side-by-side comparison of accessible buttons](https://thepracticaldev.s3.amazonaws.com/i/bknslaecpkrp9i5dl9nr.png)

That's my a11y gem for the week. I'd love to hear what you've picked up recently.
Let's get philosophical: how do you know when you're a dev?
Tags: explainlikeimfive, career, beginners, discuss
Published: 2019-11-14 20:20:53

This might be a bit of a weird, fuzzy one, but...

I recently was talking to a PhD student who has been sitting in with my team at work. His chosen line of study is how teams use Slack for communication. During our interview the other day, I mentioned that I had used Slack at many offices, both before I became a developer and after.

This turned into a tangent about my journey learning to code, and eventually he asked me this question:

### *"How do you know when you're a developer?"*

It made me pause for a moment, mostly because I realised I had no idea what to say!

So what do you think?

* If you did a course (university, bootcamp, etc) are you a developer when you finish? Before you finish? Some time after?

* What if you are self-taught? When do you pass this invisible line?

* When we know a certain number of things or have learned a certain number of skills?

* Is it some other metric?

I know that this is one of those questions where nearly everyone's answer will be different, and of course every answer will be valid because of our different experiences. So let's hear it 👉🗣👂
Truc tiep bong da ibongda LIVE
Tags: ibongdalive, tructiepbongda
Published: 2019-11-08 08:29:34

Ngoai viec xem truc tiep bong da hom nay thi khi den voi Ibongda LIVE, cac ban cung duoc “tro ve qua khu”, hoi uc lai ky xua cua doi tuyen Viet Nam. Day deu la nhung ky niem khong the nao quen. 
Tiger Cup 1998 la ki uc buon cua "the he vang" ngay ay. Chung ta thang Thai Lan den 3-0 trong tran ban ket. Niem hy vong dang tran, nhung sau do lai ngam ngui thua cay dang 0-1 tai Hang Day, dau chung ta ap dao ca tran truoc nguoi Sing, nhung lai khong the thang noi cai lung cua Sasi kumar.
O vong bang AFF Cup 2008, trong mot hoan canh ngat ngheo (phai thang moi nuoi hy vong vuot qua vong dau bang) ĐTVN duoi thoi HLV Calisto choi nhu khong con gi de mat. The nhung Malaysia cung kien cuong chang kem, go hoa trong ca 2 lan bi dan truoc. Va nhu mot dinh menh, Vu Phong da "sua chua sai lam" cua dan anh The Anh nam nao, cung dung mot pha chuyen dai hon 70m, bong dap dat va thu mon Malaysia cung mac mot loi tuong tu. 
Tai Kallang Roar, DTVN den Dao quoc Su tu trong su lo lang cua nguoi ham mo sau khi da de hoa Singapore o luot di tran ban ket. Nhung rot cuc, Viet Nam da thang doi chu nha, dung nhu cai cach ma nguoi Sing da lay chiec cup o Hang Day nam nao. Quang Hai (1985) nhu tu duoi dat chui len, dem bong vao luoi trong sau no luc di bong tuyet voi cua "CV9". Viet Nam thang, va di mot mach den chiec cup vo dich nam 2008 cung tu mot mon no duoc lay lai nhu the.
Cap nhat link xem truc tiep bong da hom nay tai Ibongda LIVE. 
----------- Thong tin lien he ------------------
Kenh ibongda LIVE - Suu tam nguon truc tiep bong da moi ngay de phuc vu nhom doc nhai yeu bong da ma ko so huu co hoi duoc xem vi ly do gi do, chung toi la nhom thanh vien hoat dong phi loi nhuan, dung cho niem say me cong trai bong.
Social: https://medium.com/@ibongdatv
Dia chi: 63 Lang Ha, Dong Da, HN
Website: https://ibongda.live/
Email: lienhe.ibongdatv@gmail.com
I have some bad habits that date back to my days making Geocities websites before CSS was much of a thing
Tags: beginners, codenewbie, webdev
Published: 2019-11-14 20:05:19

Experience can be a bad thing. It is this that makes junior developers such a positive part of any team. Folks from different backgrounds who never learned the bad habits of those that came before them.

By bad habits, I mean little things where I use a certain HTML tag or attribute that you'd only use if you started using it before the other thing existed. These things stick.

To all the code newbies out there, you have a perspective I can't possibly have anymore, and a certain skillset orientation that I will never have. Bring this awareness with confidence into your next job interview.

![](https://media.giphy.com/media/g9582DNuQppxC/giphy.gif)

_Geocities is definitely my coding origin story. Folks that came up on Commodore 64 or anything else have their own versions of this. We still bring a lot of value, so don't think of us as dinosaurs, but we need new blood all the time in this industry!_
How to deploy Headless WordPress + React Js to production
Tags: explainlikeimfive
Published: 2019-11-14 19:47:32

Hi there!

I have been working for the first time on a project which uses a Headless Wordpress as a backend and React Js as a frontend.

Once finished, I wonder how could I deploy it to production. I have been reading documentation and trying to figure out how it should work, but I´m still pretty far away to understand it properly.

I would appreciate any kind of tips or linked tutorial so that I can get it.

Thanks in advice!
What is the Designation of UX/UI coder.
Tags: android, ux, design
Published: 2019-11-14 19:45:22

Hi 
I have been working in the software development sector for 5+ years, heard lots of designation. But I was wondering, what should be the title for, who devs mobile app frontend & convert UI/UX to the real prototype.

Like in Android app development, he/she makes XML layout design from a wireframe.

I hope someone can help to get proper answers.


Thanks
👨🏻‍💻 Icons created with CSS - Series 1 
Tags: css, design, javascript, html
Published: 2019-11-14 19:29:02

[ReactJS Icon](https://jsitor.com/JX9h9TREy)
{% jsitor JX9h9TREy?css&html&result %}

[VueJS Icon](https://jsitor.com/DFiGCZAgI)
{% jsitor DFiGCZAgI?css&html&result %}

[Heart Shape](https://jsitor.com/8jA12r64k)
{% jsitor 8jA12r64k?css&html&result %}

[Google Analytics Icon](https://jsitor.com/iPnsOh0fA)
{% jsitor iPnsOh0fA?css&html&result %}

[Bell Icon](https://jsitor.com/2_Mtdj050)
{% jsitor 2_Mtdj050?css&html&result %}
Change page orientation of a Word document in C#
Tags: dotnet, csharp, orientation, docsmanipulation
Published: 2019-11-14 19:10:25

Do you want to change orientation (e.g. landscape, portrait) of a single or multiple pages in a Word document? GroupDocs.Merger for .NET allows you to do this with just a few lines of code.

Usage

Below are the steps to change page orientation:
<!-- wp:list -->
<ul>
<li>Initialize OrientationOptions class with desired orientation mode and page numbers</li>
<li>Instantiate Merger objectwith source document path or stream</li>
<li>Call ChangeOrientation method and pass OrientationOptions object to it</li>
<li>Call Save method specifying file path to save resultant document</li>
</ul>
<!-- /wp:list -->
Continue reading : http://bit.ly/32HzJL9
My First Blog About Game Development.
Tags: ctf
Published: 2019-11-14 18:45:29

Hello.

Today I'm writing because I recently came back to using ClickTeam Fusion 2.5. I've used the program before and tried making games on it. I like the program because the program has like it's own logic system where it doesn't require to know code at all and you can make games both on android and ios on it.

My game development

My game development started in summer, but the development had to be stopped because school has recently started. Now that I have some free time and found my files in my google disc I'm continuing the work I started.

Main problems

Main problems was that I have made 2 potions ( health, and strenght ) but I had a problem with figuring out 50/50% to drop them, everytime I killed a mob I got only one potion.

The other problem was text above the potions, Basically I wanted to make so that you could see what potions give after using it. But the text got spread out trough all of the application, so I'm working on fixing it.

Future plans.

The future plans was that when I got to the point of running the game properly I'll start to making characters that actually look like characters and not colored blocks HAHA!

Next plan is learning #JavaScript (JS) so I could transfer my game to a website. And making forums aswell.

The next thing is introducing Multiplayer to the game where you can create lobbies and co-op with your friends.

-That's all for now, thank you for reading!
(11/14/19)
📢 VSCode Data Preview 🈸 November 2019 Update
Tags: showdev, vscode, data, preview
Published: 2019-11-14 18:00:56

---
title: 📢 VSCode Data Preview 🈸 November 2019 Update
published: true
description: vscode Data Preview 🈸 v1.49.0 update
tags: #showdev #vscode #data #preview
---

[Data Preview 🈸](https://dev.to/tarasnovak/visual-studio-code-data-preview-41no) v1.49.0 update is out in VS marketplace now, with new #ndjson & #jsonl #dataFormats support, updated #perspectiveJS v. & new #vaporwave #dataView #uiTheme ...

### New high contrast blue vaporwave data view UI theme:

![vscode-data-preview-vaporwave-theme](https://user-images.githubusercontent.com/656833/68880421-d7b2b980-06d0-11ea-907c-fa32c10ec3ca.png)

### New `.ndjson` & `.jsonl` (JSON Line) language settings & latest install stats:

![vscode-data-preview-contributions](https://user-images.githubusercontent.com/656833/68881467-cbc7f700-06d2-11ea-8ae7-82f95b3697b1.png)

### `.ndjson` Example:

![vscode-data-preview-ndjson](https://user-images.githubusercontent.com/656833/68881550-ea2df280-06d2-11ea-9e73-7dd83d0d72ba.png)

📥 https://marketplace.visualstudio.com/items?itemName=RandomFractalsInc.vscode-data-preview

👀 https://github.com/RandomFractals/vscode-data-preview/releases

Enjoy our #dataPixy 🧚‍♂️ #dataViz 📊📈 #vscode #devTools! 🤗

More info here: {% link https://dev.to/tarasnovak/visual-studio-code-data-preview-41no %}
JavaScript Data Structures: Singly Linked List
Tags: beginners, javascript, tutorial, webdev
Published: 2019-11-14 17:37:22

---
title: JavaScript Data Structures: Singly Linked List
published: true
description: JavaScript Data Structures
tags: beginners, javascript, tutorial, webdev
series: JavaScript Data Structures
---

## Intro 

This is a new series about Data Structures in JavaScript.

I will give you some details about the Data Structure and then we implement the Data Structure in JavaScript. The parts will be short, because most people have to familiarize with the logical steps and concepts behind it.

If you aren't familiar with Big O Notation, read the article in the [Simple Wiki](https://simple.wikipedia.org/wiki/Big_O_notation). Don't get caught in the details, only try to grasp the concept.

Simple example: If I have a todo list with pen and paper and I want to add a new todo to the end, that's `O(1)`. Why? No matter how long the list actually is, adding a new todo to the end always requires the same amount of work.

Today we start with a simple one: Singly Linked List.


## Singly Linked List

- simple example in real life: a treasure hunt, where you have a starting point and have to seek places and solve riddles in a particular order; the current place knows about the next place, but the current place doesn't know about the previous place


### What is a Singly Linked List?

- consists of nodes
- each node has a value and a pointer to the next node (or null at the end of the list)
- has a head (=start), a tail (=end) and a length
- has no index like an Array
- "singly" because only one connection to another node (the next one)
- access has always to start from the start (`O(N)`)
- insertion is cheap (`O(1)`)
- deletion can be cheap (`O(1)` (head) or `O(N)` (tail))


### What is an Array?

- every element has an index
- accessed is cheap (`O(1)`) (every element has an index)
- insert and delete can be expensive (`O(N)`) (index has to be shifted)


### Big O of Singly Linked List

- Access: `O(N)`
- Insert: `O(1)`
- Delete: `O(1)` (head) or `O(N)` (tail)
- Search: `O(N)`


### When to use a Singly Linked List instead of an Array?

- if you insert data often (SLL: `O(1)`)
- if you delete data at the head often (SLL: `O(1)`)


### When NOT to use a Singly Linked List instead of an Array?

- if you access data often (Array: `O(1)`)

---


### Next Part

We will implement the first part of our Singly Linked List in JavaScript. If you want to be notified, [subscribe](https://miku86.com/) :)

---

### Questions
- Did you ever use a Singly Linked List in a project? Why?
- Do you have some good real life examples for a Singly Linked List?
Logics in Models -> Model Driven Development
Tags: android, mdd, design, model
Published: 2019-11-14 17:31:38

I am doing a project by having the logics in model instead of presenter/controller.

By keeping the business logic in model, We can able to abstract the logic such a way that it cannot be accessed outside and thereby causing bugs.

Also, The models are created by designing the class diagrams and sequence diagrams.

Looking for people to help me build that and provide feedback.

The project idea is same as IFTTT app.

https://github.com/praslnx8/SmartSettings
The best way to KILL (..a process on Mac or Linux)
Tags: linux, macos
Published: 2019-11-14 17:21:56

---
title: The best way to KILL (..a process on Mac or Linux)
published: true
description: Here's a great way to kill a process from the terminal, which works on both Mac and Linux!
tags: linux, macos
---

What's the best way to kill a process in Linux (or Mac)?

Ok, I lied, it's actually probably not the **best** way.  There are probably better ways to use only `ps` to find the processes you're looking for.  But this method uses two awesome shell tools, `grep` and `awk`, which you can use in other ways.

The final command I use is:

`kill -9 $(ps aux | grep "[y]our-process-name" | awk '{print $2}')`

That's going to send a `SIGKILL` to every process you grepped for.

How did we get there?

__1. Find the processes you want to shut down__

`ps aux` is going to print out all of the processes currently running, including the name of the user that is running it.

We don't necessarily need all that information right now, but it's a good command to remember if you ever need to see what's running on a system.

Next, we'll filter out the processes we want to find using a search query.  Often, I'm trying to kill detached Django dev server instances, which run under the command `python manage.py runserver`.  To filter those out, I'll run `ps aux | grep manage.py`.

Unfortunately, this also locates the `grep` process itself (since `grep` will be running still when `ps aux` is executed).  By the time we get to our `kill` function, the `grep` process will be finished, so I use a little trick to filter out the `grep`: `ps aux | grep "[m]anage.py"`.  If you want to skip that, no problem.. you'll just see an error message that you weren't able to kill one of the processes.


__2. Get the process IDs__

`awk` is a cool tool designed for processing patterns & text.  After we run `ps aux | grep "[m]anage.py"`, we have tabular output. The process ID is in the second column of the output, and `awk` helps us to only print that second column.

How?

You just pipe your output to `awk '{print $2}'`.

__3. Kill it!__

Finally, we wrap all of that up into a subquery, and kill the result:

`kill -9 $(ps aux | grep "[m]anage.py" | awk '{print $2}')`

Keep in mind that this is a process suicide, not graceful shutdown.  You can do a lot more with [POSIX signals](https://en.wikipedia.org/wiki/Signal_(IPC)#POSIX_signals) if you're interested.

---

Hopefully this tip was helpful for you!

Follow me here on dev.to or on [Twitter @connorbode](https://twitter.com/connorbode) for more on Linux, web, and app development!
Colour theory for Programmers
Published: 2019-11-14 16:41:54


The origins of colour theory can be traced back to the fifth century BC, when Hippocrates identified four distinct energies exhibited by different people. The Colour Profile is built around the model of personality first identified by the Swiss psychologist Carl Gustav Jung.

This model was published in his 1921 work “Psychological Types” and developed in subsequent writings. Jung’s work on personality and preferences has since been adopted as the seminal work in understanding personality and has been the subject of study for thousands of researchers to the present day.

Using Jung's typology, the colour profile offers a framework for self-understanding and development. Research suggests that a good understanding of self, both strengths and weaknesses, enables individuals to develop effective strategies for interaction and can help them to better respond to the demands of their environment


**Fiery Red**

People with a preference for Fiery Red energy are extroverted and have high energy. They are action oriented and always in motion. They will approach others in a direct, authoritative manner, radiating a desire for power and control.

**Sunshine Yellow**

People with a preference for Sunshine Yellow energy are strongly extroverted, radiant, and friendly. They are usually positive and concerned with good human relations. They will approach others in a persuasive, democratic manner, radiating a desire for sociability.


**Earth Green**

People with a preference for Earth Green energy focus on values and depth in relationships. They want others to be able to rely on them. They prefer democratic relations that value the individual and are personal in style, radiating a desire for understanding.

**Cool Blue**

People with a preference for Cool Blue energy are introverted and have a desire to know and understand the world around them. They prefer written communication in order to maintain clarity and precision, radiating a desire for analysis.



# Colour Energy and programming:

 
Great Programmers have aspects of all colours

 “We will encourage you to develop the three great virtues of a programmer: laziness, impatience, and hubris.” 

*Larry Wall, Programming Perl*

- Green/Blue - Laziness - The quality that makes you go to great effort to reduce your overall energy expenditure. It makes you write robust, modular, well-documented programs so you can reuse the code.
- Red - Impatience -The anger you feel when the computer is being lazy, which happens when another programmer is not lazy. It makes you write programs that use minimal code so they’re fast, efficient, and anticipate what needs to be done. 
- Yellow - Hubris - The pride that makes you write and maintain programs that you and your peers will admire. If hubris is uncontrolled or undeserved, it can also get you in trouble.


Knowing your colour helps you to uncover who you are and how you interact with others. It can take you to places that you never expected. From one-to-one coaching to team development and improved sales and leadership skills, we use so many different energies.