Creating a municipality map of Portugal with Raphael.js

Last year I found out about a rule in the Portuguese tax code that allows local councils to give back a small percentage of the taxes to be collected back to their residents. This was seen as a measure to incentivize people to move or stay in poorer regions, which probably suffer from a shortage of jobs and services. This was a common practice in medieval times, with incentives as big as a more lax treatment in possible crimes among them1. Of course back then the risk of an Eastern invasion by a Spanish monarch was very much in the day-to-day thinking of our rulers. One can speculate that if in 2018 all the Portuguese people live by the coast is the East still Portugal? I suppose if enough Irish speakers moved there it could be claimed as part of Ireland! But I diverge.

Coming from one of the poorest regions of Portugal myself, I wondered if the “right” places were the ones indeed taking advantage of this measure and trying to attract people to live there. After a bit of research, I found that my local town didn’t use this measure but some neighbouring places did. I searched for a map so that I could visualize where this was happening and by how much (municipalities can give back up to 5% of the tax to the be collected). I didn’t find any so I thought I would create one.

GitHub project
Step 1 – Creating a municipality map in svg

This was more of a search operation than a creative one. I needed an SVG map that I could manipulate in something like JavaScript in order to load some data dynamically, such as the tax information for each council. I found one map on Wikipedia under a Creative Commons license that I could change for my purpose since it contained some errors and missed some information such as three councils. This map is not perfect because it’s missing the 30 councils that make up the archipelagos of Madeira and Açores and instead just represents the archipelago as a whole. For the purpose of this exercise, it will suffice.

Step 2 – Creating a Javascript map with Raphael.js

In order to create an interactive map, I used Raphael, a JavaScript library that allows using vector maps as JavaScript objects. Armed with the SVG data and with a way to create objects from it I started by following an online tutorial that taught me with a quick way to create a map. The hardest part was actually mapping (no pun intended) the vector data to the correct councils in an array. The SVG map didn’t have the right names, sometimes, and also didn’t have all of the councils. This left me with the time-consuming option of manually copying the data into the array.

After some time I had a map that correctly represented all of the councils with names and real borders. In order to use this in JavaScript I created a file, concelhosSVG.js , and I created the following:

The MAP_WIDTH  and MAP_HEIGHT  variables allow us to define a size to work with. The mapContainer  variable will be used in the map div in our HTML file to display the actual map. The map  variable represents the Raphael object on which we will make our manipulations. 

Finally, we define concelhosSVG which will hold an index with the name of the council and the path to append to our map variable. 

In Raphael we can use the SVG path syntax which basically allows us to start with an M  (move to) and add coordinates until we issue a Z  for ending the path.

Step 3 – Adding our map to html

Now that we have a map we can create a simple HTML page to include the map. 

I’ve gone ahead and added a simple style to our CSS file

And here’s the result

Portugal Council Map using Raphael.js
Step 4 – Adding our tax information

Now that we have a map, albeit a very ugly one, let’s add our tax information. This information is public and you can get it from the Portuguese Revenue website

We’ll create a new JavaScript file called concelhosIRS.js  and we’ll create an array inside it with all the information needed.

Step 5 – Styling our map with the tax information

Finally, we just need to syle our map based on this information. In order to do that we’ll create a new JavaScript file named main.js  and we’ll add the following code to it.

We’ll start by adding our initial style, our style when hovering the mouse over a council and the style for each of the tax brackets. I chose to create six tax brackets between 0% and 5%. The councils that don’t offer any tax benefit will not have a colour and will just show as grey.

Next, we add a function to change the styling based on the tax benefit that the council provides.

And we wrap everything together by adding our main code that initialises the map colours and adds our event listeners for when we hover our mouse over a council and move out.

Final result and notes

After a few updates to our HTML file, we end up with the following map.

Final map with colours
Final map with colours

Much nicer right?

You can find all the source code on GitHub if you want to take a look or try it out for yourself.

