teleren/devto huggingface dataset:
,,Relation Operator''
Tags: webdev, javascript, beginners, programming
Published: 2023-01-11 14:44:56


> Relation Operator
Relation Operator- bu 2 yoki undan ko'p bo'lgan o'zgaruvchilarni qaysi biri katta,kichik,yoki tengligini bildirib beradi.

Relation Operator - Aloqa Operator. chap va o'ng tomonlardagi munosabat.

- Natija har doim True yoki False. 

- True 1,False 0 qaytardi.

- c,cpp tilida 0 dan boshqa har qanday qiymat True yani Rost deb hisoblanaldi.
 
> Relation Opertor katta kichik va tenglik belgilari shu ko'rinishda keladi;

<,<=,==,>,>=,!=;

 

```
cpp
  int a = 14;
  int b = 78;
  int c = a < b ;
```
 

> < (Operator) - chap tomondagi o'ng tomondagidan kichik,ya'ni chap tomondagi o'zgaruvchi o'ng tomondagi o'zgaruvchidan kichik
Masalan;


 

```cpp

 
#include <iostream>
using namespace std;
int main (){
```
 

<=(Operator) - chap tomondagi o'ng tomondagidan kichik yoki teng ya'ni chap tomondagi o'zgaruvchi o'ng tomondagi o'zgaruvchidan kichik yoki teng
Masalan;

```
cpp
#include <iostream>
using namespace std;
int main (){
  int a = 6;
  int b = 5 + b++;
  int c = a >= b ;
 cout << c;
return 0;
}

```


==(Operator) - chap tomon o'ng tomong teng ya'ni chap tomondegi o'zgaruvchi o'ng tomndegi o'zgaruvchiga teng;

cpp
#include <iostream>
using namespace std;
int main (){
  int a = 4;
  int b = 9 - 5;
  int c = a == b ;
 cout << c;
return 0;
}

>(Operator) - o'ng tomon chap tomondan katta ya'ni o'ng tomondagi o'zgaruvchi chap tomondagi o'zgaruvchidan katta;
Masalan;

cpp
#include <iostream>
using namespace std;
int main (){
  int a = 6;
  int b = 9 - 7;
  int c = a > b ;
 cout << c;
return 0;
}

>=(Operator) - o'ng tomon chap tomondan katta yoki teng ya'ni o'ng tomondagi o'zgaruvchi chap tomondagi o'zgaruvchidan katta yoki teng;
Masalan;

cpp
#include <iostream>
using namespace std;
int main (){
  int a = 174;
  int b = a - 87;
  int c = a >= b ;
 cout << c;
return 0;
}


!=(Operator) - chap va o'ng tomonlar bir xil emas ya'ni chap tomondagi o'zgaruvchi o'ng tomondagi o'zgaruvchi bilan bir xil emas ;
Masalan;

cpp
#include <iostream>
using namespace std;
int main (){
  int a = 66;
  int b = 47 + 19;
  int c = a != b ;
 cout << c;
return 0;
}

@dawroun
Software Development: Dirty Business Tricks
Published: 2023-01-11 14:44:27

The Dirty Business Tricks!!

The fears that exist in most business owners regarding outsourcing work to service providers can not be dismissed entirely because there are outsourcing businesses out there that are not just failing to deliver the expected results but are also tricking their clients into hiring them. And we are talking about super creative gimmicks that a number of businesses regardless of smart you are may fall for it within the blink of an eye. 

In this article, I shall share with you the dirty business trick that is majorly found when companies outsource software development, for the benefit of the companies in the US, a lot of companies based there are the ones being tricked into this intelligent scam. 

If there is any complicated industry that is difficult to achieve results in, it is B2B lead generation in the outsourcing industry, and the outsourcing profit margins are usually quite thin, so some businesses have decided to be creative about that.

Some of the business strategies have boiled down to “hire students for 4000 USD per year, put them on three to four months course and then sell as Senior Software Developers”.
 
It's also worth noting that most education systems are of extremely low quality especially when it comes to molding software engineers, hence only a few institutions are recognized for producing the best quality, and/or the best are usually self-taught, which means that an average student is expected to have zero useful knowledge prior to that course.

So they have developed a special course that is focused on passing interviews - they tell you all the right answers, they edit your CV to make up all the required experience, and they make you talk through the interviews with coaches again and again until you're really good at it and in the end, you're presented to the client.

