FAQs about SignalR

FAQs about SignalR

Best way to call client methods in a Hub class This is a common way to call a client-side method via SignalR: public class WebHub : Hub { … public async Task SomeMethod(string something) { //Calls CheckItOut method in all Clients and passes string parameter ‘something’ await Clients.All.SendAsync(“CheckItOut”, something); } … } Although, you can see such practice in many…

How to fix vibration of a gamepad in Cyberpunk 2077 on Windows

Issue with gamepad in Cyberpunk 2077 on Windows Playing Cyberpunk 2077 on Windows, you can stumble upon an absence of vibration in gamepad. This topic is useful for you in case the default tips do not work. Fix “gamepad vibration doesn’t work” using DS4Windows DS4Windows is a soft that let’s you to use gamepad as an Xbox 360 controller. Plug…

Advices about How to speed up .Net Applications (from web to desktop)

Common reasons of low performance in .Net Applications Application written on .Net is not CPU executable by its own. The reason is that .Net programm is an assembly on MSIL code. MSIL is a an assembly language (some similar to assembler). Every .Net application consists of MSIL commands. Before app is executed CLR platform translates MSIL codes into native CPU…

How to cheat protection from bots to obtain http response

This article is for educational purposes only. What is anti-bot protection? In the context of web-surfing anti-bot protection is a set of methods that can identify request sent by robot and either block response or change it. These methods can be used on both server- and client-side code. It can prevent website from being parsed and spammed by web-automated systems.…

FAQ about WordPress CMS

How to remove unnecessary parts of a content generated by wordpress WordPress CMS addes useless html parts to site content. Removing it lets you to get rid of html trash and hides what is the real cms your site is running on. Just add the following code to functions.php or build plugin and install it. remove_action( ‘wp_head’, ‘wp_resource_hints’, 2 );…

Customizable audio player for webpages

What issues are disccused here: embedding audio player to an html page customizing audio player using css setup of audio player (with extra capabilities) using javascript Is it impossible to customize audio tag (enable styles for a standart html audio player)? As stated in MDN Web Docs: You can style the default controls with properties that affect the block as…

FAQ about .Net Text to Speech converter

FAQ about .Net Text to Speech converter

.Net has System.Speech.Synthesis namespace that contains class to work with text-to-speech synthesizer software. Usually TTS is already installed on Windows machine and can be used in applications. How to use TTS converter in .Net? TTS converter is placed in System.Speech.Synthesis namespace, but it is not a part of default namespaces. Therefore it should be added to references: In Visual Studio…

Imaging on C#

Imaging on C#

There are many possibilities to process graphical information in .Net. Microsoft has Graphics Device Interface for imaging. Its functionality is provided by System.Drawing.Common namespace in .Net Core and Framework. By means of C# imaging it is possible: to create images to edit images to create 2D animations to create math graphics to draw formatted text Intro of imaging on C#…