teleren/devto huggingface dataset:
Check array is sorted or not
Tags: sort, array, programming, javascript
Published: 2024-04-21 04:52:20

This is my given array

```
const arr=[1,2,6,4,5]
```

- You need traverse through array from the index 1 

- In each loop check the current element (**arr[i]**) with previous element

- if current element is greater than previous element then continue with loop else break the loop over there

## In the first loop
current element is greater than previous element so you can continue with the loop

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

## In the second loop
current element is greater than previous element so you can continue with the loop

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

## In the third loop
current element is lesser than previous element so break the loop

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


> Solution to check array is sorted or not in javascript

```
let checkSort = true

for(let i=1;i<arr.length;i++){
  if(arr[i] < arr[i-1]]){
    checkSort=false;
    break;
  }
}

if(checkSort){
  console.log("Array is Sorted")
}else{
  console.log("Array is not sorted)
}
```
Find the largest element within the array
Tags: array, programming, codenewbie, javascript
Published: 2024-04-21 04:16:13


this is my given array 

```
const arr=[5,10,4,24,13,8]
```

- **largest is set to first element in the array --- largest = arr[0] **
- You need to set the first element to largest 
- next need to loop from 1 st index to last index 
- in each loop check if the array value is larger than that in that case largest will be the current iterating element

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

Program to find the largest element in the array 

```
let largest = arr[0];

for(let i=1;i<arr.length;i++){
  if(arr[i] > largest){
    largest=arr[i]
  }
}

console.log(largest)
```
Do you test edge cases?
Tags: programming
Published: 2024-04-21 03:43:44

Often when we learn programming, we are never taught to think outside the box. Yes, we are given some set of requirements, and a vision of what to build. It is our job as Software Engineers to build that product.
So you folks might have heard of this, famous code to find factorial of a number, the recursive method.

```
int factorial(int n)
{
    int ans = 1;
    if(n == 0 || n == 1)
    {
        return 1;
    }
    ans = n * factorial(n-1);
    return ans;
}
```

> Question: What happens when we enter negative number?

A penny for your thoughts
Go
Tags: cozechallenge, devchallenge, ai, machinelearning
Published: 2024-04-21 03:33:00