Of course, a team can't consist only of such people so there are real senior-level developers as well, but as the result, they have to do their job plus tasks meant for fake developers as well. If some team starts to fail especially miserably there have “special reserve” teams that help (without the client knowing).

The interesting thing is that most clients never notice that something is wrong.

What dirty business tricks do you that are being carried out in the outsourcing industry? Leave a comment.
Why regular training in Software Development is a must.
Tags: programming, beginners, tutorial, devops
Published: 2023-01-11 14:41:24

The fastest-evolving sector in the world today is the information technology sector. The software development sector of the IT industry is quite large. The potential is constantly being increased by thousands of software developers throughout the world. 

Anyone who wants to stay up with the most recent developments in the area must continue studying since software development is one of the most dynamic fields in the IT business. Therefore, every software development firm that is working to build a successful online business must regularly train its software professionals.

The sad thing is that while many software development businesses make promises to their developers and programmers about giving this training, only a small percentage of them really do so once their workers begin working on actual projects.

All development organizations must undergo software development training in order to compete in the expanding market. The skill of these development firms' developers and the caliber of the software they employ are key factors in determining their success. The quality index can be used to assess a software's capabilities. This total value may be used to monitor the company's adoption of high-quality practices. A high ranking in this index demonstrates that the business is focused on employee growth and is giving them suitable software development training.

Given the level of fiercer competition in the sector, it is crucial to inform all companies in the IT sector of the necessity of having a well-trained software development department. Today, the Internet is one of the most widely used resources for any activity, whether it be for business, education, or leisure. On the internet, there is nothing you cannot accomplish. And as a result of this unanticipated business surge, software development is now more in demand globally.

Today, software development is a need for any business engaged in online marketing or service provision. And for just that reason, you need to focus on giving your clients the right kind of training so that they stay constantly informed.
Advanced Typescript Fetaures
Published: 2023-01-11 14:39:06

TypeScript is a compartmented superset of JavaScript that compiles to plain JavaScript. It includes a number of advanced features that can help you develop larger and more complex programs more fluently. Some exemplifications of advanced TypeScript features include.

**Generics**: These allow you to write flexible and applicable law that can work with multiple types.

**Decorators**: These are a way to add fresh functionality to your law, using a declarative syntax.

**Generics**:
Generics allow you to produce applicable factors that can work with multiple types. Then’s an illustration of a general function that returns the minimal value in an array:


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

In this example, the function min is defined with a type parameter T, which is used to specify the type of the rudiments in the array. The function can be called with an array of any type, and the type of the rudiments in the array will be inferred by the compiler. The returned value will have the same type as the rudiments in the array.

**Decorators**:
One advanced point of TypeScript is the capability to use decorators. Decorators are a design pattern that allows you to add fresh geste to an being class or system.

Here is an example of using a decorator to define a method that will be run before a class method is executed

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

In this example, the logExecutionTime decorator function is defined and then applied to the myMethod method of the MyClass class using the @ symbol. When myMethod is called, the decorator function will be run first and will log the execution time of the myMethod method.
How to be the best front-end, web developer.
Published: 2023-01-11 14:36:18

Despite the fact that many developers are extremely competent and possess amazing technical abilities, others shockingly lack the traits needed to be excellent front-end developers. Here are the characteristics that exceptional front-end developers most frequently exhibit.

Vision for design
Although a UI/UX developer or graphics designer may create a website, a front-end developer must also understand what looks beautiful and what design strategies will assist market the business or product. This would produce better results.

Attention to detail
A sharp eye for detail goes hand in hand with an eye for design. It's crucial to adhere to the site design's guidelines for space, font size, and placement. Saving time by appropriately adjusting these parts can help with potential modifications.

Strong communication abilities
It is part of your work as a front-end developer to collaborate with other front-end developers, back-end developers, and UI/UX developers, among others, in addition to writing code directly on the screen. Being an effective communicator and listener is a sign of having strong communication skills (both written and oral).

Adaptable
Tech is a field that moves quickly. Software and programming language versions are released so often and swiftly that staying current with new technologies is essential. You have an advantage over other front-end developers because of this.

Critical-thinking
Being a front-end developer necessitates analytical thinking and problem-solving skills. Your everyday activities may include solving complicated issues, therefore you must be equipped to troubleshoot any bugs or errors that may arise.

