~iacore

the Internet

https://1a-insec.net/

Natural intelligence with inherited memory dated back to Web 2.0. 100% made on Earth.


#21 prompt() does nothing on hosted sites 5 months ago

Comment by ~iacore on ~sircmpwn/pages.sr.ht

~sircmpwn I don't understand the design. allow-popups is currently enabled, which offers more possibility to display information. Functions like window.alert are used by actual applications; they are also useful during prototyping. Please reconsider.

#21 prompt() does nothing on hosted sites 7 months ago

Comment by ~iacore on ~sircmpwn/pages.sr.ht

Why is allow-modals disabled by design? It is used in this quantum circuit editor to prompt for user input.

#21 prompt() does nothing on hosted sites 7 months ago

Ticket created by ~iacore on ~sircmpwn/pages.sr.ht

Typing prompt() in browser console returns null immediately. it doesn't work in scripts either.

It doesn't work in either Librewolf or Palemoon, and no errors either.

To reproduce:

  1. Go to https://srht.site/ , https://www.1a-insec.net/ , or other sites hosted with pages.sr.ht.
  2. Type prompt() in your browser's Console.

I suspect this has something to do with CSP.

#20 Incremental upload 1 year, 10 months ago

Ticket created by ~iacore on ~sircmpwn/pages.sr.ht

When the website is around 5MiB, it takes awhile to upload, and sometimes just hang. It would be better if srht.site supports incremental upload.

Some choices: rsync https://docs.itch.ovh/wharf/master/ git

#120 Support multiple email aliases 1 year, 11 months ago

Comment by ~iacore on ~sircmpwn/meta.sr.ht

Hello ~sircmpwn, what's the status on this?

#58 Implement build caches 2 years ago

Comment by ~iacore on ~sircmpwn/builds.sr.ht

~adnano Thanks. I revoked it yesterday. It only needs JOBS:R anyway.

#58 Implement build caches 2 years ago

on ~sircmpwn/builds.sr.ht

~iacore: you should revoke your personal access token, it's no longer a secret. See https://man.sr.ht/builds.sr.ht/#keeping-your-secrets-a-secret

#58 Implement build caches 2 years ago

Comment by ~iacore on ~sircmpwn/builds.sr.ht

I made a very flaky prototype.

two builds: https://builds.sr.ht/~iacore/job/826339 https://builds.sr.ht/~iacore/job/826341

notice the "build 0 -> 1" and "1 -> 2" in final task's log

caveats:

  • it only looks for previous build artifact on first page of result
  • it uses tag to find which build job is from the same repo. Therefore, it doesn't trigger on resubmitted job. A more robust solution might be to parse the build manifest (YAML).

Unrelated question: how does 'hut' get access token in CI? I don't know how, so I added my own personal token as secret for the above demo.

#58 Implement build caches 2 years ago

Comment by ~iacore on ~sircmpwn/builds.sr.ht

I can probably make something based on build artifact. A task upload "build cache" as build artifact, and later tasks query previous build jobs and fetch the "build cache".

I use Rust in my pipeline, and rebuilding from scratch waste CPU time.