PATANJALI'S YOGA APHORISMS
CHAPTER II
तपः स्वाध्यायेश्वरप्रणिधानानि क्रियायोगः ॥१॥
1. Mortification, study, and surrendering fruits of work to God are called Kriy‚-yoga.
Those Sam‚dhis with which we ended our last chapter are very difficult to attain; so we must take them up slowly. The first step, the preliminary step, is called Kriya-yoga. Literally this means work, working towards Yoga. The organs are the horses, the mind is the rein, the intellect is the charioteer, the soul is the rider, and the body is the chariot. The master of the household, the King, the Self of man, is sitting in this chariot. If the horses are very strong and do not obey the rein, if the charioteer, the intellect, does not know how to control the horses, then the chariot will come to grief. But if the organs, the horses, are well controlled, and if the rein, the mind, is well held in the hands of the charioteer, the intellect, the chariot reaches the goal. What is meant, therefore, by this mortification? Holding the rein firmly while guiding the body and the organs; not letting them do anything they like, but keeping them both under proper control. Study. What is meant by study in this case? No study of novels or story books, but study of those works which teach the liberation of the Soul. Then again this study does not mean controversial studies at all. The Yogi is supposed to have finished his period of controversy. He has had enough of that, and has become satisfied. He only studies to intensify his convictions. V‚da and Siddh‚nta — these are the two sorts of scriptural knowledge — Vada (the argumentative) and Siddhanta (the decisive). When a man is entirely ignorant he takes up the first of these, the argumentative fighting, and reasoning pro and con; and when he has finished that he takes up the Siddhanta, the decisive, arriving at a conclusion. Simply arriving at this conclusion will not do. It must be intensified. Books are infinite in number, and time is short; therefore the secret of knowledge is to take what is essential. Take that and try to live up to it. There is an old Indian legend that if you place a cup of milk and water before a R‚ja-Hamsa (swan), he will take all the milk and leave the water. In that way we should take what is of value in knowledge, and leave the dross. Intellectual gymnastics are necessary at first. We must not go blindly into anything. The Yogi has passed the argumentative state, and has come to a conclusion, which is, like the rocks, immovable. The only thing he now seeks to do is to intensify that conclusion. Do not argue, he says; if one forces arguments upon you, be silent. Do not answer any argument, but go away calmly, because arguments only disturb the mind. The only thing necessary is to train the intellect, what is the use of disturbing it for nothing? The intellect is but a weak instrument, and can give us only knowledge limited by the senses. The Yogi wants to go beyond the senses, therefore intellect is of no use to him. He is certain of this and, therefore, is silent, and does not argue. Every argument throws his mind out of balance, creates a disturbance in the Chitta, and a disturbance is a drawback. Argumentations and searchings of the reason are only by the way. There are much higher things beyond them. The whole of life is not for schoolboy fights and debating societies. "Surrendering the fruits of work to God" is to take to ourselves neither credit nor blame, but to give up both to the Lord and be at peace.
समाधि-भावनार्थः क्लेश-तनूकरणार्थश्च ॥२॥
2. (It is for) the practice of Samadhi and minimising the pain-bearing obstructions.
Most of us make our minds like spoilt children, allowing them to do whatever they want. Therefore it is necessary that Kriya-yoga should be constantly practised, in order to gain control of the mind, and bring it into subjection. The obstructions to Yoga arise from lack of control, and cause us pain. They can only be removed by denying the mind, and holding it in check, through the means of Kriya-yoga.
अविद्यास्मिता-राग-द्वेषाभिनिवेशाः क्लेशाः ॥३॥
3. The pain-bearing obstructions are — ignorance, egoism, attachment, aversion and clinging to life.
These are the five pains, the fivefold tie that binds us down, of which ignorance is the cause and the other four its effects. It is the only cause of all our misery. What else can make us miserable? The nature of the Soul is eternal bliss. What can make it sorrowful except ignorance, hallucination, delusion? All pain of the Soul is simply delusion.
अविद्याक्षेत्रमुत्तरेषां प्रसुप्त-तनु-विच्छिन्नोदाराणाम् ॥४॥
4. Ignorance is the productive field of all these that follow, whether they are dormant, attenuated, overpowered, or expanded.
Ignorance is the cause of egoism, attachment, aversion, and clinging to life. These impressions exist in different states. They are sometimes dormant. You often hear the expression "innocent as a baby," yet in the baby may be the state of a demon or of a god, which will come out by degrees. In the Yogi, these impressions, the Samsk‚ras left by past actions, are attenuated, that is, exist in a very fine state, and he can control them, and not allow them to become manifest. "Overpowered" means that sometimes one set of impressions is held down for a while by those that are stronger, but they come out when that repressing cause is removed. The last state is the "expanded," when the Samskaras, having helpful surroundings, attain to a great activity, either as good or evil.
अनित्याशुचि-दुःखानात्मसु नित्य-शुचि-सुखात्मख्यातिरविद्या ॥५॥
5. Ignorance is taking the non-eternal, the impure, the painful, and the non-Self for the eternal, the pure, the happy, and the ¬tman or Self (respectively).
All the different sorts of impressions have one source, ignorance. We have first to learn what ignorance is. All of us think, "I am the body, and not the Self, the pure, the effulgent, the ever blissful," and that is ignorance. We think of man, and see man as body. This is the great delusion.
दृग्दर्शनशक्त्योरेकात्मतेवास्मिता ॥६॥
6. Egoism is the identification of the seer with the instrument of seeing.
The seer is really the Self, the pure one, the ever holy, the infinite, the immortal. This is the Self of man. And what are the instruments? The Chitta or mind-stuff, the Buddhi or determinative faculty, the Manas or mind, and the Indriyas or sense-organs. These are the instruments for him to see the external world, and the identification of the Self with the instruments is what is called the ignorance of egoism. We say, "I am the mind," "I am thought," "I am angry," or "I am happy". How can we be angry and how can we hate? We should identify ourselves with the Self that cannot change. If It is unchangeable, how can It be one moment happy, and one moment unhappy? It is formless, infinite, omnipresent. What can change It ? It is beyond all law. What can affect it? Nothing in the universe can produce an effect on It. Yet through ignorance, we identify ourselves with the mind-stuff, and think we feel pleasure or pain.
सुखानुशयी रागः ॥७॥
7. Attachment is that which dwells on pleasure.
We find pleasure in certain things, and the mind like a current flows towards them; and this following the pleasure centre, as it were, is what is called attachment. We are never attached where we do not find pleasure. We find pleasure in very queer things sometimes, but the principle remains: wherever we find pleasure, there we are attached.
दुःखानुशयी द्वेषः ॥८॥
8. Aversion is that which dwells on pain.
That which gives us pain we immediately seek to get away from.
स्वरसवाही विदुषोऽपि तथारूढोऽभिनिवेशः ॥९॥
9. Flowing through its own nature, and established even in the learned, is the clinging to life.
This clinging to life you see manifested in every animal. Upon it many attempts have been made to build the theory of a future life, because men are so fond of life that they desire a future life also. Of course it goes without saying that this argument is without much value, but the most curious part of it is, that, in Western countries, the idea that this clinging to life indicates a possibility of future life applies only to men, but does not include animals. In India this clinging to life has been one of the arguments to prove past experience and existence. For instance, if it be true that all our knowledge has come from experience, then it is sure that that which we never experienced we cannot imagine or understand. As soon as chickens are hatched they begin to pick up food. Many times it has been seen, where ducks have been hatched by hens, that, as soon as they came out of the eggs they flew to water, and the mother thought they would be drowned. If experience be the only source of knowledge, where did these chickens learn to pick up food, or the ducklings that the water was their natural element? If you say it is instinct, it means nothing — it is simply giving a word, but is no explanation. What is this instinct? We have many instincts in ourselves.  It has become instinct. So with every work we do; by practice it becomes instinct, it becomes automatic; but so far as we know, all the cases which we now regard as automatic are degenerated reason. In the language of the Yogi, instinct is involved reason. Discrimination becomes involved, and gets to be automatic Samskaras. Therefore it is perfectly logical to think that all we call instinct in this world is simply involved reason. As reason cannot come without experience, all instinct is, therefore, the result of past experience. Chickens fear the hawk, and ducklings love the water; these are both the results of past experience. Then the question is whether that experience belongs to a particular soul, or to the body simply, whether this experience which comes to the duck is the duck's forefathers' experience, or the duck's own experience. Modern scientific men hold that it belongs to the body, but the Yogis hold that it is the experience of the mind, transmitted through the body. This is called the theory of reincarnation.
We have seen that all our knowledge, whether we call it perception, or reason, or instinct, must come through that one channel called experience, and all that we now call instinct is the result of past experience, degenerated into instinct and that instinct regenerates into reason again. So on throughout the universe, and upon this has been built one of the chief arguments for reincarnation in India. The recurring experiences of various fears, in course of time, produce this clinging to life. That is why the child is instinctively afraid, because the past experience of pain is there in it. Even in the most learned men, who know that this body will go, and who say "never mind, we have had hundreds of bodies, the soul cannot die" — even in them, with all their intellectual convictions, we still find this clinging on to life. Why is this clinging to life? We have seen that it has become instinctive. In the psychological language of the Yogis it has become a Samskara. The Samskaras, fine and hidden, are sleeping in the Chitta. All this past experience of death, all that which we call instinct, is experience become subconscious. It lives in the Chitta, and is not inactive, but is working underneath.
The Chitta-Vrittis, the mind-waves, which are gross, we can appreciate and feel; they can be more easily controlled, but what about the finer instincts? How can they be controlled? When I am angry, my whole mind becomes a huge wave of anger. I feel it, see it, handle it, can easily manipulate it, can fight with it; but I shall not succeed perfectly in the fight until I can get down below to its causes. A man says something very harsh to me, and I begin to feel that I am getting heated, and he goes on till I am perfectly angry and forget myself, identify myself with anger. When he first began to abuse me, I thought, "I am going to be angry". Anger was one thing, and I was another; but when I became angry, I was anger. These feelings have to be controlled in the germ, the root, in their fine forms, before even we have become conscious that they are acting on us. With the vast majority of mankind the fine states of these passions are not even known — the states in which they emerge from subconsciousness. When a bubble is rising from the bottom of the lake, we do not see it, nor even when it is nearly come to the surface; it is only when it bursts and makes a ripple that we know it is there. We shall only be successful in grappling with the waves when we can get hold of them in their fine causes, and until you can get hold of them, and subdue them before they become gross, there is no hope of conquering any passion perfectly. To control our passions we have to control them at their very roots; then alone shall we be able to burn out their very seeds. As fried seeds thrown into the ground will never come up, so these passions will never arise.
ते प्रतिप्रसवहेयाः सूक्ष्माः ॥१०॥
10. The fine Samskaras are to be conquered by resolving them into their causal state.
Samskaras are the subtle impressions that manifest themselves into gross forms later on. How are these fine Samskaras to be controlled? By resolving the effect into its cause. When the Chitta, which is an effect, is resolved into its cause, Asmit‚ or Egoism, then only, the fine impressions die along with it. Meditation cannot destroy these.
ध्यानहेयास्तद्वृत्तयः ॥११॥
11. By meditation, their (gross) modifications are to be rejected.
Meditation is one of the great means of controlling the rising of these waves. By meditation you can make the mind subdue these waves, and if you go on practicing meditation for days, and months, and years, until it has become a habit, until it will come in spite of yourself, anger and hatred will be controlled and checked.
क्लेशमूलः कर्माशयो दृष्टादृष्टजन्मवेदनीयः ॥१२॥
12. The "receptacle of works" has its root in these pain-bearing obstructions, and their experience is in this visible life, or in the unseen life.
By the "receptacle of works" is meant the sum-total of Samskaras. Whatever work we do, the mind is thrown into a wave, and after the work is finished, we think the wave is gone. No. It has only become fine, but it is still there. When we try to remember the work, it comes up again and becomes a wave. So it was there; if not, there would not have been memory. Thus every action, every thought, good or bad, just goes down and becomes fine, and is there stored up. Both happy and unhappy thoughts are called pain-bearing obstructions, because according to the Yogis, they, in the long run, bring pain. All happiness which comes from the senses will, eventually, bring pain. All enjoyment will make us thirst for more, and that brings pain as its result. There is no limit to man's desires; he goes on desiring, and when he comes to a point where desire cannot be fulfilled, the result is pain. Therefore the Yogis regard the sum-total of the impressions, good or evil, as pain-bearing obstructions; they obstruct the way to freedom of the Soul.
It is the same with the Samskaras, the fine roots of all our works; they are the causes which will again bring effects, either in this life, or in the lives to come. In exceptional cases when these Samskaras are very strong, they bear fruit quickly; exceptional acts of wickedness, or of goodness, bring their fruits even in this life. The Yogis hold that men who are able to acquire a tremendous power of good Samskaras do not have to die, but, even in this life, can change their bodies into god-bodies. There are several such cases mentioned by the Yogis in their books. These men change the very material of their bodies; they re-arrange the molecules in such fashion that they have no more sickness, and what we call death does not come to them. Why should not this be? The physiological meaning of food is assimilation of energy from the sun. The energy has reached the plant, the plant is eaten by an animal, and the animal by man. The science of it is that we take so much energy from the sun, and make it part of ourselves. That being the case, why should there be only one way of assimilating energy? The plant's way is not the same as ours; the earth's process of assimilating energy differs from our own. But all assimilate energy in some form or other. The Yogis say that they are able to assimilate energy by the power of the mind alone, that they can draw in as much of it as they desire without recourse to the ordinary methods. As a spider makes its web out of its own substance, and becomes bound in it, and cannot go anywhere except along the lines of that web, so we have projected out of our own substance this network called the nerves, and we cannot work except through the channels of those nerves. The Yogi says we need not be bound by that.
Similarly, we can send electricity to any part of the world, but we have to send it by means of wires. Nature can send a vast mass of electricity without any wires at all. Why cannot we do the same? We can send mental electricity. What we call mind is very much the same as electricity. It is clear that this nerve fluid has some amount of electricity, because it is polarised, and it answers all electrical directions. We can only send our electricity through these nerve channels. Why not send the mental electricity without this aid? The Yogis say it is perfectly possible and practicable, and that when you can do that, you will work all over the universe. You will be able to work with any body anywhere, without the help of the nervous system. When the soul is acting through these channels, we say a man is living, and when these cease to work, a man is said to be dead. But when a man is able to act either with or without these channels, birth and death will have no meaning for him. All the bodies in the universe are made up of Tanm‚tras, their difference lies in the arrangement of the latter. If you are the arranger, you can arrange a body in one way or another. Who makes up this body but you? Who eats the food? If another ate the food for you, you would not live long. Who makes the blood out of food? You, certainly. Who purifies the blood, and sends it through the veins? You. We are the masters of the body, and we live in it. Only we have lost the knowledge of how to rejuvenate it. We have become automatic, degenerate. We have forgotten the process of arranging its molecules. So, what we do automatically has to be done knowingly. We are the masters and we have to regulate that arrangement; and as soon as we can do that, we shall be able to rejuvenate just as we like, and then we shall have neither birth nor disease nor death.
सति मूले तद्विपाको जात्यायुर्भोगाः ॥१३॥
13. The root being there, the fruition comes (in the form of) species, life, and experience of pleasure and pain.
The roots, the causes, the Samskaras being there, they manifest and form the effects. The cause dying down becomes the effect; the effect getting subtler becomes the cause of the next effect. A tree bears a seed, which becomes the cause of another tree, and so on. All our works now are the effects of past Samskaras; again, these works becoming Samskaras will be the causes of future actions, and thus we go on. So this aphorism says that the cause being there, the fruit must come, in the form of species of beings: one will be a man, another an angel, another an animal, another a demon. Then there are different effects of Karma in life.  One man is born, as it were, for pleasure; if he buries himself in a forest, pleasure will follow him there. Another man, wherever he goes, is followed by pain; everything becomes painful for him. It is the result of their own past. According to the philosophy of the Yogis, all virtuous actions bring pleasure, and all vicious actions bring pain. Any man who does wicked deeds is sure to reap their fruit in the form of pain.
ते ह्लादपरितापफलाः पुण्यापुण्यहेतुत्वात् ॥१४॥
14. They bear fruit as pleasure or pain, caused by virtue or vice.
परिणामताप-संस्कारदुःखैर्गुणवृत्तिविरोधाच्च दुःखमेव सर्वं विवेकिनः ॥१५॥
15. To the discriminating, all is, as it were, painful on account of everything bringing pain either as consequence, or as anticipation of loss of happiness, or as fresh craving arising from impressions of happiness, and also as counteraction of qualities.
The Yogis say that the man who has discriminating powers, the man of good sense, sees through all that are called pleasure and pain, and knows that they come to all, and that one follows and melts into the other; he sees that men follow an ignis fatuus all their lives, and never succeed in fulfilling their desires. The great king Yudhishthira once said that the most wonderful thing in life is that every moment we see people dying around us, and yet we think we shall never die. Surrounded by fools on every side, we think we are the only exceptions, the only learned men. Surrounded by all sorts of experiences of fickleness, we think our love is the only lasting love. How can that be? Even love is selfish, and the Yogi says that in the end we shall find that even the love of husbands and wives, and children and friends, slowly decays. Decadence seizes everything in this life. It is only when everything, even love, fails, that, with a flash, man finds out how vain, how dream-like is this world. Then he catches a glimpse of Vair‚gya (renunciation), catches a glimpse of the Beyond. It is only by giving up this world that the other comes; never through holding on to this one. Never yet was there a great soul who had not to reject sense-pleasures and enjoyments to acquire his greatness. The cause of misery is the clash between the different forces of nature, one dragging one way, and another dragging another, rendering permanent happiness impossible.
हेयं दुःखमनागतम् ॥१६॥
16. The misery which is not yet come is to be avoided.
Some Karma we have worked out already, some we are working out now in the present, and some are waiting to bear fruit in the future. The first kind is past and gone. The second we will have to work out, and it is only that which is waiting to bear fruit in the future that we can conquer and control, towards which end all our forces should be directed. This is what Patanjali means when he says that Samskaras are to be controlled by resolving them into their causal state (II. l0).
द्रष्टृदृश्ययोः संयोगो हेयहेतुः ॥१७॥
17. The cause of that which is to be avoided is the junction of the seer and the seen.
Who is the seer? The Self of man, the Purusha. What is the seen? The whole of nature beginning with the mind, down to gross matter. All pleasure and pain arise from the junction between this Purusha and the mind. The Purusha, you must remember, according to this philosophy, is pure; when joined to nature, it appears to feel pleasure or pain by reflection.
प्रकाश-क्रिया-स्थितिशीलं भूतेन्द्रियात्मकं भोगापवर्गार्थं दृश्यमः ॥१८॥
18. The experienced is composed of elements and organs, is of the nature of illumination, action, and inertia, and is for the purpose of experience and release (of the experiencer).
The experienced, that is nature, is composed of elements and organs — the elements, gross and fine, which compose the whole of nature, and the organs of the senses, mind, etc. — and is of the nature of illumination (Sattva), action (Rajas), and inertia (Tamas). What is the purpose of the whole of nature? That the Purusha may gain experience. The Purusha has, as it were, forgotten its mighty, godly nature. There is a story that the king of the gods, Indra, once became a pig, wallowing in mire; he had a she-pig and a lot of baby pigs, and was very happy. Then some gods saw his plight, and came to him, and told him, "You are the king of the gods, you have all the gods under your command. Why are you here?" But Indra said, "Never mind; I am all right here; I do not care for heaven, while I have this sow and these little pigs." The poor gods were at their wits' end. After a time they decided to slay all the pigs one after another. When all were dead, Indra began to weep and mourn. Then the gods ripped his pig-body open and he came out of it, and began to laugh, when he realised what a hideous dream he had had — he, the king of the gods, to have become a pig, and to think that that pig-life was the only life! Not only so, but to have wanted the whole universe to come into the pig-life! The Purusha, when it identifies itself with nature, forgets that it is pure and infinite. The Purusha does not love, it is love itself. It does not exist, it is existence itself. The Soul does not know, It is knowledge itself. It is a mistake to say the Soul loves, exists, or knows. Love, existence, and knowledge are not the qualities of the Purusha, but its essence. When they get reflected upon something, you may call them the qualities of that something. They are not the qualities but the essence of the Purusha, the great Atman, the Infinite Being, without birth or death, established in its own glory. It appears to have become so degenerate that if you approach to tell it, "You are not a pig," it begins to squeal and bite.
 You were never bound by laws, nature never had a bond for you. That is what the Yogi tells you. Have patience to learn it. And the Yogi shows how, by junction with nature, and identifying itself with the mind and the world, the Purusha thinks itself miserable. Then the Yogi goes on to show you that the way out is through experience. You have to get all this experience, but finish it quickly. We have placed ourselves in this net, and will have to get out. We have got ourselves caught in the trap, and we will have to work out our freedom. So get this experience of husbands, and wives, and friends, and little loves; you will get through them safely if you never forget what you really are. Never forget this is only a momentary state, and that w e have to pass through it. Experience is the one great teacher — experience of pleasure and pain — but know it is only experience. It leads, step by step, to that state where all things become small, and the Purusha so great that the whole universe seems as a drop in the ocean and falls off by its own nothingness. We have to go through different experiences, but let us never forget the ideal.
