Notepad++ starten:
snap run notepad-plus-plus
browser starten:
nohup chromium-browser &
signal starten
snap run signal-desktop
Notepad++ starten:
snap run notepad-plus-plus
browser starten:
nohup chromium-browser &
signal starten
snap run signal-desktop
Bei den neuen Servern änderte sich bei Updates die MPU-Rate, was zu Datenbanklese/schreibproblemen führte. Thomas änderte die MPU-Rate dann auf einen Wert, wo das wieder ging.
https://www.php-imap.com/api/address
/** @var \Webklex\PHPIMAP\Address $address */
Hierzu kann man (auch) mit dem neuen log4net noch die alte Configuration verweden.
https://stackoverflow.com/questions/680044/log4net-argument-to-logmanager-getlogger
In den Fall von BigbrothersService:
private log4net.ILog log4logger = log4net.LogManager.GetLogger(typeof(BigbrothersSevice));
You could use this approach:
public class DateFormatConverter : IsoDateTimeConverter
{
public DateFormatConverter(string format)
{
DateTimeFormat = format;
}
}
And use it this way:
class ReturnObjectA
{
[JsonConverter(typeof(DateFormatConverter), "yyyy-MM-dd")]
public DateTime ReturnDate { get;set;}
}
The DateTimeFormat string uses the .NET format string syntax described here: https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings
gurndsätzlich kann man die Options in Progam.cs angeben mit:
builder.Services.AddControllersWithViews()
.AddNewtonsoftJson(options => {
options.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
options.SerializerSettings.DateFormatString = "yyyy-MM-dd";
options.SerializerSettings.NullValueHandling = NullValueHandling.Include;
}
);
Dann in der IActionResult – Klasse des Controllers mit:
IActionResult() meineMethode(){
irgendeineKlasse myresult = Daten
.
.
.
var settings = new JsonSerializerSettings
{
DateFormatString = "yyyy-MM-dd HH:mm:ss"
};
var json = JsonConvert.SerializeObject(myresult, settings);
return Ok(json);
}
Log.Debug oder Info oder Log.Error (System.Text.Json.JsonSerializer.Serialize(classVariable));
[JsonProperty("andererPropertyName")]
[JsonIgnore]
[Format("dd.MM.yyyy")] klappt nur bei Jsonconvert.serializeObject... bzw. CSVImport/Export sonst in den SerilizerSettings.DateFormatString einstellen.
[Index(x)] Stelle des Attributes in der Klasse
In den Programmoptionen einstellen:
builder.Services.AddControllersWithViews()
.AddNewtonsoftJson(options => {
options.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
options.SerializerSettings.DateFormatString = "yyyy-MM-dd";
}
);