teleren/devto huggingface dataset:
JAVA-Math Class
Published: 2024-01-20 22:13:58

```

public class Main {

	public static void main(String[] args) {
		
		
		double x = 3.14;
		double y = -10;
		
		double z = Math.max(x,y);
		double a = Math.min(x,y);
		double b = Math.abs(x);
		double c = Math.sqrt(x);
		double d = Math.round(x);
		double e = Math.ceil(x);
		double f = Math.floor(x);
		
		System.out.println(z);
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
		System.out.println(d);
		System.out.println(e);
		System.out.println(f);
	}
	
		
}
	


```

The Hypotenuse
```
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		
		
		double x;
		double y;
		double z;
		
		Scanner scanner = new Scanner(System.in);
		System.out.println("Enter side x: ");
		x = scanner.nextDouble();
		
		System.out.println("Enter side y: ");
		y = scanner.nextDouble();
		
		z = Math.sqrt((x*x)+(y*y));
		
		System.out.println("The hypotenuse is :"+z);
		
	}
	
		
}
	


```
Folder Structure For E-commerce
Published: 2024-01-20 11:16:51

## **Create a Folder**

```jsx
**- src
  - components
  - context
  - pages
  - redux
  - firebase**
```

## **Step 1 : Create a Navbar Folder**

```jsx
**- components
  - navbar
    - Navbar.jsx**
```

## **Step 2 : Create a Footer Folder**

```jsx
**- components
  - footer
    - Footer.jsx**
```

## **Step 3 : Create a Layout Folder**

```jsx
**- components
  - layout
    - Layout.jsx**
```

**`Layout.jsx`**

```jsx
**import React from 'react'
import Footer from '../footer/Footer'
import Navbar from '../navbar/TopNvbar'

function Layout({ children }) {
  return (
    <div>
      <Navbar />
      <div className="content">
        {children}
      </div>
      <Footer />
    </div>
  )
}

export default Layout**
```

## **Step 4 : Create a Page**

```jsx
**- pages
  - home
    - Home.jsx
  - allproducts
    - AllProducts.jsx
  - Order
    - Order.jsx
  - cart
    - Cart.jsx
  - admin
    - dashboard
      - Dashboard.jsx
  - nopage
    - NoPage.jsx**
```

`**Home.jsx**`

```jsx
**import React from 'react'

function Home() {
  return (
    <div>Home</div>
  )
}

export default Home**
```

## **Step 5 : Import Layout in Home.jsx**

```jsx
**import React from 'react'
import Layout from '../../components/layout/Layout'

function Home() {
  return (
    <Layout>Home</Layout>
  )
}

export default Home**
```

## **Step 6 : Create a route of all page**

### Install React router dom for routing

```jsx
**npm i react-router-dom**
```

### **Define routes in App.jsx**

**Import `BrowserRouter as Router`, `Route`, `Routes`, from react-router-dom**

```jsx
**import {
  BrowserRouter as Router,
  Route,
  Routes,
} from "react-router-dom";**
```

## Complete Code

```jsx
**import React from 'react'
import {
  BrowserRouter as Router,
  Route,
  Routes,
} from "react-router-dom";

import Home from './pages/home/Home';
import Order from './pages/order/Order';
import Cart from './pages/cart/Cart';
import Dashboard from './pages/admin/dashboard/Dashboard';
import NoPage from './pages/nopage/NoPage';

function App() {
  return (
    <Router>
      <Routes>
        <Route path="/" element={<Home/>} />
        <Route path="/order" element={<Order/>} />
        <Route path="/cart" element={<Cart/>} />
        <Route path="/dashboard" element={<Dashboard/>} />
        <Route path="/*" element={<NoPage/>} />
      </Routes>
    </Router>
  )
}

export default App**
```
JAVA-Graphical user interface (GUI) Intro
Published: 2024-01-20 22:00:03