*This is a submission for the [Coze AI Bot Challenge](https://dev.to/devteam/join-us-for-the-coze-ai-bot-challenge-3000-in-prizes-4dp7): Bot Innovator.*

## What I Built
<!-- Tell us what your bot does, who it's for, and what problem it solves -->

## Demo

<!-- Share a link to your bot in the Coze Bot Store and include screenshots or recordings showcasing a user's chat interface with your bot. -->


## Your Configuration

<!-- Screenshot or record your bot's configuration, including prompts and skills used.  -->

## Journey

<!-- Tell us about your process, what you learned, anything you are particularly proud of, what you hope to do next, etc. -->

<!-- Team Submissions: Please pick one member to publish the submission and credit teammates by listing their DEV usernames directly in the body of the post. -->

<!-- Don't forget to add a cover image (if you want). -->

<!-- Thanks for participating! -->
Small talk TypeScript
Tags: typescript
Published: 2024-04-21 03:10:53

## Origin
http://blog.kueiapp.com/en/programming/easy-talk-typescript/

## What is TypeScript
TypeScript was first published at version 0.8 in 2012 by Microsoft, and made version 1.0 in 2014 with more types supported. The purpose to develop TypeScript is to solve problems that JavaScript is hard to be maintain on large and complex application development. TypeScript was made based on ECMAScript standard with supporting class-based programming, syntactical superset and static typing system.


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



## Superset
Simply to say, TypeScript is a superset or a wrapper to JavaScript. It contains the latest ES6 (ECMAScript 2015) syntax of JavaScript and strict types to maintain reliable codes. With TypeScript compiler, every TypeScript codes (.ts) will be translated to JavaScript codes (.js) for execution.

## Run a TS file
To execute a ts file, the first of first thing is to install TypeScript into your environment by installing Node and NPM system in advanced.

`npm install -g typescript`

Then you can create any file with .ts extension by any text editor such as vim editor using your terminal, and type console.log('hello') into the .ts file for testing.

```
// commands
vim hello.ts

// in hello.ts
console.log('hello')
```

It’s time to execute the .ts file. Remember, any .ts file should be transferred to .js file for execution. Run tsc hello.ts in your terminal, then you will see a hello.js file be created into the same folder. To run the file, use NodeJS to run your .js file in the terminal.

```
// command 1
tsc hello.ts

// command 2
node hello
```

Setting for your new project
The simple example above is to run a single file by tsc command. However, in real case, we usually create a lot of file within a project folder. We can then create a file called tsconfg.json in root of project to set up our compiler for the project, so that TypeScript compiler can read all .ts file in our project folder and sub-folders automatically.

```
{
  "compilerOptions": {
    "target": "ES2018", // transfering target
    "module": "ESNext", // JS module mode
    "moduleResolution": "Node",
    "importHelpers": true,
    "esModuleInterop": true,
    "resolveJsonModule": true,
    "allowJs": true,
    "sourceMap": true,
    "strict": true,
    "types": ["@types/node"]
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules", "**/*.spec.ts"]
}
```

## Origin
http://blog.kueiapp.com/en/programming/easy-talk-typescript/
Earth
Tags: devchallenge, frontendchallenge, css, javascript
Published: 2024-04-21 02:20:32

_This is a submission for [Frontend Challenge v24.04.17](https://dev.to/devteam/join-us-for-the-next-frontend-challenge-earth-day-edition-52e4), Glam Up My Markup: Earth Day Celebration Landing Page_

## What I Built

I built a web page with HTML, CSS and JavaScript with some information about the climate change, sustainable practices, and some interesting facts about earth. The goal is promote the sustainable practices, generate awareness on people, and encourage them to care our planet. -->

## Demo
You can find the project deployed on GitHub pages [here](https://elmerurbina.github.io/earth/).

[Access the code directly on the repository.](https://github.com/elmerurbina/earth)

## Journey
I developed new skills with JavaScript, language that i am actually learning, as well i put in practice some of my knowledges on climate change and carry it to real life projects.

## License
The project is under the MIT free license

<!-- Don't forget to add a cover image to your post (if you want). -->


<!-- Thanks for participating! -->
Make your oncall easy with Savvy's AI
Tags: sitereliabilityengineering, devops, webdev, go
Published: 2024-04-21 01:07:15

Depending on the developer in charge of the oncall, an issue can be resolved in 15 minutes or after many hours and numerous escalations till the right person is paged. 

Creating and sharing expertise to resolve user facing incidents is a critical requirement for a well functioning engineering team. 

However, sharing the tools and knowledge to resolve user incidents is a high friction, manual process. Runbooks and commands are stored in general purpose editors like Slab, Notion, Google Docs, Microsoft etc which hinders discoverability, analytics and recall. 

Savvy's AI eliminates all friction from creating and sharing knowledge. Savvy provides an unified dashboard to search across all runbooks. 

> Savvy's AI-generated runbooks don't look boring or intimidating with good UX and easy to follow steps, any developer with no prior knowledge of the issue, can automatically run these runbooks to resolve user-facing issues at lightning speed!

Get started with Savvy today at https://getsavvy.so/
Software Samurai
Tags: software, music
Published: 2024-04-21 00:14:29

---
title: Software Samurai
published: true
description: Cutting through buts, unit tests shining bright.
tags: software, music
---

Verse 1:
In the realm of code, I stand tall
A Software Samurai, unafraid of it all
My intellect sharp, my wit precise
No bug can escape my eagle eyes

Chorus:
I am the Software Samurai
Cutting through problems, I never say die
My unit tests, they shine so bright
Leaving clean code, a glorious sight

Verse 2:
Refactoring my blade, I hone my skills
Debugging battles, I fight until fulfilled
Elegant design, my fluid moves
In collaboration, my team approves

(Repeat Chorus)

Bridge:
A quest for perfection, I'll never cease
Delivering products, a masterpiece
In the digital dojo, I stand my ground
A Software Samurai, forever bound

(Repeat Chorus)

Outro:
No problem can defeat me, I stand tall
A Software Samurai, coding above all
My legacy lives on, in every line
Forever sharp, forever mine
Get Help from Certified Experts to Recover Your Scammed Crypto Assets
Published: 2024-04-21 00:02:30

Lost your cryptocurrency to scammers? Don't worry! Our expert team can help you recover your assets. Contact us now for a secure and efficient solution.


🌐 Contact Us 🌐
📞 Phone: +19723798586
📧 Email: writeus@mistroethicalhack.pro
🌍 Website: https://mistroethicalhack.pro/
Exploring the AI Evolution: A Timeline of Key Milestones From 2022 until today
Tags: timeline, ai, github
Published: 2024-04-20 23:55:06

Hello Dev.to Community👋

I've recently developed the **[Artificial Intelligence Timeline](https://github.com/NHLOCAL/AiTimeline)**, a chronological compilation of significant events, releases, and advancements in AI from 2022 to 2024. 

## What Sets This Apart?

- **Minimalist Design:** The timeline features a clean and straightforward design, focusing on clarity and ease of navigation.
- **Organized Information:** Events are systematically grouped by year, allowing for a structured and comprehensive view of AI's evolution.
- **Detailed Descriptions:** Each event is accompanied by a concise description, providing context and key details.

## Why This Timeline?

During my research, I found a lack of organized and easily accessible timelines covering AI's key developments. Recognizing this gap, I decided to create a resource that offers a clear and organized overview of the industry's milestones.

## Contributing

Your input is valuable. If you notice any missing events or have suggestions for improvements, contributions are welcome. Please feel free to open an issue or submit a pull request on the [GitHub repository](https://github.com/NHLOCAL/AiTimeline).

## The Future of the Timeline

As AI technology continues to evolve, this timeline aims to serve as a continually updated resource, capturing the ongoing advancements and innovations in the field.

## Join the Conversation

I invite you to explore the [Artificial Intelligence Timeline](https://nhlocal.github.io/AiTimeline/) and provide your feedback. Your insights can help enhance this resource for the broader community.
Hacker News Coze Plugin
Tags: cozechallenge, devchallenge, ai, machinelearning
Published: 2024-04-20 23:46:20

*This is a submission for the [Coze AI Bot Challenge](https://dev.to/devteam/join-us-for-the-coze-ai-bot-challenge-3000-in-prizes-4dp): Trailblazer.*

## What I Built

I built a plugin that allows Coze bots to make requests to the [Hacker News API](https://github.com/HackerNews/API).

## Demo

https://www.coze.com/store/plugin/7360083700228407302

Bots can make requests to get

- Items (which can be one of)
  - Stories
  - Comments
  - Jobs
  - Polls
  - Poll options
- Users
- IDs of the latest items available, since the v0 API is essentially a dump of their in-memory data structures.

## Journey

Hacker News publishes their public API spec, so I was able to use that as a starting point to match the structure of the request and response objects.
Yokai - a simple, modular and observable Go framework for backend applications.
Tags: go, opensource, observability, framework
Published: 2024-04-20 22:33:03

Building backend applications with Go is amazing.

But to build **production-grade** applications, you need to put in place a bunch of efforts and boilerplate code, introducing complexity not even related to the logic of your application (like dependencies wiring, configuration management, observability instrumentation, etc.).

To solve this, [Yokai](https://github.com/ankorstore/yokai) was created with the following goals in mind:

- **Simple**: it is easy to use, configure and test, enabling you to iterate fast and deliver quickly maintainable applications.

- **Modular**: it can be extended with the available Yokai modules, or with your own, to build evolvable applications.

- **Observable**: it comes with built-in logging, tracing and metrics instrumentation, to build reliable applications.

In other words, **Yokai lets you focus on your application logic, while taking care of the rest**.

Don't hesitate to visit the [Yokai repository](https://github.com/ankorstore/yokai) to find the technical **documentation**, starting **guides** and **demo** applications!
Recreating a GIF with CSS: Earth Day Edition
Tags: frontendchallenge, devchallenge, css, webdev
Published: 2024-04-20 22:18:46

_This is a submission for [Frontend Challenge v24.04.17](https://dev.to/devteam/join-us-for-the-next-frontend-challenge-earth-day-edition-52e4), CSS Art: Earth Day._

## Inspiration
When I saw the challenge I wanted to participate to improve my skills, and when I saw the GIF in the announcement post I knew what to attempt. I had never done any "complex" animations with CSS alone so this was the right time to try.

![earth-day-gif](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v9uqyofk6o73vgdfcov5.gif)

## Demo 

{% codepen https://codepen.io/arndomG/pen/LYvgaQY %}

> sadly, it doesn't loop so click **rerun**↗️ to replay

## Journey 
Upon reading the announcement and seeing the GIF, I knew I had to attempt a CSS recreation. It was unique, outside my comfort zone and something worth doing and sharing.

I started by watching [a video about CSS animations](https://www.youtube.com/watch?v=NdftnCDwKaU) from Kevin Powell on YT as I had no idea where to start from. After this, I created a codepen account and started figuring things out.

I broke the GIF into chunks, starting from the clouds, then the earth, its face, its map background and its tree, while sequentially animating these elements along the way.

Time flew by as I initially struggled but eventually got the hang of things. At the end of it all, the animation was done and though it wasn't perfect, It looked great and I was pleased with it.

## Used Resources
- https://www.youtube.com/watch?v=NdftnCDwKaU
- https://cssanimation.rocks/spheres/
- https://lauryndbrown.github.io/2017/06/08/creating-clouds-in-css.html
- https://codepen.io/nelledejones/pen/gOOPWrK?editors=1100


![bye-bye](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rduevddrctj90zu6c4u5.gif)
(PELISPLUS)! Ver Godzilla Y Kong El Nuevo Imperio (2024) Online en Español y Latino
Tags: webdev, javascript, beginners
Published: 2024-04-20 21:42:03

hace 02 minutos — PELISPLUS Ver Godzilla Y Kong El Nuevo Imperio 2024 Online Gratis en español, Latino, Castellano y Subtitulado sin registrarse (Godzilla Y Kong El Nuevo Imperio). Ver estrenos de películas y también las mejores películas en HD Ver Godzilla Y Kong El Nuevo Imperio película Completa Gratis en español o con subtítulos en tu idioma, en HD y hasta en calidad 2024 HD con Audio español Latino y Subtitulado.

cómo y dónde ver la Película Completa de Godzilla Y Kong El Nuevo Imperio (2024) online gratis en Español<p>

➤➤🔴📱 VER AHORA ✅➤➤[Godzilla Y Kong El Nuevo Imperio (2024) Películas Completa Online HD](https://cutt.ly/Qw5PcisY)

Lanzamiento: 2024-02-27
Duración: 167 minutos
Género: Ciencia ficción, Aventura
Estrellas: Timothée Chalamet, Zendaya, Rebecca Ferguson, Javier Bardem, Josh Brolin
Director: Denis Villeneuve, Frank Herbert, Jon Spaihts, Denis Villeneuve, Mary Parent

Ver Godzilla Y Kong El Nuevo Imperio (2024) Películas Español - Cuevana 3 Cuevana 3 Ver Godzilla Y Kong El Nuevo Imperio 2024 Online Gratis en español, Latino, Castellano y Subtitulado sin registrarse. Ninja Turtles: Ca CUEVANA 3 VER! Godzilla Y Kong El Nuevo Imperio PELICULA COMPLETA 2024 EN ESPAÑOL Y LATINO ONLINE

Godzilla Y Kong El Nuevo Imperio Pelicula Completa | 4K [Blu Ray] 460p - 720p - 1080p - Flv - Mp4
GETTING STARTED WITH HTML
Tags: webdev, beginners, programming, tutorial
Published: 2024-04-20 21:37:10

_EP1_

HEY everyone!! WELCOME to my blog post.

Today I found something so interesting and fun, looks like magic in my eye I'm not gonna lie. But after some guidance, teaching and practicing i was able to get through it.


Ladies and Gentlemen, i present to you HTML(HyperText Markup Language). _Sounds interesting right??_

_The question is what does this HTML mean?_

**HTML IS THE BACKBONE OF THE WEB. IT'S USED TO STRUCTURE CONTENT ON WEB PAGES USING VARIETY OF ELEMENT LIKE: HEADING, PARAGRAPH, Links, List and more**. These element are enclosed in tags, which tells the browser how to display the content.


_.......tbc......_


Show your support fam by posting a comment in the comment section.

_THANK YOU_
Bitcoin Recovery from a Frozen Investment Wallet by iBolt Cyber Hacker
Tags: webdev, javascript, beginners, programming
Published: 2024-04-20 21:36:56

Facing the frustration of a frozen investment wallet containing valuable Bitcoin, I turned to iBolt Cyber Hacker for assistance, and I am incredibly pleased with the outcome.I contacted iBolt Cyber Hacker, they demonstrated a thorough understanding of my situation and provided reassurance that they could assist in recovering my frozen Bitcoin. They outlined a comprehensive recovery plan tailored to my specific needs.

Thanks to iBolt Cyber Hacker's diligent efforts and expertise, I successfully regained access to my frozen investment wallet and recovered my Bitcoin. Their fast recovery services exceeded my expectations. if you're grappling with a frozen investment wallet or any other cryptocurrency-related challenges, I highly recommend reaching out to iBolt Cyber Hacker.

h t t p s : / / i b o l t c y b e r h a c k . c o m /
ROS 2 Service Tutorial: Learn to create Server-Client Communication for Robotics Integration!
Tags: ros, beginners, tutorial, rosservice
Published: 2024-04-20 21:30:22

In this video, we're diving deep into **server-service and service-client communicatio**n, unlocking the power of ROS 2 for seamless integration in your robotics projects.

**Learn how to create server nodes** to provide essential functionalities and efficient service clients to request and utilize these services.

Throughout this tutorial, we'll cover everything from setting up server nodes to defining service types, handling requests, and processing responses.  

Link: [click_here](https://www.youtube.com/watch?v=kr5qVO5tIZQ&list=PL8MgID9MCju0GMQDTWzYmfiU3wY_Zdjl5&index=8)
ROS2 RViz Part-02 Tutorials: Learn RViz visualization tools + create Dynamic Geometric shapes.
Tags: ros, tutorial, rviz, beginners
Published: 2024-04-20 21:26:46

In this video, we're diving deep into marker visualization, focusing on both geometric shapes and dynamic markers that change position and orientation in real-time.

Learn how to create and manipulate geometric shapes such as cubes, spheres, and cylinders, and discover advanced techniques for dynamically updating their properties.

We'll also demonstrate how to use dynamic markers to visualize moving objects, trajectories, and other dynamic elements in your robot's environment. From tracking robot paths to visualizing sensor data, dynamic markers offer endless possibilities for enhancing situational awareness.

Link: [click_here](https://www.youtube.com/watch?v=kr5qVO5tIZQ&list=PL8MgID9MCju0GMQDTWzYmfiU3wY_Zdjl5&index=7)
ROS2 Tutorials for beginners
Tags: ros, ros2, tutorial, beginners
Published: 2024-04-20 20:58:16

ROS2 Comprehensive Tutorials!
🤖 Elevate Your Robotics Skills with Our ROS2 Tutorial Playlist! 🚀

Are you struggling to understand ROS2 or facing challenges in implementing it into your projects? Look no further! Our playlist is here to help.

In our tutorials, we cover everything from the basics topics of ROS2 such as nodes, publisher, subscriber, etc. to advanced topics like tf2 library, services and dynamic shape creation in RViz. Whether you're just starting out or already have some experience, our videos are designed to support your learning journey.

Playlist: ROS2 Tutorials:
link: [click_here](https://www.youtube.com/watch?v=bDmjX1bXVk0&list=PL8MgID9MCju0GMQDTWzYmfiU3wY_Zdjl5)

Here's a sneak peek of what you'll find:

1. Clear explanations and step-by-step guides for ROS2 installation.
link: [click_here](https://www.youtube.com/watch?v=kr5qVO5tIZQ&list=PL8MgID9MCju0GMQDTWzYmfiU3wY_Zdjl5&index=1)

2. Fundamental concepts of ROS2 made easy to grasp: Nodes, Publisher, Subscriber, Messages, Topics, and More!
link: [click_here](https://www.youtube.com/watch?v=kr5qVO5tIZQ&list=PL8MgID9MCju0GMQDTWzYmfiU3wY_Zdjl5&index=2
)

3. Practical demonstrations of nodes, topics, publishers, and subscribers ussing Turtlesim Simulation.
link: [click_here](https://www.youtube.com/watch?v=kr5qVO5tIZQ&list=PL8MgID9MCju0GMQDTWzYmfiU3wY_Zdjl5&index=3)

4.  Creating your own ROS2 Workspace, Custom Packages, Publisher and Subscribe.
link: [click_here](https://www.youtube.com/watch?v=kr5qVO5tIZQ&list=PL8MgID9MCju0GMQDTWzYmfiU3wY_Zdjl5&index=4)

5. Understand Static and Dynamic Transforms + Creating Custom Frames using TF2-library:
link: [click_here](https://www.youtube.com/watch?v=kr5qVO5tIZQ&list=PL8MgID9MCju0GMQDTWzYmfiU3wY_Zdjl5&index=5)

6. ROS2 RViz Part-01 Tutorials: Customize RViz2 + Learn to utilize RViz visualization tools: 
link: [click_here](https://www.youtube.com/watch?v=kr5qVO5tIZQ&list=PL8MgID9MCju0GMQDTWzYmfiU3wY_Zdjl5&index=6)

7. ROS2 RViz Part-02 Tutorials: Learn RViz visualization tools + create Dynamic Geometric shapes: 
link: [click_here](https://www.youtube.com/watch?v=kr5qVO5tIZQ&list=PL8MgID9MCju0GMQDTWzYmfiU3wY_Zdjl5&index=7)

8. ROS 2 Service Tutorial: Learn to create Server-Client Communication for  enhanced functionality and robotics integration!: 
link: [click_here](https://www.youtube.com/watch?v=kr5qVO5tIZQ&list=PL8MgID9MCju0GMQDTWzYmfiU3wY_Zdjl5&index=8)

Whether you're looking to troubleshoot, improve your understanding, or simply pick up some tips and tricks, our tutorials are here to support you. 
Don't miss out on this opportunity to enhance your robotics projects and expand your skill set. Check out our playlist now!

[click_here](https://www.youtube.com/watch?v=bDmjX1bXVk0&list=PL8MgID9MCju0GMQDTWzYmfiU3wY_Zdjl5) 

Feel free to share with anyone who might benefit from it. Let's learn and grow together in the world of robotics! 🌟

#ROS2 #ROS2Tutorials #RViz2 #CoordinateFrames #TF2Llibrary #TF2 #TF2ROS2 #ROS2Services #Robotics #Tutorials #Learning #TipsAndTricks #SkillBuilding #ROS2TutorialPlaylist #ROSTutorials