teleren/devto huggingface dataset:
PYTHON'da random module'ining method'lari
Published: 2023-11-08 12:57:21

## 1. **choice**
#### _**Ta'rif**: `list`'dan tasodifiy element qaytaradi_
### **Sintaksis**

```py
random.choice(sequence)
```
_`sequence` parametri majburiy. `sequence` - `list`, `tuple` va `number `bo'lishi mumkin._


#### **Misol**:

```py
import random

mylist = ["olma", "banan", "olcha"]

print(random.choice(mylist))
```
#### **Natija**:
```py
# ["banan", "olma", "olcha"]
```
## **_________________________________________________**
## 2. **Randint**
#### _**Ta'rif**: ma'lum bir tanlangan butun sondan tanlangan ikkinchi songacha bo'lgan biror bir sonni tasodifiy (randomly) ravishda qaytaradi. ya'ni a dan b gacha bo'lgan oraliqdagi sonlarni tasodifiy (randomly) qaytaradi_

### **Sintaksis**

```py
random.randint(start, stop)
```

### **Misol**
_3 va 9 raqamlari oralig'idagi tasodifiy (randomly) raqam qaytarish:_
```py
import random

print(random.randint(3, 9))
```
#### **Natija**:
```py
# 5
```
Learn full stack development course and get placed
Published: 2023-11-08 12:47:00