Creativity
A Front-end developer has a huge edge in their ability to think creatively. It is beneficial for addressing difficulties from a different perspective in addition to being good for visually determining what is more attractive.

Patience
In reality, patience is a virtue for every developer. It might be rather exhausting and unpleasant to try to fix all the mistakes, bugs, and other troubleshooting issues you will run against. Being patient can help you get through these difficult moments and find solutions to your challenges.
Gain these qualities to stand out from other developers. 

No matter how talented you are, keep in mind that most people value those with solid work ethics.
LOGICAL OPERATOR
Tags: webdev, javascript, beginners, programming
Published: 2023-01-11 14:28:14

> Bir yoki bir necha shartlarni solishtirish va ularni to'g'ri yoki noto'ri ekanligini aniqlash.

- ! - YO'Q.

- && - VA.

-  - YOKI.

- Natija har doim True yoki False. 

- True 1,False 0 qaytardi.

- 0 dan boshqa har qanday qiymat True yani Rost deb hisoblanaldi.

```cpp
#include <iostream>
using namespace std;
int main() {
  int  a = 7;
  int  b = 3 + a;
  int  c = a && b ;

  cout << c;
return 0;
  }
```

```cpp
#include <iostream>
using namespace std;
int main() {
  int  a =27;
  int  b = 67 + a;
  int  c = ++a < 5  --b < 3 ;

  cout << c;
return 0;
  }
```

_Dasrligimiz kundan kunga qiyin va qiziqarli bolib bormoqda ._


@dawroun
Identifying the alphabet character that appears most frequently in a statement.
Tags: python, beginners, programming, tutorial
Published: 2023-01-11 14:26:51

Hello.
I ran into an issue when trying to solve an exercise as a newbie in Python.
The task is to identify the alphabet character that appears most frequently in a statement.
I wrote the following:

sentence = “This is a common interview question”

for char in sentence:
countingchar = sentence.count(char)
chardict = {char: countingchar}
print(chardict )


As you can see, I tried to make a dictionary with every letter in the text, but instead of producing one dictionary with many key-value pairs, the effort produced several dictionaries with just one key. I can't combine these dictionaries into one dictionary, and that is my issue.
What ought I to do?
Can you assist me in solving this problem using this method?
Please let me know if I've missed any lines of code or have written any.
I want to comprehend and learn.

I value your assistance and time.
C++ da ASSIGMENT OPERATORI haqida ma'lumot.
Published: 2023-01-11 14:18:08

biz c++ da bugungi darsimiz ASSIGMENT OPERATOR ni o'rgandik.
biz int ishorasi bilan 1 ta son belgilab, uni keyinchali o'zgartirsak ham bo'ladi.
unga misol:

```cpp
int a = 10;
  string ism = "rahima";

  cout << a << endl;
  cout << ism << endl;

  a = 20;
  ism = "kimsan";
  cout << a << endl;
  cout << ism;

}

```
biz int bilan ishlaganda -+ ni +- ; /* ni */ ga o'zgatirsak ham bo'ladi .

```cpp
int a = 5;
int b = 6;
b = b+ a; // b +=a;
a = a- 10; // a -=10;

b*=3; // b = b * 3;
a /= b; // a = a / b;
cout << b;
}

```
masala uchun: biz doiraning yuzini olsak,

Doiraning uzunligi sifatida bittakasr-sonNni o'qiymiz. Shu doirani yuzini topib va natijani nuqtadan keyin 0 ta aniqlikda chop etamiz.

π ning qiymati:3.14
Raduisi r bo'lgan doiraning uzunligi: L = 2πr bizda r no'malum sonni topishimiz kerak.
Doiraning yuzi formulasi: S = πr^2
MASALANI javobi:

```cp
int main 2() {
double L;
  cin >> L;
  float PI = 3.14;
  float r = L/(2*PI);
  float S= PI * (r * r);
  cout << round(S);
return 0;

  }

```
biz bugun assigment operatori haqida ilk malumotni egalladik.
bunda birinchi navbatda int a da a ni yani biron sonni oqib olishimiz zarur.

```cpp
int a = 10;
  string ism = "rahima";
```
MySQL ORDER BY in Analytical Functions: The Easy Guide for Starters
Tags: mysql, windowfunctions, database, dbforge
Published: 2023-01-11 14:16:29

