teleren/devto huggingface dataset:
Observable facts that denote deeper meaning abstracted from the lower level details within a system and its particles
Published: 2023-01-06 02:36:50

**1. The laws of motion:** These observable facts describe the behavior of objects in motion and reveal underlying principles about the way that they are affected by forces and the way that they move through space.
    
**2. The laws of thermodynamics:** These observable facts describe the behavior of heat and energy and reveal underlying principles about the way that these quantities are conserved and transformed within a system.
    
**3. The principles of quantum mechanics:** These observable facts describe the behavior of particles on a very small scale and reveal underlying principles about the wave-like nature of matter and the uncertainty principle.
    
**4. The structure and function of cells:** These observable facts describe the way that cells are organized and the processes that they carry out, and reveal underlying principles about the way that cells function as the basic units of life.
    
**5. The mechanisms of evolution:** These observable facts describe the way that living organisms change and adapt over time, and reveal underlying principles about the way that evolution occurs and the factors that influence it.
    
**6. The principles of ecology:** These observable facts describe the relationships between living organisms and their environment, and reveal underlying principles about the way that ecosystems function and the way that they are affected by external factors.
    
**7. Patterns of behavior:** These observable facts describe the way that individuals or groups behave in different situations, and reveal underlying principles about the way that behavior is influenced by external factors or internal states.
    
**8. Trends in social attitudes or beliefs:** These observable facts describe the way that attitudes or beliefs change over time, and reveal underlying principles about the way that these attitudes or beliefs are shaped by social, cultural, or political factors.
    
**9. The dynamics of power and influence:** These observable facts describe the way that power and influence are distributed within a system, and reveal underlying principles about the way that these dynamics shape the behavior and relationships within the system.
แฟนผมเป็นประธานนักเรียน EP.5 ดู ตอนเต็ม ซีรีย์เกาหลี THAI
Published: 2023-01-06 02:36:30

▷ดูซีรี่ย์ แฟนผมเป็นประธานนักเรียน EP 5 ย้อนหลัง BLUERAY!, ▷ดูซีรีส์ My School President (แฟนผมเป็นประธานนักเรียน) EP 5 ย้อนหลัง ตอนเต็ม, ดู-ซีรีส์ My School President (แฟนผมเป็นประธานนักเรียน) EP 5 ย้อนหลัง - 2023 ตอนเต็ม, [ดูซีรีส์] My School President แฟนผมเป็นประธานนักเรียน The Series เดอะ ซีรีส์ EP5, ▷ดูซีรีส์ แฟนผมเป็นประธานนักเรียน My School President EP 5 ย้อนหลัง ตอนเต็ม, ดู-ซีรีส์ แฟนผมเป็นประธานนักเรียน My School President EP 5 ย้อนหลัง ตอนเต็ม

