Learn Mern, React First – part 1

Learn Mern, React First


I already have a working knowledge of MongoDB, Node and Express but not React. In order to refer to myself as MERN stack enabled, I’ve needed to learn React. I also want to be able to develop phone apps and React-native is touted as being excellent for that so I set out to seriously learn react from the ground up.

It has been a big jump to learn to use React and Redux for constructing web frontends. ES6 is a good part of the reason there is much to learn, but there is also JSX, a react way to combine HTML and javascript.

React prefers the use of ES6, which is the next generation of javascript. I am told that you can use ES5 (the more widely known version of javascript), but I have not seen much in the way of learning materials for learning React with ES5 only.

ES6 is available now in the most current editions of widely used browsers and support is good in node. There are transpilers that allow ES6 to be compiled down into ES5 so React written in ES6 can run on older browsers.

I looked around at various books, websites and videos in order to find something that would allow me to get up to speed in React. I came to this task with a good working knowledge of ES5, Express, Node and Npm. It seems like installing almost any front-end packages or tool chains requires some Node and React is not different. I settled on Stephen Grider’s Udemy.com course called Modern React With Redux.

That course involved about 150 video segments totaling over 22 hours. However, you can’t sit down and expect to go through the course in 22 hours of video watching. You need to work through code yourself while following the videos. That means a lot of pausing the video while you switch to your code editor to duplicate what Grider is doing.

It took me about 75 hours of screen time to get through the course. You could easily do that in 2 weeks of full time effort, but I have a day job so I did about 2 hours per day and it took 46 days.

Grider is verbose in his approach to teaching and I found that extremely helpful. He constantly re-summarized and developed the material very thoroughly. I recommend the course.

But, this course really only gets you React and Redux. It shows how to hook onto some commercial APIs like Youtube. But if you want to get the rest of the MERN stack, you’ll have to look elsewhere. For that I am currently engaged with Alex Paterson’s “React Native with An Express/MongoDB Backend.”

Paterson’s course is extremely Mac centric. But I am after the React-native elements, anyway, in order to do phone apps and a Mac is essential for doing iPhone apps. So, I bought a Mac Mini for doing this course. I am such an open source snob that buying a Mac was like pulling teeth! But my heuristic is that I will not use closed source unless there is no reasonable open source alternative.

In addition, Paterson’s course moves at a much more brisk pace than the Grider course. There is much less molly-coddling and hand-holding in Paterson’s videos. I’m only half way through this course, so I will reserve judgement until I get all the way through, though I can says that so far I am learning the material.


Posted in Articles, DDJ, Technology | Leave a comment


The Mean vs Mern stack decision for me has a couple parameters. I would like to choose between Angular and React based on which is most likely to bring the greatest return on learning time invested. These two both involve getting the most current javascript skills which I would do anyway.

The market of jobs, even jobs that are not consulting jobs, gives a good snapshot of the local demand. There is information on the size of the local market, but that does not offer an idea of ow supply and demand are balanced nor of over trends.
The days that jobs remain open is an available data point that does speak to the supply and demand. I compared mean/mern stack markets with WordPress in order to have a bit of context.

Here are some Pittsburgh figures:

Technology Market Size Ave. days open
MongoDB 28 27
Nodejs 136 20.15
Reactjs 20 21.7
Angularjs 83 17
WordPress 10 13.3

In comparing the opportunities, the size of the market is important and the larger the market the better. However, the most important variable is the number of days that jobs remain open. The more of those, the harder it is for prospective employers to fill their roles and the greater the opportunity there is for consultants.

Here is a trend chart for Google searches with respect to Angular.js, React.js, Nade.js and MongoDB. You can see that Angular has a lion’s share of the attention, but is falling off. In fact it fell from 100 last summer to 72 now, a loss of 28%. None of the other technologies has lost as much of a share of attention.

My inclination:
Given the supply and demand balance in my area, as well as the national search trend, I think React.js is a better bet than Angular.js, so I am leaning toward a MERN stack.

Posted in Technology | Tagged , | Comments Off on MEAN vs MERN

Learning MeteorJS

guage-screenshotThis article looks into my experience learning the MeteorJS Application Framework and doing a production project based on that. The article should be useful to you if you are trying to decide whether to invest the time and effort needed to learn Meteor and it could also help you determine whether Meteor is a suitable framework to use on your own projects.

