teleren/devto huggingface dataset:
Athoor Rentals, Provide Best Services For Furniture Rental Abu Dhabi
Tags: furniture, rental
Published: 2023-08-28 04:47:35

Athoor Rentals, which was founded in 2011, is a one-stop shop that sells seasonal goods.
Our mission at Athoor Furniture Rentals, is to serve quliaty products for your events. We began with outdoor equipment but are now happy to own thousands of pieces of rental equipment as well. 
As one of the most prominent companies in the event rental sector, Athoor Furniture Rentals is the ideal option when it comes to finding a solution for all of your event-planning needs. We take pride in providing clients with a personalised event planning and organising solution that is suitable for their needs. We provide best services for [furniture rental Abu Dhabi.](https://athoor-rentals.com/)

Get in touch for more information- https://athoor-rentals.com/
Address- Mohammed TayebKhoori and Sons - First Al Khail Road
opposite of Nabooda - Al Quoz Industrial Area 3 – Dubai, UAE
Contact- +971 56 608 0777, +971 50 764 4472
Email - info@athoor-rentals.com
Steps to monitor Azure Virtual Machine on Mobile
Tags: mobile, azure
Published: 2023-08-28 04:38:32

It's exciting to share with you that Azure has a Mobile App Service that can bring you up to speed any time anywhere.

Azure Mobile App Service is used to rapidly build engaging cross-platform and native apps for iOS, Android, Windows, or Mac; store app data in the cloud or on-premises; authenticate customers; send push notifications; or add your custom back-end logic in C# or Node.

To get the Azure mobile app you can download from IoS or the Google Play Store. Alternatively, you can scan and download from the Azure resource interface.

The focus of this blog is to give a guideline on the usage of this Mobile

On the resource page on Azure, look out for "open in mobile" and click.

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

Scan the QR Code, download and install the app.

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

Log into the mobile app with your azure details. You will be able to see your VM and monitor it.

Go to Subscription to check if it is still active.

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

Click on subscription to view your Cost Management

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

Click on Cost management for more detail.

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

Under recent resource, click on an existing virtual machine you spined up earlier.

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dgvgp37pg1cd6n129hvj.jpeg)
Scroll down to view more information like power state, provisioning state, resource health, Azure subscription, resource group, VM location, computer name, operating system, VM size, public IP address etc. You can also start and stop your VM.

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

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

Go to Metric and you can monitor the CPU usage, network and disk.

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

Thank you for reading my article till the end. I hope you learned something special today. If you enjoyed this article, then please share to your friends and if you have suggestions or thoughts to share with me then please write in the comment box.
রিকার্সন নিয়ে কানাঘুষা
Tags: javascript, programming, recursion
Published: 2023-08-28 04:34:00

## **রিকার্সন (Recursion) কি?**
রিকার্শন হলো একটি প্রোগ্রামিং ধারণা যেখানে একটি ফাংশন নিজেকে নিজেকে স্থানীয় ব্যবস্থার একটি অংশ হিসেবে ডাকে। অন্যভাবে বলতে, একটি রিকার্সিভ ফাংশন হলো একটি ফাংশন যা একটি সমস্য়া সমাধান করে এমনভাবে যে, সে নিজেকে একই সমস্য়ার আবদ্ধ রূপের ছোট ইনস্ট্যান্সগুলির সাথে কল করে। প্রতিটি রিকার্সিভ কলটি মূল সমস্য়ার একটি ছোট উপসেটে কাজ করে যা একটি বেস কেসে পৌঁছানোর জন্য থামে।
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rluad62fv2fu9x2bh5cj.png)

## রিকার্সিভ ফাংশনের মূল ঘটকগুলি হলো:

1. বেস কেস: এটি হলো শর্ত যা নির্ধারণ করে যখন রিকার্সন থামবে। এটি সমস্যার সবচেয়ে সাধারণ ইনস্ট্যান্স যা আবদ্ধ রূপে বিনা আরও রিকার্সন সমস্যা সমাধান করা যায়।