I’ll throw some additional notes just so you’re aware of them:

  • I have not used councils for Azores and Madeira as I couldn’t find any usable SVG for them. I also suspect they would be tiny to select, as some councils in the continent already are. The tax data for them are mapped in concelhosIRS.js though.
  • I have used global variables for the tax data and the Raphael map. I did this because it was a learning exercise for me around Raphael and SVG and not programming. Global variables are fine to use in very small projects such as this tutorial but you shouldn’t use them in any production code or larger collaborative projects. Start here and do your own research.
  • A shout out to Andy Fitch who also has a nice tutorial on this subject.

 

 

Walden or Life in the Woods by Henry David Thoreau

Walden seems to have a perennial love-hate relationshop with most readers. For me it’s the first. I can easily see how this could be a life changing book for most people, assuming you can get past the descriptions of the depth of Walden Pond and the several ways to measure it.

The first half of the book itself is brilliant so I believe that even for those that don’t finish it, Thoreau, will have passed the majority of his philosophy by then. His core tennets of loving Nature, building his own life from the ground up and living, eating and doing everything by simple means are now, possibly more than ever, needed on our 24/7 news, push notifications always on life. As a friend of mine said “I’m afraid of reading for I might leave my girlfriend and city life for the woods with only a backpack to keep me company”. 

I see young men, my townsmen, whose misfortune it is to have inherited farms, houses, barns, cattle, and farming tools; for these are more easily acquired than got rid of. Better if they had been born in the open pasture and suckled by a wolf, that they might have seen with clearer eyes what field they were called to labor in. Who made them serfs of the soil?

But men labor under a mistake. The better part of the man is soon plowed into the soil for compost. By a seeming fate, commonly called necessity, they are employed, as it says in an old book, laying up treasures which moth and rust will corrupt and thieves break through and steal. It is a fool’s life, as they will find when they get to the end of it, if not before.

Public opinion is a weak tyrant compared with our own private opinion. What a man thinks of himself, that it is which determines, or rather indicates, his fate.

One farmer says to me, “You cannot live on vegetable food solely, for it furnishes nothing to make bones with”; and so he religiously devotes a part of his day to supplying his system with the raw material of bones; walking all the while he talks behind his oxen, which, with vegetable-made bones, jerk him and his lumbering plow along in spite of every obstacle.

Most of the luxuries, and many of the so-called comforts of life, are not only not indispensable, but positive hindrances to the elevation of mankind. With respect to luxuries and comforts, the wisest have ever lived a more simple and meagre life than the poor. The ancient philosophers, Chinese, Hindoo, Persian, and Greek, were a class than which none has been poorer in outward riches, none so rich in inward.

None can be an impartial or wise observer of human life but from the vantage ground of what we should call voluntary poverty.

When a man is warmed by the several modes which I have described, what does he want next? Surely not more warmth of the same kind, as more and richer food, larger and more splendid houses, finer and more abundant clothing, more numerous, incessant, and hotter fires, and the like. When he has obtained those things which are necessary to life, there is another alternative than to obtain the superfluities; and that is, to adventure on life now, his vacation from humbler toil having commenced.

I sometimes try my acquaintances by such tests as this—Who could wear a patch, or two extra seams only, over the knee? Most behave as if they believed that their prospects for life would be ruined if they should do it. It would be easier for them to hobble to town with a broken leg than with a broken pantaloon. Often if an accident happens to a gentleman’s legs, they can be mended; but if a similar accident happens to the legs of his pantaloons, there is no help for it; for he considers, not what is truly respectable, but what is respected. We know but few men, a great many coats and breeches.

I have heard of a dog that barked at every stranger who approached his master’s premises with clothes on, but was easily quieted by a naked thief. It is an interesting question how far men would retain their relative rank if they were divested of their clothes.

Beside, clothes introduced sewing, a kind of work which you may call endless; a woman’s dress, at least, is never done.

