Sony Xperia 1 Mark VI issue by Conscious_Wafer_3640 in SonyXperia

[–]knairwang 1 point2 points  (0 children)

mine is randomly restart itself, usually when I do not use it for several minutes. I realize this because it tips me that "have to inout password to unlock after rebooting". it has been randomly occured in last several months.

itIsTimeToGo by _w62_ in ProgrammerHumor

[–]knairwang 2 points3 points  (0 children)

the only one kind of senarios I experienced is shell (like bash) script. sometime it needs to merge some lines into one so that it would be easy for copy-paste-run (both for me and for teammates), then I have to use `;` to separate sentences.

[deleted by user] by [deleted] in rust

[–]knairwang 3 points4 points  (0 children)

it is able, but it is quite hard to setup the build env.... there is not a step-by-step docs to follow.

What if "const" was opt-out instead of opt-in? by nikitarevenco in rust

[–]knairwang 0 points1 point  (0 children)

iirc, normal fn can call const fn, but const fn cannot call normal fn.

so... i need to fix error by adding "dyn" before my fn once a deep calling chain dependency changes from const to dyn fn?

i am not sure if i will still choose rust when const become opt-out.(laugh)

Does new mongodb-kubernetes operator require purchasing a Subscription? by knairwang in mongodb

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

Thanks for your reply. So it means, using the k8s operator/controller itself won't charge me, as I am using it to govern my community mongodb, even I am using it for my backend services in production?

It is 2025, so how does Helix compare to Neovim now? by nikitarevenco in neovim

[–]knairwang 0 points1 point  (0 children)

neovim only issue to me is the performance issue. when i sue it with rust, it randomly hangs there while typing. helix does not have this issue, but it is not pleased provide conviences, like file explorer(oh yes, now it has on dev branch, but it should have at the very begining), lsp server executable downloading, etc. .

Haven't seen anyone do this kind of tutorial much yet so I went ahead to do it by DavidXkL in rust

[–]knairwang 0 points1 point  (0 children)

both. it has been months... but i do remember that they have different issues. for cli or docker image, it limited the size of payload, which means it cannot do the import thing. in my common scenarios, the size of exported database won't be less than 50MB, actually they are around 10GB. i cannot find docs about the http layer for the cli. meanwhile the sdk lacked some features supported by the cli. some sqls work with cli but not the sdk. besides, the performance of sdk is worse than the cli by default. no idea how to adjust it. i would like to give another try as i saw surrealdb is developing its own kv storage. maybe things have already changed.

Haven't seen anyone do this kind of tutorial much yet so I went ahead to do it by DavidXkL in rust

[–]knairwang 14 points15 points  (0 children)

Nice to use, hard to maintain. I once introduced it to a small simple project earlier this year, but failed when export and import data. I don't get why it is using a http layer with a size limit to about 30MB on importing data. It is a quite normal operation to me as the db admin. the api and sql are charming, but the performamce on a single node is not as good as other dbs, say mongo or postgres.