विशेषाविशेष-लिङ्गमात्रालिङ्गानि गुणपर्वाणि ॥१९॥
19. The states of the qualities are the defined, the undefined, the indicated only, and the signless.
The system of Yoga is built entirely on the philosophy of the S‚nkhyas, as I told you before, and here again I shall remind you of the cosmology of the Sankhya philosophy. According to the Sankhyas, nature is both the material and the efficient cause of the universe. In nature there are three sorts of materials, the Sattva, the Rajas, and the Tamas. The Tamas material is all that is dark, all that is ignorant and heavy. The Rajas is activity. The Sattva is calmness, light. Nature, before creation, is called by them Avyakta, undefined, or indiscrete; that is, in which there is no distinction of form or name, a state in which these three materials are held in perfect balance. Then the balance is disturbed, the three materials begin to mingle in various fashions, and the result is the universe. In every man, also, these three materials exist. When the Sattva material prevails, knowledge comes; when Rajas, activity; and when Tamas, darkness, lassitude, idleness, and ignorance. According to the Sankhya theory, the highest manifestation of nature, consisting of the three materials, is what they call Mahat or intelligence, universal intelligence, of which each human intellect is a part. In the Sankhya psychology there is a sharp distinction between Manas, the mind function, and the function of the Buddhi, intellect. The mind function is simply to collect and carry impressions and present them to the Buddhi, the individual Mahat, which determines upon it. Out of Mahat comes egoism, out of which again come the fine materials. The fine materials combine and become the gross materials outside — the external universe. The claim of the Sankhya philosophy is that beginning with the intellect down to a block of stone, all is the product of one substance, different only as finer to grosser states of existence. The finer is the cause, and the grosser is the effect. According. to the Sankhya philosophy, beyond the whole of nature is the Purusha, which is not material at all. Purusha is not at all similar to anything else, either Buddhi, or mind, or the Tanmatras, or the gross materials. It is not akin to any one of these, it is entirely separate, entirely different in its nature, and from this they argue that the Purusha must be immortal, because it is not the result of combination. That which is not the result of combination cannot die. The Purushas or souls are infinite in number.
Now we shall understand the aphorism that the states of the qualities are defined, undefined, indicated only, and signess. By the "defined" are meant the gross elements, which we can sense. By the "undefined" are meant the very fine materials, the Tanmatras, which cannot be sensed by ordinary men. If you practise Yoga, however, says Patanjali, after a while your perceptions will become so fine that you will actually see the Tanmatras. For instance, you have heard how every man has a certain light about him; every living being emits a certain light, and this, he says, can be seen by the Yogi. We do not all see it, but we all throw out these Tanmatras, just as a flower continuously sends out fine particles which enable us to smell it. Every day of our lives we throw out a mass of good or evil, and everywhere we go the atmosphere is full of these materials. That is how there came to the human mind, unconsciously, the idea of building temples and churches. Why should man build churches in which to worship God? Why not worship Him anywhere? Even if he did not know the reason, man found that the place where people worshipped God became full of good Tanmatras. Every day people go there, and the more they go the holier they get, and the holier that place becomes. If any man who has not much Sattva in him goes there, the place will influence him and arouse his Sattva quality. Here, therefore, is the significance of all temples and holy places, but you must remember that their holiness depends on holy people congregating there. The difficulty with man is that he forgets the original meaning, and puts the cart before the horse. It was men who made these places holy, and then the effect became the cause and made men holy. If the wicked only were to go there, it would become as bad as any other place. It is not the building, but the people that make a church, and that is what we always forget. That is why sages and holy persons, who have much of this Sattva quality, can send it out and exert a tremendous influence day and night on their surroundings. A man may become so pure that his purity will become tangible. Whosoever comes in contact with him becomes pure.
Next "the indicated only" means the Buddhi, the intellect. "The indicated only" is the first manifestation of nature; from it all other manifestations proceed. The last is "the signless". There seems to be a great difference between modern science and all religions at this point. Every religion has the idea that the universe comes out of intelligence. The theory of God, taking it in its psychological significance, apart from all ideas of personality, is that intelligence is first in the order of creation, and that out of intelligence comes what we call gross matter. Modern philosophers say that intelligence is the last to come. They say that unintelligent things slowly evolve into animals, and from animals into men. They claim that instead of everything coming out of intelligence, intelligence itself is the last to come. Both the religious and the scientific statements, though seeming directly opposed to each other are true. Take an infinite series, A—B—A—B —A—B. etc. The question is — which is first, A or B? If you take the series as A—B. you will say that A is first, but if you take it as B—A, you will say that B is first. It depends upon the way we look at it. Intelligence undergoes modification and becomes the gross matter, this again merges into intelligence, and thus the process goes on. The Sankhyas, and other religionists, put intelligence first, and the series becomes intelligence, then matter. The scientific man puts his finger on matter, and says matter, then intelligence. They both indicate the same chain. Indian philosophy, however, goes beyond both intelligence and matter, and finds a Purusha, or Self, which is beyond intelligence, of which intelligence is but the borrowed light.
द्रष्टा दृशिमात्रः शुद्धोऽपि प्रत्ययानुपश्यः ॥२०॥
20. The seer is intelligence only, and though pure, sees through the colouring of the intellect.
This is, again, Sankhya philosophy. We have seen from the same philosophy that from the lowest form up to intelligence all is nature; beyond nature are Purushas (souls), which have no qualities. Then how does the soul appear to be happy or unhappy? By reflection. If a red flower is put near a piece of pure crystal, the crystal appears to be red, similarly the appearances of happiness or unhappiness of the soul are but reflections. The soul itself has no colouring. The soul is separate from nature. Nature is one thing, soul another, eternally separate. The Sankhyas say that intelligence is a compound, that it grows and wanes, that it changes, just as the body changes, and that its nature is nearly the same as that of the body. As a finger-nail is to the body, so is body to intelligence. The nail is a part of the body, but it can be pared off hundreds of times, and the body will still last. Similarly, the intelligence lasts aeons, while this body can be "pared off," thrown off. Yet intelligence cannot be immortal because it changes — growing and waning. Anything that changes cannot be immortal. Certainly intelligence is manufactured, and that very fact shows us that there must be something beyond that. It cannot be free, everything connected with matter is in nature, and, therefore, bound for ever. Who is free? The free must certainly be beyond cause and effect. If you say that the idea of freedom is a delusion, I shall say that the idea of bondage is also a delusion. Two facts come into our consciousness, and stand or fall with each other. These are our notions of bondage and freedom. If we want to go through a wall, and our head bumps against that wall, we see we are limited by that wall. At the same time we find a willpower, and think we can direct our will everywhere. At every step these contradictory ideas come to us. We have to believe that we are free, yet at every moment we find we are not free. If one idea is a delusion, the other is also a delusion, and if one is true, the other also is true, because both stand upon the same basis — consciousness. The Yogi says, both are true; that we are bound so far as intelligence goes, that we are free so far as the soul is concerned. It is the real nature of man, the soul, the Purusha, which is beyond all law of causation. Its freedom is percolating through layers of matter in various forms, intelligence, mind, etc. It is its light which is shining through all. Intelligence has no light of its own. Each organ has a particular centre in the brain; it is not that all the organs have one centre; each organ is separate. Why do all perceptions harmonise? Where do they get their unity? If it were in the brain, it would be necessary for all the organs, the eyes, the nose, the ears, etc., to have one centre only, while we know for certain that there are different centres for each. Both a man can see and hear at the same time, so a unity must be there at the back of intelligence. Intelligence is connected with the brain, but behind intelligence even stands the Purusha, the unit, where all different sensations and perceptions join and become one. The soul itself is the centre where all the different perceptions converge and become unified. That soul is free, and it is its freedom that tells you every moment that you are free. But you mistake, and mingle that freedom every moment with intelligence and mind. You try to attribute that freedom to the intelligence, and immediately find that intelligence is not free; you attribute that freedom to the body, and immediately nature tells you that you are again mistaken. That is why there is this mingled sense of freedom and bondage at the same time. The Yogi analyses both what is free and what is bound, and his ignorance vanishes. He finds that the Purusha is free, is the essence of that knowledge which, coming through the Buddhi, becomes intelligence, and, as such, is bound.
तदर्थ एव दृश्यस्यात्मा ॥२१॥
21. The nature of the experienced is for him.
Nature has no light of its own. As long as the Purusha is present in it, it appears as light. But the light is borrowed; just as the moon's light is reflected. According to the Yogis, all the manifestations of nature are caused by nature itself, but nature has no purpose in view, except to free the Purusha.
कृतार्थं प्रति नष्टमप्यनष्टं तदन्यसाधारणत्वात् ॥२२॥
22. Though destroyed for him whose goal has been gained, yet it is not destroyed, being common to others.
The whole activity of nature is to make the soul know that it is entirely separate from nature. When the soul knows this, nature has no more attractions for it. But the whole of nature vanishes only for that man who has become free. There will always remain an infinite number of others, for whom nature will go on working.
स्वस्वामिशक्त्योः स्वरूपोपलब्धिहेतुः संयोगः ॥२३॥
23. Junction is the cause of the realization of the nature of both the powers, the experienced and its Lord.
According to this aphorism, both the powers of soul and nature become manifest when they are in conjunction. Then all manifestations are thrown out. Ignorance is the cause of this conjunction. We see every day that the cause of our pain or pleasure is always our joining ourselves with the body. If I were perfectly certain that I am not this body, I should take no notice of heat and cold, or anything of the kind. This body is a combination. It is only a fiction to say that I have one body, you another, and the sun another. The whole universe is one ocean of matter, and you are the name of a little particle, and I of another, and the sun of another. We know that this matter is continuously changing. What is forming the sun one day, the next day may form the matter of our bodies.
तस्य हेतुरविद्या ॥२४॥
24. Ignorance is its cause.
Through ignorance we have joined ourselves with a particular body, and thus opened ourselves to misery. This idea of body is a simple superstition. It is superstition that makes us happy or unhappy. It is superstition caused by ignorance that makes us feel heat and cold, pain and pleasure. It is our business to rise above this superstition, and the Yogi shows us how we can do this. It has been demonstrated that, under certain mental conditions, a man may be burned, yet he will feel no pain. The difficulty is that this sudden upheaval of the mind comes like a whirlwind one minute, and goes away the next. If, however, we gain it through Yoga, we shall permanently attain to the separation of Self from the body.
तदभावात् संयोगाभावो हानं तद्दृशेः कैवल्यम् ॥२५॥
25. There being absence of that (ignorance) there is absence of junction, which is the thing-to-be avoided; that is the independence of the seer.
According to Yoga philosophy, it is through ignorance that the soul has been joined with nature. The aim is to get rid of nature's control over us. That is the goal of all religions. Each soul is potentially divine. The goal is to manifest this Divinity within, by controlling nature, external and internal. Do this either by work, or worship, or psychic control, or philosophy — by one or more or all of these — and be free. This is the whole of religion. Doctrines, or dogmas, or rituals, or books, or temples, or forms, are but secondary details. The Yogi tries to reach this goal through psychic control. Until we can free ourselves from nature, we are slaves; as she dictates so we must go. The Yogi claims that he who controls mind controls matter also. The internal nature is much higher than the external and much more difficult to grapple with, much more difficult to control. Therefore he who has conquered the internal nature controls the whole universe; it becomes his servant. Raja-Yoga propounds the methods of gaining this control. Forces higher than we know in physical nature will have to be subdued. This body is just the external crust of the mind. They are not two different things; they are just as the oyster and its shell. They are but two aspects of one thing; the internal substance of the oyster takes up matter from outside, and manufactures the shell. In the same way the internal fine forces which are called mind take up gross matter from outside, and from that manufacture this external shell, the body. If, then, we have control of the internal, it is very easy to have control of the external. Then again, these forces are not different. It is not that some forces are physical, and some mental; the physical forces are but the gross manifestations of the fine forces, just as the physical world is but the gross manifestation of the fine world.
विवेकख्यातिरविप्लवा हानोपायः ॥२६॥
26. The means of destruction of ignorance is unbroken practice of discrimination.
This is the real goal of practice — discrimination between the real and the unreal, knowing that the Purusha is not nature, that it is neither matter nor mind, and that because it is not nature, it cannot possibly change. It is only nature which changes, combining and re-combining, dissolving continually. When through constant practice we begin to discriminate, ignorance will vanish, and the Purusha will begin to shine in its real nature — omniscient, omnipotent, omnipresent.
तस्य सप्तधा प्रान्तभूमिः प्रज्ञा ॥२७॥
27. His knowledge is of the sevenfold highest ground.
When this knowledge comes; it will come, as it were, in seven grades, one after the other; and when one of these begins, we know that we are getting knowledge. The first to appear will be that we have known what is to be known. The mind will cease to be dissatisfied. While we are aware of thirsting after knowledge, we begin to seek here and there, wherever we think we can get some truth, and failing to find it we become dissatisfied and seek in a fresh direction. All search is vain, until we begin to perceive that knowledge is within ourselves, that no one can help us, that we must help ourselves. When we begin to practise the power of discrimination, the first sign that we are getting near truth will be that that dissatisfied state will vanish. We shall feel quite sure that we have found the truth, and that it cannot be anything else but the truth. Then we may know that the sun is rising, that the morning is breaking for us, and taking courage, we must persevere until the goal is reached. The second grade will be the absence of all pains. It will be impossible for anything in the universe, external or internal, to give us pain. The third will be the attainment of full knowledge. Omniscience will be ours. The fourth will be the attainment of the end of all duty through discrimination. Next will come what is called freedom of the Chitta. We shall realise that all difficulties and struggles, all vacillations of the mind, have fallen down, just as a stone rolls from the mountain top into the valley and never comes up again. The next will be that the Chitta itself will realise that it melts away into its causes whenever we so desire. Lastly we shall find that we are established in our Self, that we have been alone throughout the universe, neither body nor mind was ever related, much less joined, to us. They were working their own way, and we, through ignorance, joined ourselves to them. But we have been alone, omnipotent, omnipresent, ever blessed; our own Self was so pure and perfect that we required none else. We required none else to make us happy, for we are happiness itself. We shall find that this knowledge does not depend on anything else; throughout the universe there can be nothing that will not become effulgent before our knowledge. This will be the last state, and the Yogi will become peaceful and calm, never to feel any more pain, never to be again deluded, never to be touched by misery. He will know he is ever blessed, ever perfect, almighty.
योगाङ्गानुष्ठानादशुद्धिक्षये ज्ञानदीप्तिरा विवेकख्यातेः ॥२८॥
28. By the practice of the different parts of Yoga the impurities being destroyed, knowledge be comes effulgent up to discrimination.
Now comes the practical knowledge. What we have just been speaking about is much higher. It is away above our heads, but it is the ideal. It is first necessary to obtain physical and mental control. Then the realization will become steady in that ideal. The ideal being known, what remains is to practice the method of reaching it.
यम-नियमासन-प्राणायाम-प्रत्याहार-धारणा-ध्यान-समाधयोऽष्टावङ्गानि ॥२९॥
29. Yama, Niyama, ¬sana, Pr‚n‚y‚ama, Praty‚h‚ra, Dh‚ran‚, Dhy‚na, and Sam‚dhi are the eight limbs of Yoga.
अहिंसा-सत्यास्तेय-ब्रह्मचर्यापरिग्रहा यमाः ॥३०॥
30. Non-killing, truthfulness, non-stealing, continence, and nor-receiving are called Yamas.
  Later on we shall understand better why these ideas must be given up. The mind of the man who receives gifts is acted on by the mind of the giver, so the receiver is likely to become degenerated. Receiving gifts is prone to destroy the independence of the mind, and make us slavish. Therefore, receive no gifts.
