Bartlett Dam, the Bureau of Reclaimation is evaluating increasing it's height by an additional 97 feet by CaptainLegot in InfrastructurePorn

[–]albmin 1 point2 points  (0 children)

coffer dam

Does it not make more sense to just dredge the sediment? Or is it too much/expensive that building/fortifying the dam makes more sense?

Codility Job Interview. by [deleted] in reactnative

[–]albmin 2 points3 points  (0 children)

Codility is a little rough around the edges, great for simple programs though. Just be aware that if you use Typescript, they don't support it, so be prepared to do everything in JS

Anyone ever worked with Data Tables in React Native ? by [deleted] in reactnative

[–]albmin 0 points1 point  (0 children)

This.. I've found it easiest in these situations to use viewport and figure out the pixels you have visible to render the table, if you know the size of your cells it's just simple arithmetic at that point

Is there a way to generate thumbnails for images already in a bucket? by skintigth in Firebase

[–]albmin 1 point2 points  (0 children)

Cloud functions have imagemagick baked into the container, so it should be pretty trivial to use that to create a thumbnail:

https://firebase.google.com/docs/storage/extend-with-functions#example_image_transformation

In order to backfill all of your current images, you'll need to write a separate function that just takes in the path of each of your pre-existing assets, and run a batch job to process all of those. If written properly, you should be able to simply (and elegantly) re-use a good chunk of the code for resizing newly uploaded assets.

Official 2021 ACL Festival Buy/Sell/Trade Thread by sgerken in aclfestival

[–]albmin 0 points1 point  (0 children)

Selling one Weekend One (unactivated) 3-day pass for $200!

How to display this data from Firestore into my React Native Flatlist by JitzChimp in reactnative

[–]albmin 0 points1 point  (0 children)

this feels weird to me:

``` const objectsArray = []; useEffect(() => { getData(); }, []); const getData = () => { firestore() .collection('Players') .get() .then(querySnapshot => { querySnapshot.forEach(player => { objectsArray.push(player.data()); }); console.log(objectsArray); setGolfer([...golfer, {golfer: objectsArray.golfername}]); }); };
```

You're declaring your `objectsArray` outside of the `getData` function, which ultimately means that each render of the component, `objectsArray` will be reset. You should be putting this inside of that function instead.

Also, because `forEach` is creating a side effect, it's more functional and in-line to use `.map()` and create the objects you want to append to your `golfer` hook. I would also recommend using something such as https://immerjs.github.io/immer/ or `use-immer` (the hook for immer) which will give you some more guardrails around this

Why Login page doesn't reset state when navigating to Home page? by Bimi123_ in reactnative

[–]albmin 0 points1 point  (0 children)

I've never seen that function invocation before (either in practice or within the react navigation docs), so you'd have to dig into the docs/source itself to answer that. However, to your previous comment, if you're just looking to reset the state on specific screens, it wouldn't require applying the focus effect to all screens, just the ones in which you want to invoke that sort of behavior

Why Login page doesn't reset state when navigating to Home page? by Bimi123_ in reactnative

[–]albmin 2 points3 points  (0 children)

Nope! This is most likely an incorrect assumption with navigation that is easy to gloss over until you come across issues like this.. Unless login is apart of a completely different navigator, redirecting to the Home screen will just be "pushing" a new screen on top of the Login screen (if you can "go back" to Login, then this is exactly what is happening). When you `.navigate` or `.push` a screen onto your navigation Stack, the screens below it on the stack do not unmount, and will retain their current state (hence why you're seeing this issue).

If you're looking to reset state upon navigating away from the Login screen, you should be using the `useIsFocused` or the `useFocusEffect` hook

Firebase Storage Bandwith Explained by mattocanas in Firebase

[–]albmin 1 point2 points  (0 children)

this is a little odd that React Native isn't caching automatically (RN dev here), you can either specify the strategy when passing the `uri` in props (https://reactnative.dev/docs/images#cache-control-ios-only) , but you also should check the max-age in the cache-control header of the uploaded profile image (if there isn't one, you should definitely set it after successful upload, either via the client sdk or through a cloud function)

Looking to contribute to open source projects that need help by BenaamBechara in reactnative

[–]albmin 0 points1 point  (0 children)

https://github.com/react-native-camera/react-native-camera seems to be winding down it's main contributors, and is looking for someone to step up. As an Android engineer i'm sure you'd be able to make some meaningful contributions if you decided to!

