teleren/devto huggingface dataset:
new medium account
Tags: medium, blogs
Published: 2018-09-01 19:31:35

---
title: new medium account
published: true
description: trying out new medium account over blogger, might have some double posting of posts since i already pulled them from blogger
tags: medium,blogs
---

Started a [medium account](https://medium.com/@kritner), and am in the process of moving my [kritner.blogspot.com](https://kritner.blogspot.com) posts to it, I may have some double posts here shortly... hopefully that's ok.
Growing up… or something
Tags: careerchange, careerdevelopment, adulting
Published: 2018-09-02 21:48:21

---
title: Growing up… or something
published: true
tags: career-change,career-development,adulting
canonical_url: https://medium.com/@kritner/growing-up-or-something-75645187b302
---

I changed my RSS feed to medium over my blogger, and these keep popping up... so REPOST (though i may have changed some content)

I would like to try to start blogging more, though I’m not sure what about. Getting closer to 30 years old and Kristen and I have finally had to buy our first washer and dryer — I feel like an adult :P This week, after 5 years with Peregrin, I have put in my 2 weeks notice while accepting an amazing offer as a Senior Web Developer at another company. The company sounds like a great opportunity to continue learning, as well as offering my own knowledge and experience to them. I feel that I needed to leave Peregirn in order to keep relevant, in order to start anew, and to keep growing. I will miss Peregrin and the employees, but it is simply time to move on.

Up next, I will be concentrating on the furthered development of my front end skills, as well as continue studying for my next certification. I might attempt to do blog posts about tutorials and/or things I would like to learn about next. Guess we shall see.

_Originally published at_ [_kritner.blogspot.com_](https://dev.to/kritner/growing-up-or-something-564p) _on May 11, 2014._
TightVNC too many authentication failures [Resolved]
Tags: vncserver, tightvnc, rdp, ubuntu
Published: 2018-09-01 15:38:45

---
title: TightVNC too many authentication failures [Resolved]
published: true
description: Solution for "Authentication reason Too many authentication failures"
tags: vncserver, TightVNC, RDP, ubuntu
---
##The Problem
![vnc server the authentication error with too many authentication failures](https://thepracticaldev.s3.amazonaws.com/i/qdt7kcnqmrab1xjsbr60.png)

You want to access ubuntu server with its graphical user interface you install TightVNC or x2go. I installed TightVNC's vncserver in my Ubuntu and was able to access it for a few days and then suddenly saw this: "Authentication reason: Too many authentication failures". That drove me nuts and wouldn't let me in. 

The problem may occur by you, making too many failed attempts to login to vncserver, or it can be bots accessing your server with brute force methods.

## The Solution:
You will have to kill the vnc process and restart it to gain access to the vncserver again. Connect to your server via ssh and run the following command
```
pgrep vnc

// the output will look like following but yours will be different (sure thing)
17732
23723
```
You will see one or more process ids that are running against vncserver. Just run the following command for each process id
```
kill PID

// In my case I ran the following two since I had two process ids
kill 17732
kill 23723
```
Now you have killed TightVNC on your Ubuntu. Turn it on again and you'll be fine to connect again. To make the VNC up and running again, run the following command.
```
vncserver -geometry 1920x1080
```
![vnc server the solution to authentication error with too many authentication failures ](https://thepracticaldev.s3.amazonaws.com/i/ia674uwp94n3ezsuonk6.png)
That's it!

TightVNC working again on my server:
![TightVnC connection made again after fixing authentication error with too many authentication failures](https://thepracticaldev.s3.amazonaws.com/i/m3tcps4s4p6lyg427enh.png)
Further, read on how to prevent this from happening again can be found here by [solveopti](https://solveoptimized.com/how-to-resolve-prevent-too-many-authentication-failures-with-vnc/).

You can help improve this article on github (File is named same as the title of the article)
{% github https://github.com/Juni4567/dev.to %}
Apollo server or client?
Tags: apollo, graphql, vue, help
Published: 2018-08-31 14:32:53

---
title: Apollo server or client?
published: true
description: The graphQL landscape is complicated and I need help navigating it
tags: apollo, graphql, vue.js,help
---

I need to create a set of web tools for the company I started.
Since it's my company, I'm the one to decide on the technology to use and since it's a side-business for the moment, I'm not in a hurry to choose (within limits off course).

It's been a while since I've programmed in anything else than .net and C# or basic javascript with jQuery (anyone remembers this? :D) but I had the chance once to play with Node.js with PhoneGap and that made me want to try **Node.js** more.

I also recently tried **Graphql** and I loved it so now I want to use it.

After reading a lot of different things about **Node.js** and **Graphql** and all the solutions around them, I've come to the conclusion I wanted to create a solution combining **Graphql + Apollo Server** on the server side and **Apollo Client + Vue.js** on the client side.

I see the server side as an API and maybe even later use it with mobile devices application but that's for later.


![Graph] (https://thepracticaldev.s3.amazonaws.com/i/uxqscxzwwgs3g5g5aost.png "What I'm thinking of doing")

As a test, I could create a quick API with **graphql** and **Apollo Server** but now that I need to create the client side, I'm a little lost on how to implement this.

I'm wondering ... Do I really need both version of **Apollo**?
I like having the flexibility of an API but would you recommend to go simply with **Apollo Client + Vue.js + Graphql**?

Also, in my current plan, would I lose the benefit of **Apollo Client** if I don't use it directly with **Graphql**?
Is NPM registry not working ?
Tags: discuss, javascript, help, node
Published: 2018-09-01 13:11:52

---
title: Is NPM registry not working ?
published: true
description: The discussion about whether NPM website is down. 
tags: #discuss,#javascript,#help,#node
---

Hello Everyone.

Today while I was workig on a Node JS project suddenly I was not able to install any packages using `npm` command.

I am getting below error whenever I am trying to install any package

![npm install error](https://thepracticaldev.s3.amazonaws.com/i/y960c5vu6oeyksudfu0t.png)

So when I visited NPM regitry website I got following message.

![npm registry website](https://thepracticaldev.s3.amazonaws.com/i/tk32ygr6npvjw9k84q7b.png)

Is anyone else getting the same error when trying to install a node package ?.
If Your Eyes Are Fooling You: Up-to-Date Content: Books vs. Websites
Tags: showerthought, discuss
Published: 2019-06-05 15:13:49

---
title: If Your Eyes Are Fooling You: Up-to-Date Content: Books vs. Websites
published: true
tags: Showerthought,Discuss
canonical_url: https://genieblog.ch/wenn-deine-augen-dich-taeuschen-akltualitaet-des-inhalts-von-buechern-vs-content-von-websiten/
---

Unlike books and newspapers, old websites can be updated in design so that content looks up to date again without it being! Sure, you can release a new edition of a book or reprint the newspaper. Still, I would say it is not comparable to the simplicity of doing that to a website, most importantly the distribution part. For anyone visiting the website it will have a fresh look; the book would have to be rebought, and who does that when you still have the old edition?

For certain applications, I am absolutely sure this is a wonderful thing that has to be embraced. For others, I can see some problems; outdated data, scientific results or best practices should be clearly distinguishable as such. Not sure how to cope with that; never forget to look at the date of a blog post? 

It can certainly be used for evil, will be, is used for evil; additionally, asserting the date – if there is any – as an outstander is probably impossible.
Lots of fun with "hover" css selectors on mobile devices
Tags: css, mobile
Published: 2018-09-01 12:45:16

---
title: Lots of fun with "hover" css selectors on mobile devices
published: true
description: 
tags: css, mobile
---

![](https://thepracticaldev.s3.amazonaws.com/i/q3e47r86fg442793yqb8.png)

Welcome to Mario's "I have no idea what I'm doing" dev.to posts :)

I am by no means a designer or in-depth CSS expert, but have recently had cause to work on some CSS for a web-based chatbot component. It had to work both on desktop and mobile browsers, and while the majority was quite straightforward, I came across some interesting behaviour by mobile browsers around the "hover" selector on buttons.

***In short: mobile browsers seem to apply "hover" style to buttons that have focus.***

This kind of confused me - the majority of mobile browsers (both on Android and iOS) applied the "hover" style to the button that had focus. This wasn't really what I was after, so I thought I'd wrap the hover style in a media query, to stop browsers than can't really hover (i.e. mobile browsers) from using it:

```
@media (hover: hover) {
```

However, this did not work, as it appears most mobile browsers consider themselves to be able to hover (via a long press). Damn. Ok, let's try the opposite:

```
@media not all and (hover: none) {
```

Still no luck, for the same reason as above I'd guess.

So the next thing I was looking at was the "pointer" media query, and hey presto, using "pointer: fine" appeared to work much better, as mobile browsers clearly don't consider themselves to have a fine pointer. There's only one problem with this: Firefox doesn't support it (yet?). To work around this, I added "-moz-touch-enabled: 0", so I ended up with this media query:

```
@media (-moz-touch-enabled: 0), (pointer: fine) {
```

This finally worked great, with one exception: the "hover" effect now doesn't kick in on Firefox on a laptop with a touch screen. I think I (or rather the client) can live with that, as at least it means the buttons now render as expected in all mobile browsers, and in all desktop browsers except the "Firefox + touch screen" combo.

Sharing this in the hope it may help someone down the line, but equally - I am no CSS expert by any stretch, and as I said, the "solution" isn't really a perfect solution in any case - if anyone reads this and shakes their head at my incompetence, please let me know any better solutions in the comments!
#help : teat results management tools
Tags: reportportal, testresults, automationtests
Published: 2018-09-01 12:25:40

---
#help : teat results management tools
published: true
description: 

tags: reportportal, test results, automation tests
---


I loved repoetportal.io for automation test results management. I still would like to know is there any other tools or frameworks available in open source
4 years ago I challenged myself to write smallest and fastest markdown parser
Tags: php, markdown, parser, showdev
Published: 2018-09-01 11:56:48

---
title: 4 years ago I challenged myself to write smallest and fastest markdown parser
published: true
description: 
tags: php, markdown, parser, showdev 
---

Four years ago I challenged myself to write the smallest and fastest markdown to html parser and in a matter of days that got real. Although it was not complete implementation of all markdown specs it still was usable for many cases.

And I named it **htmlup**! Packed in one single file, one single class and one single method it was less than 220 sloc.

{% github adhocore/htmlup %}

You can check the initial working version [here](https://github.com/adhocore/htmlup/blob/f964b2f2d8c18fb9fa7561a4772acd1b685176a7/HtmlUp.php)

Although the [current](https://github.com/adhocore/htmlup/releases/tag/0.2.1) version is a bit verbose, it still carries the same core concept of parsing:

> 1. split the markdown into lines and parse one by one as a human would do
> 2. apply block element rules where applicable to get html
> 2. apply any span element rules finally

***Bonus:*** It supports table syntax too :)

PS: Before you ask, I know the shortcomings of it and I wouldnt recommend using it in anything serious.

If it inspires you to think bigger problems in small and most basic perspective, or if it encourages you to implement a port in different platform, that would be *great*.

Thanks for reading! :)
How to Insert a Screenshot Into a Microsoft Word Document in java
Tags: java, screenshot, corejava, screencapture
Published: 2018-09-01 11:24:36

---
title: How to Insert a Screenshot Into a Microsoft Word Document in java
published: true
description: How to Insert a Screenshot Into a Microsoft Word Document in java
tags: #java #screenshot #corejava #screencapture
---

Post Link : <a href="https://www.skptricks.com/2018/09/how-to-insert-screenshot-into-microsoft-doc.html" > How to Insert a Screenshot Into a Microsoft Word Document in java </a>

This post explains <a href="https://www.skptricks.com/2018/09/how-to-insert-screenshot-into-microsoft-doc.html" > how to capture or insert screenshots into  a Microsoft word document</a> easily with help of java code. Also this code you can integrate in selenium framework to capture screen of various pages during test execution.

<img src="https://2.bp.blogspot.com/-gCcvHEKpPW4/W4puHXkE0QI/AAAAAAAAB3A/NwpURG-UnfoynAp0K2zKTg5ItGZQRVOHQCLcBGAs/s400/ja.jpg" />

<a href="https://www.skptricks.com/2018/09/how-to-insert-screenshot-into-microsoft-doc.html" > Click view source code </a>
Hoverable Component with Render Props
Tags: react, javascript, typescript, renderprops
Published: 2018-09-01 10:03:46

---
title: Hoverable Component with Render Props
published: true
description: 
tags: react, javascript, typescript, renderprops
---

This week I had to implement some onHover behavior for a component but wanted to make it reusable and not have it as part of my component's state.

I have only been developing with React full time for the last 6 months so was struggling to come up with a clean way to do this. 

Luckily I also started watching @kentcdodds's [Advanced React Patterns](https://blog.kentcdodds.com/updated-advanced-react-component-patterns-51c34b44b1df) where he explains how you can achieve this using render props.

So I implemented `Hoverable` with a render prop (children). I can then pass it my existing component which takes in a prop `hovered` and I can easily reuse it for other components.

![Demo of usage in CodeSandbox](https://thepracticaldev.s3.amazonaws.com/i/duco99rsp98pm2931t5i.gif)

Below is an example of how I implemented. You can also find it in this [CodeSandbox](https://codesandbox.io/s/428k7zr2m9)

With Typescript I wasn't able to use `children` as the prop so I used a `render`prop... literally! You can see that in this [CodeSandbox](https://codesandbox.io/s/wr07w001k)


```jsx
import React from "react";
import ReactDOM from "react-dom";

import "./styles.css";

class Hoverable extends React.Component {
    state = { hovered: false };
    render() {
        return (
            <div
                onMouseEnter={() => this.setState({ hovered: true })}
                onMouseLeave={() => this.setState({ hovered: false })}
            >
                {this.props.children(this.state.hovered)}
            </div>
        );
    }
}

function App() {
    return (
        <Hoverable>
            {hovered => <div>{hovered ?  "🔥" : "🦄"}</div>}
        </Hoverable>
    );
}

const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);
```
Custom Applicaion Framework Necessary for Large Team and Large System?
Tags: discuss, architecture
Published: 2018-09-01 09:38:07

---
title: Custom Applicaion Framework Necessary for Large Team and Large System?
published: true
description: 
tags: #discuss #architecture
---

Someone may argue that application applications may not necessary as it would block the creativity and productivity somehow. 

I think it is a most for a big team and system. It can be something to guide your users and developers. 

What is your opinion on a framework.
How to manage a team when deadlines are short
Tags: help, discuss, manage, planning
Published: 2018-09-01 07:58:35

---
title: How to manage a team when deadlines are short
published: true
description: 
tags: help, discuss, manage, planning
---

I recently got a job as a designer.Last week I was promoted to head the frontend and design team.Yeah!✨🎈🎉🎊



No, no yeah!!



The joy disappeared very quickly because I have to manage my team but I'm lost on one thing in particular: scheduling tasks.



As far as design is concerned, I'm still okay (but I'm interested in new approaches) but I don't know how to plan the tasks from the frontend.



We will use ReactJS as framework.so if there are methodologies we can use with thanks.



One of the major concerns is time.

I wanted to start on Brad Frost's atomic design but you need an MVP by the end of the month and the boss wants results every week.



How to deal with it?

Any help is appreciated
What's with the 🦄?
Tags: question, discuss, meta
Published: 2018-09-01 04:34:48

---
title: What's with the 🦄? 
published: true
description: A question about the unicorn 🦄 reaction. 
tags: question, discuss, meta
---

So, I've been on dev.to for a while now and I have yet to figure out or decide exactly what to do with the unicorn 🦄 reaction to posts.

My thoughts so far end with you'd use it if a post is one of a kind, a unicorn you might say. (I'll see myself out)

But really, I'm curious what your thoughts are and if I just missed something massive that tells me exactly what it is. Thanks in advance 😊
Constructor Chaining In Java with Examples
Tags: java, code, corejava, javalearn
Published: 2018-09-01 03:30:50

---
title: Constructor Chaining In Java with Examples
published: true
description: Constructor Chaining In Java with Examples
tags: #java #code #corejava #javalearn
---

Post Link : <a href="https://www.skptricks.com/2018/09/constructor-chaining-in-java-with.html" > Constructor Chaining In Java with Examples
 </a>

Calling a constructor from the another constructor of same class is known as <a href="https://www.skptricks.com/2018/09/constructor-chaining-in-java-with.html" >Constructor chaining</a>. The real purpose of Constructor Chaining is that you can pass parameters through a bunch of different constructors, but only have the initialization done in a single place. This allows you to maintain your initialization from a single location, while providing multiple constructors to the user. If we don’t chain, and two different constructors require a specific parameter, you will have to initialize that parameter twice, and when the initialization changes, you’ll have to change it in every constructor, instead of just the one.


<img src= "https://3.bp.blogspot.com/-SPb95R2-aSA/W4oFNjBK8rI/AAAAAAAAB20/KdcUB9Z6F-AjRscsk7UsO1Na6LwFhEDegCLcBGAs/s400/cc.jpg" />

<a href="https://www.skptricks.com/2018/09/constructor-chaining-in-java-with.html">Click to view example </a>
Web App or LAMP?
Tags: help
Published: 2018-08-31 21:25:59

---
title: Web App or LAMP?
published: true
tags: help
---
Hi guys, and ladies.

I am a freelance and I have a project, a website with a catalog of proudcts, profiles and "mini-stores" within the same website. The boss wants a web app.

All sponsors say Web App.

Is it a good idea, a Web App for public access and production?
Engineering Diversity
Tags: devlive, diversity, culture
Published: 2018-08-31 20:49:49

---
title: Engineering Diversity
published: true
description: 
tags: devlive, diversity, culture
---

The way we talk about engineers impacts whether people try engineering, how confident they feel, and our perception of their competence.

Sue Loh has been developing operating systems at Microsoft for over 19 years, and is now a Principal Software Engineer working on Windows performance. She has also been participating in and running programs to get more high school students into computer science for over a decade. This talk is part of her http://EvilPlanToSaveThe.World! She also plays with and organizes for the Seattle women’s ice hockey community, which helps her have the energy to keep up with her 3 active children.

*This DEV Live Stream was recorded on August 28, 2018*
Join the next Live Stream. See all upcoming events [here](https://dev.to/events).
What do YOU think about edX ?
Tags: discuss
Published: 2018-08-31 19:35:03

---
title: What do YOU think about edX ?
published: true
description: People's opinions on edX
tags: discuss
cover_image: https://www.vectorlogo.zone/logos/edx/edx-card.png
---

 Everyone should know about edX, the open 'online course provider' with over 14 Millions users, created by Massachusetts Institute of Technology and Harvard University. (Provided by wikipedia)

 They claim that their certificates would help you get a better job, a promotion or even a college application. But what does the community think about it, is it worth it and did any body earn something with their certificates before.
A simple and useful #react component for helping with asynchronous loading/fetch data
Tags: react, javascript, request, axios
Published: 2018-08-31 18:25:53

---
title: A simple and useful #react component for helping with asynchronous loading/fetch data
published: true
description: A simple and useful #react (web or native) component for helping with asynchronous loading/fetch data
tags: react, javascript, request, axios
---

Glad to announce another open source project published: AsyncFetcher 👈 

A simple and useful #react (web or native) component for helping with asynchronous loading/fetch data.

https://github.com/lucasferreira/react-async-fetcher
https://lucasferreira.github.io/react-async-fetcher
Google App Scripts Grows Up into No Code App Maker
Tags: nocode, nocodedev, workflow
Published: 2018-08-31 18:13:34

---
title: Google App Scripts Grows Up into No Code App Maker
published: true
description: No Code Development Takes Over Google
tags: #nocode #nocodedev #workflow
---

http://nocodedev.com/a-few-steps-ahead-of-google-and-riding-the-no-code-development-wave/

There are already highly profitable consulting shops built around App Scripts, looks like they'll be able to hop on board a bigger train now. This will be fun to watch - especially if Google removes the domain level restriction for these apps.
How to start to contribute to open source (properly)? 🤔 Step 1
Tags: opensource, timemanagement, programming
Published: 2018-08-31 17:09:32

---
title: How to start to contribute to open source (properly)? 🤔 Step 1
published: true
description: Journey to figure out how to get into open source
tags: 
    - open source
    - time management
    - programming
---

I am writing post series on Medium about getting into [open source](How to start to contribute to open source (properly)? 🤔 Step 1). Comments appreciated.
Let's Talk About Synchronized
Tags: java, softwaredevelopment, threads, synchronization
Published: 2018-08-31 16:53:46

---
title: Let's Talk About Synchronized
published: true
description: A little article about that keyword protecting blocks and methods from threads
tags: Java, software development, threads, synchronization
cover_image: https://thepracticaldev.s3.amazonaws.com/i/mxg6alb6kvpubbk7por5.jpg
---

I've been doing some interviews for a former colleague of mine for a Java position, and one of my favorite questions is around synchronization. Surprisingly, a lot of people get it wrong. I wrote up a little article about it: 

https://blog.osninja.io/lets-talk-about-synchronized/