teleren/devto huggingface dataset:
Facebook Users Have Until August to Claim Share of $725 Million Settlement
Published: 2023-04-20 06:00:18

Facebook users who wish to participate in the class-action settlement can submit a claim by September 22, 2022. The only way to receive a payment from the settlement is by submitting a timely and completed claim form that is approved by the Settlement Administrator. If approved, users will give up the right to sue Facebook in a separate lawsuit about the legal claims this settlement resolves. Users can also choose to opt-out of the settlement by September 12, 2022, and receive no payment. However, this option allows them to sue Facebook, continue to sue, or be part of another lawsuit against the social media company related to the legal claims resolved by this settlement. Users who wish to object to the settlement can write to the Court by September 12, 2022, explaining their objections and may also file a claim for a payment. Those who do nothing will automatically be part of the settlement and will not get a payment from this settlement, but will give up the right to sue, continue to sue, or be part of another lawsuit against Facebook related to the legal claims resolved by this settlement.

The final approval hearing for the settlement is scheduled for September 7, and payments will be made to claimants once the court has approved the settlement, assuming there are no appeals. Although Facebook has implemented changes to its policies regarding user data, Meta did not acknowledge any wrongdoing as part of the settlement. In a statement, Meta spokesperson Dina Luce said that the company pursued a settlement because it was in the best interest of its community and shareholders. Luce also highlighted the company's efforts to improve privacy and implement a comprehensive privacy program over the last three years, with a continued focus on building services that prioritize privacy.