I say, beware of all enterprises that require new clothes, and not rather a new wearer of clothes. If there is not a new man, how can the new clothes be made to fit? If you have any enterprise before you, try it in your old clothes. All men want, not something to do with, but something to do, or rather something to be. Perhaps we should never procure a new suit, however ragged or dirty the old, until we have so conducted, so enterprised or sailed in some way, that we feel like new men in the old, and that to retain it would be like keeping new wine in old bottles.

At last, we know not what it is to live in the open air, and our lives are domestic in more senses than we think. From the hearth the field is a great distance. It would be well, perhaps, if we were to spend more of our days and nights without any obstruction between us and the celestial bodies, if the poet did not speak so much from under a roof, or the saint dwell there so long. Birds do not sing in caves, nor do doves cherish their innocence in dovecots. However, if one designs to construct a dwelling-house, it behooves him to exercise a little Yankee shrewdness, lest after all he find himself in a workhouse, a labyrinth without a clue, a museum, an almshouse, a prison, or a splendid mausoleum instead. Consider first how slight a shelter is absolutely necessary.

In the large towns and cities, where civilization especially prevails, the number of those who own a shelter is a very small fraction of the whole. The rest pay an annual tax for this outside garment of all, become indispensable summer and winter, which would buy a village of Indian wigwams, but now helps to keep them poor as long as they live.

I do not mean to insist here on the disadvantage of hiring compared with owning, but it is evident that the savage owns his shelter because it costs so little, while the civilized man hires his commonly because he cannot afford to own it; nor can he, in the long run, any better afford to hire.

If it is asserted that civilization is a real advance in the condition of man—and I think that it is, though only the wise improve their advantages—it must be shown that it has produced better dwellings without making them more costly; and the cost of a thing is the amount of what I will call life which is required to be exchanged for it, immediately or in the long run.

Most men appear never to have considered what a house is, and are actually though needlessly poor all their lives because they think that they must have such a one as their neighbors have.

I had three pieces of limestone on my desk, but I was terrified to find that they required to be dusted daily, when the furniture of my mind was all undusted still, and threw them out the window in disgust. How, then, could I have a furnished house? I would rather sit in the open air, for no dust gathers on the grass, unless where man has broken ground.

The cart before the horse is neither beautiful nor useful. Before we can adorn our houses with beautiful objects the walls must be stripped, and our lives must be stripped, and beautiful housekeeping and beautiful living be laid for a foundation: now, a taste for the beautiful is most cultivated out of doors, where there is no house and no housekeeper.

Those things for which the most money is demanded are never the things which the student most wants. Tuition, for instance, is an important item in the term bill, while for the far more valuable education which he gets by associating with the most cultivated of his contemporaries no charge is made.

This spending of the best part of one’s life earning money in order to enjoy a questionable liberty during the least valuable part of it reminds me of the Englishman who went to India to make a fortune first, in order that he might return to England and live the life of a poet. He should have gone up garret at once. “What!” exclaim a million Irishmen starting up from all the shanties in the land, “is not this railroad which we have built a good thing?” Yes, I answer, comparatively good, that is, you might have done worse; but I wish, as you are brothers of mine, that you could have spent your time better than digging in this dirt.

if one would live simply and eat only the crop which he raised, and raise no more than he ate, and not exchange it for an insufficient quantity of more luxurious and expensive things, he would need to cultivate only a few rods of ground, and that it would be cheaper to spade up that than to use oxen to plow it, and to select a fresh spot from time to time than to manure the old, and he could do all his necessary farm work as it were with his left hand at odd hours in the summer; and thus he would not be tied to an ox, or horse, or cow, or pig, as at present.

I am wont to think that men are not so much the keepers of herds as herds are the keepers of men, the former are so much the freer. Men and oxen exchange work; but if we consider necessary work only, the oxen will be seen to have greatly the advantage, their farm is so much the larger. Man does some of his part of the exchange work in his six weeks of haying, and it is no boy’s play. Certainly no nation that lived simply in all respects, that is, no nation of philosophers, would commit so great a blunder as to use the labor of animals.

I learned from my two years’ experience that it would cost incredibly little trouble to obtain one’s necessary food, even in this latitude; that a man may use as simple a diet as the animals, and yet retain health and strength.