एते जाति-देश-काल-समयानवच्छिन्नाः सार्वभौमा महाव्रतम् ॥३१॥
31. These, unbroken by time, place, purpose, and caste-rules, are (universal) great vows.
These practices — non-killing, truthfulness, non-stealing, chastity, and non-receiving — are to be practised by every man, woman, and child; by every soul, irrespective of nation, country, or position.
शौच-सन्तोष-तपःस्वाध्यायेश्वरप्रणिधानानि नियमाः ॥३२॥
32. Internal and external purification, contentment, mortification, study, and worship of God are the Niyamas.
External purification is keeping the body pure; a dirty man will never be a Yogi. There must be internal purification also. That is obtained by the virtues named in I.33. Of course, internal purity is of greater value than external, but both are necessary, and external purity, without internal, is of no good.
वितर्कबाधने प्रतिपक्षभावनम् ॥३३॥
33. To obstruct thoughts which are inimical to Yoga, contrary thoughts should be brought.
That is the way to practise the virtues that have been stated. For instance, when a big wave of anger has come into the mind, how are we to control that? Just by raising an opposing wave. Think of love. Sometimes a mother is very angry with her husband, and while in that state, the baby comes in, and she kisses the baby; the old wave dies out and a new wave arises, love for the child. That suppresses the other one. Love is opposite to anger. Similarly, when the idea of stealing comes, non-stealing should be thought of; when the idea of receiving gifts comes, replace it by a contrary thought.
वितर्का हिंसादयः कृतकारितानुमोदिता लोभक्रोधमोहपूर्वका मृदुमध्याधिमात्रा दुःखाज्ञानानन्तफला इति प्रतिपक्षभावनम् ॥३४॥
34. The obstructions to Yoga are killing, falsehood, etc., whether committed, caused, or approved; either through avarice, or anger, or ignorance; whether slight, middling, or great; and they result in infinite ignorance and misery. This is (the method of) thinking the contrary.
If I tell a lie, or cause another to tell one, or approve of another doing so, it is equally sinful.  Every vicious thought will rebound, every thought of hatred which you may have thought, in a cave even, is stored up, and will one day come back to you with tremendous power in the form of some misery here.  No power can avert them; when once you have put them in motion, you will have to bear them. Remembering this will prevent you from doing wicked things.
अहिंसाप्रतिष्ठायां तत्सन्निधौ वैरत्यागः ॥३५॥
35. Non-killing being established, in his presence all enmities cease (in others).
If a man gets the ideal of non-injuring others, before him even animals which are by their nature ferocious will become peaceful. The tiger and the lamb will play together before that Yogi. When you have come to that state, then alone you will understand that you have become firmly established in non-injuring.
सत्यप्रतिष्ठायां क्रियाफलाश्रयत्वम् ॥३६॥
36. By the establishment of truthfulness the Yogi gets the power of attaining for himself and others the fruits of work without the works.
When this power of truth will be established with you, then even in dream you will never tell an untruth. You will be true in thought, word, and deed. Whatever you say will be truth. You may say to a man, "Be blessed," and that man will be blessed. If a man is diseased, and you say to him, "Be thou cured," he will be cured immediately.
अस्तेयप्रतिष्ठायां सर्वरत्नोपस्थानम् ॥३७॥
37. By the establishment of non-stealing all wealth comes to the Yogi.
The more you fly from nature, the more she follows you; and if you do not care for her at all, she becomes your slave.
ब्रह्मचर्यप्रतिष्ठायां वीर्यलाभः ॥३८॥
38. By the establishment of continence energy is gained.
The chaste brain has tremendous energy and gigantic will-power. Without chastity there can be no spiritual strength. Continence gives wonderful control over mankind. The spiritual leaders of men have been very continent, and this is what gave them power. Therefore the Yogi must be continent.
अपरिग्रहस्थैर्ये जन्मकथन्तासंबोधः ॥३९॥
39. When he is fixed in non-receiving, he gets the memory of past life.
When a man does not receive presents, he does not become beholden to others, but remains independent and free. His mind becomes pure. With every gift, he is likely to receive the evils of the giver. If he does not receive, the mind is purified, and the first power it gets is memory of past life. Then alone the Yogi becomes perfectly fixed in his ideal.
शौचात्स्वाङ्गजुगुप्सा परैरसंसर्गः ॥४०॥
40. Internal and external cleanliness being established, there arises disgust for one's own body, and non-intercourse with others.
When there is real purification of the body, external and internal, there arises neglect of the body, and the idea of keeping it nice vanishes. A face which others call most beautiful will appear to the Yogi as merely animal, if there is not intelligence behind it. What the world calls a very common face he regards as heavenly, if the spirit shines behind it. This thirst after body is the great bane of human life. So the first sign of the establishment of purity is that you do not care to think you are a body. It is only when purity comes that we get rid of the body idea.
सत्त्वशुद्धि-सौमनस्यैकाग्र्येन्द्रियजयात्मदर्शन-योग्यत्वानि च ॥४१॥
41. There also arises purification of the Sattva, cheerfulness of the mind, concentration, conquest of the organs, and fitness for the realisation of the Self.
By the practice of cleanliness, the Sattva material prevails, and the mind becomes concentrated and cheerful. The first sign that you are becoming religious is that you are becoming cheerful. When a man is gloomy, that may be dyspepsia, but it is not religion. A pleasurable feeling is the nature of the Sattva. Everything is pleasurable to the S‚ttvika man, and when this comes, know that you are progressing in Yoga. All pain is caused by Tamas, so you must get rid of that; moroseness is one of the Exults of Tamas. The strong, the well knit, the young, the healthy, the daring alone are fit to be Yogis. To the Yogi everything is bliss, every human face that he sees brings cheerfulness to him. That is the sign of a virtuous man. Misery is caused by sin, and by no other cause. What business have you with clouded faces? It is terrible.  What right have you to carry this disease out into the world ?  Instead of this machine being able to drag the soul down, it becomes its greatest helpmate.
सन्तोषादनुत्तमः सुखलाभः ॥४२॥
42. From contentment comes superlative happiness.
कायेन्द्रियसिद्धिरशुद्धिक्षयात्तपसः ॥४३॥
43. The result of mortification is bringing powers to the organs and the body, by destroying the impurity.
The results of mortification are seen immediately, sometimes by heightened powers of vision, hearing things at a distance, and so on.
स्वाध्यायादिष्टदेवतासंप्रयोगः ॥४४॥
44. By the repetition of the Mantra comes the realisation of the intended deity.
The higher the beings that you want to get the harder is the practice.
समाधिसिद्धिरीश्वरप्रणिधानात् ॥४५॥
45. By sacrificing all to Ishvara comes Samadhi.
By resignation to the Lord, Samadhi becomes perfect.
स्थिरसुखमासनम् ॥४६॥
46. Posture is that which is firm and pleasant.
Now comes Asana, posture. Until you can get a firm seat you cannot practice the breathing and other exercises. Firmness of seat means that you do not feel the body at all. In the ordinary way, you will find that as soon as you sit for a few minutes all sorts of disturbances come into the body; but when you have got beyond the idea of a concrete body, you will lose all sense of the body. You will feel neither pleasure nor pain. And when you take your body up again, it will feel so rested. It is only perfect rest that you can give to the body. When you have succeeded in conquering the body and keeping it firm, your practice will remain firm, but while you are disturbed by the body, your nerves become disturbed, and you cannot concentrate the mind.
प्रयत्नशैथिल्यानन्तसमापत्तिभ्याम् ॥४७॥
47. By lessening the natural tendency (for restlessness) and meditating on the unlimited, posture becomes firm and pleasant.
We can make the seat firm by thinking of the infinite. We cannot think of the Absolute Infinite, but we can think of the infinite sky.
ततो द्वन्द्वानभिघातः ॥४८॥
48. Seat being conquered, the dualities do not obstruct.
The dualities, good and bad, heat and cold, and all the pairs of opposites, will not then disturb you.
तस्मिन् सति श्वासप्रश्वासयोर्गतिविच्छेदः प्राणायामः ॥४९॥
49. Controlling the motion of the exhalation and the inhalation follows after this.
When posture has been conquered, then the motion of the Prana is to be broken and controlled. Thus we come to Pranayama, the controlling of the vital forces of the body. Prana is not breath, though it is usually so translated. It is the sum total of the cosmic energy. It is the energy that is in each body, and its most apparent manifestation is the motion of the lungs. This motion is caused by Prana drawing in the breath, and it is what we seek to control in Pranayama. We begin by controlling the breath, as the easiest way of getting control of the Prana.
बाह्याभ्यन्तरस्तम्भवृत्तिः देशकालसंख्याभिः परिदृष्टो दीर्घसूक्षमः ॥५०॥
50. Its modifications are either external or internal, or motionless, regulated by place, terns, and number, either long or short.
The three sorts of motion of Pranayama are, one by which we draw the breath in, another by which we throw it out, and the third action is when the breath is held in the lungs, or stopped from entering the lungs. These, again, are varied by place and time. By place is meant that the Prana is held to some particular part of the body. By time is meant how long the Prana should be confined to a certain place, and so we are told how many seconds to keep one motion, and how many seconds to keep another. The result of this Pranayama is Udgh‚ta, awakening the Kundalini.
बाह्याभ्यन्तरविषयाक्षेपी चतुर्थः ॥५१॥
51. The fourth is restraining the Prana by reflecting on external or internal object.
This is the fourth sort of Pranayama, in which the Kumbhaka is brought about by long practice attended with reflection, which is absent in the other three.
ततः क्षीयते प्रकाशावरणम् ॥५२॥
52. From that, the covering to the light of the Chitta is attenuated.
The Chitta has, by its own nature, all knowledge. It is made of Sattva particles, but is covered by Rajas and Tamas particles, and by Pranayama this covering is removed.
धारणासु च योग्यता मनसः ॥५३॥
53. The mind becomes fit for Dharana.
After this covering has been removed, we are able to concentrate the mind.
स्वस्वविषयासम्प्रयोगे चित्तस्वरूपानुकार इवेन्द्रियाणां प्रत्याहारः ॥५४॥
54. The drawing in of the organs is by their giving up their own objects and taking the form of the mind-stuff, as it were.
The organs are separate states of the mind-stuff. I see a book; the form is not in the book, it is in the mind. Something is outside which calls that form up. The real form is in the Chitta. The organs identify themselves with, and take the forms of, whatever comes to them. If you can restrain the mind-stuff from taking these forms, the mind will remain calm. This is called Pratyahara.
ततः परमा वश्यतेन्द्रियाणाम् ॥५५॥
55. Thence arises supreme control of the organs.
When the Yogi has succeeded in preventing the organs from taking the forms of external objects, and in making them remain one with the mind-stuff, then comes perfect control of the organs. When the organs are perfectly under control, every muscle and nerve will be under control, because the organs are the centres of all the sensations, and of all actions. These organs are divided into organs of work and organs of sensation. When the organs are controlled, the Yogi can control all feeling and doing; the whole of the body comes under his control. Then alone one begins to feel joy in being born; then one can truthfully say, "Blessed am I that I was born." When that control of the organs is obtained, we feel how wonderful this body really is.