```
import javax.swing.JOptionPane;

public class Main {

	public static void main(String[] args) {
		
		String name = JOptionPane.showInputDialog("Enter Your Name");
		JOptionPane.showConfirmDialog(null,"Hello"+name);
		
		int age = Integer.parseInt(JOptionPane.showInputDialog("Enter Your Age"));
		JOptionPane.showConfirmDialog(null,"Your age"+age);
		
		double height = Double.parseDouble(JOptionPane.showInputDialog("Enter Your Height"));
		JOptionPane.showConfirmDialog(null,"You are"+height);
	
	}
	
		
}
	


```
JAVA-Expression
Published: 2024-01-20 21:47:17

```
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		//expression = operands & Operators
		//Operands = Values, Variables, number, quantity.
		//Operators = + - * / %
		
	
		//int frineds= 123;
		double friends = 12.5;
		
		System.out.println(friends);
		
		
	
		
	
	
	}
	
		
}
	


```
My 2024 Resolutions👩🏻‍💻⚡️
Tags: devresolutions2024, webdev
Published: 2024-01-20 21:43:25

Hello, DEV! 

Although January is coming to an end, I'm excited to share my first post and New Year's resolutions.

My main goal for 2024 is to secure a job as a full-stack developer after a career break. The timeline is the end of 2024, hopefully before my birthday in December.

## A bit about my background

I have 8+ years of experience as a software developer, focusing on backend technologies with Java and PHP. I've felt a slowdown in my career over the past few years and am now eager to reignite my professional journey. I'm currently refreshing my skills in the latest version of Java since my knowledge stops at Java 8. I'm also interested in expanding my knowledge of modern full-stack technologies, especially frontend and DevOps.

## Action plan

- Write one post per month, starting with this January post.
- Create a personal portfolio website, starting with a template and gradually improving it.
- Prepare for coding interviews on Leetcode and HackerRank.
- Work on personal projects to refresh my existing skills and learn new ones. 
- Take some courses and obtain certifications. 

## List of my interests
Anyway, I've jotted down a list of my interests for now, though I'm still unsure what I should prioritize the most.

