teleren/devto huggingface dataset:
Get Image From Local Resource Folder In React Native
Tags: javascript, react, reactnative, image
Published: 2018-07-08 10:08:13

---
title: Get Image From Local Resource Folder In React Native
published: true
description: In this tutorial, we will explain how to get image from local resource folder and display the image in react native application. This example covers, fetching and displaying an image from network location using Image Component of react native.React native provides a unified media management system so developers can easily manage all the image files by placing them together into a single folder. So here is the complete step by step tutorial for Show Image from Local Resource Folder in react native.
tags: #javascript #react #reactnative #image #reactjs
---


# Get Image from Local Resource Folder in React Native

Post Link : https://www.skptricks.com/2018/07/get-image-from-local-resource-folder-in-react-native.html

In this tutorial, we will explain how to get image from local resource folder and display the image in react native application. This example covers, fetching and displaying an image from network location using Image Component of react native.
React native provides a unified media management system so developers can easily manage all the image files by placing them together into a single folder. So here is the complete step by step tutorial for Show Image from Local Resource Folder in react native.

<a  href="https://www.skptricks.com/2018/07/get-image-from-local-resource-folder-in-react-native.html" >Get Image from Local Resource Folder in React Native </a>

<img src="https://2.bp.blogspot.com/-7Ve11Ce0XNQ/W0Bh4pQRV4I/AAAAAAAABq8/bUUN70chQdwo5S7sJzgqbROhZ_Z9BuqywCLcBGAs/s400/loca.jpg" />
Mentorship Resources
Tags: mentorship, communication, career, advice
Published: 2018-07-19 19:58:55

