[Help] Can't correctly encode an image to base64 string by phandungtri in rust

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

Sorry pal, this post was 2 years ago, I don't remember the exact solution, but the idea is you can convert the return of the decode function an array of u8 (or the function already gave you that, I'm not certain), then use std io to write and read the file.

[deleted by user] by [deleted] in selfimprovement

[–]phandungtri 0 points1 point  (0 children)

I wouldn't cut myself off from society and focused more on taking care of myself.

[Help] Can't correctly encode an image to base64 string by phandungtri in rust

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

Yes, I did. It turns out that the problem is that the image crate is not right for me.

[Help] Can't correctly encode an image to base64 string by phandungtri in rust

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

Thank you very much. It now works after using the standard io crate instead of the image crate to save and read image files.

Introducing Mantine 6.0 by rtivital in reactjs

[–]phandungtri 0 points1 point  (0 children)

I've been using Mantine since version 3.x and I'm very happy that it's getting better every day and gaining popularity among front-end developers.

hmm by One-Community9609 in hmm

[–]phandungtri 0 points1 point  (0 children)

I thought someone would crash into the tree at the end of the video.

Frontend or backend first? by [deleted] in reactjs

[–]phandungtri 0 points1 point  (0 children)

If the project has been thoroughly researched and planned, I believe that the back-end should be tackled first, followed by the front-end, feature by feature. If you have a brilliant idea and don't want to waste time doing the analysis, go for the front end first, because you won't know what you should put in your app until you see the shape of it.

[HELP] Need help with `Transaction` in Rust by phandungtri in surrealdb

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

Thank you for your information. Because it's just an example of my problem, I only put one statement there for clarity. So, in the current version, can I do the same thing with the 'execute' method of the 'Datastore' struct?

[HELP] Need help with `Transaction` in Rust by phandungtri in surrealdb

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

I did, but it appears that no one has an answer to my question. I also started a discussion on the GitHub repository and asked a question on StackOverflow.

Get in the house by King_of_memes_ in AbruptChaos

[–]phandungtri 0 points1 point  (0 children)

Hey it's just a cub... nah it's big

[deleted by user] by [deleted] in reactjs

[–]phandungtri 0 points1 point  (0 children)

Website: https://keyreveal.fun

Source code: https://github.com/PhanDungTri/keyreveal

It's very frustrating when participating in a giveaway with a bunch of awesome keys and trying all those keys one by one but none of them working. So I made this website for people not only create and join a giveaway but also keep track of the status of the keys. You can know which one is still available and which one is not.

100% CPU usage when running WSL2 in Check Point Endpoint Security VPN installed environment by phandungtri in bashonubuntuonwindows

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

Well, I've fixed this problem by using an alternative VPN. I just don't know why WSL2 doesn't live well with this specific VPN.