teleren/devto huggingface dataset:
OZGARUVCHI VARIABLES
Published: 2023-01-14 07:29:18

python
Ozgaruvchi bu bir narsani qiymati berish degam manoni anglatadi.Ozgaruchini a yoki b qisqa qilib etganda lyuboy haqrifda belgilasa bolad.Ozgaruvchini belgilaganda bza int va str dan foydalanishimiz kere.
MISOL UCHUN:
x= mirjalol
y= umid 
c= (x,y)
pirnt(c)
O'zgaruvchilar - malumot qiyamtlarini saqlash uchun konteyner stakan!

#Butun sonlar uchun integer - int!
x = 5
y = "Umidjon" # bu faqat tekstlar uchun ishlatiladi string - str!
print(x)
print(y)


x = 4
x = "Umid"
print(x)

#int - butun sonlar uchun
#float - kasr sonlar uchun
#string - tekst uchun
x = int(3)
y = float(2.5)
z = str("hello")

print(x)
print(y)
print(z)

x = "umid"
x = 'umid'
print(x)

a = 4
A = 5

myvar = "John"
my_var = "John"
_my_var = "John"
myVar = "John"
MYVAR = "John"
myvar2 = "John"

print(myvar)
print(my_var)
print(_my_var)
print(myVar)
print(MYVAR)
print(myvar2)

# error - noqo'nuniy o'zgaruvchilar xatolik beradi bunday qilib chaqirib bo'lmaydi


#Ko'p qiymatlardan bir nechta o'zgaruvchilarga
#Phyton bir qatorda bir nechta o'zgaruvchilarga qiymatlarni belgilash imkonini beradi:

x, y, z = "Orange", "Banana", "Cherry"
print(x)
print(y)
print(z)

#Va bir qatorda bir nechta o'zgaruvchilarga bir xil qiymatni belgilashingiz mumkin:

x = y = z = "Orange"
print(x)
print(y)
print(z)

#Phyton print() funksiyasi ko'pincha o'zgaruvchilarni chiqarish uchun ishlatiladi.

x = "Phyton is awesome" 
print(x)

#Print() funksiyasida siz vergul bilan ajratilgan bir nechta o'zgaruvchilarni chiqarasiz:
x = "Phyton "
y = "is "
z = "awesome "
print(x + y + z)


#Unpack a Collection - To'plamni o'rash.

#Agar sizda ro'yxat' kortej va boshqalarda qiymatlar to'plami bo'lsa. Phyton sizga o'zgaruvchilarga ajratib olish imkonini beradi. Bunga qadoqdan chiqarish deyiladi.

#Misol uchun:
#Ro'yxatni oching:

fruits = ["apple", "banana", "cherry"]
x, y, z = fruits
print(x)
print(y)
print(z)

#Raqamlar uchun + belgisi matematik operator sifatida ishlaydi:
x = 5
y = 10 
print(x + y)

#Phyton - Global Variables

#Global Variables - Global o'zgaruvchilar

#Funktsiyadan tashqarida yaratilgan o'zgaruvchilar (yuqoridagi barcha misollarda bo'lgani kabi) global o'zgaruvchilar deb nomlanadi.

#Global o'zgaruvchilar funksiyalar ichida ham, tashqarisida ham hamma foydalanishi mumkin.

#Misol uchun:
#Funksiyadan tashqarida o'zgaruvchi yarating va uni funksiya ichida ishlating
x = "awesome"

def myfunc():
  print("Phyton is " + x)

myfunc()

x = 500
y = 200
z = x*y
print(z)

x = 24
y = 9
z = x/y
print(z)

narxi = 3500.60
soni = int(input("Qancha non kerak?"))

natija = soni * narxi

print("Natija:", natija)
Variables Lesson
Tags: beginners, programming, tutorial, python
Published: 2023-01-14 07:26:36

Veriable bu-o'zgaruvchilar,o'zgaruvchilar esa bo'm bo'sh quti desak unga qiymat kiritishimiz kerak. Shu narsaga kichkinagina misol.
 
name='husan'
print(name)

Phythonda input() degani biz o'zimiz kiritadigan qiymat. Masalan: 

a = 2023
b = int(input("nechanchi yilsiz:"))
c = a-b  
print(c)

error - noqonuniy o'zgaruvchilar xatolik beradi bunday qilib 
o'zgaruvchilarni chiqarib bo'laydi.

2myvar = "John"
my-var="Jonh"
my var = "John"

