teleren/devto huggingface dataset:
Avoid KDE Plasma etc to ask you to enter password for Wi-Fi
Tags: linux, tutorial
Published: 2021-01-02 23:51:13

## Summary

I added another user and KDE Plasma keeps asking to enter the password every time I log in with the user. Amending.

## The amendment

```
/usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy
==========
(Omitting)
<action id="org.freedesktop.NetworkManager.wifi.scan">
<defaults>
  <allow_any>auth_admin</allow_any>    <==== Change the value to "yes"
(Omitting)
<action id="org.freedesktop.NetworkManager.network-control">
(Omitting)
  <defaults>
    <allow_any>auth_admin</allow_any>    <==== Change the value to "yes"
(Omitting)
```

## References

- [Is there any way to prevent PolKit from asking for my root password when adding a new Wi-Fi network in Gnome3?](https://www.reddit.com/r/openSUSE/comments/5pnaat/is_there_any_way_to_prevent_polkit_from_asking/)

- [Actions - Polkit](https://wiki.archlinux.org/index.php/Polkit#Actions)
Copy & Paste from Vim to External
Tags: vim, archlinux
Published: 2021-01-02 23:35:22

I was trying to copy and paste something from Vim to the browser and I honestly forgot how to do it because it's been awhile since I had to do it and also I reinstalled my Arch Linux so I gave up on the xclip and the special commands to copy.

My quick solution: open a new terminal and 

cat .thefilename

then copy directly from the terminal and do your simple paste to your external app.

Just a quick tip
PixAI DevLog: Deployment
Tags: dohackathon, react, ai
Published: 2021-01-02 23:22:40

Continuing from my last post I figured how to secure my api keys with environment variables in react and on the digital ocean app platform( much thanks to {% comment 19peo %}

The steps are as follows:
* First I created a .env file in root of my project
* edited the .env with my keys prefixed with REACT_APP:
```
REACT_APP_API_KEY1 = value;
REACT_APP_API_KEY2 = value;
```
*Then reference them where needed with 
``` 
const key = process.env.REACT_APP_API_KEY1;

```
* Lastly specify the keys in the environment variable option on the digital ocean app platform.(don't forget to click encrypt option😉)

Feels kinda strange documenting like this but it's starting to grow on me. Anyway, here's the app link: 

[PixAI](https://pix-ai-uz5ei.ondigitalocean.app/)

Still, little details like loading overlay and some css are yet to be added  but its functional and "responsive", Hope you enjoy it.

Tomorrow should be the last part of the series, stay tuned.

Later ✌✌.
The Sylar Project V 1.0.0
Tags: dohackathon, webdev, mentalhealth
Published: 2021-01-02 22:59:26

The unpolished MVP for The Sylar Project is now complete! Since we do have until the 10th for the hackathon I'm going to do a bit more polishing on the UI before making the final post for submission but it may well be the next post I make on this. Super excited to already have this up and working. I'm currently looking at domains since this is absolutely at a point where it deserves one. For the first time, I did not buy a domain for a side project before finishing it. 😅

So what's new on this one? It got a nice styling upgrade, I love tailwind UI which let me quickly (minutes the time spent figuring out what I liked) create the UI for this. I've enjoyed using Tailwind quite a bit for this and not worrying about writing CSS from scratch. 

I now have two serverless functions running - one for getting all the resources and one for accepting new resources that will be sent to my Airtable backend. Once I approve it it will appear in the database. Due to the nature of these resources, I find myself not putting too much faith in trolls not being trolls. 

I've been diving deep into React Context, I'm pretty sure there are improvements that can be made into the way I implemented it and I'm hoping to explore that a bit post MVP. I like the different hooks I don't use as much that I've been able to use here, like the useReducer for the form as well as useRef for the outside clicks on the dropdown. 

Check out the current implementation of the site below! This is open source feel free to take a look at some open issues or fork this to create a version for your country or local community. You can do so easily with the deploy to Digital Ocean button in the readme! 

https://github.com/Rahat-ch/The_Sylar_Project
https://the-sylar-project-6avzk.ondigitalocean.app/
See All Raw SQL queries in django
Tags: django, python, sql
Published: 2021-01-02 22:49:22

How to see all RAW SQL queries in django.
There is one nice option to do that. 

## Server Logs 

Change the logging level to DEBUG.
you can add this small snippet in settings.py:

```python

if DEBUG:
    import logging
    l = logging.getLogger('django.db.backends')
    l.setLevel(logging.DEBUG)
    l.addHandler(logging.StreamHandler())

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'handlers': {
        'console': {
            'level': 'DEBUG',
            'class': 'logging.StreamHandler',
        },
    },
    'loggers': {
        'django': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': True,
        },
    },
}
```

Then inside the views or tests or any other file please add change of debug level:
```python
import logging

l = logging.getLogger('django.db.backends')
l.setLevel(logging.DEBUG)
l.addHandler(logging.StreamHandler())
```
or even add that to settings.py to have it globally:
```python

if DEBUG:
    import logging
    l = logging.getLogger('django.db.backends')
    l.setLevel(logging.DEBUG)
    l.addHandler(logging.StreamHandler())

```

Then observe the logs of your up and running server :


![queryRawSql](https://dev-to-uploads.s3.amazonaws.com/i/e1v05naxmmmyz6pnaary.png)
 

## Queryset  query param
```python
python manage.py shell

from model import ExampleModel
queryset = ExampleModel.objects.all()
print(queryset.query)
or
queryset.raw
```
Fantasy Hockey Taught Me To Not Take Things So Seriously
Tags: watercooler
Published: 2021-01-03 15:23:57

---
title: Fantasy Hockey Taught Me To Not Take Things So Seriously
published: true
date: 2021-01-02 22:40:32 UTC
tags: "watercooler"
canonical_url: https://martincartledge.io/fantasy-hockey-taught-me-to-not-take-things-so-seriously/
---

![frozen lake](https://i.imgur.com/51pjkks.jpg)

I was never one of those kids that _enjoyed_ or had much _interest_ in playing team sports. The only exception being a brief stint of flag football in the 3rd grade and street hockey in the 4th grade.

I did enjoy skateboarding for a few years too - but that was a bit different.

It was my girlfriend (now wife) that would periodically urge me to start following hockey. She said there was a lot about the sport she thought I would enjoy, even as someone who didn’t really _get_ sports for most of my life.

After a few years, I reluctantly decided to give it a shot. I was immediately hooked.

It is hard to put into words what aspects lured me in, but if I really think about it, I think I can sum it up to three things.

- Dedication to staying in shape and performing at a high level
- The ability of a group of individuals to work as a team
- The infectious energy the game injects into the audience

So, fantasy hockey? What does that have to do with anything?

By now, you can probably assume since I really started following hockey later in life, I was never a player.

Fantasy hockey was a way for me to follow the game more closey while sharing the love of the game with my closest friends.

Much to my surprise, I quickly found people took fantasy hockey as seriously as people playing the sport.

I’ll admit, I was quickly infected with this enthusiasm as well.

I participated in multiple leagues over the course of 4 years. My friend circle grew and friends of friends were introduced, it was awesome.

Last year I realized something profound about how I treated fantasy hockey.

_I focused entirely on statistics, wins, and my competition._

Now, don’t get me wrong. I see the importance of team-centric sports on multiple levels.

For me, this realization was important because it made me rethink my motivation for participating in fantasy hockey.

I thought to myself _Am I doing this for status or praise?_

For me, I clearly lost sight of the primary reason I got interested in fantasy hockey in the first place.

The _joy_ that the game of hockey gives me.

This was especially impactful for me because it reminded me that the purpose of life is to _have fun_ and spend time with the ones you love.

I’m thankful for the sport of hockey and everything that comes along with it. It not only brought a new joy into my life, but it also helped remind me to not take things so seriously.

Wins, statistics, and status are fleeting.

It’s the people on your team that matter the most.
TLS Error configuring webhooks on Stripe
Published: 2021-01-02 22:34:40

I spent hours trying to figure out why my Stripe webhook was failing  and had to piece together little bits of internet comments to figure it out. So if you're coming across the same error, hopefully this will help.

---

I was setting up [Stripe webhooks](https://stripe.com/docs/webhooks) so that when someone bought a Disco product, it would ping my server and my app could save that information to the database as a new user and a new order and then send the user a welcome email. Everything worked well on local and I pushed it live. However, when it was live, I kept getting this very unhelpful error:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/sywvg6n0qo6rv105xj51.png)

I knew it wasn't my code that was the problem, given that the error wasn't a 500 or other error that would indicate issues with my app. I didn't know what a TLS error was, but I know that TLS doesn't have to do with my code.

Long story short, the issue ended up having to do with how my SSL certs were set up. I used [this site](https://www.ssllabs.com/ssltest/analyze.html) to analyze my SSL configuration and it told me that there was a problem with my certificate chain.

To fix it, I had to go to my hosting provider. I was using Heroku, so I looked up fixing SSL issues on Heroku and after doing some more searching, I found out that instead of letting Heroku manage my certs, I was doing it myself. So I updated my certs to have Heroku manage it.

To do that, I ran the following command:

```heroku certs:auto:enable --app [APP NAME]```

Once I ran that command, I resent the Stripe hook and everything worked. Woohoo!

So if you see that error and you're not sure what to do, check your SSL configuration and maybe don't manage it yourself.
Release 0.4 - Planning
Tags: javascript, react, github
Published: 2021-01-02 22:14:54

Release 0.4 is the last release in this course, in this release, I'm supposed to do something **bigger**, something **more challenging** than the previous releases.

What is a bigger challenge for me?

In [release 0.2](https://dev.to/yuanleemidori/hacktoberfest-week-1-l9j), I had my first couple PRs to real world projects. I chose a field that I have never touched, [browser extensions](https://dev.to/yuanleemidori/hacktoberfest-week-2-to-be-continued-4hla). I even [learned some new languages and tools](https://dev.to/yuanleemidori/hacktoberfest-this-is-not-the-end-244g) and did find an issue for beginner and solve it.

In release 0.3, I learned [more react knowledge](https://dev.to/yuanleemidori/first-time-working-with-jsx-3op6) and had my [first attempt at Twitter API](https://dev.to/yuanleemidori/first-time-working-with-twitter-api-26le).

However, what should I do for a **bigger challenge** than the previous ones?

Learning a new language or starting a new field seems to be overwhelming to me, I can't be expertise in 2 weeks, and it's hard to find a practical issue in that field for a beginner like me. Therefore, I decided to *solve the issues that I couldn't solve*. In release 0.3, my PRs are both merged. However, in release 0.2, there are 1 PR got closed because I couldn't find a solution to make the requested changes, and 1 PR that is still open and wait for my changes. At that time, I didn't think I can resolve those requests. To be honestly, I don't think I can make it.

However, this should be the bigger challenge that I should take in this very last release.

My PRs both worked, but I wasn't able to make the request changes. There were 2 reasons, the unprofessional code and the lack of research/experience. What I need is to use a different method to resolve the issue. I did find the solution, but it's not qualified or not good enough. I just need to find a better and more professional solution. Since I found the solution once, I should be able to find a better one again.
24 Questions to Ask Any Prospective Coding Bootcamp (infographic)
Tags: webdev, codenewbie, beginners, education
Published: 2021-01-02 22:13:26

---
title: 24 Questions to Ask Any Prospective Coding Bootcamp (infographic)
published: true
description: Here is a list of questions to ask during your meeting with the bootcamp admissions rep.
tags: webdev, codenewbie, beginners, education
canonical_url: https://realtoughcandy.io/blog/222016/coding-bootcamp-questions
---

## **If you're thinking about attending a coding bootcamp, research is critical.**

After all, you may be spending up to $30,000 (and sometimes more!) to attend one.

While there are certainly reputable bootcamps out there, there are also many low-quality ones. Some are straight up rip-offs.

Either way, getting educated BEFORE you sign up for a coding bootcamp is the best way to avoid getting ripped off, and helps ensure your bootcamp experience is a good one.

Here is a list of questions to ask during your meeting with the bootcamp admissions rep. 

![24 Questions to Ask Any Prospective Coding Bootcamp](https://www.filepicker.io/api/file/bHLUWnyQOiiphzZa8DAR)


1. How is this bootcamp different from a Udemy course?

2. What curriculum do you use? (Is it a Udemy course?)

3. What types of projects will I build at this bootcamp? Will they be portfolio-worthy?

4. Why should I attend this bootcamp rather than Competitor X bootcamp?

5. Can I look over your curriculum?

6. Can I meet one of your instructors?

7. What’s your graduation rate?

8. Can I talk with a graduate of the program I’m interested in?

9. How will my classes be taught (in person, online, hybrid)?

10. How big are the class sizes?

11. Do you offer office hours, tutoring or any type of one-on-one assistance if I need it?

12. Can I sit in on a class?

13. How much homework am I expected to do outside of class?

14. What are the class hours?

15. What’s my total cost of attending this bootcamp?

16. Do you offer tuition assistance?

17. If you offer an ISR (income share agreement), how does that work?

18. What’s the average debt a bootcamp student graduates with?

19. Do you have any information about tuition costs and tuition payment options I can take home?

20. Do you offer job placement assistance?

21. What’s your job placement rate?

22. What should I do if I have an issue with a student, instructor or other faculty member?

23. Do you have a code of conduct? (if no: why not?)

24. What do you think could be improved at this bootcamp?
Streaming Balance 2 Power 2 lessons over Zoom
Tags: obs, streaming
Published: 2021-01-02 21:45:04

Lately, I've been helping out my friends at [B2P2](https://b2p2.eu/) to improve a bit their online physical training sessions. Previously they were using pure Zoom based camera views, and I thought that we can do something better.

## What were our problems with a simple camera view?

1. The instructor often had to turn just to show a given posture from different angles. This make the experience halting as the instructor changed postures and repeating the same instructions to emphasize the elements we should pay attention at.
1. We've missed every branding. While zoom allows a virtual background, and we could have set up an image with a logo there, it did not work in our case. Given the various postures, zoom often can can recognize the interesting parts, and would crop out too much parts of the instructors.
1. We were considering broadcasting a few sessions publicly and doing it on multiple channels at once.

## What was the basic setup?

If you ever search for streaming software, there are clearly two players on the market, both being open source solutions:

- [OBS or Open Broadcaster Software](https://obsproject.com/hu)
- [StreamLabs Obs](https://streamlabs.com/streamlabs-obs)

You can read about comparison of both. Basically, StreamLabs' version builds on top of the base OBS by providing a bit nicer GUI and a few extras in exchange for bit of a performance penalty. It has plenty of premium features (you have to pay for these), like support for multiple streams that only works with 3rd party solutions if you use pure OBS.

## How should the stream look like?

I've decided to have two scenes. A simple introductory scene with a single camera setting and a B2P2 logo, and a main scene with the logo and 2 cameras to show the instructor from two different angels at once.

## Extra apps we use

### How to get two camera views without much spend? 

We are using the mobile phone as a second camera. There are many apps to provide a video stream from the mobile to OBS. After trying out many options, I've settled with [iriun](http://iriun.com/). The majority of options provides a direct video stream that can be included into OBS. On the other hand, Iriun sets up a new webcam, and requires a driver to be installed. While the other options do not require a dedicated driver, simple video streams over WiFi lagged quite a bit behind the main camera stream. The mobile stream lagged between 1500-3000ms behind the laptop's camera, and the lag changed continuously, thus I could not simply offset it. Iriun can connect over WiFi and USB too, and even the WiFi connection lags much less compared to the simple video streams.

### How to switch between the scenes?

There are many ways how one can set up scene switching. My preferred approach is to use another mobile for this task with the [StreamControl](https://play.google.com/store/apps/details?id=dev.t4ils.obs_remote&hl=hu&gl=US) app. With StreamControl, the instructor can easily switch between the scenes at the beginning and end of the sessions.
Sebuah buku bukanlah sebuah buku tanpa ISBN
Tags: writing, productivity, indonesia, 365writings
Published: 2021-01-02 21:39:37

# Buku tentang virus untuk anak-anak

https://www.virology.ws/2018/11/20/paul-has-measles/

![measle](https://upload.wikimedia.org/wikipedia/commons/a/a5/MeaslesOsmosisPic4.jpg)

[Wikimedia Commons CC0](https://upload.wikimedia.org/wikipedia/commons/a/a5/MeaslesOsmosisPic4.jpg)

ini adalah buku gratis tentang virus untuk anak-anak. Saya sudah menyarankan penulisnya untuk menggunakan lisensi terbuka. 

# Tentang ISBN

Yang unik dari buku tersebut adalah tidak memiliki ISBN. Kode ISBN adalah yang kita butuhkan, karena kode itu mengesahkan dokumen yang kita tulis adalah sebuah buku. Panduan kenaikan pangkat bilang begitu.

Buku referensi setebal Buku Telpon (masih ada yang ingat) dihargai sama dengan selembar coretan gambar saya kalau tanpa ISBN.

Jadi bukan masalah ISBN dan mengapa itu dulu dibuat, tapi lebih kepada persepsi yang menempatkan hal-hal administratif sebagai syarat utama.

# Penutup

Jadi maksud saya. Saat menulis bebaskan saja pikiran. Jangan mikir jurnal dan ISBN dulu. Ketika sudah terbitpun, biasa saja. Jangan terlalu menonjolkan nama jurnal, nama penerbit atau ISBNnya seolah itu yg utama. Yang utama tetaplah apa yang kita tulis, kecuali kalau yang dicari adalah perhatian. :)
How to improve your cold email outreach while freelancing
Tags: webdev, beginners, career, iknowguacisextra
Published: 2021-01-02 21:27:47

GOOD SUBJECT LINE

So we’ve played around with this for over a year and got the best open rate (over 40%) with the simple subject line ‘Question’. Perhaps it is a bit old now BUT continues to work. Why reinvent the wheel? You want something short, sweet and will make the person on the other end curious as to why they should open it.  And that's the end goal => curiosity => open email.  

A GOOD HOOK

A good hook meaning that you presented something that they want up front – ‘we noticed a few mistakes you are making on your website (conversion points, UI etc) but would you be the person to chat further about it?’ Hook them with a pain point, that they’re making a mistake and have a call to action that if they want to fix it, get back to you. Present the problem and the solution. Go straight to the CEO.

FIND COMMON GROUND

“We work with companies like yours already and have produced tremendous websites that have increased traffic/conversions by XX%”. That way, they know you know a bit of the industry you’re in, perhaps have a lay of the land and can hold a conversation with them about what’s important to them. 3rd party verification is a strong way to puff your chest and convey your stature over cold email which triggers interest and action – include 2 links of previous jobs you’ve done and how you can make theirs better.

URGENCY

Back to urgency again. Yup, that’s what makes people buy. I once sent a cold email to a major university saying we’re on deadline for our Winter issue (back when I was selling advertising in a magazine) and have a remnant spot available. I attached a piece of their artwork in the email and mentioned how it would be a great fit in our cyber security section. THEY VERY NEXT MORNING a project manager literally called the office and asked to talk to me – she said she was asked by the DM to follow up with the ad purchase because our deadline was today. She said we’ll take the ad… then asked how much it was. Use urgency in your emails to get quick responses and blast this out to your target once a quarter.

PERSONALIZE IT

These dm’s got crushed with cold email every single days from pigeons trying to sell them everything you can imagine. ‘Greetings of the day!’. No, don’t do that. Use the prospect’s first name and why you thought of them. What can you do for them? Improve their website will do what for them? What is the end results? I also include what their competitor is doing and how this will outrank them… that usually gets a reaction. A lot of times people make decisions on fear and FOMO so bring up a competitor.... which is another good reason why you should niche down. 

www.codersales.io
As usual, less is more
Tags: dohackathon
Published: 2021-01-02 21:24:31

I spent an hour today tweaking how the layout works. I had somehow made margins and paddings behave slightly differently for mobile and desktop without actually overriding anything. To be honest I’m still not sure how I did it but after taking it back to basics, it now scales correctly.

I’ve now noticed an issue with searching on mobile Safari after reworking some logic around jumping to page anchors. The jist of it is that `padding: fixed` is ignored when the virtual keyboard is shown. Annoying but nothing I can do about it in CSS it seems. Maybe I’ll reevaluate how the header works, but as always you can see my progress so far here: https://theneptunes.1thingaweek.com/