teleren/devto huggingface dataset:
Get Started With Core SQL and Node.js for Azure Cosmos DB (Video)

Tags: database, beginners, showdev, sql
Published: 2019-07-30 14:11:24

![](https://thepracticaldev.s3.amazonaws.com/i/emk2fqygrm74vd6bkmwd.jpg)


In this video, I'll help you get started with Core SQL API for Azure Cosmos DB.  I review the platform and how you can use it for your application.

### Why Cosmos DB?

Distribution of data can be difficult, having a turnkey solution for global NOSQL data is huge, but then add on the ability to query this data with already familiar tools?  That's why Cosmos DB is huge.  Rather than spending time concerning yourself with long term viability of your in-house database solution (SQL, Oracle, whatever it may be) it might be time to make the move to a managed service like Cosmos DB.  

The following are some attributes of Azure Cosmos DB that make it well-suited for high-performance applications with global ambition. [(Check out the full article here...)](https://docs.microsoft.com/en-us/azure/cosmos-db/use-cases#feedback?WT.mc_id=devto-blog-jagord)

* Azure Cosmos DB natively partitions your data for high availability and scalability. Azure Cosmos DB offers 99.99% guarantees for availability, throughput, low latency, and consistency on all single-region accounts and all multi-region accounts with relaxed consistency, and 99.999% read availability on all multi-region database accounts.
* Azure Cosmos DB has SSD backed storage with low-latency order-of-millisecond response times.
* Azure Cosmos DB's support for consistency levels like eventual, consistent prefix, session, and bounded-staleness allows for full flexibility and low cost-to-performance ratio. No database service offers as much flexibility as Azure Cosmos DB in levels consistency. 
* Azure Cosmos DB has a flexible data-friendly pricing model that meters storage and throughput independently.
* Azure Cosmos DB's reserved throughput model allows you to think in terms of number of reads/writes instead of CPU/memory/IOPs of the underlying hardware.
* Azure Cosmos DB's design lets you scale to massive request volumes in the order of trillions of requests per day.

These attributes are beneficial in web, mobile, gaming, and IoT applications that need low response times and need to handle massive amounts of reads and writes.

You'll learn how to launch your DB, access it via a Node.js application and see some of the easy features that makes Cosmos so great for developers.

{% youtube 2N-fhYEY5LI %}

### Helpful Links!

[Welcome to Azure Cosmos DB](https://docs.microsoft.com/en-us/azure/cosmos-db/introduction?WT.mc_id=devto-blog-jagord)

[Azure Cosmos DB: Build a Node.js app using JavaScript SDK to manage Azure Cosmos DB SQL API data](https://docs.microsoft.com/en-us/azure/cosmos-db/create-sql-api-nodejs?WT.mc_id=devto-blog-jagord)

[Request Units in Azure Cosmos DB](https://docs.microsoft.com/en-us/azure/cosmos-db/request-units?WT.mc_id=devto-blog-jagord)


To keep learning more, check out the [free $200 in credit and 12 months of free Azure services.](https://azure.microsoft.com/en-us/free/?WT.mc_id=devto-blog-jagord)
Bucky’s Convenience Stores Strive to Ensure All Customers are Treated with Respect
Tags: buckysmobilexpress, buckysconveniencestores, buckysexpress
Published: 2019-07-30 13:36:23

Bucky’s Convenience Store is handling a recent matter following a confrontation with an employee and a valued customer. 

A representative of the company issued the following statement: 

“The comments made by the associate are not reflective of the core values of Bucky’s Convenience Stores. We apologize to all of the individuals that were affected by the associate’s inappropriate behavior. As with all personnel matters, we did a full investigation and determined this individual’s behavior was unacceptable, and the individual is no longer employed by us. We do not tolerate any behavior that is insensitive to our valued customers. At Bucky’s, we pride ourselves on being a very diverse and inclusive company that treats all individuals with the utmost respect. We strive for our customers to have a great experience each time they stop at Bucky’s and expect that all of our associates provide excellent customer service at all times.”

Bucky's Express
Bucky's Convenience Store
+1 402-558-9860
The Building an Indie Business Podcast- Why You Should Build Your First Idea
Tags: podcast, startup, beginners, productivity
Published: 2019-07-30 13:34:38

In this episode I discuss why you should build the first idea you have.

[Episode Page](https://baib-podcast.com)
[Revenue Research](https://revenueresearch.co/)

https://overcast.fm/+RG5hkp83k
Invertendo valores com o Destructuring Assignment
Tags: javascript, node, react, es
Published: 2019-07-30 13:20:04

![Invertendo valores com o Destructuring Assignment](https://thepracticaldev.s3.amazonaws.com/i/1jshnolsigxcom49jsq8.jpg)

Usando o destructuring você consegue facilmente inverter valores de váriaveis.

Vamos supor que você tenha `let a = 1`  e `let b = 2`, você consegue facilmente 
inverter os valores, fazendo com que o `a = 2` e o `b = 1`, usando apenas:

```javascript
let a = 1;
let b = 2;
[a, b] = [b, a];
// a será 2
// b será 1
```
=)

[➜ Participe da nossa lista de desenvolvedores](https://emersonbroga.com/e/participe/)
[➜ Aprenda ES6](https://amzn.to/2J4XnLg)
[➜ Veja as dicas no instagram](https://www.instagram.com/emersonbrogadev/)
[➜ Assita nosso canal no Youtube](https://www.youtube.com/c/emersonbroga/)
[➜ Curta nossa página no facebook](https://www.facebook.com/emersonbrogadev/)
[➜ Não perca as atualizações no twitter](https://www.twitter.com/emersonbrogadev/)


 #javascript #react #node #es6
What Does Your Job Search/Application Process Look Like?
Tags: career, discuss
Published: 2019-07-30 13:01:48

---
title: What Does Your Job Search/Application Process Look Like?
published: true
description: 
tags: career, discuss
---

I'm particularly interested in hearing about: 

+ Sites people are using/have had the most success with.

+ What people are doing to network beyond going to Meetups
Flex box layout for responsive designs(Part-2)
Tags: css, flexbox, ui, frontend
Published: 2019-07-30 12:56:52

So far we have covered the flex-direction,justify-content,align-items, and flex-wrap properties and it's value to design/develop the responsive layout. There are more properties in the flex-box like the order of the flex items and align-self.


So let's get started

## order
sometimes it is not sufficient to reversing the rows and column order of the container for the exact requirement to develop the layout. In that case, we can use order property to order the items inside the container.By default order of any item is 0 inside the container.we can use positive or negative integers as order values. Order property can only be applied to individual items.

    <ul class="flex-box">
        <li class="home">Home</li>
        <li>About</li>
        <li>Portfolio</li>
        <li>Contact</li>
    </ul>

    .flex-box {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    .flex-box :first-child {
        order: 1;
    }
    .flex-box :last-child {
        order: -1;
    }

Highest ordered items are displayed later than that of lowest order items

In the above example "Home" will be displayed last than other 3 and "Contact" will be displayed first as it's order is lower than others

Flex items with same order will be displayed in the same order as source order such as one after other

Thus if you have 4 items with order values of 3, 2, 2, and 0 sets on them respectively, their display order would be 4th, 2nd, 3rd, then 1st.

The 3rd item displayed after the 2nd because it has the same order value and is after it in the source order.

Have look at the code pen link below to get a more clear picture.

{% codepen https://codepen.io/GodtiVinod/pen/bXgXjB/ %}

## align-self
This property can also be applied to individual items.It will accept the same values as align-items and its value for the specific item. Consider the below CSS code with the previous example's Html code.

    .flex-box {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    .flex-box :first-child {
        align-self: flex-start;
    }

"Home" will be displayed at the beginning of the row. As align-self property and value flex-start was applied in the above code

To get more clarity in align self refer to the below code pen

{% codepen https://codepen.io/GodtiVinod/pen/WVpeRM/ %}
Load Testing Before Launching Apps
Tags: serverside, loadtesting, yaml
Published: 2019-08-08 21:19:02

---
title: Load Testing Before Launching Apps
published: true
tags: server-side,load testing,YAML
canonical_url: https://www.headspin.io/blog/load-testing-before-launching-apps
---

We've all experienced spotty internet and lagging web pages. Frustrating, right? It's no doubt that such issues considerably worsen user experience. Load testing can help improve app development for customers, and app experience for users. Aaron Gibson, Software Developer at HeadSpin, discusses the benefits of load testing, describes how HeadSpin supports such functionality, and conducts a demo of our platform in action. Here's the recap, followed by a detailed webinar at the bottom of this post!

So, **why should we load test?** Often, developers conduct unit, integration, and smoke testing, which are all important in verifying app functionality and behavior. However, when it comes to actually deploying applications, few developers consider the repercussions of multiple users hitting the system at the same time.

When this happens, the server might be unable to serve as many requests per second because it's bogged down, or might not respond quickly due to connectivity drops, which are common in the mobile application environment. 

At HeadSpin, we're concerned with how server load impacts user experience. Our platform supports running tests from many targets, giving developers the ability to test with precision, and at scale, for load-testing metrics. In short, we can spawn targets wherever we have p boxes. Additionally, we also support scheduling multiple tests to run concurrently (more on this in the webinar demo below).

To conduct a load test with HeadSpin, begin by creating a playbook (which, at HeadSpin, is a YAML file with varying parameters, allowing you to specify targets, agent count, duration, Crontab format & schedule, performance task ID, among other factors). It's simple: upload the playbook, then execute the test. Our platform can assist in the UI set-up that accompanies this process, as well. Here's what a sample playbook looks like:

[![sample playbook](https://www.headspin.io/hs-fs/hubfs/Sample%20Playbook%20-%20HS%20Load%20Testing.png?width=2770&name=Sample%20Playbook%20-%20HS%20Load%20Testing.png) ](https://www.headspin.io/blog/load-testing-before-launching-apps)

[Follow this link](https://www.headspin.io/blog/load-testing-before-launching-apps?utm_source=dev.to&utm_medium=referral&utm_campaign=rss) to view the full webinar (followed by a transcript) on pre-launch load testing, replete with the benefits of load testing, as well as demos about creating playbooks and running actual tests.
Holding Open Advice 1:1s
Tags: mentorship, beginners, tutorial, career
Published: 2019-07-30 12:26:20

---
title: Holding Open Advice 1:1s
published: true
description: A tutorial demonstrating tooling and a suggested workflow for holding open advice calls 1:1 with members of your tech community.
tags: #mentorship  #beginners #tutorial #career
---

Hi Dev.to 👋 I'm Jess.

I've been doing a lot of 1:1 and scaled tech community outreach, usually focusing on offering support to folks getting into the tech industry, folks who want to move up in their career or folks with questions about tech education options.

As part of this outreach, I've been offering 1:1 calls with people wanting short, one off personal support.

Ex.
![A tweet offering 1:1 calls](https://thepracticaldev.s3.amazonaws.com/i/2hmo9hdildffqzvbvlhy.png)

I've really enjoyed doing these 1:1 calls, so have documented the tools I use and my process for running them. I thought some of you might also want to run 1:1 advice calls for beginners in your bit of tech. I've written up (hopefully) everything you need to get started [here](https://github.com/jessicarose/open-advice-1-1s).

If you do try running your own open 1:1 calls, I would love to hear how it goes. Feedback (and PRs!) gratefully welcomed.

Good luck, and happy advising 💖
<SvelteComponent this={First} > cant able to create Constructor
Tags: svelte
Published: 2019-07-30 12:04:53

I am trying to merge my app with the basic app but it keep on showing this error
SvelteComponent.componentDidMount
node_modules/react-svelte-component/dist/index.es.js:61
  58 |     constructor = _a.this,
  59 |     props = __rest(_a, ["this"]);
  60 | 
> 61 | this.instance = new constructor({
     | ^  62 |   target: this.container.current,
  63 |   props: props
  64 | });

I created the basic counter ReactApp into that i was just added the . svelte file and tried to load it using <SwelteComponent this={First(svelte) file} . I already imported 

import SvelteComponent from 'react-svelte-component';
import First from './First.svelte';

please help someone
Apple dropped SwiftUI 😱💦
Tags: thetealpickle, ios, swiftui
Published: 2019-07-30 11:51:00

---
title: Apple dropped SwiftUI 😱💦
published: true
description: pickle thoughts on the swiftui
tags: #thetealpickle #ios #swiftui
cover_image: https://thepracticaldev.s3.amazonaws.com/i/91jsdv3md63z8t493idy.PNG
---

<img src="https://thepracticaldev.s3.amazonaws.com/i/91jsdv3md63z8t493idy.PNG" />
I am @thetealpickle everywhere. Feel free to say HI! 🖐🏾
The Concept of Zero Knowledge Proof Explained
Published: 2019-07-30 11:36:23

What exactly is the concept behind Zero Knowledge Proof?

What is the ZKP concept and how does it apply to blockchain? Here is our take on it:

Zero-knowledge proof is the method by which one party can prove to another party that they know a certain secret without actually revealing the secret to them.

To put that into perspective, let us consider that you (the Prover) own a cryptocurrency wallet. Being the account holder, only you know the passphrase and the 2FA codes of the wallet. Now, if someone (the Verifier) wants to verify that the <a href="https://www.theblockbox.io/services/blockchain-development/crypto-wallet-and-token-development/">cryptocurrency wallet</a> belongs to you and not to someone else, how do you do it?

No, you certainly do not tell them the secret — the passphrase and the 2FA codes. Rather, you simply log in to your account and show the login screen to the other party.

Hence, you prove to the verifier that you know the secret without actually telling them what the secret is.

This concept is termed as Zero Knowledge Proof.

<h2>Zero Knowledge Proof Properties</h2>
Completeness, Soundness, and Zero-Kowledgeness are the three major properties that ensure that neither of the two parties involved can fool the other one while still keeping the secret.

Completeness: If the Prover is telling the truth, the Verifier will surely agree to it.

Soundness: The Prover can only convince the Verifier if s/he is telling the truth.

Zero-Knowledgeness: The Verifier knows nothing about the Prover’s secret despite being sure that the Prover knows the secret.

<h2>Zero Knowledge Proof in Blockchain</h2>
There are numerous ways in which ZKP can be used to make <a href="https://www.theblockbox.io/services/blockchain-development/">blockchain</a> more privacy-centric.

Recently, identity verification systems are being built over blockchain. With ZKP integrated into blockchains, users can prove their identity without having to reveal any personal information. 

For bank loans, ZKP will allow customers to only provide a proof of their minimum salary that the bank requires to sanction them the loan. This does not reveal any personal information about their work or even the exact salary.

Fund transfer on blockchain can be made completely anonymous with the application of ZKP, as is seen in the case of Monero, ZCash, and Zerocoin. This anonymity can help financial entities conceal their transaction information despite transacting on a blockchain.
Javascript Community is essentially what we asked for
Tags: javascript
Published: 2019-07-30 11:23:53

Long-time ago, Javascript was used for solely creating fancy web pages.

At that time, Javascript programmers were labelled by "real programmers" as "not-a-real-programmer". 

Unlike real programmers, they cannot do any complicated backend where the real programming is.

Hence, Node.js was born. They now start to build a backend.

---

At that time, Javascript has no frameworks. Javascript code was very unstructured. 

Javascript programmers were blamed for not knowing how to write well-designed code. They don't have proper knowledge on OOP, SOLID, functional programming, etc. They are such amateurs.

Javascript programmers tried to understand how to structured a maintainable codebase.

Hence, tons of competing opinionate Javascript frameworks were born (every week).

---

As a lot of senior developers try to mock how Javascript programmers are amateur, self-taught and incompetence. Javascript community always triumph. As Atwood's Law: any application that can be written in JavaScript, will eventually be written in JavaScript.

Javascript programmers can do anything you challenged them to. Sometimes in a very weird, unconventional, chaotic and possibly harmful way.

"You are not a real programmer, you can only do frontend" Boom!! Node.js
"You are not a real programmer, you don't even know how to struct code properly. You don't know Object-oriented design or functional programming" Boom!! OOP frameworks and Functional programming frameworks
"You are not a real programmer, you keep duplicate code all over the place." Well, let me put every single line of code and create an NPM package so I would not duplicate any code again.

So in some sense, I think Javascript community become what it was asked (or challenged) to be in the most unexpected way.

---

This article is a rant. But I have a point.

Maybe, maybe, if we are less grumpy toward new self-taught developers who happened to choose low learning curve language that can create a meaningful application very fast, such as PHP or Javascript.

Maybe, the Javascript community would not have to resolve to rebuild everything on their own, not learning from past mistakes.

Maybe instead of saying "Javascript is such garbage. They don't even have static type", you choose to contribute to TypeScript. We may end up with something more useful.

Maybe instead of complaining about how Electron and Javascript consume memory, you can teach junior developers to write memory efficient code.

Maybe instead of mocking how Javascript programmers don't understand OOP  and write unmaintainable code, you can demonstrate what all those principles are for, maybe we could end up with less but well-designed Javascript frameworks.

I only wish for whole programming community to be less about elitism and be more about inclusive. 

At least I can say that Dan Abramov, one of Javascript community influencer is one of the most inclusive developers.
Delphi Data Access Components are Now Compatible with macOS 64-bit
Tags: delphi, macos, database, applicationdevelopment
Published: 2019-07-30 11:06:36

---
title: Delphi Data Access Components are Now Compatible with macOS 64-bit
published: true
description: Devart has recently released the new versions of its Delphi Data Access Components which now support macOS 64-bit.
tags: Delphi, macOS, Database, Application Development
---
*Devart has recently released the new versions of its Delphi Data Access Components which now support macOS 64-bit.*

![Delphi Data Access Components](https://i.ibb.co/QKrM0Qf/entity-dac-screen.png)

Devart has rolled out the new versions of its Delphi Data Access Components which allow users to develop applications in Delphi for both 32-bit and 64-bit versions of macOS. The release will be of particular interest to RAD Studio users who decide to upgrade their software to the latest version 10.3.2  which comes with support for 64-bit Delphi apps on macOS.

It is also worth mentioning that the new versions of DACs have been fully tested for compatibility with RAD Studio 10.3.2 on macOS 64-bit. However, this DAC release requires installation of Release 2 of Embarcadero RAD Studio 10.3.

**Devart Delphi Data Access Components** allow developing multi-platform applications in Delphi, C++Builder, Lazarus (and FreePascal) on Windows, Linux, macOS, iOS, and Android. These tools provide direct access to popular databases such as Oracle, Microsoft SQL Server, MySQL, InterBase, Firebird, PostgreSQL, SQLite.

For the full list of changes in this release, visit the [DAC](https://www.devart.com/dac.html) page.

**About Devart**

Devart is one of the leading developers of database tools and administration software, ALM solutions, data providers for various database servers, data integration and backup solutions. The company also implements Web and Mobile development projects.
For additional information about Devart, visit [https://www.devart.com/](https://www.devart.com/)
The Mum Test
Tags: career, jobs
Published: 2019-07-30 10:26:33

At the end of last year I was applying for a couple of positions every week. In an effort to reduce time wasted with companies I wasn't confident I wanted to work for, I came up with a test that I could use to evaluate and filter them. I call it "The Mum Test".

My mum looked after all of us kids, kept the house clean, cooked dinner most nights, and spent her time volunteering during the day. As we got older, she swapped looking after us for working full time. Even now after most of her children have moved out of home she leads a very busy life.

**The Mum Test**

> If I can't see my mum having the time to apply for a job as well as other jobs on the market, how is she supposed to join that company? And if she can't join them, how are other mothers, parents, people experiencing burnout and people who have commitments outside of work supposed to?

This isn't a perfect test, but it is a nice filter to add when evaluating companies from the outside. Companies that pass this test could still have deeply rooted cultural issues and biases. Companies that don't pass this test could have programs to help parents to rejoin the workforce.

What other tests and questions do you have that help you evaluate what companies you want to work for?