Meteor has a mission of providing a simplified way to produce protypes in a
day or two and production applications in a couple of weeks. I do see Meteor
as a browser/server or mobile app/server product rather than a desktop application.
Meteor is built from a number of subprojects and exisiting codes. It uses an
isomorphic approach to provide both client and server code in the same file.
Javascript is used to drive both the frontend and the backend. There is a
templating language used for the HTML output.

On the server side, Meteor uses mongoDB from a nodeJS server. If you haven’t used mongoDB, you need to know it is an incarnation of the current trend toward nosql database systems. It is a document database rather than a tradition table/row/field style accesed by SQL. The documents are in a sort of a dialect so similar to JSON that they can be directly accessed in the javascript on both the backend and the front. mongo is also very speedy and scaleable.

There is a significant community involved in Meteor and there are a growing number of excellent plugins. There is an official tutorial on the Meteor.com site as well as documentation. There are also blogs, books and other resources to help get an aspiring Meteor developer started.

My own attraction to investigate Meteor had to do with my job in a newsroom at a mainstream daily newspaper. Part of what I do is data driven journalism and that involves creating interactive visualizations on very tight deadlines. I need something that gets a decent quality visualization up really fast. I have also been dealing a lot with maps and in doing that I have found that geojson is a great goespatial code to use. The geojson feature objects can be used in mongodb to create searches that are not available at all in most database. For example, given a geographic coordinate pair, I can search on mongodb for the city, county or state that contains that point.

I heard that Meteor allows really fast development of this sort of mongoDB applications. I tend to shy away from frameworks generally as they tend to obfuscate things I need access to and the can make it really convienent for me to not learn basic sorts of things I need to know. I admit, I am lazy. I do not want unneeded cognitive load. But Meteor seemed so promising that I wanted to try it out.

Learning Meteor

In order to use Meteor, you need to have at least a modest amount of javascript knowledge as well as fairly solid HTML and CSS knowledge. The server side code is going to be easier to understand if you have a grounding in nodeJS and mongoDB.

I came to Meteor with an advanced knowledge of Javascript and a few months of mongoDB learning via project development. My process to learn Meteor involved doing the tutorial on the Meteor site and looking a some projects done in Meteor. I have about 2 hours per day set aside for learning or developing new technolgies. I invested about 2 weeks of that time in Meteor before I started my own project.

Doing this first production project in Meteor took about 25 hours. I can see that doing additional projects will be considerably faster. I had to stumble along especially in integrating Meteor with leaflet and to get http queries to work.

Project details

The USGS offers hydrological information from a REST api. There are 1000’s of guages all over the US for rivers, lakes and groundwater. The API that I used allowed the extraction of current data for specific guages. I used an array of guage ID numbers to send off the http requests.

The data returned by the USGS comes back in a JSON format. My serverside code parses the incoming USGS data and I built an upsert query to deposit the data into mongoDB. If you are new to noSQL databases, and upsert is a combination of insert and update. If the record exists, it is updated, otherwise it is created.

Meteor monitors the activity in the database, apparently by watching the log. When a datum is modified, ‘subscribers’ to that datum at notified. This notification extends to the frontend clients. There is a websockets implementation that carries the notifications out to the client. The data modification messages can go both ways, such that when data is modified on the client, the server side code and database is updated accordingly which in turn causes all other clients to receive notifications.

In order to integrate with leaflet, I used a package identified as mrt:leaflet-0.6.4.This worked well in getting my intial map. In order to update the map’s markers and popups in real time I needed to ‘subscribe’ to certain data messages and then act on the received information.

Meteor takes a whole lot of the tedium out of coding an application. It not only produces a great skeleton at the outset of a new project, there are lots of very useful facilities baked into the product. In addition to the server and client side codes, the templating is easy to use for data pulled out of the database. There is advice among data visualization people that you should concentrate on presentation first thing into the project. Meteor allowed me to do that.

The way the code handles client and server side communication is great. The deloyment to production was a real breeze. I was able to even bring up a smart phone app on an emulator that was a real match to the web app. All that code is already done via an integration with Cordova. In fact, the way this code can bang out iOS, Android and web apps from the same code base is a real boon in my world of very pressing deadlines and breaking news.

Deployment of my first application went to the Meteor site. It was incredible smooth and easy. I am not sure how this hosting can scale though the docs do say you can aim your own domain name at the hosted app. There is both free and premium hosting at openshift.com. There is also hosting on Digital Ocean starting at $5 per month. An installer call ‘up’ makes it easy to do the installations.