**▶ ดูที่นี่ ➾➾ [ดู แฟนผมเป็นประธานนักเรียน My School President EP.5 กระปุก ดูซีรีย์ในมือถือ HD Full’HD](https://play.flixmax.stream/th/tv/214873-1-5/episode-5)**

My School President แฟนผมเป็นประธานนักเรียน EP 5 ย้อนหลัง BLUERAY!, ▷ดูซีรีส์ My School President (แฟนผมเป็นประธานนักเรียน) EP 5 ย้อนหลัง ตอนเต็ม, ดู-ซีรีส์ My School President (แฟนผมเป็นประธานนักเรียน) EP 5 ย้อนหลัง – 2023 ตอนเต็ม, [ดูซีรีส์] My School President แฟนผมเป็นประธานนักเรียน The Series เดอะ ซีรีส์ EP5, ▷ดูซีรีส์ แฟนผมเป็นประธานนักเรียน My School President EP 5 ย้อนหลัง ตอนเต็ม, ดู-ซีรีส์ แฟนผมเป็นประธานนักเรียน My School President EP 5 ย้อนหลัง ตอนเต็ม
ซีรีส์เรื่องนี้เป็นแนวโรแมนติกคอมมาดี้ ของ 2 คู่ 2 รส เล่าถึงคู่แรก “พายุ” – หนุ่มสถาปนิกหล่อตี๋แสนเพอร์เฟค กับคู่ของเค้า “เรน” – เด็กหนุ่ม หน้าใส มาดกวน ที่โคจรมาพบกันแบบบังเอิญทุกครั้งที่ฝนตก และคู่ที่สอง “พระพาย” – หนุ่มนักธุรกิจหนุ่ม รูปหล่อ ไฟแรง ที่เต็มไปด้วยความมั่นใจในตัวเอง กับ “สกาย” – หนุ่มหล่อตี๋นักศึกษาคณะสถาปัตย์ ที่มีนิสัยเข้ากับคนง่ายมากแต่กลับกลัวความรัก งานนี้เมฆฝนและสายลมพัดพาพวกเค้าให้มาเจอกัน สงครามความรักแบบแสบสันอลม่านจึงเกิดขึ้น… ความรักของทั้งสี่คนจะเป็นยังไง ติดตามได้ใน แฟนผมเป็นประธานนักเรียน (My School President)

แฟนผมเป็นประธานนักเรียน My School President EP5
แฟนผมเป็นประธานนักเรียน My School President EP5กระปุก
แฟนผมเป็นประธานนักเรียน My School President EP5กรุงเทพ
แฟนผมเป็นประธานนักเรียน My School President EP5กยศ
แฟนผมเป็นประธานนักเรียน My School President EP5กระสุนสีเพ
แฟนผมเป็นประธานนักเรียน My School President EP5กพ
แฟนผมเป็นประธานนักเรียน My School President EP5ขาย
แฟนผมเป็นประธานนักเรียน My School President EP5ขายที่ไหน
แฟนผมเป็นประธานนักเรียน My School President EP5ฅ คน
แฟนผมเป็นประธานนักเรียน My School President EP5 งง
แฟนผมเป็นประธานนักเรียน My School President EP5 จบ พากย์ไทย
แฟนผมเป็นประธานนักเรียน My School President EP5 จบยัง
แฟนผมเป็นประธานนักเรียน My School President EP5 จบยังไง
แฟนผมเป็นประธานนักเรียน My School President EP5 ฉายวันไหน
แฟนผมเป็นประธานนักเรียน My School President EP5 ฌาปน
แฟนผมเป็นประธานนักเรียน My School President EP5 ฌากย์ไทย
แฟนผมเป็นประธานนักเรียน My School President EP5 ญี่ปุ่น
แฟนผมเป็นประธานนักเรียน My School President EP5 ฎีกา
แฟนผมเป็นประธานนักเรียน My School President EP5 ฐาน 1
แฟนผมเป็นประธานนักเรียน My School President EP5 ฐาน 2
แฟนผมเป็นประธานนักเรียน My School President EP5 ฐาน 3
แฟนผมเป็นประธานนักเรียน My School President EP5 ฑา
แฟนผมเป็นประธานนักเรียน My School President EP5 ฒพ
แฟนผมเป็นประธานนักเรียน My School President EP5 ดูได้ที่ไหน
WhaleOps is selected as 2022 China's cutting-edge technology pioneer enterprise
Tags: whaleops, technolog
Published: 2023-01-06 02:19:31

Congratulations!👏🏻🎉🎉WhaleOps is selected as 2022 China's cutting-edge technology pioneer enterprise by leading technical media SegmentFault.

Thanks for the honor, and we will work harder to strengthen the ecology construction to serve more developers and offer more DevOps services for helping with enterprises' digital transformation. 💪🏻💪🏻
How to identify an Azure Spot Virtual Machine?
Tags: azure
Published: 2023-01-06 02:10:52

Azure Spot Virtual Machines are one of the best ways to save costs on non-critical applications.

Here is how we identify which VMs we have are Spot and which ones are normal ones.

### Virtual Machines Table

In the **Virtual Machines** page, click on **Manage View** -> **Edit Columns. **

Select the following columns:
- Azure Spot eviction policy
- Azure Spot eviction type
- Azure Spot max price

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

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

### Within a Virtual Machine

Under **Settings**, click on **Properties**.
If there are values under **Azure Spot eviction policy** and/or **Azure Spot eviction type**, this indicates this is a Spot machine.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3uivsgxb2f5yrpuraaax.png)
Best practices for organizing and structuring your PHP code
Published: 2023-01-06 02:06:33


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jcr7ege60671l3v170nm.jpg)
Good code organization and structure is an essential aspect of any software development project. It helps to make code more readable, maintainable, and scalable. In this article, we will explore some best practices for organizing and structuring your PHP code.