THE SCHOOL OF FLESH (L'ECOLE DE LA CHAIR) (Stratosphere) Starring: Isabelle Huppert, Vincent Martinez, Vincent Lindon, Marthe Keller. Screenplay: Jacques Fieschi, based on the novel by Yukio Mishima. Producer: Fabienne Vonier. Director: Benoit Jacquot. MPAA Rating: R (sexual situations, nudity, adult themes, drug use) Running Time: 101 minutes. Reviewed by Scott Renshaw.
Film stories of improbable obsession are always tricky because they're so...well, so improbable. In a novel, it's easier to delve into tangled psychology through interior monologue or prose -- to understand, for instance, why a middle-aged man destroys his life for a teenager called Lolita. There is also the secondary problem of giving a face to the object of desire, creating the possibility that the obsession just won't make any sense. A film about irrational passions has to immerse a viewer in that irrationality, even as it gives you some small sense that the irrationality is based on something understandable.
Benoit Jacqot's THE SCHOOL OF FLESH (L'ECOLE DE LA CHAIR) struggles in both respects. It's the story of Dominique (Isabelle Huppert), an unmarried Paris fashion executive at a point in her life when her career is the focus of her life. That changes one night when she spies a bartender named Quentin (Vincent Martinez) at a local nightspot, and becomes fascinated with him. Though Quentin's transvestite co-worker Chris (Vincent Lindon) warns Dominique that Quentin is a hustler -- indiscriminate of gender -- Dominique still invites him to dinner, and eventually to bed. Soon Dominique has made Quentin a "kept man," sharing her apartment and money with him even though he continues to lead his previous life. Their relationship twists and turns into something neither one can quite identify, though both need it desperately.
Exactly why they need it is not entirely clear. The script, based on a novel by Japanese author Yukio Mishima (THE SAILOR WHO FELL FROM GRACE WITH THE SEA), does a decent job of painting Quentin as a troubled man who uses his body for his personal gain, then shows disdain for anyone who wants him for that body. Dominique is a more perplexing case. Isabelle Huppert effectively conveys a confident woman slowly becoming a paranoid mess, following Quentin on his rounds through the city. Jacquot's direction, however, keeps us too distanced from Dominique's obsession for it to make sense as anything more profound than a middle-aged fling. Though the narrative toys with the provocative notion that the childless Dominique is acting out a maternal fantasy as much as a sexual one, the script is too timid to attack that subtext. THE SCHOOL OF FLESH's academic detachment makes it difficult to feel her pain, whatever it might be.
It's even more difficult to understand why Vincent Martinez is the man who turns her world upside down. THE SCHOOL OF FLESH is not the first film to assert an unlikely man's attractiveness to women -- the entire Woody Allen oeuvre comes to mind -- but that doesn't make it any easier to accept this particular example. Though Martinez certainly isn't ugly, it's unlikely he'd be anyone's paradigm of masculine beauty; he most closely resembles a slightly more swarthy Joaquin Phoenix. Still, everyone in the film is smitten with Quentin: Dominique, Chris, a distinguised attorney (Francois Berleand), an impressionable teenage girl (Roxane Mesquida). Quentin's animal magnetism is central to THE SCHOOL OF FLESH's premise, yet I didn't notice enough magnetism to erase a computer disk.
THE SCHOOL OF FLESH still manages to be somewhat engaging, simply because the relationship dynamics are effectively portrayed. It's rather touching watching Quentin try to make Dominique admit she'd discard him if he were ugly; it's amusing watching Dominique struggle to balance her desire for Quentin with her embarrassment to be with him in public settings. Both central characters are intriguing enough to follow, but it's hard to watch them both degrade themselves when it's not clear enough why they're doing it. Obsession makes for great drama if the "why" is as important as the "what." THE SCHOOL OF FLESH leaves you wondering "why," as well as "why him."
On the Renshaw scale of 0 to 10 flesh dances: 6.
Visit Scott Renshaw's Screening Room http://www.inconnect.com/~renshaw/ *** Subscribe to receive new reviews directly by email! See the Screening Room for details, or reply to this message with subject "Subscribe".
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


