teleren/devto huggingface dataset:
Understanding RTO & RPO in Disaster Recovery
Tags: aws, devops
Published: 2024-05-20 19:38:17

One of the key aspects to cloud security when protecting your data is Disaster Recovery. When it comes to recovery, it is broken down into two key metrics in continuity planning. 

- Recovery Time Objective
- Recovery Point Objective


## <u>What is Recovery Time Objective (RTO)?</u>

The RTO is defined by the amount of time it should take to restore any lost data, applications or systems after an outage or accident. This timeframe is usually measured from when the incident occurs to complete recovery. 
The idea behind establishing an RTO is to set a goal in order to minimize downtime and disruption in services. This goal is determined by the main question of: 
_"What is the maximum amount of downtime you can afford?"_

## <u>What is Recovery Point Objective (RPO)?</u>

RPOs are defined by the point in time in which you restore your data from. For instance, if a company has set an RPO of 8 hours, that typically means a backup of their data is set to occur every 8 hours. In the event of a disaster that results in lost data, that company will only lose 8 hours of new data that was added from the time of backup to the incident. 

---

## <u>Key Takeaways for RTO and RPO</u>

**Recovery Time Objective**
- Used to describe _maximum_ recovery time from point of incident
- Defined _before_ an incident occurs

**Recovery Point Objective**
- Used to describe _maximum_ amount of data lost
- Defined _after_ an incident occurs
- Dependent upon frequency of backups

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

## <u>Importance of Having a Recovery Solution</u>

As a company, your data is absolutely vital to your operations and losing that data would be a huge problem. This is why having a plan of action and leveraging RTOs and RPOs will not only decrease the after-effects of any downtime but allow you to be more efficient in managing any disasters that may strike.