To make your claim, visit: [Facebookuserprivacysettlement.com](https://facebookuserprivacysettlement.com).

Looking for a web developer? I'm available for hire! To inquire, please fill out a [contact form](https://designly.biz/contact).
top88sites
Published: 2023-04-20 05:38:03

Top88⭐️cổng game đổi thưởng siêu hấp dẫn,
 thành viên tham gia nhận ngay khuyến mãi đầu tay
Địa Chỉ: 94 Văn Thân, Phường 8, Quận 6, Thành Phố Hồ Chí Minh, Việt Nam
Email: top88sites.com@gmail.com
Website: https://top88sites.com/
Điện Thoại: (+84) 921 220 994
#TOP88 #TOP88SITES_COM
<a href="https://top88sites.com/">https://top88sites.com/</a>
<a href="https://www.facebook.com/top88sites/">https://www.facebook.com/top88sites/</a>
<a href="https://twitter.com/top88sites">https://twitter.com/top88sites</a>
<a href="https://www.youtube.com/channel/UC_GJfGFfDjSLBkpoMnFJ">https://www.youtube.com/channel/UC_GJfGFfDjSLBkpoMnFJ</a>
<a href="https://www.pinterest.com/top88sites/">https://www.pinterest.com/top88sites/</a>
<a href="https://social.msdn.microsoft.com/Profile/top88sites">https://social.msdn.microsoft.com/Profile/top88sites</a>
<a href="https://bbs.now.qq.com/home.php?mod=space&uid=4297750">https://bbs.now.qq.com/home.php?mod=space&uid=4297750</a>
<a href="https://www.blogger.com/profile/01463478594248119851">https://www.blogger.com/profile/01463478594248119851</a>
<a href="https://www.reddit.com/user/top88sites">https://www.reddit.com/user/top88sites</a>
<a href="https://medium.com/@top88sites/about">https://medium.com/@top88sites/about</a>
<a href="https://www.flickr.com/people/top88sites/">https://www.flickr.com/people/top88sites/</a>
<a href="https://www.tumblr.com/top88site">https://www.tumblr.com/top88site</a>
<a href="https://top88sitescom.wixsite.com/my-site">https://top88sitescom.wixsite.com/my-site</a>
<a href="https://top88sites.weebly.com/">https://top88sites.weebly.com/</a>
<a href="https://top88sites.livejournal.com/profile">https://top88sites.livejournal.com/profile</a>
<a href="https://top88sites.wordpress.com/">https://top88sites.wordpress.com/</a>
Salesforce AppExchange App Development Services| Call us at:+1-989-800-0070
Tags: beginners, programming, webdev
Published: 2023-04-20 05:35:45

Looking for expert [Salesforce AppExchange app development](https://www.cloudycoders.com/blog/salesforce-appexchange-popular-applications/) services? Look no further! Our team of experienced developers specializes in creating custom Salesforce apps tailored to your specific business needs. We offer end-to-end app development solutions, from ideation and design to development, testing, and deployment.
What is a merkle tree ?
Tags: merkle, ethereum, blockchain
Published: 2023-04-20 05:15:20


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


A block header in a blockchain typically contains the following details:

Version number: Specifies the version of the software used to create the block.


Previous block hash: A reference to the hash of the previous block in the chain, linking the blocks together.

Merkle root: A hash of all the transactions in the block, serving as a compact representation of all the transaction data in the block.

Timestamp: The time the block was created, used to help prevent double-spending and to order transactions chronologically.

Difficulty target: Specifies the target for the proof-of-work calculation, which determines the rate at which new blocks are added to the chain.

Nonce: A random number used as an input in the proof-of-work calculation, which allows miners to perform the necessary
Scope & Closure in Javascript - Army of functions challenge
Tags: javascript, beginners, codenewbie, frontend
Published: 2023-04-20 05:09:41

While researching about scope and closure, I came across [this challenge from javascrip.info](https://javascript.info/task/make-army), The question is shown below:
```javascript
function makeArmy() {

	let shooters = [];
	let i = 0;

	while (i < 10) {
		let shooter = function() { // create a shooter function,
			alert( i ); // that should show its number
		};
		shooters.push(shooter); // and add it to the array
		i++;
	}
	return shooters;
}
let army = makeArmy();

// all shooters show 10 instead of their numbers 0, 1, 2, 3...
army[0](); // 10 from the shooter number 0
army[1](); // 10 from the shooter number 1
army[2](); // 10 ...and so on.
```
So, what is really happening?

As we can see, each iteration of the `while` loop we initialized and assigned the `shooter` function and then store them in the `shooters` array. Each instance has the reference to the `i` variable.

### Let's dive in the action of function.
When we invoke `army[0]()`, it firstly search the `i` variable in its local memory (which is the function's inner scope). When it cannot find `i` in its local scope, it continues to populate to the outside scope and searching for `i`, the current scope is now in the `while` loop (inner the `{...}`). In this scope there's still not any `i`. It continues to search in the broader scope, which is the `makeArmy` 's environment, now there's one `i` holding the value of `10`, and yet the `10` is logged in the `alert(i)` function.

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



### How to make the `i` unique value as we wanted?
Simply we will create a copied local variable of `i` in the iteration scope (`while` loop's scope)

```javascript
function makeArmy() {

	let shooters = [];
	let i = 0;

	while (i < 10) {
		let j = i; 👈
		let shooter = function() { 
			alert( j ); 👈
		};
		shooters.push(shooter);
		i++;
	}
	return shooters;
}
```
The `j` is now living in the iteration scope and each iteration it holds a new value of `i` incremented. And each instance of `shooter` has its own unique `j` but not using the outer `i`

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


`j` is encapsulated in each instance of `shooter`.

### Conclusion:
- Be careful when using the shared variable between instances of function.
- Each block scope has it own scope
```javascript
{
  let scopedContent = 'Hello scope'
}

console.log(scopedContent) 
// ReferenceError: scopedContent is not defined
```
Pune to Mahabaleshwar Cab
Tags: beginners
Published: 2023-04-20 05:09:25

Life has become so busy that people usually don't get free time to spend with your friends and family. But due to this schedule, hanging out with friends and family and enjoying the social life has just become a part of our dreams. So, in such a situation it becomes very important for us to make out some time for hanging out and enjoy a car ride with our loved ones. To do so book your [Pune to Mahabaleshwar cab](https://punetaxicabs.com/pune-to-mahabaleshwar/) and spend an ample amount of time with your friends and family so that day can create new memories. A journey from Pune to Mahabaleshwar can be memorable for you if you book our high quality Pune airport to Mahabaleshwar taxi service you will have several benefits when you plan to travel via taxi. But do you know what those benefits are? The journey with Pune to Mahabaleshwar taxi is very affordable as it gives you 24*7 services at low cost. Whenever you need you can customize your journey at your ease. Our Pune to Mahabaleshwar round trip cab or one way cab service ensures you for on-time pickup and drop service.
When it's about adjusting your luggage, should not need to worry because our Pune to Mahabaleshwar cab drivers are so helpful and cooperative that they will help you to adjust your luggage comfortably. If you travel with our Pune to Mahabaleshwar car, you can capture all the beautiful pictures and make the captivating memories for life. Our Pune to Mahabaleshwar sightseeing cab service gives you the advantage to take a halt in between to enjoy the beautiful spots. We also provide Mahabaleshwar to Pune cab service.
MOT Logging – WAL Redo Log Concepts
Tags: opengauss
Published: 2023-04-20 04:59:42

**Overview**
Write-Ahead Logging (WAL) is a standard method for ensuring data durability. The main concept of WAL is that changes to data files (where tables and indexes reside) are only written after those changes have been logged, meaning only after the log records that describe the changes have been flushed to permanent storage.

The MOT is fully integrated with the openGauss envelope logging facilities. In addition to durability, another benefit of this method is the ability to use the WAL for replication purposes.

Three logging methods are supported, two standard Synchronous and Asynchronous, which are also supported by the standard openGauss disk-engine. In addition, in the MOT a Group-Commit option is provided with special NUMA-Awareness optimization. The Group-Commit provides the top performance while maintaining ACID properties.

To ensure Durability, MOT is fully integrated with the openGauss's Write-Ahead Logging (WAL) mechanism, so that MOT persists data in WAL records using openGauss's XLOG interface. This means that every addition, update, and deletion to an MOT table's record is recorded as an entry in the WAL. This ensures that the most current data state can be regenerated and recovered from this non-volatile log. For example, if three new rows were added to a table, two were deleted and one was updated, then six entries would be recorded in the log.

**·** MOT log records are written to the same WAL as the other records of openGauss disk-based tables.

**·** MOT only logs an operation at the transaction commit phase.

**·** MOT only logs the updated delta record in order to minimize the amount of data written to disk.

**·** During recovery, data is loaded from the last known or a specific Checkpoint; and then the WAL Redo log is used to complete the data changes that occur from that point forward.

**·** The WAL (Redo Log) retains all the table row modifications until a Checkpoint is performed (as described above). The log can then be truncated in order to reduce recovery time and to save disk space.

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

**·** Parallel Redo Recovery - Since the openGauss 5.0 version release, the MOT engine includes a Parallel Recovery mechanism. The recovery operations are performed using multiple threads, while the transaction commit is done with a single thread, ensuring transactional consistency. This delivers low RTO for MOT tables as per openGauss specifications.

**Logging Types**
Two synchronous transaction logging options and one asynchronous transaction logging option are supported (these are also supported by the standard openGauss disk engine). MOT also supports synchronous Group Commit logging with NUMA-awareness optimization, as described below.

According to your configuration, one of the following types of logging is implemented:

**·** Synchronous Redo Logging
**·** Group Synchronous Redo Logging
**·** Asynchronous Redo Logging
**Additional information:**
**·** Logging Design Overview
**·** Per-transaction Logging
**·** Exception Handling
MOT Durability Concepts
Tags: opengauss
Published: 2023-04-20 04:56:21

Durability refers to long-term data protection (also known as disk persistence). Durability means that stored data does not suffer from any kind of degradation or corruption, so that data is never lost or compromised. Durability ensures that data and the MOT engine are restored to a consistent state after a planned shutdown (for example, for maintenance) or an unplanned crash (for example, a power failure).

Memory storage is volatile, meaning that it requires power to maintain the stored information. Disk storage, on the other hand, is non-volatile, meaning that it does not require power to maintain stored information, thus, it can survive a power shutdown. MOT uses both types of storage – it has all data in memory, while persisting transactional changes to disk MOT Durability and by maintaining frequent periodic MOT Checkpointsin order to ensure data recovery in case of shutdown.

The user must ensure sufficient disk space for the logging and Checkpointing operations. A separated drive can be used for the Checkpoint to improve performance by reducing disk I/O load.

You may refer to MOT Key Technologies section__for an overview of how durability is implemented in the MOT engine.

MOTs WAL Redo Log and checkpoints enabled durability, as described below –

**·** MOT Logging – WAL Redo Log Concepts

**·** MOT Checkpoint Concepts
Best Monitor For Programming India
Tags: display
Published: 2023-04-20 04:26:00

Whether you need a monitor as an external display or want to complete your PC setup, our list of the [best monitor under 15000 for programming](https://thegadgetdiary.in/best-monitor-under-15000-for-programming/) helps you to pick the best product on the market today. 

Programming tasks require an excellent display panel with vivid colors that show clear texts without losing any details. When you compile code in any code editor, it should be able to show you code precisely with amazing viewing angles. In that way, you make fewer errors and run your code fast and efficiently. 
So, we recommend looking for a monitor that offers good viewing angles, produces deep and rich text, and contains a lightweight design that easily fits on your desk space.
Hugging Face က Pre-Trained Model ကိုသုံးသည့် chatbot
Published: 2023-04-20 04:16:39



Python Version က 3.8.5 ကိုသုံးတာပါ။
Torch ပဲ install လုပ်ဖို့ လိုပါတယ်။

`pip install torch`

ပြီးရင် ကိုယ်သုံးချင်တဲ့ model ကို Hugging Face မှာရှာရမှာပါ။

ssmadha/gpt2-finetuned-scientific-articles ဆိုတဲ့ Model ပါ။


```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("ssmadha/gpt2-finetuned-scientific-articles")
model = AutoModelForCausalLM.from_pretrained("ssmadha/gpt2-finetuned-scientific-articles")

# Start the chat loop
while True:
    # Get user input
    user_input = input("You: ")

    # Tokenize user input and generate response
    input_ids = tokenizer.encode(user_input, return_tensors='pt')
    output = model.generate(
     input_ids,
     max_length=50,
     pad_token_id=tokenizer.eos_token_id,
     do_sample=False,
     top_p=0.9,
     top_k=0
    )
    response_text = tokenizer.decode(output[0], skip_special_tokens=True)

    print("ChatBot:", response_text)

```
How to Add Canonical Tags in Magento 2
Tags: webdev, magento, magento2tutorials
Published: 2023-04-20 03:51:04

Sanctioned labels are a valuable device for site proprietors to assist with looking through motors to comprehend which variant of a page ought to be thought of as the "principal" or "liked" rendition. 

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

Carrying out standard labels can assist you with staying away from copied content issues and guarantee that your site's pages are appropriately filed and positioned via web indexes and you will get a legitimate Magento 2 site. In this blog, we will talk about **_how to add canonical tags in Magento 2_**.

For more info, visit **_https://webguru.dev/how-to-add-canonical-tags-in-magento-2/_**
Francis GNA, a model that will hopefully beat all kind of AI one day.
Tags: computerscience, math, psychology
Published: 2023-04-20 03:41:21

Hello world. Something huge is being prepared ! 🙂

Read about it here:[https://link.medium.com/n1FXH1qQ8yb](https://link.medium.com/n1FXH1qQ8yb)

Follow it here:[https://twitter.com/the_francis_gna](https://twitter.com/the_francis_gna)
Postman
Tags: postmanstudent
Published: 2023-04-20 03:15:47

 first experiment with API
#
postmanstudent
As an engineering student, I recently attended a class on APIs and Postman, conducted by my colleague Mr. Joel Jason. The program was held in the evening in our computer lab and lasted until 4:30. Through practical sections and well-designed presentations, my friend did a fantastic job of introducing us to the world of APIs and how to use Postman for API testing.

APIs, or Application Programming Interfaces, are an essential part of software development. They allow different applications to communicate with each other and exchange data. For example, when you use a weather app, it is likely getting its data from an API that provides weather information.

During the class, we learned about the different types of APIs, which are widely used in web development. We also learned how to use Postman, a powerful app that allows developers to test APIs without having to write code.

Postman makes it easy to send requests to APIs and see the responses. You can test different endpoints and methods and view the data that is returned.

The class also included practical exercises where we had hands-on experience with creating and testing APIs using Postman. We worked on real-world scenarios where we had to create API requests, handle responses, and troubleshoot issues using Postman. These practical sessions were engaging and allowed us to apply the concepts we learned in a real-world context, which helped solidify our understanding of APIs and Postman.

Overall, the class was an excellent introduction to APIs and Postman. I now have a better understanding of how APIs work and how to use Postman for API testing. I highly recommend this class to anyone interested in software development, whether you are a beginner or an experienced developer.
662. Leetcode Solution in Java
Tags: java
Published: 2023-04-20 03:11:30

```java
/**
 * Definition for a binary tree node.
 * public class TreeNode {
 *     int val;
 *     TreeNode left;
 *     TreeNode right;
 *     TreeNode() {}
 *     TreeNode(int val) { this.val = val; }
 *     TreeNode(int val, TreeNode left, TreeNode right) {
 *         this.val = val;
 *         this.left = left;
 *         this.right = right;
 *     }
 * }
 */

class Solution {
  public int widthOfBinaryTree(TreeNode root) {
    if (root == null)
      return 0;

    int ans = 0;
    Deque<Pair<TreeNode, Integer>> q = new ArrayDeque<>(); // {node, index}
    q.offer(new Pair<>(root, 1));

    while (!q.isEmpty()) {
      final int offset = q.peekFirst().getValue() * 2;
      ans = Math.max(ans, q.peekLast().getValue() - q.peekFirst().getValue() + 1);
      for (int sz = q.size(); sz > 0; --sz) {
        final TreeNode node = q.peekFirst().getKey();
        final int index = q.pollFirst().getValue();
        if (node.left != null)
          q.offer(new Pair<>(node.left, index * 2 - offset));
        if (node.right != null)
          q.offer(new Pair<>(node.right, index * 2 + 1 - offset));
      }
    }

    return ans;
  }
}
```
#leetcode
#challenge
Here is the link for the problem:
https://leetcode.com/problems/maximum-width-of-binary-tree/
Text Games using Python and JS
Tags: javascript, programming, python, beginners
Published: 2023-04-20 02:42:07

I have recently stopped utilizing Unity and Unreal Engine for a couple of days in order to explore a gaming phase which old gamers remember such like Text RPGs. I decided to use Python and JS to make games like these. Not easy, it's a great challenge to improve your app and web creation skills.

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


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gv2q17iai122x27vryc0.png)
Rails console sandbox mode
Tags: rails, console, sandbox
Published: 2023-04-20 02:38:16

`rails c` or `rails console` starts the irb session, where we can execute, test and confirm queries. It is one of the helpful feature for developers. However we need to use it with caution as it is capable of modifying records. Any accidental modification in staging or production data might lead to problem.

There is an option to avoid this. Rails comes with an inbuilt `sandbox` mode. When you start the console with `--sanbox` flag, we will see a message `Any modifications you make will be rolled back on exit` because the whole irb session starts within an ActiveRecord::Transaction, which is rolled back when you exit the session.

Here's a sample

![rails console in sandbox mode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/feq2gf5ofmcg76f5s7gq.png)

But wait, There is a catch

In sandbox mode, database rows are fully locked, which means that it prevents your live production services from modifying them. If you are holding a record for too long, all the live transactions related to it have to wait till the lock is released or in some cases might mess up the updations.