teleren/devto huggingface dataset:
How to listen youtube videos on termux
Tags: android, mpv, python, youtube
Published: 2018-12-12 17:34:44

---
title: How to listen youtube videos on termux
published: true
description: If you wanna listen youtube videos on your smartphone try this...
tags: android, mpv, python, youtube
---

You need termux installed on your android

Run these commands on your android

    pkg install mpv termux-api neovim python pipx
    pipx install yturl  

Note: "[pipx](https://pypi.org/project/pipx/) — Install and Run Python Applications in Isolated Environments"    
    
Put this code on your ~/.bashrc  (android). I was using an aliased neovim on my android, but now I figured out how to make it easier with here documments.

    cat <<-'EOF' >> ~/.bashrc
    yt(){
        mpv --no-video "$(yturl $(termux-clipboard-get))"
    }
    EOF

Now when watching youtube videos you can chose share and get the link, then open your termux and type

    yt

## Using pure mpv 

    mpv --no-video url

## full python support for neovim

    pipx install neovim

Rererences: https://unix.stackexchange.com/a/229815/3157
How have you used static site generators to creatively simplify things?
Tags: discuss, webdev
Published: 2018-12-12 17:11:46

If what you normally use to build applications is a framework like Ruby on Rails, it becomes easy to use that tool for everything. Simple is often better. Sometimes using a static site generator is the better long-term option.

Do you use static site generators like jekyll or gatsbyjs to do neat things? What use cases have you found best served by static site generators?
Open source Pocket CLI
Tags: cli, pocket, bookmarks, node
Published: 2018-12-12 17:09:18

---
title: Open source Pocket CLI
published: true
description: An interactive terminal app for Pocket (ReadItLater)
tags: cli, pocket, bookmarks, nodejs
cover_image: https://raw.githubusercontent.com/ildella/pocket-cli/master/screens/screen1.png
---

Hi everyone. 

