teleren/devto huggingface dataset:
Where to find me
Tags: social, webservices
Published: 2019-02-10 22:50:45

---
title: Where to find me
published: true
description: In praise of the website WhereToFindMe
tags: social, web services
---

[Wheretofind.me](https://wheretofind.me) is a great service that provides a simple index page that allows you to link to your various web identities. I saw people using it on GPlus to provide an alternative way of keeping in touch with people who haven't decided where exactly they will be after GPlus closes.

As a developer I kind of kicked myself when I saw it because it is exactly the kind of simple utilitarian web service I like and it would have been entirely possible for me to create it and to have allowed other people to share it.

Instead [full credit](https://wheretofind.me/about/) to [Kit la Touche](https://wheretofind.me/@kit) who didn't just think it but built it and shared it.
Learn how to make an animated card for your websites
Tags: html, css3, ui
Published: 2019-02-10 21:48:30

---
title: Learn how to make an animated card for your websites
published: true
description: in this video tutorial i will show how to make an animated card usisng html5 and css3 
tags: html5,css3,UI
---


in this video tutorial i will show how to make an animated card using 
https://youtu.be/1GRCAPIwyhg
5 tools that will change your life
Tags: html, css3, web, design
Published: 2019-02-10 21:42:45

---
title: 5 tools that will change your life
published: true
description: in this article i will present you 5 tools that every web designer should have
tags: HTML5,CSS3,WEB,DESIGN
---

this is my article about 5 tools that will change every developers life 

https://doctorcodetutorial.blogspot.com/2019/02/top-5-useful-websites-for-web-designer.html
Sequelize Model.update
Tags: sequelize, mysql, node, express
Published: 2019-02-10 21:29:58

---
title: Sequelize Model.update
published: true
description: How to update database using sequelize Model.update
tags: sequelize, mysql, node, express
---
Using sequelize for model creation, i needed to update my database so i used Model.findByIdAndUpdate which returned an error and i later found the right way to update to the database using 
    Model.update({
            title:  'Updated title '
        },
        {
        where: 
        {
            id: 1
        }
      })
I hope this helps someone out there... or is their any other way ? i will like to know thanks.
example below:
https://thepracticaldev.s3.amazonaws.com/i/xv3dnnshqqitd1gs9k66.png
What year did you start in tech?
Tags: discuss, career
Published: 2019-02-10 21:24:33

---
title: What year did you start in tech?
published: true
description: 
tags: #discuss #career 
---

Let's have a little fun with a trip down memory lane: think back to the year that you first started your career in tech:
* What year was it?
* What was that first role? 
* How did that role help you grow into who you are today?   
* Include a Giphy to symbolize the year


Here's mine:
* My career began in 2001
* My first role was an apprenticeship at my local school district, in a help desk capacity
* Accountability.  Ironically, I didn't have much of that as a teenager when I started my career, and eventually I found myself without that first job.  It was hard, but valuable lesson early on that I look back at with appreciation.  

![gif](https://media.giphy.com/media/6ZkMYMcSUS5AA/giphy.gif)
Fastest image scanner tool of all the time made in python
Tags: python, github, opensource, security
Published: 2019-02-10 19:57:29

---
title: Fastest image scanner tool of all the time made in python
published: true
description: 
tags: python,github,opensource,security
---

link - https://www.github.com/0xprateek/photoroid
Fastest Image scanner using openCV
Repositories by self taught programmer.
Tags: github, programmer, hacker, opensource
Published: 2019-02-10 19:56:03

---
title: Repositories by self taught programmer.
published: true
description: 
tags: github,programmer,hacker,opensource
---

Contribute,fork and star - https://github.com/0xPrateek
Hey all, This is prateek a self taught and budding programmer. Need your  helpful contribution in my repositories.
Please visit.
How to begin with?
Tags: discuss, showdev, beginners, productivity
Published: 2019-02-10 15:54:28

*"how to begin with?"*, maybe is the most difficult question, just can say because of my experience, my experience of the seminar, my experience of how to begin writing this.

So actually I recently gave a hands-on session on the topic, "Introduction to Python", and it was the first time I was on the stage, and as it happens to all, I also experienced, the same stage fear ☹ and that anxiety over and over, until it all started and went off with a nice flow. 

We explored some basic aspects such as variables in Python, Python lists, slicing, and loops. I also learned some new things, explored more about the language, and there was a moment in that session, when I was telling all about the [identity operator, 'is'](https://www.tutorialspoint.com/python/identity_operators_example.htm), and I went off telling something wrong, but then I realized, that no one's going to make fun of my mistake, everyone was there to help me and correct me if I went wrong somewhere. Everything, other than this went fine, and I learned that it's a great joy if we can help others.

Further, I was asked by one of my friends, if I can write a blog or something to share my experience, but I wasn't able to find out, how to begin with it, how to start writing.

I took 3 days thinking about how to begin it, but wasn't able to get it, so today I just got a pen and a paper, and started off with it without thinking, and meanwhile I realized, we just need to start without thinking much about anything, everything will automatically go on with flow, and obviously there'll be errors, but will be ignored and further on rectified, like you all ignored the grammatical errors while reading and just carried on with the flow.☺
Kubernetes: Mount a file in your Pod using a ConfigMap
Tags: kubernetes, configmap, volume, pod
Published: 2019-06-04 19:51:25

---
title: Kubernetes: Mount a file in your Pod using a ConfigMap
published: true
tags: kubernetes,configmap,volume,pod
canonical_url: https://carlos.mendible.com/2019/02/10/kubernetes-mount-file-pod-with-configmap/
---

Lately I’ve been learning Go and this week I started a side project named [kube-sherlock](https://github.com/cmendible/kube-sherlock). The purpose of this small program is to list any pod that does not have the **labels** that your organization requires.

For [kube-sherlock](https://github.com/cmendible/kube-sherlock) I created a [dockerfile](https://github.com/cmendible/kube-sherlock/blob/master/dockerfile) were both the program (kube-sherlock) and the default configuration (config.yaml) are placed in the **app** folder:

```
FROM golang:1.11.5 AS build
WORKDIR /src
ADD go.mod go.sum ./
RUN go get -v
ADD kube-sherlock.go config.yaml ./
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-w'

FROM alpine:3.7
COPY --from=build src/config.yaml app/config.yaml
COPY --from=build src/kube-sherlock app/kube-sherlock
WORKDIR /app
CMD ./kube-sherlock

# Metadata
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \
    org.label-schema.name="kube-sherlock" \
    org.label-schema.description="Check if labels are applied to your containers" \
    org.label-schema.url="https://github.com/cmendible/kube-sherlock" \
    org.label-schema.vcs-ref=$VCS_REF \
    org.label-schema.vcs-url="https://github.com/cmendible/kube-sherlock" \
    org.label-schema.schema-version="0.1"
```

So what if you want to replace the default configuration?

You can achieve this with the help of a **ConfigMap** , creating a new **config.yaml** with your custom values:

```
apiVersion: v1
kind: ConfigMap
metadata:
  name: sherlock-config
  namespace: default
data:
  config.yaml: |
    namespaces:
      - default
    labels:
      - "app"
      - "owner"
```

**Note** : I’m using the name of the file as the **key**.

And then create a pod definition, referencing the **ConfigMap** :

```
apiVersion: v1
kind: Pod
metadata:
  name: kube-sherlock
spec:
  serviceAccountName: kube-sherlock
  containers:
    - name: kube-sherlock
      image: cmendibl3/kube-sherlock:0.1
      volumeMounts:
      - name: config-volume
        mountPath: /app/config.yaml
        subPath: config.yaml
  volumes:
    - name: config-volume
      configMap:
        name: sherlock-config
  restartPolicy: Never
```

**Note** : the volume references the **ConfigMap** (sherlock-config), the volume mount specifies the **mountPath** as the file you want to replace (/app/config.yaml) and the **subPath** property is used to reference the file by key (config.yaml)

Hope it helps.
Is Haskell bad for FP?
Tags: discuss, functional, haskell
Published: 2019-02-10 13:33:53

---
title: Is Haskell bad for FP?
published: true
description: 
tags: #discuss, #FP, #Haskell
---

I've deleted this post. It was not very well written, and has, in part because of that, attracted many negative reactions from people defending Haskell without really understanding my points. I am no longer willing to defend this post against them. In part because, as mentioned, it did indeed have a fair few problems.
SOLVED : Privacy error with custom domain and github pages
Tags: help, hugo, solved, showdev
Published: 2019-02-10 13:22:29

---
title: SOLVED : Privacy error with custom domain and github pages
published: true
description: receiving https privacy error on custom domain and github pages and without using https, bootstrap and jquery library is not loading.
tags: help, hugo, solved, showdev
---

Hi everyone,


I'm trying to host [my hugo website on github] (https://github.com/priteshusadadiya/priteshusadadiya.github.io) with the custom subdomain https://www.priteshusadadiya.com results in

> Your connection is not private

When i remove https from url then it results in a website without bootstrap styling.


I followed [github's troubleshooting](https://help.github.com/articles/troubleshooting-custom-domains/#https-errors) guide but no luck. 

Here is DNS **A** records.

185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153

I have also added one CNAME record

www	CNAME	priteshusadadiya.com


I have also tried removing and re-adding my custom domain to the repository, still no luck.

Repo : https://github.com/priteshusadadiya/priteshusadadiya.github.io 


Tried searching for solution on stackoverflow and github issues but coudn't find any. Can anyone please help me debug this ?

Thanks,
Pritesh


____
## Update

Finally figured it out what was wrong with my DNS Configuration ?


The problem was that i had created a sub-domain `WWW` which was pointing to the apex (Main) domain priteshusadadiya.com

```
CNAME record

www	CNAME	priteshusadadiya.com

```

All i had to do is make it point to the `priteshusadadiya.github.io`  


```
CNAME record

www	CNAME	priteshusadadiya.github.io

```


and it worked. 🙌
Creating Travelport Smartpoint Plugin - Part 1
Tags: csharp, travelport, smartpointsdk
Published: 2019-02-10 12:36:54

---
title: Creating Travelport Smartpoint Plugin - Part 1
published: true
description: I will take you through the experience of building Travelport Smartpoint Plugin from scratch
 
tags: C-Sharp, Travelport, SmartpointSDK
---

What happens when you are asked to build something when you have no idea how to, it creates nervousness as well as excitement, but add a deadline to it the nervousness turns into anxiety quickly, let me take you to the journey of building my first Travelport Smartpoint Plugin from scratch.

TL;DR
---
Travelport Smartpoint SDK is used to augment functionalities in Travelport Smartpoint, which is a smarter way of doing bookings like airlines, hotels, cars, etc.
I created a plugin to get third-party data in Smartpoint console by using Smartpoint SDK.

---

Requirements:
To start with the first thing you need is:
* Travelport Smartpoint 
* Visual Studio
* Travelport Smartpoint SDK Console

---
Resources:

* Travelport Coding Master Class: Smartpoint SDK Demonstration
[![Travelport Coding Master Class: Smartpoint SDK Demonstration](http://img.youtube.com/vi/ZubPvxB4gn8/0.jpg)](http://www.youtube.com/watch?v=ZubPvxB4gn8)

*Travelport Coding Master Class: Smartpoint SDK Demonstration
[![Travelport Coding Master Class: Smartpoint SDK Demonstration](http://img.youtube.com/vi/MUMHT7-8Bt0/0.jpg)](http://www.youtube.com/watch?v=MUMHT7-8Bt0)


*[Smartpoint SDK API documentation](https://support.travelport.com/webhelp/smartpointsdk/)
BxJS Weekly Episode 49 - javascript news podcast
Tags: javascript, node, podcast, news
Published: 2019-02-10 11:27:55

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

Hey dev.to community!

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


You can also watch or listen to this episode on:
- [YouTube](https://youtu.be/TbKE7bxBoUw)
- [Castbox](https://castbox.fm/episode/BxJS-Weekly-Ep.-49-Feb-9%2C-2019-(javascript-news-podcast)-id1378315-id128059411?country=us)
- [iTunes](https://itunes.apple.com/de/podcast/bxjs-weekly/id1441956525)

Any feedback is appreciated 😁

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

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

If you enjoy my content, please consider [supporting me](https://codezen.net/support.html) 😉
Captain Marvel's Official Website is Amazing
Tags: discuss, webdev, captainmarvel
Published: 2019-02-10 09:40:31

---
title: Captain Marvel's Official Website is Amazing
published: true
description: With a truly inspired experience, it only makes me even more excited for the movie that hits theaters March 8, 2019.
tags: discuss, webdev, captainmarvel
---

In a blast from the past, Marvel Studios brings us a fantastically designed, fast, and easy to use website to showcase Captain Marvel which comes to theaters March 8, 2019.

Check it out for yourself here: https://www.marvel.com/captainmarvel
ABCD learning new things on busy time
Tags: career, development, developer
Published: 2019-02-10 08:05:48

---
title: ABCD learning new things on busy time
published: true
description: Have you been so busy that you can't learn new skills?
tags: #career #development #developer
cover_image:  https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQKuB3KTZVgu9ZTwgBLZsHJ7WwqvO9GZHCvVTBO-ONWwfw8cBiUzA
---

Have you been on “I wish i had learned that skills” scenario and you can’t have to learn new things either you are busy at your career or busy for the family.

You can’t just insert new skills in between your schedules for your hectic time?

I will tell you this if you believe you can’t learn new things with your limited time, You are definitely wrong. In fact YOU CAN!

The answer is ABCD “A BIG CONSISTENCY AND DEDICATION.

Believe me I’m also into this scenario.

My profession is Software Engineer and with that we should be able to catch up the new buzz on Information Technology. If we are outdated on what we do then we are left behind worst case it will cause our job and we don’t want it that way so we strive for new skills every time.

With tons to learn in this field. If you wanted it you can have it. That’s easy to say but hard to be consistent of.

I can give you my list on how to deal with this.

1.   START

"START AND YOU CAN"

You can’t get to learn new things if you wont have to spare a minute or so to start the skills. Start by STARTING then you won’t believe you have done it by just merely starting. START is also the first and an essential way to learn new skills.

2. MINUTE

"ADD ME AND YOU’LL GAIN"

Every time just spare some time maybe just a couple of minute with just reading or doing the skills you want to acquire. By this you’ll have PROGRESS on what you want to achieve. Later on this minute or so tinkering the new skills will be add up and become a major skill. You don’t believe me? TRY IT! Now just set every day what time you can spare a minute or so, for so you can be HEATED UP to learn new things.

What you won’t believe is you have already accumulated the new skills.

This is also with the help of mentors or references.

3. TEACH

"TEACH AND YOU'LL BE REWARDED"

After learning the new skill the best thing to do is to teach it to others also with the spare time you have. You know you’re still busy.

It could be at work or after office hours.

You can teach it to your family or your friends.

Now this sums up my ABCD For learning new skills. You just have to try this and be consistent of what you do. You know Knowledge is POWER! so we should be learning everyday with all sorts of lessons in life.

this article is based from: https://www.devsmurfz.com/2019/02/10/abcd-learning-new-things-on-busy-time/
I made a simple virtual machine that runs C in the browser.
Published: 2019-02-10 06:09:32

---
title: I made a simple virtual machine that runs C in the browser.
published: true
description: 
tags: 
---

This project is made as an experiment to see if C can be learned easier if the lower level is covered in paralel.
Sandbox: https://vasyop.github.io/miniC-hosting

Tutorial part 1: https://vasyop.github.io/miniC-hosting/?0

More info: https://github.com/vasyop/miniC-hosting/blob/master/README.md

Please consider supporting this project: https://github.com/vasyop/miniC-hosting/blob/master/support.md
Force download using JavaScript
Tags: javascript, programming, beginners, tutorial
Published: 2019-02-11 21:44:35

---
title: Force download using JavaScript
published: true
tags: javascript,programming,beginners, tutorial
canonical_url: https://mindsers.blog/en/force-download-using-javascript/
---

Forcing a file to be downloaded by the browser (user) seems hard because we do not have a native Javascript function to do that. I know why these functions don't exist but I still have to force download files in my apps! For example, when I put business logic in my frontend app.

One of my clients asked me to add a wonderful feature to his app: download Excel report files. I have to start the download with Javascript but it won't be as simple as a `GET` request.

In a `GET` request using `XHR` or the `fetch` API, the data flow is catched to be processed by Javascript. That's not what I wanted to do. The browser should understand that my file must be downloaded on the user's computer instead of filling a variable in the Javascript engine.

The trick I found is to create an anchor object using JavaScript but not render it in the DOM. It means this anchor only exists as a JavaScript variable (I'm kidding, it's a JavaScript constant).

```js
function downloadFile(data, name = 'file', type = 'text/plain') {
  const anchor = document.createElement('a')
  anchor.href = window.URL.createObjectURL(new Blob([data], { type }))
  anchor.download = name
  anchor.click()
}

```

This function take the name, the type and the data of the file and starts the download on the user's computer. You can also notice that only the data is really needed for a classic plain text file.

We use the `data` variable to build a `Blob` and a [local URL to this Blob](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL). `data` can be a Blob, it's not an issue.

We use the `download` attribute to let the browser know that we want the Blob to be downloaded with the name contained into the `download` attribute.

Last but not least, we have to trigger the click event on the anchor to launch its regular behavior and let the browser do its job.

#### Improved version

I love the simplicity of the `downloadFile` function above but I have to improve it to handle more production cases.

```js
function downloadFile(data, name = 'file', type = 'text/plain') {
  const { createElement } = document
  const { URL: { createObjectURL, revokeObjectURL }, setTimeout } = window

  const blob = new Blob([data], { type })
  const url = createObjectURL(blob)

  const anchor = createElement('a')
  anchor.setAttribute('href', url)
  anchor.setAttribute('download', name)
  anchor.click()
  
  setTimeout(() => { revokeObjectURL(url) }, 100)
}

```

This function was tested using the last versions of the common browsers. Internet Explorer is not part of the browsers tested.

To help you if you must support Internet Explorer, here is what I know: the anchor trick won't work. You should try `navigator.msSaveOrOpenBlob` instead.
Reasons why i use brackets
Tags: html, productivity, css, tools
Published: 2019-02-10 04:44:48

---
title: Reasons why i use brackets
published: true
description: 
tags: HTML,Productivity,CSS,Tools
---
<img src="https://thepracticaldev.s3.amazonaws.com/i/2qtmgpe3nqvrez2yikcs.png">
many of us don't give an importance to text editor or IDE but it think it's important for us to have it's personal editor , for me brackets is the perfect one and heres why 

https://doctorcodetutorial.blogspot.com/2019/02/why-you-should-use-brackets-for-web.html
Directory references in Node?
Tags: node, npm, javascript
Published: 2019-02-10 04:17:56

---
title: Directory references in Node?
published: true
description: I discovered something I have never read about and I don't know how to search for it.
tags: node, npm, javascript
---

I recently purchased a React Native template and looking through the code, I saw something curious.
In their `screens` folder, they have a `package.json` file with this content:

```javascript
    {
        "name": "@screens"
    }
```
and that was being used to import the screens, like:
```javascript
    import SomeScreen from '@screens/some'
```
And that's awesome! I didn't know I could do that. I tested it and it worked perfectly. Now I'm trying to find that feature on the internet but I can't find anything about it, the only possible name I can think of for this is "Directory reference" and I got no results.

Did you know about this? How can I look for it?

Thanks in advance!
Github stargazers information gathering tool
Tags: hacker, python, opensource, github
Published: 2019-02-10 02:34:14

---
title: Github stargazers information gathering tool
published: true
description: Information gathering
tags: hacker,python,open-source,github
---

Link : https://github.com/0xprateek/stardox

Stardox is an advanced github stargazers information gathering tool. It scraps Github for information and display them in list tree view.It can be used for collecting information of your's/someones repository stargazers details.