**Use a consistent coding style:**

One of the most important things to consider when organizing your PHP code is to use a consistent coding style. This includes things like using the same indentation, naming conventions, and commenting style throughout your codebase. Using a consistent style makes it easier for other developers to understand and work with your code. It also helps to prevent bugs and other issues that can arise from inconsistent coding practices.

**Group related code together:**

Another important aspect of code organization is to group related code together. For example, you should try to keep all database-related code together, all code related to user input validation together, etc. This makes it easier to find and modify specific parts of your code when needed. 

**Use functions and classes:**

Functions and classes are powerful tools for organizing your PHP code. Functions allow you to group related code together and give it a descriptive name, making it easier to understand and use. Classes allow you to create reusable components that can be used throughout your codebase.

**Use a consistent file organization:**

In addition to organizing your code within a single file, it is also important to use a consistent file organization for your entire codebase. This includes things like using a consistent naming convention for your files and organizing them into relevant directories.

**Use a consistent naming convention:**

Choose a naming convention for your variables, functions, and classes, and stick to it throughout your project. This will make your code easier to read and understand.

**Use appropriate levels of abstraction:**

Group related code into functions and classes, and use inheritance and interfaces to establish a clear hierarchy of abstraction. This will make your code more modular and easier to reuse.

**Follow the Single Responsibility Principle:**

Make sure that each function or class in your code has a specific, well-defined responsibility. This will make your code more modular and easier to maintain.

**Use composer for dependency management:**

Composer is a popular package manager for PHP that allows you to easily manage the external libraries that your project depends on. This will make it easier to update and maintain your dependencies.

**Use a version control system:**

Use a version control system, such as Git, to track changes to your code over time. This will make it easier to collaborate with other developers and revert back to previous versions if necessary.

