August Kekulé figured out the chemical configuration structure of Benzene. He notably says that he came about this discovery through a dream he had of a snake biting its own tail. August Kekulé, the scientist responsible for this contribution to field of organic chemistry has been proven to be correct today through various spectroscopic techniques. Other notable people who have had contributed to the modern world through inspiration from their dreams include Alfred Russel Wallace and Elias Howe who contributed to the field of Biological Populations and the invention of the sewing machine (respectively).
Everyone has dreams! This application is a digital journal built to keep track of the dreams that you had while sleeping! In the section about good dreams, bad dreams, or neutral dreams, it is totally up to User discretion to determine whether their dream was good or bad or neutral. An example of a good dream could be you wake up feeling happy and hopeful. An example of a bad dream could be waking up in a state of terror. A neutral dream could be something you dreamed about that happened in the previous day.
This app was built focusing on user friendliness, simplicity, and privacy in mind. Since there is no database and everything is stored on the user's device locally, the user will not have to worry about their data being on someone else's computer. A future goals with this local app is to research forms of encryption and implement one of them. One node package that might do this is "react-secure-storage" from the site https://www.npmjs.com/package/react-secure-storage. Another goal is to allow users to download their information in the event they are upgrading their device and would need to bring their data over to their new device.
This site can take a maximum of approximately 5,000,000 characters in modern browser interfaces such as Chrome and FireFox. Anything more than this may lead to the app malfunctioning. This is because localStorage is used to save data locally on the browser instead of an external server.
See "Find the maximum length of a single string that can be stored in localStorage" solution to problem in the following Stack OverFlow link
According to ChatGPT's answer, it is similar if not the same:
CHATGPT: "The amount of data that can be stored in 10 MB of local storage in JavaScript depends on several factors, including the specific browser implementation and any other data stored in the local storage.
In general, the maximum size of data that can be stored in local storage is around 5-10 MB. However, it's important to note that the actual amount of data you can store may be slightly less than the available space due to browser limitations and overhead.
When it comes to storing data in the form of strings, JavaScript uses the UTF-16 encoding, where each character is represented by 16 bits (2 bytes). This means that each character in a string will occupy 2 bytes of memory.
To estimate the amount of data you can store in 10 MB, you can use the following calculation:
10 MB = 10 * 1024 * 1024 bytes ≈ 10,485,760 bytes
Since each character in a string occupies 2 bytes, you can divide the available bytes by 2 to get an approximate number of characters:
10,485,760 bytes / 2 = 5,242,880 characters
Keep in mind that this is just an estimate, and the actual number of characters you can store may be slightly lower due to additional overhead and browser-specific limitations.
It's also worth noting that local storage is meant for storing small amounts of data such as preferences, settings, or small pieces of user-specific information. If you need to store a large amount of data or complex data structures, you might want to consider alternative storage options such as databases or file systems."
ChatGPT's response on how much does 5,000,000 characters look like is quite intriguing:
ChatGPT: "To give you an idea of how much 5,000,000 characters look like, let's consider a few examples:
Text document: If we assume an average word length of 5 characters (including spaces), 5,000,000 characters would be approximately equivalent to a 1,000,000-word document. This would be a very long document, similar to a lengthy novel or a multi-volume encyclopedia.
Pages of text: Assuming an average of 2,000 characters per page (including spaces), 5,000,000 characters would fill approximately 2,500 pages. This is equivalent to a large stack of paper, similar to a thick book.
Online messages: In the context of online messaging or chat platforms, a single message usually contains a few dozen to a few hundred characters. With 5,000,000 characters, you could send around 25,000 to 100,000 individual messages.
It's important to note that the actual physical appearance or length of text will vary depending on formatting, font size, and other factors. These examples aim to provide a rough estimation based on average assumptions."