teleren/devto huggingface dataset:
How to find ideas for beer money?
Tags: startup, money
Published: 2018-08-06 13:46:34

---
title: How to find ideas for beer money?
published: true
description: How to find ideas for beer money? Is it all about little problems? Are you the Startup Guy or the Passive Income Hacker. I don’t know who I am, but I want to be the PIH!
tags: startup,money
---
I've found a website a while ago with a little "fake chat". I'm lucky enough to have saved it, since the website now looks offline... The title was something like "Passive Income hacker (PIH) VS Startup Guy (SG)". [You can see the original discussion on Hacker News](https://news.ycombinator.com/item?id=6108092)

> (SG) What are you working on?
> (PIH) I'm working on a SaaS tool that foos bars.
> (SG) Oh cool, where are you guys based?
> (PIH) Well, it's just me, I'm actually traveling, not based anywhere.
> (SG) Have you raised money?
> (PIH) No, the business is bootstrapped.
> (SG) So you just work out of coffee shops and stuff?
> (PIH) Sometimes, but mostly I don't work. I do other stuff.
> (SG) But what about dev, marketing, customer service etc?
> (PIH) I've automated 95% of the non-dev. 
> (PIH)The other 5% of non-dev I deal with in about 20 minutes a day. 
> (PIH) Every few weeks I'll have a big dev day.
> (SG) How can you scale the business without a team?
> (PIH) Because the business was designed with some very heavy constraints in place.
> (SG) Like what?
> (PIH) I say no to any feature that would require a team to scale / support.
> (SG) That's absurd.
> (PIH) It limits my market drastically, but it's still big enough for me to live comfortably off of.
> (SG) How much are you making, if you don't mind me asking?
> (PIH) 5 figures in profit a month.

> At this point Startup Guy's (SG) body language starts to exhibit some combination of awkwardness, distrust and scorn. He realizes that Passive Income Hacker (PIH) is not a hustler, he's not funded or seeking funding, he doesn't go to the networking events and hasn't been through an accelerator.
>
> He suspects that PIH is not someone who lives to work, and is not passionate about startups. He suspects they have wildly different goals, and that he has nothing to gain from interacting with PIH.
>
> Worst of all, PIH is probably not trying to make the world a better place through technology. He's basically exploiting a narrow arbitrage opportunity and is probably either unethical or lazy.

### How can I find ideas for money, then?

I usually read a lot about "you should solve a problem" for SaaS apps or startups. I don't care, **I want to be the PIH**. Or at least, I don't want to create a SaaS. **I want to have a small source of income**.

**But how do you come up with ideas for apps/website etc... if you want to just get 2/300$ / month with no other needs?**

Is it all about little problems? Is affiliate marketing the only way or there's something else?

Originally published @ [https://coding.napolux.com](https://coding.napolux.com)
Which mobile framework to choose ?
Tags: discuss
Published: 2018-08-06 11:57:56

---
title: Which mobile framework to choose ?
published: true
tags: discuss
---

There are too many mobile app frameworks out there these days such as ionic, fuse, react native, nativescript, xamrin, cordova, etc.

Question: Which is the best framework in terms of:

 - Native or close to native experience
 - Single code (like javascript) base but multiple platforms
 - Performance
 - Allows to use javascript instead of objective C or java
 - Does not use webview for rendering purpose

Thanks
New just for new
Tags: javascript, software, innovation, rant
Published: 2018-08-06 10:07:14

---
title: New just for new
published: true
description: Rant about the speed of innovation
tags: javascript, software, innovation, rant
---

We all know that both software and hardware is innovated daily (if not hourly) these days. If you used node 10.1 yesterday it's time for 10.8 today. Those who don't use Docker and Kubernetes and so on are viewed as ancient relics. As a frontend developer you need to keep track of react, redux, respond, gulp, grunt, bower, yarn, etc, etc, etc.

New frameworks are released daily. For javascript there's even a website called "Days since last javascript framework" ( https://dayssincelastjavascriptframework.com/ ) that is always single digit - and most often at 0.

New languages are released daily. Only the past few weeks we've all seen Hacker news -posts about Joy-lang, Markdeep-lang, Pole-lang, Kitten-lang and so on.

You probably think this ranting cranky old (32 yrs) man is tired of keeping up - but thats not really the point. I love IT partly because of the innovations happening constantly. I love IT because everyone can make their thing and get a wide spread when releasing it.

There are two things about it all that annoys me though;

1) People seem to put some kind of prestige in the freshness of knowledge. If you're blogging about the framework that was released 15 minutes ago you're apparently awesome.

What about really learning something? No matter how quickly you learn things you cannot be really good at it after a few weeks. Use the new framework in a few customer projects, refactor it a few times over a longer period of time, then you can start to claim real knowledge in it and then I'd love to read your blog post.

What happened to "the right tool for the right problem"? The latest language or deployment tool cannot possibly be the right tool for every single problem. Docker for example cannot be the best choice for every deployment or hosting situation - even if Docker is a great tool.

2) People tend to learn a framework and claim to know the language. This, yet again, is shown clearly when it comes to Javascript. I've seen plenty of frontend developers who claim to know Javascript when what they really know is React and JQuery. They know frameworks and tools written in a language, they don't know the language.