I made a study of the ancient and indispensable art of bread-making, consulting such authorities as offered, going back to the primitive days and first invention of the unleavened kind, when from the wildness of nuts and meats men first reached the mildness and refinement of this diet, and travelling gradually down in my studies through that accidental souring of the dough which, it is supposed, taught the leavening process, and through the various fermentations thereafter, till I came to “good, sweet, wholesome bread,” the staff of life.

Every New Englander might easily raise all his own breadstuffs in this land of rye and Indian corn, and not depend on distant and fluctuating markets for them. Yet so far are we from simplicity and independence that, in Concord, fresh and sweet meal is rarely sold in the shops, and hominy and corn in a still coarser form are hardly used by any. For the most part the farmer gives to his cattle and hogs the grain of his own producing, and buys flour, which is at least no more wholesome, at a greater cost, at the store.

Furniture! Thank God, I can sit and I can stand without the aid of a furniture warehouse. What man but a philosopher would not be ashamed to see his furniture packed in a cart and going up country exposed to the light of heaven and the eyes of men, a beggarly account of empty boxes? That is Spaulding’s furniture. I could never tell from inspecting such a load whether it belonged to a so-called rich man or a poor one; the owner always seemed poverty-stricken. Indeed, the more you have of such things the poorer you are. Each load looks as if it contained the contents of a dozen shanties; and if one shanty is poor, this is a dozen times as poor. Pray, for what do we move ever but to get rid of our furniture, our exuvioe: at last to go from this world to another newly furnished, and leave this to be burned?

“But what shall I do with my furniture?”—My gay butterfly is entangled in a spider’s web then. Even those who seem for a long while not to have any, if you inquire more narrowly you will find have some stored in somebody’s barn. I look upon England today as an old gentleman who is travelling with a great deal of baggage, trumpery which has accumulated from long housekeeping, which he has not the courage to burn; great trunk, little trunk, bandbox, and bundle. Throw away the first three at least. It would surpass the powers of a well man nowadays to take up his bed and walk, and I should certainly advise a sick one to lay down his bed and run. When I have met an immigrant tottering under a bundle which contained his all—looking like an enormous wen which had grown out of the nape of his neck—I have pitied him, not because that was his all, but because he had all that to carry.

A lady once offered me a mat, but as I had no room to spare within the house, nor time to spare within or without to shake it, I declined it, preferring to wipe my feet on the sod before my door. It is best to avoid the beginnings of evil.

For more than five years I maintained myself thus solely by the labor of my hands, and I found that, by working about six weeks in a year, I could meet all the expenses of living. The whole of my winters, as well as most of my summers, I had free and clear for study.

In short, I am convinced, both by faith and experience, that to maintain one’s self on this earth is not a hardship but a pastime, if we will live simply and wisely; as the pursuits of the simpler nations are still the sports of the more artificial. It is not necessary that a man should earn his living by the sweat of his brow, unless he sweats easier than I do.

I would not have any one adopt my mode of living on any account; for, beside that before he has fairly learned it I may have found out another for myself, I desire that there may be as many different persons in the world as possible; but I would have each one be very careful to find out and pursue his own way, and not his father’s or his mother’s or his neighbor’s instead.

Above all, as I have implied, the man who goes alone can start today; but he who travels with another must wait till that other is ready, and it may be a long time before they get off.

There is no odor so bad as that which arises from goodness tainted. It is human, it is divine, carrion. If I knew for a certainty that a man was coming to my house with the conscious design of doing me good, I should run for my life, as from that dry and parching wind of the African deserts called the simoom, which fills the mouth and nose and ears and eyes with dust till you are suffocated, for fear that I should get some of his good done to me—some of its virus mingled with my blood. No—in this case I would rather suffer evil the natural way.

A man is not a good man to me because he will feed me if I should be starving, or warm me if I should be freezing, or pull me out of a ditch if I should ever fall into one. I can find you a Newfoundland dog that will do as much. Philanthropy is not love for one’s fellow-man in the broadest sense.

