teleren/devto huggingface dataset:
Soundcloud podcasts
Tags: music, playlist, code
Published: 2019-06-13 19:42:54

---
title: Soundcloud podcasts
published: true
description: Don't miss great music
tags: #music #playlist #code
---

If you happen to have a list of subscriptions you love on Soundcloud, you might enjoy this story to never miss great music.
The idea came in when I wanted to curate music playlists on a blog, but somehow wanted to automate things a little. Having a registered app on Soundcloud, I used their apis to get the newest tracks. The final result is a playlist looking like this:

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

Let's see how you can do the same with your preferences.


---

## Get subscriptions

First you need to call the SC API to get your followings data. You do this by hitting the url at /me/followings.

```
async function getFollowings() {
  let followings = []
  async function build (href) {
    const options = href || {
      url: `/me/followings`,
      baseURL: SC_BASE_URL,
      method: 'GET',
      params: {
        oauth_token: TOKEN,
        limit: 200,
        linked_partitioning: 1
      }
    }

    const response = await axios(options)

    followings = followings.concat(...response.data.collection)

    process.stdout.write('.')

    if (response.data.next_href) {
      await build(response.data.next_href)
    }

    return null
  }

  await build()

  return followings
}
```

## Get tracks

You then loop through the previously fetched followings and get their tracks accordingly. You will have a list of tracks starting from a particular date.

```
async function getTracks (id) {
  const fromDate = new Date()
  fromDate.setDate(fromDate.getDate() - 7)

  const response = await axios({
    url: `/users/${id}/tracks`,
    baseURL: SC_BASE_URL,
    method: 'GET',
    params: {
      'oauth_token': SC_API_TOKEN,
      'created_at[from]': fromDate,
    }
  })

  process.stdout.write('.')

  return response.data
}
```

## Plugging them together

You can again filter the tracks to only keep those with a particular duration (in this case, long music podcasts or episodes).

```
getFollowings()
  .then((users) => users.map(u => u.id))
  .then((ids) => {
    console.log('Followings count', ids.length)
    return Promise.all(ids.map((id) => {
      return getTracks(id)
    }))
  }).then((tracks) => {
    const merged = [].concat(...tracks)
    return _.uniqBy(merged, 'id')
      .filter(t => t.duration > 40 * 60 * 1000 
        && t.playback_count > 1000
        && t.comment_count > 10
      )
      .filter(t => helpers.filterVideosByTitle(t.title))
  })
```

And that's it. If you are interested in discovering more, please visit my blog at https://stolenbeats.com and don't hestitate to get in touch.
Today, I passed a 1,000 followers on dev.to 🤗😁🐎🐴😎🍰
Tags: happy
Published: 2019-06-13 19:18:20

---
title: Today, I passed a 1,000 followers on dev.to 🤗😁🐎🐴😎🍰
published: true
description: 
tags: happy
---

I know, I know... it is not all that impressive compared to many others here on dev.to but for me it is a small victory.  Allow me to rejoice just a little bit 🙂
Rails to Introduce View Components
Tags: news, ruby, rails, opensource
Published: 2019-06-13 19:15:56

While I'm waiting for tests to pass on my latest PR, I decided to catch up on my inbox. I subscribe to a Ruby newsletter, and I saw this interesting headline: _Introducing ActionView::Component: View Components Are Coming to Rails?_ That had a link to the following PR on Rails:

