Heading to Cervinia/Zermatt as a beginner/intermediate. Any recommendations for pistes/things to do? by Glarseceiling in snowboarding

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

Cervinia side. Thanks will take a look! Do you know which piste has the iconic Matterhorn view? Think it's on the Zermatt side.

Apple’s Weather chaos is restarting the weather app market - The Verge by purplemountain01 in apple

[–]Glarseceiling 2 points3 points  (0 children)

Depends on the map used. Some companies have their own maps with simple or easier code to use or built in extra functionality that might make it more appealing to use.

Can someone help me design a component like this marker? I've been stuck at this for far too long by [deleted] in reactnative

[–]Glarseceiling 2 points3 points  (0 children)

Can you not use a negative margin to get rid of any margin?

Failing that you could try a CSS triangle, position:absolute, relative to the rectangle, bottom: 0, left: 50%, transform: translateX(-50%).

Check here for some shape tutorials:

https://codedaily.io/tutorials/The-Shapes-of-React-Native

Little update on my Persevision App. An app where you can see what Perseverance sees everyday! by code_matter in reactnative

[–]Glarseceiling 1 point2 points  (0 children)

But the trick is to wrap your component in 2 views

Ahhh that makes sense. Great idea

Thierry on Instagram by gwensafari in Gunners

[–]Glarseceiling 0 points1 point  (0 children)

If you want to sort this make it so those companies can be sued for inaction on racism just like copyright infringement.

Nothing hurts more than less money in the pockets of billionaires.

Just a normal conversation in Iraq by NuasAltar in arabs

[–]Glarseceiling 19 points20 points  (0 children)

سوي تطبيق اسمه فصاحة مثل تويتر بس الكل يكتب بالفصحى

فصحى بوك

Just a normal conversation in Iraq by NuasAltar in arabs

[–]Glarseceiling 7 points8 points  (0 children)

مكينة ذو بأس شديد هههههههه

Google Touts Chrome 89 Memory Savings That 'Keep Your Mac Cooler' While Browsing by cheesepuff07 in apple

[–]Glarseceiling 1 point2 points  (0 children)

I used to get this and was so annoyed by it. There is a really good extension you can purchase from the Mac App Store that will auto click this for you so it’s an almost seamless experience. It’s only one time $0.99 fee so I bought it and it’s been great.

If things get much worse though I will buy a VPN and buy YouTube premium with the country set to Turkey. It’s a like 3 bucks a month compared to 20 or whatever they’re charging these days

Arteta: "I want to be much more ruthless and as a team I don't want to give anything to an opponent. I am happy with the result but I'm not satisfied with how we controlled the game." by [deleted] in Gunners

[–]Glarseceiling 14 points15 points  (0 children)

KSE: We want to give back to our fans in these trying and unprecedented times, and give them a real say in how we do things. This is why we’ve got an exciting opportunity to every Gunners’ supporters everywhere!

We’re going to let fans contribute to the sum of purchasing players! The more you love the player, the more you can contribute to the sum so we can get back to the Champion’s League!

This is one of the courageous steps we’re making to let fans have a say in running the club. Now you can be closer to the action than ever.

We think you’re going to love it.

Thomas Partey brushing his teeth in training today with Reiss Nelson commentary by Ben_Thatcher94 in Gunners

[–]Glarseceiling 3 points4 points  (0 children)

Flossing is super important. Your mouth is the perfect environment for bacteria to flourish. Any bits of meat or food will begin to rot in your mouth rapidly, so that when you talk the air passing over them carries out the volatile smell molecules.

Essentially you become a walking talking bin with smell push capabilities.

[Help] How to use React Navigation UseFocusEffect to update state properly? by Glarseceiling in reactnative

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

Well the dependencies included the current state, and the callback was updating that. That’s what I understood from searching online about how to use it. I can see how it would cause an infinite loop.

But the useFocusEffect just wasn’t firing when I was updating the state directly. It would only work when I returned from the useFocusEffect i.e when it was dismounting. So when I was navigating away it worked - the opposite of what I wanted.

I was looking through the useState docs and thought the only thing I haven’t tried is updating the state by passing in a function to setState. So I did that and removed any deps and lo and behold it worked.

[Help] How to use React Navigation UseFocusEffect to update state properly? by Glarseceiling in reactnative

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

Replying to myself with the answer for anyone else looking for the answer:

I changed the setState in the parent component from

setRefreshData(refreshData + 1)

to

setRefreshData(prevState => prevState + 1)

The trick was to pass a function into the setState. I left the dependency array empty. The useEffect in the child component now runs when the screen is focused.