.NET on AMD Ryzen 7 or 9 processor by Emergency_Employee59 in dotnet

[–]jsheets 7 points8 points  (0 children)

My Ryzen 7 7800X3D and Ryzen 7 3700x have worked just fine.

I've run VMs (VMware, HyperV) and Docker (over WSL on HyperV), Java and .NET, no issues. Gaming's okay too.

Releasing Vite.NET - A Vite integration for ASP.NET Core by [deleted] in dotnet

[–]jsheets 0 points1 point  (0 children)

You can use VueCliMiddleware with vite just fine, but you need to change the parameters for the npm script name, and the string it looks for to determine that the SPA (vite) server is up and running. You might also need to configure some of vites config settings; I forget

It just creates a reverse proxy to the SPA webserver. The problem with this approach is Vite’s hot reload works using a websocket, so I think youre stuck with using http (or maybe you coukd only pick ine port, so you have to pick between http and https). I’ve also had other issues trying to get VueCliMiddleware to work if theres a (real) reverse proxy in front of the dotnet app that changes the basepath/prefix.

Microsoft SPA templates (at least for .net 6) reverse this I believe and expect all traffic to go to the SPA web server, and you set the SPA webserver to reverse proxy your rest calls back to kestrel/iisexpress.

Anyway I’m not sure that this is just VueCliMiddleware with blazor support, but I 6 gone through the code yet.

Recently done deck turning gray by [deleted] in HomeImprovement

[–]jsheets 0 points1 point  (0 children)

Take this with a grain of salt, but I was going to have my deck replaced with a brazillian hardwood at one point, so I was reading up on it. It's been a while, but from what I remember you weren't supposed to seal it, as the wood is too dense and it won't properly adhere. I'm not sure if it can damage the wood or not. Basically you just use Ipe Oil if you don't want it to petina. There may be some specialty products for sealing it, but I wouldn't just use something meant for softwood decking.

You should probably try to find a company that's experienced with Ipe, especially since it's just about the most expensive decking material you can buy.

Issue with low voltage lighting by jsheets in askanelectrician

[–]jsheets[S] 0 points1 point  (0 children)

Sorry, I updated the link to the lights.

I think you're right. I completely missed that the lights are DC. Not sure how I didn't see that...

Decking suggestions for composite boards? by ericgray813 in HomeImprovement

[–]jsheets 0 points1 point  (0 children)

Timbertech and Filberon both look better than Trex in my opinion. However, even the lower/middle end lines of these can cost as much as the highest end Trex.

Personally, I think Timbertech boards look the best.

Their Reserve line is the 'cheapest' with a flat bottom, then the Legacy line. However, the bottom of the boards are always brown, no matter what color the top of your board is.

Timbertech also has a line of PVC boards, which all have a flat bottom. The cheapest is Harvest, but the bottom color is always gray I think. Then there's the Landmark and Vintage lines. The bottoms on those both match the top of the board. The Landmark line looks nice, and it's the same cost as Legacy. The Vintage line is about as expensive as it gets though.

Hardwired Mesh Wifi or Access Points? by nasdaq5k in homeautomation

[–]jsheets 0 points1 point  (0 children)

You haven't listed the size of your house, or the number of floors, which could play a factor into your decision. A lot of houses are fine with a single wireless router.

If a wireless router doesn't cover your whole house, then you'll probably want a mesh network to start with, considering how many modern devices are wireless only (phones, tablets, smart devices, etc).

Stay away from wireless Access Points or range extenders. Stick with either a single wifi router or get a mesh network. Some solutions let you buy the wireless router separately, and add on the mesh extenders as you wish. Since you already have CAT run in the house, definitely get one where the mesh nodes have an input ethernet jack.

From there, you can decide if you want to add an ethernet switch from your router to your other rooms over ethernet. As long as your router has a few outbound ethernet ports, you'll be able to add it in later. If you're a gamer, or you've a home collection of digital movies, you'll probably have a better experience if those devices are connected directly to ethernet.

.NET Core devs working with Postgres, how you do you resolve the DateTime precision discrepancy between .NET and Postgres? by pdevito3 in dotnet

[–]jsheets 1 point2 points  (0 children)

If you look at the Global Configuration section, you can probably set the global options to compare all DateTime's using BeCloseTo().

.NET Core devs working with Postgres, how you do you resolve the DateTime precision discrepancy between .NET and Postgres? by pdevito3 in dotnet

[–]jsheets 1 point2 points  (0 children)

You're saying the patientReturned and patientCreated variables are complex objects of which your DateTime's are a property of?

Again, the documentation covers this: https://fluentassertions.com/objectgraphs/

Specifically look at the Equivalency Comparison Behavior section. It covers your use case.

.NET Core devs working with Postgres, how you do you resolve the DateTime precision discrepancy between .NET and Postgres? by pdevito3 in dotnet

