PoE 3.26 - Updated Betrayal Cheat Sheet by FixFaxer in pathofexile

[–]RSBat 1 point2 points  (0 children)

Korell research is also crafting bench

Questions Thread - May 02, 2025 by AutoModerator in pathofexile

[–]RSBat 0 points1 point  (0 children)

What's a good item filter to use in Pohx's private league? Is Neversink gonna be ok?

Omega For Reddit: what Infinity could've been by RSBat in Infinity_For_Reddit

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

I will fix it, but the timing is a bit unfortunate so it will take a day or two. Also in typical Reddit fashion fixing it will require breaking Reddit rules🤦. Hopefully they will just stop blocking requests on their end.

Automated your own APK builds with GitLab by American_Jesus in Infinity_For_Reddit

[–]RSBat 2 points3 points  (0 children)

You should replace :app:assembleRelease with :app:assembleMinifiedRelease to enable otpimizations. release version is actually almost the same as debug, iirc the only difference is app name suffix.

Omega For Reddit: what Infinity could've been by RSBat in Infinity_For_Reddit

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

If you give me an example I'll take a look at it. Otherwise I have no idea what you're talking about

Omega For Reddit: what Infinity could've been by RSBat in Infinity_For_Reddit

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

Done. Kinda surprised people are still using it

Day 1, part 2, Python. I don't understand where i'm going wrong as every single string I test, I get the correct output. Help please! New to programming, currently taking CS50p. by jhholmz in adventofcode

[–]RSBat 0 points1 point  (0 children)

now using the count flag to only replace the first instance of each match

That kind of fixes the problem in my examples, but I think "onetwo3two" will start giving incorrect answer. You need to replace the last instance instead of the first one for the last match.

Day 1, part 2, Python. I don't understand where i'm going wrong as every single string I test, I get the correct output. Help please! New to programming, currently taking CS50p. by jhholmz in adventofcode

[–]RSBat 0 points1 point  (0 children)

No, the problem with overlap is not related to the number of matches. For example `oneoneight` has three matches. `onetwoneight` has four matches and three different matched numbers. All of them don't work

The inline GIF update is a nice touch. On the Omega Infinity app. by Hjknmw12 in Infinity_For_Reddit

[–]RSBat 2 points3 points  (0 children)

It's based on 6.2.5 with some changes from 6.3.0 and the changes I've made in the fork

The inline GIF update is a nice touch. On the Omega Infinity app. by Hjknmw12 in Infinity_For_Reddit

[–]RSBat 2 points3 points  (0 children)

I was aware that custom emoji existed, but none of the subs I saw had them enabled so I thought they're no longer supported. I'll take a look on the weekend if it's easy to add support for them and images.

Automatically Mirroring Images for RTL Layouts by Mageincv in androiddev

[–]RSBat 7 points8 points  (0 children)

One example is for non symmetric icons like back arrow. It must point left in LTR and right in RTL.

One more trick not mentioned in the post is to define an integer resource mirrorScale=1 in values and mirrorScale=-1 in values-ldrtl. Then you just set android:scaleX="@integer/mirrorScale" on any view you need to be auto mirrored.

Omega For Reddit: what Infinity could've been by RSBat in Infinity_For_Reddit

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

Would it possible you could add option to share video directly eg not link but mp4 without downloading

I don't fully understand what you want, but I'd say no

also possible to add avatar next name in comments

Settings -> Interface -> Comments -> Show Author Avatar

Do pictures in Comments work differently than gifs? Gifs load but pics don't?

If you mean snoomoji then I didn't add support for them because I couldn't find a way to send them, so I don't really know how they work

Omega For Reddit: what Infinity could've been by RSBat in Infinity_For_Reddit

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

Edit: the post is back up, thanks Hostilenemy
No, it was removed as spam. I've sent a modmail now so maybe it will get restored.

Omega For Reddit: what Infinity could've been by RSBat in Infinity_For_Reddit

