teleren/devto huggingface dataset:
☑️ HIPAA/HITECH: A Compliance Guide For Businesses
Tags: compliance, security
Published: 2021-06-14 11:39:40

#### 📓 HIPAA and HITECH both provide legal guidelines for managing protected health information in the United States. Here is what businesses need to know to comply.

If your business processes protected health information (PHI) in the United States, you’ll need to familiarize yourself with both the Health Insurance Portability and Accountability Act (HIPAA) and the Health Information Technology for Economic and Clinical Health (HITECH) Act.

Both pieces of legislation provide legal guidelines for managing PHI in the United States and come with strict penalties for violations. For example, two health care networks were fined $5.5M each in two of the [worst violations in recent history](https://www.beckershospitalreview.com/cybersecurity/hipaa-through-the-years-5-biggest-fines-since-2008.html).

However, each law manages and protects health data in different ways (and for different reasons). Below is a summary of what each law could mean for your business if it processes PHI in any format.

![HIPAA vs. HITECH](https://images.ctfassets.net/23aumh6u8s0i/5LsphelbdnIZtLBd7NOrZQ/3e05f625deb2ff6588f9bffbf2dc3449/sep_compliance_02.jpg)

## HIPAA vs. HITECH: What Are the Differences?

HIPAA and HITECH are two separate laws with two different goals:

* **HIPAA** was passed in 1996 and was the first U.S. law to regulate how protected health information was managed. It introduced a set of security controls and privacy rights aimed at reducing fraud and waste in health care. HIPAA defined who was required to comply with its regulations (which HIPAA called “covered entities”) and how they were required to do so in order to protect health data.
* **The HITECH Act** was passed in 2009 as part of the American Recovery and Reinvestment Act (ARRA) to encourage HIPAA-covered entities to adopt electronic health records (EHRs) for managing PHI. It offered financial incentives from 2011 to 2015 to transition to EHRs and to improve the delivery of healthcare. The HITECH Act also introduced new technical security standards (in addition to a few other things below) that complement and enhance HIPAA as well.

![HITECH Changed HIPAA](https://images.ctfassets.net/23aumh6u8s0i/2gAtMudqliW2LiC3h7imD9/db7be0b8025f315b137a7744e7d5d469/sep_compliance_03.jpg)



[Read more...](https://auth0.com/blog/hipaa-hitech-a-compliance-guide-for-businesses/?utm_source=content_synd&utm_medium=sc&utm_campaign=compliance)
Thetechbytes.net
Published: 2021-06-14 16:44:22

Do you know about <a href="https://thetechbytes.net/gbwhatsapp-apk-download-for-android/">GBWhatsApp</a>. This app have many feature. Try that.Download free <a href="https://thetechbytes.net/minecraft-apk-download/">Minecraft</a> game for your pc and android. See the <a href="https://thetechbytes.net/dramafire/">Dramafire</a>. <a href="https://thetechbytes.net/teamviewer-alternatives/">Teamviewer</a> alternatives are available.
Show Dev.to: 16 Year Old Builds ₿itcoinForecast To Celebrate Currency Adoption
Tags: react, css, webdev
Published: 2021-06-14 16:27:36

Hey Devs!

To celebrate countries beginning to adopt Bitcoin as an official currency, I built [bitcoinforecast.io](https://bitcoinforecast.io), a website where you can see Bitcoin's price forecast, real-time.

I built the website using React, Next JS, and CSS in JS.

Any feedback is appreciated!
VS Code の Remote Repositories はいいぞ。その他の便利なツールを比較してみた。
Tags: vscode, github, git
Published: 2021-06-14 16:19:23

VS Code version 1.57 で [Remote Repositories](https://code.visualstudio.com/updates/v1_57#_remote-repositories) の拡張機能をインストールすることで、 GitHub 上のリポジトリをローカルにクローンしなくても、コードの参照はもちろん、検索と更新（プッシュ）もシームレスに可能になりました。  
 
> 実は [VS Code Insiders](https://code.visualstudio.com/updates/v1_56#_remote-repositories-remotehub) で最初に使えた機能で、それでしばらく使っていました。 Stable に早くも使えるなんて嬉しいですね。 Insiders でドラフトで途中で修正していたものがあって、Stable がリリースしたタイミングで、同時に更新してみたら、ドラフトが全部消えたという悲しいことがありましたが、まあ大した内容ではありませんし、 Insiders ですし、文句は言えません。

使い方は Insiders リリース時のとあまり変わらないのですが、操作イメージは[動画](https://www.youtube.com/watch?v=wHsmaXoGIXI)を見た方が分かりやすいかと思います。

{% youtube wHsmaXoGIXI %}

また、公式[ブログ](https://code.visualstudio.com/blogs/2021/06/10/remote-repositories)にも詳細情報がありますので、使えない機能等の注意点も併せて参照してみてください。

これまでは別のツールを使ってきましたが、下記で紹介したいと思います。

## GitHub を活用する便利なツール

### Octotree
https://www.octotree.io/
恐らく定番の中の定番でしょうか。ブラウザの拡張機能で、ディレクトリをツリー表示で参照がかなり楽になります。

### github1s
https://github.com/conwnet/github1s
{% github conwnet/github1s %}
URLのところの `github` の後に `1s` をつけて `ENTER` キー押下で VS Code（のUI）がブラウザ上で表示されちゃいます！
例： 
https://github.com/facebook/react
↓↓↓
https://github1s.com/facebook/react


### Gitpod  
https://www.gitpod.io/
ローカルへ Clone せず、クラウド上でクローンを行い、ファイルを GitHub 上で直接修正が可能。
過去に .NET Core のリポジトリへプルリクエストを送信したことがあって、これで試してみました。
{% twitter 1037752547895701504 %}

{% twitter 1124188189155942400 %}

過去のクラウド上のクローンはダッシュボードで表示されるので、便利です。
![gitpod01](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a2s26oqpbc88qmx5o8vp.jpg)
 
修正・更新は VS Code みたいなので特に違和感ありませんでした。
![gitpod02](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/13uo046d0iia013asy9m.jpg)

### Sourcegraph 
https://about.sourcegraph.com/
ブラウザ上でソースコードの検索を中心としたツールです。

### Git History
https://githistory.xyz/
ソースコードの変更履歴・差分をアニメーションで表示してくれます。

---

## まとめ
上記の便利なツールで GitHub を使ってきましたが、用途によって使い分けが必要だと思います。 個人的は非常にシンプルな検索は GitHub 上で検索 + Octotree、あるいは github1s で済むことが多いのですが、今後より細かく検索・修正したい場合は VS Code で完結できる Remote Repositories を使う場面が多くなりそうです。簡単なプルリクエストを送信したい時もありますので、Remote Repositories で、「検索、一括置換、コミット」するだけで自動的にリモートリポジトリにプッシュされますので、プルリクエストを手軽に送れるようになるかと思います。是非試してみてはいかがでしょうか。

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ngq0jjq00gtpjnacig0f.png)
I've mastered Godot, here is my opinion:
Tags: gamedev, godot, programming, github
Published: 2021-06-14 16:02:25

Godot is an open-source game engine. 

First of all, Godot for 3D isn't the best engine you can use, if you only want to make small 3D games, you'll probably be fine. However, Godot for 2d is (in my opinion) REALLY good.

·The scene and node system it has is really smart and easy to use.

·If you are a python dev and you can't find a really good game engine to make 2d games, this is what you need. Godot originally uses GDScript (even though you can use C# as well) and GDScript is really similar to python. 

·If you use Godot you will become part of a huge and friendly  open-source community.

·Lots of people say that Godot's community is not as strong as unity's or unreal's, making it more difficult to find answers for  your doubts, which is in some part true.

·With 3 months or less of practising godot and it's tools, I've been able to land my first freelance job in Upwork, and that is a prove that Godot's community's is growing.

In conclusion, I think Godot is a really good engine for 2d games, has a fast-growing community, and is perfectly able to give you the chance to make beautiful games.
Hello, World ?
Tags: programming, opensource, code
Published: 2021-06-14 15:53:29

## First note
Hello World is probably the most iconic, and foundation to many developers' career. It's easy to implement, and most programmers would often get started with it.


## The project 
I want to bring Hello World to next level, by creating a project consists of dozens of Hello World programs written in different languages :)

It's currently on [Github](https://github.com/nguyenphuminh/HelloWorld). By this time, there have already been close to 200 programs. If you like to add a language to the repo, we would LOVE to include it in the list whether it's an esolang, a joke language, a personal toy language, or any others. 

Thanks for your time, hope you'd consider checking it out. Feel free to ask, explore and contribute.
Stack Data Structure 
Tags: algorithms, beginners, python, javascript
Published: 2021-06-14 15:04:19

Hello, in this article we're going to talk about stack;

## Definition of Stack

>"A stack is a linear data structure that stores items in a Last-In/First-Out (LIFO) or First-In/Last-Out (FILO) manner. In stack, a new element is added at one end and an element is removed from that end only. The insert and delete operations are often called push and pop."
>- *[www.geeksforgeeks.org](https://www.geeksforgeeks.org/stack-in-python/)*

![stack data structure](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g94ftvmw7njzgg3am79h.jpg)

## Space and Time complexity

the space complexity of a stack is O(n)

| push 	| pop  	| peek 	|
|------	|------	|------	|
| O(1) 	| O(1) 	| O(1) 	|

## implementation of a stack using list in python
```python
class Stack :
    def __init__(self):
        self.items = []
        self.top = 0

    def push(self,data: any) -> any :
        self.items.append(data)
        self.top+=1
        return data

    def pop(self) -> any:
        if self.top > 0 :
            self.top -=1
            return self.items.pop()
    def peek(self) -> any:
        if self.top > 0:
            return self.items[-1]

    def __len__(self) -> int:
        return self.top

    def clear(self) -> list:
        self.items = []
        self.top = 0
        return self.items
        
    def isEmpty(self) -> bool:
        return self.items == []

    def printAll(self) -> list:
        return self.items
```
## References and useful Ressources
+ [https://www.quora.com/What-are-the-advantages-and-disadvantages-of-stack-in-collection](https://www.quora.com/What-are-the-advantages-and-disadvantages-of-stack-in-collection)
+ [https://www.geeksforgeeks.org/stack-in-python/](https://www.geeksforgeeks.org/stack-in-python/)
+ [https://betterprogramming.pub/implementing-a-stack-in-javascript-73d1aa0483c1](https://betterprogramming.pub/implementing-a-stack-in-javascript-73d1aa0483c1)

thank you!
\#day_2
RocketList: I'm planning to build a collection of cloud actions for websites and wonder about your advice!
Tags: webdev, serverless, cloud, node
Published: 2021-06-14 15:45:19

Hey, guys! A few days ago I've got an idea to build a list of cloud-based computing functions with useful and often-used features on web development.

After deep thinking, I made up 3 features for the first version of my project:

* Sending an email

* Scheduling a notification or webhook call

* User list collections (Subscribers, future clients, and so on).

What do you think about the potential of the idea? Is it worth to be built?

P.S. In the link below you can see a small graphical content about this platform. Also if you wonder to track the state of the project, you can follow it there.

https://www.producthunt.com/upcoming/rocketlist
Switch To Token Based or SSH Based Authentication on Github Before 13th August 2021
Tags: github, git, news
Published: 2021-06-14 15:39:58

Github is about to change how we interact and work with Git forever. In a blog post published in December 2020, Github announced its plans to move to a token-based authentication system by August 2021. To avoid any unwarranted disruptions, make the switch now. 

Generate a personal access token from [Developer Settings](https://github.com/settings/tokens/new). If you are using Linux. Install `gh`, that's github's command-line tool. 

```shell
$ sudo snap install gh
```

![Switch to Token-Based Authentication on Github. Generating personal access token](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gjmwmralw3k849v2muwc.png)

After you are done generating the token paste it on the `gh auth login` prompt.

```markdown
~$ gh auth login
? What account do you want to log into? GitHub.com
? You're already logged into github.com. Do you want to re-authenticate? Yes
? What is your preferred protocol for Git operations? SSH
? Upload your SSH public key to your GitHub account? Skip
? How would you like to authenticate GitHub CLI? Paste an authentication token
Tip: you can generate a Personal Access Token here https://github.com/settings/tokens
The minimum required scopes are 'repo', 'read:org'.
? Paste your authentication token: 
``` 


### SSH Based Authentication Token

You can authenticate by pasting the secret auth token, or authenticate using the browser which is a lot easier. Another and rather most common way to authenticate is by using SSH Based authentication token. 

```markdown
$ gh ssh-key add -t name ~/.ssh/id_rsa.pub
```

#### Troubleshooting 

If you are still having issues setting up either of the authentication tokens try updating the client. [Read official blog post](https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/), provides a comprehensive installation plan for any OS you might be using. 

I'll try to do a step my step video on Youtube. Post your feedback's on the comments below. 

Thanks
What's your favorite article that lives in your head rent-free?
Tags: discuss, watercooler
Published: 2021-06-14 15:22:30

I found myself randomly thinking about Vitor Paladini's excellent article about [Technical Writing Tips for Non-Native English speakers](https://dev.to/vtrpldn/technical-writing-tips-for-non-native-english-speakers-4fno) and made me wonder: does anyone else have articles that are so relevant and well-written that they stay with you long after? Tell me in the comments!
How to Iterate over String
Tags: cpp, python, competitive
Published: 2021-06-14 14:55:04

If you are just getting started with competitive programming you will definitely come across problem where you have to iterate over a string.

### Questions to try

1. https://leetcode.com/problems/check-if-word-equals-summation-of-two-words/
2. https://leetcode.com/problems/defanging-an-ip-address/
3. https://leetcode.com/problems/split-a-string-in-balanced-strings/


I have the answer in different programming languages.

## C++
```cpp
#include <iostream>
#include <string>

int main ()
{
  std::string str ("dev.to");
  for (unsigned i=0; i<str.length(); ++i)
  {
    std::cout << str.at(i);
  }
  return 0;
}
```
`output: dev.to`

## Python
Iterating over string is as simple as iterating over a list in python.
```python
string  = "dev.to"
for i in string:
    print(i)
```
```
output: 
d
e
v
.
t
o
```
## C
```c
#include <stdio.h>
#include <string.h>

int main(void){
    char source[] = "dev.to";
    for (int i = 0; i < strlen(source); i++) {
        printf("%c",source[i]);
    }
}
```
`output: dev.to`

**IMPORTANT**: This are not the only ways to get your job done but are easy to understand for beginner.

You can search google for answer or just save this post. More to come in future with this series.

Suggest me if you have anything to say because this is my first post on dev.to.
Python Projects for beginners
Published: 2021-06-14 14:53:22

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cmw35ffdo9pj8qg0piti.jpg)
List of 10 Python projects to build as beginners:

**Most basic:**
1. Python story Generator
[Project tutorial](https://www.geeksforgeeks.org/how-to-build-a-random-story-generator-using-python/)

2. Hangman Game
[Project tutorial](https://cppsecrets.com/users/5617971101051071011161151049711410997484852494964103109971051084699111109/Hangman-Game-using-Python.php)

3. Junk File Organizer
[Project tutorial](https://www.geeksforgeeks.org/junk-file-organizer-python/)

4. Random Password Generator
[Project tutorial](https://www.geeksforgeeks.org/generating-strong-password-using-python/)

5. Currency Converter
[Project tutorial](https://ayushirawat.com/currency-converter-using-python)


**Using GUI:**
6. Calculator
[Project tutorial](https://data-flair.training/blogs/python-calculator-project/)

7. Tic tac toe
[Project tutorial](https://data-flair.training/blogs/python-tic-tac-toe/)

8. To-do list
[Project tutorial](https://www.geeksforgeeks.org/python-todo-gui-application-using-tkinter/)

9. Countdown Timer
[Project tutorial](https://www.geeksforgeeks.org/create-countdown-timer-using-python-tkinter/)

10. Calendar
[Project tutorial](https://www.geeksforgeeks.org/python-gui-calendar-using-tkinter/)
How to solve 'BroadcastChannel is not defined'
Published: 2021-06-14 14:49:12

When using BroadcastChannel with React in your application, you probably will face with this issue if try to run some tests with React Testing Library and Jest:

```shell
    ReferenceError: BroadcastChannel is not defined

      51 |
      52 |   useEffect(() => {
    > 53 |     authChannel = new BroadcastChannel('auth')
         |     ^

```

To resolve this, I tried to mock BroadcastChannel creating a `broadcast.ts` file inside `__mocks__` folder with this content:

```js
jest.mock('BroadcastChannel')
```

Now, you probably will face with this issue:

```shell
    Cannot find module 'BroadcastChannel' from 'src/__mocks__/broadcast.ts'

    Require stack:
      src/__mocks__/broadcast.ts

    > 1 | jest.mock('BroadcastChannel')
        | ^
      2 |

```

Jest can't find BroadcastChannel because is not a module, then, it is necessary install BroadcastChannel module (this helps your tests and help old browsers support).

```shell
yarn add broadcast-channel
```

Then, import BroadcastChannel where you are using (just add import, your code should be the same).

```js
import { BroadcastChannel } from 'broadcast-channel'
```

In the last step, you need to change you mock file that you created at start to mock broadcast-channel module:

```js
jest.mock('broadcast-channel')
```

## That's It! :tada:

Now your tests should pass and you can work with jest using BroadcastChannel perfectly.
`at` coming soon to ECMAScript
Tags: javascript, webdev, productivity, beginners
Published: 2021-06-14 14:41:59

---
title: `at` coming soon to ECMAScript
published: true
description:  Another new proposal for ECMAScript addition, giving you the ability to cleanly access array elements using negative indices.
tags: javascript, webdev, productivity, beginners
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q8p71l33qbde5fnuu40o.png
canonical_url: https://laurieontech.com/posts/at-proposal/
---

If you're a JavaScript developer you've likely used arrays quite a bit. They're an essential data structure within the language.

In fact, they're so essential that the array prototype has seen rapid expansion in the past few years, with things like `flat` and `filter` added. And we're not done yet.

## Accessor

In order to access an element in an array, you need to know its index. Indeces in JavaScript are zero-based, so the first element is at index 0.

```javascript
const arr = ["a","b","c","d"]
arr[0] // this is "a"
arr[2] // this is "c"
```

As you can see in the example above, you can access the first element, or the third element. What about the last element? In other languages you might be able to do something like this.

```javascript
const arr = ["a","b","c","d"]
arr[-1] // This is NOT "d"
```

But not in JavaScript! Why not? Well, as it turns out, `-1` is already a valid key. Arrays are really objects with indeces as keys. So `arr[-1]` is looking at the `arr` object and the value of the `"-1"` key, which is `undefined`.

## The last element

Then how do we access the last element without knowing its index? There are ways to do it, but its certainly more verbose. You can use the length lookup.

```javascript
arr[arr.length - 1] // this is "d"
```

Or you have the slice option.

```javascript
arr.slice(-1)[0] // this is "d"
```

## Introducing at

That's why the `at` function is under consideration. Instead of those options, you'd be able to write this instead.

```javascript
arr.at(-1) // this is "d"
```
Note that this works for all valid negative indices, up until you pass the first element.

The great thing about `at` is that it can replace square brackets all together.

```javascript
arr.at(0) // this is still "a"
```

And what about an invalid index?

```javascript
arr.at(5) // this is undefined
```

Seems pretty all encompassing.

## An aside on history

As it turns out, this was attempted before using `item`. However, it wasn't web compatible as it clashed with major libraries. So, `at` is the current proposal.

## Would you use it?

Hopefully this will move forward to Stage 4 soon and be officially adopted. I can see this being nice syntactic sugar for accessing array elements.
STATIC VARIABLE IN PYTHON
Tags: python, programming, codenewbie, beginners
Published: 2021-06-14 14:19:07

                            STATIC VARIABLE

*If the value of a variable is not varied from object to object such type of variable if is called as STATIC VARIABLE.

VARIOUS METHOD TO DECLEAR STATIC VARIABLE:

1- Within the class directly but not inside any method and constructor:

class Test:
	a=1 #STATIC VARIABLE
print(Test.__dict__) 

 
2-In Inside the constructor by using class Name:
class Test:
	a=1
	def __init__(self):
		Test.b=2  #static variable


3-Inside instance method by using class name:

class Test:
	a=1
	def __init__(self):
		Test.b=2
	def f(self):
		Test.c=3 #Static Variable

t=Test()
t.f()
print(Test.__dict__)


4-inside CLASS METHOD by using either cls or class name:

class Test:
	a=1
	def __init__(self):
		Test.b=2
	def f(self):
		Test.c=3
	@classmethod
	def f1(cls):    
		cls.d=4  #Static Variable
		Test.e=5  #Static Variable

Test.f1()
print(Test.__dict__)
 

5-Inside the STATIC METHOD by using class name:

class Test:
	a=1
	def __init__(self):
		Test.b=2
	def f(self):
		Test.c=3
	@classmethod
	def f1(cls):
		cls.d=4
		Test.e=5
	@staticmethod
	def f2():
		Test.f=6 #static variable

 
Test.f2() # In static method we call directly by class name
print(Test.__dict__)
 

6-Outside of the class by using classname:

class Test:
	a=1
	def __init__(self):
		Test.b=2
	def f(self):
		Test.c=3
	@classmethod
	def f1(cls):
		cls.d=4
		Test.e=5
	@staticmethod
	def f2():
		Test.f=6

 
Test.g=7 #Static Variable
print(Test.__dict__)
What's the diff? Snowpack vs Webpack
Tags: webdev, javascript, todayisearched, todayilearned
Published: 2021-06-14 14:06:39


Recently, I tried out a new project with Snowpack. I have always used Webpack in my projects, but it seemed like a good opportunity to try something new out. This post is a short read on Webpack and Snowpack, and a little talk about my experience with it.

First off, what is Webpack?
On its website, it is a module bundler. When web apps started getting much larger, Webpacks became the answer to the size of these dependencies and overall project size. Webpack goes through the packages you have in your project, and creates a dependency graph that contains modules that your web app needs to function. Pretty much, it's tasked with taking your JS files, imported NPM modules, images, CSS, other assets, and throw it into a build file that the browser can run. Every time you make a change, your files have to be re-bundled, making it quite tedious.

Then what's snowpack? 
Snowpack, is much newer, coming on to the scene in 2019. It a front-end build tool for JS, and was created to be an alternative to webpack. Snowpack is able to be light weight by taking advantage of JavaScript's native module system, to only do the bare minimum. It uses ES modules to run within the browser, and only use modules when it's needed. There is also an ability to imports modules from CDN servers. If you don't need have a large request waterfall, and want to gave as little tooling as possible, then you would benefit to using Snowpack.

The project I wanted to make was a React app, and deploy it through GitHub pages. The setup was quite simple, and I found that the documentation on the Snowpack page to be really thorough. However, reading more up on it, I heard it wasn't recommended to use with a no configuration tool like _create-react-app_, because I needed to figure plugins and configure some of my settings to get it to work. (I made a template [here](https://github.com/ckim328/snowpack-react-template-gh) if you want to avoid the pain that I went through setting up and making your Snowpack React app work with gh-pages). But wither than that, I found it was much quicker and help speed up my workflow for my small project.

Overall, I would recommend trying out Snowpack, since it's pretty easy to figure out how to get up off the ground with. Leave a comment if I missed anything on comparing the two, and what preference you have if any!