teleren/devto huggingface dataset:
After All These Noises.
Tags: mentalhealth, awareness, growth
Published: 2023-06-27 00:48:02


When I visited my hometown last year. While I was sitting and having some bottles of beer with my friends, this old man came and sat next to us. He tried to raise a topic, but even I wasn't interested in getting into any discussion with him.

But seeing that he was very persistent, he started to interest me and on a closer scrutiny, I realized who this old man was. I'll give him a Chukwuka Odiba as to keep the real human anonymous. I was left in total shock, to imagine that such a great man that his name was sang in our ears as kids could be begging for an audience and that audience was me?

A human whose wealth and name spiralled in the discussions of many, would sit next to me and almost give in to pleas to get into a conversion with us.

I went home that day also imagining how ached the houses we adored and wished we could step into their passages has all worn out and frail. It didn't take long before I escorted my friend to the house of yet another very prestigious human who is now a shadow of himself. We went to admonish him because he was getting into fights with teenagers.

Isolation is not far from the problems I noticed from these great men and edifices. And I wondered as we race head on to success and into the lights of class and status, if we are ever prepared for when all of these are gone.

What are our plans for readjustments. How do we settle in back and be ordinary and accept the weaknesses that comes with aging or retirement. It is easier to adjust when you succeed, I mean, people judge you less. But it is harder when you fall, and those are the moments that determine our luck to keep succeeding to survive, or spiral into irredeemable terminus.

Like I always say. If we run away from bad things, they will still happen to us. But if we run away from good things, they will never happen to us. There'll always be better gadgets, better players and smarter people coming.

Finer and more expensive cars. Beautiful people coming behind us. How do we cope with accepting that we need to step back. Not only stepping back but also considering the activities that will prolong our lives after our parts of the show is fulfilled?

This is a question I'm trying to answer for myself through deliberate analysis and introspection. But I know I don't have to always show up. I don't have to always be available and I don't have to always know. Sometimes I need to be ignorant. Sometimes I need to be dull. There are enough people to move the human agenda forward.

And I believe if we can give our all and play our part, we should count ourselves worthy and take solace in knowing that we did all we could with the little time and resources that we had at our disposal. We can always stop trying to create the impression with people that we have so much plans to do more.

Sometimes tell people you are relaxing. You are figuring things out. You are on the radar. We came from the radar and why so much in a rush to nowhere. We can always tell people it is fine to not be fine. We are not in a romantic movie. We are on earth and living life.
Cleaning up unused Typescript Files with `ts-prune`
Tags: todayilearned, javascript, ts
Published: 2023-07-31 12:15:34

---
title: Cleaning up unused Typescript Files with `ts-prune`
published: true
date: 2023-06-27 00:00:00 UTC
tags: til, js, ts
canonical_url: https://coreyja.com/til/clean-up-with-ts-prune
---

TLDR: `npx ts-prune` will find us-used files in your Typescript project!

* * *

Recently at work I had some extra time on Friday. Not enough that I wanted to start a big task, but enough time to do some cleanup.