--- layout: post title: Copy a Field’s Value to another Field in SharePoint date: 2011-02-08 18:04:02.000000000 +01:00 categories: [] tags: - C# - LINQ - SharePoint status: publish type: post published: true meta: {} author: login: admin email<EMAIL_ADDRESS>display_name: Philippe first_name: Philippe last_name: Vlérick excerpt: !ruby/object:Hpricot::Doc options: {} ---
If one of your field data type needs to be changed, you will run into issues when deploying the new version of your application, as SharePoint can’t translate from one data type to another. For example, if you change a field type from “Single Line of Text” to “Notes” in Fields.xml, everything will go wrong.
The clean way to do this is to create a new field, the one that will be used from now on, and copy the value of the old field to the new field, while applying a transformation if necessary.
For this, we wrote a generic method that will go trough the entire site and perform the changes on the specified fields.
public static void CopyFieldValues(SPSite site, String copyFromFieldInternalName, String copyToFieldInternalName, Func<Object, Object> transformation) { foreach (SPWeb web in site.AllWebs) { //Get all the ListItems in every list of the web that has the 2 fields var items = (from l in web.Lists.Cast<SPList>() where l.Fields.ContainsField(copyFromFieldInternalName) && l.Fields.ContainsField(copyToFieldInternalName) from i in l.Items.Cast<SPListItem>() select i).ToList(); //For each listitem in this web, migrate the content of the old one to the new one //To do this, we use the tranformation Func that was given as a parameter foreach (SPListItem item in items) { item[copyToFieldInternalName] = transformation(item[copyFromFieldInternalName]); //Do system update to avoid modifying the item's version item.SystemUpdate(false); } } }
So, now that we have a generic method to copy the content of a field into another, we can “specialize” it for various uses.
One example is migrating a Single Line of Text type field to a Note type field. It is very easy because there is no transformation needed:
public static void CopyFieldValuesFromSingleLineOfTextToNote(SPSite site, String copyFromFieldInternalName, String copyToFieldInternalName) { //No need to transform the data in this case SharePointFieldsHelper.CopyFieldValues(site, copyFromFieldInternalName, copyToFieldInternalName, oldFieldValue => oldFieldValue); }


Feminism not criminalized in Saudi Arabia, says Presidency of State Security
JEDDAH: The Cabinet on Tuesday lauded the efforts of the International Atomic Energy Agency (IAEA) and condemned Tehran for not cooperating with the IAEA in providing it necessary information about its controversial nuclear program. The ministers urged Iran to cooperate with the international atomic watchdog.
King Salman briefed the Cabinet about his interactions with various head of states during the last week. The Cabinet praised the signing of the Riyadh agreement between the internationally recognized Yemeni government and the Southern Transitional Council. The agreement is a major step forward in resolving the conflict in Yemen, said Media Minister Turki Al-Shabanah in a statement to the Saudi Press Agency. The Cabinet also authorized several officials and ministries to discuss deals in different sectors with their respective counterparts in friendly countries.


About
Experience
Education
Contact
Resume
Hi. My name is
Tamir Arnesty.
I write code.
About
Experience
Education
Contact


top
| up
| prev
| next
MutexOwner Class
Definition at line 13
of Mutex.hpp
Constructors
Member Functions
Member Variables
| char |
id |
| std::string |
ownedMutexes |
Constructor Details
MutexOwner Constructor
soulng::util::MutexOwner::MutexOwner(char
id_)
Definition at line 10
of Mutex.cpp
:
10 : id(id_)
11 {
12 }
Declaration at line 16
of Mutex.hpp
Member Function Details
Pop Member Function
void
soulng::util::MutexOwner::Pop()
Definition at line 19
of Mutex.cpp
:
20 {
21 ownedMutexes.pop_back();
22 }
Declaration at line 18
of Mutex.hpp
Called by: soulng::util::LockGuard::Unlock
, soulng::util::OwnerGuard::destructor
Push Member Function
void
soulng::util::MutexOwner::Push(char
mutexId)
Definition at line 14
of Mutex.cpp
:
15 {
16 ownedMutexes.push_back(mutexId);
17 }
Declaration at line 17
of Mutex.hpp
Called by: soulng::util::LockGuard::Lock
top
| up
| prev
| next


Energy Harvesting Technologies for
Wireless MEMS Sensor Networks with a Focus on Mechanical
Vibration-to-Electrical Power Generation
Edward S. Kolesar, PhD, P.E., W.A.
Moncrief Professor of Engineering
Department of Engineering
Mail Stop 298640
Telephone:<PHONE_NUMBER>; -7126
Telefax:
(817) 257-7704
Email:
<EMAIL_ADDRESS>ABSTRACT: The intriguing concept of a new paradigm of
ultra-small, autonomous, intelligent MEMS devices for wireless sensor networks
is poised to become a significant enabling technology for many application
sectors, from human-health monitoring to highly-distributed systems for safety
and environmental data collection. A few very low-power wireless MEMS sensor
platforms have recently entered the marketplace. Almost all of these platforms
are designed to run on batteries that have a very limited lifetime. In order
for wireless MEMS sensor networks to become truly autonomous and a ubiquitous
part of our environment, alternative power sources must be found. This
presentation explores the techniques and challenges of harvesting energy from
several ambient sources that appear to be suitable for powering wireless MEMS
sensor networks. Well-established power sources, such as batteries, are
reviewed along with emerging technologies and currently untapped energy
sources, such as the conversion of mechanical vibration to electrical power.
Power sources are classified as energy reservoirs, power distribution methods,
or power scavenging methods, which enable wireless MEMS sensor nodes to be
completely self-sustaining. Several ambient energy sources capable of providing
electrical power on the order of 100 µW/cm3 with very long lifetimes
are feasible. No single ambient energy source will likely suffice for all MEMS
sensor networks, and the choice of a power source will ultimately be determined
by the specific application.
BIOGRAPHY: Dr. Kolesar had a
20-year professional career as a commissioned officer in the United States Air
Force. During this time he became
devoted to the design, fabrication, modeling and experimental characterization
of microsensors and microactuators.
Before retiring with the rank of Professor, he served on the faculty and
as Vice Chair in the Department of Electrical and Computer Engineering at the
Air Force Institute of Technology, Wright-Patterson AFB,
**********************************************************************
Noise and Reliability of High-k Gate Stacks
Zeynep Celik-Butler, Ph.D.
Electrical Engineering Department
NanoFAB center
ABSTRACT: As
the devices scale down, even though the absolute noise magnitude gets smaller,
since the voltages also scale down, the signal-to-noise ratio decreases. Noise
models developed for large area devices based on the large-number-electron
averaging theories break down. The lack of accurate models leads the process
and circuit designer either to adapt large area-transistor models with high
errors or to use a trial-and-error method leading to significant waste of
valuable time.
ITRS2003
identified “Gate stack processes and materials” as one its grand challenges for
performance enhancement in the near-term (≤yr2009). In MOSFETs, high
dielectric constant (high-k) materials are developed as possible replacements
for SiO2 as the gate dielectric. Although these materials do
overcome the issue of gate leakage current due to increased dielectric
thickness for a given equivalent dielectric capacitance, several other problems
arise, such as the increased trap density at the silicon interface. This is
evidenced by the reduced carrier mobilities and the emergence of a “kink” in
the C-V characteristics. A large number of candidates are currently being
evaluated by several companies for their material and threshold voltage
stability, hysteretic electrical characteristics, breakdown, and dielectric
properties. Although dielectric charging and increased interface trap density
are observed, the effect of these on the noise characteristics and carrier
mobility, and the reason for these states are not known. In addition to the
effect of interface states and dielectric traps, there is evidence that remote
phonon scattering, which is intrinsically associated with the high dielectric
constant, limits the mobility of carriers in the channel. If this is in deed
the case, decrease in carrier mobility will be unavoidable with the use of
high-k materials.
The talk will
cover noise and mobility degradation issues in high-k gate stacks.
BIOGRAPHY: Zeynep Çelik-Butler is Professor of
Electrical Engineering and Director of Nanotechnology Research and Teaching
Facility at the
She served in various technical committees
including 1988, 1989 IEEE-IEDM's and Annual Symposia on Electronic Materials,
Processing and Characterization (1989 - 1992) and International Conference on
Noise in Physical Systems and 1/f Fluctuations (1993, 1999, 2001). She was the General Chair of TEXMEMS II
Workshop. She was the co-Chairman for the SPIE Conf. on Noise in Devices and
Circuits in the Symp. on Fluctuation and Noise (FaN'2003) and the symposium
co-chair for the same symposium in 2005 (FaN’2005). Currently, she is an editor
for Fluctuation and Noise Letters.
Prof. Çelik-Butler has received several
awards including the IEEE-Dallas Section Electron Devices Society Outstanding
Service Awards (1995, 1997), IEEE - Electron Devices Society, Service
Recognition Award (1995), Outstanding Electrical Engineering Graduate Faculty
Awards (1996, 1997, 2001), and SMU- Sigma Xi Research Award (1997). Her
research interests include microelectromechanical systems, infrared detectors,
noise in semiconductor and superconductor devices, and high Tc-superconductivity.
She has four patents, four book chapters, and over 130 journal and conference
publications in these fields. Dr. Çelik -
Dr. Çelik-Butler is a senior member of IEEE,
member of Eta Kappa Nu, and the American Physical Society. She is a
Distinguished Lecturer for the IEEE-Electron Devices Society.
**********************************************************************
Human Simulator
Bruce Dubin,
D.O., J.D.
Associate Dean,
TCOM Academic Affairs
University of
ABSTRACT: The
use of medical simulation models and computers in medical education provides a
unique opportunity for future physicians to practice and test their diagnostic
skills and perform “high risk” procedures on computerized simulated mannequins. During this presentation, the Dr. Dubin will
discuss the use and outcomes of The Human Patient Simulator (HPS) – a
computer-model-driven - full-sized mannequin – that delivers experience in
true-to-life scenarios that swiftly change to meet educational goals. The ultra
sophisticated and highly versatile HPS blinks, speaks and breathes, has a
heartbeat and a pulse, and accurately mirrors human responses to such
procedures as CPR, intravenous medication, intubation, ventilation, and
catheterization. This simulator can be programmed to match the physiologic
parameters of any patient and most medical emergencies. The use of these simulators and their
incorporated technology allows medical school faculty to perform “summative
examinations” of students in simulated real life scenarios. Dr. Dubin will discuss the methods of using
this technology as well as outcomes that demonstrate enhanced educational
results and improved student satisfaction with medical simulation techniques as
a teaching and testing tool.
BIOGRAPHY:
**********************************************************************
Questions and Answers with
Keynote
**********************************************************************
"Submarine-Launched
and Recovered Multi- Purpose UAV (MPUAV) Concept and Project Overview"
Robert A
Ruszkowski, Jr.
Aeronautical
Engineer Senior Staff
Lockheed Martin
Aeronautics Company
ABSTRACT: The
Lockheed Martin Submarine-Launched & Recovered Multi-Purpose Unmanned Air
Vehicle (MPUAV) is a unique concept to extend the capabilities of the
newly-modified OHIO-Class SSGN submarines, as well as surface ships such as the
new Littoral Combat Ship (LCS). It could enable renewable, unmanned air
operations for long-range, survivable, all-weather reconnaissance, battle
damage assessment, or specialized mission support in a broad spectrum of operations.
In particular, the combination of a stealthy SSGN submarine platform and a
survivable MPUAV air vehicle could introduce new capabilities to support future
joint warfighting operations in high-threat scenarios…from under the sea.
This presentation provides a brief outline of the Lockheed Martin Aeronautics Company “Skunk Works”, which is the organization that is responsible for the inception and development of the MPUAV concept. An overview of the MPUAV system concept is given that highlights the unique design challenges and approaches associated with an advanced UAV that is capable of repeated immersed launch and recovery operations at sea. In particular, specific features and systems that would enable immersibility, effective mission management, and submerged recovery operations are addressed. An animation depicting the launch, notional mission, and recovery of the MPUAV is also included.
Additionally, this presentation includes a discussion of the MPUAV Phase 1 Project that was awarded by the Defense Advanced Research Projects Agency (DARPA) to Lockheed Martin Aeronautics Company in May of 2005. This 16-month effort will address critical technical aspects of the overall MPUAV system concept. Key risk reduction demonstrations will include submerged docking tests using a full-scale, instrumented MPUAV mock-up/test article. The results of the Phase 1 Project could lead to further development of the MPUAV system concept.
BIOGRAPHY: Robert A Ruszkowski, Jr. is a Senior Staff
Engineer and Designer for Lockheed Martin Aeronautics Company with 20 years of
experience in Advanced Development Programs. Currently, he is the Project and
Technical Lead for the Submarine-Launched and Recovered MPUAV team. He has
served as the lead designer for numerous advanced aircraft studies and
programs. Mr. Ruszkowski also holds three
**********************************************************************
Testing Object-Oriented Software and
Web-Based Applications
Dr. David
Kung
The
Computer Science
and Engineering Dept.
The
Tel: (817)
272-3627, Fax:<PHONE_NUMBER>
Email:
<EMAIL_ADDRESS>ABSTRACT: The
object-oriented (OO), web-based computing paradigm is becoming the de facto
paradigm for software development. The OO paradigm holds the promise to
significantly increase software productivity and software quality while the web
provides a heterogeneous, distributed, and multilingual platform that is
available anywhere, any-time. However, the new features offered by OO and
web-based computing also raise challenging problems in software testing and
regression testing. This talk will present these testing problems and existing
research on testing OO software and web-based applications. The talk will cover
test order, change impact analysis, object state testing, use case testing, and
model-based web applications testing. In addition, we will describe and
demonstrate the OOTWorks software testing tool developed by the
BIOGRAPHY: Dr.
David Kung is a full professor of the Department of Computer Science and
Engineering at UTA. He is the director of the Software Engineering Research
Center and the Software Engineering Program. He has more than 25 years software
engineering experience working in academia and industry. He is in close contact
with numerous companies in terms of technical consulting, technology transfer,
training and research cooperation. He has worked in the area of testing OO
software and Web applications since 1992. He has published three books and over
a hundred technical articles in ACM, IEEE and other international journals and
conference proceedings. His research is funded by ONR, Texas Advanced
Technology Program (ATP), Texas Advanced Research Program (ARP), Texas
Technology Development and Transfer Program(TD&T) and numerous public
companies.


NOAAport Image (NIMAGE)
NOAAport satellite imagery: GOES DCP data, GMS/GOES-West/GOES-East/METEOSAT composites for visible, IR, and water vapor products (every 3 hours).


A static site with data about various email service providers, email applications etc.
Tasks
Develop a static site
Detail
GitHub Pages/Jekyll would probably be the best option to begin with as hosting it will be free.
It should be easy to add new pages and content using the same style/template.
All graphics/media used should be self-made or royalty free.
A searchable database of categorized data such as top Free email service providers as well as hosted email service providers (with details like privacy details, pricing and all possible relevant details(past hacks eg: yahoo etc) etc) such as Gmail, fastmail, Protonmail, icloud mail, zoho, migadu etc
Similar section for apps for platforms such as iOS, Android etc
Similar section for self hosted email services
And so on..
A static site using any static site generator such as Sphinx or Pelican or any other flavor in any popular language which provides the user with all the information about the following:
Deliverables
Fork this repository and submit a PR with the website code after starting work on Gitcoin Bounty.
Suggestions are welcome to improve the scope of the work or the idea.


Created by Aimee Knight / @Aimee_Knight
A language that doesn't affect the way you think about programming is not worth knowing. - Alan J. Perlis
["<", "html", ">",
"<", "head", ">",
"<", "title", ">", "My HTML Page", "", "title", ">",
"", "head", ">",
"<", "body", ">",
"<", "p", "style", "=", "\"", "special", "\"", ">",
"This paragraph has special style",
"", "p", ">",
"<", "p", ">",
"This paragraph is not special",
"", "p", ">",
"", "body", ">",
"", "html", ">"
]
#main a {
color: green;
}
p a {
color: yellow;
}
.container #main a {
color: pink;
}
div #main p a {
color: orange;
}
a {
color: red;
}
Selector |
Specificity Value (A,B,C,D) |
|---|---|
| .container #main a | 0,1,1,1 |
| div #main p a | 0,1,0,3 |
| #main a | 0,1,0,1 |
| p a | 0,0,0,2 |
| a | 0,0,0,1 |
A: Styles attribute (1,0,0,0 points)
B: Number of ID selectors (0,1,0,0 points)
C: Number of class selectors, attribute selectors, pseudo-classes (0,0,1,0 points)
D: Number of type selectors, pseudo-elements (0,0,0,1 points)
Computers are good at following instructions, but not at reading your mind. - Donald Knuth


Temple Formula Racing (TFR) is a student professional organization within Temple University's College of Engineering that uses hands-on automotive engineering skills to fully fund, prototype and assemble a formula racecar that competes in an annual Formula SAE International competition.
With the help of Faculty advisors, sponsors, and in class experiences, Temple students seek to improve the performance capabilities of our car. Each year, we make iterative design changes in hopes of weight savings and better ranking at FSAE events. Some of the events we attend include FSAE Michigan, FSAE North, and the Pittsburg Shootout.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
| Model | 2008 Honda CBR600RR |
| Cylinders | Inline-4 |
| Displacement | 599 cc |
| Horsepower | 82 HP @ 13,000 rpm |
| Torque | 46.8 ft-lbs @ 10,500 rpm |
| Compression Ratio | 12.2:1 |
| ECU | PE3 P-8400 |
| Top Speed | ~ 110 mph |
| Drive Type | Chain Driven |
| Gearbox | 6-speed sequential |
| Differential | Drexler Limited Slip |
| Double Wishbone Control Arm | |
| Shocks | Ohlins TTX25 MkII |
| Springs | Cane Creek Springs |
| Brembo P2.34/P2.30 | |
| Pistons | 2 pistons, titanium |
| Chassis | 4130 Chromoly Steel Tubing |
| Weight | 452 lbs (without driver) |
| Body Panels | Carbon Fiber |
| 13” Magnesium ӦZ Racing Wheels | |
| Tire Size | Hoosier 20.0 x 7.5-13 |
| Wheel Base | 66.5" |
| Track | 56" Front || 54" Rear |
| Fuel Type | Sunoco 93 Octane |
Powerplant:
N/a
Weight:
N/a
Place at Competition:
FSAE Michigan - 104 of 107
**Did not pass Technical Inspection**
First year back as a competing team. Year before was gathering research to produce this car.
Powerplant:
Yamaha FZ6R
Weight:
547 lbs
Place at Competition:
FSAE Michigan - 104 of 104
**Did not pass Technical Inspection**
Upgrades:
Uprights failed at competition. Ran a single brake in the rear which is part of the reason we failed braking.
Powerplant:
Yamaha FZ6R
Weight:
N/a
Place at Competition:
FSAE Michigan - 107 of 107
**Did not pass Technical Inspection**
Upgrades:
Areas to Improve:
Anti-dive and anti-squat built in but was not designed well enough. 400lb springs would not work and then 600 lb springs would not fit. Rake designed into the chassis. Set the stage for later years chassis.
Powerplant:
Yamaha FZ6R
Weight:
508 lbs
Place at Competition:
Formula North - 104 of 109
**Did not pass Technical Inspection**
Upgrades:
Areas to Improve:
Powerplant:
Yamaha FZ6R
Weight:
506 lbs
Place at Competition:
FSAE Lincoln - 48 of 70
Upgrades:
Areas to Improve:
Most improved and quietest car. First year to compete in endurance!
Powerplant:
2008 Honda CBR 600RR
Weight:
483 lbs
Place at Competition:
FSAE Michigan - 72 of 109
Upgrades:
Technical bed in advancements for aerodynamics. Made it through endurance. Best placing at competition ever! Best design judging report scores.
Powerplant:
2008 Honda CBR 600RR
Weight:
479 lbs
Place at Competition:
FSAE Michigan - 82 of 114
Upgrades:
Masterlink on chain failed during endurance.
Powerplant:
2008 Honda CBR 600RR
Weight:
452 lbs
Place at Competition:
FSAE Michigan - 77 of 108
Upgrades:
Areas to Improve:
Passed Technical Inspection first try. Struggled at Fuel, Braking, and Sound but eventually passed. Full engine swap to 2017 engine the night before Endurance. Made it 6 laps around endurance before we threw the chain from the rear sprocket.
Formula SAE advances student careers and experience in engineering as it engages students in all aspects of the automotive industry including research, design, manufacturing, testing, developing, marketing, management, and finances.
Our team has students from all departments and backgrounds, such as Mechanical and Electrical Engineering, Business, Art, Communications, etc. We are always looking for new members, so if you are interested in joining us, feel free to drop us an email!
Chau Nguyen
Chief Engineer
<EMAIL_ADDRESS>(267) 595-4215
Hunter Hayes
Project Manager
<EMAIL_ADDRESS>(610) 675-8601
Elliot Coopersmith
Chief Engineer
<EMAIL_ADDRESS>(267) 377-9566
Dr. Richard Cohen
Faculty Advisor
<EMAIL_ADDRESS>(215) 204-6245
Majd Tobaje
Corporate Relations
<EMAIL_ADDRESS>(610) 393-2341
M.E. Houston
Body Team
<EMAIL_ADDRESS>(202) 906-9237


Event Platform
{insert organization name}
Sign out
Manage Events
{insert event name}
Overview
Reports
Room capacity
{insert event name}
{insert event date}
Room Capacity


Trajectory / Tail
Attach a tail of some sort to each particle.
Sliders
- Vanish
- Positive number: The duration from particle's survival time to the disappearance of the tail.
- Negative number: Tail vanish when particle's survival time expires.
- Tail
- The number of shapes used to make up a tail.
- The length of a tail is given by (Tail-1)*Intvl
- Intvl is set in the Setting dialog.
- MidPtCount
- The number of particles to be displayed on the path yet to be run through.
- Effective only when "Show MidPt" in the dialog is checked.
- Type
- 0: the tail is where a particle has passed through.
- 1: Join particle emission origins with straight lines.
- 2: Disable this effect.
Check box
Face camera: when using with Camera control and if checked, the shapes that make up the tail will automatically turn and face towards the camera.
Setting dialog
- Shape
- The shape that makes up the tail.
- Assume the base object shape if left empty.
- Color
- Color of the tail.
- No effect if the "Shape" field above is not defined.
- Enter random to randomize color for each tail.
- Size
- Width of tail.
- Same meaning as Zoom% if "Shape" field is left empty.
- TailAlpha
- A transparency factor for the tail that is to be multiplied with particles' alpha value.
- TailZoom
- Determine the size of the tail tip.
- Intvl
- The distance between successive shapes that make up the tail.
- DriftWidth
- Add a little offset from the original tail location
- Gravity for type 0
- Enable gravity, Wind@ and FluxField to act on the tail when Type slider is zero.
- GravForPath
- The gravity to be applied to tails.
- {GravityX,GravityY,GravityZ}
- A single value sets GravityY only.
- Leave this blank or {nil,nil,nil} to use the gravity settings from ParticleRender@ and Depth_n'Grid@
- Show MidPt
- Show particles on path that has yet to be passed.
- MidPtAlpha
- Alpha value for future path when "Show MidPt" is checked.


This project shows how to use Play2, Akka and AngularJS for create a simple WebSocket based Timer application.
The basic idea is to create a sort of roundtrip from the user action to the response, using ajax calls for all the http requests and a single WebSocket for all the responses. This is just an example, in a real world application we need some more hacks to handle an high users number, and of course we need to write tests.
When the user open the application, a WebSocket is associated with the userid, in that case,because this is an example, if user doesn't have an userId in session it is generated automatically and saved in session. (In Play the session is just a cookie, and there are some helpers to manage it)
When user interact with the application clicking on one of the buttons, through Angular an ajax call is sended to the server. The ajax call is handled by a Play Action, this Action instead of send the result of the computation directly to te client, send a message to the TimerActor and close straightaway the http request with an Ok response. TimerActor handle the message, run its logic and send the operation response to the user through the associated WebSocket
This approach has two advantages :
The Play controller has two main functionalities, the first is to create the WebSocket, and the second is to send the right message to the actor when an ajax call come in
To create the socket, inside the withAuthWS
method
we call the function WebSocket.async[JsValue] ()
which take a Future[(Iteratee[JsValue, Unit], Enumerator[JsValue])].
This is generated from :
(Iteratee.ignore[JsValue] mapDone {
_ =>
timerActor ! SocketClosed(userId)
}, enumerator.asInstanceOf[Enumerator[JsValue]])
The Itaretee ignore the input, and when the client close the connection send
to the actor the message SocketClosed.
The enumerator instead, is received from the TimerActor using the ask pattern :
(timerActor ? StartSocket(userId)) map {
enumerator =>
}
The two ajax handler Actions are trivial :
def start = withAuth {
userId => implicit request =>
timerActor ! Start(userId)
Ok("")
}
withAuth
provide a basic authentication,
and then the function send a message to the actor and send the Ok("")
response to the client and close the http connection
The actor manage the creation of channels and the one to one relation between channels and users, and manage also the timer scheduler, increase the timer for active users and send the updated data to users through the sockets, writing inside the channels.
case StartSocket(userId) =>
When the message StartSocket come in,
the actor get or create the channel for the current user
webSockets.get(userId) getOrElse {
val broadcast: (Enumerator[JsValue], Channel[JsValue]) = Concurrent.broadcast[JsValue]
UserChannel(userId, 0, broadcast._1, broadcast._2)
}
The main method here is Concurrent.broadcast[JsValue]
which create a tuple (Enumerator[JsValue], Channel[JsValue]).
This tuple is composed by an enumerator and the related channel,
when we'll write inside the channel through channel.push()
method, the message is enumerated from the enumerator.
So the as last operation for the message StartSocket,
the actor send back to the sender, the AppController in that case,
this enumerator which is user in the controller for create the socket
The second interesting part in the actor is case UpdateTime() =>
The message UpdateTime is sended every second to the actor thanks the Akka helper
context.system.scheduler.schedule(0 second, 1 second, self, UpdateTime())
When this message come in, the actor update the time for every user in the list
usersTimes, and write in the channel the current time
webSockets.get(userId).get.channel push Json.toJson(json)
and this message will be sended to the client within the socket.
Pretty trivial are the Start and Stop cases, the Stop case after removed the user from the usersTimes list, send also a message to the client with timer 0, for reset the timer label.
The Angular controller is simple
$scope.start = ->
$http.get(jsRoutes.controllers.AppController.start().url).success( -> )
$scope.stop = ->
$http.get(jsRoutes.controllers.AppController.stop().url).success( -> )
Start and stop menthods send a get to the Play action,
using Play Js routes to create the right url.
When the controller is initialized, it create and connect a WebSocket
startWS = ->
wsUrl = jsRoutes.controllers.AppController.indexWS().webSocketURL()
$scope.socket = new WebSocket(wsUrl)
$scope.socket.onmessage = (msg) ->
$scope.$apply( ->
console.log "received : #{msg}"
$scope.time = JSON.parse(msg.data).data
)
and every time a message come in, it write
its content inside the controller model,
and the view is automatically updated from Angular.
Because we used WebSocket only for the server to client comunication, we can replace that with Server Sent Event and Comet polling without problems thanks to Play api.
The actor which manage sockets and timers is just a trivial example, in a real project with thousands of users, we need to defer some computations to other actors.


{% extends "../base.html" %} {% block content %}
Nickname Must be at least 4 characters and contain only a-z, 0-9, _, -
Display Name
E-mail (optional)


Jon Hamm
American actor, best known for playing advertising executive Don Draper in the AMC television drama series Mad Men (2007–2015).


{% extends 'uaccounts/base.html' %} {% block title %}Pending{% endblock %} {% block content %}
An email has been sent to {{ user.email }}
Please follow the included link to activate your account.
To resend the activation email, click here.
Logout


--- layout: null ---
Principals at higher poverty schools tend to have fewer dollars to spend at their discretion.
Graphic: Metro Ideas Project Sources: Hamilton County Department of Education and Tennessee Department of Education


Should be 50%
Indeterminate
Progress set to 33%, buffer 66%
Should be 100%, was set to 1xx (> 100%)
Should be 0, was set to -xxx (< 0)


CHRONOCHROME
This page contains links to supporting visual documentation for Joe Halliwell's Chronochrome project.
Prototype work
I have written some prototype software to explore these ideas. Processing digital video in real-time is highly computationally demanding. In order to secure the desired level of performance, the prototype is written in the low-level programming language C and carefully restricts both the spatial and temporal resolution.
Test #1
Test footage from the prototype. This was captured live. For this effect the X and time axes are swapped in realtime. Stationary objects disappear into bands of rich colour. Moving objects appear still with temporal echoes of varying degrees of distortion.
Test #2
More test footage and an example of the possibilities for playful interaction the prototype inspires.
One of the key goals of the project is to eliminate the blockiness shown here which is due to using a consumer-grade web camera to perform the video capture.
Test #3
Since Chronochrome operates in realtime it is possible to achieve feedback effects by pointing the camera at the output. This shows ghostly echoes of previous images the camera has recorded.
Some additional footage is available on my youtube profile.
Photo diary
Some snapshots from the development of the prototype are available on my flickr gallery.
Thanks
Thanks to Daniel Winterstein for his support and assistance with this project.


Subscription Management site will no longer be available
We apologize for any inconvenience. You can create or manage new communications (aka, Topics) using Contact-Permissions-Master (CPM) tool.
Please take the trainings now.
We apologize for any inconvenience. You can create or manage new communications (aka, Topics) using Contact-Permissions-Master (CPM) tool.
Please take the trainings now.


TODO: how to merge
In phase {{currentState.phase.number}}, all additions that have been voted for unanimously are considered when merging a modification.
In phase 3, additions that have been accepted using a majority vote are to be taken into account when merging your modification with the idea. We have put the additions relevant for you with the respective sections for you.


|
MiniBot
2019/2020
|
This is an implementation of PR #1691 on WPIlib. More...
Public Member Functions | |
| DriveSignal | arcadeDrive (double xSpeed, double zRotation) |
| Arcade drive method for differential drive platform. More... | |
| DriveSignal | curvatureDrive (double xSpeed, double zRotation, boolean isQuickTurn) |
| Curvature drive method for differential drive platform. More... | |
| DriveSignal | tankDrive (double leftSpeed, double rightSpeed) |
| Tank drive method for differential drive platform. More... | |
Private Attributes | |
| boolean | m_reported |
This is an implementation of PR #1691 on WPIlib.
Definition at line 7 of file DifferentialDrive.java.
| DriveSignal frc.common.drive.DifferentialDrive.arcadeDrive | ( | double | xSpeed, |
| double | zRotation | ||
| ) |
Arcade drive method for differential drive platform.
Note: Some drivers may prefer inverted rotation controls. This can be done by negating the value passed for rotation.
| xSpeed | The speed at which the robot should drive along the X axis [-1.0..1.0]. Forward is negative. |
| zRotation | The rotation rate of the robot around the Z axis [-1.0..1.0]. Clockwise is positive. |
Definition at line 21 of file DifferentialDrive.java.
| DriveSignal frc.common.drive.DifferentialDrive.curvatureDrive | ( | double | xSpeed, |
| double | zRotation, | ||
| boolean | isQuickTurn | ||
| ) |
Curvature drive method for differential drive platform.
The rotation argument controls the curvature of the robot's path rather than its rate of heading change. This makes the robot more controllable at high speeds. Also handles the robot's quick turn functionality - "quick turn" overrides constant-curvature turning for turn-in-place maneuvers.
| xSpeed | The robot's speed along the X axis [-1.0..1.0]. Forward is positive. |
| zRotation | The robot's rotation rate around the Z axis [-1.0..1.0]. Clockwise is positive. |
| isQuickTurn | If set, overrides constant-curvature turning for turn-in-place maneuvers. |
Definition at line 41 of file DifferentialDrive.java.
| DriveSignal frc.common.drive.DifferentialDrive.tankDrive | ( | double | leftSpeed, |
| double | rightSpeed | ||
| ) |
Tank drive method for differential drive platform.
| leftSpeed | The robot left side's speed along the X axis [-1.0..1.0]. Forward is positive. |
| rightSpeed | The robot right side's speed along the X axis [-1.0..1.0]. Forward is positive. |
Definition at line 64 of file DifferentialDrive.java.
|
private |
Definition at line 8 of file DifferentialDrive.java.


Menu
Add to home screen
1 click away
INSTALL
By adding our app to your home screen you can enjoy browsing the app offline.
Enable notifications
Do not miss announcements from organizers and get reminders on your favorite sessions!
REQUEST PERMISSION
Navigate
{{ p.title }}
Account
Account
Support
Logout
Account
Login
Support
Signup
Tutorial
Show Tutorial
Dark Theme
Notifications
Use browser settings to manage notifications.


|
Using the any_iterator —or any type-erasing class, for that matter—is
not without pitfalls. Please read the section entitled "Important Warning: Type Erasure Erases Interoperability"
in the HTML documentation in the directory documentation of this distribution.
You may also
read this warning online.
|