[Learn more about PHP](https://codetutorialz.com/php)
💻 🤯 AuthN with Authentik, keyboard training with rapid_typing, Analytics with Fugu
Tags: opensource, analytics, security, tooling
Published: 2023-01-06 02:00:11

There are a lot of awesome free and open source projects out there, and it's my mission to get them to you (and find about more). 

Here's a batch we [mentioned recently](https://awsmfoss.com/edition-41/):

## 🔑 Authentik

[Authentik](https://goauthentik.io) ([code](https://github.com/goauthentik/authentik)) is an Authentication ("AuthN") glue library that  makes it easy to improve your security. Whether it's adding SSO in front of some applications, or acting as an OpenID provider, it's a great relatively light-weight alternative to tools like Keycloak that can be quite cumbersome.

## ⌨️ rapid_typing
[`rapid_typing`](https://github.com/dprovodnikov/rapid_typing) is an obscenely simple faster typing application that helps you practice typing. While the project hasn't seen any commits since 2017 and the demo is down (previously hosted on Heroku, likely on the now-removed free tier), but it's worth looking at if you want a bare-bones, minimal self-hosted tool for improving your typing.

## 🐠 Fugu
[Fugu](https://fugu.lol/) ([code](https://github.com/shafy/fugu)) provides simple, privacy-friendly, open source and self-hostable product analytics. While many tools claim to be Google Analytics alternatives, one of the things Fugu really gets right is properly doing "product analytics" – Going beyond simple view tracking to help you figure out how users are using your (web) software.
Singleton in Android
Tags: android
Published: 2023-01-06 01:55:29

The Singleton design pattern is a software design pattern that ensures that a class has only one instance, and provides a global point of access to that instance. This can be useful in Android development when you need to share data or state across multiple activities or fragments.

There are several ways to implement the Singleton pattern in Android, each with its own set of pros and cons. Here, we'll take a look at three common approaches:

- Lazy initialization: This is the most straightforward way to implement the Singleton pattern. The instance is created only when it is needed, and it is stored as a static field. This approach is simple, but it is not thread-safe and can cause performance issues if the instance is expensive to create.
- Eager initialization: In this approach, the instance is created as a static field when the class is first loaded. This ensures that the instance is always available, but it can waste resources if the instance is not actually needed.
- Double-checked locking: This approach uses a combination of lazy initialization and synchronization to create the instance in a thread-safe way. It is more complex than the other two approaches, but it provides the best performance in cases where the instance is expensive to create.

Which approach is best for your project will depend on your specific needs. Lazy initialization is a good choice if the instance is inexpensive to create, while double-checked locking is a better choice if the instance is expensive to create. Eager initialization is a good choice if the instance must be available immediately, but it can waste resources if the instance is not actually needed.

In summary, the Singleton design pattern is a useful tool for managing global state and shared data in Android development. By carefully considering the trade-offs between different implementation approaches, you can choose the one that is best suited to your project's needs.
Tips for optimizing PHP code for better performance
Tags: php, optimization
Published: 2023-01-06 01:33:55


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cnbriinidg0gzrx02v0w.jpg)
PHP is a popular programming language that is widely used to build dynamic and interactive web applications. However, as the complexity and scale of these applications increase, it is important to optimize the PHP code to ensure that they perform efficiently and effectively. Here are some tips for optimizing PHP code:

1. Use a PHP accelerator: A PHP accelerator is a tool that speeds up the execution of PHP scripts by caching the compiled bytecode in memory. This reduces the time spent on parsing and compiling the PHP code, leading to faster execution. Some popular PHP accelerators include APC, XCache, and eAccelerator.

2. Use single quotes for strings: Single quotes are faster than double quotes because PHP does not have to parse the string for variables. Use single quotes whenever possible, especially for long strings.

3. Avoid using global variables: Global variables can be accessed from anywhere in the code, which can lead to messy and hard-to-maintain code. Try to avoid using global variables and use local variables or function arguments instead. 

4. Use the latest version of PHP: PHP is constantly being improved and optimized. Make sure to use the latest stable version of PHP to take advantage of these improvements. 

5. Use prepared statements for database queries: Prepared statements are a way to optimize database queries by allowing the database server to parse and compile the query once, and then execute it multiple times with different parameters. This can significantly improve the performance of database-intensive applications.
 
By following these tips, you can optimize your PHP code and improve the performance of your web applications. It is worth noting that these are just a few of the many ways to optimize PHP code, and the specific optimizations will depend on the characteristics and requirements of your application.

[Learn more about PHP](https://codetutorialz.com/php)
Estou ultrapassada...
Tags: webdev, braziliandevs, career
Published: 2023-01-06 01:22:34

Difícil essa afirmação, mas percebo que hoje, com 36 anos, a brincadeira de "programar na internet" e "ir com calma" ficou lá atras (provavelmente quando os meus cabelos brancos não existiam).

Chocante estar com 36 anos e se auto-entitular _"ultrapassada"_?

Estou aqui, a mais de 9mil km de distância da minha zona de conforto (e segurança) e me deparo com uma ultra dificuldade de iniciar um blog. UM BLOG!

Não, não é que eu não tenha conhecimentos para isso, mas percebo que eu não to com saco de fazer mais algumas coisas. Bom, eu pedi para o meu enteado configurar a nova TV da sala... 

O que fazer agora? Não sei. Sei que nesse tempo que estamos falando, o GatsbyJS foi instalado e o blog será atualizado via markdown.

As vezes nós só precisamos aceitar a idade ao invés de mentir para nós mesmos. Bem vindo quase 40!
AI Narration
Tags: ai
Published: 2023-01-06 00:50:50

{% embed https://youtu.be/zPL9-mi23jc %}

AI narration, also known as artificial intelligence narration, refers to the use of AI-powered technology to create a narrative or tell a story. This can take many forms, from using AI to generate text for a news article or social media post, to creating a fully automated news anchor that can read and present the news, to using AI to create a voice-over for a video or audio presentation.

One of the main benefits of using AI for narration is the ability to quickly and efficiently create a high-quality narrative without the need for a human narrator. This can save time and money, especially when producing large amounts of content or when the content needs to be updated or changed frequently.

AI narration can also be used to create more personalized and engaging content. For example, AI-powered voice assistants like Siri and Alexa use natural language processing to understand and respond to user requests, and can even adapt their responses based on the user's past interactions. This allows these voice assistants to provide a more personalized and interactive experience for users.

However, there are also some limitations to using AI for narration. AI systems can struggle with tasks that require a high level of creativity or nuance, and may not be able to fully replicate the intonation and inflection of a human narrator. In addition, AI narration may not be suitable for all types of content or audiences, and may require careful consideration and testing to ensure that it is effective and appropriate.

Overall, AI narration has the potential to revolutionize the way we create and consume narratives, and is likely to become increasingly prevalent in the coming years. While it is not a replacement for human narrators, it can be a useful tool for quickly and efficiently creating high-quality content, and for providing a more personalized and engaging experience for users.
Everyday objects as JavaScript objects
Tags: javascript
Published: 2023-01-06 00:29:33

Furniture. Before we dive into objects lets talk about Values. What is a value? The numerical value of something stored in computer memory. 

**What's an example of a value**? Let's pretend Devon is an object. A *key (name)* in the object Devon is payRate, his hourly rate of $65/hour is the *value* assigned to the key. 

**What's an object**? A collection of properties. Each property contains a *key (name)* and a *value*. In this example payRate is the key and the numerical value stored in computer memory referring to $65/hour is the value.

**What's a method**? A method is a *function* as a value within a property in an object. The function itself is an object with special properties and methods that make it behave the way they do. Let's call the method paySalary in reference to Devon as the _object_ 

## What do JavaScript objects do and what could they look like?
They allow us to store related values in a convenient structure. Objects allow us to relate methods to the values they should operate on. 

We can think of an object as a bookshelf where each shelf represents a key value pair. The value itself is something like an object per ECMAScript 2020.

### Everything in JavaScript is an object except for primitive value types

JavaScript has user defined objects and built in objects like (functions, arrays, number, strings, boolean, set, map, date, math etc).

Objects are copied by reference. This means that an object doesn't refer to the value of something, instead it refers to _the numerical address stored in memory that the object is pointing to_ ➡️🤓

Let's look at a code snippet of the objects that match the picture examples:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aghkkj293cabw1emh8dk.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tj7gf3kipvee0a77uyo4.jpg)![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h59bukz0s3p7e33w8egh.jpg)
Incognito for Shell Commands
Published: 2023-01-06 00:02:26

We're usually careful not to store secrets in places easily accessible to others. We even do `chmod 600` on our keys in `~/.ssh` to prevent other users from reading it. There's one place, however, that we often forget to be careful about: our shell history files. Luckily, there are ways to prevent our commands that set or use secrets from entering our shell history. The following are instructions for how to go "incognito" for individual commands and prevent them from being logged in our shell history files.

## Zsh

`zsh` has an option that's perfect for this: `HIST_IGNORE_SPACE`. It even keeps the command around in-memory so you can execute it again if you need to while never writing it to disk.

The manpage has this to say about the option:

```
HIST_IGNORE_SPACE (-g)

  Remove command lines from the history list when the first character
  on the line is a space, or when one of the expanded aliases
  contains a leading space.  Only normal aliases (not global or
  suffix aliases) have this behaviour.  Note that the command lingers
  in the internal history until the next command is entered before it
  vanishes, allowing you to briefly reuse or edit the line.  If you
  want to make it vanish right away without entering another command,
  type a space and press return.
```

To begin using this you can call `setopt HIST_IGNORE_SPACE` in your shell. To have this enabled by default for your shell you can add it to `~/.zshrc`.

You can see this option and more using `man zshoptions`.

## Bash

`bash` also has an option for this: `HISTCONTROL`. Here's the manpage entry for that option:

```
HISTCONTROL

  A colon-separated list of values controlling how commands are saved
  on the history list.  If the list of values includes ignorespace,
  lines which begin with a space character are not saved in the
  history list.  A value of ignoredups causes lines matching the
  previous history entry to not be saved.  A value of ignoreboth is
  shorthand for ignorespace and ignoredups.  A value of erasedups
  causes all previous lines matching the current line to be removed
  from the history list before that line is saved.  Any value not in
  the above list is ignored.  If HISTCONTROL is unset, or does not
  include a valid value, all lines read by the shell parser are saved
  on the history list, subject to the value of HISTIGNORE.  The
  second and subsequent lines of a multi-line compound command are
  not tested, and are added to the history regardless of the value of
  HISTCONTROL.
```

You should check what the current value for `HISTCONTROL` is using `echo $HISTCONTROL`. You can keep the current value or modify it to your liking and add it to your `~/.bash_profile` using `export HISTCONTROL=ignorespace`.

Note that there are other possible values for this and you should read the manpage entry above (or `man bash`) for more details.