I found [`ts-prune`](https://github.com/nadeesha/ts-prune) which looks through a TypeScript project and finds things that are unused. It helped me find things that were completely unused and could be cleaned up, and some types there were being exported from their file but didn't need to be!

`ts-prune` is in maintenance mode, but I found it to work well for my usecase!

One caveat is that it just prints the files with errors to stdout, I had to go fix the issues manually. But well worth it for a more cleaned up repo!
依赖注入 | 完整解释（定义、用法、结构和示例）
Published: 2023-06-26 23:34:27

依赖注入 | 完整解释（定义、用法、结构和示例）

## 介绍

您好，我的名字是 Daniela Barazarte，欢迎您阅读有关依赖注入的完整说明。 这个解释以及#DetectaLaLogica 中的所有解释一样直观且简单。

如果您喜欢视频，这里是我在 YouTube 上制作的完整教程，它是西班牙语，但也有字幕：https://www.youtube.com/watch?v=Sz4acLjFvrU

## <u>理论</u>
### 每个单词的定义
**“设计模式”**
- **模式**：是一种重复事件或对象
![设计模式](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a8hizh9zs3bzgaimxs1n.png)
- **设计**：创意活动，其目的是设计有用且美观的物体

**“依赖注入”**
- **注入**：指将某些东西引入到元素中的行为

![注入器](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3azdpqk4qt2u5vxxq9pt.png)
- **依赖**：指一件事需要另一件事才能正常运作的关系

![关系](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zxaoda69shrb99v7zkl.png)


### 完整定义
依赖注入是一种软件设计模式，它包括为对象提供其运行所需的所有依赖项，而不是由对象自己创建它们。

### #DetectTheLogic
之所以称为依赖注入，是因为您将一个对象的组件注入到另一个对象中，并且这种关系是一种依赖关系，因为如果没有这种注入，该对象就无法正常运行。

## <u>练习</u>
＃＃＃ 锻炼
您必须制作一个控制台项目来生成进入足球比赛的门票。

您可以通过多种方式来实现这一点，但我们将测试使用依赖注入来实现这一点的方法。


**<u>方法：无依赖注入
</u>**


![无注入](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7ymejw9a7oz4bvrvhh0v.png)

票务方法、视图、类、代码和其他组件会在代码中混乱，并且会与足球场代码捆绑在一起。

**<u>方法：依赖注入
</u>**


![带注入](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/md7f5rf8cnbdol35i5p4.png)


门票的方法、视图、类、代码等组件是完全有序的，并且与足球场的代码分离。 Ticket 通过依赖项注入将其组件传递到体育场（该依赖项被涂成金色）。

## 重要性
**依赖注入设计模式有几个好处：**

- **增加代码重用**：如果我想重用门票组件并将其放置在另一个项目中，例如音乐会，我可以这样做
- **更大的灵活性**：允许轻松更改组件而不影响应用程序的其余部分。
- **将代码分解为更小、更清晰的部分**：使代码更易于理解和维护。


## 告别

（记住）#DetectTheLogic：之所以称为依赖注入，是因为您将一个对象的组件注入到另一个对象中，并且该关系是一种依赖关系，因为如果没有该注入，该对象将无法正常运行。

您可以在我的 GitHub 存储库（C# 语言代码）中练习此主题：https://github.com/danielabarazarte/DetectaLaLogica/tree/main/Conceptos

非常感谢您的阅读，如果有什么问题可以评论，也可以关注我看更多这种风格的帖子，谢谢<3.
Protecting Data: An Overview of Significance of Encryption in Database Systems
Published: 2023-06-26 23:18:28

In today's digital age, the security and privacy of sensitive information stored in database systems are paramount concerns. Encryption plays a crucial role in safeguarding data from unauthorized access, ensuring its confidentiality and integrity. This article provides an overview of encryption in database systems, explaining its concepts, benefits, and implementation techniques.

Encryption is the process of converting plaintext data into ciphertext, rendering it unreadable to unauthorized individuals. It involves the use of encryption algorithms and keys to transform data into a scrambled format. To access the original data, authorized users must possess the corresponding decryption keys.

Benefits of Database Encryption:

**Confidentiality:** Encryption ensures that data remains confidential even if an attacker gains unauthorized access to the database. Without the decryption keys, the encrypted data is meaningless and indecipherable.

**Compliance with Regulations:** Many industries, such as healthcare and finance, have stringent data protection regulations. Encryption helps organizations comply with these regulations by safeguarding sensitive information.

**Protection against Insider Threats:** Encryption helps mitigate the risk of insider threats, as even employees or administrators with access to the database cannot read or misuse the encrypted data without proper authorization.

**Secure Data Sharing:** With encryption, organizations can securely share sensitive data with trusted parties, ensuring that only authorized recipients can decrypt and access the information.

Encryption plays a vital role in ensuring the security and privacy of data in database systems. By leveraging encryption techniques such as symmetric and asymmetric encryption, organizations can protect sensitive information from unauthorized access. By implementing encryption in database systems, organizations can fortify their data protection measures and maintain trust with customers and stakeholders in an increasingly interconnected world.
Terraform Linting and Validation with a shell script
Tags: terraform, devops, productivity, iac
Published: 2023-06-26 23:05:03

🚀💻 **Terraform Linting and Validation with a shell script** 🛠️🔍

Are you a Terraform enthusiast? 🌍✨ Writing Terraform configurations is just like embarking on an exciting coding adventure, full of possibilities! However, like with any programming language, you need to ensure your code is properly formatted, linted, validated, and secure. 😎🔒

But worry not! I've got a little shell script that will save your day! Designed to work with `zsh`, this script will guide you through the essential steps of Terraform development. Let's take a look: 

1️⃣ **[Formatting](https://developer.hashicorp.com/terraform/cli/commands/fmt)**: If you're coming from a software engineering background, this is similar to running `prettier` to adhere to a standard format, and it makes the configurations more readable.

2️⃣ **[Linting with `tflint`](https://github.com/terraform-linters/tflint)**: Don't let small mistakes slip through the cracks! With the power of `tflint`, you can catch potential issues in your code before they cause trouble.

3️⃣ **[Security check with `tfsec`](https://github.com/aquasecurity/tfsec)**: Protect your infrastructure and ensure your Terraform code aligns with best security practices. The mighty `tfsec` will scan your configurations and help you identify vulnerabilities, ensuring your deployments are bulletproof! 🔒🔍💂‍♂️

4️⃣ **[Validation](https://developer.hashicorp.com/terraform/cli/commands/validate)**: It's time to validate your masterpiece! Let's make sure everything is in order before deploying your Terraform configurations. This step will check the syntax and whether the configuration is internally consistent and ensures that it is ready for prime time! 🌟🚀

You can use it as a git pre-commit hook if you setup the `TFLINT_CONFIG` variable.

{% embed https://gist.github.com/rudolfolah/4e1440e1a7262ec8c7af0517df0aa2fe %}

With this handy shell script, your Terraform development process becomes a breeze!

Happy hacking! 💻
Mi Router 4A Gigabit için Kurtarma ve Stock Yazılıma Dönme Rehberi
Published: 2023-06-26 22:53:45

Bu yöntem ile Windows üzerinde Mi Router 4A Gigabit cihazlarınızı brick olduğunda kurtarabilecek veya stock yazılımına dönebileceksiniz.  

**Rehberimizi kaynak göstererek paylaşmanız önemle rica olunur.** 🙏

<p align="left">
  <a href="https://youtu.be/F7kfNIsIu5U"><img src="https://img.shields.io/badge/Youtube-Video Rehberi-blue?logo=youtube&logoColor=white"/></a>
</p>

## ✨ Başlarken

- Kuruluma başlamadan önce routerımıza ait dosyayı indirelim ve masaüstüne çıkartalım.
    - İngilizce Sürüm: [4A-GIGA-ENG.zip](https://github.com/yucellmustafa/yucellmustafa.github.io/releases/download/v1.1/4A-GIGA-ENG.zip)
    - Çin Sürüm: [4A-GIGA-CN.zip](https://github.com/yucellmustafa/yucellmustafa.github.io/releases/download/v1.1/4A-GIGA-CN.zip)

- <details>
  <summary>Windows Ağ ayarlarından Ethernet ip ayarlarını yapalım</summary>

  > Denetim Masası\Ağ ve Internet\Ağ Bağlantıları

  <img src="https://github.com/yucellmustafa/yucellmustafa.github.io/assets/49123562/a5a60c62-add2-4993-a13d-18f878c173a0"/>
  
  </details>

- Son olarak routerı ethernet kablosu ile LAN portundan bilgisayarımıza bağlayalım ve güç kablomuzu routera takalım.

## 🚀 Kurtarma veya Stock Yazılıma Dönme

- <details>
  <summary>İlk olarak "Tiny PXE Server" programını açalım. IP adresi ve alttaki dosya adının resimdeki gibi olduğunu kontrol edelim. Doğru ise Online butonuna tıklayalım
  
  (*IP Adresi farklı ise diğer internet bağlantılarınızı kapatın*)</summary>

  <img src="https://github.com/yucellmustafa/yucellmustafa.github.io/assets/49123562/43fdba17-fa67-4584-a811-43045f8f6c97"/>

  </details>

- Routerın güç bağlantısını keselim.

- Reset tuşuna basılı tutarak güç kablosunu takalım. Led turuncu yanıp yanıp sönecektir. Tiny PXE Server programında bilgi ekranında yazılar kayacaktır.

- Turuncu led sabit bir şekilde yanmaya başladıktan sonra 10 saniye daha reset tuşuna basılı tutalım. Daha sonra reset tuşundan elimizi çekebiliriz.

- 5-10 dakika arasında ledler maviye dönecek ve sabit bir şekilde yanmaya başlayacaktır.

- İşlemlerin bittiğinden emin olduktan sonra Tiny PXE Server programındaki Offline butonuna basalım ve programı kapatalım.

- Daha sonra Ağ ayarlarında yaptığımız değişiklikleri eski haline almayı unutmayalım.

- Artık [192.168.31.1](http://192.168.31.1) adresinden router arayüzüne girerek gerekli kurulumları yapabilirsiniz.

- **Tebrikler kurtarma işlemi veya stock yazılım kurulumunu tamamladınız.** 👏👏

## 💖 Özel Teşekkürler
- Yardımlarından dolayı [@DogukanYNK](https://github.com/DogukanYNK)'a teşekkürler.
- Yazdığı güzel readme'den örnek aldığım için [@frudotz](https://github.com/frudotz)'a teşekkürler.

## 🗃️ Kaynaklar
- [Hoddys Guides](https://hoddysguides.com/xiaomi-debrick-tools-all/)

---
🎀 Rehberimizi okuduğunuz için teşekkür ederiz!
[Summary] Chapter#03 "The Internals of PostgreSQL" Query Processing (Part-03)
Tags: apacheag, postgres, bitnine, devcommunity
Published: 2023-06-26 22:42:23

**Join Operation:**
PostgreSQL supports three join operations:
- **Nested Loop Join**
It is the fundamental join operation and it can be used in any join condition.
It does not need any start-up cost. The run cost of nested loop join is proportional to product size of outer and inner table.

**Materialised Nested Loop Join:**
Materialised nested loop join used to reduce the total scanning cost of the inner table. Before running a nested loop join, the executor writes the inner table tuple to the work_mem or temporary file by scanning the inner table. It uses the inner table tuple more efficiently.

- **Merge Join**
Merge join is only used in natural joins and equi joins, and the cost of merge join is estimated by initial_cost_mergejoin() and final_cost_mergejoin() functions. Cost estimation is start-up cost of merge join is sum of sorting costs of both inner and outer tables, start-up cost is O(Nouter log2(Nouter)+Ninner log2(Ninner)).

- **Hash Join**
Hash join can be used only in natural joins and equi-joins. It depends on the size of table, if it is small enough then it will be two-phase in memory hash join, otherwise hybrid hash join is used with skew method, and the cost estimation is omitted.

- **In-Memory Hash Join:**
Hash table area is called batch in PostgreSQL and batch has hash slots called buckets and number of buckets described by ExecChooseHashTableSize() function.

- **Hybrid Hash Join with Skew:**
It is used when the tuple of the inner table cannot be stored into one batch in work_mem. In the first build and prob phase, PostgreSQL prepares multiple batches. The number of batches is the same as the number of buckets. 

**Join Access Paths and Join Nodes:**
- **Join access path:**
An access path of the nested loop join is the join path structure and other join access paths, Merger path and hash path are based on it.
- **Join Nodes:**
This subsection shows the three join nodes:
- **NestedLoopNodes**
- **MergeJoinNodes**
- **HashJoinNodes**

**Creating the Plan Tree of Multiple-Table Query:**

**Preprocessing:**
Preprocessing for multiple-table query will be described:
- **Planning and converting CTE**
- **Pulling Subqueries Up**
- **Transforming an outer join to an inner join**

**Getting Cheapest Path:**
It is a very expensive process if planners consider all combinations of indexes and join methods and it will be infeasible if the number of tables exceeds a certain level. If a number less than 12 planner can get optimal results by applying dynamic programming, otherwise genetic algorithms.

[Reference](https://www.interdb.jp/pg/pgsql0303.html)
Day 770 : All I Really Wanna Do
Tags: hiphop, code, coding, lifelongdev
Published: 2023-06-26 22:20:36

_liner notes_:
- Saturday : Made it to the radio station. Had a good time as usual. The recording of this week's show is at https://kNOwBETTERHIPHOP.com

![Radio show episode image of a property on marsh land with a red boundary line marking out the property showing that half of a house is within the boundaries with the words June 24th 2023 Gouging](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tvf9r4nqk0ynuchluild.jpg)

- Sunday : Did my study sessions (https://untilit.works) and was pretty productive. Ended the night finally catching up with "Vinland Saga". Really great series.

- Professional : Got a chance to catch up with my manager's manager. Really good talking with them. Basically spent the rest of the day working on my upcoming blog post.

- Personal : Quickly went over the HTML Canvas tutorial and checked out the stuff I want to use for my project. Including images from a URL, styling text and saving the file as an image. I'm working on a proof of concept and see if I can get it working and then incorporate that into my project. All I really want do is get past this part so I can finish up the project and start using it.

![A valley in Lake O'Hara, BC, Canada with a stone path winding through a sparse forest with orange yellow trees and a lake in the middle with mountains surrounding everything](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6rb80x6whj86492z8obd.jpg)

My plan is to work on my side project and go through tracks for the radio show. I have to get up early tomorrow to go somewhere so I'll be calling it a night early. Also, I may have thought of another side project, haha.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube vFMHcsHd1hk %}
Launching Backbone
Tags: security, privacy, cybersecurity, startup
Published: 2023-06-26 21:57:02

👋 Hey **dev.to**!

We’re excited to announce Backbone — our project to build the digital equivalent of a bank vault for organizations’ sensitive data.

In a world where data breaches are rampant and surveillance is commonplace, organizations today store their sensitive data using general-purpose software that was not designed to provide the necessary protections. This is typically followed up by deploying complex, expensive solutions to address their neglect of privacy and security.

**What does the platform do?**

![backbone-secret-vault](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c71qy4h30qvidnbsxzer.png)

Backbone is designed to provide maximalist security properties with minimal friction.
Powered by innovations in cryptographically assured access controls, tamper-evident technology and a trust model that you fully control, our end-to-end encrypted data platform keeps your data safe even if Backbone itself is compromised.

On this foundation, we're launching our first two products:

1. Backbone Secrets is the user-facing command center for your organization's sensitive data. With Secrets, you can securely store, access and share files, passwords and other resources - with granular cryptographic assurance of who can and cannot access your data.

2. Backbone SDK allows any developer to safeguard data that resides in untrusted or semi-trusted systems and networks outside Backbone and seamlessly integrates with Secrets to power end-user workflows with unparalleled security.

We that this foundation helps build the next generation of privacy-preserving, secure-by-definition applications.

We're always interested in hearing your ideas, thoughts and feedback. Don't hesitate to reach out to us through our [Discord](https://discord.com/invite/36M4yb6XSG) community or by emailing us at **root@backbone.dev**.

![backbone-received-secret](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vzo1wshpcryy1iqkjv04.png)
Project ROVER is a new robotic platform being developed for law enforcement and emergency services.
Tags: robotics, robot, 3dprinting
Published: 2023-06-26 21:50:32

 **ROVER** is a small four wheeled robot equipped with a variety of sensors, devices and capabilities, including BLE tracking, real time camera viewing, RF Grid mapping, deployable bi directional amplifier and a dedicated cellular network. **ROVER** can be used for a variety of tasks such as search and rescue, patrol, evidence collection, disaster response and active shooter response. The ROVER is still under development, but it could be a valuable tool for law enforcement.

Here are some of the key benefits of using **ROVER**:

**- Increased officer safety:** ROVER can help improve officer safety by allowing officers to enter dangerous or hazardous environments without putting themselves at risk.

**-Improved Situational Awareness:** ROVER can help improve officers' situational awareness by providing officers with real time images of their environment. This can help officers identify potential threats and make better decisions.

**-Increased Efficiency:** ROVER can help increase officer efficiency by allowing officers to focus on other tasks, such as crime scene investigation or medical care.

**-Long term cost effectiveness:** While the initial investment in developing and implementing robots can be significant, they can provide long term cost savings. Robots can perform repetitive and routine tasks with high accuracy and consistency, reducing the need for human labor in such areas.

This technology offers unprecedented levels of benefit, value and efficiency. It not only enhances asset security and protection, but also optimizes resource allocation, streamlines operations and brings peace of mind to those who rely on a robust security infrastructure.

All in all, Project ROVER is a promising new technology that can improve the security and efficiency of law enforcement.



**Follow our updates:**
**· Official web site of the project:** https://www.roverrobot.org/
**· The official website of the project on LinkedIn:**
https://www.linkedin.com/company/project-rover-inc/about/


**· Leaders and members of the company:**
**· Brian Martin CEO:**
https://www.linkedin.com/in/brian-martin--/
**· Dhruv A. director:**
 https://www.linkedin.com/in/dhruv-a-72662166/
**· Mike Matranga President:**
 https://www.linkedin.com/in/mike-matranga-23b59427/
**· Anthony Ferguson Secretary:** 
https://www.linkedin.com/in/anthony-j-ferguson/
**· Engineering Team CTO:**
https://www.linkedin.com/in/oleg-gridin-74563a226/
**· Engineering team:**
https://gec-engineering.tech/about-us/
VB6 LISTVIEW control grid line thickened, set the color?
Published: 2023-06-26 21:37:07

[https://www.vbforums.com/showthread.php?900432-HOW-To-show-listview-Control-by-vb6-api&p=5609912&viewfull=1#post5609912](https://www.vbforums.com/showthread.php?900432-HOW-To-show-listview-Control-by-vb6-api&p=5609912&viewfull=1#post5609912)

can you help he for listview control?
```
LVhWnd = CreateWindowEx(0, "SysListView32", vbNullString, dwStyle, 0, 0, 500, 600, Me.hWnd, 0, App.hInstance, ByVal 0)
```

like this:
ListControl control draws grid lines_lvs_ex_gridlines
[url]https://blog.csdn.net/qing666888/article/details/49928917[/url]

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0ix5l9cj15lsbku32imo.png)
The default grid lines are too hard to see. I want to make the grid lines thicker. How to set them?
or set the line color
[IMG]https://www.vbforums.com/attachment.php?attachmentid=187951&d=1687794599[/IMG]
how to set grid lines ?
What's One Thing You'd Change about Coding Education?
Tags: discuss
Published: 2023-06-26 21:21:38

Imagine you have the incredible power to make a single change to the coding education system. What would it be? Whether you're a seasoned programmer or just starting out, we want to hear your thoughts. Join the conversation and share your ideas on the one thing you'd transform and the reasons behind it. Let's explore how we can make coding education even better together! 💻🚀

Follow the DEVteam for more discussions and online camaraderie!

{% embed [https://dev.to/devteam](https://dev.to/devteam) %}