Be sure that you give the poor the aid they most need, though it be your example which leaves them far behind. If you give money, spend yourself with it, and do not merely abandon it to them. We make curious mistakes sometimes. Often the poor man is not so cold and hungry as he is dirty and ragged and gross. It is partly his taste, and not merely his misfortune. If you give him money, he will perhaps buy more rags with it. I was wont to pity the clumsy Irish laborers who cut ice on the pond, in such mean and ragged clothes, while I shivered in my more tidy and somewhat more fashionable garments, till, one bitter cold day, one who had slipped into the water came to my house to warm him, and I saw him strip off three pairs of pants and two pairs of stockings ere he got down to the skin, though they were dirty and ragged enough, it is true, and that he could afford to refuse the extra garments which I offered him, he had so many intra ones. This ducking was the very thing he needed. Then I began to pity myself, and I saw that it would be a greater charity to bestow on me a flannel shirt than a whole slop-shop on him.

I would not subtract anything from the praise that is due to philanthropy, but merely demand justice for all who by their lives and works are a blessing to mankind. I do not value chiefly a man’s uprightness and benevolence, which are, as it were, his stem and leaves. Those plants of whose greenness withered we make herb tea for the sick serve but a humble use, and are most employed by quacks. I want the flower and fruit of a man; that some fragrance be wafted over from him to me, and some ripeness flavor our intercourse. His goodness must not be a partial and transitory act, but a constant superfluity, which costs him nothing and of which he is unconscious. This is a charity that hides a multitude of sins.

a man is rich in proportion to the number of things which he can afford to let alone.

After a partial cessation of his sensuous life, the soul of man, or its organs rather, are reinvigorated each day, and his Genius tries again what noble life it can make. All memorable events, I should say, transpire in morning time and in a morning atmosphere. The Vedas say, “All intelligences awake with the morning.” Poetry and art, and the fairest and most memorable of the actions of men, date from such an hour. All poets and heroes, like Memnon, are the children of Aurora, and emit their music at sunrise.

I went to the woods because I wished to live deliberately, to front only the essential facts of life, and see if I could not learn what it had to teach, and not, when I came to die, discover that I had not lived.

Simplicity, simplicity, simplicity! I say, let your affairs be as two or three, and not a hundred or a thousand; instead of a million count half a dozen, and keep your accounts on your thumb-nail. In the midst of this chopping sea of civilized life, such are the clouds and storms and quicksands and thousand-and-one items to be allowed for, that a man has to live, if he would not founder and go to the bottom and not make his port at all, by dead reckoning, and he must be a great calculator indeed who succeeds. Simplify, simplify. Instead of three meals a day, if it be necessary eat but one; instead of a hundred dishes, five; and reduce other things in proportion.

For my part, I could easily do without the post-office. I think that there are very few important communications made through it. To speak critically, I never received more than one or two letters in my life—I wrote this some years ago—that were worth the postage. The penny-post is, commonly, an institution through which you seriously offer a man that penny for his thoughts which is so often safely offered in jest. And I am sure that I never read any memorable news in a newspaper. If we read of one man robbed, or murdered, or killed by accident, or one house burned, or one vessel wrecked, or one steamboat blown up, or one cow run over on the Western Railroad, or one mad dog killed, or one lot of grasshoppers in the winter—we never need read of another. One is enough. If you are acquainted with the principle, what do you care for a myriad instances and applications? To a philosopher all news, as it is called, is gossip, and they who edit and read it are old women over their tea. Yet not a few are greedy after this gossip.

Books are the treasured wealth of the world and the fit inheritance of generations and nations. Books, the oldest and the best, stand naturally and rightfully on the shelves of every cottage. They have no cause of their own to plead, but while they enlighten and sustain the reader his common sense will not refuse them. Their authors are a natural and irresistible aristocracy in every society, and, more than kings or emperors, exert an influence on mankind. When the illiterate and perhaps scornful trader has earned by enterprise and industry his coveted leisure and independence, and is admitted to the circles of wealth and fashion, he turns inevitably at last to those still higher but yet inaccessible circles of intellect and genius, and is sensible only of the imperfection of his culture and the vanity and insufficiency of all his riches, and further proves his good sense by the pains which be takes to secure for his children that intellectual culture whose want he so keenly feels; and thus it is that he becomes the founder of a family.

