Wednesday, July 20, 2011

How to search for files using the Linux CLI

I navigated to the directory that I knew the files with the text I wanted to search was and I entered this command:

$ grep -r fizz *


The following command returned more results because it ignored case distinctions:

$ grep -ri buzz *

Tuesday, July 19, 2011

Britannica: Thinking about the French Revolution

The following is a copy and paste of a post made on the Britannica blog by David Boaz about the triumph of liberty and liberalism over feudalism and other forms of regimes, marking the 222nd anniversary of the French Revolution.
July 11, 2011
David Boaz

On Thursday the French will celebrate the 222nd anniversary of the storming of the Bastille on July 14, 1789, the date usually recognized as the beginning of the French Revolution. What should libertarians (or classical liberals) think of the French Revolution?

The Chinese premier Zhou Enlai is famously (but apparently inaccurately) quoted as saying, “It is too soon to tell.” I like to draw on the wisdom of another deep thinker of the mid 20th century, Henny Youngman, who when asked “How’s your wife?” answered, “Compared to what?” Compared to the American Revolution, the French Revolution is very disappointing to libertarians. Compared to the Russian Revolution, it looks pretty good. And it also looks good, at least in the long view, compared to the ancien regime that preceded it.

Conservatives typically follow Edmund Burke‘s critical view in his Reflections on the Revolution in France. They may even quote John Adams: ”Helvetius and Rousseau preached to the French nation liberty, till they made them the most mechanical slaves; equality, till they destroyed all equity; humanity, till they became weasels and African panthers; and fraternity, till they cut one another’s throats like Roman gladiators.”

But there’s another view. And visitors to Mount Vernon, the home of George Washington, get a glimpse of it when they see a key hanging in a place of honor. It’s one of the keys to the Bastille, sent to Washington by Lafayette by way of Thomas Paine. They understood, as the great historian A.V. Dicey put it, that “The Bastille was the outward visible sign of lawless power.” And thus keys to the Bastille were symbols of liberation from tyranny.

Traditionalist conservatives sometimes long for “the world we have lost” before liberalism and capitalism upended the natural order of the world. The diplomat Talleyrand said, ”Those who haven’t lived in the eighteenth century before the Revolution do not know the sweetness of living.” But not everyone found it so sweet. Lord Acton wrote that for decades before the revolution “the Church was oppressed, the Protestants persecuted or exiled, . . . the people exhausted by taxes and wars.” The rise of absolutism had centralized power and led to the growth of administrative bureaucracies on top of the feudal land monopolies and restrictive guilds.

The economic causes of the French Revolution are sometimes insufficiently appreciated. In his book The French Revolution: An Economic Interpretation, Florin Aftalion outlines some of those causes. The French state engaged in wars throughout the 17th and 18th centuries. To pay for the wars, it employed complex and burdensome taxation, tax farming, borrowing, debt repudiation and forced “disgorgement” from the financiers, and debasement of the currency. Lord Acton wrote that people had been anticipating revolution in France for a century. And revolution came.

Liberals and libertarians admired the fundamental values it represented. Ludwig von Mises and F. A. Hayek both hailed “the ideas of 1789” and contrasted them with “the ideas of 1914” — that is, liberty versus state-directed organization.

The Declaration of the Rights of Man, issued a month after the fall of the Bastille, enunciated libertarian principles similar to those of the Declaration of Independence:

1. Men are born and remain free and equal in rights. . . .

2. The aim of all political association is the preservation of the natural and imprescriptible rights of man. These rights are liberty, property, security, and resistance to oppression. . . .

4. Liberty consists in the freedom to do everything which injures no one else; hence the exercise of the natural rights of each man has no limits except those which assure to the other members of the society the enjoyment of the same rights. . . .

17. [P]roperty is an inviolable and sacred right.

But it also contained some dissonant notes, notably:

3. The principle of all sovereignty resides essentially in the nation. No body nor individual may exercise any authority which does not proceed directly from the nation. . . .

6. Law is the expression of the general will.

A liberal interpretation of those clauses would stress that sovereignty is now rested in the people (like “Governments are instituted among Men, deriving their just powers from the consent of the governed”), not in any individual, family, or class. But those phrases are also subject to illiberal interpretation and indeed can be traced to an illiberal provenance. The liberal Benjamin Constant blamed many of France’s ensuing problems on Jean-Jacques Rousseau, often very wrongly thought to be a liberal: “By transposing into our modern age an extent of social power, of collective sovereignty, which belonged to other centuries, this sublime genius, animated by the purest love of liberty, has nevertheless furnished deadly pretexts for more than one kind of tyranny.” That is, Rousseau and too many other Frenchmen thought that liberty consisted in being part of a self-governing community rather than the individual right to worship, trade, speak, and “come and go as we please.”

