teleren/devto huggingface dataset:
Thoughts on The Social Dilemma
Tags: discuss, privacy, watercooler, ethics
Published: 2020-09-15 02:10:43

If you ever felt like you're addicted to social media or you're just unhappy with how much time you spend on social media, this documentary is for you:

{% youtube uaaC57tcci0 %}

The Social Dilemma touches upon several topics concerning problems with social media as we know it today reaching from the effects it has on kids and preetens to how it is shaping society at large - think about the influence on elections or the ever growing gap between supporters of opposing political parties. On top of that it also explains why the networks enforce this behaviour - all by interviewing (former) engineers and employees of Google, Facebook & co.

Here are some of my thoughts:

#### The extend of the problem
Even though I work in the industry, and I know how that the social networks try to keep you on their sites as long as possible (think about why instagram stories are only available 24h), **I wasn't aware of the extend of those algorithms**. Somehow this was a real eye opener and I cannot get this thought out of my head while scrolling through my feeds.

#### Effect on kids and teens
Showing the effects of social media use on preteens with a graph that showed that rate of sucides in preteens increased a grueling 150% since 2010 left me in shock. I myself sometimes get sucked into the always beautiful faces on instagram, getting insecure about myself but I know this is not reality. I cannot imagine being their age and their idols are these picture perfect influencer. I am very much in favor of the bill that was just proposed in the UK, which suggests to mark photoshopped images as such ([source](https://www.independent.co.uk/life-style/luke-evans-mp-photoshop-images-social-media-adverts-b436112.html) )

#### Dividing society
Due to the social media reinforcement bubble, everyone sees there own opinion reinforced in social networks, making opposing views unbelieveable and hence eradicating healthy discussion. It even goes so far that different truths are being created.
When asked what the immediate dangers are resulting from this, one interviewee answered: "civil war". This was another part of the movie that left me shocked, but not surprised after seeing demonstrations all around the world getting more violent.

---

I am curious to hear what you think:
**What are your thoughts on the documentary?**
**What are your ideas on how to solve these problems?**

PS: The [movie's website](https://www.thesocialdilemma.com/) also offers tips and further resources on how to deal with the harms of exploitative tech. My favourite short hack: **Remove notifications** - I only allow email and a few other apps to directly notify me, and it has increased my productivity immensly.
Release @nxtend/ionic-react 3.1.0
Tags: ionic, react, nx, webdev
Published: 2020-09-15 02:03:11

---
published: true
title: 'Release @nxtend/ionic-react 3.1.0'
cover_image:
description:
tags: ionic, react, nx, webdev
series:
canonical_url: https://nxtend.dev/blog/ionic-react-3.1.0/
---

This is a pretty typical maintenance release with a few package updates. The most notable change is `@testing-library/cypress` which introduces some breaking changes which you can read about below, or in the [release notes](https://github.com/testing-library/cypress-testing-library/releases/tag/v7.0.0).

# Features

- update `@nxtend/capacitor` to 1.1.0
- update Ionic to 5.3.2
- update Ionicons to 5.1.2
- update `@testing-library/cypress` to 7.0.0
- update `@testing-library/jest-dom` to 5.11.4
- update `@testing-library/user-event` to 12.1.5

# BREAKING CHANGES

- `@testing-library/cypress`
  - `get` and `query` queries (which have been deprecated) have now been removed. Use `find` queries only.
  - **TS**: TypeScript type definitions have been brought into this module and no longer needs to be referenced from DefinitelyTyped

For information on upgrading the plugin, visit the [nxtend upgrades documentation](https://nxtend.dev/docs/nxtend/upgrades).
A High Cost-effective Embedded AI Face-Recognition Solution.
Published: 2020-09-15 01:32:47

RT-Thread running on the RISC-V dual-core 64-bit high-performance processor provides a high cost-effective #embedded #AI face-recognition solution.

Detects human faces by matching images with models, which can be used in object recognition and intelligent monitoring, etc.

Guess which board is taken for this solution? 


**RT-Thread Contact Info:**

 [Website](https://www.rt-thread.io/)  |  [Github](https://github.com/RT-Thread)  | [Twitter](https://twitter.com/rt_thread) |  [Facebook](https://www.facebook.com/RT-Thread-IoT-OS-110395723808463)   |   [Youtube](https://www.youtube.com/channel/UCdDHtIfSYPq4002r27ffqPw
)
Day 216: Do The Reggay
Tags: hiphop, code, coding, lifelongdev
Published: 2020-09-15 01:10:33

_liner notes_:
- Saturday : Damn...got a text from my co-host about Frederick "Toots" Hibbert passed away on Friday. He and his group members helped give Reggae its name. We paid homage to him on the show. The recording of this week's show is at https://kNOwBETTERHIPHOP.com

![Frederick "Toots" Hibbert singing with the words Sep 12th 2020, Do The Reggay (RIP Frederick "Toots" Hibbert)](https://dev-to-uploads.s3.amazonaws.com/i/waaiaqz3s0llgxbqpoxi.jpg)

- Sunday : Put together the pieces I'll need to put the rails up on my van's roof. Did some post radio show work. I worked out a way in my side project that if the event is not online and happening in the real world, it will load a map and the corresponding library to show it. If it's online, then the map and the library won't be loaded. Pretty cool optimization. Also got a chance to participate in the speakers' dinner for CityJS. Had a really good time. It was in 2 parts to try and accommodate for all the speakers' locations. I attended both. Met some cool people doing amazing stuff. Ended the night with karaoke. haha Good times. 

- Professional : Got up super early so that I could attend CityJS. Saw a lot of great talks and met with a bunch of people that stopped by our virtual sponsor table. People from Africa, Europe, Asia and the US. Also got to see part of my team do the first live stream of a new show we'll be doing. Had a meeting with my manager. I did a lot of video watching and chats today. haha

- Personal : Got some help from my father with putting the rails on my van's roof. Went pretty quick because I put together the pieces on Sunday. Also took measurements for the other pieces I need to order so I can get the solar panels up there. Good thing it was done quick because it started to rain right afterwards.

![View from a wooden dock with some water, then a field and some buildings in the distance with mountains in the background.](https://dev-to-uploads.s3.amazonaws.com/i/glvx0d2gtou57krrdgf5.png)

The conference was an all day affair. Looking forward to it again tomorrow. Super tired though. haha Now that I have the measurement of the cross beams for the rails and solar panels, I'll be placing the order for the hardware. After that, going to continue working on my side project. I want to get the event page worked out.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube 9eM3UlP4VNw %}
Windows Terminal Context Menu - How To Setup
Tags: windowsterminal, windows10
Published: 2020-09-15 01:08:49

# [DEPRECATED - Windows Terminal Context Menu is Added in the core when installing windows terminal]
When I heard about The new [Windows Terminal](https://www.microsoft.com/en-ph/p/windows-terminal/9n0dx20hk701) I was mind Blown because of how beautiful it is to customize your own terminal window.

<img src="https://github.com/MisterJ936/Explorer-Context-Menu-Integration-for-windows-terminal/blob/master/images/yzavvq4we0ao5akst1d2.jpg?raw=true" />

Terminals are one tool most programmers use to automatically generate something or build something. So having this kind of terminal is awesome.

After Downloading the terminal there is something missing. And that is opening the Windows Terminal in the context menu.

What A context menu is when you right-click on a directory and an option will show up. Something like this image. This is really a good feature to have because you can just easily open your project by doing it.

<img src="https://github.com/MisterJ936/Explorer-Context-Menu-Integration-for-windows-terminal/blob/master/images/1.png?raw=true" />

And so because of that, I created a simple [PROJECT](https://github.com/MisterJ936/Explorer-Context-Menu-Integration-for-windows-terminal) that is easy and simple to setup.

So, to set up this,

## Important
You should have installed the Windows Terminal on your system. If you haven't installed yet, you can go to these options to download the app:
- [Microsoft Store](https://aka.ms/terminal) - you directly download it on the Microsoft Store.
- [Terminal GitHub](https://github.com/microsoft/terminal#other-install-methods) - you can read more here Other install methods


> 👉 Note: Windows Terminal requires Windows 10 1903 (build 18362) or later


## Download the latest release [HERE](https://github.com/MisterJ936/Explorer-Context-Menu-Integration-for-windows-terminal/files/5212523/Source_0.0.1.zip)

Follow This Steps After Downloading, and will configure everything for you.

## HOW TO INSTALL THE CONTEXT MENU

### Install

#### for ZIP File - [Download](https://github.com/BroJenuel/Explorer-Context-Menu-Integration-for-windows-terminal/files/5693471/WTerminalCM_0.2.3.zip)
Extract the Zip File Run the `Install.bat` to automatically configure the context menu for you. 

#### for EXE File - [Download](https://github.com/BroJenuel/Explorer-Context-Menu-Integration-for-windows-terminal/files/5693472/WTContextMenu.zip)
Just Extract and run the exe file to automatically configure the context menu for you. 

#### After Insalling(Optional)  
You can edit The settings, so that when ever you click new tab it will always open in the same directory.

To open settings, open Windows Terminal and go to settings and add this just inside the default:

```lang-js
{
...
  "profiles": {
          "defaults": {
              ...
              "startingDirectory": "."
              ...
          },
          ...
    }
}
```

# Have a Nise Day! 😄👍👊

[Give me Coffee ☕](https://www.buymeacoffee.com/BroJenuel) hehe 😁😘👌
I failed the spam report captcha on dev.to (20+ times)
Tags: watercooler
Published: 2020-09-15 01:06:28

I saw several spam posts today on dev.to and tried to report. Unfortunately, I failed the captcha like 20 times and finally gave up.

It makes me think though, what is the priority here? We can post without any captcha, but cannot report spam behavior without going through hoops.

On another hand, asking a human to prove himself a human while using a flawed script can be really annoying and frustrating.
Testing concerns in rails
Tags: rails, testing
Published: 2020-09-15 00:56:47

Rails's ActiveSupport::Concern can be a useful place to put code that needs to be shared across classes. It is also a way to implement multiple inheritance.

When it comes to testing a concern, we want to be testing the behaviour instead of the class which implements the concern, as it can be shared among multiple classes.

One of my preferred way to test a concern is to use a dummy class which inherits from ActiveRecord,it gives me confidence that i am testing against my actual ActiveRecord models.

```ruby
module Personable
  extend ActiveSupport::Concern

  def full_name
    "#{first_name} #{last_name}"
  end
end

require 'rails_helper'

RSpec.describe Personable do
  it 'has a full name' do
    person = DummyPerson.new(first_name: 'yc', last_name: 'yap')
    expect(person.full_name).to eq 'yc yap'
  end
end

class DummyPerson < ActiveRecord::Base
  self.table_name = 'users'

  include Personable
end
```
It is not about code
Tags: metaprogramming
Published: 2020-09-14 21:52:03

[TL;DR](#conclusion)

## Intro

There is some time since I started to use dev.to and I have tried to write something that I feel meaningful here many times and never could because technology is important but I didn't feel that I could make a difference by showing some code.

So right now I want to talk a bit about software development as a whole because the next modern tech will not solve your problem (mostly).

## History

I have started to work with software development in 2010, and in the last 10 years I have worked with shell scripts, pure PHP, Zend, Yii, Symfony, and Laravel, python, Django, spark, TensorFlow, sci-kit learn, Objective-C, Swift, Java for Android, Cordova, Flutter, Xamarin, Docker, Kubernetes, AWS, etc, and the technology evolve to solve new problems, but the main problem that I had to deal all the time was:

**1  - The business rules were not clear enough**

You start to work with something that was requested for and in the middle of the process everything changes, something wasn't considered, some business rule is not well defined and will generate bugs in the future.

**2 - The code is a mess**

You need to work with a code that is not yours and it is a mess, you spend much more time trying to understand what the heck is that

**3 - People that do not understand code, saying to you how to code, or giving deadlines that aren't feasible**

Sometimes it happens

**None of these problems are really related to the technology itself**, maybe if you work on Google or Facebook, you will face other kinds of main problems but well, you got it.

##Conclusion <a name="conclusion"></a>

Moving the frontend to a SPA, creating APIs to everything, and putting your project to run on Kubernetes won't solve any problem if you are not solving the problems that these technologies were created to solve.
Currency Converter Using React JS
Tags: react, javascript, html, css
Published: 2020-09-15 00:18:05

###Currency convertor made by using open source Exchange rate API.
It has real time exchange support of upto 33 countries.

[**Github**] : https://github.com/stephin007/currencyconvertor
It would be great if you could 🌟 the repository.

[**Link**] : https://currencyconvertor.stephinreji.me/
How to use Github
Published: 2020-09-15 00:04:39

Hey, everyone.

I was wondering if someone knows any videos about how to use github.  I have a github account and I know how to use put in repositories in github, but I still don't know the basics of github, how to do version control or how to access the terminal of my computer when entering programming files into github.  Does anyone know any links to videos that can help me understand github a bit better?
Settings Sync is Built Into Visual Studio Code Now
Tags: vscode, productivity, javascript
Published: 2020-09-15 13:35:11

---
title: Settings Sync is Built Into Visual Studio Code Now
published: true
date: 15/09/2020
tags: vscode, productivity, javascript
canonical_url: https://www.jamesqquick.com/blog/settings-sync-in-visual-studio-code
cover_image: https://cdn.sanity.io/images/rx426fbd/production/8f27ba6ab77d57cb4133f81f0c12384e81a91ae7-1920x1080.png
---
{% youtube 3dsq39DEgZ8 %}

Up until recently, synchronizing your settings across multiple instances of VS Code required you to download a 3rd party extension. Well, you no longer have to download a separate extension. Settings Sync is built into VS Code, and it's awesome!

> Want to learn everything you need to know about VS Code? Check out the [Learn VS Code course](https://www.udemy.com/course/learn-visual-studio-code/)!

## Setup

VS Code has made this process as easy as possible to set up. If you open up your settings menu, you'll now see a big button that says "Turn on Settings Sync". Click that.

 ![](https://cdn.sanity.io/images/rx426fbd/production/e433e2f40e15efcdf347823a4a5562e3c232bd3b-2620x820.png)

After that, you'll be prompted with what exactly you want to sync. Most likely, you'll choose to sync everything, but that's up to you.

 ![](https://cdn.sanity.io/images/rx426fbd/production/2611391b529f9320b8328c78d3eb41bfe038bc6e-1436x422.png)

You'll need to log in with either a Microsoft or Github. Are those one and the same now that Microsoft bought Github 🤣?

 ![](https://cdn.sanity.io/images/rx426fbd/production/06c332f494ad079f2a93767c1f1f8148a105b1ac-1446x262.png)

Then...BOOM! VS Code does some magic behind the scenes!

## Check the Sync Details

You can check the status of your latest syncs by opening the command palette and running the `Settings Sync: Show Synced Data` command.

 ![](https://cdn.sanity.io/images/rx426fbd/production/593d84a7c0121d8e5c7c50b9230b8444948b9997-1008x1776.png)
## Real-Time Sync

If you get this set up on two different instances of VS Code you can see that changing settings on one will update the settings on another in real-time! I tested this out by running two instances of VS Code on the same computer (one is the stable version and one is the insider's edition)

 ![](https://cdn.sanity.io/images/rx426fbd/production/0831bb872c2ba8020a32d667aad7f23b74ee4490-1916x1071.gif)
How to email error logs to developer on Yii2 apps
Tags: yii2, email, debug
Published: 2020-09-15 00:00:00

---
title: How to email error logs to developer on Yii2 apps
date: 13-09-2020
canonical_url: https://glpzzz.dev/2020/09/15/yii2-email-error-logs.html
tags: yii2,email,debug
published: true
---

Logging is a very important feature of the application. It let's you know what is happening in every moment. By default, Yii2 basic and advanced application have just a [\yii\log\FileTarget](https://www.yiiframework.com/doc/api/2.0/yii-log-filetarget) target configured.

To receive emails with messages from the app, setup the log component to email (or Telegram, or slack) transport instead (or besides) of file transport:

```
'components' => [
    // ...
    'log' => [
         'targets' => [
             [
                 'class' => 'yii\log\EmailTarget',
                 'mailer' => 'mailer',
                 'levels' => ['error', 'warning'],
                 'message' => [
                     'from' => ['log@example.com'],
                     'to' => ['developer1@example.com', 'developer2@example.com'],
                     'subject' => 'Log message',
                 ],
             ],
         ],
    ],
    // ...
],
```

The [\yii\log\EmailTarget](https://www.yiiframework.com/doc/api/2.0/yii-log-emailtarget) component is another way to log  messages, in this case emailing them via the `mailer` component of the application as specified on the `mailer` attribute of `EmailTarget` configuration. Note that you can also specify messages properties and which levels of messages should be the sent trough this target.

If you want to receive messages via other platforms besides email, there are other components that represents log targets:
* Telegram: https://github.com/sergeymakinen/yii2-telegram-log
* Slack: https://github.com/sergeymakinen/yii2-slack-log

Or you can implement your own by subclassing [\yii\log\Target](https://www.yiiframework.com/doc/api/2.0/yii-log-target)
Startpages
Tags: startpages, browser, internet, extension
Published: 2020-09-14 23:44:03

Startpages can be a handy way to make your browser look the part and have certain functionalities that aren't quite available in a classic startpage, such as Firefox's home page.

What motivated me to work on my own was a community over at reddit ([r/startpages](https://www.reddit.com/r/startpages)) which are actively making their own startpages and sharing them to be used by other people.

Well, I'm proud to say that I've made three of these and you can find them in my [Github repository](https://github.com/grtcdr/startpages), you can use them as extensions too!

Here's what they look like:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/qoqihz6fsjnfk2fdlpyc.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/z4sflh80xnlnw9q7ywsv.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/l9mq7y2aetl8y0ugy6pk.png)
Introduction About me on Dev!
Tags: python, webdev, node, typescript
Published: 2020-09-14 23:01:00

Hi, there;

My name is juandisay. I'm Fullstack Developer, with Python and NodeJs technology.

Part time job as DevOps. Saltstack and Visible player.

Recent Jobs
https://juandisay.org

From me,
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/3waogitsvlt29hbjpsvf.jpg)
Rick Roll Action
Tags: actionshackathon, opensource, github, codenewbie
Published: 2020-09-14 22:50:37

### My Workflow

Action that turns any package.json's start into a RickRoll using [this amazing bash script](https://github.com/keroserene/rickrollrc)

It runs directly into the terminal, also with music :smile:


### Submission Category: 

Wacky Wildcards


### Yaml File or Link to Code

{% github https://github.com/alexnaiman/Rick-Roll-Action %}


### Additional Resources / Info

Github Demo App [Here](https://github.com/alexnaiman/test-rick-roll)

{% youtube HQsNnRIruy8 %}
ShadowGas
Tags: blockchain, javascript, solidity, node
Published: 2020-09-14 22:45:48

Began working on a "Gas Station" contract that will utilize 1inch exchange's Chi Token in order to beat the rising gas prices.

My plan for it is to use it as a storage for chi token's, you will be able to mint and transfer the tokens as well. It should track the gas prices at time of minting and by using the price tracker mapping you will be able to trade with the minted tokens via exchanges that support the token. Retrieve tokens purchased at specified gas price, sell that amount at a higher price since the price during minting and the exchange prices differ. 

(https://1inch.exchange/#/faq/everything-you-wanted-to-know-about-chi-gastoken)

I may also add in a "Gas Proxy" that will be able to interact with other contracts utilizing the gas tokens.

Open to any and all feedback, contribution, and collaboration!

https://github.com/TraylorBoy/ShadowGas
SpeakeasyJS – a meetup for 🥼 mad science, 🧙‍♂️ hacking, and 🧪 experiments
Tags: javascript, webdev, typescript, deno
Published: 2020-09-14 22:12:22

Hi JavaScript people! 👋 I started a remote JS meetup called SpeakeasyJS. It's a meetup for 🥼 mad science, 🧙‍♂️ hacking, and 🧪 experiments.  

I have a set of amazing speakers lined up in the coming weeks, including:

- Ryan Dahl (creator of Node.js and Deno)
- Mikeal Rogers (request, node.js core)
- Fred K Schott (Pika, Snowpack)
- Mathius Buus (Hypercore protocol, Dat protocol)
- Dominic Tarr (secure scuttlebutt, through, pull streams)
- Mikola Lysenko (regl, glsify, ndarray)
- Rod Vagg (through2, bl, node.js core)
- James Halliday a.k.a. substack (browserify, tape, 100s of npm packages)

Come hang out virtually with us on Friday at 4pm Pacific Time each week.

https://speakeasyjs.com/
Privacy vs Protection and Prevention
Tags: security
Published: 2020-09-14 22:02:54

#A College in Michigan introduces a new policy
Albion College implemented a new application called "Aura" for students and faculty to use.It tracks Coronavirus testing and it uses contact tracing. This system is using student's locations to prevent the spread of the virus

#The catch
If it was up to you, would you implement this tracking technology? I'm not sure I could willingly sacrifice the privacy of students and staff for a potential solution. Once that data is out there, it's out there for good. I believe that using this application is most definitely an invasion of privacy.

#Why Aura?
I would assume Albion College picked this route to mitigate cases at their school, but what about in the future? Will they get rid of the application or keep it for tracking student locations? To me, this sounds a lot like a way to have students on the map at all times.

##Here is my video on Covid risk diagrams! Enjoy!

{% youtube utkEquTGuKA %}