Meteor does provide a great deal of what I need in terms of fast running, scalable applications. It also hits my need for fast to deploy and production quality. The community has provided great plugins that I can use to help out with integrating stuff into Meteor. I found the plugin process easy to use. In fact the whole thing has been quite satisfactory so far.

Posted in Articles, Technology | Tagged , , , , , , , , , , | Comments Off on Learning MeteorJS

Testing Bone Broth for Lead

We have a proposal for testing bone broth for lead. We want you to join with us. There is the notion that lead contamination is widespread in the US and especially in the Northeastern US. There is no doubt that lead contamination exists in Northeastern soils.[1][2]

Also, it is known that livestock animals tend to accumulate environmental lead in their bones. That , too, seems to be established fact. People have begun using bone broths for nutritional purposes and tests of broth in the UK revealed elevated levels of lead in chicken bone broth.

Marcy L and I (Randy W) have decided to implement some serious testing to find out what is really going on. Our children eat bone broth and we think it somehow neglectful to NOT find out whether this stuff is actually safe.

We have a source of bone typically used by people following a GAPS diet or eating a-la Weston A Price. We also have connected with Sora Labs in MO and gotten quotes for testing samples for lead. Our aim is to try to refute the hypothesis that

All of PA is so contaminated with lead that it will concentrate lead in bone broth to a level that approaches or exceeds the EPA limit of 15 parts per million.

We cannot prove this hypothesis except by testing every place in the Northeast. But we can refute it by showing that even one Northeastern source does NOT produce bone broth that has lead exceeding 15 part per million.

ICP Tester

Inductively coupled plasma mass spectrometry Tester

Our plan is to test two samples of chicken broth and two samples of beef broth.

We’ll be using bones aquired from Amish farmers who use no pesticides, herbicides or artificial fertilizers in their farming practices. We also know that the farms in question are distant from any EPA listed sources of lead pollution, such as smelters, lead paint factories, coal fired power plants and the like. They are also distant from major interstate highways.

We will document and publish our methods of creating the broth, the water source and the cookware involved. We will be using the chain of custody forms supplied by the lab. In short, we hope to be rigorous, yet create tests that hold up to scrutiny and are reproducible by others.

We intend to publish not only the results of our test, but the documentation of how we did it.

We are looking for supporters to help us defray the costs. Here’s the budget:

Broth Ingredients1$70.00$70.00

Item Quantity Unit Cost Extended Cost
ICP Sample Testing 4 $80.00 $320.00
Packing material and Shipping 1 $30.00 $30.00
Total $420.00 est.

We hope you’ll contribute. We will be setting up a paypal link in the near future. When the amount of funding reaches the goal, I’ll remove the paypal buttons. If we receive more than we spend, I’ll refund the person(s) whose contribution(s) took us over the goal.We welcome comments and feedback.

I saw an arilce describing the results of lead testing in California. The article did not reassure me. There is a belt of land between Interstate 5 and the Pacific Ocean that is likely to have had about the least exposure to lead in the lower 48 states. We don’t live in that belt. Kaayla Daniel was critical of the UK study and then offered results of other testing that was even less rigorous than the UK study.

In the years of leaded gasoline use, we managed to spew about a half a ton of lead per acre on the lower 48 states. It does not wash away with rain. It isn’t evenly spread around. Some farms may produce highly contaminated bones, others will show little lead in bones, so I feel we need to be a bit ore rigorous in order to be truly reassured.

In addition Marcy had this to say:

We are not reassured by the statements some health bloggers (who don’t seem to be parents) have made that any concerns of high lead in the broth are “negated” by the calcium in the broth leached, as well, from the long-cooking of the bones. There may be some validity to this claim but not enough to make us feel safe. Think about it, would you give your child a food or beverage high in lead and trust a milk chaser to negate the effects? When there is food product recall for lead, such as, for example, the lead in chocolate that occurred with the Dagoba brand, the FDA does not tell people to just drink some milk with it or enjoy their chocolate with cheese so the calcium will reduce the lead absorption to safe levels, they take the product off the market.

We are hopeful that local bone broth will not test high in lead so we may continue to feed ourselves and our children this otherwise extremely nourishing and healthful food. We are not testing to steer anyone away from making bone broth; we simply have some concerns and if they prove to have validity here on the E. Coast per testing, we may make some changes in how we incorporate local bone broth into our diets.

1 National Research Council. 1980. Lead in the human environment. Washington, DC: National Academy of Sciences. Report Number PB-82-117136. OSTI Identifier: 5455381; ISBN No. 0309030218.