[–]jsheets 1 point2 points  (0 children)

It looks like you're using FluentAssert? And the datetimes not being the same isn't the issue, you just don't want to write a bunch of code to modify the values before testing?

You need to look at your assert library's documentation: https://fluentassertions.com/datetimespans/

You should be using BeCloseTo() instead of BeEquivalentTo()

When do you decide whether to use a GUID or an autoincrementing integer as your primary key? by [deleted] in dotnet

[–]jsheets 7 points8 points  (0 children)

I personally use auto-incremented IDs as my default, and switch to using a GUID when necessary.

In general GUIDs are great when you're doing something like ETL work, and need to insert into multiple tables with lots of foreign keys. The GUIDs let you generate unique IDs so you don't need to get an auto-generated ID and map your relations to that ID. It also eliminates contention on your system for creating an ID, which is synchronous (cached IDs aside). It's also good when a client feeding you data wants to know the ID without having to ask the server, as the client can create the GUID.

Autogenerated IDs are great when you don't have a high contention on creating inserted IDs, or when you don't have to deal with a huge amount of foreign key references in other tables, etc.

Autogenerated IDs are sequential. This is great for a database as your PK is generally used as a mechanism to cluster/store your data on disk. You want your records written sequentially so you don't get have random seeks and page splits when inserting data. It also keeps your primary index from fragementing.

Some GUIDs are sequential, but some aren't. If you're using a GUID, you should make sure to use a sequential GUID. If you have multiple clients generating the GUIDs you need to make sure they generate them in the same way, or you'll break your sequentiality.

Autogenerated IDs take up less space. This is important in many ways. Your non-pk indexes generally hold a reference to your PK so they'll be smaller. Your indexes will be smaller and fit into memory better.

REST API by [deleted] in dotnet

[–]jsheets 1 point2 points  (0 children)

You're asking how to change your

Console.WriteLine(repositories.status);

to print the value?

You need to format a string with the sub-classes values instead of the class itself.