- React
- Docker 
- Test Automation
- [PWA](https://web.dev/learn/pwa)
- [TensorFlow](https://www.tensorflow.org/js/tutorials)
- [Meta Front-End Developer Professional Certificate](https://www.coursera.org/professional-certificates/meta-front-end-developer)
- [Generative AI with Large Language Models](https://www.coursera.org/learn/generative-ai-with-llms)
- [Azure Certified DevOps Engineer Expert
](https://learn.microsoft.com/en-us/credentials/certifications/devops-engineer/)
- [GCP Certified Professional Data Engineer](https://cloud.google.com/learn/certification/data-engineer)

I'm open to suggestions and would greatly appreciate any recommendations for resources, courses, or tools to support my journey!
Java-User Input
Published: 2024-01-20 21:37:37

```
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
	
	Scanner scanner = new Scanner(System.in);
	
		System.out.println("What is your name");
		String name = scanner.nextLine();
		
		System.out.println("How old are you?");
		int age = scanner.nextInt();
		scanner.nextLine();
		
		System.out.println("What is your Favorite Food");
		String food = scanner.nextLine();
	
	
	}
	
		
}
	


```
Do you want to make good friend ?
Tags: dating, cloud, learning, api
Published: 2024-01-20 21:31:45


ME 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhrmshdrm476e7lzcfql.jpg)
Join us ,[ see more ](https://www.toprevenuegate.com/tdm35maq?key=cd39f6a27fca090d2ae45db167f78b9f)
JAVA- Swap two Variable
Published: 2024-01-20 21:29:20

```

public class Main {

	public static void main(String[] args) {
		
	
		String x = "Water";
		String y = "Kool-Aid";
		String temp;
		
		temp = x;
		x=y;
		y=temp;
		
		System.out.println("x: "+x);
		System.out.println("y: "+y);
		
		
	}
	
		
}
	


```
Log API Calls using AWS CloudTrail
Published: 2024-01-20 21:28:38

Enhanced governance, compliance, operational and risk auditing of your AWS account can be achieved with the aid of AWS CloudTrail.
A user, role, or AWS service's actions are referred to as events in CloudTrail. AWS Management Console, AWS CLI, and AWS SDKs and APIs are sources where events can occur.

CloudTrail stores API calls and activities on the accounts, which include;

- Management events: include activities on the control plane such as creating IAM, EC2 instance, and interacting with AWS services on the management level

- Data events: include data events such as Lambda invocation, SNS and SQS, and interaction between AWS services.

Detailed steps in creating CloudTrail for your AWS account:

1. Hover to the search bar on the AWS Console, type **CloudTrail** then click on the **create a trail **as shown below;

![Cloudtrail Figure 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wf7qz2p0pk1eigj5hbr1.png)

2. Input the relevant parameters, including the trail name and storage bucket

![Cloudtrail Figure 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7mqpwr21rsfw8b8bhvd1.png)

3. The JSON Policy for IAMRole for the CloudTrail to access CloudWatch logs
`{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AWSCloudTrailCreateLogStream2014110",
      "Effect": "Allow",
      "Action": [
        "logs:CreateLogStream"
      ],
      "Resource": [
        "arn:aws:logs:us-east-1:014285054687:log-group:CloudTrailRoleForCloudWatchLogs-Douxtech:log-stream:014285054687_CloudTrail_us-east-1*",
        "arn:aws:logs:us-east-1:014285054687:log-group:CloudTrailRoleForCloudWatchLogs-Douxtech:log-stream:o-je4worq6xn_*"
      ]
    },
    {
      "Sid": "AWSCloudTrailPutLogEvents20141101",
      "Effect": "Allow",
      "Action": [
        "logs:PutLogEvents"
      ],
      "Resource": [
        "arn:aws:logs:us-east-1:014285054687:log-group:CloudTrailRoleForCloudWatchLogs-Douxtech:log-stream:014285054687_CloudTrail_us-east-1*",
        "arn:aws:logs:us-east-1:014285054687:log-group:CloudTrailRoleForCloudWatchLogs-Douxtech:log-stream:o-je4worq6xn_*"
      ]
    }
  ]
}`

4. Choose the respective events desired for the cloud trail, either management or data events with the corresponding aws service.

![Cloudtrail Figure 3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eqfmn7bwnd9tfxb4uuml.png)

![Cloudtrail Figure 4](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n8yuhahc4y570ezmhfkq.png)

5. The Cloudtrail has been successfully deployed, and the relevant logs streams are shown below.

![Cloudtrail Figure 5](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t0vsgac0getncnhi1dbz.png)


![Cloudtrail Figure 6](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lchp2i5dk1v6v4zrfpyk.png)


Voilaaa !!!, I hope you find it insightful and am waiting for your feedback.
Preparando un gran post: Desplegando App Functions en Azure
Tags: development, spanish, azurefunctions, serveless
Published: 2024-01-20 21:25:20

---
title: Preparando un gran post: Desplegando App Functions en Azure
published: true
tags: development, Spanish, azurefunctions, serveless
canonical_url: https://danieljsaldana.dev/preparando-un-gran-post-desplegando-app-functions-en-azure/
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c239yb9gbiljdudy5p53.png
---

Estoy emocionado de compartir que estoy trabajando en un post detallado sobre cómo desplegar aplicaciones utilizando **Azure Functions** 🛠️🌩️. Este artículo será una guía completa, ideal para aquellos que buscan aprender más sobre el mundo del cloud computing ☁️ y, específicamente, sobre cómo aprovechar las poderosas funciones de Azure.

En mi próximo post, voy a desglosar cada paso del proceso, desde la configuración inicial hasta el despliegue final, asegurándome de que sea accesible tanto para principiantes como para desarrolladores experimentados 🏗️💻.

**¿Qué podrás esperar?** 🤔

Aquí hay un pequeño vistazo de lo que podrás encontrar:

- Una introducción a Azure Functions y sus ventajas 🌟.
- Guía paso a paso para configurar tu entorno de desarrollo local 🔧.
- Consejos sobre cómo trabajar con Azure Cosmos DB 🌌.
- Instrucciones detalladas para desplegar tus funciones en Azure 📤.

**¡Mira el código antes del post!** 👀

Para aquellos de ustedes que están ansiosos por comenzar o simplemente quieren echar un vistazo a lo que vendrá, he subido el código fuente a mi repositorio de GitHub. Pueden encontrarlo aquí: [danieljsaldana/azure-function-app](https://github.com/danieljsaldana/azure-function-app).

Este repositorio contiene ejemplos de Azure Functions diseñadas para trabajar con Azure Cosmos DB y proporcionar una interfaz de API para varias operaciones, incluyendo saludos personalizados y operaciones con números 📊👋.

**Mantente conectado** 📢

Si te interesa este tema, mantente al tanto. ¡El post completo estará disponible muy pronto! Y si tienes preguntas o temas específicos que te gustaría que abordara, no dudes en dejar un comentario abajo 💬.

¡Espero que estén tan emocionados como yo por este próximo post! 🎉
بانک سوال گزینه دو
Published: 2024-01-20 21:22:54

سوال‌های موجود در[ نرم افزار بانک سوال گزینه دو](https://mag.gozine2.ir/%D8%A8%D8%A7%D9%86%DA%A9-%D8%B3%D9%88%D8%A7%D9%84/)  کاملا تالیفی بوده و استاندارد بودن مهم ترین شرط ورود سوال به این نرم افزار است. این سوال‌ها در گروه های ۳ تا ۸ نفره توسط اساتید مجرب بررسی شده و پس از بحث و بررسی علمی صورت گرفته بر روی سوال‌ها وارد نرم افزار می‌شوند. موسسه گزینه دو به هیچ عنوان کیفیت سوال های نرم افزار خود را فدای کمیت نمی‌کند و تمام سوال‌های موجود سوال‌‌های استاندارد و خوب علمی است.
Day 5: Mastering Azure Virtual Machines Deployment in #100DaysOfCloud
Tags: 100daysofcloud, azure, adcstreak, cloud
Published: 2024-01-20 20:18:06

As we stride through the #100DaysOfCloud, today marked a hands-on exploration into the heart of Azure – deploying Virtual Machines (VMs) using the intuitive Azure Portal.💻✨

🔍 Azure VM Deployment: A Step-by-Step Guide: The session kicked off with a step-by-step walkthrough of deploying a Virtual Machine using the Azure Portal. From choosing the right VM size to configuring networking and storage options, the Azure Portal provided a user-friendly interface, making the entire process seamless even for those new to cloud deployment.

🛠️ Configuration Choices: Tailoring VMs to Your Needs: The Azure Portal offers a plethora of configuration choices, allowing users to customize VMs according to specific workload requirements. From selecting the operating system to defining storage types and sizes, each decision shapes the foundation of your virtual computing environment.

⚡ Performance Considerations: Optimizing VMs for Efficiency: Understanding the performance implications of VM choices became a crucial aspect of the day. Delving into considerations such as CPU, RAM, and disk types, I learned how to strike the right balance between performance and cost-effectiveness, ensuring efficient resource utilization.

💬 Interactive Learning Experience: What set this day apart was the interactive learning experience offered by the Azure Portal. Real-time feedback and visual representations of configuration choices made the deployment process not just instructive but also engaging, reinforcing the principles of cloud deployment.

🔄 Connecting the Dots: Azure Resource Groups and RBAC in Action: As we deployed VMs, the connection with previous learnings on Azure Resource Groups and Role-Based Access Control (RBAC) became evident. Understanding how VMs fit into the broader Azure ecosystem, and how RBAC can be leveraged to manage these resources, added a layer of depth to the overall cloud comprehension.

🌐 Use Case Integration: Bringing it all together, I integrated the VM deployment into a practical use case. Whether it's running applications, hosting websites, or supporting specific workloads, Azure VMs emerged as versatile entities, capable of serving a myriad of business needs.

Thanks, @azdevindia and @beingwizard for the amazing session and resources.
python(kivy) won't tranform to apk
Tags: discuss, problem, python, kivy
Published: 2024-01-20 20:49:14

it works for a pc to another but when i try to make it as an apk to use it in my phone it's not working.
i'm using python(kivy, paramiko). please help me!
i don't understand i puted .spec files with requirements: python3, kivy, paramiko
https://github.com/herzSaifElarbi/pcController.git
React Throws a Curveball
Tags: react, webdev, javascript, frontend
Published: 2024-01-20 20:32:12

The ground is shaky in the web development realm. The React ecosystem is turbulent, currently dominant paradigms are being questioned and old ones, revisited. Overall, developers just don't seem to be happy with the state of things.

I'm one of them. React is pretty much all I've ever known to a deeper extent in web development. Though I grew to appreciate it over time, I've been concerned about React lately. It's changed. [Now it is best used within frameworks](https://react.dev/learn/start-a-new-react-project), supposedly. There's Next.js, Remix, Gatsby... Just what we all needed: more tools on top of tools on top of tools. Each with its own sets of standards.

Web development has become too complex over the years. There aren't just a dozen different libraries, there are frameworks and meta-frameworks to each of these. We've abstracted so far from ~~God~~ the browser and the DOM that switching from one library, framework or meta-framework to another can be a hassle; that being _actually good_ at any of these requires so much time that there's little time left to explore others. So much so that "React developer" (not front-end or web developer) has [become a thing](https://www.coursera.org/articles/react-developer). Now, I have to fear for a future where there are Next.js developers, Remix developers, Gatsby developers and more. 

Mark Erikson addressed the increasing complexity complaint on [his response](https://dev.to/markerikson/comment/2c8g3) to Matteo Frana's post "React, where are you going?" by claiming that you can still use React _whichever way you like_. This is true for small personal projects, but not so much for others. The expectations and trends set by the React team matter, as Frana himself [rebutted](https://dev.to/matfrana/comment/2c97k): 

> I can assure you that many potential customers, especially digital agencies, have expressed that they would not even consider using our React Bricks library if they couldn't use it with the Next App folder. So, the FOMO pressure is high.

It's not a coincidence, I don't think, that [HTMX](https://htmx.org/) gained [so much traction in 2023](https://risingstars.js.org/2023/en#section-framework). It offers us a glimpse of a simpler past and what could (if only maybe) be a simpler, more hypermedia-driven future for the web. Do we really _need_ all these complicated libraries and frameworks to handle DOM manipulations on fat clients? If this question didn't resonate with developers, having only heard about HTMX from others I myself would probably have never found out about it. But here we are.

It's no surprise web developers aren't happy. Instead of making things simpler, the largest part of the established ecosystem is further escalating the complexity, as React morphs into a framework dependency, throwing web developers a curveball. For one, if I just need to put a nail on a wall, I'd rather do it with a hammer than a battering ram. More than ever, I'm considering other approaches to web development and I sure hope others are too.
GETTING STARTED WITH THE SQL JOURNEY
Tags: luxtech, dsea, datascience, data
Published: 2024-01-20 20:28:19

Structured query language is it, and basically, it is the language for communicating with Relational databases such as MySQL and SQLSERVER.
With its ease syntax it gets no minute into understanding the fundamentals. In the past 2 weeks I have had a look or rather a deep dive into the introduction of SQL and quite a lot has been helpful in the learning.
I installed MySQL and chose Popsicle as the text editor to write the queries...It is actually a cool tool to use. I went from getting to **CREATE** a database to actually querying every bit of its data. Of course, **tables** are involved, structured into **columns** and **rows**.
Constraints in SQL, got to see how you can specify rules for the data that goes in my tables. Some of the common constraints include:
**PRIMARY KEY** - unique value that identifies each row in a table
**FOREIGN KEY** - basically a primary key in another table. You refer to it by the term REFERENCE.
**NOT NULL** - can't leave an empty value for your columns.
**UNIQUE** - a different value that doesn't match any other in that particular column.
**DEFAULT** - set a default value for a column if no value specified.

Moving on I got to interact with a couple SQL Queries. This goes from:
**INSERT INTO** - feeds data into tables.
**SELECT FROM** - retrieves data from tables.
**UPDATE** - modify data in a table.
**DROP**
**DELETE FROM**
and so forth 
A lot of SQL, from the word jump I have realized it's all about the **keywords**, understand your tables or rather data then fetch it using the appropriate keyword.
I also got to use most of the keywords which include:
**WHERE**: a specification
**ORDER BY**: does sorting whether in ascending or descending order.
**GROUP BY**: groups rows with the same values into summary rows.
**AS**: for aliases
**DISTINCT**: all different values, what actually exits

Functions too especially aggregate functions such as **COUNT()**, **SUM()**, **AVG()**, **MAX()**, **MIN()**

Moving to JOINS, UNIONS, NESTED queries this SQL gets more interesting for a fact.  
Getting to all of this and even more which I left out was way appealing. Pulling all kind of information, you require from modelled data is actually satisfying.

I now keep it on get hands all dirty on and uncovering more of SQL. 


**Datanerd**   
_**DATA ANALYST**_
BITCOIN RECOVERY EXPERT
Published: 2024-01-20 20:10:02

I advise first-time bitcoin investors to do their research before entrusting any of these Bitcoin investment websites with their hard earned funds. They gain your trust by portraying fake huge profits to convince you to put more funds, till when you invest a substantial sum, they intentionally freeze your account and demand for more payments to have your profits released. I had invested with a bogus company that ripped me off $198000 worth of Crypto, this was close to everything I Had in my savings. special thanks to Century Hackers Recovery, whose recovery company put in a lot of effort and made sure I had my money back If you ever find yourself in a similar scenario, you can reach out to Century Hackers  Recovery Recovery through; Email: century@cyberservices.com  
Website:  https://centurycyberhacker.pro
BuddyAd Native
Tags: webdev, javascript, beginners, programming
Published: 2024-01-20 15:21:43

BuddyAd Native là gì?
[BuddyAd Native](https://www.wsovn.net/buddyad-native) là công cụ gián điệp số 1 dựa trên tiện ích con
với Native, Pop và Adult Widget / Site ID Finder từ năm 2016
FE – BuddyAd Native – $1517581
Công cụ gián điệp bản địa (dựa trên tiện ích con)
Tất cả các tính năng mà bạn mong đợi từ một công cụ gián điệp .. và hơn thế nữa!
ID tiện ích con trên lưu lượng truy cập dành cho người lớn, phổ biến và tự nhiên
BuddyAd Native là công cụ duy nhất có thể khớp tiện ích con hoặc ID trang web với nhà xuất bản tương đối NẾU nó có trên db của chúng tôi. Chúng tôi liên tục quét web để tìm nhiều vị trí hơn, cũng như liên tục thêm nhiều mạng và địa lý hơn vào nền tảng của mình.
Quét thời gian thực tự nhiên
Bạn không chắc rằng chiến dịch gốc của mình đang chạy đúng cách? Theo dõi chiến dịch của bạn và kiểm tra xem các biểu ngữ của bạn có đang chạy trên một trang web hoặc ID tiện ích cụ thể (nếu chúng tôi có nó trên cơ sở dữ liệu của mình) bằng cách sử dụng Quét thời gian thực của chúng tôi.
Loại bỏ các vị trí xấu.
Mua ngay tại: [https://www.wsovn.net/buddyad-native](https://www.wsovn.net/buddyad-native)