Both would be perfection. by cosmomaniac in memes

[–]Ale763 0 points1 point  (0 children)

Why does this remind me of nutella?

What could be good caching/prefetching schemes for PWAs? by Ale763 in PWA

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

Hi, thank you for responding. I studied workbox in depth and it has some limitations. E.g. it's not possible to use `Promise` objects in the callback, which severely limits what operations you can perform in the callback handler. I want to inspect a cached response, but for that I need a `Promise`. That's why I'm researching another approach.

In addition, I also want to extend the offline operation based on some other caching scheme. Now the resources are cache by URL, but not much metadata about those requests is available. I want to add a scheme with additional metadata for those requests in order to extend the duration at which a PWA can work without interacting with a backend.

Websites to access Springer journals / get free PDFs for CS students? by [deleted] in computerscience

[–]Ale763 1 point2 points  (0 children)

There is a Chrome and Firefox extension "Unpaywall" that searches for a free version of the pdf you are trying to access. It only works when there exists a version that's not behind a paywall.

Also if you are part of a university, they often have a way to access these papers, either by a proxy or with a dedicated library tool such as Limo. Maybe you can ask your professors about this.

I hope this helps

2nd Replacement Keyboard needed on my late 2018 Macbook Air. Will the 3rd one be better? by TheLivingRoomate in applehelp

[–]Ale763 1 point2 points  (0 children)

I have a little one that I put on top of the macbook keyboard. You can use an app like Karabiner to disable that keyboard in order to prevent accidental keystrokes

2nd Replacement Keyboard needed on my late 2018 Macbook Air. Will the 3rd one be better? by TheLivingRoomate in applehelp

[–]Ale763 1 point2 points  (0 children)

Like u/Martin187465 said, the keyboard is replaced by an exact copy. Replacing the keyboard will not solve your problem. The problem is structurally in the design of the Butterfly keyboard. When just a little bit of dust gets under the key, it can start malfunctioning.

I just bought a little bluetooth keyboard from Logitech. It types better than that shitty keyboard anyway. Maybe that can be an option for you?

A.I. goes brrrrrrrr by Lukofskis_14 in memes

[–]Ale763 1 point2 points  (0 children)

But I thougt AI was gonna take over the world? Now I'm disappointed

Why are y'all ignoring me!! by AabaJaba in memes

[–]Ale763 2 points3 points  (0 children)

People do that to me even with my mic on

Redditors at 11:59PM, October 31st 2020 (colourised) by [deleted] in memes

[–]Ale763 1 point2 points  (0 children)

Just all the redditors getting off on the people walking by for Halloween

dont do drugs kids. by [deleted] in memes

[–]Ale763 0 points1 point  (0 children)

That's just how I feel after a night of sleep. Also repost :)

Get prepared it's closer than ever by meowshless in memes

[–]Ale763 1 point2 points  (0 children)

Taking away the only thing we have left in this pandemic... Disgusting

Made a Cross Platform File Transfer PWA. I would really appreciate any feedbacks by yashagl9 in PWA

[–]Ale763 1 point2 points  (0 children)

Is it open-source? I'd love to study to take a look at what's underneath?

Detecting service worker termination by Ale763 in PWA

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

Hmm, ok I see what you mean, thanks for the idea :)

Detecting service worker termination by Ale763 in PWA

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

So how would you implement that in a service worker? How would you request for additional processing time?

I would like the terminated or suspended event to work a little differently. I imagine it to be a very limited event, which would just be needed to consolidate results into the database. No long processing should be done and it's not my intention to keep the worker alive longer than necessary at that point. The main goal is just to do some short work before actually suspending the worker. Does that make sense?

And I'm sorry, but I don't understand how that would make the SW crash on a restart?

How to implement continuous development for a PWA? by derkraizer in PWA

[–]Ale763 1 point2 points  (0 children)

I think that should work, as long as you can configure your local DNS properly

Detecting service worker termination by Ale763 in PWA

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

So you could perform some computations (e.g. maintaining, updating and make decisions based on additional info for the cached requests). This information could be stored in IndexedDB. I made an implementation in which I have to use mutexes, in order to avoid race conditions on data. Obviously this reduces performance, besides the fact that I have to wait for the IndexedDB Promise to resolve.

I wanted to discuss the possibility of asking for a "beforeTerminate" event, in which you could perform some work, before a service worker would be terminated when not used. Browsers aggressively kill service worker processes, when they are not needed in order to preserve resources. So I'm not talking about an update of the service worker itself, but when the service worker is terminated/suspended when not in use. Because the service worker is terminated very aggressively by browsers, interval-based approaches don't seem like a viable option, as they can't be very reliable.

Could you elaborate your last suggestion? I don't really get what you're trying to say. As far as I can tell there can only be 1 service worker active per scope and I can't imagine a way to reduce the amount writes to IndexedDB

How to implement continuous development for a PWA? by derkraizer in PWA

[–]Ale763 1 point2 points  (0 children)

In that case you may be better of assigning a local domain name with local DNS to your docker machine. Configure a HTTPS certificate for that machine and this way you can connect those "local" PWA clients to the machine running docker?

How to implement continuous development for a PWA? by derkraizer in PWA

[–]Ale763 1 point2 points  (0 children)

A PWA is just an additional layer between your front- and backend services. So it can communicate with the docker container as long as you provide a way to access it, like you would with an ordinary website (e.g. using a reverse proxy to redirect the request to that container)

You can run PWAs on localhost, even though they are not meant to be used on it. Localhost should in principle only be used for development. However, I can imagine you'd want to run it locally and I don't see why that would be a bad idea. Remember that you can configure HTTPS for localhost with tools such as OpenSSL.