teleren/devto huggingface dataset:
Dual Encryption
Tags: qvaultcards, cipher, cryptography, encryption
Published: 2019-07-23 01:31:01

---
title: Dual Encryption
published: true
tags: Qvault Cards,cipher,cryptography,encryption
canonical_url: https://qvault.io/2019/06/20/dual-encryption/
---

Qvault’s dual encryption allows users to require that two keys are needed to unlock their vault. A password, and a key card.

You have probably heard of two factor authentication. According to [Authy](https://authy.com/what-is-2fa/):

> 2FA is an extra layer of security used to make sure that people trying to gain access to an online account are who they say they are.

Usually the second factor is something you _have_, rather than something you _know._ For example, the thing you have can be a device that can receive SMS messages at a given phone number.

![](https://qvault.io/wp-content/uploads/2019/06/pcdnyt1-1024x683-1024x683.jpg)<figcaption>Qvault Key Card</figcaption>

### Dual Encryption with Qvault cards

2FA works well for web applications and websites. But it can’t work for Qvault because ** Qvault does all encryption locally**  on your computer. Local encryption is more secure because it means you don’t need to trust anything except the Qvault software (which is open source and reviewed by our community)

Qvault manufactures and issues physical plastic cards that have unique QR codes containing random and unique 256-bit encryption keys. When locking and unlocking a vault, Q Vault first encrypts the secrets using the users’ password, and then encrypts them again using the encryption key (obtained by scanning the card’s QR Code). By using dual encryption, vaults can become much more secure.

### Can Qvault access a vault because it knows the QR Code?

No. For two reasons:

1. **Qvault has no way of accessing the vault’s password** , which is the first level of encryption. This is known only to the user.
2. **Qvault deletes all records of each key**  after the manufacturing process for each card is complete.

#### At the time of writing, Qvault is in open beta and we invite everyone to download it, and let us know how we can improve!

Follow us on medium! [https://medium.com/qvault](https://medium.com/qvault)

By Lane Wagner
What specifically should I learn for a career in DevOps (more explanation below)
Tags: career, discuss, help
Published: 2019-06-21 08:22:50

Wanting to move from Data to a field where I get to automate things and so I'm looking to cross skill into DevOps. 

Yes I know everyone says DevOps is a culture and not a job which tells me that it'll be around for as long as stupid devs exist.

The mantra seems to be, start with Linux, Python and anything AWS / Git.

But that's a very broad list of things to learn.

To give an example from my own world if someone wanted to become a Data Analyst, saying just learn SQL is not quite true, don't bother learning how to do ETL, don't bother with views, and don't try to tackle PLSQL until much later.

So what are some specific examples of things I should learn to do in Linux / python / AWS??

MANY
MANY
Thanks in advance :)
VueJS function API RCS phase
Tags: vue, javascript, dontbethatguy
Published: 2019-06-21 07:24:42

---
title: VueJS function API RCS phase
published: true
description: RCS phase for about function api implementation is started.
tags: #vuejs #javascript #dontbethatguy 
---

RCS phase for the #vuejs intrerpretation of React hooks. If you're using or interested in VueJS, please have a look.

As Gregg Pollack and Adam Jahr said: "Don't be that guy" :-)

{% github https://github.com/vuejs/rfcs/ %} 

#javascript #dontbethatguy
Embed a form on dev.to ?
Tags: meta
Published: 2019-06-21 07:07:47

---
title: Embed a form on dev.to ?
published: true
tags: meta
---

Is it possible to embed a form on dev.to ?

I tried to use the <form> tag but it did not work. 😞

I'd really like to embed my newsletter signup form on post I create here. 🙂
Component Composition & Inheritance in React
Tags: react, javascript, beginners
Published: 2019-06-21 06:21:58

# Component Composition

Whenever UI component renders it's children, `props.children` are __interpolated__ inside tags:
```
const Bar = props => (
    <div className={'ui items ' + props.color}>
        {props.children}
    </div>
);
``` 
Children can be anything: text, expressions, elements, components
```
...
const NavigationBar = props => (
    <Bar>
        My Bar Element! //text

        {props.items[Math.floor(Math.random() * props.items.length)]} //expression

        <a className="link">
            Anchor element
        </a>

        <Link>
            Custom component <Link>
        </Link>
    </Bar>
);
```
Inner contents of `Bar` are evaluated before `NavigationBar` is rendered.

######Note, that React elements like `<Bar />` and `<NavigationBar />` are not dissimilar to that of `<div />` or `<a />` elements since library and Babel will transpile JSX down to ES5 for compatibility concerns.

##Why Not Component Inheritance?
Creation of component inheritance hierarchies may find it's use in reusable non-UI components, however, a functional component is better off extracted into separate JavaScript module.

Thank you for reading!
Node.js API Development for Beginners
Tags: node, javascript, webdev, beginners
Published: 2019-06-21 05:26:12

In this video you will learn the core fundamentals of NodeJS so that you can start building API using NodeJS. You will learn Modern JavaScript, NodeJS event loop, Asynchronous programming, using node modules, npm modules and creating your own modules, creating server, connect to database and sending json responses.

{% youtube KtA5bggbP7I %}
The Code Zone
Tags: cloud, aws, webdev, devops
Published: 2019-06-21 05:18:17

---
title: The Code Zone
published: true
description: Getting into the Zone for Coding
tags: cloud, aws, webdev, devops
canonical_url: https://www.embedthis.com/blog/posts/the-code-zone.html
cover_image: https://thepracticaldev.s3.amazonaws.com/i/puiw97zzowhtdsvkgkmf.png
---

Coding a new piece of functionality can sometimes be fun, sometimes be painful. But I’ve found that there is a Zone where coding becomes much more productive and faster. Let me explain.

In a normal day with travel to and from work, lunch, meetings, coffee and administration, you often only get a few hours of productive work time. Even then, those hours are frequently interrupted. This is all fine, except for coding and design. These interruptions break concentration and pull you out of the zone.

I find that if I code uninterrupted for a few hours, my productivity builds. If I do this for a day with no meetings, no distractions and no travel, productivity continues to build and the coding Zone starts to grow. Once in the Zone, code flows freely and simple elegant solutions seem to emerge.

If I keep doing this for a few days, then my sub-conscious kicks in. While sleeping, driving, showering – my sub-conscious seems to keep working the problem. I firmly believe that my sub-conscious is the smarter part of my brain. When the Zone works like this, it is like having 2 brains on the problem.

What makes this fun, is the final result. The code produced is much smaller, cleaner and more manageable when coding in the Zone.

I’m sure there are lessons in this for corporations who all too often strangle the Zone out of existence.
Random TIL #1
Tags: ruby, rails, todayilearned
Published: 2019-06-20 08:29:11

---
title: Random TIL #1
published: true
description: Things I learned, too big for a blog post, too small for Twitter
tags: ruby, rails, til
---

I figured I should share some random TIL that I got when I was working on my tickets. Let's see how long I can keep up with this 😆

## Same radio button's name

I stumbled upon this problem where the radio button wasn't checked even though it's supposed to be based on the given param in the URL.

Apparently, the problem was because there's another radio button with the same name so that was the one that got checked. We have two sets of radio buttons (desktop and mobile) and both of them are using the same name. Simply prefixing the name of one of those sets fix the problem

## CircleCI artifact for Capybara screenshots

It turned out that it's very easy to access those Capybara screenshots. Simply specify the directory where the screenshot is in your local config will ensure it'll show up in the Artifacts tab in your CircleCI

```yml
version: 2
jobs:
  build:
    docker:
      ...
    steps:
      ...
      ...
      - store_artifacts:
          path: /home/circleci/project/tmp/capybara

```

## Testing feature spec in mobile view

In order to test some UI which will only be available on mobile, we need to resize the window first and this can be achieved with this code:

```ruby
# spec/support/capybara_test_helper.rb
module CapybaraTestHelper
  def resize_to_mobile(width: 375, height: 667)
    page.current_window.resize_to(width, height)
  end
end

# spec/rails_helper.rb
RSpec.configure do |config|
  # ...
  config.include CapybaraTestHelper, type: :feature
end
```

This works great BUT apparently, Capbybara doesn't resize the window back to the original size so, your specs after that will probably fail. In order to ensure it'll be reset back, put this code in your rails helper again:

```ruby
RSpec.configure do |config|
  config.after(js: true, type: :feature) do
    page.current_window.resize_to(1600, 1024)
  end
end
```

I used `.maximize` before and it worked locally but failed in CircleCI probably due to the unsupported driver as mentioned in the documentation. So, explicitly set the width and height helped.

## Capybara parent selector

In one of my specs, I need to get the text value which is the third sibling of an element that I can target. Since it's the only text, I can use parent selector and call `.text` to get the value. Using `.first(:xpath, '..')` helped:

```ruby
find(
  'input[name="meh"]:checked',
  visible: false
).first(:xpath, '..').text
```


That's it, folks. Hopefully, these notes might help someone in the future ✌️
Live Coding Learnings - June 20, 2019
Tags: todayilearned, java, tdd, refactoring
Published: 2019-06-21 04:42:35

---
title: Live Coding Learnings - June 20, 2019
published: true
description: Summary of what I learned in today's live coding stream at https://twitch.tv/jitterted
tags: TIL, Java, TDD, Refactoring
series: Live Coding Lessons Learned
---

# Pure Refactoring

I didn't stream today, but was reviewing some of my past streams (mining it for content for my Java coaching clients) and realized my coding rule that I mentioned earlier was incomplete. The rule I stated was:

> Do not change code unless it is to make a failing test pass (or fail better).

However, I had forgotten that this rule doesn't apply when doing pure refactoring. In that case, the rule is:

> Tests must pass before refactoring and remain passing -- with no changes -- after refactoring.

Some might say that this is too strict, and I'd agree, I'll bend these rules when using my **judgment**, but for teaching novices, it's a good way to differentiate when you're changing code to add capabilities vs. when you're changing internals to improve the code itself. The latter is refactoring and if tests are breaking, you're either changing too much, or your tests were too *low-level* (tied too tightly to the implementation details).

For example, if I have the code

```java
public int price() {
  return cachedPrice;
}
```

Then it shouldn't matter to tests or other code if I changed it to:

```java
public int price() {
  int sum = 0;
  for (Item item: items) {
    sum += item.price();
  }
  return sum;
}
```

In other words, whether I calculate the price when requested, or cache it (the first example), it's an implementation detail that the class should be free to change, i.e., refactor, without affecting other code.

If tests are relying on one or the other behavior, then that's likely (though not always) a problem where you might want to re-think your test code.

----

Be sure and tune in to my next live coding stream: https://twitch.tv/jitterted.
Admin-Dashboards.com - goes open source
Tags: opensource, dashboards, appseed
Published: 2019-06-21 04:40:32

---
title: Admin-Dashboards.com - goes open source
published: true
description: A curated list with admin dashboards/visualization resources.   
tags: opensource, dashboards, appseed
---
Hello Coders,

A few days ago I was a little bit surprised to see that [Admin-Dashboards.com](https://admin-dashboards.com/) domain was free and I came up with the idea to make it an [open-source](https://en.wikipedia.org/wiki/Open_source) service. 

## The motivation
If you are a freelancer or a small startup, and you have in your portfolio an **admin dashboard** product, trying to promote it and sell it, can be challenging without a serious budget. The first page in Google for the keyword “**admin dashboards**” is full of well-positioned companies like ColorLib, WrapBootstrap, Creative-Tim and, other companies at the same level.

## How it works    

- fork the [admin-dashboard project](https://github.com/admin-dashboards/dashboards) - published on Github
- add a descriptive post of your admin dashboard, like this [sample](https://github.com/admin-dashboards/dashboards/blob/master/content/posts/2019-21-06---argon-dashboard.md)
- After a review, your app becomes visible on [Admin-Dashboards.com](https://admin-dashboards.com/)
- The most viewed dashboards will get a repo under **https://github.com/admin-dashboards/** to update directly the dashboard information. 


`Note` - the app is built in [Gatsby](https://www.gatsbyjs.org/)

## Related stuff
 - [Admin Dashboards](https://www.producthunt.com/posts/admin-dashboards) on ProductHunt
 - [Admin Dashboards](https://medium.com/@appseed.us/admin-dashboards-com-goes-open-source-2a95862b5eab) on Medium
 - [Admin Dashboards](https://appseed.us/admin-dashboards) provided by AppSeed


> Thank you!
100 Questions & Answers to prepare your Solidity job interview
Tags: ethereum, solidity, blockchain, interview
Published: 2019-06-21 04:24:18

---
title: 100 Questions & Answers to prepare your Solidity job interview
published: true
description: 
tags: ethereum, solidity, blockchain, interview
canonical_url: https://eattheblocks.com/the-ultimate-collection-of-solidity-interview-questions
---

Want to prepare for a job interview for a Solidity developer position? Check my huge collection of [interview questions for Solidity](https://eattheblocks.com/the-ultimate-collection-of-solidity-interview-questions/) (100 questions)

Link: https://eattheblocks.com/the-ultimate-collection-of-solidity-interview-questions/
SQL Server Row Versions
Tags: sqlserver
Published: 2019-06-15 18:53:30

---
title: SQL Server Row Versions
published: true
tags: sqlserver
canonical_url: https://testedwithf5.github.io/sqlserver/sql-server-row-version/
---

The [`rowversion`](https://docs.microsoft.com/en-us/sql/t-sql/data-types/rowversion-transact-sql?view=sql-server-2017) data type is simple to implement, but provides some powerful functionality.

Consider the following, where we create a pair of simple tables.

```
CREATE TABLE ExampleTable2 (PriKey int PRIMARY KEY, Other uniqueidentifier, VerCol rowversion) ;  
GO
insert into ExampleTable2(PriKey, Other)
values 
(1, newid()),
(2, newid()),
(3, newid()),
(4, newid()),
(5, newid()),
(6, newid()),
(7, newid()),
(8, newid()),
(9, newid()),
(10, newid())
GO
CREATE TABLE ExampleTable3 (PriKey int PRIMARY KEY, Other uniqueidentifier, VerCol rowversion) ;  
GO
insert into ExampleTable3(PriKey, Other)
values 
(11, newid()),
(12, newid()),
(13, newid()),
(14, newid()),
(15, newid()),
(16, newid()),
(17, newid()),
(18, newid()),
(19, newid()),
(20, newid())
```

As we can see, the `VerCol` column is populated with sequential data. Note that the value is **sequential across the database, not the table**

![initial values](https://testedwithf5.github.io/assets/images/rowversion_1.PNG)

If we update a row

```
update ExampleTable2 set Other = NEWID() where PriKey = 2
```

We can see that the `VerCol` was automatically updated to the next number in the sequence.

![initial values](https://testedwithf5.github.io/assets/images/rowversion_2.png)

The usefulness is immediateley obvious in two scenarios that come to mind. The first would be a scenario where a user is editing a record that another user is also editing. If User A saves the record, the `VerCol` will be updated. When User B goes to save the record, we could check the value of this column against the record User B is working with and prevent the save operation with a warning that the data is out of date.

The second scenario is around batch jobs and/or data exports. If CustomerA and CustomerB occasionally ask for exports of data that have changed since they last asked, we can provide the data and the `Max(VerCol)` at the time the export happens. When they next ask for a new set of data, we can simply add criteria stating `where VerCol > 0x00000 00000000824`.
Working in Circle City, Day 4: Community
Tags: newhire, circlecity, community
Published: 2019-06-21 03:09:02

---
title: Working in Circle City, Day 4: Community
published: true
description: This place is so exciting. This series is all about my new adventure.
tags: newhire, circlecity, community
cover_image: https://thepracticaldev.s3.amazonaws.com/i/2uuoe4i7ahw0tsfmnvd1.jpeg
series: Working in Circle City
---

# The AM

The CEO took some time to talk about the company's vision this morning, but not before we had a tornado drill! 😉 It was an interesting event. Thankfully, we’re only on the fourth floor and didn’t have too far to walk to make it to the basement (which happens to be a cigar bar, by the way 😂).

The building we’re in is pretty old (finished in 1923), so when I had to walk on the steepest and narrowest steps of my life, I couldn’t help but wonder if people hadn’t micro feet back when the building was built. A fun fact I learned about the building today: when it was built, there was a 150-foot height limit on buildings so they wouldn’t shadow the Soldiers’ and Sailors’ Monument. I’ve lived here my whole life and never knew that! 

# The PM

I tried another new restaurant for lunch: Pearl Street Pizzeria and Pub. A major perk of working downtown is having teammates that know of DELICIOUS places to eat. A less than perky thing about working downtown is that there are too many tempting restaurants and my wallet is very stubborn. I should probably start bringing my lunch now that I’m settling in. 😁

At the end of (my) work day, my hiring class was taken to Pearings Cafe and Frozen Yogurt to celebrate having nearly finished our first week on the job! Let’s just take some time to note that their Buckeye flavored frozen yogurt is amazing. 😍 The place also has great coffee and tea, so I’ll be heading back ASAP for all the yummy treats.

# The post-PM

I went to Powderkeg’s Pitch Night as a volunteer for Women Who Code Indianapolis, a group I’m working to get more deeply involved with in the next several weeks. I found out while at frozen yogurt that someone from my company was no longer able to attend the event, and that we needed someone to walk up after the company name was announced for being one of fifty finalists for the 2019 Indiana Breakout Tech Cultures Awards!

So on my fourth day I was able to have my picture taken with folx from 49 other awesome companies. The networking at this event was great as well. It quickly became clear to me what this event was about and why a lot of the exhibitors were in attendance. Everyone was there to be a part of building a supportive community. That’s a movement I can 100% support, and I’m jumping in head first.

---

Did you know I have a newsletter? 📬

If you want to get notified when I publish new blog posts or make major project announcements, head over to [https://ashleemboyer.com/newsletter](https://ashleemboyer.com/newsletter).
What MacOS Writing App is Your Favorite?
Tags: discuss, writing, markdown
Published: 2019-06-21 02:50:11

---
title: What MacOS Writing App is Your Favorite?
published: true
description: I’ve got a gift card and need ideas!
tags: discuss, writing, markdown
---

What writing app do you use? Do you use multiples for blog posts, long form, personal notes/knowledge base, etc.?

They fall at the center of my love of tools, writing, and markdown, and I’m contemplating a new one. Currently I’m using Typora, which I love! But I’m wondering if I’m missing out on any neat features in other more powerful writing apps. 

And someone gave my wife an App Store gift card, which she passed off to me, and it’s burning a hole in my pocket 😜
[Video] How to build awesome apps using serverless
Tags: video, serverless, javascript, cascadiajs2018
Published: 2019-06-21 00:10:52

---
title: [Video] How to build awesome apps using serverless
published: true
description: The secret weapon of serverless architectures is extremely fast deployments with zero downtime. Surgical deploys allow for updating a single function in place within 1 second. All this adds up to faster iterations, which means quicker turnaround and that equals: super stoked devs!
tags: video, serverless, javascript, cascadiajs2018
---
*As we lead up to [CascadiaJS 2019](https://2019.cascadiajs.com), I'm going to share the 24 amazing talks from 2018 here on dev.to. Sit back and enjoy the show!*

![Brian Leroux](https://2018.cascadiajs.com/speakers/leroux.jpg)

The secret weapon of serverless architectures is extremely fast deployments with zero downtime. Surgical deploys allow for updating a single function in place within 1 second. All this adds up to faster iterations, which means quicker turnaround and that equals: super stoked devs!

[Watch the talk on YouTube (22:49)](https://www.youtube.com/watch?v=KkJ3DLDUfUY)
Sorbet: A Type Checker for Ruby
Tags: discuss, ruby
Published: 2019-06-20 23:08:13

Stripe open sourced Sorbet today, a fast, powerful type checker for Ruby. 

Here's the full blog post, [Open-sourcing Sorbet: a fast, powerful type checker for Ruby](https://sorbet.org/blog/2019/06/20/open-sourcing-sorbet).

Being a fan of TypeScript, I know people have all kinds of feels.

{%link https://dev.to/nickytonline/dev-to-with-a-typescript-or-flow-frontend-codebase-1n33 %}

I wonder how rubyists on DEV feel about the project or static types. What say you devs? Yay or nay?

Thanks to my co-worker [Denis Pasin](https://mobile.twitter.com/zaratan) for sharing this on our work Slack.
Money poor Time rich or vice versa
Tags: discuss
Published: 2019-06-20 22:57:26

---
title: Money poor Time rich or vice versa
published: true
description: My constant dilemma 
tags: discuss 
---

What kind of a job would you prefer?

Job-1 -: Working for one of the big tech company, aggressive work culture. Good base salary + bonus + stock. 

Job-2 -: Working for a smaller company, not so aggressive work culture or deadlines, working from home. Ownership and decision making on projects. Competitive base, no bonus or stocks.