From 49c7386493690343410ccc51f3c527429f5c00ff Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 10 Jul 2012 10:51:43 -0400 Subject: [PATCH] updated to not be broken. --- database/fortunes.dat | 22 +++++++++++++++++++ .../tests_filesystem/test_byte_filer.cpp | 5 +---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/database/fortunes.dat b/database/fortunes.dat index e28a2e1a..0626d076 100644 --- a/database/fortunes.dat +++ b/database/fortunes.dat @@ -37988,3 +37988,25 @@ of those knots in our minds, which are like knots in space. If you can't be a good example, then you'll just have to be a horrible warning. -- Catherine Aird +~ +THE MIND OF CLEAR LIGHT + + Is spiritual practice really worthwhile? Is it really possible to eliminate +from within ourselves the forces that give rise to suffering? As is said, +“The ultimate nature of mind is clear light.” Consciousness has many +levels, and although the coarser levels are affected by the defiling forces, +the most subtle level remains free of gross negativities. In the Vajrayana +this subtle level of consciousness is called the mind of clear light. + The delusions and emotional afflictions as well as the dualistic mind of +right and wrong, love and hatred, etc., are associated only with the coarse +levels of consciousness. At the moment, we are totally absorbed in the +interplay of these coarse states, so we must begin our practice by working +within them. This means consciously encouraging love over hate, patience in +place of anger, emotional freedom rather than attachment, kindness over +violence, and so forth. Doing this brings immediate peace and calm to the +mind, thus making higher meditation possible. + Then, because grasping at a self and at phenomena as being truly existent is +the cause of all the vast range of distorted states of mind, one cultivates +the wisdom that eliminates this ego-grasping. To overcome ego-grasping is to +overcome the entire host of mental distortions. + -- H.H. the Dalai Lama diff --git a/nucleus/library/tests_filesystem/test_byte_filer.cpp b/nucleus/library/tests_filesystem/test_byte_filer.cpp index fca6b739..0bf0ff1a 100644 --- a/nucleus/library/tests_filesystem/test_byte_filer.cpp +++ b/nucleus/library/tests_filesystem/test_byte_filer.cpp @@ -128,11 +128,8 @@ int test_byte_filer::run_simple_test() int should_be_failure = fred.write(to_fake_stuff); ASSERT_EQUAL(should_be_failure, 0, "write on read only, should not succeed"); -/// int fredsize = int(fred.size()); -/// fred.chunk_factor(fredsize); - #ifdef DEBUG_BYTE_FILER - LOG(a_sprintf("about to try reading from file %d bytes", fredsize)); + LOG(a_sprintf("about to try reading from file %d bytes", block_size * 2)); #endif byte_array file_contents; int bytes_read = fred.read(file_contents, block_size * 2); -- 2.34.1