Bir nechta o'zgaruvchilarga bitta qiymat berib qo'yimiz mumkin.

                       x=y=z = "apple"
                         print(x)         
                         print(y)    
                         print(z)
                            ↑
agar bularni ishga tushursak hammasida apple degan yozuv chiqadi  

                   Unpack a Collection - to'plamni o'rash.

 Agar sizda ro'yxat, kortej va boshqalarda qiyamatlar to'plami 
bo'lsa,python sizga qiymatlarini ajratib olish imkonini beradi. bunga qadoqdan chiqarish deyiladi.Ro'yhat ochish uchun "[]" ishlatiladi.

fruits = ["apple","banana","cherry"]
x,y,z = fruits

print(x)
print(y)
print(z)

bunisida esa "x" da "apple", "y" da "banana", "z" da "cherry" chiqadi.

  O'zgaruvchilarni chiqarishda ko'rayotganingizdek ko'pincha print() funksiyasi ishlatiladi.

                   
Phythonda Global veribles degan narsa bor u bizning tilimizda global o'zgaruvchilar deyiladi.

x =" awesome"
def myfunc():
  print("python is " + x)

myfunc()
Step-by-Step Guide: Installing Java JDK and Maven on a Mac using Homebrew
Tags: java, maven, beginners, tutorial
Published: 2023-01-14 07:15:42

Java is a programming language that is widely used for developing applications, and Maven is a build tool that helps manage the dependencies and build process of your Java projects. In this post, I'll walk you through the process of installing the latest version of Java and Maven on a Mac using Homebrew.

## Step 1: Install Homebrew

The first step is to install Homebrew. If you don't have it installed, open the terminal and enter the following command:

```
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

## Step 2: Install Java

Once Homebrew is installed, you can use it to install Java. To install the latest version of Java, enter the following command in the terminal:

```
$ brew cask install java
$ brew cask install maven
```

## Step 3: Verify the Java Installation

Once the installation process is finished, ensure the installation is completed successfully with the following command:

##### Java:

```
$ java -version
```

Here is an example output of successful Java installation:

`openjdk version "15.0.1" 2020-10-20
OpenJDK Runtime Environment (build 15.0.1+9)
OpenJDK 64-Bit Server VM (build 15.0.1+9, mixed mode, sharing)`


##### Maven:

```
$ mvn -v
```

Here is an example output of successful Maven installation:

`Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: /Users/rafliputraa/apache-maven-3.8.1
Java version: 15, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-15.jdk/Contents/Home
Default locale: en_ID, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"`
Video: an Introduction to Computer Vision with Hugging Face
Tags: deeplearning, computervision, transformers, machinelearning
Published: 2023-02-23 16:42:55

---
title: Video: an Introduction to Computer Vision with Hugging Face
published: true
date: 2023-01-14 06:55:34 UTC
tags: deeplearning,computervision,transformers,machinelearning
canonical_url: https://julsimon.medium.com/video-an-introduction-to-computer-vision-with-hugging-face-af614397a70b
---

{% youtube yGUQSa6Emnc %}

Slides: [https://www.slideshare.net/JulienSIMON5/an-introduction-to-computer-vision-with-hugging-face](https://www.slideshare.net/JulienSIMON5/an-introduction-to-computer-vision-with-hugging-face)
C++ dasturida kiritish operatori haqida
Tags: cpp, programming, input, beginners
Published: 2023-01-14 06:48:30

    

    

- Assalomu alekum hurmatli o'quvchi. Demak bugun `cin` kiritish operatori haqida gaplashamiz. `cin` => bu (console input) ya'ni konsul oynaga(natija chiqadigan oyna) qiymat kiritishni bildiradi. Shu paytgacha konsul oynaga faqat qiymat chiqarib keldik bugun esa qiymat kiritishni o'rganamiz. `cin` kiritish operatori `>>` katta belgisi bilan doim birga keladi. Manabu tarzda `cin>>` doim birga yozishimiz shart. E'tibor bering misol bilan tushintirishga harakat qilaman.

```cpp
#include <iostream>

using namespace std;

int main() {

  string ism="Jamshid";

  cout << ism;

  return 0;
}

```
Mana e'tibor bering o'zgaruvchi avvaldan e'lon qilib bo'lingan `string ism="Jamshid"` tarzida. Va hech qanday `cin>>` operatori yo'q. Natija esa to'g'ridan to'g'ri konsul oynaga Jamshidbek shaklida chiqib keladi. Rasmga qarang

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

Endi `cin>>` operatoridan foydalanamiz va o'zgaruvchi avvaldan kiritilmaydi va u konsul oynada kiritiladi va biz hoxlagan ismni kiritishimiz mumkin.

```cpp
#include <iostream>

using namespace std;

int main() {

  string ism;
  
  cout << "Ismingizni kiriting: ";
  cin >> ism;
  cout << "Sizning ismingiz: " <<ism;

  return 0;
}
```
Endi natijaga qarang va oldigisi bilan solishtiring.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zikvyyekupb2xdz0xmqk.png)
Mana dasturda bizdan konsul oynada ism kiritishimizni so'radi va biz kiritik natija esa biz kiritgan o'zgaruvchini chiqarib berdi. Bu maqolamiz qisqa lekin judayam muhim e'tibor bilan o'qishingizni va o'zingiz boshqa misollar ishlab ko'rishingizni tavsiya beraniz. E'tiboringiz uchun raxmat siz bilan 
Jamshidbek Tursunboev bo'ldi.

