The service worker API comes with a Cache interface that lets you create stores of responses keyed by requests. The programmer is responsible for implementing the service worker script to handle the updates to cache. The items in the cache must be explicitly updated.
Often we save settings or configurations in
If you’ve spent some time using NodeJS, you’d know that there are quite a few
ways to read json files in NodeJS
At Coding Blocks, over more than 3 years now, we have been hard at work, striving to create the best possible journey into the world of programming for thousands of aspiring software developers.
In these years, we have had the fortune of having close to 10,000 budding programmers come and learn a variety of skills including Data Structures and Algorithms, Mobile App Developement, Web Backend and Frontend Development, and more recently, Game Development and Machine Learning.
Let’s take a knee for a moment. Let’s take a pause from all the coding posts, all the various pieces of brilliant code posted by my friends at Coding Blocks and let’s discuss AI. If you’re looking for any sort of code in this post, then look away now. You’re not going to get it. Leave. Now. Or stay, if you want to just read a fun (hopefully) piece looking at AI in a holistic manner.
I have been working on a project where I am supposed to execute some Java code, which uses Android APIs, outside the application environment. This means I don’t have access to any Android component i.e. Activity, Service, Broadcast Receiver etc. I was supposed to get the display’s width and height. Hence arose the need for hacking a way to achieve what is mentioned in the title, i.e. getting the instance of a system service without having an application context.