teleren/devto huggingface dataset:
Pusher Tool Info
Tags: javascript, react, node
Published: 2020-09-02 01:27:31

I recently stumbled upon a tool called Pusher which is a hosted service that enables developers to create real-time apps through APIs. It is for both mobile and web apps and functions as a layer between clients and a host server in real-time. 

This tool is used for providing various services such as notifications, in-application chat clients, real-time location tracking tools, and real-time data charts, and dashboards. Its scalability is also why quite a few companies use it.

The main two products, Channels, and Beams lets the user develop real-time features for apps and the creation of push notifications respectively. I will also potentially be using Pusher channels for matching users and showing messages to them in a small game I am making with React. However, there are other hosted services for realtime backend API like Socket.IO which provides real-time analytics as a key feature. 

Some more in depth features:
- Easily build scalable in-app notifications, chat, realtime graphs, geotracking and more in your web & mobile apps with our hosted pub/sub messaging API.
- Send programmable push notifications to iOS and Android devices with delivery and open rate tracking built in.
- Easily add 1-1 and group Chat to your web & mobile apps. Presence, message storage, rich media, notifications, typing indicators and more.

For installation and more in-depth usage information for Pusher client library: https://www.npmjs.com/package/pusher-js

**References**
- https://stackshare.io/stackups/pusher-vs-socket-io
Golang server - standard lib or some other libraries?
Tags: go, discuss, webdev
Published: 2020-09-02 00:56:55

What do YOU use?

I saw many tutorials on Gorilla/mux, but why not standard lib? Is Gorilla much different from standard lib, anyway?

Getting a Golang job / getting contributors, should be taking into account as well.

In my latest project, I had to use Gin, when I had to go more complex. However, is it not idiomatic? What about Fiber?
IST 210 Intro
Published: 2020-09-02 00:47:07

Hey IST 210!
My name is Katie Connor, I’m currently a sophomore majoring in Security Risk Analysis. I become interested in the tech field in middle school through a few programming courses that were offered at my school. Throughout high school I took a variety of computer based classes and knew I wanted to major in something IST related in college. 
Coming into college I started of majoring in Data Science, after the first semester I immediately knew I did not want to continue with that major. Second semester I took two SRA classes and knew I liked learning about the more analytic and security side of IST rather than the data and math side. I’m hoping to find a job either with the government or a large company doing something with cyber security. 
I'm looking forward to working with everyone throughout this class. 

https://drive.google.com/file/d/1oBB5TV7Z-EcreEd03i_N6ruxkrvQjkWJ/view
Big Data - Testing Strategy
Tags: testing, bigdata, bigdatatesting
Published: 2020-09-03 04:29:43

---
title: Big Data - Testing Strategy
published: true
date: 2020-09-02 00:00:00 UTC
tags: Testing,BigData,BigDataTesting
canonical_url: https://www.loginradius.com/engineering/blog/big-data-testing-strategy/
---