@dawroun
Variable
Published: 2023-01-14 06:43:16

O'zgaruvchi- Xotiraning nomlangan qismi bo'lib, o'zida ma'lum bir toifadagi qiymatlarni saqlaydi.O'zgaruvchining nomi va qiymatlari bo'ladi. O'zgaruvchining nomi orqali qiymat saqlayatgan xotira qismiga murojaat qilinadi.
How can I learn Python in a week?
Tags: python, programming, productivity, beginners
Published: 2023-01-14 06:37:07

Learning a programming language in a week is ambitious, but it is possible to make significant progress in that time frame with a dedicated effort. Here are a few tips to help you learn Python in a week:
**
Focus on the basics first: **Make sure you understand the fundamentals of the language, such as data types, variables, loops, and control flow.

**Practice, practice, practice:** The more you code, the better you will become. Try to write small programs every day to solidify your understanding of the language.

**Utilize online resources: **There are many online tutorials and resources available to help you learn Python. Some popular options include Codecademy, Coursera, and edX.

**Join a community:** There are many online communities, such as forums and Discord groups, where you can ask questions and get help from other Python developers.
**
Keep it Simple: **Start with simple programs and gradually increase the complexity as you become more comfortable with the language.

It will be a challenging and intensive week, but with dedication and consistent effort, you can make significant progress in learning Python.
AWS Cloud Quest: Database in Practice Study Note
Tags: aws, cloud
Published: 2023-01-14 06:33:31

This is the DIY challenge of the Database in Practice task in AWS Cloud Quest.

### DIY Steps:

1. Click "Create read replica" in Action
![Create read replica](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/53trm6yt0tciqrpv768s.png)

2. Add DB instance identifier as required by DIY instruction
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rq88rvit5euoq3qtccx1.png)

3. Create read replica
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wburb4t2w5k9zz2lvvtd.png)

4. Retrieve DB identifier information to complete the DIY step
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l853bl277glyu4dgk6e6.png)
How is artificial intelligence transforming the world?
Tags: ai, beginners, programming, tutorial
Published: 2023-01-14 06:30:42


Artificial intelligence (AI) is a rapidly advancing technology that is transforming many aspects of our world. Some of the ways in which AI is being used today include:

Automation: AI is being used to automate a wide range of tasks, from manufacturing and logistics to customer service and data analysis. This is helping companies to improve efficiency, reduce costs, and increase productivity.

Robotics: AI is being used to make robots and other machines more intelligent and capable. This is leading to the development of new types of robots that can perform a wide range of tasks, from simple repetitive tasks to more complex jobs such as surgery and transportation.

Healthcare: AI is being used in the healthcare industry to analyze large amounts of medical data and help doctors make more accurate diagnoses and treatment decisions.

Finance: AI is being used in finance to help banks and other financial institutions detect fraud, predict market trends, and make better investment decisions.

Agriculture: AI is being used to optimize crop yields, improve the efficiency of farming equipment, and automate the monitoring of crops.

Self-driving cars: AI is being used to develop autonomous vehicles that can drive themselves.

Natural language processing: AI is being used to make it easier for people to interact with computers by enabling them to understand and respond to human speech and text.

Cybersecurity: AI is being used to identify and respond to cyber threats more quickly and effectively.

AI is also transforming industries like retail, energy, transportation and many more. As the technology continues to evolve, it is likely that AI will become even more deeply integrated into our lives and economy.
Where do I start if I want to learn to program?
Tags: programming, productivity, beginners, tutorial
Published: 2023-01-14 06:29:45

