teleren/devto huggingface dataset:
Friday Night Deploys: # 4 - How To Not Suck In A Team (And Also Get Rock Hard Abs)
Tags: jokes, webdev, podcast
Published: 2019-11-25 13:31:01

This week the DevPlebs talk about: Giving Up! Tik Tok! Screaming in Walmart! Vaping! The LOTR trilogy! Games your girlfriend will hate! Murder? Baby gates! P90X! Rock hard abs! The Amityville Horror! Failing at our podcast! The Plain White T's discography! Defenestration! Giphy! The Phantom of the Opera! Raising the morale of your severely overworked employees with a pizza party! How to not suck in a team!

## Listen to The Full Episode!
{% spotify spotify:episode:49xTsyLvZDQZaxPt1ujyV3 %}

**We're also on...**
**Apple:** https://podcasts.apple.com/ca/podcast/4-how-to-not-suck-in-a-team-and-also-get-rock-hard-abs/id1485252900?i=1000457672880
**Google:** https://play.google.com/music/m/Dbvx2i522gdx4yd2wqqimxcvu7q?t=4_How_To_Not_Suck_In_A_Team_And_Also_Get_Rock_Hard_Abs_-_Friday_Night_Deploys

## Get In Touch With Us!
If you would like to share any hot tips & tricks on how to suck less on a team or get rock hard abs @ or DM us on our [twitter](https://twitter.com/DevPlebs?s=20).

You can also ask questions or give us some feedback about the show!
How to create an organisation chart in Angular from scratch?
Tags: angular, javascript, opensource, discuss
Published: 2019-11-25 13:25:44

Hi everyone,
I wanted to create an organisation chart from scratch in angular.I need an explanation with example how to create organisation chart from scratch. where
There are packages but those are not customisable and I am also wanted to create package where end user can customize each and every inch of organization chart by providing some input values to the component. So if any one can explain how to create an basic chart with example. It will be helpful.
TIL #001: Svelte does not use Virtual DOM and the Bus Factor
Tags: todayilearned, svelte
Published: 2019-11-25 13:13:50

---
title: TIL #001: Svelte does not use Virtual DOM and the Bus Factor
published: true
description: What I learned today is Svelte does not have Virtual DOM
tags: TIL, Svelte
---

Okay. So I'm thinking of writing a short blog every night before going to bed. This is to improve my writing because I think I suck. So here's what I have in mind, I'll be writing everything that I learn within a day in a piece of paper and then write a blog about it every night here on DEV. With this, I'll be able to share what I've learned, assess my day if I really learned something, and push myself to learn every day. I think it's a win-win strategy.

So what did I learn today? I learned that Svelte does not believe in Virtual DOM and they think it's just a meme. At first, I was very skeptical but after reading the [blog](https://svelte.dev/blog/virtual-dom-is-pure-overhead) about it I was kind of convinced.

I think the "Bus Factor" is also worth mentioning. I read somewhere that having your project open source will decrease the bus factor. What the Bus Factor means (according to Wikipedia), "the measurement of the risk resulting from information and capabilities not being shared among team members, derived from the phrase 'in case they get hit by a bus.' It is also known as the bread truck scenario, lottery factor, truck factor, bus/truck number, or lorry factor."

That's it for today's TIL!
SQL, NoSQL and modern data practices
Tags: todayilearned, sql, database
Published: 2019-11-25 13:00:27

*TL;DR style notes from articles I read today.*

### [SQL or NoSQL, that is the question!](http://bit.ly/2QLqeIO)

- The answer depends on your context of usage. 
- Use a SQL database when you need ACID compliance (Atomicity, Consistency, Isolation, Durability).
- Use SQL for logic-related discrete data requirements you can identify upfront and when data integrity is essential - when your data is structured and unchanging. 
- Use NoSQL for data requirements that are indeterminate, unrelated and evolving; when you need to store large volumes of data without structure. 
- Use NoSQL when you need to get started faster, for projects with simpler or looser objectives and where speed and/or scalability are paramount. 

*[Full post here](http://bit.ly/2QLqeIO), 8 mins read*

---

### [SQL is 43 years old — here’s 8 reasons we still use it today](http://bit.ly/2Occk0o)

- It excels at accessing and organizing relational databases.
- RDBMS and SQL are battle-tested for many different scenarios, including those where the loss of data, corruption and failure are catastrophic. 
- SQL is easy to learn and with half of all developers using SQL and RDBMS, skill sets transfer easily between companies and industries.
- Though not completely interoperable, SQL syntax varies only slightly between vendors.
- It helps to bring computation to the data than bringing data to the computation
- SQL/RDBMS is the best option for most systems, especially where data integrity is essential. 

*[Full post here](http://bit.ly/2Occk0o), 8 mins read*

---

### [Modern data practice and the SQL tradition](http://bit.ly/2OBGkSl)

- Most RDBMS offer some schema-less support today allowing you to have a single database for both structured & unstructured data without sacrificing ACID compliance.
- ETL is a necessity for most modern data-driven endeavours but data cleaning and transformation are often decentralized and this distorts data. 
- Push data cleaning to the DB level for smoother & cleaner data pipeline. Focus on good data type definitions. 
- Postgres and even SQLite and other RDBMS offer some text manipulation and free-text search functions good enough for most applications. You can deploy NLTK or ElasticSearch for more complexity rather than start there.
- Relational databases are cost-effective compared to distributed systems. Performance & stability are easier to achieve too when complexity starts building up. 

*[Full post here](http://bit.ly/2OBGkSl), 13 mins read*

---

*[Get these TL;DR style notes directly to your inbox every weekday by signing up for my newsletter, in.snippets(), here.](https://mailchi.mp/appsmith/insnippets?utm_source=devto&utm_medium=post08&utm_campaign=is)*
Create Ionic 4/Angular 8 HTTP Service – Communicate with Server via REST API
Tags: angular, ionic, httpservice, communicatewithserverviarest
Published: 2020-02-07 09:15:59

---
title: Create Ionic 4/Angular 8 HTTP Service – Communicate with Server via REST API
published: true
date: 2019-11-25 12:49:23 UTC
tags: Angular, Ionic,  HTTP Service, Communicate with Server via REST
canonical_url: https://www.positronx.io/create-ionic-angular-http-service/
---

The post [Create Ionic 4/Angular 8 HTTP Service – Communicate with Server via REST API](https://www.positronx.io/create-ionic-angular-http-service/) appeared first on [positronX.io](https://www.positronx.io).

**A complete step by step Ionic 4 HTTP tutorial, In this tutorial, we will learn how to create Ionic 4/Angular 8 Service using HTTP & HttpClientModule and communicate with remote server using REST API.**

As we know, most of the applications render data from the remote server like YouTube has to fetch videos and display them to the users. Twitter renders tweets and shows it to its users. The same way in this tutorial i am going to show you how to build Ionic 4/Angular service to pull data from a remote server using Ionic 4 HTTP service.

[click here to read more](https://www.positronx.io/create-ionic-angular-http-service/)
Role of AI chatbot to improve customer service
Published: 2019-11-25 12:46:49

Your company representation depends upon customer support you give, an unsatisfied customer will not ready to take service/products from same company once more. That is the reason you should try each method to improve your customer service to get satisfied and potential customers. 
Now a days all organizations are taking help of AI chatbot for their business customer service team. So many benefits can get like chatbots can answer customers’ inquiries, quickly, in real-time. Another reason to choose chatbot is once you have the chatbot app, it takes a very less time to integrate a chatbot with it.

Here is the list of top benefits of using AI chatbot to improve customer service:
Quick response:
Chatbots don't have to rest. They can quickly handle issues without considering if it's 4 am or 9 pm. This is vital for organizations focusing on millennials. This enables you to improve customer service and their experience to satisfies them.

Less effort:
Chatbot can manage high volume of request and queries, most of the request are similar this makes chatbot perfect for dealing with repeated questions. Chatbot don’t need any other help or don’t spend time to search answer as human do. This reduces effort of human and saves time.

Reduces errors:
AI agents makes less error while managing and answering to all customer queries. Because of AI and machine learning technology, automatically decides suitable and accurate answers for customer’s queries. Chatbots have a lot of memory, this reduces the mistakes happen during offering a solution.

Increased customer engagement:
 Chatbot can do conversation with all customers about any issue at any time of the day. Chatbot development do friendly conversation with customers. It can maintain conversation for long time and keep customer long time on your website. Apart from using virtual assistant, give some bit of information to avoid unnecessary and irrelevant information. 

Chatbot works effectively when you have script answer for predictive questions. But AI based chatbot can understand the queries and give answer automatically. If you want chatbot development services, please reach CAWI is the best AI based chatbot development company in Bangalore.
Our services:
HR chatbot development company
AI chatbot development company
Healthcare chatbots development company
Messenger bot development company
Best chatbot development company
⬢ Node Task List
Tags: node, javascript, cli, opensource
Published: 2019-11-25 12:45:52

---
title: ⬢ Node Task List
published: true
description: An interactive cli to list and run package.json scripts
tags: node, javascript, cli, opensource
cover_image: https://thepracticaldev.s3.amazonaws.com/i/7rhg0s3f9u4d9jbvv7bu.png
---

Looking for a convenient way to list all `scripts` from a `package.json` file? What if you could have an interactive list that not only gives you a quick glance but also allows you to run any of these tasks right away? Look no further, [**Node Task List**](https://www.npmjs.com/package/ntl) is the tool you've been looking for. :blush:

They say an image is worth a thousand words and in the case of interactive cli tools that can't be more true, check out how it works in a quick gif demo:

<img alt="gif animation demo showing up a simple usage of ntl" width="450" height="auto" src="https://thepracticaldev.s3.amazonaws.com/i/k1x3lq467q1qwkvmp25x.gif" />

---

## A little bit of history...

**ntl** started out as a quick prototype side project almost 4 years ago and since then has been improving and adding features thanks to contributions from the community around it. (Shout out to @mkuehnel that has been the most active contributor) :heart:

About a month ago I finally managed to start taking some time to clean up the project, add a proper test suite with 100% coverage and managed to merge the main feature the community had been always asking for: ability to easily repeat the last ran task.

Along with all that work I also did a bit of rebranding, giving the project the more descriptive name of **Node Task List** and a nice logo. :smile:

## Features

Outside the already previously mentioned features, **ntl** also has:

- Multiple interactive interfaces (menu list, autocomplete fuzzy search)
- Many options to customize the UI (exclude scripts, amount of items, etc)
- Add descriptions to each task that can be shown in the UI
- Easy to repeat last ran script (using a `nt` command alias)
- Run multiple tasks (can also easily repeat multiple ran tasks)

If you want to learn more about the features and possible customization check out the [project page](https://www.npmjs.com/package/ntl).

## Sold on it? Want to give it a try?

:arrow_down: Install it now using **npm**: `npm install -g ntl`

Also if you're interested in participating, check the project on [GitHub](https://github.com/ruyadorno/ntl) :smile:

{% github ruyadorno/ntl %}
ExtendedConsole 1.0.3 now has official documentation
Tags: csharp, dotnet
Published: 2019-11-25 12:33:30

Thanks to [Shaun Lawrence](https://dev.to/bijington) commenting on [my last help post](https://dev.to/peledzohar/is-there-an-online-documentation-generator-for-c-4akb), I've started playing around with [DocFx](https://dotnet.github.io/docfx/index.html).

I've managed to generate a [documentation website](https://peled-zohar.github.io/ExtendedConsole/) for my [ExtendedConsole](https://www.nuget.org/packages/ExtendedConsole) project. 

I've also added arguments validations to all existing methods, as well as new overloads for the menu methods that takes in all the texts to be displayed on the Console, thus enabling usage for languages other than English.
How does delegated credential works?
Tags: delegatedcredentials, security
Published: 2019-11-25 12:22:04

IETF community has proposed Delegated Credentials for TLS to mitigate the above-mentioned issue. As it is a new cryptographic protocol that balances the trade-off between lifetime and reliability.

Delegated Credentials for TLS allows companies to take partial control over the process of signing new certificates for themselves. This certificate uses a private key with a shorter time period than the actual certificate.

![alt](https://www.ssl.support/blog/wp-content/uploads/2019/11/Delegated-Credentials-1024x576.jpg)

The private key with a shorter period – Delegated credential used generated by the server and not by the Certificate Authority.

The delegated credential consist of the following things:

- Public key
- The new private key (the expiry date of the delegated credentials), and
- The signature of delegated credentials signed by the CA issued leaf

The delegated credentials secure the connection between a web browser and the server, as it has its own public key.

The website owners can now actively participate in generating a Certificate that has a distinct public and private keys.

Delegated Credential uses a different private key with a shorter period on each server. As it uses a different private key on each server, there is less window of opportunity for a hacker to perform a cyber attack.

<p>Read More about <a href="https://www.ssl.support/blog/delegated-credentials/">Delegated Credentials</a></p>
How do you test your side projects?
Tags: discuss, testing, sideprojects
Published: 2019-11-25 12:14:31

I've been working on an android app using [React Native](https://facebook.github.io/react-native/) for the past couple of weeks as a side project. I haven't written any tests for it yet, for a couple of reasons. It's the first time I do something with React Native and I haven't been bothered to investigate how to test it. It also took me a bit to nail down how the app was actually supposed to work. Now, however, it's approaching completion and I thought that it might be a good idea to add tests to make sure future changes don't break it.

So that sparked the question: How do other people deal with testing in their personal projects? Do you write tests first? Last? At all? How do you go about it?
Svelte Beginners Intro - How To Make a Basic Svelte App
Tags: svelte
Published: 2019-11-25 12:05:55

---
title: Svelte Beginners Intro - How To Make a Basic Svelte App
published: true
description: SvelteJS is an example of a new approach to build frameworks. In it's approach it looks more like compiler and not conventional framework like React or Vue. In this tutorial video we'll make a simple svelte app and learn how to use it.
tags: svelte
---

{% youtube Nxum0e1Xvs8 %}
%, px, em, rem, viewport...How to know which one to use in CSS for responsive design?
Tags: discuss, beginners, webdev, css
Published: 2019-11-25 11:53:41

![Drag Racing](https://cl4u-web.s3.amazonaws.com/cache/press_release_image/signs-of-confusion-562a42fd4e38d.jpeg)

I've been working on the FreeCodeCamp Responsive Design projects, and there has been one thing that I've struggled a lot designing responsive websites, and it's understanding whether I have to use pixels, EM, REM, percentages, Viewport, etc. for font sizes, images, containers, and media queries.

Do you have any recommendations on how to get a better understanding of it and overcome it?

I'd appreciate your help!


Thanks!
Why some think ++i is faster than i++ ?
Tags: algorithms, speed, programming
Published: 2019-11-25 11:43:01

---
title: Why some think ++i is faster than i++ ?
published: true
cover_image: https://mdn.mozillademos.org/files/13755/loop_js-02-farm.png
description: The old hidden secret to faster applications
tags: algorithm, speed, programming
---

*Originally posted in [my portfolio](https://hamza-tam.gitlab.io).*

A while ago, I have noticed reading some competitive programmers' code that a lot of them in their for and while loops tended to prefer using `++i` instead of `i++`. For example you could see in their code: 

```c
for (;;++i) ...
while (--i) ...
```

So a question scratched my head to figure out __why and if there is any real performance boost by using such expressions__ (since they were top competitive programmers).

> The answer lies in the dark caves of compilers and assembler generation

So let's try to figure out what happens !

# Analysis

## Accessing an array index with an expression

Let's I have the following code:

```c
// I have two variables 'a' and 'b'
arr[a+b];
```

When reading this instruction what does the compiler do ?
If we write what the compiler does in pseudo code it would give us something like this.

```
Get the value of a
Get the value of b
Calculate the expression a + b
Access the array position with the calculated index
```

## Accessing the array index with a pre-increment

Now this time let's see what happens with `++i`:

```c
// I have a variable 'a' 
arr[++a];
```

the compiler translate this with:

```
Get the value of a
Increment that value
Store the new value
Access the array position with the calculated index
```

# The breakthrough

__Have you noticed a trend here ?__

The compiler evaluate the expression inside the brackets before accessing the element. Which is __different from what the usual `i++` do !__

if we have now:

```c
// I have a variable 'a' 
arr[a++];
```

You can guess now how the compiler would translate that given the knowledge of what this instruction does:
```
Get the value of a
Store the value of a temporarily
Increment that value
Store the new value
Access the array position with the calculated index
```

Given the added storage - that might be interesting in the context of an array access but usually unnecessary in the context of a loop - we get an added instruction that could result, depending on the machine the code is executed on, a slight performance drop.

# Closing words

You can guess by now that this syntax, in the context of modern machines the performance hit is generally not something to worry about. In addition to this I have found that usually compilers now optimize this kind of instruction to see if the value is really needed to be stored or can be dismissed. But this kind of questions is really helpful in understanding more how compilers work.
BAT File Execution 
Tags: help
Published: 2019-11-25 11:28:56

I'm working on a web application where I'm trying to create a bat file to does the following function is that can be achieved? Kindly help me with the command line.

1) Open a web browser and loaded the web page - Done
2) Now enter the User name and password.
3) Perform the click function.

Few doubts on how to pick variable and SET/SEND a Data to that.?
WordPress Meetup in Hanoi, VN (28/11/2019)
Tags: eventsinyourcity, wordpress
Published: 2019-11-25 11:00:43

Hey folks!

A WordPress Meetup is scheduled in Hanoi, VN. Are you alive in Hanoi and want to join with us?

## Date

19:00 - 20:30, Thursday, 28/11/2019

## Location

Solis Lab Co. Ltd

Address: Ha Thanh Plaza, 102 Thai Thinh, Dong Da (using an elavator nearby Techcombank)

(You can park motorbike behind the building). 

## Topics

- Secure WordPress in the best way.
- Using Event Automation within a WordPress.

Please feel free to contact me (hoster) at 0976<>275<>119 if you need any help.
How do you protect yourself against data leaks?
Tags: discuss, watercooler, privacy
Published: 2019-11-25 10:55:44

Regarding the [latest] (https://www.forbes.com/sites/leemathews/2019/11/22/one-of-the-biggest-leaks-ever-exposes-data-on-12-billion-people/) -and biggest until the date from a single source<sup>[1](https://www.dataviper.io/blog/2019/pdl-data-exposure-billion-people/)</sup>- data leak, what do you do to be as protected as possible?
Syn Stealth Scan With Power Of Python & Scapy 
Tags: python, linux
Published: 2019-11-25 10:39:34

![](https://ankitdobhal.github.io/images/Ereet_Packet_Trace_Connect_Open.png)

**This blog post is a memo of python code snippets that I found particularly useful and good in the field of scanning and hacking.From a week I am working on one of the best module 'Scapy'.Then today I finally created a script which can execute syn stealth scan.**

## Execute the Scapy Code For $Syn Stealth Sc@n:
{% gist https://gist.github.com/powerexploit/54b9739fa59506d808283f194f5f8342 %}
Makers Pre-Course - Week 2
Tags: ruby, beginners
Published: 2019-11-25 10:34:16

Week 2 of the pre-course is over!

It seems strange to write that sentence and see it on the screen, as I am not going to lie, at times i thought i would never get there. In hindsight it was the perfect learning curve that literally explored all emotions along the way.

The course in week 2 is set out with learning material, followed by a challenge at the end of each chapter. It started off simply, exploring strings, basic mathematical expressions and getting used to writing basic real-world programmes. 

But then it got what I liked to call REAL haha. Chapter 3 started to pair knowledge of writing loops, blocks and puts statements, with actual real life logical thinking! To say it struck the fear of god into me was an understatement!  I could no longer google "how to break a while loop" or "multiplying integers by floating point numbers"...there was no advice/information for actual on the spot problem solving!

Whilst I initially rejected trying to listen to my own ideas, I soon realised that this is the reason i made the transition into this field. I loved having some basic understanding of Ruby methods and processes, it was now down to me to tell Ruby what exactly i wanted it to do! I wrote flow charts, diagrams, cryptic interpretations of what i thought the brief entailed, and finally i discovered a pattern and flow that would work!

This felt like i had just won the lottery, the fact that I had figured this out, understood it and it actually worked....it actually worked! This is an important milestone in my quest to become a developer, but one that I soon had to remember once i came across another question that stumped me for almost double the time. But this time I had the small belief that I overcame this style of thinking already, and that it would happen, I just need to relax and think differently.  

It is inevitable I will come across this feeling again, most likely hundreds of times during my time at Makers, but the first time was the most important, knowing that if at first you don't succeed, try and bloody try again. 

Week 2 is carrying on until I complete all 10 chapters of the Ruby challenges...as always wish me luck!

David