teleren/devto huggingface dataset:
SSL explained briefly
Tags: ssl, digitalcertificate, https, digitalsignature
Published: 2021-05-19 00:35:07

### Intro

- HTTPS is a secure version of HTTP
  - communication between server and client is encrypted
- HTTPS is HTTP over Secure Sockets Layer
- SSL certificate plays an important role in building trust

### SSL certificate

- a web server's digital certificate
  - issued by a third party (called CA, Certifying Authority)
  - verifies the identity of
      - the web server
      - the web server's public key

### Digital Signature

- created using CA's private key
- browser has list of major CA's public keys
  - this is how it is able to verify the digital signature

### Example

- user accesses *https://www.google.com* from the client
- client requests secure pages from Google's web server
- the Google server sends its digital certificate which serves two purposes
  - it establishes Google's identity
  - it makes the Google's public key available
- client verifies issuer's (CA) digital signature
  - to ensure that the certificate is valid
  - client comes installed with the public keys of all of the major certificate authorities. It uses this public key to verify that the web server's certificate was indeed signed by the trusted certificate authority.
  - the certificate contains the domain name and/or IP address of the web server. The client confirms with the certificate authority that the address listed in the certificate is the one to which it has an open connection.
- after it is verified, it is trusted
  - in case of a client like Google Chrome, a lock icon precedes the URL
      - which indicates that the Google server's public key really belongs to the web server
- the client now generates a symmetric key
  - it keeps one and gives one to the server
      - to give it securely to the server it encrypts it with server's public key
- the web server has the private key to decrypt this encryption and it gets the symmetric key
- from this point, all traffic between client and server will be encrypted with this symmetric key

### Curious

https://tlseminar.github.io/first-few-milliseconds/
What Are Some Tech Questions You're Too Afraid to Ask?
Tags: discuss
Published: 2021-05-19 00:21:02

I had an idea for a series of articles on concepts that people in tech assume are common knowledge but actually aren't. For me, this would include ideas like "what is Kubernetes?" and "what is a framework?" Hell, I just saw Kyle bravely mention that he had no idea what Vim is:

{% twitter 1394806711127523330 %}

So, I think it's safe to say any question is on the table. Fire away!
What are the odds?
Tags: uuids, probability, prioritization
Published: 2021-05-22 15:05:51

---
title: What are the odds?
published: true
date: 2021-05-19 00:00:00 UTC
tags: uuids,probability,prioritization
canonical_url: https://jhall.io/archive/2021/05/19/what-are-the-odds/
---