---
title: MySQL ORDER BY in Analytical Functions: The Easy Guide for Starters
published: true
description: MySQL ORDER BY is easy. But how about using it for analytical functions?
tags: #mysql #windowfunctions #databases #dbforge
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-01-11 14:14 +0000
---
How to use MySQL ORDER BY for analytic functions? In MySQL they are mostly called window functions. The goal is to perform various calculations on groups of data in a single pass. And their results are very useful for data analysis. Therefore, it turns out that window functions are analytic functions - https://www.bollyinside.com/news/technology/mysql-order-by-in-analytical-functions-the-easy-guide-for-starters

![mysql order by in analytics](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3frods3oj1627atgxcq9.png)
This is a very small ChatGPT conversation downloader
Tags: javascript, chatgpt
Published: 2023-01-11 14:16:27

Here is some code I wrote for a change of pace.
This is a small script intended to be pasted into the Chrome DevTools console.

I created it because I wanted to keep a text file of my conversations with ChatGPT.

With the ChatGPT page open, paste the following code onto Chrome DevTools and run it.

```javascript
const download = () => {
  const title = document.querySelector('.pr-14.bg-gray-800').text;

  const textList = []
  document.querySelectorAll('.text-base').forEach((t, i) => {
    textList.push(`${i % 2 === 0 ? "Q:" : "A:"} ${t.textContent}`)
  })
  const text = textList.join('\n');

  const blob = new Blob([text], { type: "text/plain" });
  const url = URL.createObjectURL(blob);

  const a = document.createElement("a");
  a.href = url;
  a.download = title;
  document.body.appendChild(a);
  a.click();

  URL.revokeObjectURL(url);
}
```

Next, select the conversation you want to download from the left menu.


![ChatGPT left menu](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sr4wcoprv00wcu6imium.png)

After selecting the conversation, execute `download()` on the console of DevTools to download the content of the conversation as a text file.
The file name will be the title from the selected left menu.

There is one thing to note. This script will not work if the structure of ChatGPT page is updated.

The code is also saved in Gist.