{% github https://github.com/rails/rails/pull/36388 %}

Some interesting highlights that I saw were:
> ## Performance
> 
> In early benchmarks, we’ve seen performance improvements over the existing rendering pipeline. For a test page with nested renders 10 levels deep, we’re seeing around a 5x increase in speed over partials:
> 
> ```
Comparison:
           component:     6515.4 i/s
             partial:     1251.2 i/s - 5.21x  slower
> ```
> _Rails 6.1.0.alpha, `joelhawksley/actionview-component-demo`, /benchmark route, via `RAILS_ENV=production rails s`, measured with `evanphx/benchmark-ips`_


> ## Testing
> 
> ActionView::Component allows views to be unit-tested. Our unit tests run in around 25ms/test, vs. ~6s/test for integration tests.

I've never heard of view components before, at least not in regards to Rails. Seems pretty cool though; what are your thoughts?
Five Bucks Feedback
Tags: showdev, discuss, javascript, webdev
Published: 2019-06-13 19:07:40

Hey,

I've renamed my previous project to $5 Feedback. It's purpose is to give honest feedback and ignore all the things that might prevent people from giving their honest feedback (for example they don't want to hurt your feelings).

I can do this as a single person but you also have the option that 100 people will look out your site, maybe sign up, and tell you what they think.

https://feedbacktoaster.com


Have a nice day
Tracking how much different code is read (literally)
Tags: discuss, webdev, management
Published: 2019-06-13 18:12:04

---
title: Tracking how much different code is read (literally) 
published: true
description: 
tags: discuss,webdev,management
---

Hey, hope you are having a great Thursday!

I've been engaged in various discussions about eliminating tech debt and refactoring stuff out.

One of the goals of such sessions is to prioritize issues, so we spend our precious refactoring time fixing up the most important stuff.

A helpful rule for that process is "change code that people work with and read, and don't bother about the code that is read once in a while and is relatively simple even if flawed in some ways."

This is not the only rule, but definitely a good indicator on what to look at first. At least from my experience.

But here's **the problem**. When it comes to debates about which code we read and change more often, most of the process is just *guessing*. We try to gauge that from the intuitive context that we have at the moment: recent features, major features, plans, opinions, etc.

Even though we usually end up with a not very bad estimation, there's really no good way to measure or reflect on that process.

-------

So it got me thinking: isn't it just a technical problem that we could solve with tools?

1. We could track how much (and how often) different files are changed using history from Git. The data is in front of us, and we would use something similar to https://github.com/jez/git-heatmap to assess that.
2. But point 1 is just half of the story. Wouldn't it be also great to track how much developers *read* different parts of the code? This would probably require an editor extension that would track all the cursor movements and jumps + navigation between files — perhaps a trivial thing to code for most of the popular editors. Then we would build a similar heatmap of how the code is read.

**Questions:**
1. Is the whole refactoring problem something that you are regularly solving at your organization as well? What's your approach and what are your struggles?
2. Would that code navigation tracker be of any use to you? Can you think of a project that can already do that?

Thanks for reading! Here is a ship-shipping ship, shipping shipping ships

![](https://thepracticaldev.s3.amazonaws.com/i/ab97nx2t0ug586m6og5v.jpg)
Challenge: List 5 words/terms/phrases your team should have a shared understanding of.
Tags: discuss, challenge, teams, communication
Published: 2019-06-13 18:06:33

---
title: Challenge: List 5 words/terms/phrases your team should have a shared understanding of.
published: true
description: Communication is critical. Are you aligned with your team on a shared vocabulary?
tags: discuss, challenge, teams, communication
cover_image: https://images.unsplash.com/photo-1531206715517-5c0ba140b2b8?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=3300&q=80
canonical_url: https://rizwan-javaid.squarespace.com/blog/2019/6/13/list-5-things-shared-vocabulary
---

#Are you aligned with your team on a shared vocabulary?

Communication is critical to the success of a team and having a shared vocabulary is an important part which helps teams communicate effectively, move forward faster, and build trust within and across teams. When there isn't a common understanding of the vocabulary there is ambiguity, misunderstanding, and confusion. 

One word can mean different things to different people because of factors such as:
- age
- culture
- experience
- knowledge
- education

Vocabularies can be related to the team, company, product, or even industry which you work in.

----

##Your Challenge: 
1. Name 5 words which your team must have a shared understanding of?_
2. Share your 5 words with your team to see if everyone is on the same page about the meanings for those words.

----

I would love to hear your thoughts on this.

Cheers! :) 















Photo by Perry Grone on Unsplash
Weekly Coding Challenge - Week #14 - Progress Bar
Tags: challenge, html, css, javascript
Published: 2019-06-13 17:57:46

---
title: Weekly Coding Challenge - Week #14 - Progress Bar
published: true
description: Week #14 of the Weekly Coding Challenge program - Progress Bar
tags: challenge, html, css, javascript
canonical_url: https://www.florin-pop.com/blog/2019/06/how-to-create-a-custom-progress-bar/
cover_image: https://www.florin-pop.com/static/319777c2e26857177335d1d7358ed927/ff993/how-to-create-a-custom-progress-bar.png
series: Weekly Coding Challenge
---

Theme of the week: **Progress Bar**

### Description

A progress bar is used to show how far a user action is still in process until it's completed. A good example is a download progress bar which shows you how much of the file is downloaded already (or it could also be an upload progress bar if you upload files 🙂).

## Useful Resources

Check out my submission for this challenge: [Custom Progress Bar with HTML/CSS and a little bit of JS](https://www.florin-pop.com/blog/2019/06/how-to-create-a-custom-progress-bar/) 😃.

See all the submissions in this [Codepen Collection](https://codepen.io/collection/naymZV/).

Are you interested in joining the challenge? :smiley: Read [The Complete Guide](https://www.florin-pop.com/blog/2019/03/weekly-coding-challenge/) to find out how. Don't forget to share your creation! :wink:

Happy Coding! :innocent:
Social networks over time (GIF)
Tags: random, fun, industry
Published: 2019-06-13 17:35:27

---
title: Social networks over time (GIF)
published: true
description: A trip down memory line, charting the rise/fall of different social networks.
tags: random, fun, industry
---
I saw this GIF on Twitter earlier and wanted to share.

**Warning -- loud music on the video**

{% twitter 1138935045060800513 %}

It's really a trip down memory lane.  I still remember the excitement of setting up my first MySpace account.  TikTok is coming on strong. 📈
How I know Apple hates developers?
Tags: ios, discuss, help, devlive
Published: 2019-06-13 13:37:04

So I've been trying to upload a free sticker pack for iMessage to AppStore for a while now. Why "trying"? because it keeps getting declined for the silliest reasons. It's nothing complex: just a bunch of our company's stickers about dev life. "Stickers for devs, by devs."

The first time Apple has declined the app because of the overall design, the second time it was because I used iMessage in the title. But this time it makes no sense at all. This is the message I got from Apple:

"Your app contains references to test, trial, demo, beta, pre-release or other incomplete content.
Specifically, some of your app’s stickers have “beta” references."

Huh? Check out the pic - one of our dev-related stickers says "still in beta". I guess Apple took that way too literally. Good thing they didn't tell me my app was too buggy because it has a sticker of a bug which says "it's not a bug, it's a feature"...

On second thought, what if AppStore is a modern-day Genie? Maybe I should add a sticker that says "Apple owes me $20 million in stock"? Or just one that says "Apple approves this sticker pack".

\#Thisneverhappens_on_googleplay
\#appstore_make_a_wish
\#rookout


![Rookout Sticker App](https://raw.githubusercontent.com/iglizer/galgalim/master/rookout-sticker-app.jpg "Rookout Sticker App")
How do you start speaking at conferences? 
Tags: disscuss, careerdevelopment, engineering, publicspeaking
Published: 2019-06-13 17:16:18

---
title: How do you start speaking at conferences? 
published: true
description: 
tags: disscuss, career development, engineering, public speaking
---

This year my goal is to at least give a lightning talk or longer at software engineering confrence of some sort. I am sure some of you out there have similar goals so wanted to start a disscussion to help all of us! If you are already giving talks how did you get started? What are some good conferences to try? Would trying local meetups be a good idea?
How to add tasks to Things from Android
Tags: showdev, things, android
Published: 2019-06-13 17:29:02

---
title: How to add tasks to Things from Android
published: true
tags: showdev, Things, Android
canonical_url: https://miguelpiedrafita.com/send-to-things/
cover_image: https://miguelpiedrafita.com/content/images/2019/06/meta-1.png
---

I started using [Things](https://culturedcode.com/things) a few days ago. It's an awesome task manager app whose only downside is that it is only available on iOS devices. This is a problem for me because, while I use a Mac on my day-to-day, I'm also an Android user. The only workaround offered is an email address you can send tasks to. This might be enough for some people, but I wanted a better experience, so I decided to build something.

![How to add tasks to Things from Android](https://miguelpiedrafita.com/content/images/2019/06/Pixel-3-XL---Just-Black.png)<figcaption>Here's how the app looks once you install it.</figcaption>

Introducing _Send to Things_, a self-hosted Progressive Web App (PWA) that allows you to add tasks to Things from your Android phone, Chromebook, Nintendo 3DS and probably anywhere else a browser is available.

The app itself is really simple, once you click the `Add to Things` button, a Lambda function sends an email to your _Mail to Things_ address, which then adds the task to your list.

Want to get started? Visit [the GitHub repository](https://github.com/m1guelpf/send-to-things) and follow the instructions to get started. If you get stuck, feel free to [email me](https://miguelpiedrafita.com/send-to-things/soy@miguelpiedrafita.com) and I'll be happy to help. You can also [support me on Patreon](https://miguelpiedrafita.com/patreon) if this project is useful to you 😁
Duplicate path
Tags: vscode, wordpress
Published: 2019-06-13 15:36:46

Hello everyone, a basic question here. As some of you know, sometimes in wordpress you have to create a child theme. A child theme is a folder where you have to place some files from the parent theme to override some stuff. I dont care about that BUT I need some tips here. Lets say that you have the following structure.

In the parent directory lets say that you ahve the following folders:
folder1>folder2>folder3>folder4>testfile.php

In the child theme I have to create all those folders and finally create the testfile.php at the end that will override the parent file.

Is there an OPTION to copy a file.php in VSCode and automatically COPY all the parent folders (PATH) so I will not have to create each folder?

I hope this question is clear enough and thank you :)
What's the Title and/or Abstract of a Conference Session Proposal You Submitted That Got Turned Down?
Tags: career, discuss
Published: 2019-06-13 15:34:39

I've had the privilege of presenting at Oracle conferences before, but it's not an easy process to first get approved. I've been denied (many) more times than approved. 

So in the spirit of sharing disappointments, I'll go first. This was a session proposal I submitted for the IOUG Collaborate conference:

###TITLE###
Beyond the Backtrace: Using UTL_CALL_STACK for Easy PL/SQL Instrumentation

###ABSTRACT###
There are several open source libraries available for PL/SQL developers to easily instrument their code inside Oracle Database. Frameworks like ILO, Logger, and BMC_DEBUG are robust and stable offerings to get developers started with instrumentation. A common drawback in these libraries is their requirement to support older versions of Oracle, and thus don't take advantage of the new (in Oracle 12.1) package UTL_CALL_STACK.

The UTL_CALL_STACK package provides access to the Oracle stack that PL/SQL developers had to previously come up with clever workarounds to gain access to. This new API allows developers to easily know exactly where they are and where they were in the call stack, thus providing a way to wrap instrumentation code with calls to DBMS_APPLICATION_INFO and DBMS_MONITOR or DBMS_SYSTEM if needed.

In this session Mikey Sanchez will review the advantages of and ways to implement PL/SQL instrumentation in Oracle Database. A simple framework for utilizing UTL_CALL_STACK will be presented to make instrumenting existing PL/SQL code easy. He will also provide tips on how to use the UTL_CALL_STACK package to provide more insights than simple backtraces during exceptions.
How to send file securely on the blockchain [The easy way]
Tags: privacy, security, blockchain
Published: 2019-06-13 15:15:24

## Why

As we keep hearing about data breach news of big companies like Dropbox or WhatsApp, it is harder for us to keep trusting them with our file and personal data, and it made us think about finding a better way. We think the best way to keep data secure is not having them in the first place. That’s why we choose the server-less solution, in other word, blockchain.
Anyone who has had their identity stolen or lost money because of a data breach understands that centralized applications come with personal risk. 

## How

The most challenging part for us was designing a blockchain app that doesn't look like a blockchain app! We wanted to make the transition from centralized to decentralized solution as smoothly as possible. That is where Blockstack comes in to help us with a secure and decentralized authentication service, working on Bitcoin blockchain.

Your shared file split into parts, encrypt, and then upload to a random hub of your choice. It gives you a private share link that plays the role of a key. No one can access the file without this link. Unlike traditional centralized services, BlackHole doesn't know about who, whom, what, and where the file shared! That’s the reason we name it BlackHole 🕳 

## Technical stuff

For a start, we need an open protocol so that anyone can review and check it. For that, we made the protocol simple but didn't let anything slow it down, as we wanted a fast experience. As I said, it will split the file into parts and but what I didn't say that it has a layer of smart compression. Why smart? Because it will look at the content and estimate how good it is for compression. After the compression, it will encrypt every part with the random 256 bits key and upload them in a multi-thread fashion (4 connection is the default).
After Protocol was done, we made it compatible with Blockstack with adding a layer of secure authentication and a Gaia provider.

Gaia’s approach to decentralization focuses on user control of data and its storage. If a user can choose which Gaia hub provider to use, then that choice is all the decentralization required to enable user-controlled applications.

We made it with Lazarus and FPC compiler and it was a very fun experience. You could use industry-standard AES CBC with 256 bits key with AES-NI assembly support and compile it easily for Mac and Windows.

## Result

BlackHole is a fully native app; as a result, it has so much less system usage (10MB of ram) and great user experience. Being native also provides multiple layers of encryption with excellent performance. BlackHole lives in your menu bar and lets you send files with only one click.

## More

The project is available for Windows and Mac, and Linux version is on the way. You can take a look at the source on Github.

https://blackhole.run/
https://github.com/blackholeorganization
http://blockstack.org

Take a look at it and let me know if you want to know more about BlackHole, BlockStack, FPC or encryption.
Ode to FP in Scala
Tags: functional, scala
Published: 2019-06-13 14:43:26

```scala
val fable =
  ("Nouns *AND* verbs, what a thought!" ::
   "I'd heard they'd fought" ::
   "War!" ::
   "Internet said, 'WOT?  NOT!'" ::
   "Verbs are still an afterthought?" ::
   "Noire..." ::
   "A val, he kills" ::
   Nil)

fable(0)
```
ELI5: Useful Unit Testing
Tags: explainlikeimfive, beginners, discuss
Published: 2019-06-13 14:41:55

I've been trying to get better about writing more complete tests, but often feel I'm being somewhat redundant.  Sometimes the tests I'm writing feel like they're just verifying that the language works as anticipated (if I pass in a parameter, is it accessible in the local scope?  Does this math function that accepts integer types reject non-integer inputs?), or that the framework works (If I pass in a string prop to render as a text node, does React indeed render this text node?).

In a dynamic language extra checks for proper types make sense, but in a type-safe language I'm more than happy to trust my compiler for that.  As a result, my unit tests feel sparse.  It feels more natural to write integration tests that encompass multiple parts of the application in an end-to-end or round-trip manner.

How do you decide what's worthy of a unit test and what isn't?
How do you stay up to date with ever changing technologies without going insane?
Tags: discuss, dotnet, javascript
Published: 2019-06-13 14:40:45

---
title: How do you stay up to date with ever changing technologies without going insane?
published: true
description: Discussion on staying up to date with the latest changes in development.
tags: discuss,dotnet,javascript
---

I sometimes feel overwhelmed trying to stay up to date with the latest technologies.  I'm a .NET developer so I focus on that more than anything but I also like to code in other languages which makes staying up to date overwhelming.

For example, .NET Core 3.0 Preview 6 was just released with changes to Blazor which I'm super excited about.  Apple recently released SwiftUI and my first run at it was extremely positive.  On top of all that, I really want to learn more about React and Vue since they seem to be whats trendy right now.  

How do you find the time to stay up to date with everything?
Use Custom HTML Attribute's in TypeScript
Tags: typescript, react, todayisearched, showdev
Published: 2019-06-13 14:31:50

> Photo by <a href="https://unsplash.com/@hnyuuu">Ningyu He</a> on Unsplash

Installing different packages and frameworks means you run into some interesting problems with TypeScript. One recently was using custom HTML Attributes on DOM elements.

```typescript
declare module 'react' {
  interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
    // extends React's HTMLAttributes
    custom?: string;
  }
}
```
This piece of code solved my issue, and allows you to add any custom HTML attributes when using TypeScript.

```html
<div custom="no_ts_errors">
  your content here
</div>
```
Yaaas, Mary Meeker’s Internet Trends Report 2019 is out!
Published: 2019-06-13 14:23:52

## Just joined, this is my first post here

I read a great post on here by someone who's leaving Medium because of the recent paywall feature. I've backed Hackernoon to move off Medium recently, so I totally understand where he's coming from.

I have personally just joined Medium as a content creator a few weeks ago and didn't notice the default paywall setting until the post. I wrote this [post](https://medium.com/sand-hill-road/yaaas-mary-meekers-internet-trends-report-2019-is-out-36d1398a595e) on Mary Meeker's Internet Trends Report 2019 yesterday, and now opted for not having it behind the paywall. I saw an immediate drop in referrals from Medium itself. 

I also publish in parallel on a WP site. Not sure where to go from here, for the open-source/dev-related content I'm considering publishing here instead of Medium going forward. 

Let's see and happy to be part of this community now either way.