teleren/devto huggingface dataset:
First Step towards Data Science and Python
Tags: python, firststep, datascience
Published: 2019-02-07 17:48:37

---
title: First Step towards Data Science and Python
published: true
description: Just going to start a course from data science which is an interactive course named as <strong>Introduction to Data Science in Python</strong>
tags: #python #first_step #data_science
---
<div>
Just going to start a course from data science which is an interactive course named as 
<a href="https://www.datacamp.com/courses/introduction-to-data-science-in-python">Introduction to Data Science in Python</a>
It's my first step towards data science and Python and at this time I'm so excited and it's like just can't wait to open and want to see What will be the next ?? 
And It's taking as a challenge to complete this 4 hours course in 5 to 6 days. 
Yeah, I know it's more than enough time I'm giving on this course due to the busy schedule but hope this will be completed within 5 days.

So, any suggestions ??? If yes then please comment below in comment section.

Thanks.
 </div>
GraphQL pagination
Tags: help, graphql, apollo
Published: 2019-02-07 17:41:44

I've been playing a lot with GraphQL and Apollo lately, but I am usually unsure about **best practices** when it comes to querying the server and getting results back. 

Now, say I have a **list of locations** which I want to display in a **paginated** list:

Let's say I decide to use Apollo's [pagination capabilities](https://www.apollographql.com/docs/react/features/pagination.html) and get 10 locations at a time:

- If I want to filter by city using a dropdown with all cities in the DB, the paginated results will return me only the cities within those 10 locations. Should I then make a separate query for that (eg. ```allCities {...}```)? 
- Then if I select a city as a filter, I should make yet another new query filtered by the city, right?

Or should I just ditch Apollo's pagination and query **all** locations, and do all the pagination and filtering in the **client**? In that case, how much is too much data for an initial load?

Or am I missing something?

Please help!

Thanks!!
Greetings from Berlin...
Friday Blast #58
Tags: fridayblast, links, post
Published: 2019-01-26 16:35:09

---
title: Friday Blast #58
published: true
tags: friday_blast,links,post
canonical_url: https://horia141.com/friday-blast-58.html
series: "Friday Blast"
---

[Designations, levels and calibrations (2018)](https://lethain.com//perf-management-system/) - thoughts of Will Larson on the way to structure _career ladders_ as tech companies. This is common stuff for most tech orgs - several ladders, several levels on the ladder and clear guidelines for each level.

[Anatomy of a random number generator (2018)](https://www.masswerk.at/nowgobang/2018/anatomy-of-an-rng) - an analysis of the RNG code of the _first ever_ computer game - Spacewar! from 1959. There’s a lot of bang for 10ish lines of code.

[Auto scaling production services on Titus (2018)](https://medium.com/netflix-techblog/auto-scaling-production-services-on-titus-1f3cd49f5cd7) - how folks started using Netflix’s Titus for more complicated jobs and how they integrated with AWS to make auto-scaling easy. This is a good lesson to learn - making some thing easy - in this case, running non-critical services in containers - will lead to wide adoption and folks trying to use the service in more and wider ways. So it’s good to focus technically on just doing _something_ well and then grow from there.

[A one size fits all database doesn’t fit anyone (2018)](https://www.allthingsdistributed.com/2018/06/purpose-built-databases-in-aws.html) - insights from Werner Vogels, Amazon’s CTO. Nice overview of the various classes of DB (and what AWS can offer in that space). Also nice how companies like Capital One, Expedia or Zynga built on top of these things some truly monster systems.

[Structured concurrency in high-level languages(2018)](http://250bpm.com/blog:124) - linked with some of the articles on concurrency I wrote about here, this one deals with coroutines and how they behave in higher-level languages - live variables and like program constructs. Also, cancellation pops up as always and _is super important_.
Which Google Service is most useful for developer
Tags: google
Published: 2019-02-07 16:27:48

---
title: Which Google Service is most useful for developer
published: true
description: 
tags: google, 
---

:: Hello Friends ::
Which Google Service You think is most useful for developer.

I found Google Alerts as most useful for me, for receiving any google console updates on my website or blog.
After that Firebase where i can Host my dynamic web app for free.
Is there such thing as a bad programming language?
Tags: discuss
Published: 2019-02-07 16:27:05

---
title: Is there such thing as a bad programming language?
published: true
description: 
tags: discussion
---



I've heard a lot of people complain about some of the older programming languages like Perl.But I don't really know what makes a programming language bad besides syntax. Does anyone here know what constitutes a bad programming language?
How was the StackOverFlows 2019 Developer Survey
Tags: survey, stackoverflow
Published: 2019-02-07 16:22:51

---
title: How was the StackOverFlows 2019 Developer Survey
published: true
description: 
tags: survey, Stackoverflow
---

:: Hello Friends ::
How was the StackOverFlows 2019 Developer Survey,
Last year US has the biggest Respondents 20.6478% and 2nd is India 13.9499% (Near About 14%).

I found this years survey as the more skippable, means more questions are there that wont be there.
Episode 14: Building a JSON API - Twitter OAuth (OAuth 1.0)
Tags: node, passportjs, authentication, twitter
Published: 2019-02-07 15:40:05

---
title: Episode 14: Building a JSON API - Twitter OAuth (OAuth 1.0)
published: true
description: Episode 14 covers allowing users to sign in with an OAuth provider, in this case, twitter.
tags: nodejs, passportjs, authentication, twitter
series: building-a-json-api-with-express
cover_image: https://thepracticaldev.s3.amazonaws.com/i/cqik30gst8zfz8gqpr37.png
---

Sometimes users don't want to make yet another account. In this episode we'll cover how to let them use a twitter account with OAuth 1.0 instead.

{% youtube Ul7Y0msZy-I %} 


Thanks for watching! 


Source code:

{% github NathanBland/core %}
Singleton Design Pattern [Creational]
Tags: concepts, designpattern, designpatterns, softwaredesignprin
Published: 2019-02-18 18:11:38

---
title: Singleton Design Pattern [Creational]
published: true
tags: concepts,Design Pattern,Design Patterns,Software Design Prin
canonical_url: https://itscoderslife.wordpress.com/2019/02/07/singleton-design-pattern-creational/
---

Motivation: When you need a unique object

Be Careful: In case of accessing it in multiple threads

- The singleton pattern ensures the uniqueness of an object. 
- You implemented the pattern correctly if only one instance of the given type can be created and that instance cannot be cloned. 
- The singleton instance must be thread-safe since many different components might access it concurrently. 
- You must implement protection against concurrent use for the initialization phase of the singleton and any access to its public properties or methods. 

> The singleton pattern ensures only one instance of a given type exists, and that instance cannot be copied or cloned. The singleton must be thread-safe since the shared instance can be concurrently accessed by several threads.

The aim is to create a class which can have exactly one instance. But it also requires attention when implementing it. We must prohibit the copying or cloning of the singleton instance. We can only use reference types, that is classes since value types are copied upon assigning them to a new variable. The singleton instance represents a shared resource that can be used by all components that depend on the given type. These components may access the singleton instance concurrently from different threads. Therefore, the singleton class must be thread-safe. We must protect against concurrent access, its instantiation, and any access to its public members and methods.

Examples of Singleton:

- File manager
- Logger system
- Analytics system
SSL::VERIFY_NONE - NEVER!
Tags: ruby, ssl, security
Published: 2019-02-09 15:12:10

---
title: SSL::VERIFY_NONE - NEVER!
published: true
tags: [ruby, ssl, security]
canonical_url: https://scottw.com/s36
---

I saw this little doozy as recommend code for (Ruby) API access:

`http.verify_mode = OpenSSL::SSL::VERIFY_NONE`

This effectively disables SSL checks and is not something anyone should be recommending….ever.
Lets Learn Pug!
Tags: pug, javascript, html, webdev
Published: 2019-01-07 19:35:37

---
title: Lets Learn Pug!
published: true
description: An introduction to Pug, an HTML templating engine. 
tags: #pug #javascript #html #webdev
---
<img src='https://dbalas.gallerycdn.vsassets.io/extensions/dbalas/vscode-html2pug/0.0.2/1532242577062/Microsoft.VisualStudio.Services.Icons.Default'>
## What's PUG?

**First of all, what IS pug?** [Pug](https://pugjs.org/api/getting-started.html) is a template engine to write our HTML documents using a blend of JavaScript and HTML's syntax. This blend allows us to do things that are utilized in both JavaScript and HTML, such as creating and storing variables, creating functions, interpolating variables, creating and filling HTML documents with the exclusion of element tags. Using pug allows for cleaner code, since element tags are excluded, while maintaining the flexibility of JavaScript by allowing us to implement variables and functions within the same file.

<img src='https://i.gyazo.com/d514df7a32eb3d8ba36da992893bb0e0.png'>

The exclusion of element tags allows for much cleaner code. At first, I was a bit confused and spent more time on making sure the indents were in the proper place, but after adjusting I don't think I would go back to traditionally typing in an HTML file. The exclusion of tags also made it easier to debug due to lost closing tags, or any missing characters. Pug also allows for simple element creation and adding IDs or classes. A div with the class name of "hello" would simply be typed as '.hello'.
```
.hello.anotherClass.andAnotherOne
        h1 I have created a div that has 3 classes, and an h1 element inside of that div!
```
However, due to the engine not using any tags, or brackets, there is a large emphasis on indents. Instead of placing content within tags, they are simply indented to show which element is the child/parent. 

At first, I wasn't quite sure what to do with any kind of JavaScript functionality in an HTML document while I was trying to replicate Medium's website as a classwork assignment. However, after creating it and going back and seeing that there were multiple elements repeated, I found a perfect spot to implement some JavaScript code to reduce lines in my HTML. 

<img src='https://i.gyazo.com/9cbfde1dcb90d9c8c0c03e4aeb424005.png'>

In this code segment, the code that you see above the for loop was repeated 5 times to produce 5 articles. Instead of creating 5 blocks of the same code, a for loop was created to create the same article 5 times. Since pug can create variables, an array can be created to store the links, and the loops can create these elements with those URLs!

I have only begun to scratch the surface of pug, but I look forward to using it more!
Moving from Laravel to another framework (django or express)?
Tags: discuss, django, express, laravel
Published: 2019-02-07 15:28:44

---
title: Moving from Laravel to another framework (django or express)?
published: true
description: I want to move from Laravel to another technology
tags: discussion, django, express, laravel
---

*TL;DR: What would you choose between Django or Express if you are very good in Laravel?*

Hi, I want to move from Laravel to another technology maybe Django or Express but I'm not sure what to do.

I mainly develop web applications so I'm doing really good with Laravel but since I have been working with it with quite some time I want to learn something new and then use it as a _main weapon_.

From what I can see is that the most straight-forward approach would be doing Django but I want to know why people would prefer Express over Django, maybe I'm not seeing something.

I feel comfortable with the POO languages and I consider I have a high level javascript, so doing Django will be kind of hard and I want to know if it will be worth it or maybe just stick with Laravel as a _main weapon_

If you consider that there's another framework that is worth it mention it, just consider that I'm trying to go for frameworks that are mature and can be used in a production environment, very rarely I do web apps for more than 10k users per month.


Thanks for your comments!
Th3Reverser (Reverse Shell Tool)
Tags: ctf, reverseshell, hacker, programmer
Published: 2019-02-07 15:17:26

---
title: Th3Reverser (Reverse Shell Tool)
published: true
description: Th3Reverser is a reverse shell tool that will make you get reverse shell easier. It works with a module on python called nclib that will basically do the work instead of NetCat.
tags: CTF, Reverse Shell, Hacker, Programmer
---

Th3Reverser is a reverse shell tool that will make you get reverse shell easier. It works with a module on python called nclib that will basically do the work instead of NetCat.
❇ Payloads that it supports:
🔹Python (Linux)
🔹Perl (Windows/Linux)
🔹Ruby (Windows/Linux)
🔹Bash (Linux)
🔹PowerShell (Windows)
🔹PHP (Windows Server/Linux Server)

Hope you enjoy the tool and don't forget to give me a star on the project and follow me on instagram.

https://github.com/EL-Psyc0p4the/Th3Reverser

https://www.instagram.com/EL_Psyc0p4the/
Weapons of Math Destruction
Tags: books, math, algorithms
Published: 2019-02-07 14:53:46

---
title: Weapons of Math Destruction
published: true
description: If you believe that algorithms that rule our lives are statistically sound, unbiased, and fair, I highly recommend reading Weapons of Math Destruction.
tags: books, math, algorithms
cover_image: https://thepracticaldev.s3.amazonaws.com/i/9r6q54fu02bar9yy3m8b.jpg
---

I've recently read a book titled [Weapons of Math Destruction](https://en.wikipedia.org/wiki/Weapons_of_Math_Destruction) and I think it conveys a message that's worth spreading further.

Long story short, math and algorithms are having more and more influence on our lives, and some of these "things" really deserve a WMD title - they hurt thousands of people, whether by taking their money, keeping them in prison, or unfairly taking away their chances of better education and/or a better live in general.

In a sense, this book is a call-to-action for us developers. We need to make sure that the algorithms that we're developing are well designed and well tested, including the all important feedback regarding it's results. It's also a call to push for better control over algorithms, especially in the most important areas of our life. The burden of proof that an algorithm works should lay on the creator, not on the person affected by it.

It's not the easiest read, or at least it wasn't for me. I felt a constant mix of "this is a good read" and "oh, that's disgusting" as I learned about more and more damage caused by algorithms that were supposed to be objective and fair.

If the topics I mentioned seemed concerning to you or you believe that algorithms that rule our lives are statistically sound, unbiased, and fair, I highly recommend [picking up the book](https://www.amazon.com/Weapons-Math-Destruction-Increases-Inequality/dp/0553418815).

If there's somebody that has already read the book or knows some other good sources on the topic, I'll be glad to read about it in the comments.

Have a wonderful day!
ES2019 features
Tags: javascript
Published: 2019-02-07 13:56:00

---
title: ES2019 features
published: true
description: ES2019 features
tags: javascript
---

Cross post from [h3manth.com](https://h3manth.com/new/blog/2019/es2019-features/).

So, it is time for an other post, this time it's ES2019 features.

Without wasting time with some placeholder content, the below are the features and examples:


__Array#{flat,flatMap}__

```js
[1, 2, 3].flatMap((x) => [x, x * 2]);
// => [1, 2, 2, 4, 3, 6]

[1, [2, [3]]].flat(Infinity);
// => [1, 2, 3]
```

__Object.fromEntries__

```js
const iterableOfEntries = new Map([
    ['cat', 'dog'],
    ['life', 42]
]);
const obj = Object.fromEntries(iterableOfEntries);
console.log(obj); // { cat: "dog", life: 42 }
```

__String#{trimStart,trimEnd}__

```js
"    Hey JS!".trimStart(); // "Hey JS!"
    "Hey JS!    ".trimEnd(); // "Hey JS!"
```

__Symbol#description__

```js
const symbol = Symbol('TC39');
console.log(symbol.description); // 'TC39'
console.log(symbol.hasOwnProperty('description')); // false
```

__try { } catch {} // optional binding__

```js
try {
    throw new Error("End of life!");
} catch { // ✋
    console.log("^ no params for catch, you are dead anyway!");
}
```

__JSON ⊂ ECMAScript__

```js
// extend ECMA-262 syntax into a superset of JSON.
const LS = "";
const PS = eval("'\u2029'");
```

__well-formed `JSON.stringify`__

```js
JSON.stringify('\uD800');
// → '"\\ud800"'
```

__Function#toString__

```js
function /* this is bar */ bar () {}

bar.toString(); // 'function /* this is bar */ bar () {}'

// ^ perviously this was not the case.
```

__Array#sort stability__


```js
[
	{ name: "Jan",     age: 20 },
	{ name: "Jhon",    age: 20 },
	{ name: "David",   age: 18 },
	{ name: "Ram",     age: 18 },
	{ name: "Sita",    age: 18 },
	{ name: "Ravan",   age: 18 },
	{ name: "Asura",   age: 12 },
	{ name: "Milly",   age: 12 },
].sort((m, n) => m.age - n.age));

// People with the same age retain their order.

```

__Don't miss:__

<blockquote class="twitter-tweet"><p lang="en" dir="ltr">🎉 New JavaScript features in ES2019:<br><br>➡️ Array#{flat,flatMap}<br>➡️ Object.fromEntries<br>➡️ String#{trimStart,trimEnd}<br>➡️ Symbol#description<br>➡️ try { } catch {} // optional binding<br>➡️ JSON ⊂ ECMAScript<br>➡️ well-formed JSON.stringify<br>➡️ stable Array#sort<br>➡️ revised Function#toString</p>&mdash; Mathias Bynens (@mathias) <a href="https://twitter.com/mathias/status/1090380500739506176?ref_src=twsrc%5Etfw">January 29, 2019</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
Prevent Accidental Quitting in Chrome and VS Code
Tags: apps
Published: 2019-02-13 03:37:47

---
title: Prevent Accidental Quitting in Chrome and VS Code
published: true
tags: Apps
canonical_url: https://gilcreque.blog/2019/02/07/prevent-accidental-quitting-in-chrome-and-vs-code/
---

I had already taken of this problem in Google Chrome by choosing to be warned before quitting from the Chrome menu.

![](https://gilcreque.files.wordpress.com/2019/02/enable-quit-guard-for-chrome.png?w=1140)

This stops Chrome from immediately quitting when you hit CMD+Q. I would do this by accident usually when trying to select all (CMD+A). I was running across this in VS Code and found an extension that will do the same thing.

[https://marketplace.visualstudio.com/items?itemName=artdiniz.quitcontrol-vscode](https://marketplace.visualstudio.com/items?itemName=artdiniz.quitcontrol-vscode)

![](https://gilcreque.files.wordpress.com/2019/02/quit.gif?w=1140)
How to make your life easier when developing a front-end library 
Published: 2019-02-07 12:21:57

---
title: How to make your life easier when developing a front-end library 
published: true
description: how-to, npm, yarn, library
tags: 
---

Let's say you have a good use case to develop a front-end library.

It could be that:
* you're re-using a lot of similar components in different apps
* you want to decouple your apps from an external api
* you want to play around with javascript for the fun of it
* ...

1. You set up your repository with git using the provider you prefer (github, gitlab, ...)
2. You can choose to use a boilerplate for the framework you wish to use (Typescript, React, both, ...)
3. Once you have done this, you realize that in order to integrate with your app:
  * you need to run a build depending on the bundling manager you use (rollup, webpack, ...)
  * you need to tell your app where to find the package being developed
  
4. At this point, I would advise using `link`, a command which exists both for  <a href="https://yarnpkg.com/lang/en/docs/cli/link/" target="_blank" rel="noopener noreferrer"> yarn</a> and <a href="https://docs.npmjs.com/cli/link.html" target="_blank" rel="noopener noreferrer">npm</a>.
This creates a symbolic link between your app and the library you're working on.

5. To avoid having to "manually" rebuild after each code change in the library, use your bundler cli with the  [`watch`](https://webpack.js.org/api/cli/#watch-options) flag to watch the files recursively
6. Choose a test framework and you're ready to go!

Gotchas: 
* running `install` at any point after this will overwrite the link.
* be mindful of what locks the version in your `package.json` in doubt, you could switch from `caret` to `tilde` or lock onto exact versions (with [the --save-exact flag](https://docs.npmjs.com/cli/install))

**CODE, SWEAT, SWEAR AND TEST**

Before deploying and publishing a package that needs code-review and QA:
7. Build the latest version of your code
8. Use [`npm pack`](https://docs.npmjs.com/cli/pack.html) in the repository of your library
9. This creates a tarball file you can move to the repository of the app you want QA to test it with.
Run `mv nameoftarball ../wherever/your_app/lives`
Then `cd ../wherever/your_app/lives && npm i nameoftarball`

10. Commit, push, deploy to a staging/test environment
11. When you get the all clear, whatever you deploy will be spot-on!
Client Did Not Pay? Here is How to Fix That
Tags: productivity
Published: 2019-02-07 12:44:18

I'll just leave this here. GH repo at the bottom of the post. By the way I think this is great.

![No Money No Site](https://i.redd.it/pfk3p4fuk4f21.jpg)


Credit: https://github.com/kleampa/not-paid
My first DEV PR and post!
Tags: meta, opensource, firstpost
Published: 2019-02-07 12:43:23

---
title: My first DEV PR and post!
published: true
description: A short summary of my experience with this awesome community so far.
tags: #meta, #opensource, #firstpost
cover_image: https://thepracticaldev.s3.amazonaws.com/i/sdfi87pqngulvv0b3az6.png
---

Yesterday my very first DEV PR got merged! 
I didn't have any experience in Ruby so I wanted to do something easy, I came across this Issue/Feature request from @jess.
{% github https://github.com/thepracticaldev/dev.to/issues/1562 %}

Even though the Issue wasn't `approved` yet I felt pretty confident that it wouldn't be an issue because it was a suggestion from a DEV co-founder 😂

The PR itself was fairly easy, I could base my code on the already available 2 year anniversary badge with little changes required.
{% github https://github.com/thepracticaldev/dev.to/issues/1732 %}

After that the PR got reviewed and merged very quickly by @ben.

I hope to stay in this awesome community long enough to receive [this badge](https://dev.to/badge/three-year-club)!

---

This is my very first blog post on DEV (and first blog post in general) I hope to not only lurk and comment but in the future make more blog posts, also a little more technical posts.

---

And besides my very first DEV PR and post I have also received my very first DEV Badge! 🎉