Sometimes, in a summer morning, having taken my accustomed bath, I sat in my sunny doorway from sunrise till noon, rapt in a revery, amidst the pines and hickories and sumachs, in undisturbed solitude and stillness, while the birds sing around or flitted noiseless through the house, until by the sun falling in at my west window, or the noise of some traveller’s wagon on the distant highway, I was reminded of the lapse of time. I grew in those seasons like corn in the night, and they were far better than any work of the hands would have been. They were not time subtracted from my life, but so much over and above my usual allowance. I realized what the Orientals mean by contemplation and the forsaking of works. For the most part, I minded not how the hours went. The day advanced as if to light some work of mine; it was morning, and lo, now it is evening, and nothing memorable is accomplished. Instead of singing like the birds, I silently smiled at my incessant good fortune.

While I enjoy the friendship of the seasons I trust that nothing can make life a burden to me. The gentle rain which waters my beans and keeps me in the house today is not drear and melancholy, but good for me too. Though it prevents my hoeing them, it is of far more worth than my hoeing. If it should continue so long as to cause the seeds to rot in the ground and destroy the potatoes in the low lands, it would still be good for the grass on the uplands, and, being good for the grass, it would be good for me.

I find it wholesome to be alone the greater part of the time. To be in company, even with the best, is soon wearisome and dissipating. I love to be alone. I never found the companion that was so companionable as solitude. We are for the most part more lonely when we go abroad among men than when we stay in our chambers. A man thinking or working is always alone, let him be where he will. Solitude is not measured by the miles of space that intervene between a man and his fellows.

It would be better if there were but one inhabitant to a square mile, as where I live. The value of a man is not in his skin, that we should touch him.

I have a great deal of company in my house; especially in the morning, when nobody calls.

I had three chairs in my house; one for solitude, two for friendship, three for society.

Many of our houses, both public and private, with their almost innumerable apartments, their huge halls and their cellars for the storage of wines and other munitions of peace, appear to be extravagantly large for their inhabitants. They are so vast and magnificent that the latter seem to be only vermin which infest them.

If one guest came he sometimes partook of my frugal meal, and it was no interruption to conversation to be stirring a hasty-pudding, or watching the rising and maturing of a loaf of bread in the ashes, in the meanwhile. But if twenty came and sat in my house there was nothing said about dinner, though there might be bread enough for two, more than if eating were a forsaken habit; but we naturally practised abstinence; and this was never felt to be an offence against hospitality, but the most proper and considerate course. The waste and decay of physical life, which so often needs repair, seemed miraculously retarded in such a case, and the vital vigor stood its ground.

husbandry was once a sacred art; but it is pursued with irreverent haste and heedlessness by us, our object being to have large farms and large crops merely. We have no festival, nor procession, nor ceremony, not excepting our cattle-shows and so-called Thanksgivings, by which the farmer expresses a sense of the sacredness of his calling, or is reminded of its sacred origin. It is the premium and the feast which tempt him.

By avarice and selfishness, and a grovelling habit, from which none of us is free, of regarding the soil as property, or the means of acquiring property chiefly, the landscape is deformed, husbandry is degraded with us, and the farmer leads the meanest of lives. He knows Nature but as a robber.

These beans have results which are not harvested by me. Do they not grow for woodchucks partly? The ear of wheat (in Latin spica, obsoletely speca, from spe, hope) should not be the only hope of the husbandman; its kernel or grain (granum from gerendo, bearing) is not all that it bears. How, then, can our harvest fail? Shall I not rejoice also at the abundance of the weeds whose seeds are the granary of the birds? It matters little comparatively whether the fields fill the farmer’s barns. The true husbandman will cease from anxiety, as the squirrels manifest no concern whether the woods will bear chestnuts this year or not, and finish his labor with every day, relinquishing all claim to the produce of his fields, and sacrificing in his mind not only his first but his last fruits also.

