teleren/devto huggingface dataset:
Flutter App Multiple Audio/Video Playback Issue
Tags: tutorial, programming, flutter, audio
Published: 2024-04-08 16:44:23


### Problem Description:

When playing background audio, normal audio, and video simultaneously in a Flutter app, you encounter several issues:

- **Audio Interruptions**: The music stops when the app loses focus or the user switches to another app.
- **Video Display Problems**: Sometimes the video doesn’t play or doesn’t show up at all.
- **Error Messages**: During the debugging process, an error message is displayed.

```dart
dispatching onAudioFocusChange(-1) to android.media.AudioManager@c7d4210com.ryanheise.audio_session.AndroidAudioManager$Singleton$$ExternalSyntheticLambda0@3d63109
```

### Solution:

To resolve this issue, it is recommended to utilize the `videoPlayerOptions` parameter with the `mixWithOthers` property set to `true` when initializing the `VideoPlayerController`. This option allows the video to continue playing while other audio sources are also playing simultaneously.

### Implementation Steps:

1. Import the required dependencies in your Flutter application:

```dart
import 'package:video_player/video_player.dart';
```

2. Initialize the `VideoPlayerController` with the `videoPlayerOptions` property set to `VideoPlayerOptions(mixWithOthers: true)`.

```dart
VideoPlayerController _controller = VideoPlayerController.network('YOUR_VIDEO_URL',
  videoPlayerOptions: VideoPlayerOptions(mixWithOthers: true))
    ..initialize().then((_) {
      // Once the video has been initialized, play it.
      _controller.play();
    });

```

3. Ensure that the `mixWithOthers` property is set to `true` to allow simultaneous playback of video and other audio sources.

### Additional Notes:

- By setting `mixWithOthers` to `true`, you can avoid conflicts between different audio sources and ensure smooth playback of both video and background audio in your Flutter application.
- It's advisable to test the changes thoroughly to ensure that all audio and video sources play correctly without any interruptions.

By following these steps and implementing the suggested solution, you should be able to overcome the audio/video playback issue in your Flutter application and enhance the overall user experience.
The Tools I learnt during my first month of Learning Programming
Tags: programming, vscode, github
Published: 2024-04-08 16:42:00

Programming is hard!! that's what we have all been told. before every software engineer took the step to start learning programming….and yeah, after my first month of programming I found out programming is indeed hard….

But during my first month i found out nothing is hard after putting your mind, time and attention on it and an important aspect about learning programming is to have a good tutor.
 

## THESE ARE SOME BASIC COMMAND LINE TOOLS

```
cd: Change directory.
usage:
$ cd foldername
```

```
ls or dir (Windows): List files and directories in the current directory.
Usage:
$ ls
```


During my first month my tutor introduced some tools that can make programming easier and more stress-free :

## Visual Studio Code

Visual Studio Code is a code editor and optimized for building modern web applications. it has made my first month of programming easy and interesting.

## GIT BASH
With my understanding Git bash are used to create the foundation of codes like creating folders, and files and it will be transferred to vs code for code completion. Git Bash allows you to commit changes to your local repository and push them to a remote repository.

## THIS ARE THE BASIC GIT COMMANDS

```
git init :
```

```
git status :
```

```
git add .
```

```
git commit -m "commit message"
```

```
git remote add origin {repo_url}
```

```
git push -u origin master
```

## GIT HUB
git hub is a platform where git user build their software together and publish it online 

There are other tools have learnt but these tools have been the important key tools have been using so far and it has helped in my first month of learning a great deal.

I’m looking forward on learning more tools and i’m glad have learn this much just in my first month.
Creating a Windows 11 Virtual Machine
Published: 2024-04-08 16:40:56

Creating a Windows 11 virtual machine help you to enjoy flexibility, convenience, and the ability to explore and test the latest version of Windows without making permanent changes to your existing operating system or hardware. With a Windows 11 virtual machine, you can create a customized environment designed to suit special demands.


Please follow the steps below to create your windows 11 virtual machine.

CREATE AND SIGN IN TO MICROSOFT AZURE PORTAL

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

To create a free Microsoft Azure account, you need to go to,  https://azure.microsoft.com/free.
Click on Start Free.
Sign in with an existing Microsoft 365 account, or press No account? Create one!
Enter an email address you want to register with.
Enter the password you want to set for the account, and then press Next.
Select the correct Country/Region and enter your Birthdate, and then press Next