2 Toxic Truth: A Scientist, A Doctor and the Battle Over Lead
by Lydia Denworth, Beacon, 2008, ISBN-13 978-0-8070-0032-8

Posted in Articles, Health, Technology | Tagged , , , , , , | Comments Off on Testing Bone Broth for Lead

Climate Change

Climate change is called climate change. So far, it is called neither “climate disaster” nor “party-palooza in the warm sunshine.” But it appears that change is en-route and most people I know are somewhat anxious about it.

So far, the predictions include receding glaciers and more extreme weather. The dry will get dryer, the wet wetter, the storms stormier. Some expensive beach-front properties will be underwater, and not just in terms of the mortgage. Some very tiny Islands in the middle of the oceans may cease to exist. For me, sheltering in a forested Pittsburgh suburb, none of this stuff seems to be a big crisis.

That’s important. I’m not alone. In order to stop climate change, we need incredibly massive changes. I need to stop driving to work. Taking the electrically powered light rail into work wont do, as it is powered by coal fired power plants that are even worse than gasoline.

Look at it this way: As I take my cheesecake out of my natural gas operated oven, I realize the cream cheese came from California via a diesel truck, refrigerated by a diesel powered reefer. I found the recipe on my electrically driven computer connected to the electrically driven internet where some electrically driven housed a blog that has that recipe. I turn on the electrically driven light in my electrically cooled dining room.

I’ve long tried to blame this whole problem on those greedy coal barons.I jumped with joy when cheap natural gas came along and knocked coal over the head. I am still trying very hard to ignore the bankruptcy of Patriot coal that threatens to liquidate the retirement funding of thousands of elderly coal miners and families. The grandmothers, especially, just don’t make good coal barons.

I read some place that  sloganeering, like ‘drill baby drill‘ or ‘all of the above‘ are just excuses for not thinking. I have also read that we are in a real conundrum with respect to climate change; condundrums like that of of Patriot Coal’s grandmothers who’ve sold out for our mercury fishing holes.

I no longer trust those who promise a silver bullet that will painlessly stop climate change. I no longer believe them whether they are on the left promising renewable energy within a decade, on on the right promising clean coal or spill free drilling. I really hope they are right, but so far, the record does not look good.

Our government is utterly hopeless. It is much easier for it to do nothing that to do anything and it is currently gridlocked beyond redemption. Only a huge crisis that risks the political hide of a majority of encumbents could get them to act. And maybe that’s a good thing, I don’t really know.

I have friends who thought, apocalyptically, that peak oil would provide a comeuppance from the supreme being that would include contental social collapse with roving bands of thieves and warlords taking over whatever they wanted. In the face of shale gas, that crisis receded faster than any glacier on the planet.

As if that were not enough, the Japanese are desperate for energy that can’t be washed away in a Tsunami or cut off by some enemy. They are also inventive, smart people. They’ve begun drilling for methane hydrates. That’s the frozen natural gas deposits at the bottom of the oceans. The estimates I’ve seen is that there is 35,000 years of natural gas reserves in methane hydrates. Peak energy is going extinct faster than polar bears.

There are a large number of natural gas refueling depots going up along the interstate highways across the US this year. 18 wheelers can use these by converting their diesel rigs to run on natural gas. It can cost a trucker $18,000 to make the switch. But with the price difference between natural gas and diesel, the conversion costs can be recouped in as little as 14 months.

In one way, that’s great news for the environment. This conversion of 18 wheelers will reduce greenhouse gas emissions.  But, the problem is, it reduces, but does not eliminate those emissions. It slows, but does not stop global warming.

I think humans have tried to stop global warming by finding and prosecuting  every possible flaw with fossil fuels. And one by one those flaws are being eliminated or mitigated by this or that technical innovation. Global warming, however, has not made it into the cross hairs. Instead, we fix immediate problems that are relatively easy to fix. Drilling fluids spills, methane leaks, poorly constructed wells can all be eliminated or rendered non-crisis producing through techniques or technologies.

I’d really be thankful if we could stop sending our children to the Mideast to protect our oil. The government has not been able to pull that off, but it appears that market forces and fracking have done so.  If you added the costs of bombers and aircraft carriers defending or oil supplies to the price at the pump for gasoline, We would probably all switch to using natural gas because we can’t afford the gasoline.

