Moonglade

Modern Markdown blogging with AI-powered localization and search.

Tag: study

RSS

Debug Vue3 source code (deprecated)

This article primarily shares an awkward experience of accidentally using Vue 2 source code while debugging Vue 3 source code, and elaborates in detail on the correct debugging approach and configuration methods. The core strategy is to have the Vue 3 source code generate sourcemaps and link them to the project template via a local build, replacing remote package references. Specifically, in Vue's Rollup build configuration file, you need to add `sourcemap: true` in the `output` section to enable source mapping. Regarding the debugging environment configuration, the article provides a VS Code `launch.json` example covering three debugging scenarios: first, debugging the `npm run build` build script itself; second, debugging a remote project based on the official Vue template, where you need to configure `outFiles` to correctly map the source code; and third, debugging raw HTML files, which also requires specifying the `outFiles` path to point to the local Vue source code directory. By combining local builds with source mapping, developers can more effectively track and debug Vue 3 internal logic, avoiding the difficulties of directly debugging minified code, and providing a practical technical solution for deeply understanding the framework's source code.

Views 84
2024 source-code study vue vue3 web

Related Content to Note

This article comprehensively outlines the core technology stack required for full-stack development and operations. The frontend section covers React, Vue, ES, TS, CSS, and UI frameworks, aiming to build modern user interfaces. The backend employs Node.js with the NestJS framework for data type ORM management, integrates mainstream databases and caching technologies such as MySQL, PostgreSQL, MongoDB, and Redis, and incorporates Nginx reverse proxy, Kafka message queue, and V8 engine optimization to ensure high-concurrency processing capabilities. On the operations side, containerized deployment is implemented based on Docker and Containerd, orchestration management is handled via Kubernetes, and a robust observability system is established using Elastic Stack, APM, monitoring, and distributed tracing systems, thereby ensuring high availability and stability of services.

Views 52
2024 Backend Technologies Frontend Development docker study todo

Creating Ventoy Ubuntu 24.04

This article documents the process of installing Ubuntu 24.04 on a new host. Motivated by the release of the new system and the appeal of the updated icons, the author decided to upgrade from the previous version to Ubuntu 24.04. The core of the operation lies in leveraging the Ventoy tool to simplify the installation workflow, eliminating the need for complex preparation; one only needs to download the corresponding ISO image and drag it into the drive. Because the existing Ventoy version was outdated, the author first moved the image files, upgraded Ventoy to the latest version to ensure support for the new system, and then restored the files to their original locations to complete the preparation. The article specifically notes that Ventoy may encounter compatibility issues with older motherboards or BIOS settings (such as matching LEGACY and UEFI modes). It is recommended that users consult the official compatibility list before proceeding to verify support, ensuring a smooth entry into the installation interface. Overall, this is an efficient and convenient method for installing the Linux system.

Views 568
Operating System Installation Ventoy daily study ubuntu work

New System Preinstalled Software Record

This document records a checklist for setting up a new host and configuring its environment, aiming to provide a standardized reference for future computer deployments or pre-installation for new employees. The content covers both Windows and Ubuntu systems, listing development tools and daily-use applications for each. The core of the development environment includes VS Code Insiders, Git, Docker, K8s, as well as database tools DBeaver and MongoDB Compass. For network proxy solutions, v2rayN or Clash is recommended for Windows, while alternatives such as Qv2ray are mentioned for Ubuntu. Regarding daily applications, cross-platform tools such as Edge, VLC, Calibre, and OBS are prioritized, and Windows-specific utilities like Listary and CopyQ are also included. Additionally, the article compiles key resources required for private cloud drive synchronization, including SSH keys, proxy configurations, and Docker mirror sources. It also provides specific configuration commands for SSH proxy forwarding on both Windows and Ubuntu, facilitating quick reuse and enabling an efficient, systematic installation process.

Views 82
Operating System Setup Software Installation daily env study work

Anhui classifies the fundamental consciousness of the eighth consciousness under the aggregate of consciousness

