Author: Felix Tang

  • Static HTML with express route

    Example 1 To create an Express route in a file named index.js that handles a HTTP GET request for the path /lastvisit and responds with a plain text containing the timestamp of the previous visit. If a previous visit timestamp exists, it will be sent as plain text in the response. Otherwise, it will respond with “First visit”. Content… Read more

  • Install Node.js and Express on Orange Pi Ubuntu

    Node.js is a runtime environment for executing JavaScript code on servers and across different platforms. It is open-source and widely used for developing applications on both the front-end and back-end. Its official package manager, npm, serves as a repository for software packages. Node.js enjoys popularity among developers due to its extensive community of contributors and… Read more

  • Decryption of Caesar Cipher using highest letter frequency Approach

    Research shows that the letter “E” is the alphabet’s most commonly used vowel. “E” is shown to have a frequency of 11.51% in all words analyzed. To decrypt a Caesar cipher using the highest letter frequency approach, you can follow these steps: Detail explanation: cipher.txt Result: ./freq_compare cipher.txtdictionary loadedcipher.txt loadedLetter with the highest count: lCount:… Read more