teleren/devto huggingface dataset:
How to Fix Faulty Spotify Icon in KDE Plasma Application Switch
Tags: plasma, spotify, icon, x11
Published: 2022-12-14 09:30:56

---
title: How to Fix Faulty Spotify Icon in KDE Plasma Application Switch
published: true
description: The Spotify client on Linux may show an X11 icon instead of the application icon in the app or window switcher. This blog post teaches how to fix this in KDE Plasma.
tags: plasma, spotify, icon, x11
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/79ors3yo0pgprgvz4l33.png
# published_at: 2022-12-14 08:41 +0000
---

## Cover image description
A screenshot showing an application switch with three open apps: system settings, Spotify and Firefox. The icon of the Spotify entry is highlighted and clearly wrong. Only the label "Spotify" gives away, that it's actually the app. The icon is the X11 fallback icon.

## Applying a KWin Rule

Whether I installed the app image or the Flatpack version of Spotify, I always had issues with the app icon in the window's title bar and the application switch. It fell back to a defaulting x11 icon.
![A screenshot showing an application switch with three open apps: system settings, Spotify and Firefox. The icon of the Spotify entry is highlighted and clearly wrong. Only the label "Spotify" gives away, that it's actually the app. The icon is the X11 fallback icon.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aj61jsbfusxwbyyxyx8t.png)
![A screenshot showing the title bar of Spotify. The title bar features a clearly wrong icon. It's the icon of X11.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ew8v93cfc3yqk7qkni5e.png)
After investigating, it turned out that it's relatively easy to fix. All you need is a simple KWin rule. You don't even need to set any properties with it (at least, I have observed so far). It just needs to be there. For the sake of "better safe than sorry", we add a meaningful property anyway.
Open up "Window Rules" in the "System Settings". Add a new rule and give it a meaningful description. Something like "Spotify" should do the trick. Then add `spotify` (lowercase is essential!) as the Window Class. Afterward, click "Add Property" and choose "Desktop file name". Add `spotify-client` as the value and select the mode `Force`.
![A screenshot showing the "Window Rules" dialog with the settings as described in the paragraph above.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ie3o5w63jj3k26nu0zzk.png)
That's it already! Applying the changes should fix the icon.
![A screenshot showing the title bar of Spotify and an application switch. Both icons are now correctly displaying the official Spotify app image.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mfcfubnmiigyxhwed2i9.png)
Всем привет! Это мой первый пост
Published: 2022-12-14 09:25:37

Привет, друзья и коллеги!
Я здесь первый день и хотел бы вас познакомить с одним из своих проектов - [KursHub.ru, ранее курсы-онлайн.ру](https://KursHub.ru).

Это агрегатор курсов, каталог платных и бесплатных уроков в IT и Digital направлениях.

Моя команда ежедневно собирает информацию об онлайн-курсах и публикует ее на сайте, чтобы вы смогли подобрать для себя самый лучший курс.
To People That Want To Start SERVICENOW ITSM CERTIFICATION But Are Affraid To Get Started
Published: 2022-12-14 09:22:57

CIS-ITSM examination Dumps mastering fabric PDF layout
**Servicenow ITSM Certification** Makes things smooth for you so that you can prepare calmly on your ServiceNow certified Implementation expert - IT carrier management exam. you will get the CIS-ITSM examination dumps getting to know cloth in pdf format to your certified Implementation expert CIS-ITSM check coaching that's compatible with all clever gadgets. you can download the ServiceNow CIS-ITSM dumps pdf mastering questions about your pc, computer, mac, tablet, and phone proper after the purchase. Having the CIS-ITSM pdf questions getting to know material permits you to prepare from the comfort of your property. also, you could put together in your ServiceNow licensed Implementation professional - IT provider control examination from anywhere each time easily.

Special Offer: https://dumpsarena.com/servicenow-dumps/cis-itsm/
Typescript Generate Full Path Type And Get Value Type Of Nested Union Object With Numeric Key
Tags: tutorial, webdev, typescript, javascript
Published: 2022-12-14 09:01:40

Before TS 4.8, obtaining value type for path `A/${number}` of `{ A: Record<number, boolean> }` is possible, that is `type B = DeepValue<A/${number}> // boolean`

however it is impossible to get the value type for path `A/${123}` of `{ A: { 123: boolean } }`, `type B = DeepValue<A/${123}> // never`


With TS 4.8, [Improved Inference for infer Types in Template String Types](https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/#infer-types-template-strings) made numeric literal path type possible

```ts
type DeepKey<
	T,
	K extends keyof T = keyof T
> = K extends string | number
	? T[K] extends infer R 
		? `${K}`| (R extends Record<string, unknown> ? `${K}/${DeepKey<R>}` : never) 
		: never // impossible route
	: never // impossible route

type DeepValue<
	T,
	P extends DeepKey<T>,
> = P extends `${infer K}/${infer Rest}`
	? T[(K extends `${infer R extends number}` ? R : K) & keyof T] extends infer S
		? S extends never // make S distributive to work with union object
			? never
			: Rest extends DeepKey<S>
				? DeepValue<S, Rest>
				: never // impossible route
			: never // impossible route
	: T[(P extends `${infer R extends number}` ? R : P) & keyof T]
```

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



support:
1. nested
2. numeric keys
3. unions

[playground](https://www.typescriptlang.org/play?#code/C4TwDgpgBAIhFgNIRAHgFAEgAqAaLiUEAHsBAHYAmAzlANYoD2AZlNlALz1OvboB8nKIRJkqtasABOAS3IBzKAB8o5AK4BbAEYQpWAPxsA2ogC6RUhRpQ5zXVABKULJkMADACQBvRAF83KgAUTqJWtA4QAMaMUpSokrIKuFBq5HTkjADu5ILu3n4A9N5wCMhoDvz+UABcqhAAbroAlM6YmLXkDfYFBTYaYIzU1DJaADbQUoxqZFgdXVJQPX0DQyPjUJPTEOjooJCw8GAAagCGo2oQGDj4mAAKFmLWJUgoqNj8+IJc96HiUJ5eWz2QreIELCKSfwGYyBESWP4AsGOB5hVSaHRSKqGJy1RAtABk3BALDY5l+1iRAGUXIZKSi-p1GgslhoTgwoHTKDIEiNpjJGlBgIwoJkYnQRTJgAALFLkGSMchQRhaABWUWALlcdSZmtqEOA9KehzKqEp-E1Wuep3Ol0pyX15rabTmTMWvRk-UGwzGEymMydLu67s9qx9Gz923aMJ+8OsiPIdnBhto6m0uixyNqtwJRJJ2FMOx6HGLxewAFFKdgS8X0HIyFJmCdItAAIIAIQAwlAvFgW7Ue202-3NR3alpGIxxidyC5fMpu1Ay3qojE4jyklAtDJ5HXBL4ANwuGDL6KxVCpjHJdfyR2YACMACYAMwn1fxaRyeTJceTiDTx0Hugvg7HsrajKMtwnNKtBcM8Jrth25pLFAKEAHr6CB4CtkIVpnBcqAIckADkLZEUhvRoRhuxYVAbY4Yc1r4YRUAkQUbZkegyFQOhmH7F2sEMXhlzMaxbYFB2HFcTx1H7DA9EIIxwmdsRLYFDAkkUdxVGgbAABy6L2AJClCQRyn-KpMBFF4F7pm45EoVpvHQGW8nHCZImqWJZYaQ50k6RWH4KK5immR2yRuJ5BRllZ17+PZlFOVAAD6j5PsF7lmRFBSpXZnGaX5NEpc+lKBYoRluTaoXhapqUxaVcV5b5+hAA)

There is one serious flaw, do you know what it is and how to fix it? (hint: collapsing path)
Comparison between DSSS and FHSS
Tags: lora
Published: 2022-12-13 07:08:52


Since FHSS systems rely on different RF carrier frequencies, error bursts are mainly due to frequency selective fading.
Error Rate: In DSSS, the information bits are distributed over frequency and time planes, thus minimizing the effects of interference and fading. Therefore, DSSS systems are prone to errors, but at a lower level compared to FHSS systems. FHSS produces strong burst errors.
Although both techniques have errors, it can be seen that the error rate is higher in FHSS than in DSSS systems. Whenever any device approaches the blocking frequency as it hops between channels, the bandwidth of the FHSS system drops.
Compared with DSSS, the decoding process of FHSS is easier. Specific algorithms are required in DSSS to establish the connection between sender and receiver  https://www.cdebyte.com/Module-Lora
Network capacity: The transmission rate of DSSS is higher than that of FHSS, DSSS provides a capacity of up to 22 Mbps, while FHSS supports a capacity of up to 3 Mbps.
Reliability: DSSS is more reliable than FHSS systems, which are less reliable in applications. But for mobile applications FHSS is more energy efficient.
Acquisition Time: The time required to convert an analog signal to a digital signal, more in DSSS systems than in FHSS systems.
Cost of use: DSSS is more expensive than FHSS. At lower Mbps (like 2 Mbps), FHSS is less expensive, but generally, radio signals are used at higher Mbps, and DSSS will be cheaper than FHSS.
Application scenarios: In harsh environments, including the presence of large coverage, noise, multipath, and Bluetooth frequency waves, etc., DSSS is ideal for point-to-point applications, while FHSS can be used for point-to-multipoint deployments with excellent performance.
Tips and Tricks Play Geometry Dash Lite
Tags: gameonline, geometrydashlite, blockchain, geometry
Published: 2022-12-14 08:55:44

Geometry Dash Lite is a jumping game in which you must use your own avatar to clear geometric obstacles.

On the home screen [geometry dash lite](https://geometrydashlite.co/), you'll find intriguing characters and block displays. The game begins at the place indicated by an arrow icon on the home screen. After you've chosen your character, it's time to choose your skin color. On a plate, players can select from a number of possibilities. Choose a hue that suits your personality, and then proceed. Some skin colors will be locked at first, but as you progress through the game, you will be able to unlock them. Cool! After then, the actual gaming action begins.

You can leap, fly, and perform any other actions necessary to keep progressing on the following screen. You'll face difficulties, but you can overcome them by using flexible motions and a lightning-fast reflex. Spikes, lofty structures, and hazardous items are in your path. Avoid striking them by rolling over or jumping instead; this will develop you to have excellent jumping abilities. After entering the region, you'll begin to fly, which is both interesting and addictive.
Microservices using flask and docker
Tags: flask, docker, python, webdev
Published: 2022-12-14 08:52:16

---
title: Microservices using flask and docker
published: true
description: This post illustrates a microservices approach using Flask
tags: flask, docker, python, webdev
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jlsppuvq7yhbsyl65oge.png
# Use a ratio of 100:42 for best results.
# published_at: 2022-12-14 08:45 +0000
---
I was looking for examples on how to structure web apps as microservices, I found a very interesting youtube course from Kantan coding that uses kubernetes. I did not want to use kubernetes,I wanted a lightweight architecture using docker for learning purposes only.
here is the repo: https://github.com/moadennagi/microservices
Three simple ways to do Reverse email lookup
Tags: beginners, emails, reverse, lookup
Published: 2022-12-14 08:46:17

What is email lookup?

Email lookup is a tool or technique that allows you to find someone's email address based on their personal data. 

For instance, you could type in someone's first and last name or phone number, and the tool will deliver the person's associated email address. 

Reverse email lookup refers to a service that helps people find out the identity and background of people via their email address. The application would ask you to enter the email address of that person and then show you matching results

Well wouldn't it be extremely cool if you could verify the identity of that "prince in Nigeria" asking you for money? Performing a simple reverse email lookup can offer great benefits besides scam and fraud detection. 

This [blog] (https://nubela.co/blog/3-simple-methods-to-do-reverse-email-lookup/?utm_campaign=writers%20domain&utm_source=social&utm_medium=review&utm_content=3%20reverse%20email%20lookup) by Steven Goh highlights the merits and different kinds of data you can get from a reverse email lookup. {% embed https://nubela.co/blog/3-simple-methods-to-do-reverse-email-lookup/?utm_campaign=writers%20domain&utm_source=social&utm_medium=review&utm_content=3%20reverse%20email%20lookup %}

I would also recommend trying out [Proxycurl] (https://nubela.co/proxycurl/reverse-email-lookup?utm_campaign=writers%20domain&utm_source=website&utm_medium=review&utm_content=3%20reverse%20email%20lookup) for a free trial Reverse Email Lookup API takes a work email address and returns you a Linkedin Profile URL. I had so much fun trying it out !

I hope you enjoy reading this great content. Feel free to share your thoughts in the comment section below.
Listen to the keyboard events with Rust and GTK
Tags: rust, gtk, gui, tutorial
Published: 2022-12-14 08:23:50

I found Rust GTK documentation pretty weird. Maybe I’m wrong. I hope so. But it looks like that.
Ok. Here is the piece of code. It can listen to keyboard events and print keys combinations it terminal: “Key name” and “Modifier” (for example Shift key). And values[1] is our keyboard event

```Rust
window
    .connect("key_press_event", false, |values| {
        let raw_event = &values[1].get::<gdk::Event>().unwrap();
        match raw_event.downcast_ref::<gdk::EventKey>() {
            Some(event) => {
                println!("Key name: {:?}", event.keyval());
                println!("Modifier: {:?}", event.state());
            },
            None => {},
        }

        let result = glib::value::Value::from_type(glib::types::Type::BOOL);
        Some(result)
    });
```

I have to figure out how it works. And then put it into practice, for example add this functionality to my [GTK calculator](https://github.com/antonovmike/calculator_gtk).


Cargo.toml
```Rust
[dependencies]
glib = "0.15.12"
gdk = "0.15.4"
gtk = "0.15.5"
```
main.rs
```Rust
use gtk::prelude::*;
mod gui;

fn main() {
    let application = gtk::Application::new(
        Some("com.github.gtk-rs.gtk_keyboard_events_listener"),
        Default::default(),
    );
    application.connect_activate(gui::build_ui);
    application.run();
}
```
Permanent link to the [gui.rs file](https://github.com/antonovmike/gtk_keyboard_events_listener/blob/650d4d2503758c5979d83743d08197ace8b69797/src/gui.rs)
TypeScript Hate
Tags: typescript, unnecessarydeps, javascript
Published: 2022-12-12 20:55:15

Today the backend dev told me that he was trying to setup typescript for the company for so long and the company resisted him but he was super proud of his achievement of getting typescript into the project and I told him. _Sorry I agree with the company, you're stupid._ I didn't tell him he was stupid ofcourse, but I told him why I thought it was an unnecessary dep.

**I asked him are you doing a lot of number crunching?**

He said no and I told him,
 
**most of the data you're going to receive is in a string format or in json strings
very rarely are you going to get number data
and you can easily coerce the data into whatever you want.**

Maybe he thought type checking would help but with typescript it is easily defeatable and doesn't protect you in all instances. Ofcourse he was a C++ dev from embedded which makes sense in that he was more familiar with types and performing memory management, and unfamilar with how js coerces types. He clearly understands the concepts of falsy and truthy values as I could see his code. Thus this confirms my bias that the only people who like typescript were never really good or experienced js devs in the first place.
What are the main problems of maintaining open-source software?
Tags: sustainable, opensource, ecosystem
Published: 2022-12-14 08:12:00

Maintaining open-source software can present a number of challenges, including:
* Overwhelm: With the growing popularity of open-source software, maintainers can be flooded with an overwhelming number of issues, pull requests, and feature requests from users. This can be difficult to keep up with and can lead to feelings of burnout and frustration.
* Lack of support: Many open-source maintainers work on their projects in their free time, without the support or recognition that they deserve. This can lead to feelings of isolation and can make it difficult for maintainers to sustain their projects over the long term.
* Limited resources: Maintaining an open-source project often requires a significant amount of time and effort. Maintainers may struggle to find the resources they need to keep up with the demands of the community and may need to rely on donations or other forms of funding to support their work.
* Legal and financial complexities: Open-source projects can be subject to a range of legal and financial considerations, such as licensing, trademarks, and taxes. Maintainers may need to navigate these complexities in order to sustain their projects and avoid legal issues.

Overall, the challenges of maintaining open-source software can be significant, and can require a great deal of time, effort, and expertise to overcome. 

Thats why we should support open source maintainers and create a sustainable ecosystem.
5 Benefits of Using a Version Control System
Tags: beginners, programming, git
Published: 2022-12-14 08:11:25


No matter what kind of software project you’re working on, using a version control system is essential. Version control systems provide a range of benefits that help developers keep track of their code and collaborate with other developers on a project. Here are five of the main benefits of using a version control system.

###Easy to Track Changes: 
Version control systems make it easy to track changes made to your code. These systems store each version of your code in a repository, and you can compare different versions of the code and see what has changed. This can be especially helpful for debugging and resolving conflicts between different versions of the code.

###Improved Collaboration:
Version control systems make it easy for multiple developers to collaborate on a project. Each developer can have their own copy of the code, and they can commit their changes to the repository. This makes it easy for other developers to review and accept the changes.

###Easier to Roll Back Changes:
If you make a mistake in your code, version control systems make it easy to roll back to a previous version of the code. This can save you a lot of time and effort, as you won’t have to manually undo any changes you’ve made.

###Increased Reliability:
Version control systems ensure that your code is always backed up and secure. If something happens to your computer, you can easily restore your code from the repository. This makes it much less likely that you’ll lose any of your work.

###Better Organization:
Version control systems help you keep your code organized. You can create branches for different features or bug fixes, and you can easily switch between different branches. This makes it much easier to keep your code organized and maintainable.

Overall, using a version control system can provide a range of benefits for developers. Not only does it make it easier to track changes and collaborate with other developers, but it also increases the reliability and organization of your code. If you’re not already using a version control system, it’s definitely worth considering.

Star our [Github repo](https://bit.ly/3QFgAUf) and join the discussion in our [Discord channel](https://bit.ly/3HQtlYo) to help us improve the BLST website!
Test your API for free now at [BLST](https://www.blstsecurity.com/?promo=blst&domain=https://dev.to/5_Benefits_of_Using_a_Version Control_System)
How to Count Syllables in a Poem
Tags: syllablesonline, countsyllablesonline
Published: 2022-12-14 07:36:07

**What are Syllables**
Syllables are the smallest unit of pronunciation. They incorporate as a minimum one vowel sound. A phrase is usually made from one or greater syllables. For example, the phrase ‘water’ has syllables; water. When a phrase has multiple syllable, one syllable is stated greater strongly than the alternative. The strongly stated [syllable counter ](https://www.ocounters.com/syllable-counter/)is known as the harassed syllable or accented syllable and the alternative is known as unstressed or unaccented syllable.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gi20oa3h35x8e1mnxhk4.jpg)
**How to Count Syllables in a Poem**
The best method to identify the syllables is to identify the vowels in a line since syllables contain at least one vowel. There are several ways to count syllables in a poem. We’ll look at some of these methods in this [article](https://en.wikipedia.org/wiki/Article_(grammar))

**The Clap Method**
Read the first line aloud
Clap when you hear vowels as a separate sound
The number of claps is equal to the number of syllables in the line.
Continue with several lines. ([Poems](https://en.wikipedia.org/wiki/Poetry) often have the same number of syllables in each line

**The Writing Method**
Count the number of vowels in the line.
Add 1 to the number every time the letter y makes a vowel sound
Subtract 1 for each silent letter  
Subtract 1 for each diphthong (2 vowel letters make one sound) or triphthong (3 vowel letters make one sound) in the line. Ex: oo, au, iou
Add 1 if the letter before the letters “le” is a consonant.
The number you now get is the count of syllables.ne)

**The Chin Method**
Place your hand below your chin.
Read the line aloud.
Count how many times your chin touches the hand.
This is the number of syllables in your line.
Is This Your First Time Doing Something? It Is No Big Deal
Published: 2022-12-14 06:57:28

One of the things I noticed that I tend to do is build up a milestone I want to achieve, especially “the first x” and make a big deal about it in my head. Like when I was building Proxies API, I would build this narrative that I couldn’t wait to finish developing. It creates weird anxiety that helps nobody. Then when I finished it, I would make a big deal about “the first customer.”

“If only I can get my first customer…. then it would be xxx”, I would say to myself. Then if it didn’t happen, I would feel desperate for nothing. It is funny, but I wouldn’t make such a big deal about my second customer. Why? There is something weirdly superstitious about the 1st time of anything.

This very act of giving it space in my mind makes it somehow more and more challenging to achieve. Now I have changed my attitude towards the 1st anything.

My first customer happened soon after, and so did the next hundred.

I want to notice milestones in my rearview mirror, never as I reach them, and not anticipate and look for them. I wish to acknowledge signs but never focus on them. I don’t even want to celebrate them too because that tells my brain that the next one is even more difficult and yet significant a deal, and my mind then makes it real. Now when I achieve them, I stand my own as if to say, of course, I realized them.

If you can’t stop making a big deal about the 1st of something, counter it with making a big deal about the 2nd one to mess with your head.

Let’s celebrate the 88th customer rather than the 100th one. The brain will then realize the ridiculousness of its belief and will let go.

The author is the founder of Proxies API, a proxy rotation API service.
Graph Editing Engine X6
Published: 2022-12-14 06:40:23

X6 is an HTML and SVG-Based graph editing engine that provides low-cost customization capabilities and out-of-the-box built-in extensions that allow us to quickly build applications such as DAG、ER、FlowChart、BPMN and so on.

https://medium.com/@newbyvector/graph-editing-engine-x6-b5dd3deb0a0a
AWS Cloud Tutorial
Published: 2022-12-14 06:39:10

This "𝐀𝐖𝐒 𝐂𝐥𝐨𝐮𝐝 𝐓𝐮𝐭𝐨𝐫𝐢𝐚𝐥" video will give you a quick insight into What is AWS Cloud. This AWS tutorial for beginners will help you understand AWS's advantages and its architecture. At the end of this AWS tutorial, you will go through a hands-on demo of AWS. topics covered in this video 
Introduction - AWS Cloud Tutorial
What is AWS?
Advantages of AWS
AWS Architecture 
Domains of AWS
AWS Hands-on 
{% embed 
https://www.youtube.com/watch?v=Kw__7cbVtas %}