Friday, October 19, 2012

Fun with IPython

Recently I had to git-rename (move) a few files according to a simple pattern (prepend "test_" to the name if it ends in ".py") and my shell fu had become rusty.  I wanted to do it in Python.

Enter IPython and its wonderful facility for mixing a little bit of shell goodness into your Python code.  Look what worked:

In [3]: fs = !ls

In [4]: fs
Out[4]: ['base.py', 'cache', '__init__.py', 'rss.py', 'util.py']

In [5]: for fn in fs:
   ...:     if fn.endswith('.py'):
   ...:         dest = 'test_' + fn
   ...:         !git mv $fn $dest
   ...:        

In [6]: !ls
cache  test_base.py  test___init__.py  test_rss.py  test_util.py
Neat, huh?

Monday, September 17, 2012

Stallman is Correct

  • Confusion around the GPL and its purpose
    • Many folk writing fine FOSS software are condemning GPL et. al. for being what it is designed to be.
    • Indicates misunderstanding of fundamental purpose.
  • The GPL is a weapon.
    • Meant to curb anti-social behavior on the part of people who will not do it voluntarily.
  • Fools vs. Genius
    • Making money is not the same thing as creating value.
    • Non-physical restrictions on copying bit-patterns attempt to create an artificial scarcity.
      • As foolish as attempts to legislate the value of Pi.
    • People are foolishly introducing want and lack where none previously existed.
    • They're not creating value but rather interfering with it, restricting it.
  •  But what about the starving artists!?
    • Bucky calculated that we would be able to work two years and retire, having paid for our living for the rest of our lives in those two years, by sometime in the 1970's.
    • The trick is we have to align our technology with our needs efficiently.
    • If we align our technology with our actual needs we should expect a nearly Utopian system to happen automatically.
  • We make a system where nobody starves, artist or otherwise.
    • The solution to the starving artist problem is global. Nobody starves.
    • It doesn't solve the human condition, but it does alter the set of daily problems with which we all must cope.
  • Do we want to be miserable and venal, or joyful and abundant?
    • Understanding the GPL and its purpose in light of the larger context and sweep of history is essential to the "Open Source" movement and to the very spirit of being a hacker.
    • Hackers are very much warriors against fear and lack and sorrow and the myriad miseries of human history.
    • The GPL is a weapon to prevent ignorant or anti-social people from using the value you create as a "hook" to ensnare people into artificial dependence.
  •  The only obstacles are in our minds.
    • The technology exists to create an abundant Utopian physical environment for everyone.
    • Emotional problems- tons of solutions EFT, Kindness, Prayer, etc. We have that "technology" too.
    • Ignorance
      • Not enough people simply know that this is possible. Now YOU are one of the ones who do.
      • The GPL is a part of this, that's why it is designed the way it is, and that's why it's ludicrous to criticize it in ignorance of its purpose.
    • Will. Choose life, love, abundance, joy, happiness and well-being. Choose GPL.

Monday, September 10, 2012

NoSQL (which should be NoRM, but that's silly) is actually NoACID

ACID-compliance and the Relational Model are orthogonal and it would be unfortunate to throw out the baby of a mature and well-known data modeling ecosystem with the bathwater of unscalable constraints on data access.

Scaling your database becomes crucial as number of simultaneous clients you're attempting to serve begins to ramp up exponentially. A modern web app can make ridiculous demands on the software even with powerful servers running it.

As a reaction to the limits of ACID-compliance in scalable data storage people have begun to use new tools collectively referred to as "NoSQL".

The "NoSQL movement" is a name for the general recognition that RMDB solutions were beginning to seem overwhelmed by the task.  Lots of interesting and useful software has grown up to fill the perceived gap. But as this has happened, many folk who maybe should know better but are blissfully unaware that SQL (a Query Language) is not and has never been the same thing as RM, the Relational Model, have, in the push for scalable data storage, largely overlooked the benefits of RM.

Mapping real-world phenomenon into digital representation is still a very open field. It's not really possible to capture reality in digital form. Our best efforts to come should not be expected to involve disregard for the best efforts of the brilliant people who have come before us.

Building a data storage system in ignorance of Cobb is like building a theory of physics in ignorance of Newton.

You might be able to do it, but why?

Monday, May 18, 2009

Wealth in an Age of Ecological Turmoil

The times they are a changing. We want to live abundant lives, but the current crop of consumer products and their attendant manufacturing and distribution bases are destroying our Mother Earth. How can we justify wealth-seeking in a time when the material badges of that wealth are themselves anti-life?

Local Sustainable "Consumption"
The first piece of the puzzle of reconciling wealth and abundance with sustainable practices is your commitment to "source" your material goods and services from local sustainable producers.

Buying from local sustainable producers saves resources and prevents destruction of the Earth's bounty. If the producers then also buy locally the effect of your spending choice is multiplied.

Ideally, everyone involved in the production of your consumer products would be using sustainable methods and materials. The physical buildings and other infrastructure would be constructed and maintained in sustainable ways, with sustainable materials.

By factoring in our social requirements to our purchasing decisions we can easily signal the business world to adapt themselves to supporting a healthy and long-term life. Most of them already want to, they just need the economic gateways opened up for them by our ready dollars.

Spiritual Wealth
The very nature of wealth is changing. Old fashioned ideas of wealth based primarily on status symbols and ability to command the productive capacity of your fellows are rapidly failing.

Material items don't improve your happiness once you've reached a certain "norm". Your need for personal growth can't be fed by any increase in trinkets. The solution to existential malaise takes the form of moving beyond yourself, of trying to be a better person, a greater human being.

So we find ourselves talking about spiritual wealth, and here we have a plethora of sound advice and guides. Reach out to your fellow earthlings and serve them, engender episodes of warmth and human compassion in daily life. Let your existence become a poem of service and kindness. This is a sure path to true wealth.

Imagine that you're an eco-entrepreneur. Perhaps you bake bread with local ingredients. In comes a new customer and, with a smile on her face, she buys some of your bread. Now, granted there's an equitable exchange going on there, but can't you imagine that you'd feel a bit like that person had done you a good turn?

When you patronize responsible businesses that are competing with irresponsible ones you are, in no small measure, serving the whole world. You still need to do more than shop responsibly to be a good person, but it is a simple way to bring spiritual values into your life.


If we make the decision to buy goods and services that are created in harmony with the systems of the Earth, and if we go beyond material abundance to the true wealth of the spirit, then the drive to live well can be harnessed in a healthy manner and become, not part of the problem, but part of the solution.

Saturday, October 11, 2008

Honda's next-generation thin film solar cells

From a flash Honda "press piece" that shows off information and photos of their new thin film solar panel technology:
Honda's next-generation thin film solar cells achieve approximately a 50 percent reduction in the amount of energy consumed during the manufacturing process.

Tuesday, July 15, 2008

Bucky Lays it Out. Get Busy!



Here it is. Bucky himself laying out the option. I'm writing this in 2008. That means we've had the power to achieve a working realistic "Utopia" for twenty-three years.

And since progress is exponential, we must be almost falling over ourselves with solutions by now. And we are. I'll post about them soon, but two of them are Permaculture and John and Nancy Todd's Living Machines.

Bucky was an engineer, when he made this proclamation it was on the basis of hard-headed scientific reasoning, informed by an unmatched apprehension of the world conditions and world resources at the time. Remember that he traveled the world, by invitation, some 80-odd times. Especially remarkable for a man who was born before the invention of the airplane, even before the Poles of the Earth had been reached by human explorers.