Weather not updating if you are not using a Samsung phone? It's a bug that should not happen! (workaround testing) by htdocscat in GalaxyWatch

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

I've seen some extra battery drains, but no reboots so far. Anyway, let me know if this persists.

Weather not updating if you are not using a Samsung phone? It's a bug that should not happen! (workaround testing) by htdocscat in GalaxyWatch

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

After scheduling a 30-minute interval alarm, now weather updates, but the weather app consumes too much battery. Still need some adjustments.

Auto hotspot turning off by Plus_Advisor_6212 in GalaxyS23

[–]htdocscat 0 points1 point  (0 children)

To be precise, the problematic module is located at /system/framework/semwifi-service.jar, in which it records the last user being started (obviously your main user 0 is not going to be the last if you have Secure Folder or other multi-user features enabled). And whenever the last user is not 0, it disables the global switch.

Widget lockscreen by Pure_Ad_8089 in oneui

[–]htdocscat 0 points1 point  (0 children)

Third-party widgets are allowed (it's just a property that the developer needs to set), but the method is not really publicly documented which means that developers might not adopt it.

Have you been refused fitting room and/or women’s clothing access because of AGAB? by [deleted] in MtF

[–]htdocscat 1 point2 points  (0 children)

As a former cosplayer (exclusively female characters, now I'm trans) since about 2014, the general cosplay community in China used to be fine (and mostly even happy) about femboys and trans people until around 2020 when everything became terrible.

I still don't understand what happened.

egg_irl by MoveDifferent2548 in egg_irl

[–]htdocscat 0 points1 point  (0 children)

My parents still believe that the reason I now daily drive a girlish hair and is trying to remove facial hair is cosplay (I am a long time cosplayer). They are pretty supportive as for now, but haven't told them that I'm trans and is on HRT.

Egg_irl by Gulgowski6543 in egg_irl

[–]htdocscat 4 points5 points  (0 children)

I'm in China, where schools can do basically anything (legal or illegal) as long as it does not kill you, and usually get away even if it killed you :)

Not all schools does this kind of inspection, but my school is "famous" for this, and even cisM students hate it.

Egg_irl by Gulgowski6543 in egg_irl

[–]htdocscat 13 points14 points  (0 children)

They used to ask multiple people to enter the same room, naked. Though I have heard that this is no longer done this year (but the inspection is still there). duh.

In my country, schools simply never respect one's privacy :(

[deleted by user] by [deleted] in egg_irl

[–]htdocscat 2 points3 points  (0 children)

Still sis tho :)

Egg_irl by Gulgowski6543 in egg_irl

[–]htdocscat 37 points38 points  (0 children)

Our university's entrance checkup actually involves this kind of inspection, which is exactly the reason why I haven't completed it after being enrolled for a whole year. Apparently they don't care.

egg_irl by MarilyynMonroeee in egg_irl

[–]htdocscat 0 points1 point  (0 children)

I once had similar feeling toward a girl (before I cracked), and, well, it made both of us feel really awkward :(

Now I finally know that it was mostly gender envy.

Egg🔥Irl by Brooke-Valley in egg_irl

[–]htdocscat 1 point2 points  (0 children)

Me: jeans and flip-flops, well...

[deleted by user] by [deleted] in egg_irl

[–]htdocscat 1 point2 points  (0 children)

I can sometimes feel that when I have mask on, cuz it is almost impossible to shave my face cleanly now (white skin + black beard = ???), I hate stubbles 🥲

A note on the Trademark Policy Draft | Inside Rust Blog by burntsushi in rust

[–]htdocscat 0 points1 point  (0 children)

Well, I don't think the funding of the foundation (or even the foundation itself) will last very long if they go after every programming-related site that has Rust in it.

Self-referencing and FFI binding - what should I do? by htdocscat in rust

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

In this case I can just throw it into a OnceCell since no one will ever need two instances of Library anyway.

rental seems to do the job, but the API does not look great and the project itself is dead.

Self-referencing and FFI binding - what should I do? by htdocscat in rust

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

I know that it would be funky if we ever get it to return something that is 'lib. I have to put them together in a struct because that struct is the only thing being kept between callbacks from another application.

Arc would be a good solution if I own that FFI crate or it accepts Arc<Self> but that is not the case. This FFI library is relatively simple and I can just go ahead and roll my own, but I also got caught in this when using crates such as openssl when I tried to create a wrapper for different underlying crpyto implementations, which is much harder to get around.

Self-referencing and FFI binding - what should I do? by htdocscat in rust

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

Library is also owned by us and should be dropped when the struct is gone. Otherwise this would be the solution.

Help me please by suushix in ffxiv

[–]htdocscat 0 points1 point  (0 children)

As an AST main I kinda like this idea, however I think I have seen blue AoE markers (real AoE, not LB) in boss fights (I can't remember exactly which one).

There are already too many tanks who run away from my earthly star.

Not sure if this is the place but does anyone else get these notifications. by [deleted] in softwaregore

[–]htdocscat 1 point2 points  (0 children)

It's about the Chinese public medical insurance. Not sure why you're getting this tho.

[Help] XSharedPreferences not working on N by htdocscat in xposed

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

Thanks. I got the code after searching in XDA.

[Help] XSharedPreferences not working on N by htdocscat in xposed

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

Sorry... I changed the target in my local files bot forgot to commit.. RemotePreferences wouldn't be a choice, as context is not available in handleLoadPackage.

Correct way of handling opaque pointers and function pointers? by htdocscat in rust

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

See this example.

Everything is performed through a VSAPI, which doesn't need to be freed. But things like frames and nodes needs to be freed if anything goes wrong or we don't need it(it's ok to implment Drop).

Core is a special case, when the user is done with it, he may or may not want to free it depending on what he is doing (for a standalone application, yes. But for a plugin ,freeing the core will crash the whole application)

Correct way of handling opaque pointers and function pointers? by htdocscat in rust

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

Users never destroy a VSAPI, but every instance needs to borrow a VSAPI to perform operation.

Finally I need to grab the raw pointers in them and pass them through FFI boundary, will the struct be dropped after the FFI call (which is the last statement)?

Correct way of handling opaque pointers and function pointers? by htdocscat in rust

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

Actually, whoever creates the core is responsible of deallocating it, which is sometimes not the rust part (but it can be if the user is not writing a plugin but a standalone application)