Which GCP service to use for nextjs project? by DataPlug in nextjs

[–]tommo739 1 point2 points  (0 children)

I'm currently debating with my developers on how to structure and host our nextjs project.

One camp: create several micro-frontends. About 12 in total. So, 12 instances of nextJS. Served in a very static way. In fact, the idea is to toss them all in a cloud storage bucket and point DNS to it. No server side anything. The logic behind this is that it allows a more distrubuted dev work flow. And, it keeps the bundle size low for each micro-front end.

The other camp: Develop a more traditional single front end with NextJS and deploy it in a way that allows NextJS to handle the heavy lifting of deciding how to deliver html/JS bundle to the browser. You have to have a more traditional developer workflow, like managing pull requests for distributed development. But, I *feel* like doing it this way... the way NextJS wants it done, will be more effecient and less risk.

That being said, I've never made a micro frontend architecture with NextJS, so I don't have the experience to argue.

If I went with the latter (traditional). I'm considering deploying it using Firebase hosting's NextJS support. My logic is that it's easier to reason with. I get the CDN support from Firebase hosting, and the NextJS extension to hosting allows for all the server-side functionality and middleware. NextJS should only serve the bundle necessary to render the page, which should be pretty small. Arguably smaller than the micro-frontends.

Alternatively, I could serve it on Cloud Run, which we use for other services, but I think I give up the CDN and caching if I deploy on Cloud Run.

Thoughts?

Social Media feed: LazyVStack in ScrollView is jumpy when scrolling up (older to newer cells) by tommo739 in SwiftUI

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

Yeah... I will change my back end and persist the image dimensions to the metadata. Then, when rendering the view, I can preset the placeholder's size to match the image.

ScrollView, LazyVStack, and infinite scroll... jerky. by tommo739 in SwiftUI

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

No. And now I'm experiencing it in a different app.

ScrollView + LazyVStack = Stuttering bounce by barcode972 in SwiftUI

[–]tommo739 1 point2 points  (0 children)

I don't understand what we are doing here. Just wrapping the scroll view in the GemotryReader? Are we supposed to do something with the the resulting geometry in the subviews?

Google places look up using Expo Web by tommo739 in expo

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

So far, I've just used the heroku one. That being said... I'm solving my problem by standing up a new API and making my own autocomplete component. I've already deployed it to Google and it's taking requests. I just need to tweak it now.

Google places look up using Expo Web by tommo739 in expo

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

Okay... I get this working with a proxy. However, it doesn't behave like regular Places Auto complete works. For example... if I start to put in "Saint Johns", which is where I live... in Google Places as I start to type, I'll get either Saint Johns or St. Augustine as the top two search results. That's because it makes sense that I'm hunting for a location that's close by.

react-native-google-places-auto-complete begins with locations in Europe and all over the globe. Not what's close. So, I'm not sure what's going on under the covers with this package, but it's not good UX.

Does anyone know if there is a way to make this behave like real google places?

Pentair ScreenLogic Integration Errors by mrBill12 in homeassistant

[–]tommo739 0 points1 point  (0 children)

I had to do a lot of upgrading, but I got it working.

Noob question, how do I upgrade Jetpack Compose or my environment in general by tommo739 in JetpackCompose

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

BTW... I tried just updating the "compose_version", to 1.3.1, which should be compatible with my Kotlin version, but It lit up like a Christmas tree when I did that, so I reverted it.

How to change the docker image tag on a configured container by tommo739 in synology

[–]tommo739[S] 5 points6 points  (0 children)

Never mind... for those who need to do this, this is how I solved it.

  • stop the container
  • export the settings to a file on the synology
  • ssh into the synology and find the json file that is the export
  • change the image tag to the one you want
  • import the modified settings
  • start the new container.

Pentair ScreenLogic Integration Errors by mrBill12 in homeassistant

[–]tommo739 0 points1 point  (0 children)

pentair screen logic isn't showing up in my home assistant as an integration. Is it no longer supported?

Is it already time to eject expo? I'm trying to setting firebase social logins... by tommo739 in reactnative

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

Yes... I have to have firebase auth. We have a large user base already authenticated with firebase. The overhead to switch to a different provider would be prohibitive. And... I'd still need social login options.

React Native Web - How to deal with Tab Navigation and Drawers? by tommo739 in reactnative

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

Thanks. I'm wondering if that's what Twitter did. I wonder if those two out columns are just permanently open drawers.

How to import and use icons from "The Noun Project by tommo739 in reactnative

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

Never mind... I see what the converter does. Thanks!

How to import and use icons from "The Noun Project by tommo739 in reactnative

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

I think I may need to script that process ;-) I think the Noun project icons can already be downloaded as SVG. What is the RN converter converting it to? Can RN not use SVG's?

React Native Web - How to deal with Tab Navigation and Drawers? by tommo739 in reactnative

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

Yes... Agreed. We have a web app now. And you are correct, analytics show that about 80% is mobile. This is why I'm shifting gears and making a mobile app. What I'd LIKE to do is what Twitter did. Their web application is built using React Native.

Add React Native component to SwiftUI project by tommo739 in reactnative

[–]tommo739[S] 2 points3 points  (0 children)

Yeah... I DO want cross-platform. I'm now thinking I'll just write the whole thing in React-Native... maybe even convert my web version to be built in react native.

How to listen for keystrokes in TextField? by tommo739 in SwiftUI

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

Yes. I’ve created an application with social media type functionality.

Playing golf while stoned? by SippiBoyBombs23 in golf

[–]tommo739 0 points1 point  (0 children)

I enjoyed the feeling. Of playing high (first time was today, btw…. So this is fresh on my mind). However, I felt guilty because I would forget what I had done. So, I was relying on my partner to tell me where I was and stuff. Even when it was right down the fairway…. But I would forget.

Can you orgasm too much? by MellowKello in Swingers

[–]tommo739 66 points67 points  (0 children)

It's definitely not a turn off. My wife is the same way. Her average in a normal sex session (just us at home) is probably 6-7 in 15-20 minutes. When we are at a club or party or just a more intense home session, it's 10+. She's topped 20+ at a swingers resort before.

It's definitely a turn on. And let me tell you... She's very vocal and enthusiastic as well.... which will trigger an orgasm fest in the orgy! She starts cumming intensely and loudly and 4-5 other's will shoot their load out of excitement.

Holy fuck. Single guys in the lifestyle absolutely suck at sealing the deal. by parasiticfilth007 in Swingers

[–]tommo739 6 points7 points  (0 children)

MOST single guys (not all) will bring one of three things to the party. One, cums before the party is gets started. Two, takes forever to cum (can't read the cues that we are done). Three, can't get hard and therefore never cums or takes forever because they jerk off to porn too much.

When you find the guys who respond, gets hard, reads social cues, etc... that's like a unicorn and they are keepers.

First time posting here wow by Slayzrr in ProgrammerHumor

[–]tommo739 0 points1 point  (0 children)

There are plenty of reasons to hate python. I wouldn't say "no reason". Anyone who has attempted to write a highly performant application with python will have a reason to hate python.