But, all that begs the question. There is now more natural gas than we can possibly use if we use all 35,000 years of it up we will probably turn global warming into a global toaster-oven. We will not be saved by peak oil, peak gas or peak anything else. Apparently, we’ll have to confront climate change on its own merits.

Some people say we are addicted to our oil, to our overconsumption of energy. It is widely believed that an addict cannot change until he ‘hits bottom’ in some sort of awful crisis that shatters his denial. They also say that those who save him from his crisis prevent his recovery. I do believe that applies to our energy consumption habit. Every time you go out and protest fracking, you cause the drillers to improve fracking. That’s a lot like getting some alcoholic to switch from cheap wine to organic whiskey. When you write a letter to your congress person about the detriment of methane leaks, and some pipleline company seals some leaks, you avoid the real crisis and the alcoholic escapes with only a hangover and a determination not to spill any more booze.

We would like to blame this on corporate greed, bureaucratic pork or just plain stupidity, but the fact is you are probably using some amount of energy to look at this post. You and I are both funding energy consumption. By doing so, we are holding that alcoholic down on the ground an pouring gin down his gullet. Trouble is, that alcoholic is you and me! That is very inconvenient.


Posted in opinion | Tagged , , , , , , | Comments Off on Climate Change

Coal Questions

William Stanley Jevons

William Stanley Jevons (Photo credit: Wikipedia)

Back in 1865, William Stanley Jevons wrote a book called The Coal Question; An Inquiry Concerning the Progress of the Nation, and the Probable Exhaustion of Our Coal Mines. In this book he sets forth the theory that the prosperity of a nation is tied to the level of energy available to it. At the time he wrote the book, England was very prosperous and powerful in the world, but Jevons saw that the coal supply that powered England at that time, was going to be depleted. He predicted that England’s power and prosperity would decline as the result. Apparently, he was correct though the depletion came quicker than he predicted.

In a PBS online article, there is a professor who loves his job and has found that he will get greater Social Security if he stays in his job long after he is eligible to retire. I can relate to this guy. I love my job. I work in a place where it certainly seems possible for those who wish to continue working into their 90s to do so. But in the comments to the PBS article, various writers point out that not retiring will not allow some younger person to move into a job. Other comment writers speak about how unusual it is to have this sort of love of job. I agree with both of these ideas.

I agree, however, with Jevons that our prosperity is tied to our level of energy. We have been dependent, in the US on an ever more costly oil supply. We have spent vast amounts of military money keeping the mid-eastern supplies coming in since our own supplies depleted. We have also lost many a life and limb to this need for energy.

