The ChatGPT get’s a lot of buzz right now. ChatGPT is one of OpenAI projects. And before we go on, yes Elon Musk together with Sam Altman and other was the founders of OpenAI. The ChatGPT is built ontop of GPT-3 which is part of the the large language models. They are using machine learning
How to convert Java class to map
To convert class to map in Java you can use the ObjectMapper by the Jackson library. First declare the class model. And then do the convertion.
How to split on newline in C#
How to split a string with newline in C#. Split is only accepting char but you can use the overload function. There are two options with string array You can also do the extended version of using the different types of line breaks.
How to fix java Unrecognized field when using objectmapper
When using the objectmapper on an object you can run into Unrecognized field “”. This is due to the field not being found. You can use an easy annotation to ignore every property you haven’t defined in your json string. This is very useful if you are only looking for a couple of properties in
How to deserialize Java mapper readValue on list
Following up on https://spacetech.dk/how-to-convert-json-string-to-java-model-object.html. Now we want to deserialize a java object on a list with the ObjectMapper readvalue. To accomplish this you can use the TypeReference like this
How To Convert Json String To Java Model Object
If you already have your java object laid out you should use the ObjectMapper. You could use a HashMap<> and just use readValue() on Json String directly from mapper or even put it in a JsonNode. But you can actually create the Java object conveniently by parsing it directly by using the object.class. ObjectMapper: https://fasterxml.github.io/jackson-databind/javadoc/2.7/com/fasterxml/jackson/databind/ObjectMapper.html
How to get window services on a remote computer
You can get a list of or a specific window service on a remote computer by using Powershell. Either use the Powershell or the advance Windows Powershell ISE which is more like an IDE with an editable notepad and not only an terminal. Replace {remoteComputerName} with your remote computer name Microsoft Source: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-wmiobject?view=powershell-5.1#example-2-gets-services-on-a-remote-computer
How to add seller entries to ads.txt
How to add extra seller entries to your ads.txt file. We have detected that you have an existing ads.txt file. In order for this to start improving your ad revenue, ads.txt seller entries need to be added to your ads.txt file. We recommend using Ads.txt Manager and authorizing this as a seller to manage your
How to change name server on DK-Hostmaster
To change your name server on a dk domain go to DK Hostmaster site https://selvbetjening.dk-hostmaster.dk/. Log in and select your domain from the list. On the right hand side you have administrator configuration. Select change name server. “Skift navneservere”. Input your new nameserver to what to move your domain to. Now write your new nameserver
How to remove Microsoft Compatibility Telemetry
The Microsoft Compatibility Telemetry is a service in Windows 10 and Windows 11. It periodically sends data to Microsoft which contains technical data about how the Windows devices and their related software are working. That’s one thing, but it can take up high disk usage and CPU as seen in the task manager. Disable Microsoft Compatibility