teleren/devto huggingface dataset:
Enabling and Disabling Logs in ASP.NET Core 6
Tags: dotnet, logs
Published: 2022-11-04 20:14:08

Almost all the .NET 6 (and previous) templates have enabled by default the new logging system.
This is very useful but in a big project, the logs might be too much confusing.
But this logging system is not an on/off system.
You can decide, from the settings, the tracing level for all the libraries and namespaces in the project.

By default, your appsettings.json looks more or less like this one:

```json
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
```

Customize the logging level by the source it's very easy. You can just add the namespace and the minimum log level:
This is one of my appsettings.json for a real project: 

```json
"Logging": {
    "LogLevel": {
      "Default": "Trace",
      "System": "Information",
      "Microsoft": "Information",
      "Microsoft.AspNetCore.Authentication": "Warning",
      "Microsoft.IdentityModel": "Warning"
    }
  },
```

LogLevel indicates the severity of the log and ranges from 0 to 6:

Trace = 0, Debug = 1, Information = 2, Warning = 3, Error = 4, Critical = 5, and None = 6

When a LogLevel is specified, logging is enabled for messages at the specified level and higher.

Happy Logging!

---

Thanks for reading this post, I hope you found it interesting!

Feel free to follow me to get notified when new articles are out 🙂

{% embed https://dev.to/kasuken %}
How to Monitor Office 365 and Microsoft Teams
Tags: office365, microsoft365, monitoring, microsoftteams
Published: 2022-11-04 19:46:56

Office 365 monitoring is a challenge. Traditional monitoring tools can’t see past your firewall, and the Microsoft Office 365 Service Health Dashboard has no visibility outside Microsoft’s network.

If these are the only tools you have, you’ll find yourself in the dark the next time you’re trying to figure out if there’s an outage or where the problem is. You need an Application Performance Monitoring (APM) solution with end-to-end visibility into the digital experience from your network to Microsoft’s cloud.

Exoprise CloudReady is the leading solution for Office 365 Digital Experience Monitoring (DEM), including Exchange, SharePoint, Microsoft Teams, Azure AD, and MORE to quickly detect, diagnose and fix network performance issues.

https://www.exoprise.com/resources/how-to-monitor-all-microsoft-365-video-tutorial/

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9jntk0beb0zdt4xen7i1.jpg)
How To Break Into Tech? Tips From Content Writer To Senior Software Developer
Tags: career, beginners, codenewbie, programming
Published: 2022-11-04 19:40:37