But a game changer has just occurred. There is an absolute glut of natural gas in the US today that has driven gas prices way down. The use of horizontal drilling combined with fracking has made shale gas viable. This gas is displacing coal as the fuel of choice for power plants. Not because it is cleaner (http://www.ucsusa.org/clean_energy/coalvswind/c02c.htmlthough it is), or produces less greenhouse effect (which it does), but because of market forces.

But the really nice effect of all this gas is that our prosperity, according to Jevons theory, will rise. And indeed, manufacturing that went overseas is beginning to come back to the US. I believe we will be able to provide prosperity to our young and we will be able to pay for the retirements of all those boomers waiting for a chance to get off the treadmill.

Posted in Articles, Health, Technology | Comments Off on Coal Questions

Food Addiction

Today, in the New York Times there is an excellent article on The Extraordinary Science of Addictive Junk Food. The article reflects the process that I believe goes on inside the corporations that have horrible effects on the people they serve. Food addiction sickens and kills people.

Image representing New York Times as depicted ...

Nobody jumps up in the morning and says, “Today, I’m gonna give a bunch of kids cancer, ADD and all sort of other problems.” Instead, all of us just do what we have to do to make a living, like turning on the lights so that some power plant spews a little more emissions, we make breakfast out of whatever seemed like the best deal, even though it is loaded with pesticides and use a bunch of diesel getting across the country. Then we jump into the car and spew pollution into the air as we hot rod it into work.

Then at work, many of us are like food-industry legend, Howard Moskowitz, the brains behind finding the most addictive junk foods possible. The food that is accused of killing us prematurely. The foods that get us obese, diabetic, cancerous and falling over with heart attacks. “There’s no moral issue for me,” he said. “I did the best science I could. I was struggling to survive and didn’t have the luxury of being a moral creature. As a researcher, I was ahead of my time.”

At the same time Moskowitz is noted as insisting the industry could be doing far more to curb obesity.  He is not blind to the enormous problems of junk foods. But in fairness, Moskowitz is no more than a bartender in the skid row of our collective psyche.


Posted in Articles, Health | Tagged , , , , , | Comments Off on Food Addiction

Lead in Bone Broth: a Threat or a Tempest in a Crock-Pot?

self-made bouillon de volaille (chicken broth).

self-made bouillon de volaille (chicken broth). (Photo credit: Wikipedia)

An article by Chris Kresser brought to my attention the idea that lead in bone broth might pose problems. Bone broth is widely used among people practicing GAPs diets and Paleo diets. Weston A Price proponents also tend to use bone broths. These broths are thought to be very healing.

English: Dense metaphyseal lines from lead poi...

English: Dense metaphyseal lines from lead poisoning (Photo credit: Wikipedia)

My own concern centers around my family’s use of bone broth. We’ve been using broths for some time and have really enjoyed them. To find that there may be some issues with lead accumulation is alarming, so I set out to find out what I could about that.

I could not find much in the way of good news. The study that brought this up is at http://www.ncbi.nlm.nih.gov/pubmed/23375414. It looks to be a well done, though smallish study, done in England by Munro, Leon and Puri. published in “Medical Hypothesis” in Jan of 2013. They found elevated levels of lead in bone broth made from organic chicken. It is, apparently, well known that lead accumulates in bones. The lead concentration in the broth reached 9.5ug/L. That is the same as 9.5 parts per billion (ppb). 15ppb is the EPA’s current legal limit for lead in drinking water. The FDA considers 23ppb to be the ‘level of concern, and there is an upper limit of 50ppb. Lead and arsenic have been found in fruit juices with the lead coming is at around 5ppv. Of course, the FDA did not voluntarily find that lead in juices, rather a lawsuit forced their hand. To me, that makes every food suspect. There is no government “watch dog” for heavy metal contamination.

This chicken broth report comes a year after the CDC’s Advisory Committee for Childhood Lead Poisoning Prevention (ACCLP) released its letter to the CDC. The effects of lead have been widely studied and are known to lead to developmental and mental problems at extremely small dosages.

“Because no measureable level of blood lead is known to be without deleterious effects, and because once engendered, the effects appear to be irreversible in the absence of any other interventions, public health, environmental and housing policies should encourage prevention of all exposures to lead.” ACCLP letter to CDC

Lead warning on a gas pump at Keeler's Korner,...

Lead warning on a gas pump at Keeler’s Korner, Lynnwood, Washington. Keeler’s Korner, a former grocery store and gas station (built 1927) listed on the National Register of Historic Places, listed 1982, NRHP listing #51549. (Photo credit: Wikipedia)

A book by Lydia Denworth entitled “Toxic Truth: A Scientist, A Doctor and the Battle Over Lead” really puts some context into this issus. In 1923, people began using lead in gasoline as an anti-knock compound. In 1924, the Ethyl corporation was created by General Motors and Standard Oil to make and market tetraethyl lead as a gasoline additive. In 1975, after being sued,
the EPA ruled that all new cars must have catalytic converters, so no new cars would used leaded gas. In 1986, the EPA removed lead from gasoline completely. But during the 43 years when leaded gasoline was in use, about 30 millions tons of lead were dispersed into the air in the US.

Lead exposure damages cells in the hippocampus...

Lead exposure damages cells in the hippocampus, a part of the brain involved in memory. Hippocampi of lead-exposed rats (bottom) show structural damage such as irregular nuclei (IN) and denaturation of myelin (DNS) compared to controls (top). (Photo credit: Wikipedia)

The efforts to stop lead pollution were very similar to the fight to get cigarette smoke declared cancerous. The industry fought tooth and nail in courts, in PR campaigns and by controlling academic funding to keep lead in gas. For the Advisory Committee for Childhood Lead Poisoning Prevention to come out an say to the CDC that there is NO un-harmful amount of lead is amazing.

Centers for Disease Control and Prevention

Centers for Disease Control and Prevention (Photo credit: Nrbelex)

But, there is a huge problem. Those 30 million tons of lead we spread around are not going to leave on their own. The exhaust pipe lead is everywhere. They even found it in Greenland and Anarctica. Unfortunately, lead accumulates in the top few inches of soil and just stays there. This means that grasses or grains grown in that soil will provide a source of bioavailable lead for animals that graze or which are fed grain.

I looked at some of the ways of remediation that have been attempted. Again, it is not a happy picture. One study by Rebekah Doyle at Brown University tried out remediation with compost and phosphates only to find that lead levels increased, but she did point that a group in Trail, British Columbia had has some success with remediation with HFO (hydrous ferric oxide).

Welcome to Trail BC

Welcome to Trail BC (Photo credit: Wikipedia)

In another article, there was an attempt at soil remediation using plants to pull the lead out of the soil. They concluded “The results from three years of research showed that plants alone do not accumulate lead fast enough for phyto-remediation to serve as a practical remediation method.”

Another possible way to remediate lead loaded soil is with electrokenesis, but it seems good only for small plots and is energy intensive.

Most recommendations are to 1) remove the contaminated soil and treat is as hazardous waste or cover the soil over with a thick layer of earth, gravel or pavement. However, that won’t work for the vast areas of the world’s farmlands.