2. রিকার্সিভ কেস: এটি ফাংশনের অংশ যেখানে সে নিজেকে একটি পরিবর্তিত ইনপুট দিয়ে ডাকে, বেস কেসে নিকট চলে আসে। রিকার্সিভ কেসটি মূল সমস্যাটি আবদ্ধ রূপের ছোট সাবপ্রবলেমগুলির সাথে অধিকতর কাজ করে।

3. থামানোর শর্ত: এটি রিকার্সন শেষ হওয়ার বিন্দুও হতে পারে, এটি অত্যন্ত গুরুত্বপূর্ণ যে রিকার্সন অবিরত চলে না এবং অসীম রিকার্সনে পরিণত হয় না।

রিকার্সন স্বাভাবিকভাবে সমস্যা সমাধান করতে একটি শক্তিশালী প্রয়োগ হতে পারে যা স্বাভাবিকভাবে একই সমস্যার ছোট ইনস্ট্যান্সগুলির মধ্যে বিভক্ত করা যায়। তবে, এটি বেস কেসে সামনে আসার জন্য ফাংশনটি কেমন ডিজাইন করতে হয় তা নিশ্চিত করতে হয় যাতে ফাংশনটি বেস কেসে এসে সেস্থান পেতে এবং অসীম রিকার্সনে পরিণত না হয়। রিকার্সন সাধারণভাবে বিভিন্ন অ্যালগরিদম এবং ডেটা স্ট্রাকচারে ব্যবহৃত হয়,

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

## রিকার্সন কীভাবে মেমরিতে সংরক্ষণ করা হয়?
রিকার্সন বেশি মেমরি ব্যবহার করে, কারণ রিকার্সিভ ফাংশন প্রতিটি রিকার্সিভ কলে স্ট্যাকে আরো মান যোগ করে এবং কল শেষ হওয়া পর্যন্ত সেখানে মানগুলি রাখে। রিকার্সিভ ফাংশনটি LIFO (LAST IN FIRST OUT) স্ট্রাকচার ব্যবহার করে, যদি স্ট্যাক ডেটা স্ট্রাকচারের মতো।

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

Recursion হল একটি শক্তিশালী কৌশল যা কম্পিউটার বিজ্ঞান এবং প্রোগ্রামিং-এ অনেক অ্যাপ্লিকেশন রয়েছে। এখানে পুনরাবৃত্তির কিছু সাধারণ অ্যাপ্লিকেশন রয়েছে:

· ফ্যাক্টোরিয়াল গণনা: পুনরাবৃত্তির মাধ্যমে ফ্যাক্টোরিয়াল গণনা করা যেতে পারে।

· ক্রমবর্ধমান ফাংশন: পুনরাবৃত্তির মাধ্যমে ক্রমবর্ধমান ফাংশনগুলি গণনা করা যেতে পারে।

· গাণিতিক সমস্যার সমাধান: পুনরাবৃত্তির মাধ্যমে গাণিতিক সমস্যাগুলি সমাধান করা যেতে পারে।

· গ্রাফ traversals: পুনরাবৃত্তির মাধ্যমে গ্রাফ traversals করা যেতে পারে।

· ডেটা কাঠামো: পুনরাবৃত্তির মাধ্যমে ডেটা কাঠামোগুলি তৈরি এবং manipulated করা যেতে পারে।

· প্রোগ্রামিং ল্যাঙ্গুয়েজ: পুনরাবৃত্তির মাধ্যমে প্রোগ্রামিং ভাষাগুলিতে ফাংশন এবং অন্যান্য constructs defined করা যেতে পারে।

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/br1i0ozt1wixloqxo8u2.jpg)
HackerRank Luck Balance
Tags: python, challenge
Published: 2023-08-28 03:41:42