[Full stack development](https://desunacademy.in/full-stack-development-course/) refers to the practice of working on both the front-end and back-end portions of a web application or software project. 
Which is high in demand in the current market and there is a chance of earning up to 2 lakhs. But for that, you need proper training as a [full-stack developer](https://desunacademy.in/full-stack-development-course/). 
To know more [visit us ](https://desunacademy.in/full-stack-development-course/)
[Enrol Now](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link).
Learn full stack android development course and get placed
Published: 2023-11-08 12:44:44

[Full stack development](https://desunacademy.in/full-stack-development-course/) refers to the practice of working on both the front-end and back-end portions of a web application or software project. 
Which is high in demand in the current market and there is a chance of earning up to 2 lakhs. But for that, you need proper training as a [full-stack developer](https://desunacademy.in/full-stack-development-course/). 
To know more [visit us](https://desunacademy.in/full-stack-development-course/) 
[Enrol Now](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link).
Enrol in full stack web development course in Kolkata
Published: 2023-11-08 12:42:54

[
Full stack development](https://desunacademy.in/full-stack-development-course/) refers to the practice of working on both the front-end and back-end portions of a web application or software project. 
Which is high in demand in the current market and there is a chance of earning up to 2 lakhs. But for that, you need proper training as a [full-stack developer](https://desunacademy.in/full-stack-development-course/). 
To know more [visit us](https://desunacademy.in/full-stack-development-course/) 
[Enrol Now](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link).
Join in full stack development course in Kolkata
Published: 2023-11-08 12:38:48

[Full stack development](https://desunacademy.in/full-stack-development-course/) refers to the practice of working on both the front-end and back-end portions of a web application or software project. 
Which is high in demand in the current market and there is a chance of earning up to 2 lakhs. But for that, you need proper training as a [full-stack developer](https://desunacademy.in/full-stack-development-course/). 
To know more [visit us](https://desunacademy.in/full-stack-development-course/) 
[Enrol Now](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link).
Learn full stack web development course near me
Published: 2023-11-08 12:36:37

[Full stack development](https://desunacademy.in/full-stack-development-course/) refers to the practice of working on both the front-end and back-end portions of a web application or software project. 
Which is high in demand in the current market and there is a chance of earning up to 2 lakhs. But for that, you need proper training as a[ full-stack developer](https://desunacademy.in/full-stack-development-course/). 
To know more [visit us](https://desunacademy.in/full-stack-development-course/) 
[Enrol Now](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link).
Full stack development course online by Desun Academy
Published: 2023-11-08 12:32:17

[Full stack development](https://desunacademy.in/full-stack-development-course/) refers to the practice of working on both the front-end and back-end portions of a web application or software project. 
Which is high in demand in the current market and there is a chance of earning up to 2 lakhs. But for that, you need proper training as a [full-stack developer](https://desunacademy.in/full-stack-development-course/). 
To know more [visit us](https://desunacademy.in/full-stack-development-course/) 
[Enrol Now](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link).
Learn full stack development course online
Published: 2023-11-08 12:30:18

[Full stack development](https://desunacademy.in/full-stack-development-course/) refers to the practice of working on both the front-end and back-end portions of a web application or software project. 
Which is high in demand in the current market and there is a chance of earning up to 2 lakhs. But for that, you need proper training as a [full-stack developer](https://desunacademy.in/full-stack-development-course/). 
To know more [visit us](https://desunacademy.in/full-stack-development-course/) 
[Enrol Now](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link).
React js training course in Kolkata
Published: 2023-11-08 12:27:09

Do you want to learn [React Js](https://desunacademy.in/react-native-react-js-course/)? Or planning to enroll in the[ React Js course](https://desunacademy.in/react-native-react-js-course/)?

This is the perfect time to study React JS if you're new to web development or an experienced developer who's still using jQuery or plain old JavaScript to build websites. You'll amaze the recruiters and clients by taking your web development abilities to the next level. 
To know more [visit us](https://desunacademy.in/react-native-react-js-course/). 
[APPLY NOW](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link)
Learn react js course online
Published: 2023-11-08 12:24:59

Do you want to learn [React Js](https://desunacademy.in/react-native-react-js-course/)? Or planning to enroll in the [React Js course](https://desunacademy.in/react-native-react-js-course/)?

This is the perfect time to study React JS if you're new to web development or an experienced developer who's still using jQuery or plain old JavaScript to build websites. You'll amaze the recruiters and clients by taking your web development abilities to the next level. 
To know more [visit us](https://desunacademy.in/react-native-react-js-course/). 
[APPLY NOW](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link)
Solução definitiva para minhas documentações
Published: 2023-11-08 12:23:11

Nos primórdios, fazia minhas documentações em txt, mas era um método um tanto quanto arcaico e pobre de recursos. Porém, documentação tem que ser algo que você consiga acessar em qualquer editor de texto, em qualquer sistema operacional, em qualquer máquina que você esteja, por isso nunca quis fazê-las em PDF ou word (argh 🤮) e de qualquer outra forma que eu precisasse instalar ferramenta/app para poder acessar.



Foi então que conheci o **Markdown**. Linguagem de marcação fácil de aprender e que pode acessar em qualquer editor de textos. Depois do Markdown dominado, senti falta de um pouco mais de "beleza", conseguir representar fluxogramas, gráficos, etc. E eis que hoje, estou usando o que se tornou pra mim a solução definitiva pras minhas documentações.



**Markdown + Mermeid**


![Markdown+Mermaid Example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e26ramhru8eqo6vl0jn0.png)



Indico a todos a darem uma olhada



[Markdown Guide](https://www.markdownguide.org)

[Mermaid](https://mermaid.js.org)
Full react js course in Kolkata free
Published: 2023-11-08 12:21:12

Do you want to learn [React Js](https://desunacademy.in/react-native-react-js-course/)? Or planning to enroll in the [React Js course](https://desunacademy.in/react-native-react-js-course/)?

This is the perfect time to study React JS if you're new to web development or an experienced developer who's still using jQuery or plain old JavaScript to build websites. You'll amaze the recruiters and clients by taking your web development abilities to the next level. 
To know more [visit us](https://desunacademy.in/react-native-react-js-course/). 
[APPLY NOW](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link)
How I Keep My Browser Organized and Clean
Published: 2023-11-08 12:16:32

## TL;DR

Use custom user data directory for `chromium` based browser or profile for `firefox`, simple script to launch it, and don't forget to close unused tab.

<video class="media-frame ratio" style="--ratio: 1.75" controls mute autoplay loop>
        <source
                src="//anasrar.github.io/assets/blog/how-i-keep-my-browser-organized-and-clean/tldr.mp4"
                type="video/mp4"
        />
</video>

## User Data Directory

> **Chromium**
>
> The user data directory contains profile data such as history, bookmarks, and cookies, as well as other per-installation local state[^1].

> **Firefox**
>
> What information is stored in my profile? Bookmarks, Downloads, Browsing History, Passwords, Cookies, Extensions, et cetera[^2].

[^1]: https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md#introduction
[^2]: https://support.mozilla.org/id/kb/profiles-where-firefox-stores-user-data#w_what-information-is-stored-in-my-profile

### Custom User Data Directory

Using custom user data directory allow me to focus and separate my workflow like for personal where all email and social media related, work where I use for work related, and development where I do webdev stuff.

To use custom user data directly, first you need to create new directory, and start browser with user data directory to new directory path.

```bash
chromium-browser --user-data-dir=./dir
firefox --new-instance --profile ./dir
```

To differentiate each browser I use different themes or colors.

![Chrome Color Scheme](//anasrar.github.io/assets/blog/how-i-keep-my-browser-organized-and-clean/theme.png)

#### Pros

-   At least prevent cookie stealer[^3].
-   Manage extension, **no extension** allowed for personal and work.

#### Cons

-   Can not copy user data directly to other machine, use sync, export, and import feature (so far I just tested with chrome, feel free to correct me).
-   Each user data start around ~200MB and grow as cache being stored, but it was worth it.

[^3]: https://github.com/topics/cookie-stealer

## Shell Script

You can create custom shortcut, but I use simple shell script with [fzf](//github.com/junegunn/fzf) to launch browser with custom argument.

<video class="media-frame ratio" style="--ratio: 1.75" controls mute autoplay loop>
        <source
                src="//anasrar.github.io/assets/blog/how-i-keep-my-browser-organized-and-clean/demo.mp4"
                type="video/mp4"
        />
</video>

```bash
#!/usr/bin/sh

RESULT=$(fzf --delimiter " " --with-nth 1 -- "$@" < <(
  echo "Firefox:Development firefox --new-instance --start-debugger-server 6222 --profile \"$HOME/secret/path/ff/development/\""
  echo "Chrome:Development google-chrome-stable --remote-debugging-port=9222 --user-data-dir=\"$HOME/secret/path/c/development/\""
  echo "Chrome:Personal google-chrome-stable --user-data-dir=\"$HOME/secret/path/c/personal/\""
  echo "Chrome:Work google-chrome-stable --user-data-dir=\"$HOME/secret/path/c/work/\""
))

if [ "$RESULT" != "" ]; then
  COMMAND=$(echo $RESULT | sed 's/[^ ]* //')
  eval $COMMAND &>/dev/null &
fi
```
How to Export Angular Scheduler Appointments to an Excel Document
Tags: dotnet, csharp
Published: 2023-11-08 12:15:37

Learn how to export Angular Scheduler appointments to an Excel document. You will also learn how to export documents with custom fields, individual occurrences of recurring series, and custom event data. I will show you how to change the file name, file format, and column headers. 

The Angular Scheduler, or Angular Event Calendar, is a fully featured event calendar component that helps users efficiently manage their time. It facilitates easy resource scheduling, rescheduling of events or appointments through editor pop-ups, drag-and-drop, and resizing actions. 

The Scheduler allows you to export all its events to an Excel document by default. It also provides additional customization options to export custom event data collections. To use the Excel feature, import the ExcelExportService from the Syncfusion EJ2 Angular Schedule package and register it in the imports array of the ng module. 

The Scheduler allows you to export all its events into an Excel format file using the exportToExcel client-side method. By default, it exports all the default fields of the Scheduler mapped through the eventSettings property. 

To limit the number of fields in the exported Excel file, it provides an option to export only custom fields. To export custom fields alone, define the required fields through the ExportOptions interface and pass them as an argument to the exportToExcel method. By default, the Scheduler exports event data to an Excel file in .xlsx format, but you can also export data in CSV format. 

**Explore our tutorial videos:** https://www.syncfusion.com/tutorial-videos

**Download an example from GitHub:** https://github.com/SyncfusionExamples/how-to-export-angular-scheduler-appointments-to-an-excel-document

{% youtube sScFtjesbpk %}
React native courses in Kolkata for free
Published: 2023-11-08 12:13:05

[React Native](https://desunacademy.in/react-native-react-js-course/) is an open-source JavaScript framework used for building mobile applications for iOS and Android platforms. React Native combines the best aspects of web development using React.
Thus, there is a high demand for this particular skill in the current market. You can earn even 1 to 2 lakhs per month as a professional [React Native Developer](https://desunacademy.in/react-native-react-js-course/). But how to learn? And how to earn?
To know more [visit us](https://desunacademy.in/react-native-react-js-course/).
[Enrol Now ](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link)
greenify grant permissions ADB
Published: 2023-11-08 12:11:00

`sudo dnf install adb`

```
adb -d shell am force-stop com.oasisfeng.greenify
adb -d shell pm grant com.oasisfeng.greenify android.permission.GET_APP_OPS_STATS
adb -d shell pm grant com.oasisfeng.greenify android.permission.READ_LOGS
adb -d shell pm grant com.oasisfeng.greenify android.permission.WRITE_SECURE_SETTINGS
adb -d shell pm grant com.oasisfeng.greenify android.permission.DUMP
adb -d shell am force-stop com.oasisfeng.greenify
```
Learn react native courses in Kolkata
Published: 2023-11-08 12:09:22


[React Native](https://desunacademy.in/react-native-react-js-course/) is an open-source JavaScript framework used for building mobile applications for iOS and Android platforms. React Native combines the best aspects of web development using React.
Thus, there is a high demand for this particular skill in the current market. **You can earn even 1 to 2 lakhs per month **as a professional [React Native Developer](https://desunacademy.in/react-native-react-js-course/). But how to learn? And how to earn?
To know more [visit us](https://desunacademy.in/react-native-react-js-course/).
[Enrol Now](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link)
Train Stylized Portraits on Novita.AI
Tags: stablediffusion, ai
Published: 2023-11-08 12:08:14

Try this on the Hugging Face Spaces. [https://huggingface.co/spaces/novita-ai/Face-Stylization-Playground](https://huggingface.co/spaces/novita-ai/Face-Stylization-Playground)

Obtain the Novita.AI API Key from the website https://novita.ai/.

The cost for LoRA training is approximately $0.2.

We recommend providing 6–10 high-quality self-portrait photos, with each photo requiring 200 steps and a maximum of 2000 steps. For instance, if you provide 7 images, it will take a total of 1400 steps.


![Novita Face Stylization Playground — 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k1nc78v7nhxvex34griq.png)

![Novita Face Stylization Playground — 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iunx56su3ah37naj4itt.png)


![Novita Face Stylization Playground — 3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vpdv32sxieva8cgzlsdp.png)



![Novita Face Stylization Playground — 4](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rhqruok3x4ri9tfv97eh.png)
Seeking SSR Pioneers: Join WebCrumbs' Research and Experimentation Efforts
Tags: react, opensource, nextjs, serverless
Published: 2023-11-08 11:58:48

WebCrumbs is on a quest to revolutionize React development, and we're at a pivotal moment with server-side rendering (SSR). We're reaching out to you, SSR experts and enthusiasts, to lend your expertise to two critical initiatives: our research in Issue 104 and our hands-on experiments in Issue 103.

{% cta https://github.com/webcrumbs-community/webcrumbs/issues/104 %} Contribute to our SSR Research Initiative {% endcta %}

In Issue 104, we're laying the groundwork through rigorous research. Our goal is to understand the full potential of SSR within React frameworks. Whether it's sharing studies, brainstorming ideas, or discussing the intricacies of SSR, your knowledge could spark the insight we need.

{% cta https://github.com/webcrumbs-community/webcrumbs/issues/103 %} Participate in Real-world SSR Experimentation {% endcta %}

Meanwhile, Issue 103 is where theories meet practice. We're experimenting with different SSR techniques, assessing their performance and practicality. By contributing to these experiments, you can help us shape the SSR capabilities of WebCrumbs with tangible evidence and trials.

The path to innovation is paved with collaboration. WebCrumbs is more than a platform; it's a community-driven project where every opinion and piece of expertise can lead to breakthroughs.

{% cta https://github.com/webcrumbs-community/webcrumbs %} Join Our Growing Community {% endcta %}

By combining our knowledge and efforts, we can ensure that WebCrumbs embodies the best practices and cutting-edge techniques in server-side rendering. This is your call to action, to not just witness but actively shape the future of React development.

{% cta https://webcrumbs.org %} Learn More About Our Vision {% endcta %}

As we delve into the intricacies of SSR, we appreciate your contributions and experiments that will help us navigate this journey. Let's join forces to make SSR in WebCrumbs exemplary for React developers worldwide.
RELIANOID Community Edition 7!
Published: 2023-11-07 16:52:40

Remember! Remember the 7th of November! We're launching our radiant newest Community Edition, which new features are: 
-Full rebranding to RELIANOID
-Kernel 6.1 based on Debian Bookworm 12.2
-OpenSSLv3 support
-Seamless upgrade from Community to Enterprise Edition
-Seamless upgrade from Community v5 to v7
-Python3 and perl 5.36
-Curl 7 support
-ISO size optimization for a lightweight deployment
-Community stateless cluster included by default
-Reverse proxy support for auto DH ciphers generation
https://www.relianoid.com/blog/new-release-relianoid-adc-load-balancer-community-edition-v7/
#RELIANOIDLaunch #CommunityEditionUpgrade #DebianBookworm #OpenSSLv3 #SeamlessUpgrade #Python3 #Perl536 #Curl7 #LightweightDeployment #StatelessCluster #ReverseProxy #NewFeatures #TechUpgrade #NovemberLaunch #RadiantRelease #AdvancedKernel #UpgradeToRELIANOID #CyberSecurity #OpenSource #CommunitySupport #loadbalance #adc
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lhn0kz9tjk8t7qe0zl9b.jpg)
Learn php laravel development course in Kolkata
Published: 2023-11-08 11:41:26

[PHP Laravel development](https://desunacademy.in/php-laravel-course-training-centre-in-kolkata-desun-academy/) refers to the process of building web applications using the Laravel framework, which is a popular open-source PHP framework for web development. So, doing a [PHP Laravel development](https://desunacademy.in/php-laravel-course-training-centre-in-kolkata-desun-academy/) course can be a great decision for you. Because There is a huge demand for this skill in the market. 
To know more [visit us](https://docs.google.com/forms/d/e/1FAIpQLSffxAjwKHuhtFRDFz4jIxg47NHc1n1MxwIxZpsiMrTZ5YjLPA/viewform?usp=sf_link).
Earned freeCodeCamp Cert but Projects are U-G-L-Y
Tags: webdev, beginners, css, html
Published: 2023-11-08 11:34:51

So I was a bad boy and just did the minimum to pass the certification project for the freeCodeCamp Responsive Web Design Certification. As I received my certificate,  it added the projects I did to the certificate. Oops! Well I'm going to fix those projects by using Frontend Mentor. That's right I'm going to do two projects at the same time. 

The reason? Frontend Mentor has designs already and I can knock out those projects also. So I'll download the FM projects as the main branch in Github and a branch for FCC. Once I pass the FM project, I'll merge the FCC... wait I can just copy the code to FCC instead and I don't need to merge it. Save time, right people?
Is Preact the Real Deal? Share Your Experience!
Tags: webdev, javascript, preact, programming
Published: 2023-11-08 11:34:32

If you've been riding the waves with this fast 3kB alternative to React, we're keen to hear about your journey. Preact prides itself on being a lighter, more nimble version of React, but does it hold up in the bustling web development landscape?

What's Your Take on Preact's Performance?

Compatibility and Community: How's the Fit?

Developer Experience: A Dream or Not?

Migrating to Preact: A Breeze or a Storm?

Whats the Future of Preact in Your Projects?

Are you doubling down on Preact, or considering other options? Your feedback could be the compass that guides others in their tech stack decisions.

In the spirit of open source and community growth, your input is invaluable. So, let's get the conversation started—where do you stand with Preact?

{% cta https://github.com/webcrumbs-community/webcrumbs %} WebCrumbs Community {% endcta %}