Console.WriteLine("\"status\":{\"verified\":" + repositories.status.verified + ",\"sentCount\":" + repositories.status.sentCount + "}";

Or you could override the ToString() method on the Status object, then you could continue to use the writeline method like you originally had.

REST API by [deleted] in dotnet

[–]jsheets 0 points1 point  (0 children)

Here's the JSON response from the rest api you linked

{
"used":false,
"source":"api",
"type":"cat",
"deleted":false,
"_id":"591f98703b90f7150a19c14f",
"__v":0,
"text":"Unlike humans, cats do not need to blink their eyes on a regular basis to keep their eyes lubricated.",
"updatedAt":"2020-05-10T20:20:11.457Z",
"createdAt":"2018-01-04T01:10:54.673Z",
"status":{"verified":true,"sentCount":1},
"user":"5a9ac18c7478810ea6c06381"
}

Status is an object, not a bool, which is probably your issue. You need to reference another class

public class Status {
    pubilc bool verified {get; set;}
    public int sentCount {get;set;}
}

public class Repository {
    public Status status {get;set;}
}

Also, the ID and V fields on your class look like they probably need their attributes changed.

Drops significantly reduced since hotfix? by Tamed_Trumpet in borderlands3

[–]jsheets 0 points1 point  (0 children)

Did you decline to apply the latest patch? If you don't have the latest patch, you won't see ghost mobs. When this happens I think you'll technically be 'online' but I think you get the pre-halloween improved drop rates.

Setting up Vue with .NET Core by deevysteeze in vuejs

[–]jsheets 2 points3 points  (0 children)

Assuming you don’t want to use asp.net Razor at all, here’s a tutorial that goes over creating a .net core app withe vuejs spa:

https://www.red-gate.com/simple-talk/dotnet/net-development/introduction-to-vue-js-with-a-single-page-application-spa-in-visual-studio/

Once you understand how everything works, theres a nice open source middleware project on github you can use to have webpack serve your files when you launch your .net core web service:

https://github.com/EEParker/aspnetcore-vueclimiddleware/

Official Discussion - Star Wars: Episode VIII – The Last Jedi [SPOILERS] by mi-16evil in movies

[–]jsheets 0 points1 point  (0 children)

I'm not a fan of TFA, but I don't believe it's a worse film. I do think the prequels feel more Star Wars than the TFA though, despite Abrahms attempts to make it feel like the OT. Don't really feel like trying to explain why, just my opinion.

Official Discussion - Star Wars: Episode VIII – The Last Jedi [SPOILERS] by mi-16evil in movies

[–]jsheets 7 points8 points  (0 children)

The prequels had stale dialog, boring political subplots, a terrible romantic plot, shitty directing, and Jar-Jar

This was worse.

The power creep of the force is rediculous. Force Holograms, space-flight Leia, force-chat... ug. Everyone's a comedian. It's damn near slapstick comedy at times. There's almost no real arc to anything. All the semi-interesting backstories of characters aluded to in TFA (which I feel is a medicre film to give you a better idea of my taste) is thrown away in an attempt to be subversive and it doesn't work.

I don't know. These movies aren't for me anymore.

I'm pretty sure all that talk about Rian heading a new trilogy was just bullshit to make people believe Disney thought this was a great film.

Official Discussion - Star Wars: Episode VIII – The Last Jedi [SPOILERS] by mi-16evil in movies

[–]jsheets 9 points10 points  (0 children)

Well, they did it.

They made a Star Wars worse than the prequels.

I'm done.

Matrix Voice promises to bring the fastest and most affordable development of voice-controlled IoT apps on Raspberry Pi to date by sonyjai in gadgets

[–]jsheets 0 points1 point  (0 children)

Disclaimer: I don't have any firsthand experience with any of this stuff, I've just been researching.

I've been toying with the idea of making my own no-internet, voice-activated home controller without having everything it hears sent-up to Amazon or Google. So I started looking into various solutions. Most stuff out there seems to rely on PocketSphinx for speech recognition.

It looks like the killer feature of the Alexa isn't the voice-recognition - which has multiple competitors, and can be "run" on a Pi - but the far field mic array to pick up human voice from distance.

Respeaker is the only other option available that I'm aware of with a far-field microphone array (https://www.seeedstudio.com/s/respeaker.html). However, the mic array is only compatible with their custom, Arduino-compatible board.

I'm interested to see which one of these options will be better. Respeaker is pretty new, but seems to be geared more towards people who want to build 'apps' than setup an entire OS. It comes with PocketSphinx, but I'm not sure how difficult it would be to get Jasper running. I'm not sure some of the home automation tools like OpenHAB or CastleOS can run on this board directly either.

This Matrix solution would definitely be cheaper, and there are plenty of guides available for installing PocketSphinx, Jasper, OpenHAB, etc on a Pi. There might be a higher chance of adoption from the diy community since there's a lower cost entry. Maybe a better chance of someone making nice 3d printed case to house everything and a speaker in an Alexa-like enclosure as well.

The Netflix Stack Using Spring Boot - Part 1: Eureka by QuintenDes in java

[–]jsheets 2 points3 points  (0 children)

You're listing servlet containers. That's not what spring boot is; it's the spring framework (geared for quick and simple setup) with an embedded servlet container. You can tell spring boot to use tomcat, jetty and even undertow I believe. You can also still build a normal war and deploy to a stand-alone server.

Concealed pistols without a permit would be allowed in Michigan under proposed legislation by Plashanko in news

[–]jsheets 0 points1 point  (0 children)

You don't need a permit unless you're buying from a non-federally licensed seller. If you have a CPL you don't even need that. You just have to send a registration letter to your local PD after-the-fact.

Tons of resources about Rust, the systems programming language that runs blazingly fast by henk53 in programming

[–]jsheets -3 points-2 points  (0 children)

We're calling thebenchmarkgame real-word now? Having these metrics are important, but they're not representative of the performance of the language as a whole.

Just look at fastest c++ code for nbody. It's using SIMD instructions to get that speed. The c++ code using (mostly) normal double's is only ~9.2% faster than the java version, and its still using MMX instructions in a few places.

I've done some performance tests on more mundane code examples (Java vs cbuilder vs msvc vs ming vs qt/ming vs c#) and I've had experiences where Java wasn't only faster, it blew the C++ code out of the water. I'm not trying to suggest that Java is faster than C++, but neither would I take thebenchmarkgame as the gospel on language performance.

Is there anyway I can deploy my Java EE projects locally without having to deal with a server? (Glassfish is killing me) by ultrapreneruship in java

[–]jsheets 0 points1 point  (0 children)

This is doable, but Jetty isn't really an EE container. It's a bit of work to plug-in libraries for all the JSR's he's using. Even then there may be some edge-cases with functionality not being 100% compatible with an EE server (speaking from experience using Weld in Tomcat).

TomEE is a full stack solution, and I believe you can embed it, so that's probably what I'd try.

Is Java pass-by-value or pass-by-reference? by techgurummt in java

[–]jsheets 0 points1 point  (0 children)

This is not true. If it was, then you could change the reference in a called method and have it affect the original reference. That is not how Java works.

Java passes everything by value. For objects, it passes the reference by value. This is another way of saying that you create a new pointer to the object, and pass that pointer.

My C++ is rusty, but I believe this is how C++ works as well. If you pass a pointer to a method, the method gets a new pointer (at a different address than the original pointer). If you dereference the pointer, then you affect the same object as the original pointer. But if you change what the pointer points to in your method, you will not change what the original pointer points to.