The results of that philosophical error—that the state is the embodiment of the “general will,” which is sovereign and thus unconstrained—have often been disastrous, and conservatives point to the Reign of Terror in 1793-94 as the precursor of similar terrors in totalitarian countries from the Soviet Union to Pol Pot’s Cambodia.

In Europe the results of creating democratic but essentially unconstrained governments have been far different but still disappointing to liberals. As Hayek wrote in The Constitution of Liberty:

The decisive factor which made the efforts of the Revolution toward the enhancement of individual liberty so abortive was that it created the belief that, since at last all power had been placed in the hands of the people, all safeguards against the abuse of this power had become unnecessary.

Governments could become vast, expensive, debt-ridden, intrusive, and burdensome even though they remained subject to periodic elections and largely respectful of civil and personal liberties. A century after the French Revolution Herbert Spencer worried that the divine right of kings had been replaced by “the divine right of parliaments.”

Still, as Constant celebrated in 1816, in England, France, and the United States, liberty

is the right to be subjected only to the laws, and to be neither arrested, detained, put to death or maltreated in any way by the arbitrary will of one or more individuals. It is the right of everyone to express their opinion, choose a profession and practice it, to dispose of property, and even to abuse it; to come and go without permission, and without having to account for their motives or undertakings. It is everyone’s right to associate with other individuals, either to discuss their interests, or to profess the religion which they and their associates prefer, or even simply to occupy their days or hours in a way which is most compatible with their inclinations or whims.

Compared to the ancien regime of monarchy, aristocracy, class, monopoly, mercantilism, religious uniformity, and arbitrary power, that’s the triumph of liberalism.


Source

Sunday, July 10, 2011

Configuring SciTE and the whereis command

So I was getting my text editor of choice -- SciTE -- ready for me to learn python with and I couldn't figure out how to get the text editor to display the line numbers at start up. Before, I had to select Line Numbers in the View menu every time SciTE loaded. So I joined the Google Groups for scintilla and asked there. Here was my e-mail correspondence with someone on the mailing-list named, Philippe Lhoste. I said:

I don't want to tick "View" --> "Line Numbers" every time I open
SciTE. How do I permanently set SciTE to show line numbers?


Philippe said:

Well, perhaps by starting to search "line numbers" in the SciTE doc?
I did it for you, and found you have to set line.margin.visible=1 in your user properties file.

Now the hard part for me was finding the user properties file.

According to aeon-ltd in #Ubuntu on FreeNode, he suggested I use "whereis scite" at the command line to find the location of the program, which printed the following:

daniel@natty:~$ whereis scite
scite: /usr/bin/scite /usr/share/scite
daniel@natty:~$

So I navigated to /usr/bin/scite and found SciTEGlobal.properties . With that file open using the sudo prefix it looked the line.margin.visible part looked exactly like this :

...
#line.margin.visible=1
...

So I removed the hash-mark and voila! SciTE now shows line numbers on the left hand side automatically at start up....

Thanks goes out to Philippe Lhoste and aeon-ltd for the help!

Friday, July 8, 2011

Chase Matar through CBS on reasons why Bradley Manning deserves a medal

July 8, 2011 10:16 AM
CBS Interactive Inc.
By Chase Madar


We still don’t know if he did it or not, but if Bradley Manning, the 24-year-old Army private from Oklahoma, actually supplied WikiLeaks with its choicest material -- the Iraq War logs, the Afghan War logs, and the State Department cables -- which startled and riveted the world, then he deserves the Presidential Medal of Freedom instead of a jail cell at Fort Leavenworth.

President Obama recently gave one of those medals to retiring Secretary of Defense Robert Gates, who managed the two bloody, disastrous wars about which the WikiLeaks-released documents revealed so much. Is he really more deserving than the young private who, after almost ten years of mayhem and catastrophe, gave Americans -- and the world -- a far fuller sense of what our government is actually doing abroad?

Bradley Manning, awaiting a court martial in December, faces the prospect of long years in prison. He is charged with violating the Espionage Act of 1917. He has put his sanity and his freedom on the line so that Americans might know what our government has done -- and is still doing -- globally. He has blown the whistle on criminal violations of American military law. He has exposed our secretive government’s pathological over-classification of important public documents.

Here are four compelling reasons why, if he did what the government accuses him of doing, he deserves that medal, not jail time.

1: At great personal cost, Bradley Manning has given our foreign policy elite the public supervision it so badly needs.

In the past 10 years, American statecraft has moved from calamity to catastrophe, laying waste to other nations while never failing to damage our own national interests. Do we even need to be reminded that our self-defeating response to 9/11 in Iraq and Afghanistan (and Pakistan, Yemen, and Somalia) has killed roughly 225,000 civilians and 6,000 American soldiers, while costing our country more than $3.2 trillion? We are hemorrhaging blood and money. Few outside Washington would argue that any of this is making America safer.