I was recently invited to be a guest on my friend [Tiffany's podcast](https://www.youtube.com/c/TiffInTech), where we chatted about breaking into tech, career changes, and sustainable software. Check it out below :) And let me know your thoughts.

{% embed https://www.youtube.com/watch?v=IaSD7K6LXZo&t=122s&ab_channel=TiffInTech %}
nb Capture Share Sheet Shortcut
Tags: automation, ios, markdown, shortcuts
Published: 2022-11-04 19:37:13

With a remote linux server, **nb** + `nb sync` to a GitHub repo, and Working Copy, I don't believe I have ever seen a faster or more comprehensive means to deliver markdown capture files of inputted URLs from the share sheet *locally*. 

- [**nb**](https://xwmx.github.io/nb)
- [**Working Copy**](https://apps.apple.com/us/app/working-copy-git-client/id896694807)
- [The Shortcut you see here (for reference)](https://www.icloud.com/shortcuts/c07c6fee18284992b7521ab34d780f47) - `https://www.icloud.com/shortcuts/c07c6fee18284992b7521ab34d780f47`


![nb Capture Siri Shortcut Results in Working Copy](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aoydwstmhd4gi9pj256k.png)
How should i create my admin route on my server?
Published: 2022-11-04 19:33:44

Hello, i'm here as a humble junior looking for someone who can illuminate me, i'm doing a personal project as practice to improve my skills with some technologies, on this occasion using **NestJS** to create the backend. 

Here is my question, i have public and privates routes, should i create a controller just for public and private to separate both path or just one controller for both? 

i have dto's when is public route to return specifics data and private as well. 

Here some example

```
  @Get('/:id')
  @Serialize(productDto)
  getProductById(@Param('id') id: string) {
    return ...
  }

  @Get('/admin/:id')
  @Serialize(productPrivateDto)
  getProductByIdAdmin(@Param('id') id: string) {
    return ...
  }
```
I would appreciate any help (✿╹◡╹)
Deploy LIVE a simple eCommerce powered by Flask & Stripe in 5 minutes
Tags: ecommerce, flask, stripe, opensource
Published: 2022-11-04 19:21:08

---
title: Deploy LIVE a simple eCommerce powered by Flask & Stripe in 5 minutes
published: true
description: This material explains how to build a simple eCommerce powered by Stripe & Flask and publish LIVE the product on Render.
tags: ecommerce, flask, stripe, opensource
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/atjmcd03ybj0rq8nepzq.jpg
canonical_url: https://github.com/app-generator/ecommerce-flask-stripe
---
Hello Coders!

This article mentions a video material that explains how to code a simple eCommerce solution using [Flask & Stripe](https://github.com/app-generator/ecommerce-flask-stripe) on top of a modern [Bootstrap 5](https://www.admin-dashboards.com/bootstrap-5-templates/) Design. The source code of the starter can be downloaded from GitHub and the deployment is automatized using a free library.

> Thanks for reading!

- 👉 [Flask & Stripe eCommerce](https://github.com/app-generator/ecommerce-flask-stripe) - `source code`
- 👉 [Render Deployment Wrapper](https://github.com/app-generator/deploy-automation-render) - `source code`

---

> **VIDEO Transcript**

- ✅ [Fork the product](https://github.com/app-generator/ecommerce-flask-stripe/generate) and download the sources
- ✅ `Install the dependencies`
- ✅ `Create` a new user using CLI
- ✅ `Save Stripe secrets` in `.env` file
- ✅ `Start the app` & Authenticate
- ✅ `Import the products` from **Stripe** and edit the local information
- ✅ [Deploy on RENDER](https://github.com/app-generator/deploy-automation-render) using the `Python` wrapper

{% embed https://www.youtube.com/watch?v=5DbB-fRT2Vg %}

--- 

> **Products Edit Page** - Stripe & Local products

![Mini eCommerce Flask & Stripe - Edit Products ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xsdbzl7vxqv8mqzm52wf.png)

---

> `Thanks for reading!` For more resources and support, please access:

- 🚀 Free [support](https://appseed.us/support/) provided by AppSeed (email & Discord)
- 👉 More [free apps](https://appseed.us/apps/open-source/) crafted in Flask, Django, and [React](https://appseed.us/apps/react/)
Online Quran Classes is the Way to Learn Quran at home
Tags: onlinequranclasses, learnquranonline, onlinequranacademy
Published: 2022-11-04 18:59:43

[Online Quran Classes](https://www.onlinequranclasses.com/) are the best and very easy way to [learn Quran online](https://www.myqurantutor.com/) at home. As you know everybody is busy in his/her life. And unfortunately, nobody can manage time for learning Quran but every Muslim must learn Quran with Tajweed properly. [MY QURAN TUTOR](https://www.myqurantutor.com/) is the best and largest online Quran institute providing an online Quran learning facility. We have Qualified and expert online Quran tutors for kids and adults. We have male and female Quran teachers. Our teachers know very well how to teach kids and adults because they have well experience in teaching. We offer three days of free trial classes for your satisfaction. We have students from the USA, UK, AUS, Canada, and many other countries. You must take trial classes with us.



We are offering Islamic courses related to Quran & Hadith:
=> Quran Foundation course with tajweed
=> Reading Quran with tajweed course
=. Quran Memorization course
=> Quran translation course
=> Quran Tafsir course
=> Islamic (Studies) education course
=> Daily supplication course
My Madlibs Game on C#
Published: 2022-11-04 18:56:34

I had a lot of fun coding a very simple game of Madlibs during a training I had on .Net, SQL and C# once upon a time. Here is the entire game. Enjoy!

```
using System;

namespace MadLibs
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "Super MadLibs";
            Console.WriteLine("Welcome to Super MadLibs!");
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("Press Enter To Start");
            Console.ReadLine();
            Console.Clear();

            Console.Write("Enter a Name: ");
            string name = Console.ReadLine();
            Console.Clear();

            Console.Write("Enter a Place: ");
            string place = Console.ReadLine();
            Console.Clear();

            Console.Write("Enter a Verb: ");
            string verb1 = Console.ReadLine();
            Console.Clear();

            Console.Write("Enter a Adverb: ");
            string adverb1 = Console.ReadLine();
            Console.Clear();

            Console.Write("Enter anoder Verb: ");
            string verb2 = Console.ReadLine();
            Console.Clear();

            Console.Write("Enter another Adverb: ");
            string adverb2 = Console.ReadLine();
            Console.Clear();

            Console.BackgroundColor = ConsoleColor.White;
            Console.ForegroundColor = ConsoleColor.Black;
            Console.Clear();

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write("Once upon a time I saw ");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(name);

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write(" at a ");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(place);

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write(". They had a super power that made them ");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(verb1);

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write(" really ");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(adverb1);

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write(". I wanted a super power too. So I drank a special posion. Now I can ");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(verb2);

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write(" really ");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(adverb2);

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write(". And everyone live happily ever after");
            Console.ReadLine();

        }
    }
}
```
About AWS - Bangla Session
Published: 2022-11-04 18:56:14


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8w9fix1m61ywo6mcllgv.jpg)

Many of us have an interest in AWS and various job requirements also seek and prefer candidates with knowledge of AWS. From all these things, an interest in AWS was sparked, but it was never discussed.

Suddenly I saw a free online seminar and I registered. It was very useful for me, it was a 3-hour workshop, first some theoretical stuff and then practically everything is shown here. Account Create, S3, AWS Bucket, etc., all the basics are covered pretty well. I didn't expect so much to be covered here.

Below is a link to the recorded video of the session, which hopefully will be useful to anyone interested in learning more about Amazon Web Services.



Session Video Link: https://drive.google.com/file/d/1wbePrtdZaVbd6DsSfcpxp9riSbM9YkPb/view?usp=sharing
Open Source Adventures: Episode 82: Series Retrospective
Published: 2022-11-04 18:42:26

It's time to finish the series.

Previously I did [Electron Adventures](https://dev.to/taw/series/14346) and [100 Languages Speedrun](https://dev.to/taw/series/15607), which were both highly focused 100-episode 1-episode-per-day series.

I have a few more ideas for big series, but the time wasn't right for that, and I wanted to write some disconnected posts instead. So I labelled them "Open Source Adventures" even though without any focus, and without any schedule, it doesn't make sense to treat it as a "series". Having label like "Episode 76" on what's essentially a disconnected post is only confusing. And it included a few short series of posts, which should get their own miniseries instead (possibly without "Episode XX" numbering).

So I'm hereby closing the series. The content was good, but the organization really didn't make much sense.

I might do another megaseries at some point, depending on time availability. But more likely I'll just post standalone posts and short series of a few posts for now.
How I built a Bitcoin indexer using ZeroMQ
Tags: blockchain, backend
Published: 2022-11-04 18:29:55

Indexers are node operators that fetch data from a node then transform it and store on a database to provide easy access to the blockchain data. You can use it to build a history of user's transactions, or get a transaction/block to build a decentralized application.

ZeroMQ is an open source messaging library that you can connect and use some socket patterns. We will use a pub-sub pattern to subscribe on the node and listen new blocks and transactions on real time to store on our database and have a fast access than accessing directly the blockchain, and have a easy way to scale it.

Bitcoind is a node interacting who will allow us to interact with the blockchain and get the desired data.

## Subscribing to Bitcoind using ZeroMQ
![Three blocks with arrow one for each other bitcoin, NodeJS, database](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x4lwrlyxyudz9k6ktlqn.png)

To Listen to new blocks and transactions you need to run a node locally on your own infrastructure, you can download bitcoind [here](https://bitcoin.org/pt_BR/download)

Using ZeroMQ you can set a address to publish your events (blocks and transactions) then on each new event your node emit and the application can deal with it.

To run a node with ZeroMQ using bitcoind:
```bash
bitcoind -signet -zmqpubrawblock=tcp://127.0.0.1:3000 -zmqpubrawtx=tcp://127.0.0.1:3000
```

After run the node, you can install `zeromq` package and listen rawblock and rawtx event, then insert on your database.

```js
import zmq from "zeromq";

const SOCKET_ADDRESS = "tcp://127.0.0.1:3000"

const connectZeroMQ = () => {
    const socket = zmq.socket('sub');
    socket.connect(SOCKET_ADDRESS);
    socket.subscribe('');
    return socket;
}

const zmq = connectZeroMQ();

zmq.on('rawblock', (error, block) => {
    if(err !== null) return;
    // parse and store on your database
})

zmq.on('rawtxn', (error, txn) => {
    if(err !== null) return;
    // parse and store on your database
})
```

## Conclusion
You can achieve this result on different ways, but ZeroMQ gives to you more security and reliability to receive the blocks and transactions on real-time, this code can be used in production, but I highly recommend that you create a script to check every block and transaction from time to time to make sure none are lost.

In my repository below you can find all the code above connected to the database, and getting the lost blocks, or old blocks, feel free to contribute =)
https://github.com/EmanuelCampos/bitcoin-indexer

If you have some suggestions/feedbacks you can call me on:
[Twitter](https://twitter.com/manelferreira_)
Weeny - A tiny Design System with a purpose
Tags: vue, react, android, ios
Published: 2022-11-04 17:46:30

## Weeny

Yes! Otherwise tiny is my very first attempt at building a _tiny_ as the name suggests and simple design system for an imaginary or yet to be built trivia quiz app for web and mobile (Android & iOS). I suppose if you want an in-depth knowledge on what a design system is, you can head on to [this](https://www.invisionapp.com/inside-design/guide-to-design-systems/) that has a comprehensive write up on the subject. 

**Why do I want to do this?**
The promises of design system to an organisation / digital product that is poised to scale are enormous and the learnings I’m going to garner from this expedition puts me in a position to get my hands dirty. 

Consistency is primarily one of the main reasons an organisation will attempt doing this exercise. Especially when the team is growing, so as the product offerings of the company, there comes an inherent need to ensure the product sings the same song across board, the look & feel or the brand identity of the company is carried across the entire product. It could also enhance the speed at which features are rolled out at least in fast moving organisation where going quick to market is of great value. 

A good place to start of with building a design system is normally from an existing product, where some learnings/findings could be drawn from and the right and essential visual language, patterns , components could be built. 

In my case **Weeny** is design system for an imaginary trivia quiz app (not a production product yet). Who knows we could have a full fledged product at the end 🤞🏽.  It’s a multi-platform design system meaning there’s going to be a web version in ( reactjs & vuejs) and mobile Android (Jetpack compose) iOS (either in Swift UI or in code )

**What’s the plan of execution?**
I’m starting of by documenting everything in Figma where I give a breakdown of the core principles and standards of Weeny, outline the components, foundations, design tokens and the like.

This is a write up to register my interest. Watch [here](https://www.figma.com/file/VzLX0lhpKtugXuA8GDQgpb/Weeny---Multi-platform-Design-System) and [there](https://github.com/mcofie/Weeny) for periodic updates. I’ll also endeavour to share my learnings and progress along the way. Catch you on the next one ✌🏽.
JavaScript Projects for Beginners✨ - ajaysharma_here
Tags: webdev, javascript, tutorial, beginners
Published: 2022-11-04 17:18:47

####   Original Tweet From  [@ajaysharma_here](https://twitter.com/ajaysharma_here)
{% embed https://twitter.com/ajaysharma_here/status/1586568801189040129 %}


###1|. TicTacToe

🔗  [https://codepen.io/daajust/pen/obVROB](https://codepen.io/daajust/pen/obVROB) 

###2|. Calculator

🔗  [https://codepen.io/lalwanivikas/pen/eZxjqo](https://codepen.io/lalwanivikas/pen/eZxjqo) 

###3|. Filter Menu

🔗  [https://codepen.io/arjunamgain/pen/qdpWLL](https://codepen.io/arjunamgain/pen/qdpWLL) 

###4|. RemindMe App Concept

🔗  [https://codepen.io/ispal/pen/LxjgEj](https://codepen.io/ispal/pen/LxjgEj) 

###5|. Math Wizz Game

🔗  [https://codepen.io/FlorinPop17/pen/RwbOwrm](https://codepen.io/FlorinPop17/pen/RwbOwrm) 

If you enjoyed reading this thread

1. Do RT the FIRST TWEET🧵
2. Follow me  [@ajaysharma_here](https://twitter.com/ajaysharma_here) and turn on notifications❤️ 



Click [Here](https://www.knowledge-twitter.com/?utm_source=dev.to)  For More Posts Like This [https://www.knowledge-twitter.com](https://www.knowledge-twitter.com/?utm_source=dev.to)
#DEVCommunity: Now available via Toot 🦣
Tags: socialmedia, meta, mastodon, fediverse
Published: 2022-11-04 17:16:20

**_Update: We've moved to Fosstodon.org. Check out this post for more info:_**

{% embed https://dev.to/devteam/weve-moved-to-fosstodon-53e1 %}

---

We're live on Mastodon! 🦣

Follow us [@thepracticaldev@mastodon.social](https://mastodon.social/@ThePracticalDev) from anywhere in the Fediverse. We look forward to expanding our presence into new and exciting servers in the future — for now, this is our home for toots.

Currently, we're cross-posting our Twitter feed to Mastodon using [moa.party](https://moaparty.com/). We recommend checking it out if you're looking for a simple solution to expand your presence across platforms.
It Gets Easier With A Little Help From React...
Tags: react, webdev, beginners
Published: 2022-11-04 14:37:01

Before entering the second phase of my course, the last few months of my life have been solely focused on the basics of JavaScript, html, and css. It was such a pleasant surprise to step into React and see that things really do get more simple. The biggest thing that clicked with me in React was the separation of components. My brain tends to works in a very puzzle driven manner, so separating each 'component' into its own puzzle piece really brought things together for me. Components really allowed me to see my creation from afar and see each piece being brought together to bring something final. Client side routing also allowed me to separate these components into separate parts of my website to really allow for some user interaction and proper sectioning.

For our Phase-2 project, I created a snowboard store from an admin perspective. This website gave the user, or admin, the ability to run his online store with a persisting inventory to which he could add to and search from. On the sites header, the user could navigate from the home page, to the form to add a snowboard to his inventory, as well as an 'about us' page to give the online-shoppers some contact information. 

Below is a tree showing the breakdown of how all of the components are brought together. I really thought having this visual and seeing the site come together was the best part about learning React. Vanilla Javascript was very eye opening simply learning how to code, but I feel this phase finally brought me to seeing what coding could really build. Going back to the tree, you can see the routes are contained in the header since that's where you'll have the ability to navigate through the 'home', 'add snowboard', and 'about us' tabs. My snowboard page contains a search bar as well as all of the snowboard cards (store listing) which has the snowboard image, price, style, etc. In a separate component, you can see the 'addForm' which will take us to the 'add a snowboard' tab and give the user the ability to display his new products as they come in. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6h0ngmuizpyf2uzoui8r.png)

Still making some final tweaks to my website, but I look forward to updating this post with a gif of our fully functioning and very first personal project. Thanks for tuning in to the While at Flatiron School Chronicles. I will indeed add my GitHub link to this project for anyone who wants to check out my creation. 

{% embed https://github.com/paolomgarcia/phase-2-project
 %}