Coding
LINQ Project from single item?
Is there a way to do something like this: db.People.Single(x => x.Id = 123).Select(x => new { x.FirstName, x.LastName }); (.Select is an extension method to IEnumerable) Or do I have to write it as: Read more…
Is there a way to do something like this: db.People.Single(x => x.Id = 123).Select(x => new { x.FirstName, x.LastName }); (.Select is an extension method to IEnumerable) Or do I have to write it as: Read more…
Based on advice from past threads on this sub, I started learning PHP from the Laracasts PHP track. I’ve so far finished the first 15 videos, was just about to start Routing before I took Read more…
Hello,I’m looking for the best way to do approach an issue I’ve run into. I’m creating a flat file with a fixed width for each column of 50 characters. Strings from my datatable that are Read more…
Hey there, I’m new here, recently joined this community.I have one question. Are there any faster methods to send HTTP POST requests? I’ve been using timer, with like 200ms interval, but application gets laggy and Read more…
I am currently trying to write a piece of code that will increment letters. I have written the below function and this works perfectly fine. (ignore the test function name and any missing outer required Read more…
So I decided to go back to basics and do some small code challenges/projects to find out where my knowledge gaps are. I started with Game of Life, but there’s something off about my code Read more…
How does this compare to symfony var dump server (beyondcode/laravel-dump-server)? That thing sends debug/dd messages to your terminal instead of a separate app. The big advantage of using a separate window, is that things are Read more…
Is it easy to get ASP.NET running on a linux server? If you’re referring to ASP.NET Core or .NET 5, then yes. Otherwise, no since ASP.NET is built on .NET Framework which is Windows specific. Read more…
I’m getting Cannot Access a closed file on some files when I try to upload them. I’m creating a small web app, when a user creates an account on the website, they are required to Read more…
Even by the usual PHP reference problems, this one is funky! The real lesson here is that whenever you use a reference with foreach, always unset the reference variable afterwards, there’s too much potential pain Read more…