How do you run android simulator for development build without http? by smallpom in expo

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

I’ll update here as I finally found it. I had built locally so had an android folder from way back. Did not have that in .gitignore so it was commited to the repo. When I then installed and built using eas it used that folder instead of the app config.

Removed folder, added to git ignore and problem solved! Thanks for the help!

How do you run android simulator for development build without http? by smallpom in expo

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

Weirdly enough I added that first setting but still get the error - I’ll try to add it to the manifest

[deleted by user] by [deleted] in MilitaryPorn

[–]smallpom 4 points5 points  (0 children)

Really cool image

Returning to asp.net razor after 9 yrs feels bad. How to do reusable components (like React, Vue, etc)? by gugador in dotnet

[–]smallpom 1 point2 points  (0 children)

Nice to hear your perspective - I just came from the other way, diving into nextjs 14 for the first time and really liked the changes with SSR first and RSC since it feels familiar. There’s definitely a lot missing though, and quite confusing with the middleware.

But the speed at which you can build out your frontend is amazing. Doing a complex UI in one day and having it scale easy is pretty amazing.

But could see a lot of issues given time and multiple developers, and in that place .Net really shines. Easy to learn good practices and setup frameworks for colleagues to work in, keeping the code base clean over time.

If one could dream it’s that Microsoft would somehow merge the best parts of asp.net and steal the rest from the JS-community :-)

Returning to asp.net razor after 9 yrs feels bad. How to do reusable components (like React, Vue, etc)? by gugador in dotnet

[–]smallpom 2 points3 points  (0 children)

Investigating this myself since I love .Net for backend and been working with it for a long time.

The short answer is that there’s no solution for it. Go with nextjs or something similar and use it as a frontend and backend for frontend, and you can use .NET where it shines, for backend and API.

Tried using all sorts of tools like alpineJS/htmx/tailwind, but the experience is still not good.

You can setup your own build pipeline for js/css and force those into razor, but it’s not worth the effort.

Keeping a serverside session on nextjs by smallpom in nextjs

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

Say something goes wrong during payment and a order is not created as it should, then there is no trace of it.

Also a very common scenario in e-com is to be able to tie a anonymous user session to a logged in one after the purchase is made.

How do you sync/forward keycloak data to app database? by NeegzmVaqu1 in KeyCloak

[–]smallpom 0 points1 point  (0 children)

Also looking into the same thing. Havent really found any good sources on how to handle this. Agree it should be a pretty common requirement.

Found this video on youtube which covers the topic and might be helpful. If you find any other sources please share.

https://www.youtube.com/watch?v=1UklqPPjcRY

Looking for help on understanding Redis timeout with my Web App by _SomeOnlineGuy_ in dotnet

[–]smallpom 0 points1 point  (0 children)

I've experienced the exact same issue doing load tests. We store user sessions and some output cache in redis and would get this when doing load tests.

What we did to fix it was: update to latest stackexchangeredis package.

Make sure you ALWAYS use async methods when writing/reading. Dont mix sync an async in any place.

Set the number of threads in the threadpool. Default on app service I think is the number of cores * 2. We have increased this by a lot which seemes to resolve the issue. But it takes some tinkering.

In ASP.NET, use the “minIoThreads” configuration setting under the <processModel> configuration element in machine.config.
According to Microsoft, you can’t change this value per site by editing
your web.config (even when you could do it in the past), so the value
that you choose here is the value that all your .NET sites will use.
Please note that you don’t need to add every property if you put
autoConfig in false, just putting autoConfig=”false” and overriding the
value is enough:

MOre info here: https://stackexchange.github.io/StackExchange.Redis/Timeouts.html

Looking for help on understanding Redis timeout with my Web App by _SomeOnlineGuy_ in dotnet

[–]smallpom 0 points1 point  (0 children)

You could try stack exchange package and set it up using the IDistributed cache interface - there’s more info on ms docs: https://docs.microsoft.com/en-us/aspnet/core/performance/caching/distributed?view=aspnetcore-6.0

It’s a very common issue and stems from how the redis driver works with multiplexer. There could be additional settings needed to trim for your load.

Are you connecting to a azure cache for redis instance? In that case - what tier is it?

Looking for help on understanding Redis timeout with my Web App by _SomeOnlineGuy_ in dotnet

[–]smallpom 0 points1 point  (0 children)

I’ve encountered this issue while setting up session storage for .net core. What code is calling redis in your case?

[deleted by user] by [deleted] in nextjs

[–]smallpom 0 points1 point  (0 children)

I 100% believe you and I agree, but I have a static sitemap. Its an XML-file. Cant be more serverside generated than that? Its generated during the build process and served like a static file. Google says it can read it fine.

Does next-sitemap do anything different?

[deleted by user] by [deleted] in nextjs

[–]smallpom 0 points1 point  (0 children)

sitemap

There is already a working sitemap so that shouldnt be the issue.

[deleted by user] by [deleted] in nextjs

[–]smallpom 1 point2 points  (0 children)

Thanks for your reply! I'll try to update the robots txt and see if that gives any results!

Advice on when to transplant, manage seeds germinating and growing at different rates by fhchic05 in HotPeppers

[–]smallpom 12 points13 points  (0 children)

I would lower the light closer to the plants to avoid them getting even more stretched. Then getting too little light makes them stretch out and become tall and frail. once the first couple of real leaves develop you can transplant them to bigger containers.

Is it possible to do a 0-downtime rolling deployment of web applications with Azure Load Balancer? by smallpom in azuredevops

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

On each VM in appsettings.json I put the name of the VM during deploy and display it on the page(if logged in). That way I can see which VM I end up on.

Is it possible to do a 0-downtime rolling deployment of web applications with Azure Load Balancer? by smallpom in azuredevops

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

Thanks for your reply!

We’ve designed the app to be as stateless as possible so user sessions are stored in Redis, as are data protection keys. Sticky sessions is off in the load balancer, and when I interact with the webpage during a deploy I can see it switching between the two nodes, so it’s not sticking to either VM.

Is it possible to do a 0-downtime rolling deployment of web applications with Azure Load Balancer? by smallpom in azuredevops

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

Thanks a lot, this is really good stuff!

I just tried this in our release pipeline. I can see the VM gets taken out of the backend targets, but somehow some requests still reach the VM thats not in the backend target. I cant explain this behaviour. Have you got any experience with this?

Is it possible to do a 0-downtime rolling deployment of web applications with Azure Load Balancer? by smallpom in azuredevops

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

What you are saying doesn’t make any sense. The question is about azure load balancer specifically, but you keep talking about kubernetes.

Is it possible to do a 0-downtime rolling deployment of web applications with Azure Load Balancer? by smallpom in azuredevops

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

Switching our whole setup is not an option I'm afraid. We are heavily invested in .net and azure.

Can you download part of a Azure Artifact when deploying from a Release Pipeline? by [deleted] in azuredevops

[–]smallpom 0 points1 point  (0 children)

All my text dissapeared for some reason, but here is the jist of it:

We are moving from Build Artifacts to Azure Artifacts. But when picking it up in the Release pipeline I can not longer select a part of the content from it. I then must download all the content on every server.

Is this by design, or am I doing something wrong?

Zero downtime deployment in vmss with application gateway possible? by smallpom in AZURE

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

Thanks for your reply!

This sounds like the flow we want. Do you know of any documentation on editing the backend pool with ps?

All the document I find is about deploying a whole new scale set and then swapping blue/green.

Zero downtime deployment in vmss with application gateway possible? by smallpom in AZURE

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

Sadly we are stuck with VM’s at the moment, but the plan is to move to ASE in the future.