English: Earth moving down on the farm. Seen f...

English: Earth moving down on the farm. Seen from the B7042 (Photo credit: Wikipedia)

It has been found that diatomacious earth (DE) can be used to bind with lead making it bio-unavailable. DE is often added to livestock feed in order to decrease gut parasites and does not seem to harm the animal. It is possible to use DE in animal feed to bind with lead, but DE binds with other minerals as well, so high levels of DE might starve the animal of needed minerals. It might be possible to use higher levels of DE in pastured animals with the addition of clean, lead free mineral supplements and get a reduced lead level in the subsequent broths.

Add fish broth

Add fish broth (Photo credit: jyri)

Another idea is that fish broth, because it is from a completely different ecosystem is unlikely to be contaminated the same way that land animals are. And it has yet to be determined if beef bones or those from lambs, goats or pigs have the same sort of lead concentrating capacity that chicken bones have shown. There still needs to be more research, but there is hope.

Another approach is to try various strategies to bind the lead in the guts of people consuming leaded foods. Alginates in seaweed and bacteria have demonstrated ability to attract and bind heavy metals of all sorts in the gut. Perhaps they can also work in the soil. And finally, detox protocols may be needed as well.

English: Seaweed at Largs The exposed shorelin...

English: Seaweed at Largs The exposed shoreline is covered in this seaweed. (Photo credit: Wikipedia)

So, do we stop giving bone broth to our children?  Children are far more susceptible to all sorts of environmental hazards including lead, than adults. But, I’ve heard tales of fantastic recoveries due to GAPs and bone broth. But, what would you give your kids instead? Certainly not fruit juice which is contaminated, as noted above. Furthermore, we don’t know what levels of contamination are in many other possible foods. Perhaps is is better to stick with the ‘devil you know?’

Here are some links to tales about the successes of GAPs.











Obviously, we need to find a way to clean the environment of this scourge and there is research going on about how we might do that.We could use a larger research effort.

But I’m asking people who read this to reflect their own thoughts about this topic. Given this information, would you keep eating bone broth, or feeding it to your children? Please comment.

Randy Wright

UPDATE – Feb 26, 2013: Testing for lead. You cannot use most consumer lead test kits for finding out the levels of lead in your broth. They are not sensitive enough. The EPA has a list of labs from whom they recognize lead testing. Among those labs, I was able to confirm that EMSL Analytics can test bone broth samples. It is about $35 per sample. You can call them at 1-800-220-3675.

You can also download EPA lab list here.


Paques01 (Photo credit: Wikipedia)

Posted in Articles, Health | 2 Comments

Google Drive for WordPress

The integration of Google Drive for WordPress offers some great features.  A plugin for WordPress called docs to WP connects Google Drive to WordPress, allowing a person to create post and edit posts on a Google Drive account.

If you’ve never used Google Drive or its predecessor, Google Docs, I’ll describe it for you.

Image representing Google Docs as depicted in ...

Drive is like have an online, private disk drive that holds 5 Gigabytes of date. Various online applications allow you to do wordprocessing, spreadsheets, presentation slides, drawings and so on.

It allows an author to access work from just about any computer, pad or smartphone with an internet connection. The files can also be shared with others in order to do collaborations. I think it is a better way to author work that to use the WordPress editor. I like to collect a pile of source documents and URLs related to what I write.

I also like to upload my stuff into WordPress where I can run the SEO optimization tools along with content enhancers like Zemanta. This allows me to put up stories from anywhere on the web.

I have found that images I insert into a Google Drive document do not make it onto the WordPress site. The need to be added separately once the text is uploaded.

