teleren/devto huggingface dataset:
Start.ng Tourism Project
Tags: tourist, beginners
Published: 2019-08-30 01:58:29

I started a pre-internship program with Start.ng and a part of my tasks is to write about a place I have Visited.
Well, I have never traveled out of Nigeria so I'd talk about one of the places I'd like to visit. France, Specifically the capital city Paris, the city of lights. I would love to visit Paris because of the many tourists' sites. I pulled up Paris on Wikipedia and it listed out the major sites and the reason for their significances; "Paris, the capital city of France, is the third most visited city in the world.

It has some of the world's largest and renowned museums, including the Louvre, which is the most visited art museum in the world, but also the Musée d'Orsay which, like the nearby Musée de l'Orangerie, is mostly devoted to impressionism, and Centre Georges Pompidou, dedicated to Contemporary art.

Paris hosts some of the world's most recognizable landmarks such as the Eiffel Tower, which is the most-visited paid monument in the world, the Arc de Triomphe, the cathedral of Notre-Dame. The Cité des Sciences et de l'Industrie, located in Parc de la Villette, is the biggest science museum in Europe. Near Paris is located the Palace of Versailles, the former palace of the Kings of France. Both attractions are protected as UNESCO World Heritage Sites."
Some day, very soon, I would visit all these beautiful locations. 

(visit here for more information on Traveling and tourism https://timbu.com/france)
How to reverse a string in ruby
Tags: ruby
Published: 2019-08-30 01:30:51

---
title: How to reverse a string in ruby
published: true
description: reverse a string in ruby without using the reverse function
tags: ruby
---
You can do this:
 ```ruby
 def my_reverse(str)
  str.chars.inject {|a, b| b + a}
 end


 > my_reverse("idol")
 => "lodi"
```

 You can also monkey patch the String object:
 ```ruby
 class String
   def my_reverse
     self.chars.inject {|a, b| b + a}
   end
 end

 > "idol".my_reverse
 => "lodi"
```

  
 and will print the same result :)

Warning: Be extra careful on monkey patching ruby objects.
Wayfarer
Published: 2019-08-30 01:21:03

A while back 
I was walking through the stacks 
_of my_
local library 
pulling books off the shelf, 
randomly skimming, 
appreciating little *kernels* of insight 
––where––
I found them.

I was the only one on the floor;––there's something 
serenely exciting 
about answering the quiet call to adventure,
––which–– 
_dusty call numbers make..._

I came across the driest text––both in content and appearance... something about
*database internals implementations*.

Flipping through each chapter, as though I'd find _some long forgotten secrets_;
I found something better––

Each chapter began with a quote. 
\**I'd like to share my favorite:\**

Caminante, son tus huellas
el camino y nada más;
Caminante, no hay camino,
se hace camino al andar.
Al andar se hace el camino,
y al volver la vista atrás
se ve la senda que nunca
se ha de volver a pisar.
Caminante no hay camino
sino estelas en la mar.


Wayfarer, the only way
Is your footprints and no other.
Wayfarer, there is no way.
Make your way by going farther.
By going farther, make your way
Till looking back at where you've wandered,
You look back on _[the]_ path you may
Not set foot on from now onward.
Wayfarer, there is no way;
Only wake-trails on the waters.

_Translation by Rafael Rolón-Muñiz_

Fellow travelers, 
I wish you well on \**your journey\**,
Perhaps,
we may wander 
'cross each other's
**paths**. In any case,;;;
_here's to you_, 
      and
_here's to me_,
,,Caminante
Code Story E4: Sean Washington on Imposter Syndrome
Tags: podcast, codestory
Published: 2019-08-30 00:39:38

{% youtube 2QZegt_8NTM %}

Now-a-days, people are introduced to software development through multiple avenues. And it’s pretty amazing how many other industries parallel the thinking and creative process of writing code – teaching, project management… even music. Sean Washington took an unconventional route into software, through writing music and graphic design. Since then he has been sprinting forward, as a full stack web developer and tech podcast host. His most recent adventure has been becoming the CTO and lead developer of the Design Kollective – giving him the opportunity to not only learn the platform – but to make it his own and define the vision for how to up level the product.