An employee who screwed up this badly would either be fired on the spot or put under heavy supervision. Downsizing our entire foreign policy establishment is not an option. However, the website WikiLeaks has at least tried to make public scrutiny of our self-destructive statesmen and -women a reality by exposing their work to ordinary citizens.

Consider our invasion of Iraq, a war based on distortions, government secrecy, and the complaisant failure of our major media to ask the important questions. But what if someone like Bradley Manning had provided the press with the necessary government documents, which would have made so much self-evident in the months before the war began? Might this not have prevented disaster? We’ll never know, of course, but could additional public scrutiny have been salutary under the circumstances?

Thanks to Bradley Manning’s alleged disclosures, we do have a sense of what did happen afterwards in Iraq and Afghanistan, and just how the U.S. operates in the world. Thanks to those disclosures, we now know just how Washington leaned on the Vatican to quell opposition to the Iraq War and just how it pressured the Germans to prevent them from prosecuting CIA agents who kidnapped an innocent man and shipped him off to be tortured abroad.

As our foreign policy threatens to careen into yet more disasters in Yemen, Pakistan, Somalia, and Libya, we can only hope that more whistleblowers will follow the alleged example of Bradley Manning and release vital public documents before it’s too late. A foreign policy based on secrets and spin has manifestly failed us. In a democracy, the workings of our government should not be shrouded in an opaque cloud of secrecy. For bringing us the truth, for breaking the seal on that self-protective policy of secrecy, Bradley Manning deserves the Presidential Medal of Freedom.

2: Knowledge is powerful. The WikiLeaks disclosures have helped spark democratic revolutions and reforms across the Middle East, accomplishing what Operation Iraqi Freedom never could.

Wasn’t it American policy to spread democracy in the Middle East, to extend our freedom to others, as both recent American presidents have insisted?

No single American has done more to help further this goal than Pfc. Bradley Manning. The chain reaction of democratic protests and uprisings that has swept Egypt, Libya, Bahrain, Syria, Yemen, and even in a modest way Iraq, all began in Tunisia, where leaked U.S. State Department cables about the staggering corruption of the ruling Ben Ali dynasty helped trigger the rebellion. In all cases, these societies were smoldering with longstanding grievances against oppressive, incompetent governments and economies stifled by cronyism. The revelations from the WikiLeaks State Department documents played a widely acknowledged role in sparking these pro-democracy uprisings.

In Egypt, Tunisia, Bahrain, and Yemen, the people’s revolts under way have occurred despite U.S. support for their autocratic rulers. In each of these nations, in fact, we bankrolled the dictators, while helping to arm and train their militaries. The alliance with Mubarak’s autocratic state cost the U.S. more than $60 billion and did nothing for American security -- other than inspire terrorist blowback from radicalized Egyptians like Mohammad Atta and Ayman al-Zawahiri.

Even if U.S. policy was firmly on the wrong side of things, we should be proud that at least one American -- Bradley Manning -- was on the right side. If indeed he gave those documents to WikiLeaks, then he played a catalytic role in bringing about the Arab Spring, something neither Barack Obama nor former Secretary of Defense Robert Gates (that recent surprise recipient of the Presidential Medal of Freedom) could claim. Perhaps once the Egyptians consolidate their democracy, they, too, will award Manning their equivalent of such a medal.

3: Bradley Manning has exposed the pathological over-classification of America’s public documents.

“Secrecy is for losers,” as the late Senator and United Nations Ambassador Daniel Patrick Moynihan used to say. If this is indeed the case, it would be hard to find a bigger loser than the U.S. government.

How pathological is our government’s addiction to secrecy? In June, the National Security Agency declassified documents from 1809, while the Department of Defense only last month declassified the Pentagon Papers, publicly available in book form these last four decades. Our government is only just now finishing its declassification of documents relating to World War I.

This would be ridiculous if it weren’t tragic. Ask the historians. Barton J. Bernstein, professor emeritus of history at Stanford University and a founder of its international relations program, describes the government’s classification of foreign-policy documents as “bizarre, arbitrary, and nonsensical.” George Herring, professor emeritus at the University of Kentucky and author of the encyclopedic From Colony to Superpower: A History of U.S. Foreign Policy, has chronicled how his delight at being appointed to a CIA advisory panel on declassification turned to disgust once he realized that he was being used as window dressing by an agency with no intention of opening its records, no matter how important or how old, to public scrutiny.