Every man has to learn the points of compass again as often as be awakes, whether from sleep or any abstraction. Not till we are lost, in other words not till we have lost the world, do we begin to find ourselves, and realize where we are and the infinite extent of our relations.

I was never molested by any person but those who represented the State. I had no lock nor bolt but for the desk which held my papers, not even a nail to put over my latch or windows. I never fastened my door night or day, though I was to be absent several days; not even when the next fall I spent a fortnight in the woods of Maine. And yet my house was more respected than if it had been surrounded by a file of soldiers. The tired rambler could rest and warm himself by my fire, the literary amuse himself with the few books on my table, or the curious, by opening my closet door, see what was left of my dinner, and what prospect I had of a supper.

I am convinced, that if all men were to live as simply as I then did, thieving and robbery would be unknown. These take place only in communities where some have got more than is sufficient while others have not enough.

“You who govern public affairs, what need have you to employ punishments? Love virtue, and the people will be virtuous. The virtues of a superior man are like the wind; the virtues of a common man are like the grass—I the grass, when the wind passes over it, bends.”

I lived in a tight, light, and clean house, which hardly cost more than the annual rent of such a ruin as his commonly amounts to; and how, if he chose, he might in a month or two build himself a palace of his own; that I did not use tea, nor coffee, nor butter, nor milk, nor fresh meat, and so did not have to work to get them; again, as I did not work hard, I did not have to eat hard, and it cost me but a trifle for my food; but as he began with tea, and coffee, and butter, and milk, and beef, he had to work hard to pay for them, and when he had worked hard he had to eat hard again to repair the waste of his system—and

he had rated it as a gain in coming to America, that here you could get tea, and coffee, and meat every day. But the only true America is that country where you are at liberty to pursue such a mode of life as may enable you to do without these, and where the state does not endeavor to compel you to sustain the slavery and war and other superfluous expenses which directly or indirectly result from the use of such things.

I told him, that as he worked so hard at bogging, he required thick boots and stout clothing, which yet were soon soiled and worn out, but I wore light shoes and thin clothing, which cost not half so much, though he might think that I was dressed like a gentleman (which, however, was not the case), and in an hour or two, without labor, but as a recreation, I could, if I wished, catch as many fish as I should want for two days, or earn enough money to support me a week. If he and his family would live simply, they might all go a-huckleberrying in the summer for their amusement.

We should come home from far, from adventures, and perils, and discoveries every day, with new experience and character.

there is something essentially unclean about this diet and all flesh, and I began to see where housework commences, and whence the endeavor, which costs so much, to wear a tidy and respectable appearance each day, to keep the house sweet and free from all ill odors and sights. Having been my own butcher and scullion and cook, as well as the gentleman for whom the dishes were served up, I can speak from an unusually complete experience. The practical objection to animal food in my case was its uncleanness; and besides, when I had caught and cleaned and cooked and eaten my fish, they seemed not to have fed me essentially. It was insignificant and unnecessary, and cost more than it came to. A little bread or a few potatoes would have done as well, with less trouble and filth.

I believe that every man who has ever been earnest to preserve his higher or poetic faculties in the best condition has been particularly inclined to abstain from animal food, and from much food of any kind.

It may be vain to ask why the imagination will not be reconciled to flesh and fat. I am satisfied that it is not. Is it not a reproach that man is a carnivorous animal? True, he can and does live, in a great measure, by preying on other animals; but this is a miserable way—as any one who will go to snaring rabbits, or slaughtering lambs, may learn—and he will be regarded as a benefactor of his race who shall teach man to confine himself to a more innocent and wholesome diet. Whatever my own practice may be, I have no doubt that it is a part of the destiny of the human race, in its gradual improvement, to leave off eating animals, as surely as the savage tribes have left off eating each other when they came in contact with the more civilized.