This is the solution for the HackerRank Luck balance problem, in python. Luck Balance is a problem in the [Interview Preparation Kit > Greedy Algorithms](https://www.hackerrank.com/challenges/luck-balance/problem) and is considered easy.

The main idea is that someone believes in the balance of luck. She needs to loose some contests to win on others. But the requirements are more complex:
- There are two types of contests: important and unimportant.
- The person can only lose a maximum of k important contests.
- If the person loses a contest, its points of luck are added to their luck balance.
- If the person wins a contest, the luck points are removed from their luck balance.
- The person can choose which contests to lose.

To solve the problem, we can use the following greedy algorithm:

1. Sort the contests in descending order of their luck points.
2. For each contest:
      -  If the contest is important and the person has not yet lost k important contests, lose the contest.
      -  Otherwise, win the contest.

The **catch here is to choose what to loose**. For that, the person must sort the contests array in descending order. So, she will loose first the ones with more points.

For example, having

```py
k = 3
contests = [[5, 1], [2, 1], [1, 1], [8, 1], [10, 0], [5, 0]]
```

she has 4 important contests (and 2 unimportant), but can loose only 3 of them. If she sort in reverse order, she will traverse first the most valuables first:

```py
constests.sort(reverse=True)
print(contests)
# [[10, 0], [8, 1], [5, 1], [5, 0], [2, 1], [1, 1]]
```

Here is the complete solution in python:


```py
def luckBalance(k, contests):
    contests.sort(reverse=True)
    balance = 0
    lost_important = 0

    for contest in contests:
        if contest[1] == 1:
            if lost_important < k:
                balance += contest[0]
                lost_important += 1
            else:
                balance -= contest[0]
        else:
            balance += contest[0]
    return balance

```
Part 4: Turning the page on our data pipeline
Tags: data, json, api, fabric
Published: 2023-08-28 01:48:16

In the world of data pipelines, there comes a time when we need to address the issue of paging. Paging refers to the process of retrieving data in chunks or pages, rather than all at once. This is particularly relevant when dealing with large datasets or when accessing APIs that have pagination features. In this article, we will explore the concept of paging in data pipelines and discuss how to implement it effectively.

{% embed https://youtu.be/mE4_aUaaLqc?si=WtpE6pllAHzNn7Xr %}

See more of this series and subscribe at {% embed https://chatjpt.blog/series/microsoft-fabric-data-edu %}
docker compose搭建wordpress博客
Published: 2023-08-28 01:45:31

本博客使用的是 jekyll 生成的静态博客，之前使用的是 WordPress 搭建的，因为服务器性能太烂，所以弃了 WP，转投静态博客生成程序。

今天记录下docker 搭建 WordPress 的步骤，主要是找起资料来太麻烦，怕以后找不着，自己记录下更好。也没准哪天自己又换回 WordPress😶。

我使用的是 M1 版本的 MPB，也就是 Apple Silicon(arm) 版本的处理器。所以一般的 MySQL 镜像是会报架构错误的。

### 准备

闲言少叙，以下是  M1 版本配置步骤：

找个目录创建 `docker-compose.yml` 文件

```bash
vi docker-compose.yml
```

放入以下内容：

```bash
ersion: '3.8'

services:
  db:
    expose:
      - 3306
    image: arm64v8/mysql
    volumes: 
      - ./db_data:/var/lib/mysql
    restart: always
    environment:
      MYSQL_DATABASE: wp_db
      MYSQL_USER: admin
      MYSQL_ROOT_PASSWORD: password
      MYSQL_PASSWORD: 1234
    networks:
      - wp

  phpmyadmin:
    image: phpmyadmin
    restart: always
    ports:
      - 8080:80
    environment:
      - PMA_HOST=db
      - MYSQL_ROOT_PASSWORD=password
      - PMA_ARBITRARY=1
      - UPLOAD_LIMIT=300M
    depends_on:
      - db
    networks:
      - wp

  wordpress:
    ports:
      - "${PORT:-8000}:80"
    depends_on:
      - db
    image: wordpress:latest
    volumes:
      - ./wp-content:/var/www/html/wp-content
    environment:
      WORDPRESS_DB_NAME: wp_db
      WORDPRESS_DB_HOST: db:3306
      WORDPRESS_DB_USER: root
      WORDPRESS_DB_PASSWORD: password
      WORDPRESS_TABLE_PREFIX: da_
    networks:
      - wp
networks:
  wp:
volumes:
  db_data:
  wp_data:
```



- 上面脚本安装 `mysql`, `phpadmin`, `wordpress` 镜像
- MySQL 使用的镜像为：`arm64v8/mysql`, 如果是 intel 处理器，则可以把 `arm64v8`去掉。

- 也可以指定`mysql`版本，如：**mysql:5.7**



### 运行

终端切换到`docker-compose.yml`所在目录，执行命令

```bash
docker-compose up --build
```



##  安装

浏览器访问 `localhost:8000`, 可以安装WordPress 了

![image-20230827175713106](https://io.fifo.site/image-20230827175713106.png)

## 参考

[https://digitalapps.com/developing-wordpress-with-docker-on-apple-silicon/](https://digitalapps.com/developing-wordpress-with-docker-on-apple-silicon/)

[https://catalins.tech/how-to-run-wordpress-locally-on-macos-with-docker-compose/](https://catalins.tech/how-to-run-wordpress-locally-on-macos-with-docker-compose/)



## 推荐

最后推荐一下我移植的 WordPress 主题 Molly: [https://github.com/gezhaoyou/wordpress-theme-molly](https://github.com/gezhaoyou/wordpress-theme-molly)

![screenshot](https://io.fifo.site/screenshot.png)
Como criar um Filtro no Amazon SNS para enviar um evento específico para o Amazon SQS
Tags: aws, go, programming
Published: 2023-08-27 23:55:07

Olá, pessoal! Hoje vamos explorar uma solução interessante utilizando os serviços da AWS. Vamos aprender a criar um filtro no Amazon Simple Notification Service (SNS) para filtrar eventos que possuam o status “Finalizado”. Além disso, vamos integrar esse filtro com o Amazon Simple Queue Service (SQS) e construir um leitor de fila utilizando a linguagem de programação Golang.

## Configurando o Filtro no Amazon SNS

1.Acesse o Console de Gerenciamento da AWS e navegue até o serviço Amazon SNS.
2. Crie um novo tópico ou selecione um tópico existente para receber as notificações filtradas.
3. No tópico escolhido, vá para a aba “Subscrições” e clique em “Criar subscrição”.
4. Selecione o protocolo desejado para a subscrição (por exemplo, HTTPS, Email, SMS, etc.).
5. Em “Filtro de tópico avançado”, adicione a condição: `{"status": ["Finalizado"]}`. Isso fará com que apenas eventos com o status "Finalizado" sejam enviados para esta subscrição.

## Configurando a Integração com Amazon SQS
1.Ainda no Console do Amazon SNS, crie um novo tópico ou selecione um tópico existente.
2.No tópico escolhido, vá para a aba “Subscrições” e clique em “Criar subscrição”.
3.Selecione o protocolo SQS e escolha uma fila do SQS existente ou crie uma nova fila.

## Criando o Leitor de Fila com Golang

Agora que temos as notificações filtradas sendo enviadas para a fila SQS, vamos criar um programa em Golang para ler essa fila e processar as mensagens.

```go
package main

import (
 "fmt"
 "log"
 "os"
 "time"

 "github.com/aws/aws-sdk-go/aws"
 "github.com/aws/aws-sdk-go/aws/session"
 "github.com/aws/aws-sdk-go/service/sqs"
)

func main() {
 sess := session.Must(session.NewSessionWithOptions(session.Options{
  Config: aws.Config{Region: aws.String("us-east-1")}, 
 }))

 sqsClient := sqs.New(sess)

 queueURL := "URL_DA_FILA_SQS"

 for {
  result, err := sqsClient.ReceiveMessage(&sqs.ReceiveMessageInput{
   QueueUrl:            &queueURL,
   MaxNumberOfMessages: aws.Int64(10), // Número máximo de mensagens a serem recebidas de uma vez
  })

  if err != nil {
   log.Println("Erro ao receber mensagens da fila:", err)
   continue
  }

  for _, msg := range result.Messages {
   fmt.Println("Mensagem:", *msg.Body)

   _, err := sqsClient.DeleteMessage(&sqs.DeleteMessageInput{
    QueueUrl:      &queueURL,
    ReceiptHandle: msg.ReceiptHandle,
   })

   if err != nil {
    log.Println("Erro ao apagar mensagem da fila:", err)
   }
  }

  // Espera um tempo antes de receber mais mensagens (para evitar excesso de requisições)
  time.Sleep(5 * time.Second)
 }
}
```
## Conclusão
Com esses passos, você criou um filtro no Amazon SNS para eventos “Finalizados” e integrou esse filtro com o Amazon SQS. Além disso, criou um leitor de fila em Golang para processar essas mensagens. Essa solução pode ser escalada e personalizada de acordo com as suas necessidades. Divirta-se explorando mais possibilidades com os serviços da AWS e programação em Golang!
Upgrading React Native app to Android 13+
Tags: reactnative, android
Published: 2023-08-27 23:47:33

---
title: Upgrading React Native app to Android 13+
published: true
tags: ['reactnative', 'android']
canonical_url: https://sevic.dev/notes/android-13-react-native-upgrade/
---

There is a requirement to upgrade Android apps (hosted on Google Play Store) to target Android 13. This post covers steps to upgrade to the React Native 0.72+ version.

### Automatic approach

Use the `npx react-native upgrade` command to make code updates to the latest version.

### Manual approach

Use [Upgrade helper](https://react-native-community.github.io/upgrade-helper/) to manually change the code. It shows the differences between boilerplates for the selected versions (e.g., `0.71.13` and `0.72.4`).

Fill out the package name (e.g., `com.someapp`). App name can stay empty, ignore it (`rndiffapp`) in the code changes.

### Advertising ID

Enable it on the Google Play Console app page by selecting Policy and programs &rarr; App content option. Add it as a permission in the `AndroidManifest.xml` file.

```xml
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
```

### Boilerplate

Here is the [link](https://sevic.dev/react-native-starter?ref=devto) to the boilerplate I use for the development. It supports the latest Android version.
Rallly: Free Online Meeting Scheduling Tool
Tags: opensource, elestio, rallly, meetingscheduling
Published: 2023-10-11 13:11:35

---
title: Rallly: Free Online Meeting Scheduling Tool
published: true
date: 2023-08-27 23:28:01 UTC
tags: opensource, elestio, rallly, meetingscheduling
canonical_url: https://elestio.hashnode.dev/rallly-free-online-meeting-scheduling-tool-5bf922a0219c
---

Coordinating events, meetups, and meetings can be a challenging endeavor. Enter [Rallly](https://elest.io/open-source/rallly?ref=blog.elest.io), an ingenious open-source solution designed to simplify the process. To organize a team meeting or a casual get-together with friends and family, Rallly offers a user-friendly platform to streamline your scheduling needs.

<iframe src="https://www.youtube.com/embed/hWO4gxntyEw?feature=oembed" width="700" height="393"></iframe>

From seamlessly setting up events to gathering opinions through comments on suitable dates and times, [Rallly](https://elest.io/open-source/rallly?ref=blog.elest.io) makes coordination a breeze. Its intuitive interface ensures that you can effortlessly create and customize events according to your preferences. Say goodbye to the back-and-forth confusion of event planning as Rallly simplifies the decision-making process.

Make sure to watch our [platform overview video](https://youtu.be/hWO4gxntyEw?ref=blog.elest.io) to uncover the full potential of Rallly and how to seamlessly incorporate it into your Elestio services list.

Your quest for simplified event coordination starts here!

_Originally published at_ [_https://blog.elest.io_](https://blog.elest.io/rallly-free-online-meeting-scheduling-tool/) _on August 27, 2023._
Python Imports: A Journey From Confusion to Enlightenment
Tags: python, programming, tutorial, codenewbie
Published: 2023-08-27 23:25:18

## Introduction

When transitioning from JavaScript to Python, one of the challenges you might face involves understanding Python's import system. I personally encountered a series of confusing errors that ended up being solved by a single dot (`.`). In this blog, we'll dissect the problem and offer insights into Python's import system, including absolute and relative imports, and the role of `sys.path`.

## The Problem

The problem was simple yet confounding: importing files from different levels in the project structure. A change in one import statement, such as `from db.database import Session`, would break other parts of the code with errors that seemed completely unrelated at first glance.

### Same Level Import

![Same Level Import](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/84u7waj1uj22rfndeiau.png)

### Outside Directory

![Outside Directory](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8szkz4mqva6ym7k4vdvt.png)

## Absolute Imports vs Relative Imports

### Absolute Imports

These are straightforward. Python searches for the specified module in the directories listed in its `sys.path` variable.

```python
from database import Session
```
This works well if database is a top-level module in your project or if it's installed in your Python environment.

### Relative Imports

These are slightly trickier. A leading dot specifies that the module is in the same package as the module where this import appears.

```python
from .database import Session
```
This type of import is often used for package-internal operations and won't work in a standalone script. It has to be part of a package.

## What is sys.path?

The sys.path variable in Python is a list of directories that Python searches through when you import a module. By default, it includes the directory of the script you're running and the site-packages directory where third-party libraries are stored. You can modify sys.path to include additional directories, but it's generally better to structure your project so that you don't need to.

## The Solution

The solution to my problem was adding a single dot before the module name in the import statement, changing it to from .database import Session. It turns out that this dot makes all the difference when dealing with imports that are at different package levels.

## Conclusion
Understanding Python imports can be challenging, especially if you're coming from languages with different systems for handling modules and packages. But once you grasp the difference between absolute and relative imports and the role of sys.path, the system becomes much more manageable.
Select Select the best GUI toolkit – And we have a winner !
Tags: gui, comparison, toolkit
Published: 2023-08-27 23:23:33

<p>And after seven posts, I've decided at least which is the best GUI framework that suits my needs! The one with the most useful utilities, with nice portability, and lots of features, ready to be exploited by the programmer.
And the winner is ... Qt! With its flexibility, ease of use and extensive features. The code worked flawlessly with minor adjustments in different platforms, always using Python, which speds up its easyness.</p>
Officially 🚨, as expected from Google 🤔😮,
Published: 2023-08-27 23:20:41

Google will launch Gemini, the most powerful AI assistant 👀💯💪.

Currently, Google is developing an advanced version of Google Gemini, a multimodal language model aimed to compete with ChatGPT. Gemini outperforms the current Google Bard model, also known as PaLM 2. The launch of Google Gemini is a significant step towards creating a very powerful AI assistant.

Among the prominent advantages of Google Gemini:

- It has an immense ability to generate diverse content including text, images, videos, audio, and more, all within the same query.

- It shows a clear improvement in the quality and diversity of output compared to the current Google Bard model.

- It possesses advanced language understanding and contextual analysis capabilities, allowing it to provide more accurate and detailed answers.

And many features have not been announced by the company so far.
Don't forget to follow me for more information and tech news 🙏🔝🆙
Google

#GoogleGemini #Technology #ArtificialIntelligence #Google
#google #intelligence #AI #developers #developercommunity
#NewsOfTheDay #New #NEWS #dev #tech #technologynews #chatgpt #inteligenciaartificial #intelligenceartificielle
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qi63h85ljfct25z1ctpt.jpg)