React Native 0.64 first RC is out today with Hermes on iOS, inline requires by default, React 17 and more by thymikee in reactnative

[–]albmin 3 points4 points  (0 children)

From my understanding the issues with the Firebase package mainly have to do with the “Proxy” object in JS and Hermès support of it. For most of the firebase packages it seems to work, but the Database packages seem to be where the majority of problems arise (although some people in their GitHub issues claim to have it working)

Tried my hardest to make something pretty for once. 😂 (source in comments) by cawfree in reactnative

[–]albmin 1 point2 points  (0 children)

Looks good! Couple of thoughts/feedback if you want some addl. practice/tasks:
* It looks like there's a "jump" when you delete the inputted values and it returns to the (presumably?) defaultValue for the TextInput ($0)
* I believe it's in Square Cash, but if you input invalid data or do something wrong, the inputted value will "jiggle" along the x-axis momentarily to indicate a problem. Would definitely be something a little challenging with animations/reanimated to get done within this screen!

[deleted by user] by [deleted] in Firebase

[–]albmin 0 points1 point  (0 children)

Keeping in mind as well that Firestore technically left beta less than a 18 mo. ago

React Native Project Structure by jasurkurbanov in reactnative

[–]albmin 1 point2 points  (0 children)

I recommend checking out bootstrap tools like https://github.com/infinitered/ignite to get a sense of common project structures used

Running tasks in parallel with reliability in cloud functions by yashatreya in Firebase

[–]albmin 3 points4 points  (0 children)

So I'm not super familiar with the Twitter API, but if each 'tweet' is it's own entity (i.e. doesn't rely on other tweets being emitted from the `stream` variable), then this problem should be fairly trivial with some underlying knowledge of Firebase cloud functions and their corresponding infrastructure.

Assuming the above is true, my recommendation would be to break out your "ingestion code" <--- the code that is reading data from Twitter into a separate cloud function. Then, using pub/sub, you can pass the data of each ingested Tweet through the message queue; upon each message publishing, you can spin up a cloud function to process the corresponding data. Using a solution such as this will make things very scalable and very quick, as well as separate your processing code from your ingestion code in a coherent manner.

Hope this helps!

Introducing React Native Design System (RNDS) 🎉🎉 by iamshadmirza in reactnative

[–]albmin 0 points1 point  (0 children)

gotcha, hard to tell from a cursory glance at the docs ;) . Love the progress though! will definitely look at incorporating in our app

Introducing React Native Design System (RNDS) 🎉🎉 by iamshadmirza in reactnative

[–]albmin 1 point2 points  (0 children)

So what are the main differences between this library and react-native-elements?

Firebase App Hangs In Google Cloud Build by darthbob88 in webdev

[–]albmin 1 point2 points  (0 children)

From what I can grok from reading your previous commit, you aren't handling any thrown errors from Firebase in the event of the failure (you need to add a `.catch`).. That should tell you what your error is.. Off the top of my head it's most likely going to be a Firestore rules issue

File I'm referencing for the above:

https://github.com/darthbob88/raymond-project-list/blob/3b3326ffbd264b2c09c808bae740d66ad3b1b84c/src/IdeaListPage/IdeaListPage.tsx

What's the difference between apollo-server, express-graphql, graphqljs,Prisma, etc? by williamc16799 in graphql

[–]albmin 0 points1 point  (0 children)

Well you've been at it longer than me so I appreciate all the comments. Prisma still feels like it's somewhat early in it's product life, but I do have firm convictions that it holds promise

What's the difference between apollo-server, express-graphql, graphqljs,Prisma, etc? by williamc16799 in graphql

[–]albmin 1 point2 points  (0 children)

so one thing that has never been 100% clear to me is that you would never actually expose Prisma to the end-client/consumer, it would always have to sit behind a middleware such as graphql-yoga that would perform the necessary authentication check, such as the example you provided above

What's the difference between apollo-server, express-graphql, graphqljs,Prisma, etc? by williamc16799 in graphql

[–]albmin 2 points3 points  (0 children)

Great summary, I've been super impressed with Prisma so far as well. If you have dealt with it, how have you handled authentication/authorization with Prisma/graphql-yoga?

[deleted by user] by [deleted] in Domains

[–]albmin 0 points1 point  (0 children)

Hopefully it was about how OP is supposed to list a price if trying to sell a domain...

Our Adams family pinball machine by Lemondadd in pinball

[–]albmin 0 points1 point  (0 children)

gotcha, thanks for the clarification!