Php versions – How to get System.Text of C# in PHP?
Below is the code of both C# and PHP, I need some help regarding it. I am trying to generate the authenticationKey which is in C# but want the convert in PHP. All is done but I don't know how…
Below is the code of both C# and PHP, I need some help regarding it. I am trying to generate the authenticationKey which is in C# but want the convert in PHP. All is done but I don't know how…
I have .NET Core 3.1 executable, compiled as framework dependent / portable. I'm running it on a CentOS server, with the .NET Core Runtime installed. The application works completely fine when executed in the terminal, but when I execute from…
Im trying to insert emoji to my mysql. but it shows up as 😋 -> "??". This is what I have done up until now. My ASPX-page <meta charset="utf-8"> My database table is set to: utf8mb4_unicode_ci My database column is…
I would like to set property for a X minutes. After that period it should return null or expired. Is there any simple mechanism in C#? Like this: private static TimeCache<LoginData> _session; private void Login() { ... _session.Set(ws.Login()); } private…
I've created a Telegram Bot using C# and I want to see who is using my bot when sending message. I can get when people send a message to my bot in private chat but in the Groups, I can't…
I have trouble with detecting client disconnect from host. Currently my code looks like this: Task.Run(() => { // Create server Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) { ReceiveTimeout = -1, }; server.Bind(new IPEndPoint(IPAddress.Any, port)); server.Listen(-1); // Start listening…
In .NET Core 2.2, in my Startup.cs, I had the following: public void ConfigureServices(IServiceCollection services) { services.AddDistributedRedisCache(...); } But now, in .NET Core 3.0, the AddDistributedRedisCache method can't be found. In docs, the "Applies to" section shows support only up…
For SEO, I delete Turkish characters and spaces. But I can't format the LINQ parameter, it gives the error. The LINQ expression 'DbSet .Where(p => p.ProductNameTR .trCharToEnChar() == __productName_0)' could not be translated. Either rewrite the query in a form…
I am using the Facebook Graph API which is returning a a json object that contains a datetime in a string in the following format: "created_time": "2013-01-25T00:11:02+0000" The deserialized object contains this datetime: "0001-01-01 00:00:00", which I suppose is the…
I've just tried switching over to Linux for the first time in my life and I am struggling a bit with my C# applications there. I am making an app that is scraping a website every 60 seconds, saves the…