This article provides an in-depth exploration of the definition and structure of the "Vijnana Skandha" (Consciousness Aggregate) within Buddhist Yogacara philosophy, synthesizing classical expositions from Xuanzang's translation of the *Mahāyānasaṃkṣepa-sūtra* (Great Vehicle Abhidharma on the Five Aggregates), Ananda's *Mahāyānasaṃkṣepa-sūtra* (Great Vehicle Extensive Abhidharma on the Five Aggregates), and the *Zongjing Lu* (Record of the Doctrine Mirror). The core argument posits that the defining characteristic of the Vijnana Skandha is its function of discerning its objects of cognition. The most supreme mind is identified as the Ālaya-vijñāna (Storehouse Consciousness), which is also known as the Ādāna-vijñāna (Clinging Consciousness) due to its capacity to gather the seeds of various karmic formations, retain the aspect of "I-attachment," and sustain the physical body. The most supreme mind-object (Manas) refers to the defiled mind that constantly takes the Ālaya-vijñāna as its object and is invariably associated with delusion regarding the self, views of the self, and other defilements. The article emphasizes that the Vijnana Skandha is constituted by the Eight Consciousnesses, comprising the six transcending consciousnesses, the defiled mind, and the Ālaya-vijñāna. Addressing the Theravada position that the six consciousnesses serve as the basis for name-and-form (nāmarūpa) and that an eighth consciousness is unnecessary, the text argues that the six consciousnesses are already subsumed within "name" (nāma). Furthermore, because the six consciousnesses are intermittent and lack the power to constantly sustain name-and-form, the text establishes the importance of the eighth consciousness as an independent component external to name-and-form and as a constant support. This argument thereby refines the Yogacara system's exposition of the mental and cognitive structure.

Views 108
Buddhist Philosophy Mahayana Buddhism Vijnana Skandha liushi study weishi

Notes on Yinming

This article systematically expounds on the three-member syllogism and various logical fallacies in the field of Hetuvidya (Buddhist logic). It first defines the three essential elements—thesis (prameya), reason (hetu), and example (upamana)—and their logical relationships, emphasizing the three fundamental rules: universality in the thesis, necessary presence in the similar class, and universal absence in the dissimilar class. Subsequently, it provides an in-depth analysis of the nine fallacies in the apparent thesis, including issues related to direct perception (pratyaksha), inference (anumana), self-doctrine (sva-sastra), worldly convention (loka), self-contradiction (sva-vacana-viruddha), and already-agreed-upon points (siddha). The article focuses on parsing the fourteen fallacies in the apparent reason, covering four types of unproven reasons due to lack of acceptance by both parties, by one party only, due to doubt, or due to lack of a valid basis; six types of indeterminate reasons involving commonality, non-commonality, partial conversion in similar and dissimilar classes, and partial conversion in both classes; and four types of contradictory reasons involving the nature of the property, the difference in the property, the particular nature of the subject, and the difference in the subject. Finally, it details the five types of errors in each of the apparent similar example and the apparent dissimilar example, such as failure to establish the reason and the thesis, lack of connection, reversed connection, failure to exclude, and failure to separate. The aim is to establish rigorous standards of reasoning by distinguishing these logical fallacies, ensuring that the argument is flawless in terms of what is established (prameya), what establishes (praman), and the means of establishment (hetu), thereby effectively achieving valid inference.

Views 141
Argumentation Fallacies logic study weishi yinming

Sutra of the Lankavatara: One Hundred and Eight Verses

This passage, through the dense enumeration of paired concepts such as "a sentence is not a sentence," "a constant is not a constant," and "a mind-sentence is not a mind-sentence," reveals the core Mahayana Buddhist thought of "deconstructing appearances to reveal essence," particularly as seen in the *Laṅkāvatāra Sūtra* or Yogācāra philosophy. The text repeatedly employs the "A is not A" construction to deconstruct the binary opposition between linguistic concepts (sentences) and ultimate reality, negating attachment to designations such as arising and ceasing, permanence and annihilation, existence and non-existence, good and evil, and the mundane and the holy. This rhetorical device is not a simple logical negation but serves to reveal that all verbal and conceptual constructs are provisional, essentially empty and tranquil, unattainable and ungraspable. Its purpose is to guide practitioners to transcend textual forms and conceptual forms, breaking the dualistic view of worldly and supramundane dharma, thereby realizing self-attested holy wisdom and the joy of the present dharma. Whether discussing afflictions, desire, supernatural powers, nirvana, or specific material phenomena such as wind, earth, water, and fire, or even religious institutions like the Vinaya and monks, all are incorporated into this framework of "non-," intended to demonstrate that all dharmas are manifestations of mind, beyond words and thought, ultimately pointing to the ultimate truth of wordless self-nature and the cessation of the path of speech, emphasizing the path of liberation that does not rely on textual phrases or cling to names and forms.

Views 72
Buddhist Philosophy Emptiness Concept Negative Language study weishi zhongzhe

Local branches are divided into two types: with intent and without intent

