teleren/devto huggingface dataset:
So, you want to restart the sound system in Fedora?
Tags: sound, linux, fedora, pipewire
Published: 2021-10-28 11:16:58

For the first time in a long time some process (*Teams* ehem, ehem, ...) was making some annoying sound and there was no way to stop it. So, I decided to restart the sound system. 
The problem? Fedora switched from *pulseaudio* to *pipewire* [Fedora 34 plans to use PipeWire for sound instead of PulseAudio](https://blog.desdelinux.net/en/fedora-34-planea-usar-pipewire-para-sonido-en-lugar-de-pulseaudio/). The net is plenty of information about `restarting sound subsystem` referring to pulseaudio. 
Once I've discovered this change, it has been easy to discover the way to restar it and I'm documenting it here, just in case it is useful for somebody. You can type, as user (no sudo needed):

     systemctl --user restart pipewire^C

And you're done: the annoying sound disappeared.
Top 10 Popular Java Applications Examples in Real-world
Tags: java, technology
Published: 2021-11-25 12:09:44

---
title: Top 10 Popular Java Applications Examples in Real-world
published: true
date: 2021-10-28 11:16:55 UTC
tags: Java,Technology
canonical_url: https://www.botreetechnologies.com/blog/java-applications-examples/
---

Java is the #1 programming language for DevOps, AI, Machine Learning, and microservices. Today, Java is widely used for enterprise applications and building dynamic digital products. It is also a useful technology for Augmented and Virtual Reality, Big Data, and Continuous Integration. The Java ecosystem is a preferred choice for developers who are working with advanced technologies as well as enterprise solutions.

According to TIOBE, Java has been among the top three programming languages for the past 20 years and currently stands at the third position with a market share of 10.46%. Since Java is so scalable, robust, and dynamic, it is used to build applications that can handle hundreds and thousands of requests at once. Java engineers using the latest version of Java are achieving much better results in terms of managing requests and handling traffic.

This article will highlight the top 10 applications of Java in the real world. It will address how companies around the world are utilizing Java programming to build solutions that are leading the industry. Some of the top companies that use [Java software development services](https://www.botreetechnologies.com/dot-net-development-company) include Uber, Google, Netflix, Pinterest, Instagram, Amazon, and more. So if these leading companies have found Java applications, what else can the programming language do? 

The post [Top 10 Popular Java Applications Examples in Real-world](https://www.botreetechnologies.com/blog/java-applications-examples/) appeared first on [BoTree Technologies](https://www.botreetechnologies.com/blog).
Abstract Classes & Methods
Tags: php, tutorial
Published: 2021-10-28 11:14:45

######Abstract Classes & Methods

For  Abstract Classes to exist there must be a `parent class` and a `child class` relationship. That means they can only exist in a situation a class inherits from another.

Abstract methods, in the child class have access to the both the public, protected and _construct properties.

Points to note:
- you have to declare an abstract method or class using the `abstract` keyword
-For abstract methods they must have the same name in the child class as in the parent class. They must have the same number of arguments, however a child method can have additional arguments.
- The child class method must be defined with the same or a less restricted access modifier. `Private` wont work.

Let us look at the following example:

```
<?php  
abstract class Person{
 public $name;

 public function __construct($name){
  $this->name= $name;
 }
 abstract function greet();
}
class Greeting extends Person{
   public function greet() {
      echo "Hello, {$this->name}";
   }
}

$person1 = new Greeting("Samuel");
$person1->greet();
```

Let us look at this other example where abstract method has argument:

```
<?php
abstract class Person{
 public $name;

 public function __construct($name){
  $this->name= $name;
 }
 abstract protected function greet($honor);
}
class Greeting extends Person{
   public function greet($honor) {
      echo "Hello, {$honor} {$this->name} ";
   }
}

$person1 = new Greeting("Samuel");
$person1->greet("Hon");
```
Let us look at this other example where the child abstract method has optional argument:

```
<?php
abstract class Person{
 public $name;

 public function __construct($name){
  $this->name= $name;
 }
 abstract protected function greet($honor);
}
class Greeting extends Person{
   public function greet($honor,$salutation ="Welcome",$location ="Jamrock ") {
      echo "Hello, {$honor} {$this->name} {$salutation} to {$location} ";
   }
}

$person1 = new Greeting("Samuel");
$person1->greet("Professor");
```
PHP OOP Inheritance
Tags: php, tut
Published: 2021-10-28 11:12:11

###Inheritance

Inheritance is when a class derives from another class.

Except for private properties & methods the child class will inherit all public and protected properties and methods from the parent class. In addition, it can have its own properties and methods.

An inherited class is defined by using the `extends` keyword.
```
<?php
class Person{ 
 //properties of the class

 public $name;
 public $age;
 public $gender;

 //methods of the class
 public function __construct($name,$age,$gender){
   $this->name = $name;
   $this->age = $age;
   $this->gender = $gender;
 }
 public function personalDetails(){
   echo "My name is {$this->name}, i am {$this->age} old and i am a {$this->gender}";
 }
}

class Interview extends Person{
    public function askForDetails(){
       echo "What is your name, age and gender?";
    }
}

$answer = new Interview("Samuel",18,"Male");
$answer->askForDetails();
$answer->personalDetails();
?>

```
PHP ACCESS MODIFIERS
Tags: php, tutorial
Published: 2021-10-28 11:09:02

###Access Modifiers

Properties and methods can have access modifiers which control where they can be accessed.

There are three access modifiers:

`public` - the property or method can be accessed from everywhere. This is default
`protected` - the property or method can be accessed within the class and by classes derived from that class
`private` - the property or method can ONLY be accessed within the class

Check out the example below where we use the access modifiers on properties:
```
<?php
class Person{ 
 //properties of the class
 public $name;
 protected $age;
 private $gender;
}

$person = new Person();
$person->name = 'Samuel';//OK
echo $person->name;
$person1->age = 18;//Error
echo $person->age;
$person1->gender = 'Male';//Error
echo $person->gender;

```
Check out the example below where we use the access modifiers on the methods:

```
<?php
class Person{ 
 //properties of the class
 public $name;
 public $age;
 public $gender;
 //methods of the class
 function setName($name){
   $this->name = $name;
 }
 protected function setAge($age){
   $this->age = $age;
 }
 private function setGender($gender){
   $this->gender = $gender;
 }
}
$person= new Person();
$person->setName('Samuel'); // OK
echo $person->name;
$person->setAge(18); // ERROR
echo $person->age;
$person->setGender('Male'); // ERROR
echo $person->gender;
?>

```
PHP Object Oriented Programming Tutorial Series
Published: 2021-10-28 11:02:27

OOP stands for Object-Oriented Programming. Object-oriented programming is about creating objects that contain both data and functions, this is different from Procedural programming which is about writing procedures or functions that perform operations on the data.

**NB:**You can test the code in this article at [One Compiler](https://onecompiler.com/php)
######Why OOP?
- OOP is faster and easier to execute
- OOP provides a clear structure for the programs
- OOP helps to keep the PHP code DRY "Don't Repeat Yourself", and 
  makes the code easier to maintain, modify and debug
- OOP makes it possible to create full reusable applications with 
  less code and shorter development time
Exporting Blazor TreeGrid to PDF with Complete Customization
Tags: blazor, dotnet, webdev, csharp
Published: 2021-10-28 10:23:30

Learn how to perform PDF exporting in our [Blazor TreeGrid](https://www.syncfusion.com/blazor-components/blazor-tree-grid) component. You will also learn how to customize the file name, theme, header, and footer of the exported PDF document. 

Get free license : https://bit.ly/3jMV1SW

Download an example from GitHub: https://bit.ly/3pHcnoa 

Refer to the following documentation on PDF exporting in the Blazor TreeGrid component: https://bit.ly/2Zz0l5F 

Check out this online example of PDF exporting in the Blazor TreeGrid component: https://bit.ly/3Bhqd2E

{% youtube SHCWtM2buCc %}
Strings in Java
Published: 2021-10-28 10:08:26


>As other languages, String in java is also a sequence of characters. But java does not  implement string as an array of character rather it considers it as a complete object of type string.

##How to create a string object using new keyword and literals

There are two ways in which we can create a string object, by  using new keyword or by using literals. Literal representation means literally representing the value of it like integer, string. Below code represents how we can create a string using new keyword.
```
String a = new String();
```
As we know, new keyword is used to create the instance of that class. Above we have created an instance ‘a’ of a type string with no characters. To create a string with a value in it then you can do that like this.
```
char name[] = {‘x’,’y’,’z’}
String a = new String(chars);
```
Above we have created an character array name[] with values ‘x’, ‘y’, ‘z’ and then we allocated that complete array to the string ‘a’. We have used the constructor of String class to initialize the value of the string.

As we have seen above, it is little confusing and lengthy to create a string using new keyword. But there is a really easy way to that and this is where the literals come to save us.
```
String s = “xyz”;
```
This is how we create the string in java using literals. For every string literal in program, Java automatically constructs a String object with the initial value provided to it. You can use a string literal any place in you program to create a string object of it.

###String Example

Let’s write a simple hello world program.
```
public class HelloWorld {
    public static void main(String args[]) {
       
        String s1 = new String("Hello World using new keyword"); // Using new keyword
        String s2 = "Hello World using literals";

        System.out.println(s1);
        System.out.println(s2);
}
}
```
Run Code From here:- [CLICK HERE](https://blog.atharvasid.me/strings-in-java)
7 Sources To Learn New Skills For Free
Tags: beginners, tutorial, career, codenewbie
Published: 2021-10-28 10:04:56

These free sources will certainly help you to learn and improve your skills. Here's the 7 free sources you can go to learn new skills for free.

## [Coursera](https://www.coursera.org/)

Just choose a course, and apply for a [financial fund](https://www.coursera.org/degrees/coursera-financial-resources), they give it all.

## [Udemy](https://www.udemy.com/)

Many courses are free. They have almost every course you need to learn. (PS: You can also download pirated courses)

## [LinkedIn Learning](https://www.linkedin.com/learning/)

They teach very good and got a vast learning library. They offer 1-month free trial, and it's best, and recommended.

## [DataCamp](https://www.datacamp.com/)

From DataCamp, you can learn [Data Science](https://www.datacamp.com/courses/data-engineering-for-everyone), [R](https://www.datacamp.com/courses/free-introduction-to-r), [Python](https://www.datacamp.com/courses/intro-to-python-for-data-science) and much more for free.

They provide 2 months free through Microsoft Virtual Studio account.

## [Udacity](https://www.udacity.com/)

You can audit some of the courses for free, but you won't get the certificate.

## [SkillShare](https://www.skillshare.com/)

My most favorite to learn something new. It is fully free for students and gives up to 1 year free membership.

Highly recommended.

## [YouTube](https://www.youtube.com/)

The information is raw and outstanding but its not organized. [YouTube](https://www.youtube.com/) is still the best way to get started with learning for free.

---

## Let's connect!

You can follow me on [Twitter](https://twitter.com/MrDanishSaleem), [LinkedIn](https://www.linkedin.com/in/mrdanishsaleem/) & [GitHub](https://github.com/mrdanishsaleem/)

---

If you like this post. Kindly support me by [Buying Me a Coffee](https://www.buymeacoffee.com/mrdanishsaleem)

![Buy Me a Coffee](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v0ikih5nlsqs0oops11e.png)
Adabas & Natural Products now available on z/OS 2.5
Tags: news, adabas, natural, connx
Published: 2021-11-11 11:15:10

---
title: Adabas & Natural Products now available on z/OS 2.5
published: true
date: 2021-10-28 10:01:47 UTC
tags: #news, #adabas, #natural, #connx
canonical_url: https://tech.forums.softwareag.com/t/adabas-natural-products-now-available-on-z-os-2-5/245407
---

Software AG is proud to announce that the Adabas & Natural family of products are now available on IBM® z/OS® 2.5.  
By leveraging the strengths of the IBM Z platform’s computing power and resources, [IBM z/OS](https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ibm.com%2Fit-infrastructure%2Fz%2Fzos&data=04%7C01%7CEli.Cohen%40softwareag.com%7Ca6e41dee8b484a99fcec08d999ed589a%7Cd9662eb9ad984e74a8a204ed5d544db6%7C1%7C0%7C637710066940504694%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bfDSeHQP9u6pqLFewrUwEZlIRRJCz3OCyNPaLz0LvrA%3D&reserved=0) plays an important role in providing a secure, scalable environment for the underlying transformation process in which organizations are embarking to deliver swift innovation.  
Adabas & Natural users can now benefit from key innovations of this new release, including next-level security and resiliency.

To explore what platforms are supported for Software AG products, please visit [https://empower.softwareag.com](https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fempower.softwareag.com%2F&data=04%7C01%7CEli.Cohen%40softwareag.com%7Ca6e41dee8b484a99fcec08d999ed589a%7Cd9662eb9ad984e74a8a204ed5d544db6%7C1%7C0%7C637710066940514642%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=gRK6UByfJYL5GECNBG%2FwIaCJXEV5qn2%2Fw2cAOyQS15M%3D&reserved=0).

[Read full topic](https://tech.forums.softwareag.com/t/adabas-natural-products-now-available-on-z-os-2-5/245407)
First Post
Tags: programming, coding, webdev, python
Published: 2021-10-28 10:01:42

As a lead back-end developer, I have gained knowledge of different technologies in web development. I have always thought that my knowledge would be useful for someone who is just starting out in web development or just want to know more about this field. Hence, I will start writing blog posts about web development.


covering topics such as technologies, business logic, python programming and coding .


I also want to share some articles about how to learn and know what you need to know as a web developer, written in an informal manner that makes them accessible to anyone.
code everyday with me
Tags: javascript, programming, 100daysofcode, algorithms
Published: 2021-10-28 09:43:44

##--DAY 10--
Hi, I am going to make #100DaysOfCode Challenge. Everyday I will try solve 1 problem from leetcode or hackerrank. Hope you can go with me until end.
**Now let's solve problem today:**
-Problem: Subarray Division
-Detail: https://www.hackerrank.com/challenges/the-birthday-bar/problem
-My solution (javascript):
```
function birthday(arr, d, m) {
    let ans=0,s=0;
    for(let i=0;i<arr.length;i++){
        for(let j=i;j<(i+m);j++) s+=arr[j];
        if(s==d) ans++;
        s=0;
    }
    return ans;
}
```
-->*If you have better solution or any question, please comment below. I will appreciate.*
VOLDER v2.0.0 npm package coming soon
Tags: testing, javascript, npm, schemabuilder
Published: 2021-10-28 09:24:44

## ⚠️ ⚠️  version 2.0.0 in the road with more features and better documents
### support me by adding a star to github volder repository
link:https://github.com/devSupporters/volder
Appwrite for Web
Tags: appwrite, webdev, web, hacktoberfest
Published: 2021-10-28 09:14:55

Appwrite is a development platform providing you with easy yet powerful API and management console to get your next project up and running quickly.

This tutorial will help you start using Appwrite products and build your next project. Before starting, make sure you have followed the Appwrite installation guide, and you have an Appwrite server instance up and running on your host machine or server.

I am a beginner in Hacktoberfest, developing my interest in open-source. As appwrite is a partner of hactoberfest, I am doing my pull request through this.
Use the best program to open Tar files on Mac
Published: 2021-10-28 09:11:16

There are several ways to extract the [Tar files Mac](https://mac.eltima.com/open-tar-file-mac.html). The first way does not require any skills from you and is the built-in macOS utility called Archive Utility.  However, there are situations when the built-in utility cannot open the Tar file on Mac as well as cope with other well-known formats, such as RAR. In these situations, it is recommended to use third-party applications like Commander One.

Commander One is an excellent file manager with a set of interesting and useful features. It compresses and decompresses TAR files easily as well as works with the rest of popular formats, including RAR. Also using the application you can copy/move files from one archive to another as well as delete files and create folders directly inside an archive, search and browse through the content of the archive without extracting it.
Unserialize php in Javascript Nodejs
Tags: php, node, javascript, webdev
Published: 2021-10-28 11:22:05

---
title: Unserialize php in Javascript Nodejs
published: true
date: 2021-10-28 09:09:09 UTC
tags: php, node, javascript, webdev
canonical_url: https://boobo94.github.io/tutorials/unserialize-php-in-nodejs/
---

```
import PhpUnserialize from 'php-unserialize';

const serialized = 'a:0:{}'
const jsObject = PhpUnserialize.unserialize(serialized);
console.log(jsObject) // {}

```

NPM Library: https://www.npmjs.com/package/php-unserialize

What happens if your serialized string contains special characters ? yeah, it fails!

In order to solve that we can use

```
import encoding from 'encoding';

export function convertToUtf8Win1252(str) {
  return encoding.convert(str, 'WINDOWS-1252').toString();
}

```

So mixing both functions:

```
export function unserializePhp(str) {
  return PhpUnserialize
    .unserialize(convertToUtf8Win1252(str));
}

```

NPM Library: https://www.npmjs.com/package/encoding
Create kml/kmz files in Nodejs
Tags: javascript, node, webdev
Published: 2021-10-28 11:22:00

---
title: Create kml/kmz files in Nodejs
published: true
date: 2021-10-28 09:09:09 UTC
tags: javascript, node, webdev
canonical_url: https://boobo94.github.io/tutorials/create-kml-kmz-nodejs/
---

Libraries used:

Create kml file - https://www.npmjs.com/package/@maphubs/tokml Create geojson - https://www.npmjs.com/package/geojson Create kmz using zip - https://www.npmjs.com/package/jszip

## Create KML File

```

const points = [
    {latitude: 39.984, longitude: -75.343},
    {latitude: 39.284, longitude: -75.833},
    {latitude: 39.123, longitude: -74.534},
    {line: [[102.0, 0.0], [103.0, 1.0], [104.0, 0.0], [105.0, 1.0]],}
]

const geojsonObject = geojson.parse(points, {
    Point: ['latitude', 'longitude'],
    LineString: 'line',
}), {
    documentName: 'Document Name',
    documentDescription: 'KML Export'
}

  const response = tokml(geojsonObject);

```

Content-type for kml:

```
'Content-Type': 'application/vnd.google-earth.kml+xml',

```

## Create KMZ File

```
  const zip = new JSZip();
  zip.file('doc.kml', kmlFile);

  return zip.generateAsync({ type: 'nodebuffer' });

```

Content-type for kml:

```
'Content-Type': 'application/vnd.google-earth.kmz',

```
8 Tips from Junior Software Developers to Future Devs
Tags: beginners, tips, career, codenewbie
Published: 2021-10-28 08:47:21

**We have asked junior developers at Bright Inventions what advice they would give to someone who is looking for the first job in the software development world. Check out their tips for future developers!**

## Show that you want to learn

Paweł – Junior Fullstack Developer:

> If you have some knowledge gaps that is not a deal breaker. You can always catch up with technical things. The crucial part is to show your willingness to learn and your passion. You don’t need to have an answer to every technical question. But if you are aware that you still have so much to learn and that truly excites you, then you are sending the right message to the recruiters.

## Don’t lie

Łukasz – Junior Fullstack Developer:

> If you don’t know some languages or libraries, tell it straight on. Be authentic. The truth will quickly come out. When someone catches you in a lie that’s usually over.

## Coding is passion

Jędrzej – Junior Fullstack Developer:

> Don’t go into the software development industry only for money. It should be your passion. Recruiters can tell if you just want to do this job but don’t really desire to start this career.

## Erase “I don’t know” from your dictionary

Łukasz:

> If you don’t know the answer to a question, don’t give up by saying “I don’t know”. Try to show how you would like to resolve this issue, how you would try to find the answer to this question. Don’t give up. Often it is not about the right answer but about showing your process of solving some technical challenges.

## Your first job interview will probably be a mess

Łukasz:

> Usually the first job interview feels like a collision with a wall. And that is normal. Take lessons from that experience, remember what recruiters asked you, what they expected from you. Every next interview will be better.

## Don’t start from a remote job

Jędrzej:

> Try to look for a job in an office rather than remote one. At least choose a hybrid option if possible. Naturally, pandemic makes it more difficult, however, it is easier to start a good relationship with your team when your colleagues aren’t just avatars that you see on Slack or Google Meet. Initial months in a first software development job are challenging and working remotely can make it even more difficult. Office working gives you more opportunities to acquire knowledge from mid or senior software developers.

## It will be overwhelming in the beginning and that’s OK

Łukasz:

> When you start your first junior software development job, you will surely be overloaded with tons of information about the project, technologies, new colleagues and software development company. Try not to be stressed about that. That is normal. Day by day you will feel better.

## Chill out

Paweł:

> It will be fine. Stress isn’t your friend. Really.

That’s it for now from our junior developers. Good luck with finding your first software development job! 

And learn more about [career opportunities at Bright Inventions] (https://brightinventions.pl/career).