Any historian worth his salt would warn us that such over-classification is a leading cause of national amnesia and repetitive war disorder. If a society like ours doesn’t know its own history, it becomes the great power equivalent of a itinerant amnesiac, not knowing what it did yesterday or where it will end up tomorrow. Right now, classification is the disease of Washington, secrecy its mania, and dementia its end point. As an ostensibly democratic nation, we, its citizens, risk such ignorance at our national peril.

President Obama came into office promising a “sunshine” policy for his administration while singing the praises of whistleblowers. He has since launched the fiercest campaign against whistleblowers the republic has ever seen, and further plunged our foreign policy into the shadows. Challenging the classification of each tightly guarded document is, however, impossible. No organization has the resources to fight this fight, nor would they be likely to win right now. Absent a radical change in our government’s diplomatic and military bureaucracies, massive over-classification will only continue.

If we hope to know what our government is actually doing in our name globally, we need massive leaks from insider whistleblowers to journalists who can then sort out what we need to know, given that the government won’t. This, in fact, has been the modus operandi of WikiLeaks. Our whistleblower protection laws urgently need to catch up to this state of affairs, and though we are hardly there yet, Bradley Manning helped take us part of the way. He did what Barack Obama swore he would do on coming into office. For striking a blow against our government’s fanatical insistence on covering its mistakes and errors with blanket secrecy, Bradley Manning deserves not punishment, but the Presidential Medal of Freedom.

4. At immense personal cost, Bradley Manning has upheld a great American tradition of transparency in statecraft and for that he should be an American hero, not an American felon.

Bradley Manning is only the latest in a long line of whistleblowers in and out of uniform who have risked everything to put our country back on the right path.

Take Daniel Ellsberg, leaker of the Pentagon Papers, a Pentagon-commissioned secret history of the Vietnam War and the official lies and distortions that the government used to sell it. Many of the documents it included were classed at a much higher security clearance than anything Bradley Manning is accused of releasing -- and yet Ellsberg was not convicted of a single crime and became a national hero.

Given the era when all this went down, it’s forgivable to assume that Ellsberg must have been a hippie who somehow sneaked into the Pentagon archives, beads and patchouli trailing behind him. What many no longer realize is that Ellsberg had been a model U.S. Marine. First in his class at officer training school at Quantico, he deferred graduate school at Harvard to remain on active duty in the Marine Corps. Ellsberg saw his high-risk exposure of the disastrous and deceitful nature of the Vietnam War as fully consonant with his long career of patriotic service in and out of uniform.

And Ellsberg is hardly alone. Ask Lt. Colonel (ret.) Darrel Vandeveld. Or Tom Drake, formerly of the National Security Agency.

Transparency in statecraft was not invented last week by WikiLeaks creator Julian Assange. It is a longstanding American tradition. James Madison put the matter succinctly: “A popular government, without popular information, or the means of acquiring it, is but a prologue to a farce or a tragedy; or, perhaps both.”

A 1960 Congressional Committee on Government Operations report caught the same spirit: “Secrecy -- the first refuge of incompetents -- must be at a bare minimum in a democratic society… Those elected or appointed to positions of executive authority must recognize that government, in a democracy, cannot be wiser than the people.” John F. Kennedy made the same point in 1961: “The very word ‘secrecy’ is repugnant in a free and open society.” Hugo Black, great Alabaman justice of the twentieth-century Supreme Court had this to say: “The guarding of military and diplomatic secrets at the expense of informed representative government provides no real security for our Republic.” And the first of World-War-I-era president Woodrow Wilson’s 14 Points couldn’t have been more explicit: “Open covenants of peace, openly arrived at, after which there shall be no private international understandings of any kind but diplomacy shall proceed always frankly and in the public view.”

We need to know what our government’s commitments are, as our foreign policy elites have clearly demonstrated they cannot be left to their own devices. Based on the last decade of carnage and folly, without public debate -- and aggressive media investigations -- we have every reason to expect more of the same.

If there’s anything to learn from that decade, it’s that government secrecy and lies come at a very high price in blood and money. Thanks to the whistleblowing revelations attributed to Bradley Manning, we at least have a far clearer picture of the problems we face in trying to supervise our own government. If he was the one responsible for the WikiLeaks revelations, then for his gift to the republic, purchased at great price, he deserves not prison, but a Presidential Medal of Freedom and the heartfelt gratitude of his country.

Bio: Chase Madar is a lawyer in New York and a frequent contributor to the London Review of Books, the American Conservative magazine, CounterPunch.org, and Le Monde Diplomatique>. His next book, The Passion of Bradley Manning, will be published by O/R Books this fall. This piece originally appeared on TomDispatch. The opinions expressed in this commentary are solely those of the author.

2011 CBS Interactive Inc.

Source: http://www.cbsnews.com/2102-215_162-20077841.html?tag=contentMain;contentBody
Source: http://www.cbsnews.com/stories/2011/07/08/opinion/main20077841.shtml