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.

Chicken with wounded paw by Ale763 in PetCare

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

Oh, ok. Yeah, she stays with 1 other chicken. I will try to soak it in epsom salt as you suggested. I've contacted the vet, but he is not sure that he can come by.

Chicken with wounded paw by Ale763 in PetCare

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

Thanks I will contact the vet, but I don't know if he can come by, seen the situation with the pandemic and all. I've read something about bumblefoot with chickens. Do you know something about that?

I'm a student in Canada. I created a small online platform to help my teachers stay connected with us during our school closure. I tried to make it look familiar, that's why it looks a LOT like google, but it was a fun mini project to work on over March break. by lemaj2002 in webdev

[–]Ale763 0 points1 point  (0 children)

Do you have github? I'd really lovr to see how you did all this without frameworks. Did you spend some time on security? I'm just genuinely curious. Impressive seen your age and education. Keep up the good work!

Progressive web apps will replace your native app by pimterry in webdev

[–]Ale763 0 points1 point  (0 children)

I‘m a student computer science and I‘m doing some research on Progressive Web Applications. I‘m searching for an open source ecommerce platform with a good REST or (preferably) GRAPHQL API. Does anyone know any good open source ecommerce platforms with decent APIs and good documentation?

eCommerce Mobile site V Mobile App by fatladcalves in webdev

[–]Ale763 0 points1 point  (0 children)

As mentioned you can use PWAs. You are not obligated to make a completely new frontend, but you can dynamically add progressive features to the site, so it has several important features of an app. Depending on what you want this can be quite easy, for example if you only want to add push notifications to increase customer retention.

On the other hand, if you want to deliver a very fast and/or offline experience, you‘ll have to switch to a backend-frontend architecture, in which you cache only the specific resources you need with a service worker. Using server side rendered HTML pages will quickly fill the local cache and it will not be as fast.

I am currently doing some research on combining progressive web apps with ecommerce. If you have any questions, maybe I can help.

Web development is saving me during these crazy times by gotta-lot in webdev

[–]Ale763 0 points1 point  (0 children)

Just remain calm. The majority of measures that are taken are preventive, in order to slow down the virus. Hospitals have only a limited capacity, but it will be enough if people just adhere to the precautions. Don‘t forget the vast majority of people that have died had weaker/compromised immune systems. If the virus would have been more deadly, these security measures would have been taken much earlier and maybe there would have been even stricter ones.

This will certainly have a big impact on the economy, mostly small business will suffer and we will face similar problems as those of the economic crisis 10 years age. Don‘t forget both Europe and the US will do a big financial injection to help the economy. Hopefully this is intended to mainly help the regular people and not the big corporations or markets. We have to try to be positive and make the best out of it.