When you are traveling in a place which is obviously different from your hometown, you may experience the traditional culture and enjoy a fabulous time there. After the long journey, you may become more energetic spiritually.
凯旋门?秋叶原!
还算这群西哥特蛮子有点品味😋
There is no comment, let's add the first one.
Machine learning is a subject of artificial intelligence, which means programming computers in terms of algorithm so that they can learn from data. Supervised learning and unsupervised learning are two types of Machine Learning systems. One can easily tell the difference between them by the criterion: whether or not they are trained with human supervision. Supervised learning and unsupervised learning are two extreme. The former completely depends on human supervision, while the latter doesn't n ...
In the previous article Supervised and Unsupervised learning in machine learning, we explains the meaning of machine learning. As AI is making waves across industries, we often hear the terms "deep learning" and "machine learning" getting thrown around interchangeably. While both are crucial for AI advancements, they are indeed two different subjects with distinct characteristics. Deep learning is a branch of machine learning, whose methods are based on artificial neural networks (ANNs). In othe ...
The note is mainly a sketch of basic knowledge concerning general topology, differential geometry, functional analysis, algebraic geometry, etc., starting from a discussion of Euclidean spaces. However, there maybe some mistakes in the note, so use at your own risk. For simplicity, some details are omitted and can be found in the references provided. Further materials concerning algebraic geometry, especially arithmetic algebraic geometry, can be referred to another note written by the author, N ...
Do you also want to highlight the code block in your website like other platforms? There are two Javascript libraries that help you acheive syntax highlighting. They are Prism.js and highlight.js. In this tutorial, we will show how to use Prism.js to do syntax highlighting with Nuxt.js.First, you can use npm to install PrismJS:npm install prismjsNext, go to composables directory and create a new file prism.js which looks like:import Prism from 'prismjs' import 'prismjs/themes/prism-tomorrow.css' ...
In previous the article Mathjax loads slow. How to load local JS file with Nuxt?, we explain how to render math equations in Nuxt.js using local CDN. With local CDN, we could easily load many Javascript libraries without slowing down our page loading.PrismJS is a light Javascript library that highlights the code blocks on your pages. In the ordinary way that setup PrismJS (see How to do syntax highlighting for code blocks in Nuxt?), you need to import the file of almost every language that you n ...
Suppose that we have a string str together with a list of strings arr = [str1, str2, ... ]. How to find similar string of str in arr? To do this, we can calculate the similarity of str and elements in arr one by one. But how to calculate the degree of similarity between str and an element in arr? First, we need a measurement of the similarity of two strings. In fact, there are many methods that measure the similarity of strings. In this tutorial, we will use python to find similar strings of str ...
In Django, __icontains and __in are field lookups to the QuerySet methods. __icontains is a case-insensitive containment test, and __in means that the field is in a given iterable. So I would like to do the following lookup:keywords = ['How', 'to', 'setup', 'PrismJS', 'and', 'Autoloader', 'plugin', 'with', 'Nuxt', '3?'] #Possible keywords of title Writings.objects.filter(title__icontains__in=arr)Unfortunately, we can not combine field lookups in Django. To implement our desire, we can use Q() ob ...
In How to render math in Vue or Nuxt?, we explain the way to use Mathjax to render beautiful math formula in Nuxt.js. However, using CDN to load Mathjax is easy, but it degrades the performance of our pages. In other words, Mathjax may load slow if it is loaded by CDN.One of the solutions is to load Mathjax locally. You can use npm to install Mathjax to your project. npm install mathjax@4.0.0-beta.6However, it is difficult to integrate with Mathjax in Nuxt. Not only because there is little infor ...
I'm using VSCode to write my Nuxt app. My VSCode was fine before, but it suddenly starts to continuously show me the error :Restarting the VSCode did not make any difference. And all my installed plugins failed, reinstalling the plugin also didn't work. Judging by the hint of VSCode, I realized that I had changed my public directory, which caused this error. Therefore, I tried to add public directory to my exclude list in tsconfig.json :{ // https://nuxt.com/docs/guide/concepts/typescript "e ...
There are several ways to write and render beautiful math on web. However, some methods can't be directly applied to Vue.js/Nuxt.js. In this article, we will explain how to use katex and mathjax to render math in Vue.js/Nuxt.js.KatexTo automatically render all math in all the pages, you need to use CDN to load katex :<!-- index.html --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="icon" href="/poem-studio-favicon-black.svg" ...
Problem. I installed nginx on my Debian 12 server following the steps in the official documentation Installing NGINX Open Source | NGINX Documentation. At first, everything is OK😇. Running sudo nginx -v returns the correct version of nginx.However, recently, when I ran the same command, it returned command not found:sudo nginx sudo: nginx: command not found nginx bash: nginx: command not foundEither sudo nginx or nginx gives the same result😣.Solution. To solve this problem, first you need to de ...
Let $A$ be a commutative ring with identity. Then we have an isomorphism $$A \rightarrow \textrm{Hom}_{A-mod}(A,A), a \mapsto (x \mapsto ax)$$, whose inverse is $$\textrm{Hom}_{A-mod}(A,A) \rightarrow A, \varphi \mapsto \varphi(1).$$Then applying this isomorphism, we get $$\textrm{Hom}_{A-mod}( \textrm{Hom}_{A-mod}(A,A) ,A) \cong \textrm{Hom}_{A-mod}(A,A) \cong A.$$