No man ever followed his genius till it misled him. Though the result were bodily weakness, yet perhaps no one can say that the consequences were to be regretted, for these were a life in conformity to higher principles. If the day and the night are such that you greet them with joy, and life emits a fragrance like flowers and sweet-scented herbs, is more elastic, more starry, more immortal—that is your success. All nature is your congratulation, and you have cause momentarily to bless yourself. The greatest gains and values are farthest from being appreciated. We easily come to doubt if they exist. We soon forget them. They are the highest reality.

I would fain keep sober always; and there are infinite degrees of drunkenness. I believe that water is the only drink for a wise man; wine is not so noble a liquor; and think of dashing the hopes of a morning with a cup of warm coffee, or of an evening with a dish of tea! Ah, how low I fall when I am tempted by them!

“The soul not being mistress of herself,” says Thseng-tseu, “one looks, and one does not see; one listens, and one does not hear; one eats, and one does not know the savor of food.” He who distinguishes the true savor of his food can never be a glutton; he who does not cannot be otherwise. A puritan may go to his brown-bread crust with as gross an appetite as ever an alderman to his turtle. Not that food which entereth into the mouth defileth a man, but the appetite with which it is eaten. It is neither the quality nor the quantity, but the devotion to sensual savors; when that which is eaten is not a viand to sustain our animal, or inspire our spiritual life, but food for the worms that possess us.

We are conscious of an animal in us, which awakens in proportion as our higher nature slumbers. It is reptile and sensual, and perhaps cannot be wholly expelled; like the worms which, even in life and health, occupy our bodies. Possibly we may withdraw from it, but never change its nature. I fear that it may enjoy a certain health of its own; that we may be well, yet not pure.

From exertion come wisdom and purity; from sloth ignorance and sensuality.

We should be blessed if we lived in the present always, and took advantage of every accident that befell us, like the grass which confesses the influence of the slightest dew that falls on it; and did not spend our time in atoning for the neglect of past opportunities, which we call doing our duty. We loiter in winter while it is already spring.

Every man is the lord of a realm beside which the earthly empire of the Czar is but a petty state, a hummock left by the ice. Yet some can be patriotic who have no self-respect, and sacrifice the greater to the less. They love the soil which makes their graves, but have no sympathy with the spirit which may still animate their clay. Patriotism is a maggot in their heads. What was the meaning of that South–Sea Exploring Expedition, with all its parade and expense, but an indirect recognition of the fact that there are continents and seas in the moral world to which every man is an isthmus or an inlet, yet unexplored by him, but that it is easier to sail many thousand miles through cold and storm and cannibals, in a government ship, with five hundred men and boys to assist one, than it is to explore the private sea, the Atlantic and Pacific Ocean of one’s being alone.

However mean your life is, meet it and live it; do not shun it and call it hard names. It is not so bad as you are. It looks poorest when you are richest. The faultfinder will find faults even in paradise. Love your life, poor as it is. You may perhaps have some pleasant, thrilling, glorious hours, even in a poorhouse. The setting sun is reflected from the windows of the almshouse as brightly as from the rich man’s abode; the snow melts before its door as early in the spring.

Cultivate poverty like a garden herb, like sage. Do not trouble yourself much to get new things, whether clothes or friends. Turn the old; return to them. Things do not change; we change. Sell your clothes and keep your thoughts.

We are often reminded that if there were bestowed on us the wealth of Croesus, our aims must still be the same, and our means essentially the same. Moreover, if you are restricted in your range by poverty, if you cannot buy books and newspapers, for instance, you are but confined to the most significant and vital experiences; you are compelled to deal with the material which yields the most sugar and the most starch. It is life near the bone where it is sweetest. You are defended from being a trifler. No man loses ever on a lower level by magnanimity on a higher. Superfluous wealth can buy superfluities only. Money is not required to buy one necessary of the soul.

There is an incessant influx of novelty into the world, and yet we tolerate incredible dulness.