[ChatGPT conversation downloader(Gist)](https://gist.github.com/shinshin86/f5bb621ec537a373fa2cc6da203d2307)
Test Automation with AI (ChatGPT) from scratch!
Tags: javascript, testing, webdev, ai
Published: 2023-01-11 14:10:58

In the video below, I will be utilizing ChatGPT, to assist me in building test automation scripts using the Cypress framework. I will ask the chatbot five questions, each of which will become progressively more challenging in order to test its knowledge and capabilities.

ChatGPT is a chatbot developed by OpenAI that utilizes a highly trained language model to interact with users in a natural, conversational manner. This text-based artificial intelligence tool has gained significant popularity in the tech industry for its ability to provide comprehensive answers to a wide range of questions, but it particularly excels at generating coding solutions on the fly.

{% youtube 84O4_JqBqVE %}

---

👩🏻‍💻 It's time to advance your career by joining the SDET-U Academy today 👇🏻
[Join Academy](https://bit.ly/3Vcqv69)

📧 Subscribe to my [mailing list] (https://automationbro.com/mailing-list) to get access to more content like this as well as be part of amazing free giveaways.

👍 You can follow my content here as well - 
- [Twitter](https://twitter.com/automationbro)
- [LinkedIn](https://www.linkedin.com/company/automation-bro)

...

Thanks for reading!
File Tree Structure using CSS
Tags: css, html, codenewbie, tutorial
Published: 2023-01-11 14:10:58

**File tree structure**

It is very simple but amazing file structure design in Pure CSS that you can apply to an unordered list, just follow the below steps : -

- create a simple html file
- use nested HTML Unordered Lists
```html 
<ul>
  <li>root
    <ul>
      <li>folder one
      <ul>
         <li>file_one.txt</li>
         <li>file_two.txt</li>
      </ul>
      </li>
      <li>folder two
      <ul>
         <li>file_one.txt</li>
         <li>file_two.txt</li>
      </ul>
     </li>
    </ul>
  </li>
</ul>
```

- Add a span inside every li element
```html
<li><span></span>file_one.txt</li>
```
- you can add some folder and files icon or svg in the li element to make the file tree structure look more real 
 

  - folder icon 


![folder icon](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h9g22ubgk3pva8hcetwe.jpg)
  ```html
    <li><span></span><i class="fa-regular fa-folder-open"></i>root<ul>...rest</li>
  ```
- Now finally add some css magic to complete the file tree structure.
  - create L shape line by adding following css to the empty span.  
  ```css
    border-bottom: 1px solid;
    border-left: 1px solid;
    height: 1.5rem;
    width: 2rem;
    display: inline-block;
    margin-bottom: 0.3rem;
    margin-left: 1rem;
  ```
- final output preview

![final preview](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aqmm3d7wqubd9vzcgkyf.jpg)

- you can find live example [here](https://ambujsahu81.github.io/Notes/)
- Also checkout the code pointer for the same [code sample]
(https://github.com/ambujsahu81/Notes/blob/bd519982ed638d2aabff90b1c71f501c89aa0603/docs/main.js#L187)
How to implement mobile share module in ReactJS quickly?
Tags: react, reactmobileshare, reactshare
Published: 2023-01-11 14:04:14

Hello 👋🏼,

Thanks for reaching here. 
Many people require a module which can share data through the default share feature available in our mobile phones(Android, iOS) as shown below :

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


I know it's very small things you can implement by using any 3rd party packages/modules available on the internet.

I have one quick solution for you, actually, we have a solution which is based on [Navigotor.share()](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share). 

You just need to install this package [react-mobile-share](https://www.npmjs.com/package/react-mobile-share)

```
npm i react-mobile-share    # npm
yarn add react-mobile-share # yarn
pnpm i react-mobile-share # pnpm
```

and use it like this :


```
<button
  onClick={() =>
      shareOnMobile({
        text: "Hey checkout our package react-mobile-share",
        url: "https://www.npmjs.com/package/react-mobile-share",
        title: "React-Mobile-Share",
      })
    }
  >
  Share
</button>
```

That's all 🙂, it will send data to mobile and prompt a sharing popup with the app suggestion that can handle your data.


Why should you use this
- Don't need to manage extra code.
- Small and lightweight.
- Share text, url and images.
- Works on Android and iOS.

You can also try a demo example with [CodeSandbox](https://codesandbox.io/s/react-mobile-share-example-r11kjs?file=/src/App.js)


Thanks for reading this 🙏🏻.
#Rust 🦀 – Accesing external vars in threads 🧵
Tags: englishpost, multithread, rust
Published: 2023-01-14 14:45:01

---
title: #Rust 🦀 – Accesing external vars in threads 🧵
published: true
date: 2023-01-11 13:48:05 UTC
tags: EnglishPost,EnglishPost,MultiThread,Rust
canonical_url: 
---

Hi !

In order to access external variables in a thread, we must use the move closure with the move keyword in the thread creation.

In example, these 2 lines will define and create a mutable variable and then a new thread where we can access the var.

```

let mut new_var = "hey!";
let handle =thread::spawn(move || {
// access to new_var here
})

```

And an example of the previous code will have:

- A main thread where we declare a string var with a message.
- The 2nd thread that will display a message using the main thread message.

{% gist https://gist.github.com/elbruno/23694a22190e91a09066a14d3d1d2322 %}

The code output shows that the app is closed before finishing the execution of the 2nd thread.

![Run outuput with the message from the 2nd thread using a var from the main thread](https://brunocapuano.files.wordpress.com/2023/01/image-21.png?w=682)

Super cool !

Happy coding!

Greetings

El Bruno

More posts in my blog [ElBruno.com](https://www.elbruno.com).

* * *
Convert MySQL query output to any formats fast
Published: 2023-01-11 08:07:50

I have created a useful tool website, it can help you to convert MySQL query output to a variety of commonly used formats such as Markdown, Magic, LaTeX, SQL, HTML, CSV, Excel, JSON, JSONLines, ASCII, MediaWiki, AsciiDoc, Qlik, DAX, Firebase, YAML, XML, Jira, Textile, reStructuredText, TracWiki, BBCode, etc.
Using this tool is very simple, it only takes three steps:

1. Execute a query in MySQL, and copy the output to the clipboard.
2. Paste the output on our website, and if desired, adjust the data using the online editing function.
3. Select the format you want and convert it. The tool will automatically complete the conversion and generate a file.

This tool is that it runs in the browser, so there is no need of any API service, your data will be completely safe as it will only exist in your browser.

This tool is perfect for professions such as data analysts, developers, data scientists, etc. It can help them to process and analyze data faster, reduce manual work and improve work efficiency.

I want to promote my tool website here, and hope that more people can know about it and use it in their own work. If you are interested, please visit our website at https://tableconvert.com/mysql-to-csv for more information.