Dependency injection with .NET Core and abstract (base) class

I have 1 abstract class that is used by 2 other classes inheriting it: public abstract class FiltererBase { ColorsOrderer colorsOrderer; public FiltererBase(ColorsOrderer colorsOrderer) { this.colorsOrderer = colorsOrderer; } protected string OrderColors(string colors) { return string.Join(“”, colors.ToCharArray().OrderBy(i => colorsOrderer.Order[i])); } } public class Filterer1 : FiltererBase { public Filterer1(ColorsOrderer colorsOrderer) : base(colorsOrderer) { } }…

Details

Cannot connect to h2o in R under Ubuntu

base) [email protected]:~$ java –version java 13.0.1 2019-10-15 Java(TM) SE Runtime Environment (build 13.0.1+9) Java HotSpot(TM) 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing) (base) [email protected]:~$ find . -name h2o.jar ./R/x86_64-pc-linux-gnu-library/3.4/h2o/java/h2o.jar then from R > h2o.init() H2O is not running yet, starting it now… Error in .h2o.checkJava() : Cannot find Java. Please install the latest JRE…

Details

Error on joining voice channel in handshake with discord.py version 0.16.12

I get the following error when trying to use vc = await bot.join_voice_channel(channel): File “bot.py”, line 31, in on_ready vc = await bot.join_voice_channel(channel) File “C:\Users\scott\AppData\Local\Programs\Python\Python36\lib\site-packages\discord\client.py”, line 3211, in join_voice_channel yield from voice.connect() File “C:\Users\scott\AppData\Local\Programs\Python\Python36\lib\site-packages\discord\voice_client.py”, line 258, in connect self.ws = yield from DiscordVoiceWebSocket.from_client(self) File “C:\Users\scott\AppData\Local\Programs\Python\Python36\lib\site-packages\discord\gateway.py”, line 568, in from_client timeout=60, loop=client.loop) File “C:\Users\scott\AppData\Local\Programs\Python\Python36\lib\asyncio\tasks.py”, line 358,…

Details