-
Enable AJAX access for Tencent Serverless Cloud Functions
An important use case of serverless functions is to act as endpoints for AJAX calls from HTML web pages. This way, we can build truly “serverless” web applications with static HTML + JS pages on the front end, and serverless functions on the backend. A good example is this web page for fitting and plotting eigenvectors, a common machine learning task, on a 2-D data set. The web page calls a WebAssembly-based Tencent Serverless Cloud Function via AJAX.…
-
Reload Deno cache after upgrading
Since it's v1.0 release, the Deno framework is iterating in a very fast pace. It releases a new version almost every other week. It is generally a good idea to keep your Deno install updated with the latest release. The deno command provides a built-in upgrading tool. The following command upgrades Deno to the latest release. $ deno upgrade You can also upgrade or downgrade to a specific version of Deno, like this:…
-
🧐 How to install Ubuntu 20.04 on a Raspberry Pi Zero?
To use the Raspberry Pi as a personal dev server, you should install Ubuntu Server 20.04 TLS. With Ubuntu, you can use the latest Node.js and WebAssembly services on the device. But can I use Ubuntu Server 20.04 on the smallest Raspberry Pi Zero? The NOOBS SD card you purchased from most online stores probably only has the 64-bit version of Ubuntu pre-installed. It would not boot on the 32-bit Raspberry Pi Zero (W).…