In my first post on dev.to ever, I want to push to your attention my last effort: a new [Pocket CLI](https://github.com/ildella/pocket-cli)

Is an open source, interactive terminal app for [Pocket](https://getpocket.com), a famous "read it later" kind of app, acquired by Mozilla did buy in 2017 and now defaults in Firefox, with a plugin for Chrome and apps for mobile devices and e-readers. 

While adding articles and reading is far more comfortable from the browser or mobile devices, some tasks are easier to get done from a CLI, like some kind of searches, organizing, cleanup. 

The app now supports standard functionalities like search, open articles in the browser, archive/delete/favorite articles. All in a colored and interactive CLI that *should* work on all OS. But is just launched, so please give me feedback for bugs and improvements. 

It is written in Javascript and run in Node.js of course. It uses last Javascript features so works on Node 11+. 

Is open source on [GitHub](https://github.com/ildella/pocket-cli). Check it, clone it, star it, give me a [feedback on Twitter(https://twitter.com/ildella). 

Enjoy.
Will Java Trend Towards Obscurity?
Tags: java, discuss
Published: 2018-12-12 16:59:25

I'm forking another conversation:

{% devcomment 7g1n %}

{% devcomment 7g25 %}

I think "replace" is a bit too binary a term, but if the line in that graphic keeps going down, Java could easily lose its place as a _very popular_ programming language.
Odd problem... (jQuery)
Published: 2018-12-12 16:49:53

---
title: Odd problem... (jQuery)
published: true
description: problem with jQuery
tags: 
---

I was working on a site that required a coda style slider and sIFR. I ended up going for a jQuery type sIFR and a premade jQuery slider. Both worked fine on the same page, great! They weren't clashing. However, when I visited a different page within the same cms, the sIFR stopped working. However, the HTML and JS was all there. Took me ages to figure out what the problem was.

Quite odd really...

On the pages that didn't use the slider, I had to remove the js file includes out of the header that were for the slider only. Because I wasn't using these files it was affecting the rest of my JS that I WAS using. Does anybody know why this is?
Dev.to Review #12: Top 7 Of The Week, Discussed
Tags: bestofdev, career, discuss, javascript
Published: 2018-12-12 16:39:42

---
title: Dev.to Review #12: Top 7 Of The Week, Discussed
published: true
description: Two devs get together to discuss the week's Top 7 posts on dev.to
tags: bestofdev, career, discuss,javascript
cover_image: https://thepracticaldev.s3.amazonaws.com/i/z1ultzm6nx8l1z45luos.jpg
canonical_url: https://soundcloud.com/malikanddan/devto-review-episode-12
series: DEV.TO Review
---


> If you'd like to follow us on iTunes instead of waiting for these posts, check that out [over here!](https://itunes.apple.com/us/podcast/dev-to-review/id1444162833?mt=2) If you'd like to see a full archive without clicking around the series, check out this [nifty thing](https://overcast.fm/itunes1444162833/dev-to-review) that Overcast automatically created. If you want the direct RSS link, you can grab it [here](https://pcr.apple.com/id1444162833).

You know the deal (or maybe you don't, I don't know, I won't judge either way), Malik and I are together again to discuss this week's Top 7 Articles on dev.to!

{% soundcloud https://soundcloud.com/malikanddan/devto-review-episode-12 %}

This week's discussed posts are:

{% link https://dev.to/imalittletester/style-beautiful-web-pages-without-writing-any-css-using-w3css-45ee %}

{% link https://dev.to/aspittel/thank-u-next-an-introduction-to-linked-lists-4pph %}

{% link https://dev.to/ossia/how-freecodecamporg-uses-the-jamstack--a-single-api-server-to-help-millions-of-people-learn-to-code-every-month-4d5g %}

{% link https://dev.to/nickjj/optimize-your-programming-decisions-for-the-95-not-the-5-2n42 %}

{% link https://dev.to/jhotterbeekx/keep-learning-should-you-invest-your-own-time-22l %}

{% link https://dev.to/thejessleigh/different-types-of-testing-explained-1ljo %}

{% link https://dev.to/theobendixson/how-to-write-code-and-snowboard-every-day-54c7 %}

Do you have long-term goals that you're working towards? Do you have a good trigger to remind you of them?

Have there been any times you've over-optimized for the 5%? What did you learn from it? 

Let us know in the comments!

> We're still experimenting with post formats, audio, etc., so if you have any thoughts, feel free to let us know here, or on Twitter at [@dangolant](https://www.twitter.com/dangolant) and [@milkstarz](https://www.twitter.com/milkstarz).
What Even Is Data Engineering?
Tags: data, businessintelligence, engineering, infrastructure
Published: 2018-12-12 16:25:42

---
title: What Even Is Data Engineering?
published: true
description: I started my first job as a data engineer back in September, but sometimes I'm still a little murky on what that means!
tags: data, businessintelligence, engineering, infrastructure
series:
---

I started my first job as a Data Engineer back in September. I wasn't exactly sure what the job entailed, but I was ready to shift my focus and learn new things. I'd spent the previous four years on back end application development, and while I learned a lot, I was ready to shift away from primarily consuming and constructing APIs.

When I was interviewing for the position, I read up on DAGs, ETL pipelines, and specific common database patterns like the [star schema](https://en.wikipedia.org/wiki/Star_schema). However, in my interview I was asked things "how do you optimize this SQL query" and "assuming you don't have an automated load balancer in place, how do you decide which cluster to create a new database in?" They were interesting questions, so I decided to take the job. But it can be difficult to explain, even to other engineers, what the scope of my job is.

My team is responsible for database infrastructure. We make sure that database clusters aren't overloaded. We're concerned with internal data security. We manage database users and permissions, and field requests from different teams. We're the information gathering arm for the Business Intelligence team; if they need a dump of data from a specific API every 24 hours, we write the ETL pipeline to do it, and manage the data warehouse where all that information lives. My job is kind of a grab bag of things that need to get done but might not have an obvious owner.

I know I probably haven't done a great job of answering the question "What even _is_ data engineering?" because I'm not exactly sure I know myself! I recently met up with [Ali](https://dev.to/alysivji) at a local Python meetup and we bonded over the fact that the discipline of data engineering seems utterly made up.

In this series, however, I'm going to introduce different tools that I use in my work through the lens of data engineering. If you have specific questions, or want to know about specific tools commonly used by data engineers, let me know in the comments. Data engineering is a fairly new field in software development, and the boundaries are still being drawn. Let's suss it out together!
How do you get back into a side project after months?
Tags: discuss, motivation, sideprojects
Published: 2018-12-12 15:30:35

---
title: How do you get back into a side project after months?
published: true
description: 
tags: discuss, motivation, sideproject
cover_image: https://thepracticaldev.s3.amazonaws.com/i/wn31fjrlpdfgd66ysbm5.jpg
---

<center>_Photo by [Simon Migaj](https://unsplash.com/@simonmigaj) on [Unsplash](https://unsplash.com/)_</center>

---

We've probably all been there, that boost of energy late at night that doesn't let us go to sleep while our mind is bombarded with cool ideas about a new project or tool we want to use.

Your turn on your computer, break your sleep habits for a few days and then never look back at it after months because being an adult is hard.

But then... one day, you come across that side/pet project again in your [GitHub Graveyard](https://dev.to/t/graveyard) and the spark starts to come back at you again.

You `git clone` the hell of out it and when you finally open it you are just like:

![Dog astronaut lost in space](https://media.giphy.com/media/l0Iych4GHWMRxci2I/giphy.gif)

---

So,

### <center>What helps you to get back on track?</center>
Write better code: Day 8 - Shortest route
Tags: challenge
Published: 2018-12-12 15:13:53

---
title: Write better code: Day 8 - Shortest route
published: true
tags: challenge
---

Recent Articles:
1. [What are sales pipeline stages](https://weightlessapps.io/sales-pipeline-stages/)
2. [Salesforce CRM Training tutorial for beginners](https://weightlessapps.io/salesforce-beginners-tutorial-using-chatgpt/)

--


I found this one interesting...

Problem:

Given information about active users on a network, find the shortest route for a message from one user (the sender) to another (the recipient). Return an array of users that make up this route.

There might be a few shortest delivery routes, all with the same length. For now, let's just return any shortest route.

Your network information takes the form of a hash mapping username strings to an array of other users nearby:

```
network = {
  'Min'     => ['William', 'Jayden', 'Omar'],
  'William' => ['Min', 'Noam'],
  'Jayden'  => ['Min', 'Amelia', 'Ren', 'Noam'],
  'Ren'     => ['Jayden', 'Omar'],
  'Amelia'  => ['Jayden', 'Adam', 'Miguel'],
  'Adam'    => ['Amelia', 'Miguel', 'Sofia', 'Lucas'],
  'Miguel'  => ['Amelia', 'Adam', 'Liam', 'Nathan'],
  'Noam'    => ['Nathan', 'Jayden', 'William'],
  'Omar'    => ['Ren', 'Min', 'Scott'],
  ...
}
```

For the network above, a message from Jayden to Adam should have this route:
`['Jayden', 'Amelia', 'Adam']`


-

If you want to follow along, feel free to post your answers in the comment. 
My answers are in the comments. [This problem is from InterviewCake.](https://www.interviewcake.com/question/ruby/second-largest-item-in-bst?section=trees-graphs&course=fc1)
Mobile Navigation on the Modern Web
Tags: webdesign, webdev
Published: 2018-12-12 14:46:03

---
title: Mobile Navigation on the Modern Web
published: true
description: 
tags: Web Design, Web Development
cover_image: https://thepracticaldev.s3.amazonaws.com/i/kffktti8dhx7xp26v2dm.jpg
---

For a long time websites have used a top aligned navigation layout. Go to any website and the controls and navigation is almost always at the top of the page. Sometimes this will be in a fixed position so that as the user scrolls down the navigation stays in view. Occasionally websites will have a left aligned navigation system in addition to this. These are usually context specific; the content of the left hand navigation often depends on which page of the website you are on.

This left hand navigation scheme does not work well on mobile devices because horizontal space is at a premium. However the top aligned navigation was an easy transition to mobile design. This is interesting because app development has gone in quite the opposite direction. It has long been understood that putting the most used navigation elements of an app at the top of the screen makes it difficult for the user to reach. As phones have become large this problem has increased. Due to this mobile developers have placed the primary navigation features of their app on the bottom of the screen. Open up any app and you will probably find this to be the case.

It is time for mobile website designs to follow suit. Very often if a company has a website and a corresponding app, the mobile version of the website will derive the design of its user experience more from the desktop experience than from the app experience. This is often due to the fact that the implementation of the mobile and desktop versions of the website are integrally linked whereas often the app is totally distinct. Different development cycles might be used for each and can lead to different designs. Different stakeholder and product owners might be involved and this can again lead to a diversion.

However the long story short is that with respect to design the mobile website experience should be more closely linked to the app experience than to the desktop experience. The most striking example of this is with mobile website navigation. The de facto standard should be to place it at the bottom of the page.

I just took a look at a few examples of apps and mobile websites and they all fell into this same trap. The website had the navigation at the top of the mobile screen following suit with the desktop version and the app placed the navigation at the bottom of the screen following suit with what works best on a mobile device.

Check out [my blog](https://www.alexlockhart.me/) for more of my musings upon technology and various other topics.
Describe Your Job With a GIF!
Tags: discuss, gif, fun
Published: 2018-12-12 14:33:30

---
title: Describe Your Job With a GIF!
published: true
description: Describe Your Job With a GIF!
tags: discuss, gif, fun
cover_image: https://thepracticaldev.s3.amazonaws.com/i/11sxjesygt4tog1gqaij.jpg
---

HAPPY Hump Day!!! Thought this might be something fun to do to break up the week. What GIF would you use to describe your job and why?

Here is the GIF I would use to describe what it's like being a Site Reliability Engineer.

![](https://thepracticaldev.s3.amazonaws.com/i/askg68li0wwvj1r3vqnt.gif)

Often when we speed one thing up the load transfers to another. You put out one fire and you start one somewhere else. Sometimes it's a little hectic, but I wouldn't have it any other way! :D

Let's see your GIFs!
Hey Google , Yo Alexa ... Do This For Me
Tags: productivity, devops
Published: 2018-12-12 14:32:39

Few months ago I took a hobby task on integrating Google Home Assistant with GKE (Google Kubernetes Engine). I got to the point where I was able to say Hey Google Build Cluster. Off it went and tried to build a cluster but something along the line with API query just did not work well. 

Last night I was working in Lab with Lambda functions where it should be able to do almost any kubectl command or even build a cluster. [This post](https://medium.com/@alejandro.millan.frias/managing-kubernetes-from-aws-lambda-7922c3546249) helped me get half the battle through.

My point of this post:

I really would like some low end tasks in 2019 to be spent utilizing Voice Commands for productivity purpose from DevOps point of view. 

Some examples I would like to integrate:

**ME:** How many pods are in bad shape?
**Alexa/Google:** Goes queries anything that is not in "Running" state. 
**Alexa/Google:** Hi Joe, there are 16 pod that are not in Running state, would you like the list? 
**ME:** Yes Please

Or as Dev...because someone asked me what version are we in Dev and QA

**ME:** (Google/Alexa) What version of AppName am I running in Dev and Qa?
**Alexa/Google:** Goes does a describe on a pod/container in Dev and QA
**Alexa/Google:** AppName version:1.15.2 in Dev and version:1.15.3 in QA
**ME:** Thank you

Or as Ops...

**ME:** (Google/Alexa) How many nodes are in bad shape?
**Alexa/Google:** Goes queries nodes status, gets few as NotReady or similar..
**Alexa/Google:** Node 222.333.111.222 is in NotReady status with latest Events: OutOfDiskSpace
**ME:**: (Google/Alexa) drain node 222.333.111.222 and scale cluster to 45 



So those are some simple tasks that in reality in 2018 should be self healed , but if your pipelines and cluster and stability is not at that point of life, at least you can do is shave off going to your PC at 11pm , connect to VPN, auth with the K8s cluster, do few commands and its now 12:30am because you fixed the original issue at 11:25pm but got tied up reading something else :).. 

Have you been using anything like that? Maybe a chatbot ?
Most Popular Development Posts Of The Week (12 December 2018)
Tags: graphql, javascript, flutter, webdev
Published: 2018-12-15 15:58:35

---
title: Most Popular Development Posts Of The Week (12 December 2018)
published: true
tags: graphql,javascript,flutter,webdev
canonical_url: https://medium.com/daily-now/most-popular-development-posts-of-the-week-12-december-2018-1a09eabf25be
cover_image: https://cdn-images-1.medium.com/max/1024/1*UkZ0X2eLt4bmafUk82-CCQ.jpeg
---

We are really competing against ourselves, we have no control over how other people perform

- [The Future of Love is Interesting](https://app.dailynow.co/r/65945b8288720ce356cb73e4c49658fc) by [Ravi Shankar Rajan](https://medium.com/u/e373e0ecf6a3)
- [7 Skills You Need to Become a Better Programmer](https://app.dailynow.co/r/4ac8703f267652b868f43d0ff43bd6be)
- [The All Powerful Front-End Developer](https://app.dailynow.co/r/dde1a0c93c010f094235e3fa6a16676c)
- [State Of JS 2018 — Bad News for Angular](https://app.dailynow.co/r/d91a72d9cbbacd2d673d86c035ad6284) by [Mike Brown](https://medium.com/u/17a5a6e50ffe)
- [The Best JavaScript and CSS Libraries for 2018](https://app.dailynow.co/r/36f7bceac8bca12b03782ab808b982bb)
- [GraphQL versus REST](https://app.dailynow.co/r/37c99f9f4303476fe4e4f5cf0ff282b1)
- [The Fuck Off Guide To Life.](https://app.dailynow.co/r/7d03433ca24b87ae805e70bdcc24fc6c) by [Tim Denning](https://medium.com/u/b6d641be1066)
- [My experience with Flutter](http://My%20experience%20with%20Flutter)
- [How to Hack Your Brain for Accelerated Learning](https://app.dailynow.co/r/9964875a287e23bbc778d65cedbe799e) by [Thomas Moran](https://medium.com/u/9c78f8148e7c)
- [Cross-platform development: Google releases Flutter 1.0](https://app.dailynow.co/r/4f1e60e4e6b31409f67a29960cd4f3cc)

* * *

[_Thanks to Daily_](https://www.dailynow.co/) _developers can focus on code instead of searching for news. Get immediate access to all these posts and much more just by opening a new tab._

![](https://cdn-images-1.medium.com/max/1024/1*m8Uf-6F4Q5AOp_wW6tbKSQ.jpeg)
Write better code: Day 8 - Graph Coloring
Tags: challenge
Published: 2018-12-12 13:44:02

---
title: Write better code: Day 8 - Graph Coloring
published: true
tags: challenge
---

This post originally appeared on Arjun Rajkumar's blog. [Arjun is a web developer based in Bangalore, India.](https://www.arjunrajkumar.in) 

--


### Day 8: Question 1

Given an undirected graph with maximum degree DD, find a graph coloring using at most D+1 colors.

-

If you want to follow along, feel free to post your answers in the comment. 

My answers are in the comments.
[This problem is from InterviewCake.](https://www.interviewcake.com/question/ruby/graph-coloring?course=fc1&section=trees-graphs)
The most simple WebView App for OSX
Tags: osx, xcode, app
Published: 2018-12-12 13:37:00

---
title: The most simple WebView App for OSX
published: true
description: Pretty simple tutorial on how to display a webpage
tags: osx,xcode,app
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ys63st262kki3f9ru0d5.png
---

# Little known fact

I used to be a 3D printer technician.  While working there iphone apps were all the rage in the software world.  I wanted to learn.  I asked my boss if they would be alright if I used my down time to build them an iOS App even though I have no idea how to do that.  They said go for it.

## What it did

I remember it had 4 screens.  One was a unit conversion calculator (in to mm, etc).  Another screen was my employer's homepage.  The other 2 were just information about the app itself and what 3d printing is.  I put it on the app store with the amazing name of "3D Printing".

## You can too

I always forget how to make an application to display a web page so hopefully this will help me in the future.  So here is what is needed after making a base cocoa app in xcode:

```swift
//  ViewController.swift

import Cocoa
import WebKit

class ViewController: NSViewController {
    
    @IBOutlet weak var webView: WKWebView!
    let url = "https://buildapart.io"

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        let request = URLRequest(url: URL(string: url)!)
        webView.load(request)
    }
}
```

![Link IBOutlet](https://thepracticaldev.s3.amazonaws.com/i/q4kt6ms10xwr69ltmagc.png)
<figcaption>Link IBOutlet webView to the Web View in your storyboard</figcaption>

![Sign your app](https://thepracticaldev.s3.amazonaws.com/i/63dkby676je7me0h7u4j.png)
<figcaption>Sign your app</figcaption>

![Allow outgoing connections](https://thepracticaldev.s3.amazonaws.com/i/5q1ffakqk7k8ygb9an9i.png)
<figcaption>Allow your app to have outgoing connections</figcaption>

Now `CMD+R` to run the app.

![What I made](https://thepracticaldev.s3.amazonaws.com/i/zwfx2gxt8t12owk358r5.png)
<figcaption>What I made!</figcaption>

### I can't promise you won't have issues

Xcode is a very finicky tool.  I was first trying this tutorial on my work laptop but the application would not start.  This may have been that it failed to access keychain on first run to sign the application.  My company's corporate policies on the laptop might prevent certain activities.  If xcode doesn't display an error, try looking at the lesser known `Console.app` in `Applications > Utilities` folder.  Good luck!

[Source Code](https://github.com/kyleparisi/WebView)