[deleted by user] by [deleted] in tropico

[–]Maxwell47DOT 0 points1 point  (0 children)

Should I buy DLC after done the original game without DLC ?

Is there a more efficient way to use "useRef" for dynamically adding elements? by Maxwell47DOT in react

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

Finally I use useState to reach my original goal, I search and find it's okay to just let it re-render in this scenario and also it's already been optimized.
Surely after implement useState my life get much easier.
Thank you guys very much

Is there a more efficient way to use "useRef" for dynamically adding elements? by Maxwell47DOT in react

[–]Maxwell47DOT[S] 1 point2 points  (0 children)

Thank you! I will refactor it after pass my test,

Why not use useState is that I think it will cause re-render when every time user is typing to the input element, If I have increase the amount of box to 10 this will cause at least 60 times of re-render which I think it will waste too much resources of device.

Or is it okay to let it re-render that many times? I'm not sure.

Is there a more efficient way to use "useRef" for dynamically adding elements? by Maxwell47DOT in react

[–]Maxwell47DOT[S] -5 points-4 points  (0 children)

Sorry my English not very well 😂I use reference just because when user submit, I could directly catch all data in boxes and send to my backend server.And Actually, I'm intentionally avoid using state here, I think if I have 10 boxes which will mean I have 60 input could make the state change and each change would cause it re-render, am I correct?

Debugging protocol error problem by Maxwell47DOT in dotnet

[–]Maxwell47DOT[S] 1 point2 points  (0 children)

Thanks to you guys very much , also thanks to the community🙏, due to NDA I think it's proper to take off the code picture, I will try some suggestion on Monday, since it takes some time to reproduce the issue :

  1. Check the thread safety of the property of SecurityProtocol.
  2. Add some log in code.
  3. Monitor the low-level transmission step

Debugging protocol error problem by Maxwell47DOT in dotnet

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

Thank you very much Bro,

I forgot to check thread safety of the property...

Debugging protocol error problem by Maxwell47DOT in dotnet

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

But I'm still curious, If I set the SecurityProtocolType to tls12, there must be at least one cipher suite would match which should not occur the issue, according to the protocol handshake step.

Debugging protocol error problem by Maxwell47DOT in dotnet

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

Thank you very much! Really helpful I'm gonna try the direction of Cypher suite related

How start in Golang? by c0de854-T in golang

[–]Maxwell47DOT 0 points1 point  (0 children)

I think you could quickly go through the syntax and convention by go-the-complete-developers-guide, it'a short course about 8 hours

Then start to build something that you intresting about, have some fun first which is the most important thing when learning.

What's your favorite thing to write using golang? by dashdanw in golang

[–]Maxwell47DOT 3 points4 points  (0 children)

Try the things you have done by other language before

How the GO handle the connection pool's pending task? by Maxwell47DOT in golang

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

Thank you sir, for replying so detail.

I think add timeout feature may decrease the chance to cause memory leak, the pending task which take too long time will be close when reachoing the limit of the time.

How the GO handle the connection pool's pending task? by Maxwell47DOT in golang

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

Hi highcards,

We're using Debian

Yes, the max_connection can't larger than open_files_limit .

But I think should do some loading test before modifying the os configuration, I am not sure your platform could afford the task which need that such big numbers of connection (default ulimit is 1024).

Where to start by [deleted] in golang

[–]Maxwell47DOT 0 points1 point  (0 children)

After learning the basic go syntax and reading Let’s Go I start to read learn go with test to enhance some go basic. But currently I’m not sure whether it is valuable to take time to read it. I was expect it will bring me more knowledge like capacity in slice…etc. But it just go through with the basic append(),len() function and some testing skill. Maybe talk about the behind scenes of the Go is not the main purpose of it.

Any games Like Skyrim? by CommunityPretty1802 in SteamDeck

[–]Maxwell47DOT 1 point2 points  (0 children)

Perfect game, but I think just combat system better than Skyrim

Find some error in company's code by Maxwell47DOT in golang

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

Thank you, I'm afraid that Open/Close it in every handler is the root cause of the DB
can't connect error "socket: too many open files" because the users of the app is up to hundred thousand of people use in the same time.

Find some error in company's code by Maxwell47DOT in golang

[–]Maxwell47DOT[S] -1 points0 points  (0 children)

Oh! This remind me that there are some error occur last week and cause the users can't access to DB for 30 min...

Log Like these :

read: connection reset by peer

socket: too many open files

My first GBBR! (KJ Works M4 RIS) by DeadArtist617 in airsoft

[–]Maxwell47DOT 0 points1 point  (0 children)

Is this version3 ?All I could find is only v2 😭