teleren/devto huggingface dataset:
Day 17: Unveiling the Magic of INTRODUCTION in Java, C++, Python, and Kotlin! 🚀
Tags: developer, programming, coding, python
Published: 2024-03-28 04:51:48

DAY - 17


Today’s Learning :-  

For more Tech content Join us on  linkedin [click here](https://www.linkedin.com/in/nitin-bhatt-962356260/)


All the code snippets in this journey are available on my GitHub repository. 📂 Feel free to explore and collaborate: [Git Repository](https://github.com/Nitin-bhatt46/POWER_OF_PROGRAMMING/tree/main
)

Java and Cpp Question.

1: Take 20 elements from user input and find its sum with the help of an array.
( AddTwentyArray)

2: Calculate the average of elements in an array of size 18.
(AverageOfArray)

3: Find the index of a specific element in an array, if the element is nor present, print -1. Ask the size of the array from the user and then implement it.

( IndexFinder )




In Python, a tuple is a built-in data structure similar to a list, but with some key differences. Here's an explanation of tuples:
Immutable: Unlike lists, tuples are immutable, meaning that once they are created, their elements cannot be changed or modified. You cannot add, remove, or modify elements in a tuple after it is created.
Ordered: Similar to lists, tuples maintain the order of elements as they are added. The order in which elements are inserted into a tuple is preserved when accessing or iterating over the tuple.


Dynamic Size: Like lists, tuples can dynamically resize themselves as needed. You can add or remove elements from a tuple without specifying its size beforehand.


Accessing Elements: Elements in a tuple are accessed using zero-based indexing, just like in lists. You can access individual elements by their index, and you can also slice tuples to retrieve a subset of elements.


Immutable Elements: While the tuple itself is immutable, its elements may be mutable if they are mutable data types (e.g., lists). However, you cannot change the reference to the element within the tuple.

Tuples are commonly used when you want to represent a collection of items that should not change over time, such as coordinates, database records, or function return values with multiple components.

Here's an example of creating and using a tuple in Python:
# Creating a tuple
# Accessing elements
# Slicing
# Immutable nature
 This will raise an error:
Eg :- my_tuple[0] = 10
# Length of tuple

Tuples are useful for representing fixed collections of data where immutability is desired. They offer a lightweight and efficient way to work with ordered sequences of values in Python.
Feel free to reshare this post to enhance awareness and understanding of these fundamental concepts.
Code snippets are in the Git repository.
 
🙏 Thank you all for your time and support! 🙏
Record-Breaking Encounter: Sunrisers Hyderabad vs Mumbai Indians
Tags: cricket, ipl2024, srhvsmi
Published: 2024-03-28 04:49:11

**Explosive Start: Travis Head Sets the Tone**

In a match that redefined power-hitting, Travis Head's explosive 18-ball fifty within the powerplay marked a record-breaking start for Sunrisers Hyderabad. His aggressive batting style and quickfire innings laid the groundwork for a high-scoring showdown.

**Abhishek Sharma's Ruthless Onslaught**

Following Head's blitz, Abhishek Sharma took charge with a merciless assault on the Mumbai Indians bowlers. His aggressive batting display, including a record-breaking fifty in just 16 balls, showcased his dominance and set the stage for a monumental total.

**Klaasen and Markram's Record-Breaking Partnership
**
Heinrich Klaasen and Aiden Markram's explosive partnership shattered records and propelled Sunrisers Hyderabad to their highest-ever franchise T20 score of 277. Their aggressive strokeplay and relentless run-scoring set a new benchmark in the history of T20 cricket.

**Mumbai Indians' Spirited Chase
**
In response, Mumbai Indians launched a spirited chase led by Ishan Kishan and Rohit Sharma's explosive start. Tilak Varma's resilient innings in the middle overs, alongside Naman Dhir, reignited Mumbai's hopes and set the stage for a thrilling pursuit.

**SRH's Bowlers Seal the Victory
**
Despite Mumbai Indians' valiant effort, SRH's bowlers, particularly Cummins and Unadkat, capitalized on the slowing pitch to secure a memorable victory. Their strategic bowling tactics and ability to adapt to the conditions proved crucial in clinching the win.

**Conclusion
**
The match between Sunrisers Hyderabad and Mumbai Indians will be remembered as a record-breaking encounter that showcased the essence of T20 cricket at its finest. From explosive batting displays to resilient chases and strategic bowling, the game exemplified the thrill and excitement that cricket fans cherish.

Kheloexch is a prominent platform offering a range of online betting and entertainment games in India. It provides a diverse selection of games like Baccarat, Roulette, Andar Bahar, Sic Bo, and more, catering to the preferences of Indian players. Additionally, Kheloexch is known for being one of the top sports betting exchange sites in India, allowing users to exchange bets on various sports such as cricket and football. The platform offers a dynamic and engaging experience for individuals looking to participate in online betting and gaming activities.

To visit : https://kheloexch.com/
Deep Linking
Tags: mobile, webdev, reactnative
Published: 2024-03-28 04:38:37

When we talk about deep linking for mobile app, it means creating a specific URL to open a mobile application. It separate into two formats:

1. A custom URL scheme that your app registers: scheme://videos
2. A universal link that opens your app from a registered domain: mydomain.com/videos

**Deep Linking** is a technique in which a given URL or resource is used to open a specific page or screen on mobile. This particular screen may reside under a series of hierarchical pages, hence the term "deep" in deep linking.
Deep linking and universal links are the gateways into your application.
AirportTerminalGuide
Tags: airportterminalguide
Published: 2024-03-28 04:10:26

'[AirportsTerminalGuide](https://airportsterminalguide.com/)' expands travel options, especially those who enjoy exploring unique destinations. By providing comprehensive information on terminals, facilitating exploration of unique destinations, optimizing layovers, and enhancing overall travel experiences with real-time updates and personalized recommendations.
Bitcoin Recovery Expert
Tags: webdev, beginners, tutorial, devops
Published: 2024-03-28 04:04:40

Since I was honestly pretty certain they wouldn't really help much when I first wrote to them, I will admit that the excellent services provided by Space Spy Recovery exceeded my expectations. However, I was naturally very "cautious" and just curious to see what might happen. They unexpectedly disproved my assumptions by providing me with outstanding assistance, recovering $345,000 in Bitcoin and providing helpful advice on how to keep my account secure. You can email them at soacespy@hackermail.com to ask for assistance.(Telegram: @spacespy65; WhatsApp: +458) 313 9075; Skype: live:.cid.2b75b0cf1ce9bf69. website:  https://soacespy.wixsite.com/my-site-2
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z4ls8s0gd06c98i3teq2.png)
شركة تنظيف بالاحساء
Tags: cleancoding
Published: 2024-03-28 03:57:52