Another great example is backend developers that constantly argue the greatness of using an ORM. Why not learn SQL?! SQL is simple yet powerful. Unlike an ORM you can actually optimize an SQL query using your knowledge. When using an ORM you can simply call the functions that someone else wrote based on their knowledge of SQL - and you have close to no idea of what's actually happening.

--------

I expect being shot down plenty of times for my above ranting but that's all part of the game and I'm looking forward to it.

EOF!
Using Parcel Bundler with React
Tags: parcel, javascript, webpack, react
Published: 2018-08-06 09:41:57

---
title: Using Parcel Bundler with React
published: true
description: Parcel is a web application bundler that offers blazing fast performance with zero configuration compared to webpack.
tags: parcel, javascript, webpack, react
---

Parcel is a web application bundler that offers blazing fast performance with zero configuration compared to webpack. [Click here for the Original Video on Youtube](https://www.youtube.com/watch?v=ioNGqffeLjc).

#### If this video was helpful, ❤️ it and [subscribe to my YouTube channel](https://www.youtube.com/channel/UClCm-WAOgN6XLwCpefSVezg?sub_confirmation=1).

---

{% link https://dev.to/theoutlander/react-component-lifecycle-explained-3koh %}

---
Dev.to stats?
Tags: discuss, devto
Published: 2018-08-06 06:52:15

---
title: Dev.to stats?
published: true
description: Wondering how many Users, Posts, Comments and Unicorns have born since the launch of the platform 🤔
tags: #discuss, #dev.to
---

A year and a half ago, I discovered dev.to via a local community meetup. The guy who was giving the talk, had a {dev} shirt on. It was pretty cool!

Ever since I've joined the community (for about a year now, or maybe a little more than a year!), I just love this platform. I know I don't post anything or comment/discuss that often but I sure love coming here and reading stuff. 

Back when I joined there weren't a lot of articles being published in the categories that I followed. But that sure has changed now! I see really great articles, guides and discussions on topics I love to read about. I even read the comments 😉

Now, I was wondering what does dev.to's stats look like? How many posts have been published? How many users are on-board? The number of Unicorns given out? 

I guess, @ben would be the best person to ask about this 🙌 ?
React Weather App Video Course 1-5
Tags: javascript, react
Published: 2018-08-06 06:26:57

---
title: React Weather App Video Course 1-5
tags: javascript, react
published: true
description: React tutorial for beginners. Making weather app parts 1-5.
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ojsoibgy6hwt92m05eq8.jpg
---

Initially I was going to just use this app as an example in my [basicreact.com](https://basicreact.com) course. But then I decided to make a separate series on youtube to practice making videos.

My biggest mistake when doing tutorial videos was starting over the recording every time I did some mistake. So whenever I would say the word improperly or mess up a bit with typing something - I would stop the recording, stress out and then start over again.

Now I decided to not care about mistakes, record everything in one shot and then edit out the messed up parts. Seems to be working waaaaaaay better.

If you want to learn how to make a simple weather app with ReactJS - check out those videos:

* [Part 1](https://www.youtube.com/watch?v=smfAz-Vt6VQ)
* [Part 2](https://www.youtube.com/watch?v=QkCzo2mXb0w)
* [Part 3](https://www.youtube.com/watch?v=AvwD1kg-T-s)
* [Part 4](https://www.youtube.com/watch?v=wwDcpWvnJN4)
* [Part 5](https://www.youtube.com/watch?v=u2YDOy9iALU)

Unfortunately turned out that during first two recording I didn't switch the mics and recorded the audio to my laptops internal mic :facepalm:.
Ripple Effect Animation On Button Click With CSS3
Tags: html, css, animation, webdev
Published: 2018-08-06 05:21:13

---
title: Ripple Effect Animation On Button Click With CSS3
published: true
description: Ripple Effect Animation On Button Click With CSS3
tags: #html #css #animation #webdev
---

<a href="https://www.skptricks.com/2018/01/ripple-effect-animation-on-button-click-with-css3.html" >Ripple Effect Animation On Button Click With CSS3 </a>

If you have used lollipop version of android you see a nice ripple effect on button clicks. This tutorial is about achieving similar result, the CSS ripple effect on button clicks.

CSS Ripple effect does not involves any javascript or jquery library. The effect is achieved using CSS3 animation. Keyframe property of css provides very smooth animation effect.

<img src="https://2.bp.blogspot.com/-cy3K4SYmxfA/WmTHwtisd4I/AAAAAAAABNc/7X5gTxG_u5krl2wfTjHFPGztkJ9KXWNrACLcBGAs/s400/ripple.jpg" />

{% youtube sMbSIch1gxk %}

Reference link : 
<a href="https://www.skptricks.com/2018/01/ripple-effect-animation-on-button-click-with-css3.html" >Ripple Effect Animation On Button Click With CSS3 </a>
Word count using jQuery
Tags: jquery, javascript, wordscount
Published: 2018-08-06 01:51:45

---
title: Word count using jQuery
published: true
description: 
tags: jquery, javascript, words count
---

This post is aimed at creating a jQuery word count function. The code below can be used to limit the total number of words in a textbox (e.g Abstract for research thesis report) using jQuery.


{% runkit %}
function WordCount() {
       //Get Text data
        var inp = document.getElementById('txtabstract').value;
     
        var regex = /\s+/gi;

        var wordcount = jQuery.trim(inp).replace(regex, ' ').split(' ').length;      
            
        
        $("#labelcount").html(wordcount);
    }

  $(document).ready(function(){
    //count word on page load
    WordCount();

    //count word on entering text in TextBox
    $("#txtabstract").on('input',function(){
        WordCount();
 
 
    })  
  })
{% endrunkit %}

This code is used to let a user know when the abstract for his project report has exceeded 300 words (which is the standard for an abstract) at [Classgist](http://www.classgist.com/projectcategory.aspx?catid=1)
Aditya Varma, Launched Site
Tags: githubpage, jekyll, rss
Published: 2018-08-06 11:06:12

---
title: Aditya Varma, Launched Site
published: true
tags: githubpage, jekyll, rss, 
canonical_url: http://adityavarma1234.github.io/blog/2018/08/06/aditya-varma-site-launched
---

I finally got around to create my own github page. Using the wonderful tutorial provided by Jonathan McGlone [link](http://jmcglone.com/)

Neat thing about it - powered by [Jekyll](http://jekyllyrb.com) and I can use Markdown to author my posts. It actually is a lot easier than I thought it was going to be.

Any one out there looking to create their own github page can find use this [link](http://jmcglone.com/guides/github-pages/) to get things started. This is the easiest resource I have found on the web to get things started.

I have even set up an rss feed [here](https://adityavarma1234.github.io/blog/atom.xml) I am not even sure what that is. Need to go through the docs. Please comment if you know any good resources about this.

I set up my rss feed to publish directly to dev.to

I can simply blog on my github page and it will automatically be saved as draft here in dev.to just waiting for me to mark publish as true! It is only possible if you have set your rss feed option under settings, publishing from rss option. 

Source [link](http://jmcglone.com/guides/github-pages/)

Now I can wait to set up the hacker theme for jekyll! 

Cheers. Thanks for reading.
JIB - Dockerize your java build
Tags: docker, maven, container, example
Published: 2018-08-05 22:13:03

---
title: JIB - Dockerize your java build
published: true
description: We look at dockerizing our java build both in the cloud and in our local docker environment.
tags: docker, maven, container, example
---

{% youtube 4lepROopuiw %}
How do you scale a nodejs real-time API to concurrently serve a million users?
Tags: help, devops, node
Published: 2018-08-05 20:05:57

---
title: How do you scale a nodejs real-time API to concurrently serve a million users?
published: true
description: 
tags: help, DevOps, nodejs
---

So I recently got a project that requires real-time location + chat data streaming, and I wanted to know the right steps to take.

Most articles I've read online state to spawn up multiple servers and set up a load balancer like nginx+pm2. 

However, I wanted to make this thing DevOps ready, with CI/CD and best practices, which I am not able to judge from the articles. Containerisation, database optimisation, and everything.

Would love to learn the right way!
Go -mess with flatpak+vscode
Tags: go, vscode, flatpak, fedora
Published: 2018-08-05 19:29:18

---
title: Go -mess with flatpak+vscode
published: true
description: Trying to get Go working with vscode installed from flatpak under fedora28
tags: go, vscode, flatpak, fedora
---

Made a fresh fedora 28 install on my macbook pro today (yes I'm an osx hater) and decided to install vscode (me too went from emacs to vscode) through flatpak - which I had yet to try out.

Now the basic install of vscode is a one-liner. Simply do `flatpak install flathub com.visualstudio.code` and you're done. The trouble arose when I installed the go extension.

Normally this is a one-step-thing as well but this time I couldn't get the darn thing to find the go binary. I use fish as my shell and started to suspect it did not find the environment variables correctly (since vscode initiates an sh-shell of its own). So, perhaps noob-ishly, I started setting my PATH, GOPATH and GOROOT in .bash_profile as well. This actually made a difference. I could now see the correct path in the vscode terminal. The strange thing was that, ever if the path was correct, the binary could not be found when I tried to run it from inside vscode.

My investigation continued. I quite soon realized that it was my lacking knowledge of flatpak that made me stumble. Since my GOROOT was pointing at `/usr/lib/golang` (yes i normally use GVM but couldn't be bothered today) and flatpak is sandboxed it could not find the content of GOROOT.

Thus, the simple solution was (if perhaps not the best) to

1) download the Go linux binaries

2) unpacking them into `$HOME/go`

3) adding this to `$HOME/.bash_profile`

```
PATH=$HOME/src/go/bin:$HOME/go/bin:$PATH
export PATH
GOROOT=$HOME/go
export GOROOT
GOPATH=$HOME/src/go
export GOPATH
```

4) and then adding this to my vscode settings.json
```
    "terminal.integrated.shellArgs.linux": ["-l"],
    "terminal.integrated.shell.linux": "/bin/bash",
    "go.gopath": "/home/dsw/src/go",
    "go.goroot": "/home/dsw/go",
    "go.inferGopath": true,
```

So, call me a newb but it's solved. Would gladly hear of any alternative ways of solving it or perhaps similar flatpak-stories.

EOF!
Do gifs bother you when reading an article?
Tags: discuss, gifs, distraction, frustrating
Published: 2018-08-05 18:45:18

---
title: Do gifs bother you when reading an article?
published: true
description: I'm just wondering how many people find it distracting to see a gif in an article when they're trying to read it.
tags: discuss, gifs, distraction, frustrating
---

Hey Dev folks,

I've been on here for a few months now and I read rather regularly but one thing I've noticed particularly on here is the usage of gifs in articles. There are times when a gif is absolutely perfect for conveying a thought or message that wouldn't come across the same just in text. However, I've seen gifs littered throughout articles as if to have them for the sake of having a cute or funny gif in the post and it's distracting to see it reload over and over again as I'm trying to read something below or above it.

I'm wondering if there's anyone else who finds them as distracting as I do or if I'm just being a big curmudgeon about it 😅 Any comments would be greatly appreciated.
uHunt 11727
Tags: sportprogramming, datastructures, algorithms
Published: 2018-08-05 17:03:16

---
title: uHunt 11727
published: true
description: Cost Cutting
tags: sport programming, data structures, algorithms
---

Problem [link](http://uva.onlinejudge.org/external/117/11727.pdf)

Solution [link](https://raw.githubusercontent.com/adityavarma1234/steve_halim_competitive_programming/master/chapter1/11727.cc)

You can practice [here](http://uhunt.onlinejudge.org/id/877988) 

The problem level is super easy!

You can find more about the book [here](https://cpbook.net/)

Do let me know if there is a better solution possible!
uHunt 11498     
Tags: sportprogramming, algorithms, datastructres
Published: 2018-08-05 17:00:57

---
title: uHunt 11498     
published: true
description: Division of Nlognia
tags: sport programming, algorithms, data structres
---

Problem [link](http://uva.onlinejudge.org/external/114/11498.pdf)

Solution [link](https://raw.githubusercontent.com/adityavarma1234/steve_halim_competitive_programming/master/chapter1/11498.cc)

Let me know if there is a better approach to solve this problem!

Category of the problem is super easy. Just right for beginners in sport programming!
Uhunt Solutions
Tags: sportprogramming, datastructures, uhunt, algorithms
Published: 2018-08-05 16:55:49

---
title: Uhunt Solutions
published: true
description: My solutions to competitive programming by steve halim 
tags: sport programming, data structures, uhunt, algorithms
---
I am posting my solutions in the hope that someone out there can find the solution if they are stuck or let me know if there is a better way to do this. 

Problem category is super easy!

Problem 11172 [link](http://uhunt.onlinejudge.org/id/877988)

Solution in c++ [link](https://raw.githubusercontent.com/adityavarma1234/steve_halim_competitive_programming/master/chapter1/11727.cc)
Lighthouse 3.0 is out: Drupal 8.5 has killer performance
Tags: drupal, webperf, lighthouse
Published: 2020-02-24 10:47:14

---
title: Lighthouse 3.0 is out: Drupal 8.5 has killer performance
published: true
date: 2018-08-05 16:08:11 UTC
tags: ['drupal', 'webperf', 'lighthouse']
canonical_url: https://blog.riff.org/2018_08_05_lighthouse_30_is_out_drupal_85_has_killer_performance
---

Lighthouse 3.0 is out: Drupal 8.5 has killer performanceFrederic MarandSun, 2018-08-05 18:08

[Computing](https://blog.riff.org/topic/computing)

- [DRUPAL-8](https://blog.riff.org/tags/drupal8)
- [performance](https://blog.riff.org/tags/performance)
- [chrome](https://blog.riff.org/tags/chrome)

As you may have noticed if you are a regular here, I just refreshed the theme on this site to a custom theme built on Bartik. And since Chrome had just been updated, I took the newly updated performance audit.

![Screenshot of a 100% score on Lighthouse 3.0 by Drupal 8.5](https://blog.riff.org/sites/default/files//2018-08/Drupal8-Lighthouse3-100.png)

What more to say ?

<section></section>
How to comment in React JSX
Tags: react, javascript, webdev, programmer
Published: 2018-08-05 12:40:55

---
title: How to comment in React JSX
published: true
description: How to comment in React JSX
tags: #react #javascript #webdev #programmer
---

Post Link : https://www.skptricks.com/2018/08/how-to-comment-in-react-jsx.html

This tutorial explains how to perform comment in react js application. React uses JSX, it is a XML-like syntax extension to ECMAScript without any defined semantics. It's NOT intended to be implemented by engines or browsers.

<a href="https://www.skptricks.com/2018/08/how-to-comment-in-react-jsx.html"> How to comment in React JSX </a>


Point to remember, while adding comment in react application :

1. You can use regular /* Block Comments */, but they need to be wrapped in curly braces:
{/* A JSX comment */}

2. For multi-line comment, you can use below syntax :
{/* 
  Multi
  line
  comment
*/}  

3. You can't just use HTML comments inside of JSX because the compiler will think that they are real DOM Nodes. React developers has stated they do not plan to add regular JS commenting to JSX.
Bad Practice.
render() {
  return (
    <div>
      <!-- This doesn't work! -->
    </div>
  )
}


<img src="https://3.bp.blogspot.com/-9_KwL66-Ny0/W2btxCBM8ZI/AAAAAAAABvQ/CQ5SKDrQPtUfKRhS_nRXW-Zeq9445bypQCLcBGAs/s320/reactcomment.jpg" />


<a href="https://www.skptricks.com/2018/08/how-to-comment-in-react-jsx.html"> Read More... </a>
BxJS Weekly Episode 22 - javascript news podcast
Tags: javascript, node, podcast, news
Published: 2018-08-05 09:40:31

---
title: BxJS Weekly Episode 22 - javascript news podcast
published: true
description: Listen to the best javascript news of the week in a podcast form
tags: javascript, node, podcast, news
---

Hey dev.to community!

BxJS Weekly Episode 22 is now out! 🚀
Listen to the best javascript news of the week in a podcast form right here.
You can find all the mentioned links [here on github](https://github.com/BuildingXwithJS/bxjs-weekly/blob/master/episodes/Episode-22-2018-08-04.md).

You can also watch or listen to this episode on:
- [YouTube](https://www.youtube.com/watch?v=Otag-gYHtHQ)
- [Soundcloud](https://soundcloud.com/bxjsweekly/episode-22-aug-4-2018-javascript-news-podcast)
- [Castbox](https://castbox.fm/episode/BxJS-Weekly-Ep.-22-Aug-4%2C-2018-(javascript-news-podcast)-id1378315-id87640721)

Any feedback is appreciated 😁

Additional stuff:
- [Twitch channel](https://www.twitch.tv/yamalight)
- [Discord server](https://discord.gg/hnKCXqQ)
- [BxJS Weekly github repo](https://github.com/BuildingXwithJS/bxjs-weekly)

Social media links:
- [Twitter](http://twitter.com/yamalight)
- [Medium](https://medium.com/@yamalight)
- [Github](http://github.com/yamalight)

If you enjoy my content, please consider [supporting me](https://codezen.net/support.html) 😉