The way my set up works is that I write my copy in one of several folders. When I am ready to upload it to WordPress, I just move it to a folder I named SendToWP.  Any folder name can be used as this is part of the configuration you add to wp_config.php. WordPress queries my folder once per minute at Google. If it finds a new file, that file is uploaded as a WordPress post without any intervention on my part. The Google Drive file is then moved to the Done directory. I find that useful.

This facility is one of a number of pieces that are useful to make WordPress more useful to news gathering people. But software like this tends to be used far beyond its original intended use. My hat is off to William P. Davis and his employer Bangor Daily News.

Technical Details:

The way the plugin works is that you install the plugin with the WordPress plugin installer. The plugin is at http://wordpress.org/extend/plugins/docs-to-wordpress/. Then you need to put some configuration text into your wp_config.php file. The updates to wp_config.php are shown at http://dev.bangordailynews.com/2011/06/20/quick-update-to-the-docs-to-wordpress-plugin/.

Screen Shot of plugin admin pageWhen I installed the plugin package docs-to-wordpress by using the plugin installer,it installed 3 plugins. The plugins include docs-to-WP, Docs to WordPress extender – Run on Cron, Docs to WordPress extender – clean content, strip comments.

I also added some code to the file docs-to-wordpress/extend-clean.php via the plugin editor.

This code allows you to put a Title in the text of the Google Drive file. You just need to put it first in the text and follow the titel with a pipe symbol, usually shfit+ on the keyboard. This code is is taken from the plugin author’s William Davis’s site, http://dev.bangordailynews.com/2011/12/22/setting-the-head-of-a-post-using-a-delimiter-in-your-doc/

/**** added code  ****/


Plugin Name: Extend Docs to WP like so



add_filter( ‘pre_docs_to_wp_insert’, ‘bdn_split_post’ );

function bdn_split_post( $post_array = array() ) {


$exploded_fields = explode( ‘|’, $post_array[ ‘post_content’ ] );

//Sometimes people forget a pipe, and we don’t want to put the entire post in the headline

if( is_array( $exploded_fields ) && count( $exploded_fields ) >= 2 ) {


//Save the old title in case you want to do something with it

$old_title = $post_array[ ‘post_title’ ];


//Set the title to the first occurance.

$post_array[ ‘post_title’ ] = strip_tags( $exploded_fields[ 0 ] );

//Unset the title

unset( $exploded_fields[ 0 ] );

//Now restore the post content and save it

$post_array[ ‘post_content’ ] = implode( ‘|’, $exploded_fields );



return $post_array;



/**** end of added code ****/

There are a number of other pieces that need to be integrated in order to produce what  believe is a truly great piece of software for professional newsrooms. I’ll talk about those in future posts.

Posted in Articles, Technology | Tagged , , , , , , , , , | Comments Off on Google Drive for WordPress

Websites for Mobile News

mobile devices

mobile devices (Photo credit: Hands On Support)

Websites for mobile news is a topic I’ve been working on lately. I’m pretty focused on news and technology now, as I am doing some consulting development for a newspaper. In the process of researching this topic I came across a report on the state of the media that involved a survey of mobile users. The link to the report is at the end of this article but here are some highlights:

Mobile news reading is an activity that is slanted towards younger people. Mobile readers are more likely than non-mobile users to use social media sites. More than half use 6 or more platforms to get local news and information. But, here’s a stickler: only 1 in 10 use a mobile app to get local news, even though 1/2 use mobile devices to get local news.

English: A pile of mobile devices including sm...

A pile of mobile devices including smart phones, tablets, laptops and ebok readers. (Photo credit: Wikipedia)

My comment on that is that I 100% agree with those who use the mobile. browser to get local news. I do that too, and I avoid sites that put up mobile only versions of their websites. I have found it very frustrating to use a site on my computer and then, while out and about, to check out the same site and see a fraction of the information. I want the whole enchilada. I want a mobile device that can display the real website even though I am over 60 and my eyes are not sharp. I want a site that handle enlarging the text and pictures. I’ve seen it done. I know it can work and I suspect everyone will be doing it.

Another thing about mobile users is that they are much more active news users than

the local news, locally

the local news, locally (Photo credit: McBeth)

non-mobile users.

Mobile useage tends to rise with income and it has a non-white skew. It is also more prone toward suburban users. The longer a persons tenure in their current community, the less they use mobile devices for getting news.

So, for general news sites my opinion is that efforts should be focused on making the web site work for mobile devices rather than spending a lot of resources on an app.




Posted in Articles, Technology | Tagged , , , , , , , | Comments Off on Websites for Mobile News