If you're new to programming, there are a few steps you can take to get started:

**Choose a programming language:** There are many programming languages to choose from, each with its own strengths and weaknesses. Some popular options for beginners include Python, JavaScript, and Java.

**Learn the basics:** Once you've chosen a programming language, start by learning the basics of syntax and structure. This will include things like data types, variables, control flow, and functions.
**
Practice, practice, practice: **The more you code, the better you will become. Try to write small programs every day to solidify your understanding of the language.

**Utilize online resources: **There are many online tutorials and resources available to help you learn to program. Some popular options include Codecademy, Coursera, and edX.
**
Join a community:** There are many online communities, such as forums and Discord groups, where you can ask questions and get help from other programmers.
**
Build something:** Once you have a basic understanding of the language, try building a small project of your own. This could be anything from a simple calculator to a game.

**Keep learning: **Programming is a continuously evolving field, so keep learning new technologies and languages to stay current.

Remember to choose a language and a topic that interests you, and most importantly, be patient with yourself, programming takes time and practice to master.
Global salaries of Developers
Tags: salary, developer, beginners, productivity
Published: 2023-01-14 06:28:38

In general, developers with experience and specialized skills tend to earn higher salaries than entry-level developers. According to data from Glassdoor, the global average salary for a developer is around $75,000 per year.

However, this can vary widely depending on location, with some countries and cities offering significantly higher or lower salaries for developers.

The salary for developers can vary greatly depending on a number of factors such as the location, experience, and the type of company they work for.


For example, in the United States, the average salary for a developer is around $95,000 per year, with some major cities such as San Francisco and New York offering an average salary of over $120,000 per year.

In Canada, the average salary for a developer is around $80,000 per year, while in the United Kingdom, it is around £50,000 per year.

In Europe, countries like Germany, Switzerland, and the Netherlands have relatively high average salaries for developers, with ranges between $70,000 to $100,000 per year.

In Asia, countries like Japan and Singapore tend to have higher average salaries for developers, with $70,000 to $100,000 per year, whereas in India the average salary for a developer is around $10,000 to $20,000 per year.

It's worth noting that the salaries mentioned above are approximate averages and can vary widely based on the specific experience, skills, and location of the developer, as well as the industry and size of the employer. Also, the salary can vary based on the type of Developer (Front-end, Back-end, Full-stack, etc).
𝐖𝐡𝐚𝐭 𝐡𝐚𝐩𝐩𝐞𝐧𝐬 𝐚𝐟𝐭𝐞𝐫 𝐬𝐮𝐛𝐦𝐢𝐭𝐭𝐢𝐧𝐠 𝐲𝐨𝐮𝐫 𝐜𝐨𝐝𝐞 𝐨𝐧 HackerRank and LeetCode 𝐰𝐨𝐫𝐤 𝐨𝐧 𝐭𝐡𝐞 𝐛𝐚𝐜𝐤𝐞𝐧𝐝?
Tags: hackerrank, leetcode, beginners, programming
Published: 2023-01-14 06:27:32


Though there is NO official blog available for this, still I tried to attach the resources from different sites.

1) When you click the "run" button on the website, an API request is sent to the back-end containing your code (along with other relevant information such as your user ID and the ID of the problem being solved).

2)When the server receives the request, several things happen. The server compiles your code (or tries to, if you're using a compiled language).


3) The server then executes the resulting program. I'm assuming it'll be run inside a container (e.g. Docker). This is due to a number of factors. First, the amount of memory and other resources available to your program can be precisely controlled.
𝐒𝐞𝐜𝐨𝐧𝐝, to precisely control the environment in which it runs; for example, Java programs, will launch a container from an image that only contains the bare minimum Java runtime and nothing else.
𝐓𝐡𝐢𝐫𝐝, to make it simple to set a timeout, i.e. simply kill the container if it does not complete running within the time limit.

𝐅𝐨𝐮𝐫𝐭𝐡, and most importantly, for security. Using a container makes it simple to ensure that the program does not interact with anything other than the standard I/O (stdin, stdout, stderr) used to test your program. For example, your program may be unable to access the network or filesystem because the container does not explicitly permit it.
Once your program's container (or, more likely, one container for each test case) is running, the data for that test case is sent to that container's STDIN. The system then reads the STDOUT and compares it to the expected output of the program. If there is an exact match, the test case passes. Otherwise, if there is no exact match, the test times out, or a runtime error occurs, then the test case fails.

4) The results of the test are saved and sent back to the user.