أصبحنا في [شركة تنظيف بالاحساء](https://ruknalhamd.com/cleaning-company-in-al-ahsa/) الشركة الأرخص والأكثر موثوقية في مجال تنظيف المنازل والفلل والمكاتب والفنادق وغيرهم على مدار سنوات طويلة. حيث قدمنا خلالها خدمات التنظيف بأسعار معقولة ومناسبة لجميع الأفراد.

كما نضمن الجودة والاحترافية في كل عملية تنظيف نقوم بها، لأن فريقنا مؤهل ومدرب تدريبًا عاليًا لضمان تقديم خدمة تنظيف استثنائية. بالإضافة إلى ذلك في شركة تنظيف بالأحساء، نقدم عروض وخصومات مميزة على أسعار تنظيف الانتريهات والصالونات بالاحساء وكذلك السجاد والستائر وغيرهم.

فنحن نفهم أن تنظيف المنازل والفلل قد يكون مهمة صعبة ومتعبة، ولذلك نهدف إلى تخفيف العبء عن الجميع. حيث نقوم بتنظيف كافة المساحات والأثاث والأرضيات ونستخدم مواد تنظيف آمنة وفعالة لضمان نتائج مذهلة.

لا تتردد في التواصل معنا في شركة تنظيف بالاحساء 0509590605 الخبير المثالي للحصول على خدمات تنظيف عالية الجودة بأسعار معقولة، وستجد لدينا أفضل عروض شركات النظافة بالاحساء. نحن نعمل دائمًا لخدمتك بكل كفاءة ودقة واحترافية.
Day 5 of #100DaysOFCode
Tags: webdev, programming, 100daysofcode, css
Published: 2024-03-28 03:53:33

## What I learned?

I learned the following topics:

- I learned about how to create layout design in figma

## What I developed/solved?

- created a layout of website, which contains header, footer, leftbar, rightbar, logo(which sticks to the fixed position)
Discover UMLGenius: UML Diagramming with ChatGPT Integration
Tags: uml, chatgpt, systemdesign
Published: 2024-03-28 03:19:17

Hello all,

I'm here to introduce UMLGenius, a tool that leverages ChatGPT's AI to generate UML diagrams from natural language. It’s designed to simplify the process of creating UML diagrams, allowing users to describe their systems in plain language and automatically generate diagrams. This can be particularly useful for quickly visualizing concepts during meetings or brainstorming sessions. Check it out if you’re looking for an efficient way to produce UML diagrams.

🔗 Find out more: [https://umlgenius.com/chatuml/index.html](https://umlgenius.com/chatuml/index.html)
Top Hậu Giang AZ
Published: 2024-03-28 03:12:24

Trang web Top Hậu Giang AZ là một nền tảng trực tuyến tập trung vào việc giới thiệu, khám phá và chia sẻ về tỉnh Hậu Giang - một quê hương đầy rẫy văn hóa và lịch sử tại Việt Nam. Được ra đời từ việc tham gia cuộc thi viết về quê hương cho ZMar tổ chức, trang web đã nhanh chóng phát triển thành một nguồn tài liệu quý báu về vùng đất Hậu Giang.
#tophaugiang, #tophaugiang, #tophaugiangaz, #tophaugiangaz, #tinhhaugiang, #tinhhaugiang

WEBSITE: <a href="https://tophaugiangaz.com">https://tophaugiangaz.com</a>
SOCIAL
<a href="https://www.reddit.com/user/AdGold4195/">https://www.reddit.com/user/topbaclieu/</a>
<a href="https://www.pinterest.com/tophaugiangaz/">https://www.pinterest.com/topbaclieuaz/</a>
<a href="https://www.linkedin.com/in/tophaugiangaz/">https://www.linkedin.com/in/topbaclieuaz</a>
<a href="https://www.youtube.com/@TopHauGiangAZ">https://www.youtube.com/@topbaclieuaz</a>
<a href="https://www.facebook.com/profile.php?id=61557948140538">https://www.facebook.com/profile.php?id=61551551627487</a>
玖富娛樂城 給您卓越娛樂體驗
Published: 2024-03-28 03:09:52

玖富娛樂城為您帶來高規格的多元娛樂體驗！專注於體育、真人、電競、彩票、棋牌、電子等領域，匯聚最新最全的娛樂項目，所有不同喜好的玩家都能在此盡情享受。立即加入玖富娛樂城開啟您的歡樂新旅程！ 
  https://9fu5757.com/

https://www.facebook.com/profile.php?id=61557551033669

https://www.youtube.com/channel/UCDgo4nZ_TSBKJs0HeKFMKLg

https://www.twitch.tv/9fu5757/about

https://www.pinterest.com/9fu9919seo/?actingBusinessId=871165259078115891

https://www.linkedin.com/public-profile/settings?trk=d_flagship3_profile_self_view_public_profile

https://soundcloud.com/9fu9919-seo

https://www.flickr.com/people/200302536@N06/

https://gab.com/9fu5757
About - Turf Installation Sydney
Tags: turfinstallation, turflaying
Published: 2024-03-28 03:08:08

Welcome to Turf Installation Sydney, your ultimate destination for all your garden, turf, and landscaping needs. With over a decade of industry experience, we pride ourselves on offering a comprehensive suite of services to elevate your outdoor space to extraordinary levels.

Whether you're dreaming of a lush, green lawn or envisioning a beautifully landscaped garden, our team of experts is dedicated to delivering quality workmanship that stands the test of time. We understand that every outdoor space is unique, which is why we work closely with you to tailor our services to your specific needs and budget.

At Turf Installation Sydney, we offer an extensive selection of turf types to suit your climate and preferences, ensuring that your garden reflects your individual style. Whether you're seeking low-maintenance grass or luxuriant greenery, we have the perfect solution for you.

Our experienced landscapers are equipped to handle a wide range of landscaping projects, from creating enchanting flower beds to constructing inviting pathways and seating areas. With meticulous attention to detail, we'll transform your outdoor space into a captivating oasis that adds value to your property.

In addition to turf installation and landscaping, we also provide a range of garden decoration services to enhance the beauty of your outdoor environment. From elegant statues to charming fountains and stylish lighting fixtures, we'll help you create the perfect atmosphere for relaxation and enjoyment.

At Turf Installation Sydney, we are committed to delivering the highest quality of workmanship in every project we undertake. Our dedicated team of professionals will ensure that your installation is done correctly and to the highest standards, providing you with valuable advice on maintaining your turf and landscape for years to come.

Experience the best-in-class service that Turf Installation Sydney offers. Contact us today to discuss your project and let us help bring your landscape dreams to life. Whether you're in need of **[turf Laying Sydney](https://maps.app.goo.gl/jtYYPQE4TKTMBauq7)**, Installation landscaping, or garden decoration services, we have the expertise and resources to exceed your expectations.
Vector Database solutions on AWS
Tags: aws, vectordatabase, ia, database
Published: 2024-03-28 02:14:49

When talking about Vector Databases, in the market we can find the specialized ones and multi-model, most of the major database providers like [Oracle](https://www.oracle.com/news/announcement/ocw-integrated-vector-database-augments-generative-ai-2023-09-19/), [PostgreSQL](https://github.com/pgvector/pgvector/) or [MongoDB](https://www.mongodb.com/products/platform/atlas-vector-search), for mention some of them, have integrated a specific solution to retrieve vector data.  

The key concept is [Retrieval Augmented Generation](https://arxiv.org/abs/2005.11401) (RAG) and combined with Large Language Models (LLM), we can use models with data that is always changing. It is a use case to deploy a model trained with static data, for example the history of a store sales, but when the data is constantly changing you can give an external knowledge database to improve the response of the LLM.

[DB-Engines](https://db-engines.com/en/ranking/vector+dbms/all) offers a complete index for databases [based on](https://db-engines.com/en/ranking_definition) their current popularity, mentions in social networks, frequency of search in Google Trends, frequency of discussion in technical foros and number of job offers, in which is mentioned. 

**Why a Vector Database is needed ?**

The way the data is used for LLM's is in a vector representation. That means the prompt requested by the user goes to the vector database and search for the document with best similarity and return the results ranks to the LLM and personalize the prompt response.

**Which service can be used on AWS ?**

- MongoDB from the [marketplace](https://aws.amazon.com/marketplace/pp/prodview-pp445qepfdy34?trk=40d3b1cd-4a6c-4cfe-a334-cd0f4ab9808e&sc_channel=el) or directly from [Atlas Portal](https://www.mongodb.com/docs/atlas/reference/amazon-aws/).
- RDS PostgreSQL with the extension [pgvector](https://aws.amazon.com/about-aws/whats-new/2023/10/amazon-rds-postgresql-pgvector-hnsw-indexing/).
- Open Search with the new feature [Open Search Serverless](https://aws.amazon.com/opensearch-service/serverless-vector-engine/).

I am going to focus on pgvector and Open Search Services, this services are infrastructureless oriented, we don't need to care about a lot in administrative tasks with the infrastructure.

Check this blog post [Building AI-powered search in PostgreSQL using Amazon SageMaker and pgvector](https://aws.amazon.com/blogs/database/building-ai-powered-search-in-postgresql-using-amazon-sagemaker-and-pgvector/), if you want to use the extension inside RDS for PostgreSQL.

And if you are looking to go Serverless, check this blog post [Vector engine for Amazon OpenSearch Serverless is now available](https://aws.amazon.com/blogs/aws/vector-engine-for-amazon-opensearch-serverless-is-now-generally-available/)
30 tips of code PHP - Types
Tags: php, webdev, codequality, developer
Published: 2024-03-28 01:26:26

PHP is a loosely typed language, which means PHP can convert strings into integers or act in other types of conversions automatically. However, this is one of the singularities of PHP types. Let's dig into some edge uses of types.

## All types in PHP

- null
- bool (0, 1, true, false)
- int
- float (floating-point number)
- string
- array
- object
- callable (functions)
- resource (External libraries)

### Digging into

- Heredoc printing

Did you know that PHP has heredoc as a way to print things? That's how it works!

```php
echo <<<END 
a b c \n 
END; 
# Then the indentation will persist when printing 
# You can also pass variables, functions, and other interactions inside the string or even save the result in a variable 
```

- Powers of array

Arrays are one of the most powerful types in PHP. Let's learn some cool stuff to do with arrays.

```php
# You can create an array like this
$array = new ArrayObject(); 

# Destructuring an array
$destruct = ['test', 'key'];
[$test, $key] = $destruct;
$destructAssociative = ['name'=> 'Raziel'];
['name' => $myName] = $destructAssociative;
var_dump($test, $key, $destructAssociative);

# Spread operator (similar to JavaScript)
$arrayUnpacking = [...$destructAssociative, ...$destruct];
var_dump($arrayUnpacking);

# Pointers
$point = [1,2,3];
$appointed = &$point;
$point[] = 'hello';

# Will add the same data here because of the pointer
var_dump($appointed);
```

- Enum

Don't need to create constants inside classes anymore.

```php
enum Suit {
    case Suit;
}
```

- Declare types

An easter egg about declare(strict_types=1).

```php
# File with declare
function sum(int $a, int $b)
{
    return $a + $b;
}
```

- The never return type

This one is such a gem. The 'never' return type ignores the throw, exit, or die function. When 'never' is defined as a return type, even if you call 'exit' inside the function, the system will continue instead of stopping.

```php
function neverSay(): never
{
    echo 'Nobody can stop me!';
    exit;
}

function willContinue(): never
{
    throw new Exception('No way!');
}

try {
    willContinue();
} catch (Exception $th) {
    echo $th->getMessage();
}
```

That's all! I hope those tips can help you in your career and in your daily tasks. See you in my next articles.
New to Web Development
Published: 2024-03-28 01:19:22

Over the past couple of months I have been building a great foundation for Web Development using Javascript, HTML, and CSS. The topics we covered ranged from the fundamentals all the way to communicating with the server. Let me walk you through the journey.

**Javascript Fundamentals** - Just like any programming language, Javascript uses variables. Remember, let can be reassigned but not redeclared, var cannot be reassigned or redeclared, and don't use var(you can but not recommended)! 

The only other thing I will tell you about fundamentals is that there are 7 javascript data types: numbers, strings, booleans, symbols, objects, null, and undefined. Moving on.

**Javascript Functions** - Functions are the epicenter of Javascript - they only fly First Class.
There are many ways to create and define functions in Javascript. I find myself using arrow functions the most => but they can't be hoisted :( 
Anonymous functions are great for callback functions.
Standard functions are great, but don't have the built in return function that arrow functions have (make sure you know when to use and when not to use).

**Scoping** - Scoping tells us which functions and variables can be accessed, and where they can be accessed. Global variables can be accessed by any function, while local variables are only accessible to functions and variables within its scope. It all connects via scope chain. It sounds confusing, but is easier to understand visually. Moving on.

**Data Structures** - The 2 main data structures to focus on in Javascript are Arrays and Objects.[ Arrays contain elements and can be accessed via index]. {Objects contain key:value relationships and are accessed via the key or value}. There are many ways to loop through each element of an object or array: forEach and for...of run through each element of an array, while for...in iterates through each key:value in an object. Don't forget about for loops!

**Array Iteration** - Make sure to know how to use .map and .filter: .map creates a new array that takes an original array and applies a callback function to it to change the elements. .filter creates a new array that only includes the elements that meet a certain criteria.

--------
Three Pillars Of Javascript

**The DOM** - The DOM is the visual representation of our code. I find it easy to select elements to use in my Javascript file by creating a live server in google chrome, then clicking (command option i). From there I can see each element and use the console to test out my code. 

**Javascript Events** - JS events are where the page comes to life. Any action you use when searching the web was built using a javascript event: a click, search, keypress, hover elements, the list goes on...
Without them, our website is just plain boring.

**Communicating With The Server** - This is the final layer between Frontend and Backend. We use fetch to connect our remote Database to our frontend. All the data storage is kept in a JSON file, where we can access it via a GET request.

And thats all folks. Stay tuned for more.
Mahjong Bump
Published: 2024-03-28 01:06:10

## Mahjong Bump

> Type: Tile Match 3
> View: 2d
> Fun points: the pleasure of clearing clutter, relaxing three-in-one leisure
> Platform: GP


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

> Time: 2021
> Personal Responsibilities:
> All program parts developed
> List GooglePlay related work
> Analyze game data and discuss modification plans and iterative products

> This game was once available on Google Play, but was later removed due to account reasons.

### Module division:
**1. Core gameplay**

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

Select 3 of the same tiles from the stacked mahjong tiles, and the three tiles will eliminate each other until all the tiles are eliminated, and the level is won.

Restrictions: Only the top mahjong tiles can be picked up, and the pressed mahjong tiles cannot be picked up.

The picked up mahjong is placed in the slot below and stored, and the program automatically arranges the ones of the same suit together. If the stored cards are greater than 7, the game will fail.

**2. Props**


- Cancel
After use, return the last item picked up to the deck.

- Automatic elimination
Use it to automatically match three identical chess pieces to eliminate them.


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



- shuffle
shuffle the deck


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


**3.Daily tasks**

After the game ends, the daily tasks will be automatically displayed.


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



**4. Level selection**


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



**5. Ranking**
Here is also a simulated ranking list, the rankings are updated every day.


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


**6. Background replacement**


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


**7. Chess piece replacement**


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


**8. Sign in**

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


**9. Settings**


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