In the clip above, Sean Washington discusses something many of us might be familiar with: imposter syndrome. If you like what you hear, check out the full episode below.

{% podcast https://dev.to/codestorypodcast/e4-sean-washington-design-kollective %}
Angular Material with CSS variables
Tags: angular, css, webdev, showdev
Published: 2019-08-30 00:37:23

---
title: Angular Material with CSS variables
published: true
description: Angular Material with CSS variables.
tags: angular, css, webdev, showdev
---

<p align="center"><img alt="logo" src="https://raw.githubusercontent.com/johannesjo/angular-material-css-vars/master/logo.png"></p>

Just wanted to let you know that I published a little helper library to make Angular Material work with CSS variables, which is great, because it allows you unlimited different themes for your app almost without any additional kb.

You can [check it out on Github](https://github.com/johannesjo/angular-material-css-vars)!
[Discuss] What's your favourite Fibonacci implementation and in which language? Mine is in Haskell
Tags: discuss, functional, todayilearned, haskell
Published: 2019-08-30 00:27:57

A few years ago, in my first grad interview, I recall being asked to implement Fibonacci in two different approaches. Back then, I could only think of recursive  and iterative approaches in Java. My naïve, young self could not fathom that other approaches could exist. 

As the years gone by, I've come across many implementations in different languages and paradigms. This however, has got to be my favourite, in good old Haskell:
{%gist https://gist.github.com/PatrickBuhagiar/c1e94db01518cd93bfd708f25209bdc8 %}
When I was first learning Haskell, it took me quite a while to wrap my head around what is going on here. I think it's my favourite implementation because it is a good example of how to use infinite streams and lazy loading. 

**What's your favourite Fibonacci sequence, in what language, and why?**


## Don't know Haskell? I'll explain.
The key bit to understand here is what `zipWith` does. `zipWith`, which returns an array, incrementally takes an element from two supplied arrays, and performs an operation on them. In this case, I am adding them up with the addition operator. Below is an example of what happens if I `zipWith` arrays `x` and `y`.  
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/68w8f43b37a89rb4psyk.png)

In Haskell, the `:` syntax allows you to concatenate elements or arrays into a single array. 

`fibs` and `fibs'` are two functions that I've defined. `fibs` returns an array with `1` as its head, and the content of `fibs'` as its tail. 

`fibs'` also returns an array that starts with `1`, but, as a tail, performs `zipWith` on `fibs` and itself with the addition operator! Confusing? Here's a step by step breakdown of how the whole thing gets evaluated:
``` haskell
fibs -- we're calling "fibs", which expands to...
[1, fibs'] -- but fibs' expands to...
[1, 1, (zipWith (+) fibs fibs')] -- recursively we are going keep expanding
[1, 1, (zipWith (+) [1, (fibs')] [1, zipWith (+) fibs fibs']) ] 
-- let's add the first elements in the two arrays supplied for the first zipWith
[1, 1, 2, (zipWith (+) [fibs'] [zipWith (+) fibs fibs'])]
-- and this will go on for infinity!
``` 
*Another way to think about what is going on here is that we are essentially having two identical infinite Fibonacci arrays, however one is offset by one index. As a result of this offset, `zipWith` would achieve the same effect as adding the two last numbers in the sequence. The initial two ones in the sequence are added before performing `zipWith`.*
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/ye09zzw56ihgvamurf21.png)

I know what you're thinking. Sure, this would go on to infinity and blow up memory, however Haskell uses lazy loading which means values are only evaluated when needed. The last part of the this implementation is to use `take 10 fibs`, which basically returns the first 10 elements of the fibonacci sequence.
Code Story E3: Leah Culver on Leading Co-Authors Specs
Tags: podcast, codestory
Published: 2019-08-30 00:20:25

{% youtube EFL8b-K-dR8 %}

Podcasts are a great thing – the good parts of a radio show, the powerful snippets from an audio book, with all the content control of a topical news feed. Yet, there was something missing when Leah Culver tried to find her next episode to listen to, while training for her 1st marathon.

And that thing was a more powerful way to discover the podcasts you love – through your subscriptions, activity, and most of all – through the power of social networking and suggestion. So she decided to fix it – and built Breaker, an app that helps you discover new podcasts and episodes based on the content you – and your friends – like most.

In this clip. Leah Culver talks about what it was like to lead co-authors specs. If you like what you hear, check out the full episode below.

{% podcast https://dev.to/codestorypodcast/e3-leah-culver-breaker %}
Movies addict?! Prove it.
Tags: showdev, javascript, react
Published: 2019-08-30 00:16:51

###Try it here: [Movies Addict](https://moviesaddict.alaadesouky.now.sh/). 

Movies Addict is a little online/(offline soon) game that tests your knowledge with movies quotes. Don't forget to share your score.

###Tech used
- React
- Next

###Current issues
- Obviously not the best UI. 😅
- Small Database.
- Duplicate movie name, occasionally.


###You can find the repository here: [Movies Addict](https://github.com/AlaaDesouky/movies_addict)


Feel free to share your opinion, good or bad. Also, what other options could be added?
Angular 8 and IE 11
Tags: angular, ie11
Published: 2019-08-29 18:33:36

---
title: Angular 8 and IE 11
published: true
description: How to set up your Angular project to run on IE 11
tags: angular, ie11
---

It's a funny thing that my first post on Dev.to will be about Angular, a framework that I have close to zero experience.

I've switched careers early 2010, after a few years working with advertising and marketing, so I didn't catch the breaking change on the web development world with the rise of frameworks like Backbone and Angular. My first job working with the web was all about WordPress themes and the beloved jQuery (which I really miss).

Anyway, sorry for the little detour and onto what really matters! On the previous versions of Angular, we had to install [core-js](https://github.com/zloirock/core-js) and import a bunch of its features/helpers, making your `polyfill.ts` look like this:

```javascript
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
```

Angular 8 comes with [core-js](https://github.com/zloirock/core-js) installed by default. It will be added to our bundle **only** if we tell Angular to do that.  


## How do we do that?

### 1. `tsConfig.json`

```javascript
 // the default configuration
 "target": "es2015"

 // the change
 "target": "es5"
```


### 2. `polyfills.ts`

```javascript
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
 import 'classlist.js'; // Run `npm install --save classlist.js`.
```

### 3. `browserslist`

```markdown
 # the default configuration
 not IE 9-11

 # the change - remove the "not"
 IE 9-11
```

## Bonus tip

If you are going to use SVGs sprites and the tag `<use>`, IE 11 will complain about it too. Luckily there's a lib to solve that, the amazing [svg4everybody](https://github.com/jonathantneal/svg4everybody). Add it to your `polyfills.ts`:

```javascript
/** IE10 and IE11 requires the following for external source of SVG when using <use> tag */
import * as svg4everybody from 'svg4everybody';
svg4everybody({ polyfill: true });
```

Feel free to drop a comment if you have any other tips and strategies for developers working with Angular 8!
Code Story E3: Leah Culver on Breaker's Origin
Tags: podcast, codestory, ios
Published: 2019-08-30 00:08:11

{% youtube 1XWBuZWxo3I %}

Podcasts are a great thing – the good parts of a radio show, the powerful snippets from an audio book, with all the content control of a topical news feed. Yet, there was something missing when Leah Culver tried to find her next episode to listen to, while training for her 1st marathon.

And that thing was a more powerful way to discover the podcasts you love – through your subscriptions, activity, and most of all – through the power of social networking and suggestion. So she decided to fix it – and built Breaker, an app that helps you discover new podcasts and episodes based on the content you – and your friends – like most.

In the clip above, Leah Culver discusses how the idea for Breaker originated. If you like what you hear, check out the full episode below.

{% podcast https://dev.to/codestorypodcast/e3-leah-culver-breaker %}
Code Story E3: Leah Culver on Naming Virgin and Breaker
Tags: podcast, codestory
Published: 2019-08-30 00:07:02

{% youtube ccEzx_Gip-o %}

Podcasts are a great thing – the good parts of a radio show, the powerful snippets from an audio book, with all the content control of a topical news feed. Yet, there was something missing when Leah Culver tried to find her next episode to listen to, while training for her 1st marathon.

And that thing was a more powerful way to discover the podcasts you love – through your subscriptions, activity, and most of all – through the power of social networking and suggestion. So she decided to fix it – and built Breaker, an app that helps you discover new podcasts and episodes based on the content you – and your friends – like most.

In the clip above, Leah Culver talks about the process for naming Virgin and Breaker. If you like what you hear, check out the full episode below.

{% podcast https://dev.to/codestorypodcast/e3-leah-culver-breaker %}
Code Story E3: Leah Culver Gives Advice to Starters
Tags: podcast, codestory
Published: 2019-08-30 00:03:29

{% youtube 1Gn1dtYLJWw %}

Podcasts are a great thing – the good parts of a radio show, the powerful snippets from an audio book, with all the content control of a topical news feed. Yet, there was something missing when Leah Culver tried to find her next episode to listen to, while training for her 1st marathon.

And that thing was a more powerful way to discover the podcasts you love – through your subscriptions, activity, and most of all – through the power of social networking and suggestion. So she decided to fix it – and built Breaker, an app that helps you discover new podcasts and episodes based on the content you – and your friends – like most.

In the clip above, Leah Culver has some great advice for people just starting out. If you like what you hear, check out the full episode below.

{% podcast https://dev.to/codestorypodcast/e3-leah-culver-breaker %}
Octocat Memory Game
Tags: codepen
Published: 2019-08-29 23:52:44

<h1>Octocat Game</h1>

<p>Test your memory, you know how to play.
 All the images are belongs to there respective owner .</p>

<p>// Updated  on  16 July, 2017   :  Second time play error fixed. Some image replaced.</p>

{% codepen https://codepen.io/esa-security-group/pen/GRKELOg %}
Code Story E2: Tanner Hearne on Building His Team
Tags: podcast, codestory
Published: 2019-08-29 23:52:20

{% youtube IbPdykzx0c0 %}

A gap used to exist in the world of music licensing. The quality of music available to project teams making promotional videos or materials was pretty low. And for those composing music, getting paid was an untimely event, where checks just sort of “showed up” in the mail.

The Musicbed set out to change that, by providing an online marketplace for music licensing. And in the beginning, Tanner Hearne took on the role as the first in house developer – with the job and goal to take the product to new heights, as a well engineered, scalable and secure platform.

In the clip above, Tanner Hearne dives into what it was like to build his team at Musicbed. If you like what you hear, check out the full episode below.

{% podcast https://dev.to/codestorypodcast/e2-tanner-hearne-musicbed %}
Standup a Web App on the Cloud in 1 Minute
Tags: python, javascript, html, css
Published: 2019-08-29 22:05:17

{% youtube OrZMjdVhFfA %}

Using WayScript, you are able to turn your scripts and tools into live web applications rapidly. Anything you build is automatically running in the cloud. You can run javascript (and install libraries with npm), python (can pip install libraries), and more.
How do you ground yourself?
Tags: discuss, worklifebalance
Published: 2019-08-29 23:49:59

---
title: How do you ground yourself?
published: true
description: When trying to unwind and relax, what do you do? 
tags: discuss, work life balance
---
We tend to spend quite a lot of our day in front of a monitor, so what do you do when you need to unplug / unwind / relax or however you call it? Is it more screens but doing something else(like gaming or watching movies) or is it something else?

I personally can't really get away from the screen, gaming every once in a while for a few hours helps me take my mind off of work.
Applying the Fogg Behavior Model to Developer Relations
Tags: devrel
Published: 2019-09-03 03:55:10

---
title: Applying the Fogg Behavior Model to Developer Relations
published: true
tags: DevRel,DeveloperRelations
canonical_url: https://maxkatz.org/2019/08/29/applying-the-fogg-behavior-model-to-developer-relations/
---

I found about the [Fogg Behavior Model](https://www.behaviormodel.org/) from [#saashacker](http://Fogg%20Behavior%20Model) newsletter. I found this model super interesting and right away thought if it can be applied to Developer Relations.

[Continue reading...](https://maxkatz.org/2019/08/29/applying-the-fogg-behavior-model-to-developer-relations/)
Code Story E2: Tanner Hearne on the MVP Code
Tags: podcast, codestory
Published: 2019-08-29 22:32:30

{% youtube UqFAOpTryio %}

A gap used to exist in the world of music licensing. The quality of music available to project teams making promotional videos or materials was pretty low. And for those composing music, getting paid was an untimely event, where checks just sort of “showed up” in the mail.

The Musicbed set out to change that, by providing an online marketplace for music licensing. And in the beginning, Tanner Hearne took on the role as the first in house developer – with the job and goal to take the product to new heights, as a well engineered, scalable and secure platform.

In the clip above, Tanner discusses working on the MVP code for Musicbed and how it shaped the things to come. If you like what you hear, check out the full episode below.

{% podcast https://dev.to/codestorypodcast/e2-tanner-hearne-musicbed %}
Code Story E2: Tanner Hearne on Sync ID and Clearance
Tags: podcast, codestory
Published: 2019-08-29 22:28:33

{% youtube WFus4Er-jOs %}

A gap used to exist in the world of music licensing. The quality of music available to project teams making promotional videos or materials was pretty low. And for those composing music, getting paid was an untimely event, where checks just sort of “showed up” in the mail.

The Musicbed set out to change that, by providing an online marketplace for music licensing. And in the beginning, Tanner Hearne took on the role as the first in house developer – with the job and goal to take the product to new heights, as a well engineered, scalable and secure platform.

In the clip above, Tanner discusses the Sync ID and clearance rates for Musicbed. If you like what you hear, check out the full episode below.

{% podcast https://dev.to/codestorypodcast/e2-tanner-hearne-musicbed %}
Code Story E2: Tanner Hearne on Choosing Laravel
Tags: podcast, codestory
Published: 2019-08-29 22:05:06

{% youtube 8PeGI0EGPnY %}

A gap used to exist in the world of music licensing. The quality of music available to project teams making promotional videos or materials was pretty low. And for those composing music, getting paid was an untimely event, where checks just sort of “showed up” in the mail.

The Musicbed set out to change that, by providing an online marketplace for music licensing. And in the beginning, Tanner Hearne took on the role as the first in house developer – with the job and goal to take the product to new heights, as a well engineered, scalable and secure platform.

In the clip above, Tanner discusses why he chose to use Laravel for Musicbed. If you like what you hear, check out the full episode below.

{% podcast https://dev.to/codestorypodcast/e2-tanner-hearne-musicbed %}
Code Story E2: Tanner Hearne on Using Frameworks
Tags: podcast, codestory
Published: 2019-08-29 22:03:40

{% youtube U0Bi7rK5Sro %}

A gap used to exist in the world of music licensing. The quality of music available to project teams making promotional videos or materials was pretty low. And for those composing music, getting paid was an untimely event, where checks just sort of “showed up” in the mail.

The Musicbed set out to change that, by providing an online marketplace for music licensing. And in the beginning, Tanner Hearne took on the role as the first in house developer – with the job and goal to take the product to new heights, as a well engineered, scalable and secure platform.

In the clip above, Tanner discusses frameworks and why it's important to use one. If you like what you hear, check out the full episode below.

{% podcast https://dev.to/codestorypodcast/e2-tanner-hearne-musicbed %}
Super handy program for increasing productivity on one screen
Tags: productivity, showdev
Published: 2019-08-29 21:43:21

Hey everyone, just saw this new application launch by someone on Twitter. It seems pretty gamechanging for one-screen environments (for me for my laptop for example). 😎

It allows you to switch applications with a super simple shortcut: alt+[number 1-10] 🙌

Now, it may seem unnecessary because you've got Alt+tab, but it's been pretty handy for me so far! Check out the demo video: 💕
{% youtube cysVHi-pcxU %}

If you want to download it, you can do it here, it's 100% free & opensource: https://ahkohd.github.io/switch-desktop/ 👀
Check out the source too, and maybe give it a star:
https://github.com/ahkohd/switch-desktop 🙌

**Note: I did not make this. I just wanted to share it with the community because it's really handy for use on my laptop, where I have limited screen and constantly switch between apps with alt+tab, which becomes tedious and annoying when you have loads of programs open**