CREATE YOUR VIRTUAL MACHINE

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7hmevkls0jrlil3msxng.jpg)
To create a virtual machine in Azure, you need to sign in to the Microsoft Azure portal at https://portal.azure.com.
Enter virtual machines in the search and select Virtual machines under Services. Select Add or Create virtual machine to start the creation process.

Fill in the required information, such as subscription, resource group, name, region, image, size, and administrator account.
Review and create the virtual machine. You can connect to it using a remote desktop connection.

 You will from the search bar, type "Virtual Machine"

b. From the search results, select "Virtual Machine" from the list of resources shown

c. Click on the "Create" button

d.) Select the virtual machine highlighted

e)You will be directed to the "Basics" page.
Day 8/366
Tags: 1percentplusplus, 100daysofcode
Published: 2024-04-08 16:29:57

🚀 **Today's Learning:**

🌟 DSA

- Min element in sorted rotated array
- Find peak element in a mountain array

🌟 Dev

- CORS (Cross-Origin Resource Sharing) and Write its Importance


 #100daysofcode #1percentplusplus #coding #dsa
DotNet. C-Sharp haqida. 1.2-video.
Published: 2024-04-08 16:14:55

C# - zamonaviy objectorientr dasturlash tili bo'lib, u orqali xavfsiz va mustahkam dasturlar yaratiladi.

C# DotNet deb atalgan ekosistemani o'zagi hisoblanadi. U orqali:
BackEnd, FrontEnd, MobilDesktop ilovalari, sun'iy intellekt, IOT va h.k.
Argentina beaches
Published: 2024-04-08 16:05:38

