This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
builder.Services | |
.AddMvc() | |
.AddJsonOptions(opt => opt.JsonSerializerOptions.AddDateOnlyConverters()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
using System.Text.RegularExpressions; | |
public class DateOnlyConverter : JsonConverter<DateOnly> | |
{ | |
public override DateOnly Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
{ | |
if (reader.TryGetDateTime(out var dt)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void ConfigureConventions(ModelConfigurationBuilder builder) | |
{ | |
builder.Properties<DateOnly>() | |
.HaveConversion<DateOnlyConverter>() | |
.HaveColumnType("date"); | |
builder.Properties<DateOnly?>() | |
.HaveConversion<NullableDateOnlyConverter>() | |
.HaveColumnType("date"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.EntityFrameworkCore.ChangeTracking; | |
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | |
namespace MyProject.Data | |
{ | |
/// <summary> | |
/// Converts <see cref="DateOnly" /> to <see cref="DateTime"/> and vice versa. | |
/// </summary> | |
public class DateOnlyConverter : ValueConverter<DateOnly, DateTime> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unity Player [version: Unity 5.4.4f1_5a3967d8c55d] | |
FalloutShelter.exe caused an Access Violation (0xc0000005) | |
in module FalloutShelter.exe at 0033:40157dd3. | |
Error occurred at 2018-09-01_003156. | |
Z:\home\michael\.steam\steam\steamapps\common\Fallout Shelter\FalloutShelter.exe, run by steamuser. | |
19% memory in use. | |
4096 MB physical memory [4096 MB free]. | |
4096 MB paging file [-2048 MB free]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Laptop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 7 2700U with Radeon Vega Mobile Gfx | |
CPU Family: 0x17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 457.041601] pci_bus 0000:01: Allocating resources | |
[ 457.041650] pcieport 0000:00:01.5: bridge window [io 0x1000-0x0fff] to [bus 01] add_size 1000 | |
[ 457.041654] pcieport 0000:00:01.5: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 01] add_size 200000 add_align 100000 | |
[ 457.041666] pci_bus 0000:02: Allocating resources | |
[ 457.041724] pci_bus 0000:03: Allocating resources | |
[ 457.041741] pcieport 0000:00:01.7: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 03] add_size 200000 add_align 100000 | |
[ 457.041756] pcieport 0000:00:01.5: BAR 15: assigned [mem 0xf0400000-0xf05fffff 64bit pref] | |
[ 457.041762] pcieport 0000:00:01.7: BAR 15: assigned [mem 0xf0600000-0xf07fffff 64bit pref] | |
[ 457.041771] pcieport 0000:00:01.5: BAR 13: assigned [io 0x2000-0x2fff] | |
[ 545.207622] usb 2-3: Device not responding to setup address. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var wc = new WebClient()) | |
{ | |
var user = Console.ReadLine(); | |
var message = Console.ReadLine(); | |
var data = new NameValueCollection{ | |
{"username", user}, | |
{"content", message} | |
}; | |
wc.UploadValues("http://someurl", data); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scanning dependencies of target aes_test | |
make[6]: Leaving directory `/usr/src/mono/mono/btls/build-static' | |
make[6]: Entering directory `/usr/src/mono/mono/btls/build-static' | |
[ 76%] Building CXX object boringssl/crypto/aes/CMakeFiles/aes_test.dir/aes_test.cc.o | |
[ 76%] Linking CXX executable aes_test | |
make[6]: Leaving directory `/usr/src/mono/mono/btls/build-static' | |
[ 76%] Built target aes_test | |
make[6]: Entering directory `/usr/src/mono/mono/btls/build-static' | |
Scanning dependencies of target poly1305_test | |
make[6]: Leaving directory `/usr/src/mono/mono/btls/build-static' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./autogen.sh --prefix=/usr/local | |
make[6]: Leaving directory `/usr/src/mono/mono/btls/build-static' | |
[ 70%] Built target mono-btls-static | |
make[6]: Entering directory `/usr/src/mono/mono/btls/build-static' | |
Scanning dependencies of target crypto | |
make[6]: Leaving directory `/usr/src/mono/mono/btls/build-static' | |
make[6]: Entering directory `/usr/src/mono/mono/btls/build-static' | |
[ 71%] Building C object boringssl/crypto/CMakeFiles/crypto.dir/crypto.c.o | |
[ 71%] Building C object boringssl/crypto/CMakeFiles/crypto.dir/directory_posix.c.o |
NewerOlder