𝐀 𝐃𝐒𝐀 𝐪𝐮𝐞𝐬𝐭𝐢𝐨𝐧 𝐚 𝐝𝐚𝐲 𝐤𝐞𝐞𝐩𝐬 𝐭𝐡𝐞 𝐈𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰 𝐅𝐞𝐚𝐫 𝐚𝐰𝐚𝐲
Building AI apps quickly
Tags: ai, development, beginners, programming
Published: 2023-01-14 06:26:33

Topics

- stable diffusion

- dreambooth

- hugging face

- replicate

- chat gpt

- open ai

- lambda

Image API providers

- stable diffusion api

- astria

- hugging face

- replicate


Text API providers

- open ai

🤌 Text to image -> use replicate or hugging face

🤌 Image to image -> use replicate

🤌 For better results -> train custom models + better prompts

Sample projects

- Find your Template – Vercel

Combine AI and NFTs

- https://lnkd.in/gGC8JX6g

Tech stack

- React / Next - Frontend

- Tailwind - Design

- fetch or axios - API

- Vercel to deploy

Enjoy building!

Web3 probably includes AI 🤪 We were all wrong about it

This website design was generated with Midjourney!!
Top 5 Programming Languages to learn in 2023.
Tags: webdev, programming, python, codenewbie
Published: 2023-01-14 06:25:49


As technology advances, so do the programming languages used to create software applications. With the ever-changing technology landscape, it is important to stay up to date on the top programming languages to learn in 2023. 

The following is a list of the top 5 programming languages to learn in 2023: 

1. Python: Python is a general-purpose coding language that is used for web development, data analysis, machine learning, and artificial intelligence. It is a highly versatile language that can be used for a variety of tasks.

2. Java: Java is one of the most popular programming languages used for web development and enterprise applications. It is an object-oriented language that is fast and reliable.

3. JavaScript: JavaScript is a scripting language that is used to create dynamic web pages and applications. It is used to create interactive elements on websites and can be used to create mobile apps.

4. C++: C++ is a powerful, object-oriented language used for system programming. It is used to create high-performance applications, such as games and operating systems.

5. Go: Go is a programming language created by Google. It is used to create web applications and microservices.
An Over View of Amazon Web Services
Tags: amazonwebservices, cloudcomputing, beginners, cloud
Published: 2023-01-14 06:20:29

AWS, or **Amazon Web Services**, is a collection of remote computing services (also called web services) that make up a cloud computing platform, offered by Amazon.com. These services operate from 12 geographical regions across the world.

One of the key benefits of using AWS is the ability to scale resources up or down as needed, making it a cost-effective solution for businesses of all sizes. Additionally, the platform offers a wide range of services to help companies build, deploy, and run their applications and services.

One of the most popular services offered by AWS is Amazon Elastic Compute Cloud (EC2), which allows users to rent virtual computers on which to run their own computer applications. This service is highly customizable, allowing users to choose the amount of memory, CPU, and storage they need. Another popular service is Amazon Simple Storage Service (S3), which is an object storage service that offers industry-leading scalability, data availability, security, and performance.

AWS also offers a variety of services for database management, including Amazon Relational Database Service (RDS) and Amazon DynamoDB. RDS allows users to set up, operate, and scale a relational database in the cloud, while DynamoDB is a fully managed NoSQL database service.

Another important service offered by AWS is Amazon CloudFront, which is a content delivery network (CDN) that speeds up the delivery of static and dynamic web content, such as HTML, CSS, JavaScript, and images. This service is particularly useful for businesses with a global customer base, as it allows for faster delivery of content to users located in different parts of the world.

AWS also offers a variety of services for security and compliance, including Amazon Virtual Private Cloud (VPC), which allows users to create a virtual network in the cloud, and Amazon Identity and Access Management (IAM), which allows users to manage access to AWS services and resources.

Finally, AWS offers a number of services for analytics and machine learning, including Amazon Redshift and Amazon SageMaker. Redshift is a data warehousing service that allows users to analyse data using SQL and your existing business intelligence tools, while SageMaker is a fully managed service that makes it easy to build, train, and deploy machine learning models.

In conclusion, AWS offers a wide variety of services to help companies build, deploy, and run their applications and services in the cloud. With its ability to scale resources up or down as needed, and its focus on security and compliance, AWS is an ideal solution for businesses of all sizes looking to take advantage of the benefits of cloud computing.

For more visit AWS website to start with https://aws.amazon.com/what-is-aws/?nc2=h_ql_le_int