With the exponential growth in the number of big data applications in the world, Testing in big data applications is related to database, infrastructure and performance testing and functional testing. This blog guides what should be the strategy for testing Big Data applications.

   
[Read On](https://www.loginradius.com/engineering/blog/big-data-testing-strategy/)
RuboCop, RSpec и стайлгад
Tags: ruby, rspec, rubocop
Published: 2021-01-19 11:00:56

---
title: RuboCop, RSpec и стайлгад
published: true
date: 2020-09-02 00:00:00 UTC
tags: ruby, rspec, rubocop
canonical_url: https://vasily.polovnyov.ru/posts/rubocop-rspec-styleguide.html
---

Годами стайлгайдом для RSpec был betterspecs.org. К сожалению, он годами не менялся, не развивался и частенько не работал.

Оказывается, 1,5 года назад Better Specs стал RSpec Style Guide и переехал в Rubocop HeadQuarters:
https://github.com/rubocop-hq/rspec-style-guide

И стайлгайд ожил и расцвел:
https://rspec.rubystyle.guide

И, конечно, есть плагин к Рубокопу для работы со спеками:
https://github.com/rubocop-hq/rubocop-rspec

Подключается в два счета:

```ruby
# Gemfile
gem "rubocop-rspec", require: false

# .rubocop.yml
require:
  - ...
  - rubocop-rspec

```

Полный список копов:
https://docs.rubocop.org/rubocop-rspec/cops_rspec.html
It's Been A Long Time But I Have Some Great News
Tags: ux, python, gdscript, godot
Published: 2020-09-01 23:29:58

I've Released My First Pc Game it's Free On Itch.io 
I Used A Mechanism That I never saw Before in Any Game Which 
Mixes both story reach , SuperPowers and Mystery 
in a Pixel-Art Style With Almost Everything Original Music ,SFX , Design style it might be Horrible to play .... Cause I didn't work much on The UI .. But I Hope I Do Better ... The Thing is I used GDscript developing it .. it's so similar to Python it's made specially for Godot Game Engine Which I Think Is Going to Be Big In The Next Few Years .... If  You Want To Try Here Is A Link 
https://jwdat-taifour-jey.itch.io/lio-memos-of-love
Scala Scripting Samples
Tags: scala, scripting, samples
Published: 2020-09-01 23:15:34

What is Scala Scripting Samples?

https://github.com/LaranIkal/scalascriptingsamples

This is a project to show samples about how we can create the great Scala programming language as an scripting language.

The purpose is to show the examples in Linux and in Windows.

There are already 9 examples for each OS.

Another purpose is to go directly to the point of the example and avoiding talking to much.
Tweets That boost Productivity - Part 5
Tags: tweets, twitter, productivity, todayilearned
Published: 2020-09-01 23:03:57

Hi, welcome to the 5th episode of accumulated tweets that can help you push through the hustle. 

You may also want to check out the [last episode](https://dev.to/ebereplenty/tweets-that-boost-productivity-part-4-5677) to see what you can gather from there. 

Let's me show you what I got for you.

{% twitter 1299457334444535814 %}

{% twitter 1297077162625970177 %}

{% twitter 1297587120752799745 %}

{% twitter 1296449286708908035 %}

{% twitter 1296056299843715074 %}

{% twitter 1295335094111145985 %}

{% twitter 1294301605622353921 %}

{% twitter 1293945920254406658 %}

{% twitter 1294381063205257230 %}

{% twitter 1293994897020780544 %}

{% twitter 1293871735226408962 %}

{% twitter 1294091556669063168 %}

{% twitter 1294131635013607425 %}

{% twitter 1294172426092322826 %}

{% twitter 1292540344631005184 %}

{% twitter 1293257204724883464 %}

{% twitter 1293513653027778563 %}

{% twitter 1293415667161419777 %}

{% twitter 1293195568899067907 %}

{% twitter 1293098586285191168 %}

{% twitter 1292837038354345987 %}

{% twitter 1292687117320151040 %}

{% twitter 1292400673938714626 %}

{% twitter 1292392195199295490 %}

{% twitter 1291954287736741889 %}

{% twitter 1291636491320537089 %}

{% twitter 1291648539458641920 %}

{% twitter 1291715727645433857 %}

{% twitter 1291691638734102528 %}

{% twitter 1291691089406173184 %}

{% twitter 1291298370439598081 %}

{% twitter 1291047563248902144 %}

{% twitter 1290789937671897088 %}

{% twitter 1290070105032859649 %}

{% twitter 1289527949746561028 %}

### Conclusion
There are may things we can learn from each other and Twitter has made that possible. I hope you learnt something new or got reminded of something useful.

This is the end of this episode of encouraging and boosting tweets.
The curious case of the Empty Statement
Tags: javascript
Published: 2020-09-01 22:58:24

Did you know there's such a thing as an <strong>empty statement</strong> in JavaScript? It's true! An empty statement is denoted by a semicolon:
```js
;
```

Here are some examples of using empty statements IRL:
```js
for (let i = 0; i < arr.length; i++) ;
```
```js
if (true) ;
```

In JavaScript, a semicolon is used to terminate a statement. If no actual statement precedes the semicolon, the JS engine will omit executing any code where a statement would be expected. So in these 2 examples, our use of <code>;</code> in place of the expected statement is considered an empty statement and has no effect.

In searching for a use case for the empty statement, it seems to be used similarly to when empty functions are used for no operation (or "noop") scenarios (Empty functions are often used when you need to satisfy an argument to a function call without actually wanting the supplied function to do anything).

Here's an example of where it could make sense to use an empty statement (although I personally think this should be refactored to something different altogether, but just to demonstrate the potential use...):
```js
let myVar = 4;

if (myVar < 4) {
  foo();
} else if (myVar > 4) {
  bar();
} else if (myVar === 4) {
  ; // Do nothing
} else {
  throw new Error('Error!');
}
```

With this example, if we omitted the empty statement conditional then the error would be thrown (assume we don't want that), so here we're simply adding another condition to perform no action if the value of `myVar` is exactly `4`.

An empty function could be used in place of the empty statement but I suppose you save a few characters worth of memory. 😉

While the empty statement can have this kind of use, I would caution against using it since it can have some unintended consequences: 
```js
if (isReady);
  load();
```

In this example, it might look like the `load` function will be called only if `isReady` is truthy, but since we're using an empty statement, the value of `isReady` is irrelevant and `load` will always be called.

So if you do employ the use of empty statements, it would be ideal to call out its intentional use with a comment so as not to trip up others or yourself.

Have you seen a good use case where empty statements are handy? If so, please share!

<h3>Resources</h3>
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/Empty" target="_blank">MDN Article on Empty Statement</a>

----------
Check out more #JSBits at my blog, [jsbits-yo.com](http://jsbits-yo.com/). Or follow me on [Twitter](https://twitter.com/JS_Bits_Bill)!
Offizieller Kianao® Onlineshop
Tags: kianao, kianaofamily, baby, babykleidung
Published: 2020-09-01 22:47:02

Premium-Kinderbekleidung, Spielzeug, Babyschalen und Zubehör - unübertroffen von der Natur und unvergleichlich schön. Designed to be healthy Kianao.com.
So you like to create npm packages 📦📦 ?
Tags: showdev, javascript, node, npm
Published: 2020-09-01 22:20:39

Hi everyone 👋


I'm writing this little post to tell you about a project I'm working on, 
I've been playing with the NodeJs API for two years now and it's really cool !! I try my best to be as productive as possible and as soon as I have an idea for a product, package, etc. I try to create it, but here is my problem:

**Duplicate project configuration is annoying !**.

So if you are like me and you use Node other than to launch an HTTP server with Express (I'm kidding, I like Express a lot) you must have realized that many projects often have the same structure, the same tools with the same configuration and it is painful to recover this structure and adapt it to a new project?

If not, then this article is not for you sorry 😭 😭

Otherwise, you propably been in my situation, which is why I decided to create this small package, the idea is very simple I have a basic structure that I reproduce each time I decide to create an npm package there it is:

- ✨[luctst-cli repo](https://github.com/luctst/luctst-cli)✨

> **Note:** Do not hesitate to like this repo 🙃

So I created a small cli package that will allow you to copy and paste this structure and adapt it according to your needs, this allows you to quickly start a new project with pre-configured tools like:

- Eslint (with Airbnb configuration).
- Prettier.
- TravisCI.
- Ava to perform tests.
- Configuration of a `.gitignore` file according to the language used.
- Configured npm scripts.
- Etc ...

If you want more info on what you can do with this package I let the link of the doc and also the GitHub repository on which you can, of course, contribute if you have an idea or even submit an issue.

- 📦 [npm package](https://www.npmjs.com/package/luctst-cli) 📦
- ✨ [luctst-cli repo](https://github.com/luctst/luctst-cli) ✨

Thank you for your attention, 

my name is Lucas I'm a full stack developer I mainly use Js 💛 and I really love open source feel free to look at my work and follow me, thank you 🙂

- 👨‍💻 [github profile](https://github.com/luctst) 🧑‍💻
- 🖍 [dev.to profile](https://dev.to/luctst) 🖍
Day 208 : Hook
Tags: hiphop, code, coding, lifelongdev
Published: 2020-09-01 21:45:25

_liner notes_:
- Professional : Worked on getting my Web Components into a React app. Not only that, but I wanted to put the application into a place online that I could then share/embed in my blog post. Tried a few places and for whatever reason, the React projects were throwing errors. I tried to troubleshoot, but gave up because I was able to get everything working in Glitch. Now I just have to hook up all the references for the Web Components so that React knows what to do with them. It looks as though there may be 2 ways of doing it, one being with Hooks, so I'll probably write up both ways in the blog.

- Personal : Really don't remember what I did last night. haha I got to my parking spot, ate, watched a presentation on live streaming with some live coding and probably fell asleep. haha.

![Sunset in a valley of The Coromandel, New Zealand with green mountains and lush vegetation](https://dev-to-uploads.s3.amazonaws.com/i/7qfr652xsvpqlivwdwd5.png)

About to have a friend help me record a promo video for work. Should be pretty quick. Then I'll edit the clips together, add some voice over and then turn it in to see if it looks okay. Speaking of editing, I want to get the recording of the radio show done and submitted to the station tonight. That'll probably be all for me.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube cgxhVXzK5ao %}
Day 47: Push Notifications
Tags: 100daysofcode, pwa
Published: 2020-09-01 16:13:48

I covered push notifications in progressive web apps, today. Here is the summary.
- Great push notifications should be timely (Time sensitive), relevant and precise.

NB: Always ask to push notifications, after the user interacts with your page.
- You can send push notification using either a [notification](https://notifications.spec.whatwg.org/) API or [Push API](https://www.w3.org/TR/push-api/).

- Notifications can either be persistant or non-persistant based on whether they are associated with a service worker.
Creating a non-persistant application.

```javascript
let n = new Notification('Title', {options})
```
Options can be a wide range of properties starting with the body.

```javascript
let n = new Notification('Title', {
 body: 'body text';
})
```
Some common option include: badge, icon, image, tag(groups notifications), renotify(boolean),actions, sound etc

Creating a Persistent Notification
```javascript
self.addEventlisner('notificationclick', evt => { })
```
Overview of Push API 
* Configuring Push Entails serving a page with a VAPID key, checking for an existing subscription using `pushManager.getSubscription()`, asking for permissions from the user, if granted subscribing using `pushManager.subscribe()`
```javascript
//subscribe a user
sw.pushManager
  .subscribe({
    userVisibleOnly: true,
    applicationServerKey:
      urlBase64ToUint8Array(publicKey)//user declared function to convert Url Base64 to Uint8 Array.
  })
  .then(subscription => { });
```
And finally sending  a subscription to the server.
* Sending a Message
To send a message you have to generate an encrypted message. You can use [web-push-libs](https://www.npmjs.com/package/web-push). Send the message to the web server and then from the web server to the browser.
* Receiving a message
To receive the message you have to handle and listen to the push event
```javascript
self.addEventListener('push', evt => { })
```
Then call show notifications using `self.register.showNotification` in the service worker and handle notification click events. It's a good practice to start with closing the notification using `Notification.close()`.

That is all for today. As ways looking forward to the building part of it.
-Day 47_
WFH WTF?
Tags: productivity, mentalhealth, career
Published: 2020-09-01 21:36:21


For a good portion of the beginning of the 21st century, technologists have tried painting a utopian picture of how remote work would revolutionize commerce and daily life.

I have been fortunate enough to work remotely for several years now. For the longest time I experienced comments and questions like: "It must be nice not having to work in an office" and "How do you get any work done?"

2020 has been a testing ground for what Work From Home (WFH) could look like. Especially for many who never really had an opportunity or choice to do so. This year, more people have worked from home than at any point in history.

In hindsight those comments and questions sound very different because of these lived experiences.

What are we beginning to see? I am noticing a trend amongst workers, something that I kept running into over the years: burnout.

I didn't have clear boundaries between work and the rest of my life.

I allowed myself to work hours that left little to no time for activities that would help me rest and rejuvenate.

Found myself believing that needing to work certain hours was a reflection of commitment and self worth.

My health suffered at time. Especially my mental health.

Do you think that remote work is living up to the promise sold to us by technology and productivity enthusiasts?

What has been your experience with burnout?
Run rclone as service on  Windows - C# - DIY
Published: 2020-09-01 21:18:15

[Rclone](https://rclone.org/) is the great tool to work with the cloud storage from various providers. While it works as service on Linux, you need to use interactive shell to make it work on Windows systems. There are different solutions which involve [3rd party tools](https://www.coretechnologies.com/products/AlwaysUp/Apps/InstallRcloneAsWindowsService.html#:~:text=%20To%20install%20rclone%20as%20a%20Windows%20Service,full%20path%20to%20the%20rclone%20executable%2C...%20More%20) to make it work as service but they do not provide the same flexibility as service can provide.

VirtIOGroove open sourced quick solution in C# how to make it work as service on Windows - (indeed 2.5 hours ferry travel from Tsawwassen to Nanaimo) - on [github](https://github.com/virtiogroove/RcloneWrapper)
It is quick workable draft, with plenty of space to improve - any suggestions are welcome!

####Let us take a look what we need:
1. [Visual Studio](https://visualstudio.microsoft.com/vs/community/) (Community Edition works fine)
2. [.Net Framework 4.8](https://dotnet.microsoft.com/download/dotnet-framework/net48)
3. [WinFSP](http://www.secfs.net/winfsp/)
4. [rclone](https://rclone.org/downloads/)
5. Some patience to read this post to the end :)

#### Binary Installation, Configuration, Service Compilation and Creation
* Install software from steps 1 to 3 in previous section

* Extract `rclone` and add path to folder where `rclone` was extracted  to system `%PATH%`

* run `rclone config` and configure cloud connection. Please see rclone [documentation](https://rclone.org/docs/) for details.

* Clone [github repository](https://github.com/virtiogroove/RcloneWrapper)

* Navigate to cloned github folder and import Solution to Visual Studio

* Example in *Service1.cs* covers mounting Azure blob storage using SAS - example assumes , that you already configured *rclone* to use Azure. You can configure `rclone` with different cloud provider and replace `cParams` value 

 `protected override void OnStart(string[] args)
        {
            WriteToFile("Service started " + DateTime.Now);
            timer.Elapsed += new ElapsedEventHandler(OnElapsedTime);
            timer.Interval = 20000;
            timer.Enabled = true;
            var cParams = "mount blob:poc c:\\Azure";
            string filename = "rclone.exe";
            try
            {
                var proc = System.Diagnostics.Process.Start(filename, cParams);
           }
            catch {
                WriteToFile("Can not start services");
            }` 
* Once you are ok with parameters rebuild project.

* You can now use `c:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe`- or whatever version you have from 4.x

`c:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe drive:\<Path>\<to>\bin\Debug\RcloneWrapper.exe`

* Run *services.msc* and change Logon Account to user, under which you ran `rclone config`
Github Action for Auto Publishing My Articles from Hugo blog to Medium
Tags: actionshackathon
Published: 2020-09-01 18:11:14

[Instructions]: # (To submit to the GitHub Actions x DEV Hackathon, please fill out all sections.)


### My Workflow
[Note]: # (Make sure to include the name of your GitHub Action and share where it's being used!)
Name: hugo-to-medium


### Submission Category: 

[Note]: # (Maintainer Must-Haves, DIY Deployments, Interesting IoT, Phone Friendly, or Wacky Wildcards)
DIY Deployments

### Yaml File or Link to Code

[Note]: # (Our markdown editor supports pretty embeds. Try this syntax: `{% github link_to_your_repo %}` to share a GitHub repository)
{% github https://github.com/pr4k/hugo-to-medium %}

[Market Place](https://github.com/marketplace/actions/hugo-to-medium)


### Additional Resources / Info

[Note:] # (Be sure to link to any open source projects that are using your workflow!)

[Note]: # (Be sure to include the DEV usernames of your collaborators, if any. )

[Reminder]: # (Submissions are due on September 12th (11:59 PM PDT) and winners will be announced on September 23!)
Show/hide  android soft keyboard with kotlin - 31 seconds of code.
Tags: android, kotlin
Published: 2020-09-01 20:23:37

#####What you will need and use.

   * `InputMethodManager` - The [InputMethodManager](https://developer.android.com/reference/android/view/inputmethod/InputMethodManager) is a client side API that exists in each application context and manages interactions.
   * `View` - Currently focused view.
   * `Context`
   * `windowToken` -Get windowToken from the window containing your currently focused view.


#####Showing the keyboard ⬆

```kotlin
private fun View.showKeyboard() {
        val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
        imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0)
    }

```

#####Hiding the keyboard ⬇

```kotlin
private fun View.hideKeyboard() {
        val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
        imm.hideSoftInputFromWindow(windowToken, 0)
    }
```

#####Have a question don't hesitate to ask.Have a good day😊or night.`hideKeyboard()// end of post ,share away.`