---
title: Mentorship Resources
published: true
description: Thoughtful articles on mentorship, communication, and general career advice. 
tags: mentorship, communication, career, advice
---
This list was originally curated for folks in our [mentor matchmaking program](https://dev.to/devteam/changelog-mentor-matchmaking-3bl0), but we realized it's actually super helpful for _all_ developers. 

# Mentorship

{% link https://dev.to/kylegalbraith/how-to-find-work-with-and-emerge-as-a-new-great-mentor %}

{% link https://dev.to/aditichaudhry92/what-is-a-mentor-3od7 %}

{% link https://dev.to/kim_hart/what-do-you-look-for-in-a-mentor-4ohb %}

{% link https://dev.to/rubynista/a-mentors-crossroad %}

{% link https://dev.to/justicofjustin/what-is-your-learning-style-5b2 %}

# Communication

{% link https://dev.to/barryosull/communication-styles---working-effectively-as-a-team-c0i %} 

{% link https://dev.to/lpasqualis/7-best-ways-to-make-one-on-one-meetings-more-productive %}

{% link https://dev.to/kathryngrayson/your-questions-are-dumb-ask-them-anyway-3cm6 %}

# Career Advice / Experiences

{% link https://dev.to/alexgwartney/my-programming-journey-have-patience-and-avoid-burnout-1n81 %}

{% link https://dev.to/victorcassone/the-inner-game-of-self-taught-development-3ie5 %}

{% link https://dev.to/mary_grace/burnout-what-happens-when-you-take-on-too-much-74d %}

{% link https://dev.to/plutov/transitioning-from-engineer-to-engineering-manager-1c6j %}

{% link https://dev.to/samjarman/the-best-career-advice-from-dev-chats-1l5d %}

Please add recommendations in the comments! And if you'd like to join our matchmaking program, update your [profile settings](https://dev.to/settings/mentorship).
Motivation vs Self Discipline
Tags: discuss
Published: 2018-07-19 22:51:13

---
title: Motivation vs Self Discipline 
published: true
description: So I wanted to talk about self discipline vs motivation and why one will always win. And the other will lead you to fail. The other night I was talking with a friend. And we were discussing how self discipline is how we have been able to keep going with our paths. And how while motivation is a good tool for picking your self up at times. Its not something that you want to use to keep your self on track. 
tags: #discuss 
---
So I wanted to talk about self discipline vs motivation and why one will always win. And the other will lead you to fail. The other night I was talking with a friend. And we were discussing how self discipline is how we have been able to keep going with our paths. And how while motivation is a good tool for picking your self up at times. Its not something that you want to use to keep your self on track. 

The reason for this as I used as a example in my conversation. Is motivation is like a energy drink. Where you will get a burst of energy and eventually its going to where off. And your going to be right back to where you started. Meaning lets say your goal is to get x project done and your super excited about it. You start working on it ect. You get a whole lot done a few days pass. And eventually your going to start to realize this is work. And that motivation is going to start burning off. And eventually your project is going to end up on the back burner and eventually just go away all together. 

But if you rely on self discipline meaning you get up you make sure you sit down and get x amount of tasks done such as writing this post you will be able to sustain a specific pace. And you will be able to keep on track to see things through. As you will not be relying on a initial motivation and more of a set schedule to get something done. This over all is how I have managed to continue to learn math and code for the past 7 months strait with out just saying oh this is just to much work. And giving up ect as the motivation factor has wore off several times. I do keep this in mind but over all making a set schedule to do things has made me keep on track. And I know in the end that it will be well worth the amount of work that has gone into it. 

And that is it for this week. I just wanted to post this as I felt it was a good topic. That we found interesting and I wanted to share it with you guys. I hope you all have a good week!. And as usual thank you for reading.
Who's looking for open source contributors? (July 23 edition)
Tags: discuss, opensource
Published: 2018-07-23 14:49:51

---
title: Who's looking for open source contributors? (July 23 edition)
published: true
description: Please shamelessly promote your project. Everyone who posted in previous weeks is welcome back this week, as always.
tags: discuss, opensource
---

Please shamelessly promote your project. Everyone who posted in previous weeks is welcome back this week, as always. 😄
Use emojis as cursors
Tags: showdev, vue, css, emoji
Published: 2018-07-24 23:33:07

---
title: Use emojis as cursors
published: true
description: Technique to use emojis as website cursors
canonical_url: https://kylekelly.com/posts/use-emojis-as-cursors/
tags: showdev,vue,css,emoji
---

I've built a simple tool that generates the CSS required to use emojis as cursors.

https://www.emojicursor.app/

## Doesn't this exist already?

Sort of. Other solutions currently out there are either using:

1. Pre-generated image files, or 
2. Using JavaScript with canvas to generate the images on the fly

There are pros and cons to both. 

Pre-generated image files are the most consistent and have the largest cross browser support, but they require more preparation a head of time to create the image files and the emoji style used may not be consistent with the users system and familiarity.

Using JavaScript and canvas is a way to use the installed system emojis, but does require JavaScript to run before the cursors are available.

## What's the new technique?

The key difference with this technique is using SVG, and treating the emojis as text. By using inline SVG in the cursor url property we can use the system emoji style, and not have an external image or JavaScript dependancies. Additionally it is trivial to wrap this in less or sass to generate different emoji cursors, or adjust the parameters.

The largest downside to this technique is lack of browser support. No IE or Edge.

## Git repo

The code is MIT licensed and available here:

https://github.com/kylekelly/emoji-cursor
Web Components statistics in 2017
Tags: javascript, webcomponents, statistics, beginners
Published: 2018-07-30 09:21:30

---
title: Web Components statistics in 2017
published: true
description: Some interesting statistics I have gathered after testing 696 web components.
tags: javascript, webcomponents, statistics, beginners
canonical_url: https://vaadin.com/blog/a-look-back-at-the-blooming-of-web-component-and-polymer-library-20-1
---


This article is the last story in the series "Testing 696 Web Components". The statistics in this article covers many topics: the number of components published on webcomponents.org, distribution of components based on its libraries, working and non-working components, and some more interesting stats.

**Note:** These statistics were yielded roughly a year ago. Some of them might become irrelevant in the current day.

### 300 elements in 3 months. That's an impressive number.
![](https://thepracticaldev.s3.amazonaws.com/i/rzvu8nmg4kovi609kaw1.png)
Let's break those numbers down:
- Polymer consistently accounts for more than 90% of the published elements. It's evident that Polymer is dominating in the scene of web component libraries.
- An impressive number of ~100 custom elements are published each month.
- The most notable change here is the distribution of Polymer 1 and 2 components. Polymer 2 has a surge of 278 elements while Polymer 1 roughly stays the same.

### Out of 696 tested elements, here is how many are functioning
![](https://thepracticaldev.s3.amazonaws.com/i/r1hdp7wc2lwpylhc1cwz.png)
**Heads up!** Every working component has its own live demo and screenshots for you to try in Vaadin Directory.

### Browser Compatibility
Out of 489 working elements, here's how many that works in each browser:
![](https://thepracticaldev.s3.amazonaws.com/i/l4mqk6uoyhy3xffmr0cc.png)

### Conclusion
Without any doubts, things have been revolving in favor of web components. More companies and technologies are betting on it. I hope you enjoy the series. If you have not read the previous two, here they are:
{% link https://dev.to/binhbbbb/the-story-of-a-man-who-has-tested-696-web-components-af8 %}
{% link https://dev.to/binhbbbb/top-5-obstacles-i-faced-in-testing-696-web-components-1e13 %}

If you have any question regarding testing web components, feel free to PM or send me an email. Thanks for reading!

- *For more news and writing pieces on Web Components, follow me on Twitter [@binhbbbb](https://twitter.com/binhbbbb)*
- *If you would like to try out Web Components, check out the series [Web Components Wednesday](https://vaadin.com/blog?tag=wcw), where I introduce and explain easy-to-use web components to beginners.*
Ctags mac Vim
Tags: rails, ruby, vim, ctags
Published: 2018-08-02 19:11:09

---
title: Ctags mac Vim
published: true
description: Using ctags in Vim for Rails Projects
tags: Rails, Ruby, Vim, ctags
---

Install ctags in vim using home brew
brew install ctags
I have set up this mapping in my vimrc file for the ctags

```map <C-F12> :!ctags -R --exclude=.git --exclude=logs --exclude=doc . <CR>```
I just press ```ctrl + fn + f12``` and voilla I can use ```ctrl + ]``` to go the definition of function in a rails project.

The above did not find do tagging for gem specific functions.
I had to add
```bundle list --paths```
to the above line as well.
So now I have a new mapping which is something like this
```map <C-F12> :!ctags -R --exclude=.git --exclude=logs --exclude=doc . $(bundle list --paths)<CR>```
Now I go to a gem specific function and type ```ctrl + ]``` and voila I have migrated to the gem file and now I can have a look at the gem source.

useful links: https://blog.sensible.io/2014/05/09/supercharge-your-vim-into-ide-with-ctags.html
https://andrew.stwrt.ca/posts/vim-ctags/
vscode debug config for wsl and jest
Tags: wsl, vscode, jest, debugging
Published: 2018-08-06 21:48:35

---
title: vscode debug config for wsl and jest
published: true
description: 
tags: wsl, vscode, jest, debugging
---

When using the config from jest [documentation](https://github.com/Microsoft/vscode-recipes/tree/master/debugging-jest-tests) the execution doesn't stop at specified breakpoints but the following config works with wsl:

```json
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Jest All",
      "program": "${workspaceFolder}/node_modules/jest/bin/jest",
      "args": ["--runInBand"],
      "useWSL": true
    },
  ]
}
```
I appeared on TV speaking Spanish with Chinese subtitles
Tags: introduction, flash, videogames, anecdote
Published: 2018-08-09 21:49:20

---
title: I appeared on TV speaking Spanish with Chinese subtitles
published: true
description: Frist post
tags: introduction, flash, videogames, anecdote
---

I've just set up my account at Dev.to, it does seem like a cool place to hang out, and to share knowledge with others. So that's what I'm hoping to do.

My name is Ciro, that rhymes with the number 0. I'm a game developer, but I'm also interested in bot writing and tinkering. You can find some of my bots at https://glitch.com/@chiguire, and my games at http://www.ciroduran.com/games/. I've also done some public speaking, putting up the slides at http://www.ciroduran.com/speaks/.

"But Ciro, that's a lot of links, you're already losing readers!" I know what to do. I'm going to share an anecdote. I was once about to be mugged while driving in my hometown, Caracas, but I managed to escape. I was so angry about this, that when I arrived home (thankfully unharmed), I modified a bit a game I was making and released it that same day. This game was [Nación Motorizada](http://ciroduran.com/juegos/motorizado) (requires Flash), a game where you must survive driving in a highway while tumbling bikes over, and earning combo points.

This game was picked up by a local newspaper, which was an achievement by itself. But then the game was picked up by CCTV, the Chinese News Network. Chinese correspondents came to my house and interviewed me about the game. So my anecdote is that I appeared in Chinese TV, speaking Spanish with Chinese subtitles. [Here's the video](https://www.youtube.com/watch?v=bmNQIBYge44).

<iframe width="560" height="315" src="https://www.youtube.com/embed/bmNQIBYge44" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

If this made you laugh then this post wasn't too bad after all :-) I'll return other day to write about more concrete subjects.
Can Docker replace our VMs farm?
Tags: docker, vms, help
Published: 2018-08-19 17:21:06

---
title: Can Docker replace our VMs farm?
published: true
description: Trying to understand containers
tags: Docker,VMs, help
---

I'm not familiar with the idea of containers. From what I've read online, it's a good idea for development for the team where we all develop in the same environment. 

But I was thinking if containers can actually replace a whole VM farm. We manage 200+ VMs in our team. Those VMs run 24/7 and does executions during the day/time. 
All of them are windows machines, some win7 some win10.
My question is, Can we replace those VMs with Docker or any containers. I'm thinking of something like, whenever an execution has to run, a container is spend up and when the execution is over it get destroyed. That will guarantee those execution runs in the same exact configs all the time. Because the hard part about maintaining 200+ VMs is that almost each one act differently due to so many execution that it runs during the day. 

is it that simple like this? whenever an execution has to run, we spin a container with specified configs?

```
docker win7 config1 
```
where config1 = chrome66, firefox61, outlook
and config2 might be different version of the browsers? 

is it that simple?!
Best obgyn doctor near me
Tags: obgynclinic, localgynecologist
Published: 2018-08-21 06:05:09

---
title: Best obgyn doctor near me
published: True
description: May-Grant is one of the best OBGYN medical center, providing expert obstetrics and Gynecology services for women. https://www.maygrant.com/
tags: Ob Gyn clinic, Local Gynecologist

---
VSCode Tip: Watching Files
Tags: vscode, tips
Published: 2018-08-21 18:55:02

---
title: VSCode Tip: Watching Files
published: true
tags: vscode,vs code,tips
canonical_url: https://SeanKilleen.com/2018/08/vscode-tip-watch-files/
---

File this under [VS Code Can do That?!](https://vscodecandothat.com/)

Sometimes I need to watch a log file or other file for changes, whether it be on my local machine or a remote server. On windows this can be a bit of a pain, and you oftentimes have to dump out of your IDE to make it happen.

So on a whim one day, I said “I wonder if VS Code can do that”. I search the extensions, and lo and behold, VS Code _can_ do that!

## Enter VS Code and the Log Viewer Extension

- Open VS Code
- Click on the `Extensions` button
- Type `Log Viewer` in the search box
- Find the [Log Viewer Extension](https://marketplace.visualstudio.com/items?itemName=berublan.vscode-log-viewer) and install it.

## Setting up the Extension

- In VS Code, open the Command Bar (for me, `CTRL + Shift + P` does this)
- Type `Workspace Settings` or similar and then select `Preferences: Open Workspace Settings`
- In the settings, add a section for `logViewer.watch` that defines some titles and patterns for files that you’d like to watch. Below is an example of watching two separate files on different servers. I add the below and save my preferences:

```json
{
    "logViewer.watch": [
        {
            "title": "Server 1 IIS",
            "pattern": "\\\\servername\\C$\\inetpub\\logs\\LogFiles\\W3SVC2\\u_ex180718.log"
        },
        {
            "title": "Server 2 IIS",
            "pattern": "\\\\servername2\\C$\\inetpub\\logs\\LogFiles\\W3SVC2\\u_ex180718.log"
        },
    ]
}

```

## What are the Results?

The log viewer opens a screen, and we can see all the applicable watches and view their updates as they change.

![Results](https://SeanKilleen.com/images/post-images//2018-08-21_vscode-logviewer-watches.png)

I love that I can define patterns and not just file paths, so that I can watch multiple files at once.

## What do you Think?

Hope you enjoyed this tip! Drop your other favorite tips in the comments, and check out [VS Code Can do That?!](https://vscodecandothat.com/) for a lot of other great tips!

[VSCode Tip: Watching Files](https://SeanKilleen.com/2018/08/vscode-tip-watch-files/) was originally published by Sean Killeen at [SeanKilleen.com](https://SeanKilleen.com) on August 21, 2018.
What are the key metrics that you look for Web App optimization? 
Tags: webdev, discuss, javascript
Published: 2018-08-24 16:15:32

---
title: What are the key metrics that you look for Web App optimization? 
published: true
description: Let's talk about what you do when you want/need to make better web apps.
tags: #webdev #discuss #javascript
---

**Note**: I'll try to include the most relevant metrics on the Part 4 of my Front End Developer Automation series. If you'd like to collaborate, please let me know [@papaponmx](https://twitter.com/papaponmx).

For me the depending on the topic, some of those are:

* `<meta>` tags presence and confirm that they include relevant content.
* Validate all `html` tags.
* First meaningful paint.
* Number, size and latency of initial requests and their relevance.
* Font sizes and images size on mobile devices.
* Color contrast ratio.
* Can I traverse the app just with the keyboard?


What are yours?
Opinions on Continued Education for Software Engineers 
Tags: discuss, education
Published: 2018-08-26 19:58:44

---
title: Opinions on Continued Education for Software Engineers 
published: true
tags: discuss, education
---

I'm a software engineer that is a year into my career and so far really enjoying myself. Often times family members and a few mentors of mine will ask me if I have plans to go back to school. While I like the idea of doing so one day, I'm not sure when I would want to study, or when. Additionally the realization that I can make good money doing work I enjoy with the degree I already have makes me question what the worth of a masters degree would be. Do you think its worth it for engineers to go back to school? What kind of things doing you think are worth studying? General advice on continued education in this field?
PHP Console Application made easy
Tags: php, cli, console, showdev
Published: 2018-08-28 14:50:58

---
title: PHP Console Application made easy
published: true
description: 
tags: php, cli, console, showdev
---

{% github adhocore/php-cli %}

Helps you build bespoke, interactive console app easy and quick - includes commands, actions, argument parsing, colors, cursors, interaction and all that is required.

*inspired by nodejs commander*

### Installation

`composer install adhocore/cli`
Discharge, a simple, easy way to deploy static websites to Amazon S3
Tags: node, webdev, aws, opensource
Published: 2018-08-30 07:19:25

---
title: Discharge, a simple, easy way to deploy static websites to Amazon S3
published: true
tags: node, webdev, aws, opensource
---

![](https://thepracticaldev.s3.amazonaws.com/i/nma5ir3der6n1ujqw16s.png)

[Discharge](https://github.com/brandonweiss/discharge) is, as far as I’m aware, the easiest way to deploy static websites to Amazon S3. I spent hours poring over AWS’s terrible docs so no one else would have to.

The highlights are:

* Very little understanding of AWS required
* Interactive UI for configuring deployment
* Step-by-step list of what’s happening
* Support for no trailing slashes in URLs
* Support for subdomains
* Use an AWS Profile (named credentials) to authenticate with AWS
* CDN (CloudFront) and HTTPS/TLS support

This has saved me a huge amount of time; I hope it’s helpful to other people. Let me know what you think!