Not long ago I had a conversation about random UUIDs with a client I was working. This person expressed concern that the [version 4 UUIDs](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) we were using might suffer a collision. They are [not alone in this concern](https://stackoverflow.com/search?q=uuid+collision).

So what are the odds of a collision?

Speaking of v4 UUIDs, which contain 122 bits of randomness, the odds of collision between any two is 1 in 2.71 x 10<sup>18</sup> Put another way, one would need to generate 1 billion v4 UUIDs per second for 85 years to have a 50% chance of _a single collision_.

Worrying about this is an example of the [Law of triviality](https://en.wikipedia.org/wiki/Law_of_triviality) at play, roughly stated “people commonly give disproportionate weight to trivial issues.” This is where the popular aphorism about bike-shedding originates.

There are always **MUCH** bigger business problems to spend time on.

To demonstrate how trivial the issue of UUID collision is, let’s consider some other things that are more likely to occur which may impact your team, but which also often get less attention:

- 1 in **2.71 x 10<sup>18</sup>** : Two random v4 UUIDs collide
- 1 in **7.87 x 10<sup>9</sup>** : Melinda French Gates divorces you and takes a portion of your business assets
- 1 in **1.10 x 10<sup>7</sup>** : Your most senior colleague dies an airplane accident in the next 12 months, before documenting their work
- 1 in **2.02 x 10<sup>5</sup>** : Your data center is destroyed by a nuclear strike
- 1 in **2.6 x 10<sup>3</sup>** : Your boss resigns tomorrow
- 1 in **1 x 10<sup>2</sup>** : You suffer data loss due to disk or SSD failure
- 1 in **1 x 10<sup>1</sup>** : Your laptop and its data are stolen

Technically speaking, UUID collision _can_ happen. But even for critical applications, the odds are so low as to be dwarfed by the odds of truly catastrophic events, like nuclear war. This means most of us will get a much better ROI on our thinking time by focusing on problems that actually affect our businesses.

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
Azure Functions University - Lesson Tips
Tags: azure, serverless, programming
Published: 2022-03-16 20:14:33

---
title: Azure Functions University - Lesson Tips
published: true
date: 2021-05-19 00:00:00 UTC
tags: azure, serverless, programming
canonical_url: https://blog.marcduiker.nl/2021/05/19/azfuncuni-lesson-tips.html
series: Azure Functions University
---

![Lesson Tips](https://blog.marcduiker.nl/assets/2021/05/19/AzureFunctionsUniversity_Lesson_Tips.png)

Hi serverless friends, since the amount of Azure Functions University content is growing rapidly, I’ve made a video on how you can get started with Azure Functions University.

<!--more-->
{% youtube xJEi8Mofp0A %}

This video contains these topics:

- 0:00 Intro
- 0:30 YouTube
- 0:53 YouTube Playlists
- 1:34 YouTube Chapters
- 2:18 GitHub repo
- 3:03 Table of contents links in markdown
- 3:44 Cloning the GitHub repo
- 5:13 The Azure Functions University folder structure
- 6:33 Using VSCode workspaces
- 12:22 Using CodeTour
- 16:00 Recap and closing
"ARCHS[@]: unbound variable" error in SwiftUI Project
Tags: swift, swiftui, ios, xcode
Published: 2021-05-18 17:19:12

---
title: "ARCHS[@]: unbound variable" error in SwiftUI Project
published: true
description: 
tags: #swift #swiftui #ios #xcode
//cover_image: https://direct_url_to_image.jpg
---
<!-- wp:paragraph -->
<p>Recently I ran into an error when trying to run a SwiftUI Project on my iPhone. I'm running this project on a <strong>M1 Macbook Pro</strong>. The error seemed to start happening when my project started using certain <strong>Cocoapods</strong>. The error reads "<strong>ARCHS[@]: unbound variable</strong>".</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>To fix this error all you need to do is navigate to the <strong>Project File</strong> <strong>&gt;</strong> <strong>Info</strong> <strong>&gt;</strong> <strong>Excluded Architecture</strong>. If in <meta charset="utf-8"><strong>Excluded Architecture</strong> you see <strong>arm64</strong>, all you need to do is remove the <strong>arm64</strong> and reload your Xcode project.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"center","id":1716,"sizeSlug":"large","linkDestination":"none"} -->
<div class="wp-block-image"><figure class="aligncenter size-large"><img src="https://swifttom.com/wp-content/uploads/2021/05/Screen-Shot-2021-05-18-at-1.06.06-PM-1024x303.png" alt="" class="wp-image-1716"/></figure></div>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Hope this quick post helps anyone struggling with this weird error in your SwiftUI project. If this doesn't help please check out this <a href="https://stackoverflow.com/questions/64474801/archs-unbound-variable-in-xcode-12">stack overflow post</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Happy coding!</p>
<!-- /wp:paragraph -->
Sesión - Construyendo una Aplicación Web con ASP.NET 5 y SQL Server
Published: 2021-05-18 23:12:58

En esta sesión abarcamos temas básicos, desde la explicación de que es .NET hasta realizar una aplicación web, en sí un CRUD(Create, Read, Update, Delete) de un Producto.

Puedes volver a ver la sesión aquí:

En mi [página de Facebook:](https://fb.watch/5zX7BbEtQ3/)
o en mi [canal de Youtube:](https://youtu.be/WG4y5h91iZY)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fff9o6tk8z41nu0ai226.PNG)

El repositorio del proyecto realizado lo encuentras [aquí](
https://github.com/VeronicaGuaman/SesionAppWebDemo)
y lo más pedido, las presentaciones también la encuentras en el repositorio de GitHub.

Pueden descargar el proyecto y usarlo, pero deben colocar su cadena de conexión en el appsettings.json. y funcionará perfectamente.

Se resolvió la conexión a la DB en el hosting con Soome, actualice el [artículo](https://dev.to/veronicaguamann/publicar-aplicacion-web-net-core-codefirts-en-un-hosting-gratuito-soome-2021-35i) con el paso adicional que me faltaba y ya funciona correctamente.
debí correr la migración, en el artículo anterior no lo necesitaba ya que se ejecutaba un DBSeed y por eso se creaba automaticamente.

Pero ya quedo resuelto :D

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k5q2dbq2m50nin061arm.PNG) 
Nos vemos en [Twitter](https://twitter.com/veronicaguamann) e [Instagram](https://www.instagram.com/veronicaguamann/) ;)
How do you customize your GNOME?
Tags: linux, gnome, discuss
Published: 2021-05-18 23:12:45

Let's accept it. GNOME 3, especially on Ubuntu, is ugly, and hide away lots of customization by default. (Compared to KDE and XFCE.) GNOME 40 (on Arch Linux) is a little better, but not everything is that I liked.
<small>
Honestly, GNOME + some customization or KDE / XFCE with little customization. Also, screenshot tool is better in other DE's.
</small>

Currently, my favorite customization is [ArcMenu](https://extensions.gnome.org/extension/3628/arcmenu/) + [BaBar Task Bar](https://extensions.gnome.org/extension/4000/babar/); and Dock must be hidden.

But the dock, even though not shown by default, _cannot be resized without dash-to-dock extension_, and by installing dask-to-dock, the dock will appear in main desktop, which I don't want. [But this could be fixed.](https://www.reddit.com/r/gnome/comments/mnczmi/change_size_of_gnome_40_default_dock/)

![Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q0qdw4vhvbm9dswe7kzr.png)

Happily, GNOME 40 workspaces are horizontal, _rather than vertical_, which is always true for desktop environments other than GNOME 3.
Deno v1.10 has added support for localStorage. What do you think would be a good use case for this feature?
Tags: deno, javascript, discuss
Published: 2021-05-18 22:47:17

---
title: Deno v1.10 has added support for localStorage. What do you think would be a good use case for this feature?
published: true
description: 
tags: #deno #javascript #discuss
//cover_image: https://direct_url_to_image.jpg
---


Here are some of the details: [Support for Web Storage API](https://deno.com/blog/v1.10#support-for-web-storage-api)

My first thought was some sort caching mechanism. Like, if I have a script that fetches data from the internets or takes a very long time to produce some piece of data, I could use localStorage to save that data. Then if someone executes the script again in a very short amount of time, I could give them the cache in localStorage.

My second thought was some CRUD stuff. Something like [zoxide](https://github.com/ajeetdsouza/zoxide) came to mind. I could make (and I [actually did](https://github.com/VonHeikemen/zdirs-js)) a glorified CRUD utility that stores the path to the most frecuently visited directories, and then query that and use the result to "jump" quickly to that location. 

Beyond that I'm having a hard time imagining how this could be useful. I'm not saying it's useless, having a tiny database can be handy. I just don't know when to use it.
I need to do a Informational Interview for my future career path
Tags: career, productivity
Published: 2021-05-18 22:44:14

Hello friends, 

I'm just reaching out to anyone in the West it would be ideal if you were somewhat close to me but not necessary. I'm in Canada on the West Coast in Vancouver. This is not a job interview, I'm taking the ASD program at BCIT this September and WorkBC is going to help to fund some of it. 
    
As long as you are working as a computer programmer from any job big or small company that will do just fine. The interview will only take 15-20 minutes as long as we make contact and you can agree to answer some questions about the tasks performed and some experiences, there is 12 questions that we can do face to face (virtual) or just though email. Thank you for reading this whether you can or not I appreciate it either way.
    
I will also mention anyone living in Canada and wants to change career paths they are providing a lot of help to people to go to school, online or any publicly funded institution for up to $7,500. 

Stay safe and best regards,

PS You will have to share some contact info with me if you do agree to do it. Cheers!

James
Developer Bias Check
Tags: watercooler
Published: 2021-05-18 22:27:20

## Why are we biased?
Bias is necessary for survival. If you eat some food that was poisoned, you probably would have reservations about eating it the next time you encounter that type of food.  More than that, if you have heard all your life about how bad pirates are, when you encounter one, most likely the first thing you feel is fear. However, when it comes to interpersonal relationships in a professional setting (aka Soft Skills) it can be a crutch. With that introduction done, the million dollar question is ..

_**Are you a biased developer?**_

No really, _think_ about it. For most people, the immediate answer that comes to mind is _absolutely not_. But why? And more importantly, are you really? I have created a check help you answer that question for yourself. This is by no means exhaustive and there are probably far more questions than the 7 I came up with.

If some of the situations do not apply to you, then try to imagine yourself in that situation. Do try to be honest, the only person you are fooling is yourself. Okay, here we go ..

 1. Do you sometimes forget to design for accessibility? _([Article](https://uxdesign.cc/design-accessible-websites-6ebffcf583e2))_
 2. When a pretty person says that they can (and do) code, do you get a feeling of doubt? _([Article](https://www.maxim.com/women/victorias-secret-model-coding-2018-))_
 3. When someone rants about inequality in the development field, do you feel annoyed?
 4.  Do you try to make sure the data you collect is representative all walks of life? _([Article](https://sitn.hms.harvard.edu/flash/2020/racial-discrimination-in-face-recognition-technology/))_
 5. When you picture a good programmer, does a White (or Asian) young male come to mind? _([Article](https://uxdesign.cc/design-accessible-websites-6ebffcf583e2))_
 6. Does the college a candidate went to play a major factor your hiring process? _([Article](https://www.investopedia.com/articles/personal-finance/051915/university-prestige-really-important.asp))_
 7.  Do you try to make your language inclusive? _([Article](https://online.rider.edu/online-bachelors-degrees/liberal-studies/guide-to-using-inclusive-language/))_


_Whew_, that's it, if you answered yes to just one of the questions _you have some biases_. We all do,  **no one is without bias**, not me, not you, or anyone around you, and that's okay 🙂.

Leave a comment if you have any questions, comments (_oof_), suggestions, or even criticisms (so long you are kind about it).
Day 369 : Listening
Tags: hiphop, code, coding, lifelongdev
Published: 2021-05-18 22:23:29

_liner notes_:
- Professional : Finally got the video tutorial to the point where I feel good about moving the ticket to "In review". I'm hoping to get someone from the education team to check it out. Worked on a sample application for an SDK that should be coming soon. Just going through documentation and code to wrap my brain around what's happening and asking questions of the engineering team.

- Personal : So Google I/O 2021 started today. Had it in the background while I was doing some work. I'm looking for things that have to deal with the Web and Firebase. So cool stuff is coming. Looking forward to seeing more.

![Grassy hillside with purple flowers with more mountains in the distance at sunset in Carpathian Park, Ukraine](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mok9y7jaiqpmy9q2jm61.jpg)

Going to work some more on my side project. Last night, I spent a lot of time listening to tracks for the radio show. I decided that the section where people can sign up for reminders will be a totally separate application that just handles that. We'll see. I've still got to add some more copy to the frontpage. There's some UI elements I want to figure out the best way to implement them in Svelte. Hoping it's as easy as just putting in the vanilla JavaScript in the Svelte file. We'll see. Maybe go through some tracks for the radio show.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube cZ3XLtu2-ws %}
Using Refinements to Monkey Patch Safely
Tags: ruby
Published: 2021-05-18 20:42:14

---
title: Using Refinements to Monkey Patch Safely
published: true
description: Monkey-patching ruby classes using refinements
tags: ruby
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bm34ihvwzibt13z22g5l.jpg
canonical_url: https://www.codeandclay.com/2021/05/01/monkey-patching-locally/
---

In Ruby, classes are open. They can be modified at any time. You can add new methods to existing classes and even re-define methods. Rubyists call this *monkey-patching*.

In the example below, I've added `String#word_count` to return the number of words in a string.

```ruby
class String
  def word_count
    self.split.count
  end
end
```

```ruby
"Don't put your blues where your shoes should be.".word_count # => 9
```

However, this change is global. What happens if someone else defines their own version of `String#word_count` based on different rules? Say, they might want to count the individual parts of a contraction, or ignore digits and any non-word characters.

[Refinements](https://docs.ruby-lang.org/en/3.0.0/doc/syntax/refinements_rdoc.html) allow us to monkey-patch classes and modules locally.

Here, I've created a new module and used `Module#refine` to add `word_count` to `String`.

```ruby
module MyStringUtilities
  refine String do
    def word_count
      self.split.count
    end
  end
end
```

The refinement isn't available in the global scope:

```ruby
"Take my shoes off and throw them in the lake.".word_count # => NoMethodError: undefined method `word_count' for…
```

To activate the refinment, I need to use `using`:

```ruby
using MyStringUtilities

"Take my shoes off and throw them in the lake.".word_count # => 10
"A pseudonym to fool him".word_count # => 5
```

If I activate the refinement within a class or module, the refinement is available until the end of the class or module definition.

Below, the refinement is not available at the top level because it is scoped to `MyClass`.

```ruby
module MyStringUtilities
  refine String do
    def word_count
      self.split.count
    end
  end
end

class MyClass
  using MyStringUtilities

  def self.number_of_words_in(string)
    string.word_count
  end
end

"Out on the wily, windy moors".word_count #=> NoMethodError

MyClass.number_of_words_in("Out on the wily, windy moors") #=> 6
```
Coming out of a degree, what now?
Tags: career, devjournal
Published: 2021-05-18 22:08:00

I'm coming out of my computing degree, now I have no idea what exact field I want to go into in terms of programming. I have the most experience in web development, but don't find it as enjoyable as others like desktop application or mobile application development. I currently only plan to continue working as a server for 6-8 months while I continue my developer journey and figure out what I enjoy to do moreso without the pressure of an assignment to complete and hopefully that helps me choose a bit better? Or is that a bit choosing beggar with job climate being as it is during Covid times?
Let's Learn .NET - Accessibility - Free Live Stream Event
Tags: beginners, a11y, dotnet, csharp
Published: 2021-05-18 21:42:53

[Let's Learn .NET](https://aka.ms/letslearndotnet) is a monthly beginner series that walks through the fundamentals of using C# and .NET. This month, we are taking a look at how to make our mobile, desktop, and web apps more accessible. 

Technology can empower people to achieve more, help strengthen education opportunities, and make the workplace more inviting and inclusive for people with disabilities. With more than 1 billion people with disabilities in the world, accessibility and inclusion are essential to empowering every person and organization to achieve more. Let’s learn about building web and mobile applications with accessibility in mind. Together, we will understand what it means to be “accessible”, how to get started directly from your browser, and then what tools you can use to learn more!

{% youtube ttxAYDMKtSs %}

## When
**Friday, May 21st at 8:30 AM - 10:30 AM Pacific**

## Where

Streaming live for FREE on [Microsoft Learn TV](https://docs.microsoft.com/learn/tv/?WT.mc_id=dotnet-17847-jasingl). Sign-in, ask questions, and learn how to start building accessible apps.

## What
Come learn something new and leave with something that we all built, together, live with experts. Here is the agenda for the event:

**Introductions (5 mins):**
- Meet the team!

**Fundamentals (20 mins):**
- Accessibility 101 
   - What does it mean to be “accessible”? 
   - How can you build with accessibility in mind? 
   - What tools can you use to build inclusively?  
- Pre-requisites & installation  

**Workshop I (35 mins):**
- [Create accessible apps with Xamarin.Forms](https://docs.microsoft.com/learn/modules/xamarin-forms-accessibility/)

**Q&A (10 mins):**
- Get your questions answered live!

**Workshop II (35 mins):**
- [Create accessible web apps with ASP.NET Core](https://docs.microsoft.com/learn/modules/aspnet-core-accessibility/)

**Q&A (10 mins):**
- Get your questions answered live!

## RSVP Today
Head to [aka.ms/letslearndotnet](https://aka.ms/letslearndotnet) to RSVP today!

## Looking for more?
- [Accessibility Resources for .NET](https://aka.ms/Accessibility_Resources)!  
- [.NET 101 Videos](http://dot.net/videos)