[Click here to learn more!](https://aws.amazon.com/blogs/mt/establishing-rpo-and-rto-targets-for-cloud-applications/)
The smallest chatbot implementation using Langchain Ollama, and Python
Published: 2024-05-20 19:31:26

Thanks to : [Understand Ollama and LangChain Chat History in 10 minutes](https://www.youtube.com/watch?v=vsIsvcKA7M4)

```python
from langchain_community.llms import Ollama
from langchain_core.messages import HumanMessage, AIMessage
from langchain_core.prompts import ChatPromptTemplate,  MessagesPlaceholder

llm = Ollama(model = "llama3")

chat_history = []

chat_history = [
    ("human","My name is John")
]

prompt_template = ChatPromptTemplate.from_messages([
    ("system","your name is HAL, greeet user and answer questions with simple responses"),
    MessagesPlaceholder(variable_name= "chat_history"),
    ("human","{input}")
])

chain = prompt_template | llm

def  main ():
    while True:
        question = input("You : ")
        if question == "done":
            return
        response = chain.invoke({"input" : question,  "chat_history": chat_history})
        chat_history.append(HumanMessage(content=question))
        chat_history.append(AIMessage(content=response))

        print("AI  : " + response)

if __name__ == "__main__":
    main()
```

Example of discussion:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/30yleh2e8w5hrk8ncx5u.png)
Which should I learn?
Published: 2024-05-20 19:06:49

I am a 17 year old kid who wants to get into the It Field, I learn Delphi at Highschool, in Primary school we did scratch and did the basics of Python (Print, variables, etc.).

As i grew up I have always been in-front of a screen and always was curious on how everything worked from the insides of a computer to the applications and I knew that this could be a future for me, but I dont know where to start or what to learn.

So if anyone does has any input or advice on what field I should enter or what I should learn, please ,eave a comment below
Textbook Orthodontics - Braces & Invisalign
Published: 2024-05-20 19:02:54


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

Textbook Orthodontics is the leading Orthodontist in Los Angeles. Dr. Nathan Nourian believes that everyone deserves to have the smile of their dreams and thats why he has made "affordable braces in Los Angeles". Contact us if you're looking for "braces near me". We proudly offer Invisalign in Los Angeles, CA! We are excited for you to join the Textbook Orthodontic Family!

Textbook Orthodontics - Braces & Invisalign
Address: 8424 Van Nuys Blvd, Panorama City, CA 91402
Phone: 818-510-3440
Website: http://textbookorthodontics.com/
Contact email: access@growthfoundry.com

Visit Us:
https://www.facebook.com/textbookorthodontics
http://instagram.com/dr.braceface
https://www.youtube.com/@TextbookOrthodontics

Treatments We Provide:
Braces
Invisalign
Dental Retainers
Clear Braces
Orthodontic Laser Procedures
Gummy Smile Treatment
Surgical Orthodontics
Sports Mouthguards
Night Guard
Rapid Palatal Expander (RPE) 
Teeth Whitening
Episode 24/20: Angular Talks at Google I/O, JSWorld, TiL
Tags: angular, webdev, javascript, programming
Published: 2024-05-20 18:55:04

Last week, we had the Google I/O and the release of the JSWorld conference recordings. Both conferences features talks of the Angular team.

{% embed https://youtu.be/IT5LPPm4UlA %}

## Release Date Angular 18

Angular 18 will be released this week. There are some upcoming release parties scheduled for Thursday, the 23rd of May. For the official one, head to Angular's official YouTube channel at

{% embed https://www.youtube.com/@Angular/ %}

## Google I/O

Google's tech conference, Google I/O happened last week. The videos are available on YouTube

{% embed https://www.youtube.com/@Google %}

The Angular talk at I/O provided an overview of the latest features and what to expect in the upcoming versions. The Angular team's representatives were Jessica Janiuk, Jeremy Elbourn, and Minko Gechev. They focused on improvements in hydration and zonelessness.

Jeremy also mentioned the authoring format and selector components. "Selectorless" means a component's selector and the required import in a parent component disappear. This will be another upcoming feature that will reduce boilerplate.

Interestingly, though, Jeremy mentioned the Analog format, which has caused quite some heavy debates in the past

{% embed https://analogjs.org/docs/experimental/sfc %}

Jeremy said that they have similar views in terms of identifying the problems and solutions when it comes to the authoring format.

{% embed https://youtu.be/srP2P6j4Cqw?si=yPQwOX2t54IcRBe_ %}

## JSWorld

JSWorld, another conference,  published their recordings as well. The top talk was "Web Development at Google". Those were three sub-talks from Aurora, a team that collaborates with different tools to improve the web. The other two talks were about Angular and Wiz, which recently announced that they are joining forces.

Jatin Ramanathan from Wiz explained the behavior of JSAction, which will be a cornerstone for the upcoming partial hydration in Angular.

{% embed https://youtu.be/prYhGv6VULQ?si=NAcD4ObJKuiDvJo_ %}

There was also a panel discussion between different framework/tooling authors on a wide range of topics, such as Signals, PWA, and AI.

{% embed https://www.youtube.com/watch?v=7LS5h2jf-fY %}

## TiL Conference

The "This is Learning" conference with different topics also took place. The recordings of the live stream are available on YouTube:

{% embed https://til-conf.netlify.app/agenda-day1/ %}

{% embed https://til-conf.netlify.app/agenda-day2/ %}
Uncertainty towards which place to start
Tags: beginners, discuss, learning
Published: 2024-05-20 18:54:11

Hello, I am new on this platform and everyone seems very helpful here, but I looking for any information or help in regards to where to start in terms of learning coding for a career choice, Many tell me to learn python and ive tried but ive never been able to grasp it, and ive tried html,css,javascript (couldnt understand javascript for the life of me), c++, etc. and I just want to know where is a good place to start if i want to be able to somewhat enter the IT field as a junior developer or whichever is stable but expandable for future endeavours.

so if anyone has help please give your feedback, and thank you!
Palestras no APICON 2024 em São Paulo
Tags: apicon, apicon2024, api, tecnologia
Published: 2024-05-20 18:20:10

Hoje compartilho um breve resumo do APICON 2024, que aconteceu em São Paulo no dia 16 de maio, no Rosewood Hotel!


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

Estive colaborando na curadoria juntamente com David Ruiz, Marcelo Bissuh, e Taiolor Morais, e foi uma experiência incrível! 🚀✨


Participei na trilha executiva com o tema "Inteligência Artificial e as APIs: oportunidades e impacto nos negócios", com os brilhantes Fernando S C Ferreira da Axway e Clayton Marques da IBM. Que debate sensacional! 🌟🤖

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

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


Depois, mergulhamos na trilha técnica com foco mais profundo no tema "APIs: Grandes Poderes, Grandes Responsabilidades", contando com a expertise de Leandro Estrada  e Henrique Eduardo Souza. 💪🔗


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


E para finalizar, tivemos uma palestra sobre os reais desafios no desenvolvimento de software com o tema "Explorando a IA Generativa no desenvolvimento ágil de software" com Lucas Massena, trazendo insights valiosos sobre o futuro do desenvolvimento! 🌐💡


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


Obrigado a todos que estiveram presentes na conferência! Foram muitas conversas incríveis, networking de alto nível e, principalmente, muito aprendizado. 📚🤝



Eu gostaria de transmitir os meus agradecimentos ao David Ruiz e Renato De Stefano e a toda equipe da APICON pelo trabalho incrível. É muito importantte esse tipo de iniciativa no mercado. 


Você precisa de uma consultoria especializada em estratégia de software para apoiar a modernização do seu software? Entre em contato. Até a próxima !!!

Ramon Durães
VP Engineering @ Driven Software Strategy Advisor
Devprime


#APICON2024 #Tecnologia #Inovação #IA #APIs #DesenvolvimentoDeSoftware #Networking
How to Download Mega888 APK & Enjoy Diverse Slot Games Visit the Official Website:
Published: 2024-05-20 18:18:18




Go to the official Mega888 website to download the APK file. This ensures you are getting a legitimate and safe version.
Enable Unknown Sources:

On your Android device, navigate to Settings > Security, and enable "Unknown Sources" to allow the installation of apps from sources other than the Google Play Store.
Download and Install the APK:

Download the [snaptube APK](https://snaptubeapk.org.mx/) file from the official site.
Locate the downloaded file in your file manager and tap on it to begin the installation process.
Create an Account:

After installation, open the app and create an account or log in if you already have one.
Start Playing:

Once logged in, you can start enjoying a variety of slot games and other casino games offered by Mega888.
Regarding Snaptube APK Premium
Similar to downloading Mega888, when downloading Snaptube APK Premium, follow these precautions:

Download from Official Sources:

Always download the APK from the official Snaptube website to avoid counterfeit versions that may harm your device.
Enable Unknown Sources:

Enable "Unknown Sources" in your Android device's settings to allow the installation of apps not found on the Google Play Store.
Install the APK:

Find the downloaded Snaptube APK file in your file manager and tap on it to install.
Laravel Task Management Example
Tags: laravel, webdev, php, javascript
Published: 2024-05-20 18:09:37

I developed a Task Management System as Open Source with Laravel 11. You can go in and check it out and also see how it looks in the video demo. Those who want to learn or contribute to Ajax, Model and Controller structure can check it out. I wish you good coding.

[https://github.com/mrcandev/Laravel-Task-Management-Example](https://github.com/mrcandev/Laravel-Task-Management-Example)
Shiki: Powerful syntax highlighter for your applications
Tags: blog, deepcodr, webdev, javascript
Published: 2024-05-20 18:08:54

Syntax highlighting is a feature in text editors and Integrated Development Environments (IDEs) that assigns different colours and styles to various elements of the code. By visually distinguishing keywords, strings, comments, and other components, it enhances readability and makes coding more intuitive. This not only helps in quickly understanding and navigating through the code but also aids in spotting errors and improving overall productivity.

While there are multiple options available for syntax highlighting like highlightJS, prismJS, quillJS and many more, Shiki stands out of them as it provides a more feature-packed tool for integration with multiple languages.

As Shiki is built on VS Code's syntax highlighting engine, It offers the same features as the VS Code editor. Also, it has almost all the themes as provided by VS Code. So using shiki gives your personal preferred appearance to code.


Sample code snippet of Shiki with ReactJS :

```
import { codeToHtml } from 'shiki'

const code = 'const a = 1' // input code
const html = await codeToHtml(code, {
  lang: 'javascript',
  theme: 'vitesse-dark'
})

console.log(html) // highlighted html string
```
Shiki is supported by any modern javascript runtime allowing seamless integrations. Along with this Shiki offers modifications and configurations as per requirement using Transformers and Decorations API.

Whether be it JS, HTML or any other language Shiki can provide flawless syntax highlighting for websites and editors.

JTLYK All the codes on this website are highlighted using Shiki.
btc
Published: 2024-05-20 18:06:52

I don't think I've had or can remember any satisfactory service like the one I got from Cyber Wizard Recovery when I contacted them through a friend's recommendation following the loss of my BTC account and over $325,000 saved on crypto. I haven't seen such a professional service and with the way the process seemed easy, it was nothing short of pure satisfaction when they eventually were able to get my money back and also gave bonus additional and professional advice on how best I can secure my account. If you face a similar problem and want help, reach out to them  via EMAIL: helpcenter@cyber-wizard.com OR WhatsApp:+1 (551)755-3188
Algorytmy rekurencyjne
Tags: python, algorithms, tutorial
Published: 2024-05-20 17:43:16

### Odkrywanie patternów w sekwencjach liczbowych może być skomplikowane, jednak można to uprościć za pomocą kilku technik, które przedstawię poniżej:

**1. Obserwacja sekwencji:**

- Dokładnie przyjrzyj się danej sekwencji.
- Zwróć uwagę na zmiany między kolejnymi wyrazami i spróbuj zauważyć zależność między liczbami.
- Zidentyfikuj ewentualne powtarzające się elementy lub regularne zmiany.

**2. Różnicowanie**

- Oblicz różnice między kolejnymi wyrazami sekwencji.
- Jeśli różnice tworzą prostszy wzór, można na ich podstawie wywnioskować pierwotny wzór.

**3. Klasyfikacja wyrazów**

- Podziel wyrazy na grupy według ich pozycji (np. wyrazy na parzystych pozycjach, wyrazy na nieparzystych pozycjach).

**4. Formułowanie hipotezy**

- Na podstawie obserwacji sformułuj potencjalne reguły lub wzory generowania wyrazów.
- Przetestuj te reguły na początkowych wyrazach, aby sprawdzić, czy są prawdziwe.

**5. Rekursja i indukcja**

- Użyj indukcji matematycznej [co to indukcja](https://www.medianauka.pl/indukcja-matematyczna) do zaproponowania wzoru rekurencyjnego.
- Zweryfikuj przypadki bazowe, a następnie udowodnij, że jeśli wzór działa dla pewnych liczb, to będzie działał dla kolejnych.

## Przykłady z kodem w Pythonie

> Przykład 1: Prosta sekwencja
Mamy daną sekwencję: `(−3,1,−4,−5,19,−96,−1825,175199,…)`

**Specyfikacja:** `a1 = -3`, `a2 = 1`

**Kod w Pythonie do rozwiązania tego algorytmu:**
```Python
def gs(n):

    if n == 1:
        return -3
    elif n == 2:
        return 1
    return gs(n - 1) * gs(n - 2) - 1

number = int(input("Wprowadź liczbę: "))
print(gs(number))
```
**Pattern:** `An = An − 1 ⋅ An − 2 −1`

> Przykład 2: Średnio skomplikowana sekwencja
Mamy daną sekwencję: `−2, 2.5, 3, −5, 7.5, −4.5, −0.5, 8, −12.5…`

**Specyfikacja:** `a1 = -2`, `a2 = 2.5`, `a3 = 3`

**Kod w Pythonie do rozwiązania tego algorytmu:**
```Python
def gs2(n):
    # Określamy kiedy program ma się skończyć
    if n == 1:
        return -2
    elif n == 2:
        return 2.5
    elif n == 3:
        return 3
    return gs2(n - 3) - gs2(n - 1)

number = int(input("Wprowadź liczbę: "))
print(gs2(number))
```
**Pattern:** `An = An − 3 − An − 1`


> Przykład 3: Bardziej skomplikowana sekwencja
Mamy daną sekwencję: `−1,0,0.5,1.5,1.5,1,−0.5,−2,−3,…`

**Specyfikacja:** `a1 = -1`, `a2 = 0`, `a3 = 0.5`

**Kod w Pythonie do rozwiązania tego algorytmu:**
```Python
def gs3(n):
    if n == 1:
        return -1
    elif n == 2:
        return 0
    elif n == 3:
        return 0.5
    return (gs3(n - 1) * -1) + gs3(n - 3)

number = int(input("Wprowadź liczbę: "))
print(gs1(number))
```
**Pattern:** `An = (An − 1 ⋅ −1) + An − 3`


Mam nadzieję, że moje wyjaśnienie przynajmniej trochę wam pomogło pokonać swój strach przed `algorytmami rekurencyjnymi`. Będę wdzięczny za waszą **łapkę w górę** oraz subskrypcję na mojego **GitHuba**, jeśli uważasz, że to ci pomogło.

**Kontakt**:
Telegram: https://t.me/Supermario3
Email: smokejrhd@gmail.com
Laravel and Livewire Examples
Tags: laravel, php, livewire, webdev
Published: 2024-05-20 18:06:16

Hello everyone. With Laravel 11, I've gathered three scenarios utilizing Livewire into a single project. If you'd like to explore and experience the examples, you can take a look at the GitHub link. Wishing you happy coding!

[https://github.com/mrcandev/Laravel-and-Livewire-Examples](https://github.com/mrcandev/Laravel-and-Livewire-Examples)
1863. Sum of All Subset XOR Totals
Tags: php, leetcode, algorithms, programming
Published: 2024-05-20 17:28:11

1863\. Sum of All Subset XOR Totals

Easy

The **XOR total** of an array is defined as the bitwise `XOR` of **all its elements**, or `0` if the array is empty.

- For example, the **XOR total** of the array `[2,5,6]` is `2 XOR 5 XOR 6 = 1`.

Given an array `nums`, return _the **sum** of **all XOR totals** for every **subset** of `nums`._

**Note:** Subsets with the **same** elements should be counted **multiple** times.

An array `a` is a **subset** of an array `b` if `a` can be obtained from `b` by deleting some (possibly zero) elements of `b`.

**Example 1:**

- **Input:** nums = [1,3]
- **Output:** 28
- **Explanation:** The 4 subsets of [1,3] are:
  - The empty subset has an XOR total of 0.
  - [1] has an XOR total of 1.
  - [3] has an XOR total of 3.
  - [1,3] has an XOR total of 1 XOR 3 = 2.

`0 + 1 + 3 + 2 = 6`

**Example 2:**

- **Input:**nums = [5,1,6]
- **Output:** 28
- **Explanation:** The 8 subsets of [5,1,6] are:
  - The empty subset has an XOR total of 0.
  - [5] has an XOR total of 5.
  - [1] has an XOR total of 1.
  - [6] has an XOR total of 6.
  - [5,1] has an XOR total of 5 XOR 1 = 4.
  - [5,6] has an XOR total of 5 XOR 6 = 3.
  - [1,6] has an XOR total of 1 XOR 6 = 7.
  - [5,1,6] has an XOR total of 5 XOR 1 XOR 6 = 2.

`0 + 5 + 1 + 6 + 4 + 3 + 7 + 2 = 28`

**Example 3:**

- **Input:** nums = [3,4,5,6,7,8]
- **Output:** 480
- **Explanation:** The sum of all XOR totals for every subset is 480.

**Constraints:**

- <code>1 <= nums.length <= 12</code>
- <code>1 <= nums[i] <= 20</code>


**Solution:**

```
class Solution {

    /**
     * @param Integer[] $nums
     * @return Integer
     */
    function subsetXORSum($nums) {
        return array_reduce($nums, function($carry, $item) {
            return $carry | $item;
        }) << (count($nums) - 1);
    }
}
```

**Contact Links**

- **[LinkedIn](https://www.linkedin.com/in/arifulhaque/)**
- **[GitHub](https://github.com/mah-shamim)**
Laravel 9 - Use Fake data in blade File without Create Factory
Tags: laravel, php, webdev
Published: 2024-05-20 17:18:51

In this section, we will see how to incorporate fake data directly into Blade files without the need to create a factory file. Utilizing the fake() helper method, you can swiftly prototype designs and populate them with simulated data.
```php
<table class="w-full text-sm text-left text-gray-500 dark:text-gray-400">
    <thead class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
        <tr>
            <th scope="col" class="px-6 py-3">
                ID
            </th>
            <th scope="col" class="px-6 py-3">
                Name
            </th>
            <th scope="col" class="px-6 py-3">
                Email
            </th>
            <th scope="col" class="px-6 py-3">
                Edit
            </th>
            <th scope="col" class="px-6 py-3">
                Delete
            </th>
        </tr>
    </thead>
    <tbody>
        @for ($i = 0; $i < 8; $i++) 
        <tr class="bg-white border-b dark:bg-gray-800 dark:border-gray-700">
            <th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
                {{ fake()->unique()->uuid() }}
            </th>
            <td class="px-6 py-4">
                {{ fake()->unique()->name() }}
            </td>
            <td class="px-6 py-4">
                {{ fake()->unique()->safeEmail() }}

            </td>
            <td class="px-6 py-4">
                <button class="p-2 text-sm text-white bg-blue-600">Edit</button>
            </td>
            <td class="px-6 py-4">
                <button class="p-2 text-sm text-white bg-red-600">Delete</button>
            </td>
        </tr>
        @endfor
    </tbody>
</table>
```
![laravel 9 fake data blade](https://larainfo.com/wp-content/uploads/2024/05/sOaRb2Sj1OsZn6pNvpO5EZTUuZuaEg0uDuaaHIux.png)