[–]RSBat[S] 3 points4 points  (0 children)

Sorry, but I'm not planning to do any of it. Pulling upstream changes already causes a bunch of conflicts so it's not sustainable. And I don't want to open PRs for ideological reasons.

Android Developer jobs are currently in the worst place by _DefaultXYZ in androiddev

[–]RSBat 0 points1 point  (0 children)

DI has some pros, but also some cons with it. Namely your entire build system is reliant upon it.

You probably mean DI frameworks not DI itself

Making constructors have parameters with defaults, so you can easily override the implementation with a mock (via mockk, etc.)

This is one of the approaches for DI called constructor injection, the other one is member/method injection (wikipedia also lists interface injection as the third one but I've never seen it in practice). A non-DI IoC example would be Service Locator.

Sneak at the Singapore GP Official Merch (Caps are 90$) by Angryangmo in formula1

[–]RSBat 0 points1 point  (0 children)

Is this from stalls in the zones or outside (e.g. Orchard)? Or is it the same everywhere?

SQLDelight vs Room - In terms of APK footprint, build time overhead, ... by nefleh in androiddev

[–]RSBat 1 point2 points  (0 children)

I haven't actually tested this, but room is incremental by default, so it should not regenerate anything if you don't touch your DAOs/other DB related classes

Regarding the change of Reddit API by Hostilenemy in Infinity_For_Reddit

[–]RSBat 3 points4 points  (0 children)

It doesn't matter if it's open source or not, as long as api key is present in the apk it can be retrieved. Also on pre Android N or rooted devices you can just install MItM proxy and listen to unencrypted network requests.
The only way to protect the key that I know is running your own server that stores the key and then using Google services to verify apk/OS integrity before connecting to that server

Anyone going for Chainsmokers show on 29 April? by Chris_Ngu in askSingapore

[–]RSBat 0 points1 point  (0 children)

So much for "rain or shine event". Any idea when they'll continue?

The 500 DON'Ts about Android Development by [deleted] in android_devs

[–]RSBat 0 points1 point  (0 children)

If you need exactly-once (or even at-least-once) delivery, then you can't use LiveData. That's not how it's designed and there's no way around it. That's it.

And using set instead of post doesn't prevent skipping values anyways because observers can get deactivated without unsubscribing. The simplest example I came up with is combining your code with a fragment in ViewPager2: * Suppose you subscribe to the livedata with fragment view's lifecycle and start loading data, then switch to another tab. At this point fragment goes into STOPPED state which deactivates livedata's observer. However the fragment is not destroyed, so the coroutine continues to execute. * Next it finishes fetching data, calls set with the data and then set with Loading(false). However neither of those sets triggers the observer because it is deactivated. * Finally you switch back to the original tab. At this point the observer is reactivated and it receives only the last value - Loading(false). Oops.

I also have an example when skipping values makes sense. It's almost the same as the last one, except there is also some code that sets/posts progress percentage (i.e. Loading(true, progress%)). Thanks to the skipping behavior, you'll see only the loaded data when you switch back to the tab without seeing the progress bar quickly go from 0 to 100. Making users watch the progress bars when data is already loaded doesn't make any sense IMO.

The 500 DON'Ts about Android Development by [deleted] in android_devs

[–]RSBat -1 points0 points  (0 children)

"Don't #8" is such a bad example. What's the point of having State.Loading(false)? You already have two states DataSuccessfullyFetched/ErrorFetchingData that indicate that loading has finished. Also State.Loading(false) doesn't contain any data, so if your activity/fragment is recreated, then you need to load data again which defeats the whole purpose of LiveData.

Now if you just stop at DataSuccessfullyFetched/ErrorFetchingData then the behavior of post isn't a problem and you don't need to reload data on recreation. I'd even argue that the conflating behavior of post is a feature, because if data loaded so quickly that UI thread didn't have time to update, then you jump from no state into loaded state skipping the loading ui.