This text systematically delineates the criteria for distinguishing between "cognized mind" and "uncognized mind" from five dimensions, based on the doctrinal framework of Yogācāra as found in the *Yogācārabhūmi-śāstra*. First, within the gate of establishing the basis of location, it is indicated that the five sensory consciousnesses, the mental consciousness, and states such as those involving deliberation and sustained attention belong to the cognized mind, whereas the absorption of no thought, the existence in the realm of no thought, and the cessation of perception and feeling belong to the uncognized mind. Second, within the gate of establishing the distinction between disturbed and undisturbed mind, it is held that if the mind is disturbed by the four perversions, it loses its intrinsic nature and is thus regarded as the uncognized mind; if the mind is not disturbed, it is the cognized mind. Third, the gate of establishing arising and non-arising emphasizes that the arising of mind requires the fulfillment of conditions; if it encounters eight kinds of obstacles, such as the destruction of sense faculties or the absence of objects, the mind does not arise, resulting in the uncognized mind. The gate of establishing distinct positions explicitly excludes six states—unconscious sleep, fainting, the absorption of no thought, the existence in the realm of no thought, the cessation of perception and feeling, and the remainderless Nibbāna realm—as the uncognized mind, with all other states being cognized. Finally, the gate of establishing the ultimate meaning points out, from the perspective of ultimate reality, that only the remainderless Nibbāna realm, in which the Ālaya-vijñāna is permanently extinguished, constitutes the true uncognized mind; although the other states involve the temporary cessation of the transformed consciousnesses, the Ālaya-vijñāna is not cut off, and therefore they are not the uncognized mind in the ultimate sense. In summary, these five gates progress step by step, moving from phenomena to the ultimate essence, thereby comprehensively clarifying the basis for determining the presence or absence of mind and consciousness.

Views 67
Buddhist Philosophy Mental states Mindful States Mindless States shidilun study weishi zhongzhe

Local non-Śamatha-vipaśyanā in the three stages

This passage elaborates in detail on the twelve characteristics of the "non-meditative states" (non-samādhi grounds) in Buddhism, aiming to define which mental states cannot be considered true meditation. First, the five sense consciousnesses are not classified as meditative states because of their inherently unstable nature; furthermore, mental states and mental factors associated with the Desire Realm, despite possessing one-pointedness of mind, lack the refreshing quality of lightness and ease (prasādana), and thus are not designated as samādhi. Second, for beginners in meditation, if the mind scatters and flows due to deep attachment to sensual pleasures, or if it becomes overly contracted due to drowsiness and sleep, these conditions also fall under non-meditative states. Third, even in the absence of distraction and drowsiness, if the practitioner has not yet attained intentional awareness (manasikāra), or if they have attained intentional awareness but have not fully realized the ultimate stage of preparatory practice (upāya) and its fruit, the state is still not considered true samādhi. In addition, if the mind is defiled by afflictions such as attachment to the taste of meditation, or if, although free from defilements, the practitioner lacks freedom and ease in entering, abiding in, and emerging from meditation—experiencing stiffness and difficulty—this is also a non-meditative state. If one has only attained worldly meditative states and has not permanently eradicated the latent tendencies (anuśaya) of afflictions, resulting in an impure mind, this likewise does not qualify as true samādhi. Finally, if one emerges from meditation or loses the samādhi previously attained, this is also classified as a non-meditative state. These twelve cases comprehensively exclude mental states that do not meet the criteria for true meditation, examining dimensions such as intrinsic nature, lightness and ease, progression, distraction, contraction, attainment, completeness, defilement, freedom, purity, and arising or regression, thereby providing practitioners with a clear theoretical basis for distinguishing between meditative and non-meditative states.

Views 56
Buddhist Philosophy Non Dhyana Grounds shidilun study weishi zhongzhe

Samādhi in the Local Division (Excerpt)

This text details the core system and progressive stages of Buddhist meditation practice. It first defines the twenty-two contemplative aspects—such as the object of practice, attention, and the arising of mind—encompassing common and specific characteristics, subtle and gross attributes, and defiled and pure states. It clarifies how to purify consciousness by employing right effort to distance oneself from defilements, cultivating luminosity, and observing contemplative objects. The text analyzes the four powers for entering meditative absorption (cause, means, explanation, and instruction) and the four types of meditators (desire, view, conceit, and doubt). It distinguishes between meditative absorptions characterized by desire, purity, and non-outflow, and defines the depth of meditative states based on the stages of access, dwelling, surpassing, and discernment. Subsequently, it elaborates on the eight liberations, eight bases of mastery, and ten perceptions, explaining how to attain freedom and supernatural powers by subduing inferior states and cultivating aversion toward the objects of meditation. It deeply analyzes the three samadhis of emptiness, signlessness, and wishlessness, as well as the four immeasurables, revealing the elevation of meditative states from those with initial and sustained application to those without, and pointing out the differences among small, great, and immeasurable samadhis. Finally, it emphasizes the balanced practice of calm (shamatha) and insight (vipassana), likening the process to refining raw gold by removing impurities and achieving malleability. This ultimately leads to the attainment of the diamond-like samadhi and blissful abiding in the present life, realizing the ultimate liberation through the severance of afflictions at the path of seeing and the renunciation of desire at the path of cultivation, thereby ensuring the consistency and non-controversial nature of the meaning and doctrine of the sacred teachings.

Views 75
Samatha Vipassana shidilun study weishi zhongzhe