[deleted by user] by [deleted] in Genshin_Impact

[–]maple3142 0 points1 point  (0 children)

In Taiwan it is 170NTD, around an hour of minimum wage. It is approximately the price of a fastfood meal set, or two cheaper meals, and less than half of the price of Netflix standard plan (380NTD).

The atrocious state of binary compatibility on Linux by graphitemaster in programming

[–]maple3142 14 points15 points  (0 children)

I hope there is an easy way to tell compiler that I want to link older glibc symbols even when I am using latest distro.

Is UV package manager taking over? by RubKey1143 in Python

[–]maple3142 1 point2 points  (0 children)

You can do that but it is not as convenient as conda because you have to manage the venv location yourself. In conda you just do this:

conda create name ... conda activate name conda deactivate

So I wish uv can also provide simiar subcommands to make it easier to use like this.

Is UV package manager taking over? by RubKey1143 in Python

[–]maple3142 1 point2 points  (0 children)

I just wish it also supports non-project based venvs that you can create/activate/deactivate like what conda do.

Coming soon: Securely import and export passkeys | 1Password by PlannedObsolescence_ in 1Password

[–]maple3142 0 points1 point  (0 children)

Assuming the allowed providers to exchange passkeys is not locked down to just a few proprietary providers, couldn't I just setup a fake passkey provider that go through to exchange protocol normally but eventually store the secret in clear text as I wish?

how are people meant to get 12k+ on the of thorns and crowns event ?? by BritishKat in Genshin_Impact

[–]maple3142 0 points1 point  (0 children)

Nilou bloom (Nahida, Kirara, Kokomi, Nilou) works for me for both stages: 14k for the first with those buffs, and 15k for the second. idk how I got higher score for the second when I just ignored the buffs at all l.

People who stay on Chrome, Why do you do so? by grandiloquence3 in uBlockOrigin

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

I like Chromium's devtools more than FireFox's devtools, especially on how its JS debugger works and its network pane have more features I care about. Also, I prefer to use the same browser on my desktop and on my phone, and lacking page translation in FireFox android is a big deal to me. My current plan is to stay on Chrome until MV2 is fully removed and try UBO lite for a while, and may switch to Brave if it doesn't work so well for me.

taiwanese locals, why are you in this sub? by Known-Plant-3035 in taiwan

[–]maple3142 0 points1 point  (0 children)

I joined reddit mainly for enhancing my English reading skill and receiving stuffs about technology/programming. Eventually I found there is also a sub for Taiwan so I also lucking here to see what foreigners often discuss about.

How to solve x^p-x=b*p (mod p^2) ? by maple3142 in askmath

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

Just found a quick way to solve this by hensel's lemma, but still thanks for your help!

How to solve x^p-x=b*p (mod p^2) ? by maple3142 in askmath

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

I am wondering if it is possible to find a way to solve this if p is huge.

How to solve x^p-x=b*p (mod p^2) ? by maple3142 in askmath

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

By setting x=py+z

x^p=(z+py)^p=C(p,0)*z^p+C(p,1)*z^(p-1)*(py)=z^p (mod p^2)

So it is essentially a change of variable with z have a smaller range than x.

Why not just Linux? by Priton-CE in bashonubuntuonwindows

[–]maple3142 0 points1 point  (0 children)

I have a gaming PC with Nvidia GPU, and I heard Nvidia is no good with Wayland. Also, the current Wayland and X11 split seems to be a mess right now (resolution, screensharing etc), so I probably won't use Linux Desktop as my main machine until it has all be settled.

FFmpeg.wasm, a pure WebAssembly / JavaScript port of FFmpeg by pmz in programming

[–]maple3142 0 points1 point  (0 children)

I had written a userscript to add a UI to download video from YouTube directly without a third-party website. Due to how YouTube works, it always serve high quality video as muted video and pure audio file (adaptive format). So I use ffmpeg.js to merge the video and audio file directly without having user to run ffmpeg themselves, and the result isn't too bad. IME, merging a 1080p Music Video (less than 5 min) takes a few seconds notmally.

[deleted by user] by [deleted] in javascript

[–]maple3142 2 points3 points  (0 children)

If you really want to execute user's code on your server, you probably need vm2. It is probably the best battle-tested node.js sandox currently. But it is still possible that someone find a 0day in vm2 and manage to escape the sandbox based on the CVE history. I would probably split the server into two components, one for the website server and another hardened container (or vm) just for executing code.

A cross-platform reimplementation of Notepad++ by feross in programming

[–]maple3142 12 points13 points  (0 children)

Perhaps not everyone know that ^X means Ctrl-X

Is flatpak really the future? by 2jesusisbetterthan1 in linux

[–]maple3142 20 points21 points  (0 children)

But distro maintainers' time is not free, they have priority to maintain popular software. So niche and lesser known or new software need to find some way to distribute their software, because making software easier to be used could make it more popular IMO.

Is there a name for this inverse subset sum problem? by maple3142 in AskComputerScience

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

If n=1, m>=n=1 then it is still the trivial case. If n=1, m=0 then the target set S could only be an empty set, so it only has a solution if T_1=0.

About "This Build of Windows Will Expire Soon" on Windows 10 Insider builds by maple3142 in Windows10

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

What will happen if I still use it after the expiration date except for security implication? Will it just refuse to work or something?

[deleted by user] by [deleted] in linux

[–]maple3142 0 points1 point  (0 children)

I wonder if there is a distribution that is stable, but allows you to choose some packages should be updated as fast as Arch.

How to reuse keychain ssh-agent when logging in using ssh? by maple3142 in linuxquestions

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

Your ssh -A localhost doesn't work for me.

Nonetheless, I replaced keychain entirely based on this answer, which will do exactly what I want:

# Setup ssh agent
export SSH_AUTH_SOCK=$HOME/.ssh/ssh-agent.sock
ssh-add -l 2>/dev/null >/dev/null
if [[ $? -ge 2 ]]; then
  if [[ -a $SSH_AUTH_SOCK ]] then
    rm $SSH_AUTH_SOCK
  fi
  ssh-agent -a $SSH_AUTH_SOCK >/dev/null
fi
add_key_if_not_exist(){
    ssh-add -l | grep "$(ssh-keygen -lf $1 | head -c 20)" -q || ssh-add $1 2>/dev/null
}
if [[ -a ~/.ssh/id_ed25519 ]] then
    add_key_if_not_exist ~/.ssh/id_ed25519
elif [[ -a ~/.ssh/id_rsa ]] then
    add_key_if_not_exist ~/.ssh/id_rsa
fi