Hey, fellow travelers! Scott James here, a passionate explorer from the US. I recently discovered Tripinn.com and was blown away by their blog on [Argentina beaches](https://www.tripinn.com/blog/argentina-beaches/). It's a treasure trove of recommendations, from serene sunbathing spots to thrilling water adventures. If you're itching for an unforgettable beach getaway, Tripinn is your go-to resource. Trust me, it'll spice up your travel plans like never before. Don't forget to check out their accommodation suggestions for the perfect beachside stay. Happy travels!
Dotnet. Kirish. Arxitekturasi. 1.1-video.
Published: 2024-04-08 16:05:11

Dastur davomida objectlar bir biri bilan muloqot qiladi va ma'lumot almashadi.

Object ichida ma'lumot(property) va shu object bajaradigan funksiya(method) bo'ladi.

Object yaratishdan oldin andoza(maket) yaratib olinadi. Bu - class deyiladi.

Dastur kattalashgan sari classlar soni ham oshib boradi va ularni tartiblash ehtiyoji yuzaga keladi. C# da classlar namespace ostdida birlashtiriladi. Namespaceni kompyuter xotirasidagi papkalarga taqqoslasak bo'ladi, ya'ni o'xshash classlar bir xil papkada saqlanadi va bir xil namespace ga ega bo'ladi.

Namespacelar birlashib Assembly hosil qiladi. DotNetda har bir loyiha bitta assembly hosil qiladi, lekin butun boshli biznes amalini bajaruvchi katta loyiha bir nechta kichik loyihalardan tashkil topadi va shu mini loyihachalar alohida assembly hisoblanadi.
From Brazil to NYC: Tech Career & Life as a Software Engineer
Published: 2024-04-08 15:39:58

Welcome, everyone! I've launched this platform to offer insights into my daily life. I'm Arthur, a Brazilian Software Engineer now based in New York City for over a year. Through my posts, I'll tell you about my journey, delving a into the immigrant experience, differences in job interviews between Brazil and the U.S., and sharing valuable insights into software engineering, including system design, architecture, and best practices.

Lately, my focus has been on honing my skills in algorithms and data structures while navigating job interviews in the U.S. This journey has taught me valuable lessons in time management and productivity.

Additionally, I'd like to recommend some websites I frequently use for practice:

- [Neetcode](https://neetcode.io/) - Offers a comprehensive roadmap.
- [Leetcode](https://leetcode.com/) - The LeetCode Explorer course serves as an excellent guide for choosing relevant courses.  
- [BigOcheatsheet](https://www.bigocheatsheet.com/) - Provides insights into time complexity. 
- [tryhackme](https://tryhackme.com/) - An excellent resource for learning about information security.  
- [ByteByteGo](https://bytebytego.com/) - A valuable system design reference. 
- [Refactoring.guru](https://refactoring.guru/design-patterns/) - Insights into design patterns.

Stay tuned for more updates!
Sniffnet 1.3 released!
Tags: rust, opensource, networking, news
Published: 2024-04-08 15:38:51

[Sniffnet](https://github.com/GyulyVGC/sniffnet) is an open source, Rust-based **network monitoring tool** I’ve been working on for almost two years now.


![Overview page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h5rts7dcswdwc7g1ygql.png)

Exactly 8 months after the previous release, I’m excited to share that today Sniffnet [v1.3.0](https://github.com/GyulyVGC/sniffnet/releases/tag/v1.3.0) has been published.

This release introduces several long requested features, such as **export of PCAP files**, support for **ICMP**, detection of more **upper layer services**, and other functionalities to improve the overall user experience, such as the new **thumbnail mode** and the possibility to **totally customize** the application color palette.

![Thumbnail mode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1yxt1rwsn4mmbbgjdfar.png)

I’ve also dedicated some efforts to enhance Sniffnet documentation and I’ve come up with a complete **user manual** hosted on [GitHub Wiki](https://github.com/GyulyVGC/sniffnet/wiki).
Total Eclipse JavaScript
Tags: javascript
Published: 2024-04-08 15:32:16

There's an Eclipse today. which reminded me of the Hackathon I attended around the last big Eclipse. We used the song "Total Eclipse of the Heart" to explain JavaScript functions. 

We brainstormed possible solutions we could build in the time limit. We decided to use the similarities between music and code and to help explain JavaScript functions. We chose “Total Eclipse of the Heart” to show repeated lyrics as reusable code and explain parameters.

The full write up is [here](https://www.christopherleejarvis.com/JarvisScript/2023/12/11/31/) and the app is still online. You can see it [here](https://totalecliose.firebaseapp.com/#!/)
Don't Use the await Operator Inside Your .NET Loops
Tags: dotnet, csharp
Published: 2024-04-08 15:29:33

---
title: Don't Use the await Operator Inside Your .NET Loops
published: true
description: Using async/await in your codebase is definitely the way to do asynchronous processing in .NET. But if you're using the await operator within loops, you might be missing out on increased performance. Let's cover why you might not want to use it and a better alternative.
tags: dotnet, csharp
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/udvqxsoc6dezwsxje8m0.png
---

{%youtube BdnpTrviJko %}
Music Monday — What are you listening to? (Favorite Album Titles Edition)
Tags: watercooler, discuss, music
Published: 2024-04-08 15:26:39

_cover image source: [Giphy](https://giphy.com/gifs/pink-floyd-dark-side-of-the-moon-motion-covers-gox3GChzdpFsuBJUAT)_

**Last week, a DEV member (shoutout to @thaisavieira!) [pointed me to a song](https://dev.to/thaisavieira/comment/2e3l0) with a vulgar album title that made me giggle like a little kid. This got me thinking, we should do a Music Monday that focuses on the best album titles! In fact, it kinda sent me down a whirlwind of ideas and now I have planned out all of our Music Mondays for the rest of the month — woot woot! I'm not ready to reveal everything just yet, but know that they will all be following a similar theme. In any case, back to this week's edition on album titles... there are so many good ones out there! Whether you like'em funny, poignant, strange, self-titled, or not existing at all (I'm looking at you in that blue car, Peter Gabriel) I wanna hear your favorite titles and why!**

![The Gorillaz "Plastic Beach" album cover. You can see a weird modern building built on top of a cliff that is surrounded by water.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t9ycwr670rdmllodlihq.gif)

***

## How we do 

In this weekly series, folks can chime in and drop links to whatever it is they've been listening to recently + browse others' suggestions. You can follow the suggested genre if you'd like, but don't feel confined to it; you're free to suggest whatever you wanna. 🙌  

If you're interested in having other discussions about music, consider following the aptly named [#music discussions](https://dev.to/music-discussions) organization.

{% embed https://dev.to/music-discussions %}  

***

Now, share those album titles with and feel free to choose and link to a particular song from the album if you're up for it.

_Note: you can embed a link to your song using the following syntax `{% embed https://... %}`. This should work for most common platforms!_

Looking forward to checking out what y'all come up with! 🎶

***

**🚨_p.s. Check out @rachelfazio's sister series to Music Monday, [Podcast Palooza](https://dev.to/rachelfazio/series/26422)!_🚨**
What is Link Building Micro Marketing ?
Tags: linkbuilding, micro, marketing, learning
Published: 2024-04-08 15:21:17

Link building micro marketing isn't a standard term, but it likely refers to the idea of applying micro-marketing tactics to link building efforts.

## Here's a breakdown of the two concepts:

### **Link building: **

This is a [search engine optimization (SEO) strategy](https://vh-info.com/) where you acquire links from other websites to your own. Search engines view these links as a sign of trustworthiness and relevance, potentially boosting your website's ranking in search results.

### **Micro-marketing: **
This marketing approach focuses on very specific, targeted audiences. It leverages relevant channels to reach these small groups with highly personalized messages.

So, link building [micro marketing](https://theinfoplus.com/blog/micro-marketing/) would essentially be building links with a targeted approach. This could involve:

**Identifying niche websites**: Instead of trying to get links from massive websites, target smaller, highly relevant websites within your specific industry or niche.

**Building relationships**: Instead of generic outreach emails, focus on building genuine connections with website owners or editors in your niche.

**Creating high-quality, targeted content**: Develop content that caters to the specific audience
[Tutorial 🧹] Limit deployments to Platform.sh only when Git tagged
Tags: webdev, devops, git, beginners
Published: 2024-04-08 15:14:41

Is it possible to only deploy to Platform.sh when a tag is pushed using a source code integration? 🤔

The answer is: with our current source integrations, it's not, but it's also not impossible - and we'll show you how.

Take advantage of your source code management system’s CI/CD platforms. Let's walk you through the steps of creating a GitHub workflow that only pushes your codebase to Platform.sh to deploy changes when a particular tag is pushed. 

Follow along with our tutorial: _'limit deployments to Platform.sh only when Git tagged'_ by reading the articles below 👇

1️⃣ Start with **[part one here](https://platform.sh/blog/guide-to-limit-deployments-to-platformsh-only-with-tags-part-one/?utm_source=devto&utm_medium=organic_social&utm_campaign=Platformshblog2024)**
2️⃣ Next check out **[part two here](https://platform.sh/blog/guide-to-limit-deployments-to-platformsh-only-with-tags-part-two/?utm_source=devto&utm_medium=organic_social&utm_campaign=Platformshblog2024)**
3️⃣ End off with the final installment **[part three here](https://platform.sh/blog/guide-to-limit-deployments-to-platformsh-only-with-tags-part-three/?utm_source=devto&utm_medium=organic_social&utm_campaign=Platformshblog2024)**
"Day 58 of My Learning Journey: Setting Sail into Data Excellence! Today's Focus: Maths for Data Analysis (Probability - 4)
Tags: data, analyst, dataengineering, datascience
Published: 2024-04-08 15:11:11

PROBABILITY - 4


Contingency table :-  

It is a table which helps us to make Venn Diagrams to get probability.

Example :- 

Total students are 100.
Student who take only biology = 40
Student who take only maths = 30
Student who take only both = 10


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



This is mostly used in the type of probability.



Type of probability

Joint probability
Marginal probability
Conditional probability
JOINT PROBABILITY :- 

Let’s say we have two random variables X and Y. the joint probability of X and Y, P( X= x,Y= y)denotes the probability that X takes the value x and Y takes the value of y at the same time.

Probability of having two events simultaneously is called joint probability.

Creating contingency table in python 

pd.crosstab(data_file_name[column_name ] , data_file_name[column_name ],normalize =’all’)

Joint probability distribution :- sum of all the values is 1.



Marginal probability / simple / unconditional 

It refers to the probability of an event occurring irrespective of the outcome of some other event. When dealing with random variables , the marginal probability of a random variable is the simple probability of that variable taking a certain value, regardless of the value of other variables.

pd.crosstab(data_file_name[column_name ] , data_file_name[column_name ],normalize =’all’,margins =True )



Conditional probability  

It is a measure of the probability of an event occurring, given that another event has already occurred. If the event of interest is A and event B has already occurred, the conditional probability of A given B is usually written as P(A|B).

pd.crosstab(data_file_name[column_name ] , data_file_name[column_name ],normalize =’columns’ )





 🙏 Thank you all for your time and support! 🙏
PhP
Published: 2024-04-08 13:32:36

PhP is an acronym for Hypertext Preprocessor. It is a server side, open source, scripting language that uses a PhP processor model to interpret PhP within HTML documents, making it a great choice for creating dynamic web pages.
 
It was released in 1995 by Rasmus Lerdorf and is compatible with all major operating systems. Initially, it was written with the bases of the C programming language, and has evolved into the PhP 8.3 that we know today.

With Php being a server-side language, that means that the scripts are executed on the server and then sent to the client as plain HTML. The PhP source code is not seen on the client side, only the output.

Here is an example of PhP syntax:
```Php
<?php
// Simple PHP code example
$name = "Josh";
echo "Hello, $name!";
?>
```
That script will output "Hello, Josh" to the browser.


PhP is a powerful tool for web development. Here are a few features:
1. Easy to use: PhP has a syntax that is easy to learn and understand.
2. Intergration: PhP can be used with various databases to dynamically use the data.
3. Flexiblity: PhP can be used in the development of simple websites or large complex web applications.
4. Support: There is a large list of resources, frameworks, and libraries to help with PhP developement.

You can easily use Php with Javascipt. Here is an example:

```Php
<?php
// PHP code to generate JSON response
$data = array("name" => "Jim", "age" => 20);
header('Content-Type: application/json');
echo json_encode($data);
?>
```
```javascript
javascript
// JavaScript code to consume API endpoint
fetch("api/data.php")
  .then(response => response.json())
  .then(data => {
    // Work with the retrieved data
    console.log(data.name, data.age);
  });
```


In web development, PhP is a flexible and very powerful language. It's ease of use, integration, flexibility, and strong support make it a popular choice amongst developers. 


References
1) https://www.php.net/manual/en/intro-whatis.php
2) https://wpwebinfotech.com/blog/php-javascript-integration/#:~:text=While%20PHP%2C%20the%20server%2Dside,into%20a%20captivating%20digital%20space.
3) https://www.simplilearn.com/tutorials/php-tutorial/what-is-php
What are your goals for week 15 of 2024? Eclipse Edition.
Tags: motivation, discuss
Published: 2024-04-08 15:08:39

 It's week 15 of 2024. 

## What are your goals for this week? 

- What are you building? 
- What will be a good result by week's end?
- What events are happening this week? 
  * any suggestions for in person or virtual events?
- Any special goals for the quarter?


### Last Week's Goals
 

- [:white_check_mark:] Continue Job Search. 
- [:x:] Project work 
   * Updated content on a site I manage. Added a custom 404 page.
- [:x:] Blog 
- Events 
  * [:x:] Wednesday Nashville Data Nerds. Right at commute time. They got Zoom raided and closed the room before I got in.
  * [:x:]  Thursday Virtual Coffee 
- [:white_check_mark:] Need to track online events, just write them down. 
- [:white_check_mark:]I'll run a goal setting thread on Virtual Coffee Slack. 
- [:x:] Work on The new DEV Challenges that will be announced later in the week. * This challenge is AI using Cloudfare workers. I haven't used Cloudfare's workers so I need to time to look at them and see if I can do anything. 

 
### This Week's Goals

 

- Continue Job Search. 
- Project work 
   * Got an idea to revive an old inventory project. Need to make progress.
   * Update content on a site.
- Blog 
- Events 
  * Thursday Virtual Coffee 
- Need to track online events, just write them down.
- I'll run a goal setting thread on Virtual Coffee Slack. 



### Your Goals for the week 

Your turn what do you plan to do this week? 

- What are you building? 
- What will be a good result by week's end?
- What events are happening any week? 
  * in person or virtual?


```html
-$JarvisScript  git commit -m "Time for accountability"
```
Link vào nhà cái fun88 2024
Published: 2024-04-08 15:01:59

https://2bong.in/fun88-nha-cai/ Link vào nhà cái fun88 2024✔️Đăng ký Fun88✔️Nạp tiền Fun88✔️Tải App Fun88
https://fun882bongin.webflow.io/
https://fun882bongin.zohosites.com/
https://hashnode.com/@fun882bongin
"Empowering Futures: Completing the 'Prepare for Apprenticeships and Jobs' Course"
Tags: softskill, employment, skill, positive
Published: 2024-04-08 14:53:07


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ow2bcdoyre8k3ohc7ul.jpg)

You need to be Great Employee to Be a Great Leader..
OR gate || OR kapısı
Published: 2024-04-08 14:47:23

Örneğin, bir güvenlik sistemi düşünelim. Kapıda iki sensör bulunsun. Birinci sensör hareket algılarken, ikinci sensör ses algılar. Eğer biri ya da her ikisi de tetiklenirse, alarm çalması gerekir. Bu durumda, alarm mantıksal OR kapısı olarak düşünülebilir. Eğer birinci sensör veya ikinci sensör (ya da her ikisi) tetiklenirse, alarm durumuna geçilir.

For example, let's consider a security system. There should be two sensors on the door. While the first sensor detects motion, the second sensor detects sound. If one or both are triggered, the alarm should sound. In this case, the alarm can be thought of as a logical OR gate. If the first sensor or the second sensor (or both) is triggered, an alarm condition occurs.

created by gpt