Thursday, December 21, 2017

Why is the Intertubes so slow?


Well, of course it is all those others using it.

The other answer is crappy programming on the server side. And on the client side.

Apparently you need an Advanced Degree(™) to do better.

Here's what I mean:

Yes, I'm a Mac User. No, that's not the cause. Except that it is, slightly.



The above image is "Activity Monitor". You can see that the top two *busiest* users of CPU cycles are Safari and Firefox. Everything else is essentially zero, or idle. When a process is ~100%, that means it is saturating a cpu core, and can't do any more.

But those two are busy doing something, and that something makes them fairly unresponsive to what I want them to be doing. (I acknowledge that some of the problem is that while I'm typing this blog, Blogger is busy trying to help me by doing on-the-fly spelling check, which means there's a background process that is sending/receiving content to/from somewhere far away, and that ties things up a little. That help is nice, but I'd rather throttle it back--remember that I am on satellite internet now…)

What are those two up to?

Bad programming. Well, bad websites, and then bad web-broswer. Those numbers are while the browsers are "idle", too. So what are they doing?

Unfortunately, it's hard to find out because the cpu-usage reporting does not go down to the individual-lightweight-thread level, so I can't know which specific open window (URL) is causing the problem. 

But it's a near-certainty that EBAY and AMAZON are the two likeliest culprits, because they are the pages that have the never-ending-animation content. There are probably other URLs that are worse, but ones I don't visit.

Also, look at the real-mem size. Safari is 15GB?  a pig. This is the same problem that Firefox has, too, about lightweight threads that haven't been terminated and not closing file resources.

Which means that we have web-pages that aren't really 100% closed, even if I closed the window/tab. Files aren't close, and the resources that were loaded (images) are still using memory.

Some of the problem is that on this machine I'm on an old OS, Mountain Lion (10.8). Going to bump it up to Capitan (10.10) in ~3 weeks. I don't expect that is going to fix the issue.

But the problem starts with website creation work that insists on putting animation all over. I personally prefer much simpler pages that have no such thing. These animations that force me to see them are offenses of their own. 

You can dodge some of this via things like FlashBlock (Flash use to be THE WORST about this). But that only solves Flash, what about the animated GIFs? No solution I know of.

I agree that newer OS should have some better-behaving Safari in it. And newer machine would help, except that this machine is already ridiculous fast:



So there are problems in browsers: unclosed resources that are dangling, AND mediocre javascript engine. 

Apple is not guilty of these problems in Firefox, but it IS guilty of them in Safari.

All this animation needs to be halted. At least with FlashBlock I could then choose to play something or not.

What I end up doing now is watching URLs that are these criminals, and adding them to etc hosts.

THIS IS NOT TO HARD TO SOLVE, PROGRAMMERS!


[Next day: "Safari Web Content" seg-faulted and killed Safari completely. Geez this is dumb.]

----

If I quit and restart Safari or Firefox, that cpu number goes down to 10% or something like that, then is slowly creeps up again. At 100% the browser is unresponsive, so I'll be ok until I hit that again. But this is ridiculous.

Garbage on the server side causes this, and bad programming on the client/browser side makes it worse.

It's my understanding that javascript is now compiled on the fly, which didn't used to be the case, so it's at least not running slow by being interpreted still. That was never good, just easy.

---

Another issue about why Blogger is problematic: it wants to do this auto-save for you, and as I am on satellite, that fails a bit too often…and then it is stuck in a different way. It might recover in a few minutes, but it is at the same time trying to do the spelling check, so who knows?


Almost enough to make you want to go back to Lynx.

Sunday, December 17, 2017

Economics lesson part 4

Product creation and pricing this time.

X coconuts per year sales - Y cost of raw materials - Z cost of labor - Q other costs = profit.

Let's reset with Herbert, Suzy and Tom.

Each has two coconuts.

We'll stick with Tom this time.

Tom knits hats. The raw material (yarn) costs one coconut for enough to make five hats.

Each hat takes one week to make, and he can sell a hat for one coconut, continuing to mean that his labor is worth one coconut/week.

At the end of five weeks Tom has made and sold five hats, and his materials cost one coconut, for a profit of four coconuts. That's X - Y = profit.

But what of his food needs? If that is one coconut per week, he's losing ground, because his expenses over five weeks were actually six coconuts (one yarn and five foods), and his income was five, meaning he's losing money.

Tom needs to work faster and make six hats, and hope that there's a sixth buyer.

OK, let's say there are LOTS of buyers. Tom can actually sell as many hats as he can make.

So can Tom make six hats in five weeks? Yes, but not because he becomes more efficient, he decides he has to work longer hours, about two more hours, but this gets it done, and now his income equals his needs.

This can continue indefinitely, as long as the cost of raw materials does not go up, and his customer demand does not go down.

In fact, if those two conditions are true, Tom can hire Suzy to make hats too,  but that is only going to work out if she makes hats at the same rate he does, otherwise HER hats aren't worth as much, and then his aren't either.

Wait, how is that true?

Tom makes six hats in five weeks, worth one coconut each.

Suzy makes FOUR hats in five weeks, but they are priced the same. So now two people are making ten hats in five weeks, and selling them to the tune of two coconuts per week. But Tom's previous sales rate was actually 20% higher. The hats are now worth less, because total production rate is down (where production rate is actually quantity divided by workers).

Suzy needs to improve or Tom has to fire her. Or achieve some other kind of efficiency or economy of scale. If he raises his sales price, that will reduce sales volume just slightly, but really not much changes.

Tom needs a knitting machine, but he lacks coconuts to buy one with. OK, let's skip that aspect, too complex. Tom's mother gives him fifty coconuts and he buys the machine. The machine can make one hat per day. Production volume is huge. Tom lets Suzy run the machine, he doesn't even MAKE hats any more. He handles the increased sales by himself. Instead of making 60 hats by himself per year, or 100 with Suzy, they now make 365 hats, and sell for 365 coconuts. This is WAY better.

The material cost of the hat hasn't changed, it's still 1/5 a unit of yarn = one hat, which means 73 coconuts per year material cost. (Actually that probably wouldn't be true, the machine probably wants a slightly different yarn, etc, but we'll skip that.) Suzy's labor cost is still one coconut per week, for a total of 125 coconuts per year operating cost (52+73), leaving 240 coconuts for Tom.  And Tom repays his mother after six months, for a net profit for the year of 190. Next year Suzy gets a raise of one coconut per month, aka 64/year. Sales are again 365, operating cost is 137, for a profit of 228. Tom is happy with this, because his final profit for the year is 176 after his own personal expenses. He was barely getting by before, but the machine ("automation") has made him rich, almost overnight.

After a couple of years the local market starts to saturate, and sales volume goes down. He has to expand his market. This will actually cost money, but it is a good investment to do so, and again his market rises to meet his manufacturing capability.

Then he discovers that he is receiving orders faster than he can fill them. What to do?

Two possibilities: (1) buy another machine. That doubles his production capacity, but could lead to market saturation sooner, again reducing sales. Or, (2), he could raise prices so that the demand drops off enough that sales orders = production capacity.

As always, the situation is more complex, because what happens when Suzy wants to get paid more? After a couple of years, Suzy decides she can buy the same machine and go into business for herself as a competitor.

At this point Suzy has to decide where to locate, else there is a local race-to-the-bottom on pricing, and Suzy is going to lose because Tom has enough coconuts reserve to ride out the price war, and she actually has debt from having to borrow to buy the machine.

So Suzy goes into business far far away, and all is good. Or she doesn't go far away, and figures out how to make a different kind of hat. That changes the competition.

But the pricing strategy is still pretty basic:

X coconuts per year sales - Y cost of raw materials - Z cost of labor - Q other costs = profit.

Pricing on a lot of things you buy is arbitrary--lots of businesses don't have too careful a price-determining method. "Charge what the market will bear" is the phrase. If there are enough customers at 100 coconuts per sales unit and you make an interesting profit, then 100 coconuts doesn't really have to reflect an actual cost.

Economics lesson part 3


How do you measure the size of the economy?

Let's start over with Herbert, Suzy, and Tom.

Each of them make something the others needs. Once a year. Let's also say they all already have two coconuts.

The only need product A/B/C once per year.

Herbert make "A", and needs a "C".

Suzy makes "B", and needs an "A".

Tom makes "C", and needs a "B".

A, B, and C each cost one coconut. Beyond that, Herbert, Suzy and Tom are completely self-sufficient.

Sales each year are one each of A, B, and C, for one coconut each, per the above list, effectively in a circle.

Three sales transactions at one coconut each, per year, means the economy is three coconuts large.

Each of the A/B/C are consumed during the year, so each person needs one again the next year. So next year's economy will also be three coconuts.

After three years Herbert decides he also needs a "B", and he has one extra coconut. Suzy makes another "B" and Herbert buys it. Now the economy has FOUR sales transactions, and the size for the year is four coconuts, a 33.3% growth. Hooray! Next year Suzy has an extra coconut, and decides she wants a "C", so she buys that from Tom. Tom now has an extra coconut, so HE buys an "A". Sales for the year are now six coconuts.

But the same number of coconuts exist, no new coconuts were created, and yet the economy has doubled in two years. Each person has the same amount of coconuts at the end of the year: two. But they each bought two things during the year, so yes, the economy doubled.

This too is a weak example, because you could then increase it so that each of the three people buy 100 million A/B/C if they could actually execute the transactions that fast, and the economy would be 100 million coconuts. And you can do this without actually even CREATING the A/B/C, just rotate around what is being sold.

Creating and then selling A/B/C is what is called "real wealth", whereas just reselling the same things over and over is just "paper wealth". (Remember that regardless of how many transactions occur, at the end of the year there are still only six coconuts…even if the economy was 100 million.)

Turning raw materials into finished goods creates real wealth.

Continuing in a given product-creation business means that you need to have enough customers to buy all you can/wish to produce per year. This includes handling the wearout/return-rate. If the potential customer population is large enough, you can grow continuously. All of which contributes to the size of the economy.

But remember that "the size of the economy" does not equal the money supply, nor the "real wealth".

Economics lesson part 2

The US economy, the world economy…really complex. No one really understands it well, except in small pieces. Anyone who says they do is lying to you, and probably has a hidden agenda.

Does it take an Advanced Degree(™) to get your head around it? Well, yeah, probably. And a bunch of separate lessons. Here's #2.

This is a tiny-scale lesson. It's going to involve analogies. They're not going to work very well, because it's hard to invent an example that works and is small enough to understand.


Let us think back to an imaginary social situation 10 thousand years ago (why? because there's essentially zero technology).

There are three actors in this scenario. We'll call them Tom, Suzy, and Herbert. Each actor has a thing they can do to participate in the economy. They are completely different things.

Tom makes furniture.

Suzy makes clothing.

Herbert cooks meals.

Remember that this is 10 thousand years ago. Tom doesn't even have a knife, maybe a bit of stone he can scrape tree branches with. But he is able to make a table, of sorts, chairs of sorts, and bed frames that are above ground to avoid there being too many bugs. Furniture consists of tree branches that are tied together using vines. It's all very Tarzan.

Suzy makes clothing from animal skins. They're not high fashion, but provide some insulation.

Herbert grills meat over a fire. No knives, no skillet or pots. Primitive.

How much furniture do they need? Well, three beds, three chairs, one table. Let's say it takes Tom one week to make a chair, two weeks to make a bed, and three weeks to make a table. Once made, the items last one year before falling apart (because the vines don't last).

Suzy's clothing takes one week per person.

Herbert cooks every day.

Where do the raw materials come from? Tom's come from the forest. Suzy's come from the animals the Herbert uses for food. Herbert has to go hunting once a week to acquire a week's worth of food.

This started out sounding trivial, but as we try to make it more accurate, it gets more complex.

So the economy goes like this: Herbert cooks, Suzy makes clothing, Tom makes furniture. For All. There's no "money", there's no "barter". It's too small.

On day one, there's no food, no clothing, no furniture. Tom goes to the forest for sticks, Herbert goes hunting. At the end of the day, Tom has enough sticks to make everything, and Herbert has a week's worth of food. Tomorrow Suzy will have animal skin for one person's clothing.

After three weeks, Suzy has made clothing for everyone. Tom has made three chairs. Herbert is still doing the cooking.

How things are working so far. Well, they sleep on the ground still, but they do have chairs. They have clothes, and food.

But now, animal skins will start to pile up because they have enough clothing for the first year. We'll ignore this for now.

Herbert's work is a just-in-time process. He hunts for deer, he cooks them. 

But Suzy runs out of work after three weeks. Tom keeps chugging and after 12 weeks there are three beds, three chairs, and one table. That's probably not enough tables, so Tom makes another table just for Herbert's cooking usage, and a table for Suzy to use while making clothing. But after three weeks Suzy already has nothing to do. She is not longer contributing to the economy. What does she do? After several months, Tom is in the same situation. 

After six months, Herbert gets tired of being the only worker. Plus, deer are getting scarce, because they run away when Herbert appears. 

So they capture some deer, Tom makes a "pen" and the deer go in there and can't get out. (Ok, analogy is breaking down now, deer can jump decently, and aren't docile enough to have gotten caught in the first place.) Deer take management, but they are a self-renewing resource. As long as they only need to eat 52 deer per year, and they have at least that many in captivity, food is a self-sustaining activity, and now Herbert doesn't have to go hunting for meat. He can go pick fruit instead. Tom and Suzy have to manage the deer, which means making sure they have enough food, water, etc. AND, captive prey animals means predators discover them. Tom has to provide security.

This is a collectivist operation. Now everyone is busy enough.

Until Maria shows up. What can Maria do to join in? Maria needs a chair, a bed, and a table. What is Maria going to create in the economy? Maria is going to make grass huts. No one had shelter before.

It takes 3 months to make a grass hut, so it will take her a year to make one hut each for four people. Beds go in the huts. Each hut needs another chair, and another table. Tom is busy with furniture again, but he's also providing security for the deer, so it takes him a lot longer to get more chairs made.

All these primitive creations have a short lifetime, because the materials and craftsmanship are crude. So let's say that one hut out of four is destroyed every six months. Maria will be busy half the time make huts. During the winter they discover that the animal-skin "clothing" they've worn isn't sufficient, so Suzy makes new heavier stuff. OK, now everyone has twice as much clothing. 

There's no money here yet, because the economy isn't complex enough, but it's headed there. There aren't any "managers" yet either.

And everyone in the economy needs everyone else's services, albeit not all the time. And they are dependent on the wear-out rate.

OK, this example is already getting complex.

Let's change one aspect. Suppose it takes Maria four months to build a hut. Now there's trouble, because she can't build four in a year, but one out of four collapses every year. So at the end of her first year there's a good chance that instead of 3 huts there are two. In year two she has to build two huts to fill original demand plus first-year wearout, in addition to the next one that is going to collapse. She's losing ground.

So next Roger shows up. He makes jewelry, at one week per item. Well, he wants all the same things everyone else has, which mostly works, except that Maria is only just barely keeping up. And Roger doesn't want to wait a year for his hut.

The wearout problem is getting difficult. In addition, Herbert is starting to have trouble feeding everyone enough.

Yeah, the economy, and the society are going to start to break down at this point.

Roger wants his hut NOW. We'll ignore the possibility of violence in here, and argue that Roger offers Maria something extra to build his hut first. OK, now the money question approaches. How do we value peoples' work properly, in order for demand to cause a change in construction priority because Roger is "willing to pay more"?

What happens when Maria figures out to how to make a fancier hut, but it takes longer? What if Maria runs out of customers (i.e., no population growth one year) and makes no new ones? Or does she just keep on making them anyway, figuring that "if she builds it they will come"? If she makes more, that means that Roger can just arrive and walk into a hut. OK, Tom was bored and made extra furniture too, the hut already has a bed, table, and chair. What is Roger going to contribute to the economy?

Problems arise. Alternatively, Tom doesn't furnish the hut in advance, but he has some extra inventory. Roger can have a table, but Tom doesn't want jewelry, so he can't barter with Tom for it. But Maria wants a jewelry but can't barter with Roger for a jewelry because he only needs a little bit to get a bed, and her sales quantum is four months work of work whereas his is one week.

So let's say that the get together and conclude they need a bartering abstraction, using coconuts. One coconut equals one week of work. To initialize, they gather one coconut each. (We'll assume for the moment that no one cheats and goes out in the dark to collet more coconuts down by the beach.)

One coconut won't buy a bed, but Roger can, after two weeks, trade two jewelrys for two coconuts, and can then trade three coconuts for a bed. He makes one more jewelry, and trades with Suzy for clothing. At this point, Roger has no more customers wanting another jewelry.

But everyone needs to eat, and Herbert now has to get paid for the food he makes. One coconut per week is good, he says, and he can cook for six. So at the end of week one, they all pay a coconut, and that means Herbert earns five coconuts. But he has a hut, and furniture, and clothing, what does he need to spend coconuts on? At the end of the second week people are starving, and have to figure out how to prepare their own food, because they have no coconuts to pay Herbert with. Maybe at this point Herbert has to drop his price, or the others have to raise theirs. 

And here we are at the supply and demand balance. Herbert's product has a constant demand ("inelastic" if you prefer). Furniture is an occasional demand. Clothing likewise. Food, though…you need it every day.

Edward comes along and he can do the food thing too. And he's willing to charge less than Herbert. Herbert's price has to come down, at least to the point that there's balance, because once Edward is maximum busy, Herbert takes the overflow. But Edward has customers getting angry he can't do more, and he raises his price a little, because this will drive off enough marginal business that there's balance. Herbert still takes the slack.

And one day Herbert discovers black pepper. Suddenly everyone wants it, and wants to buy from Herbert again. HE can't keep up with demand, and raises HIS prices to drive off marginal business, and those customers are back to Edward.

But at this point Edward and Herbert are not competing on price. Not completely. Herbert has a better product, and it costs more. Herbert has all the business he wants. In fact, more than he wants, so he decides to raise his price further, and then only work six days. He still cooks for himself on Sunday. Some folks have to save a little bit out of each meal and eat leftovers on Sunday, because altho Edward can pick up some slack, he can't feed everyone even one day during the week.

This is all about balance. Supply, demand, pricing. All about balance.

Until Walter shows up, and he can cook more food than Herbert AND Edward, because he's got a Dutch Oven, and his cost is therefore less. Herbert and Edward are out of business, caused by automation. Well, OK, maybe Herbert is not, because he has black pepper. But the folks who bought from Edward now buy from Walter. So Edward is guaranteed out of business. Herbert probably loses some, maybe he has to lower his price, or go back to working all seven days…

Complex, no? And we don't even have babies in the mix yet. That's automated low-speed creation of new customers.

The economy is always in flux, because there are new people created, and old ones die out (the wearout factor applies to humans as well). Technological changes = automation improvements, and that causes job loss. Edward is going to have to figure out something else to do. Or maybe he goes to work for Walter.

Edward invents doors for huts. He can make one door per week, one coconut's worth of work. But he thinks a door is worth TWO coconuts. A door means that your hut can be closed off to critters wandering in, so it's really useful, and now Edward is earning twice as much as other folks. But there's a limit to demand--huts only need one door. Maria is still building huts, and she contracts with Edward to make a door for her every time she makes a hut.

Then Edward invents the window. Whoa! Whole new product. Same customers, but a window is priced at one coconut. Everyone wants a window, so some other prices start to go up, in order that people make enough profit to buy a window.

Everyone's needs can be meet by earning the equivalent of 52 coconuts/year for food, and about ten more coconuts/year for the other stuff. Herbert is earning around 100 coconuts, so they start to pile up, because he has nothing he can spend them on. With a fixed money supply, very rapidly Herbert has all the coconuts, and the economy collapses. So Herbert has to spend them, else his customers either come and steal all his coconuts, or worse. Herbert has to find something else to buy. A fixed money supply is not good (this is part of why the "gold standard" is a disaster at some point dependent on the overall size of the economy--economy big enough and the gold supply is constant means the gold price-equivalent goes up, and the inevitable "bubble-burst" will cause a bank run and collapse).

(A lousy alternative: people can go down to the beach and collect more coconuts, and thus enrich themselves, but if it's too easy, that is going to devalue the coconuts--if they're too easy to get then prices will go up, causing an inflation spiral and economic collapse. ("I went down tot he beach this morning and gathered five coconuts; I'll pay TWO for that clothing now" -- Suzy likes this, but now there's a bidding war for her product, thus the inflationary spiral.)

Aaaauuuggghhh! It's complex. I guess you DO need an Advanced Degree(™). 

Thursday, December 14, 2017

TV/Electronics tech advances

15 years ago or thereabouts I had simple cell phone, then I had a phone and a Palm Pilot, then a phone, a pilot and an iPod.

I remember saying to someone at work that what I *really* wanted was the unification of all three, so that I was only carrying one gadget. Three was too many.

That did eventually happen, with the IPhone. For reasons, I didn't get into that level of smart phone right away, not until 2010, and I started with an Android, because I thought I was going to do a programming project for it (that never happened, and eventually I hated the device--Android at that time was stinky). But I did love the success of only having one device.

The problem with this is that the Pilot was better at one particular thing I needed to do, and adequate at the remainder, and I STILL cannot do that one thing equally well since having to give it up. This really bites, and I could damn sure solve it if I could program the iPhone in my preferred language (Java, which Apple doesn't allow). I'm not going back to android.

-----

Where is this going?

Why hasn't the television world unified all those devices along with the obvious expansions that should happen?

What is it I want? I want a single unit, so I don't have cables all over. I want that unit to do the cable/satellite interface (i.e., channel tuning, DVR, channel guide, etc), I want it to play a DVD/blu-ray, I'd like it to do all the online things that Apple TV does.

And I want to use voice control.

I don't want to spend a pile of time flipping through a hard-to-read channel guide. I'd like the screen to be touch-sensitive. I want to be able to say "play channel 24", "what's on TCM now?", "record this movie", "open the dvd tray"

Why isn't this the default of new TVs already? There's nothing new there that involves R&D, just a coordinated integration spec. You can imagine it being just slightly configurable, inasmuch as I need to be able to replace the "cable" interface sub-unit with a satellite equivalent. And I need to upgrade from DVD to blu-ray at some point. (OK, I can play a blu-ray through the xbox, but that's outside the voice-control, and many people don't have xboxes. And no reason the xbox couldn't have an external-peripheral interface that let me still have voice-control (which wouldn't have to be extra-complex), although as I think on it, that might only really have to be "power on xbox", "power off", and a couple other things. I wouldn't really want to use the voice to replace the xbox controller handheld.

What do you think? Have I missed something else that should be included?

You'd think this was already done, but it's not. ChromeCast uses your phone as the primary device, but I sure don't want that. I'm ok with it as the "remote", but not as the streaming source. The TV still has to do the heavy lifting, regardless of whether your phone is the remote or not. (and if it is, I should be able to talk to Siri, which accomplishes the voice control?)

Why couldn't my XBox be the unit with all the smarts? Well, it'd need a 2T hard disk, or allow an external one somehow, or a local-network storage (

What about Alexa? and FireTV? OK, apparently you can now get an Alexa TV. That sounds good, but it doesn't work with my satellite box.

Years ago you could get a PCI card that was a tv tuner, and then software that would use it. I had one, that was really nice, until the channels I wanted most to record (TCM) went digital and encrypted.

At the moment, it looks like the Alexa-TV/Echo-Dot combo is the closest. And available as a 65-inch 4K. But no cable/satellite. These devices are also, of course, intended to be used by folks with real broadband internet, not folks with satellite.

It shouldn't take an Advanced Degree(™) to figure this out.

Economics lessons, part 1

It shouldn't take an Advanced Degree(™) in Economics to figure out how the economy works, but it sure seems like it does.

"We're going to bring back coal" -- what a ludicrous thing to say. Does anyone think this is going to happen ? Why? It's not. Coal is nearly dead. And you don't want it to come back. Those are nasty dangerous jobs, with illness and reduced life expectancy for everyone involved or nearby. Mine collapse, black lung disease, polluted drinking water. Where coal is burned, polluted air. No good.

Why is coal going away?

Basic lesson: old business models are replaced by new ones that are more efficient in some way. Old tools are replaced by new ones. You could call this economic Darwinism if you're aren't afraid of evolution. If you are, well, you're going to get rolled under by those who aren't, and no amount of stupid from the current federal government/administration will stop it.


Cases in point:

1) Horses. up to 1900, personal transportation was either on foot or on horse. Neither goes very far or very fast, so your travel is very limited. Well, okay, since 1840 there WERE places you could go on a train. But not to the grocery store.

A horse is more efficient that walking, if for no other reason than something besides YOU is doing the work, and the cargo load is greater.

But what's worse is the pollution aspect of horses. Imagine that you are in 1890 New York City. Four million people live there. There are a LOT of horses. Horses poop everywhere. It's probably less bad in the winter than the summer, but it's still bad. And you can't turn it off. (Imagine if the car you drove in the 1950s, 5mpg and high-pollution, could never have the engine turned off…not then an improvement over a horse.) Horses drop dead in the streets; then they rot: flies and disease. You can't hook a horse on the back of a tow-truck and take it to the dealer for repair.

So the revolution here is when an automobile becomes possible, and priced right, it eliminates horses as transportation almost overnight.

(Remember a good Henry Ford quote here: "If I'd asked people what they wanted, they'd have said 'better horses'" because most people's vision extends only just beyond their front door. Well, he gave us a better horse, and a better business model along the way. (Yes, I know Ford didn't really say that.))


2) Shopping. about the time I was born, your standard shopping experience was to go to a department store, let's call it "Sears", and you could talk to someone who actually had expertise/knowledge about how to do something and what tools to use, and they could sell you those tools.

Now, well, Sears is slowly going out of business. With the increased competition that Sears faced, and the willingness of stores to compete on price, the American consumer reached a point where purchase price was the critical aspect. That resulted in a need to cut costs at Sears (and everywhere else), and one of the costs that got cut was labor. Reduced pay because of cheaper workers means reduced purchase prices which means customers don't go elsewhere. It also means that workers are less knowledgeable. Turning those workers into part-timers to avoid paying benefits also keeps costs low, but you still only get the lesser workers. And those workers are the ones that interact with customers. Retail customers don't like trying to deal with dumb employees, but it's not like that's not true everywhere else too. And because aggregately we have decide that cost beats all, this was inevitable.

When you are forced to compete on price, rather than product or service quality, you get a race to the bottom. That always results in a shakeout where some close, some are bought, and a couple limp along getting slowly worse and worse.

As Sears has gone downhill, so have others, putting people out of work.

What's the business model that accelerates this? Well, Sears itself started it back in the 1800s. Remember the "wish book" ? Yeah, that was it, combined with Wells Fargo wagons (remember the song from The Music Man?). The model: send a catalog to a customer, let the customer place a written order with a paper check, box items and put them onto a Wells Fargo Wagon, wagon delivers to customer. Customer doesn't have to visit a store, in fact CAN'T because it's too far away. The process isn't fast, but it means you have access to thousands, millions of customers who don't live in town, or live on the other SIDE of town. Remember that transportation back then was horseback.

Back in the day, you could even buy a house, as a kit, from Sears.

So what was that? It was a new and more efficient business model. Enabled because of reasonably efficient postal service, banking service, and transportation service. Those things were, of course, still fairly limited, but still a giant leap over 100 years before.


3) Amazon. Now the equivalent model is Amazon.com + Paypal + FedEx/UPS. Instead of a turnaround time of weeks, it's now days, and perhaps only hours if you live near an Amazon distribution center. So those Sears jobs are turning into Amazon jobs. At least you don't have to interact with dumb employees or customers.


A theoretically perfect market is like this: you as customer have access to the advertising service, which has access to the payment service, and the delivery service, and all of that can turn around with minutes to hours. That sounds like today, with one exception: in a perfect market ALL possible goods and services are available for purchase at all times. I want to buy an "X" and the advertising service shows me who has that for sale. Our current market is imperfect in that some things are not for sale when you want to buy and go looking, but it's awfully damn close.

The old business model of "brick-and-mortar" stores is just about dead. Yes, there are still a lot of stores around. But that's going away. an old business model that is no longer efficient enough. One of the other reasons why the newer model is more efficient is that if you buy pants that don't fit you can just send them back and order a different size. Soon as you know you wear 34x32 pants, that's the only size you order. No need to try them on at at store.


4) 3D printing. This is going to replace a bunch of manufacturing flavors, over time. You will do it yourself at home. It will be more efficient to own a printer, and order a design, which it then makes for you. There is ZERO shipping cost, beyond raw-material refills. Eventually this is the Star Trek synthesizer. Make-on-demand. No need for a store, because there's no need for inventory.


5) Delivery via drones. Amazon is working this. It will have limited range, but be more efficient for small things, and nearly fully automated: this will reduce vehicle traffic at ground level. Just wait until the air is full of these things, tho.


Back to why coal can't come back…it's an old business model. It worked at the time because it was very low-tech, and because of that there weren't any competitors. You could dig it out of the ground with a pickaxe and haul it home with a horse-cart. But it was still nasty. At large scale, it was also dangerous. Oil is high-tech, but there aren't any mine collapses or explosions. (well, you get oil spills, those are nasty too.)

The coal competitors involve a bit more advanced technology, in varying amounts. Oil/etc require special transportation, special processing, special handling at your house. Natural gas is similar. Electricity puts the most dangerous parts far from your house, and you can do a lot more with it. Solar can bring power generation right back to your house again, and the fuel source is free, but the tech to create solar panels isn't trivial.

Here, too, tho, coal itself displaced a predecessor: trees. Much higher energy density, same transportation methods. Problem: non-renewable. You can grow trees in your yard.

Coal is nasty from the get-go. Oils is too. NatGas not so much. Solar is nasty only at manufacturing time (I imagine that disposal time will be too, but I haven't heard about much of that going on, the wear out age of solar panels is still probably well into the future).

But very little of that involves human work any more. And that is why coal is going away.

Automation.

All of these advances are the result of automation. Improved tech is a kind of automation. Both are better business models.

Which all result in job losers. Job winners, too, but the jobs are different, and the people are too. 50 years ago cars were still largely hand-made. Assembly lines, yes, but human workers. Now they are almost fully automated. Competition and therefore cost pressures forced this to be true. You want to buy a human-made car? Who still does that? Rolls Royce. Bentley. Morgan. Ferrari. Lamborghini. What's the sales price? Yeah: quarter-mil+

(look here: http://www.madehow.com/Volume-1/Automobile.html for a fascinating explanation)

Coal production, such as it still is here in the US, is not guys in mines with pickaxes. It's giant earth-moving trucks scraping a mountain flat out west. The mining jobs are gone. Automation has killed them. Not coming back. Waiting for them to come back because some knucklehead presidential candidate says they will is foolish in the extreme.

Automation has already killed a lot of jobs here in the US. Cost pressures moved a lot of jobs outside the US, and automation will kill them too.

Winners and losers. Economic Darwinism. Survival of the adaptable.

Inevitable. And scary.

----

An afterthought or two:

1) the coming "AI" revolution is already changing things, and that will accelerate. I don't know how or where. I used to work in that area, when it was still primitive. It was great fun, but inevitably came the pullback of "this is still too hard".

2) electric cars. If I live another 30 years I will see the end of the internal-combustion-engine-driven car. Gasoline will go away. What is currently a gas station hasn't been solely a gas station for years. It's a convenience store where one product is gasoline. Don't plan on keeping your current car forever. Or your antique.

3) self-driving cars and the Uber/Lyft equivalents will eliminate private ownership of vehicles for the most part. Self-driving trucks are in the near future (test vehicles are already in use). This will be one disruptive use of AI. Taxis are doomed; well, the ones driven by humans are. Uber service with self-driving cars will be the new thing--you won't even own a car.

4) There are plenty of historical occasions where the upheaval of new tech replacing old tech causes social unrest and rioting/vandalism.

Sunday, December 10, 2017

Solar Power at the home

Hyde University campus has two buildings. One of them was designed and built by me, aka "the barn", and the other is the house.

Where HU is located it's readily possible to have a 30 inch snowfall. I think two years ago we have one that was ~24. Fortunately, it's rare, and doesn't last long (the 24 was only a few days long before melting). The barn has a poured concrete floor on cinderblock supports (because the ground is sloped there). While the foundation isn't precisely flat, it's close. There's about a half-inch variation from the corners to the side-centers. (I didn't know that at pour time, only discovered it as I was installing wall framing sections and not getting the precise alignment I wanted.)

So when I designed the barn, I requested roof trusses capable of handling that 30 inches of snow. The roof is corrugated sheet metal sections on one-inch purlins every 24 inches.

Part of the reason for that was to handle the snow, but another part is that I would like to put about 5KW of solar on the roof. Solar has some weight, but not like the snow. But it's permanent weight, so the trusses are "storage trusses", which means I can also shove boards up there on the inside, and I have done that; mostly it's 2x4 and 2x6, altho my 50/60-year-old cherry one-by is up there too.

So this is all fine. I have a price quote on installing solar, but it's higher than I want, so I haven't done it yet. The quote has, in my opinion, too much battery and not enough panel. I want to be able to start my table saw (Delta Unisaw, 1HP motor, this looks about the same vintage as mine)



while a sawdust collector runs. There's a power-drain-surge while an electric motor starts up, so I want to only start them one at a time, but that's easy enough, and you want to do the collector first. (That said, my "collector" might just be a squirrel-cage blower to vent sawdust out the side wall; I have one, but it's sitting on the floor right now.)

This is a typical two-bag collector.

If you look at Google Images for "sawdust collector" you can see a lot of home-brew variations involving a shop-vac. Shop-vac is usually fairly low-power.

A Squirrel-cage is like this (except that mine is WAY bigger):

I'd just bolt that square opening to a hole I'd cut in the exterior wall, mount a water-blocking cover/shield over it and blow dust out. That'd work fine. It's not like I'm going to be cutting so much sawdust that there'd be a mound of it, it'd just be a dusting, and there's often enough breeze to dissipate that anyway.


So where is this all leading?

The HU house doesn't have the same kind of roof trusses. They are simple triangles with a center-post, no diagonal struts. That makes it easy to climb in around them, but I now have the feeling that I can't do solar on the house, which I *especially* wanted to do, with the barn as a test-drive.

This is a bummer. The house has A LOT of roof, because it's a single-floor ranch, and solar would be great.

I don't know if this has a solution. The trusses over the garage are 2x6, so they are stronger than 2x4 trusses, where the barn has 2x4 trusses with mid-supports.

It might be going to take an Advanced Degree I don't have to figure this one out.

Thursday, November 30, 2017

Using Google Earth

Have been using this lately. Working a project where the geographics are important, and someone sent me a KMZ file of some relevant info.

It finally works better than it used to. Hooray!

In the past it was the case that it crashed my laptop really bad--so bad that it needed power-cycling to recover--and now that hasn't happened; well, not on my Mac Pro. I'm not trying it on the laptop again, that was way too painful--so painful that deleting the application was what I did. Twice.

Project is that I may need a ground station for some work, and need to figure out what is possible relative to some other things regarding geolocations.

Years ago I wrote my own GIS program, and while I'd prefer to use that, it doesn't, at the moment, read KMZ files. KML, yes, but not KMZ. Given that KMZ is just zipped KML, that's not significant, but it doesn't. It doesn't show satellite images from a WMS/WFS server, etc, because I didn't ever need that. Probably don't here, either, if I could grab the appropriate data-sets as shapefiles or KML.

The application is interesting, how to solve the rural broadband internet problem. Using a different solution than what you typically read about. Since Hyde University is now based out in the sticks, we need a better solution than the current choices. Can't VPN out here, for example. Boo.

IOS, OSX and Calendars

Someone needed to share a calendar with me for some common planning needs…this has been true for some years now, but today I decided I'd try to solve it again.

This should be trivially simple, but it's not. And in fact a good bit of the online help  is flat-out wrong. May have been true in the past but it ain't now.

And it should not require an Advanced Degree(™) to figure it out, on either side of the equation. Altho it used to, way back when…

Used to be that to share calendars you had to set up some weird caldav goings on. I was successful doing that once, but that was like 2004 or something. Way too hard.

If you look at:

How to Share Calendars from iPhone, iPad - OS X Daily

That's dated early 2017, you'd think that was still ok. But it's at least one full version of IOS behind. I currently have IOS 11.1.2, and what the OSX Daily page shows you in screenshots simply can't be done because the GUI has changed to remove what they show and describe.


How to do it now:

I regret that you need to do this from a Mac. It appears impossible on your iPhone or Ipad.

You have to go to calendar in OSX. Make sure the sidebar that lists all the calendars is visible.

Mouse over the name of the calendar you want to share. To the right of the name you will see a pale gray "icon" appear, that looks like the wifi icon of several circular arcs that are supposed to look like a radio signal. Click on that icon.

You now get a popup asking you to enter a contact or email:



Hit the checkbox if it's a one-way share. Otherwise, it's a common calendar all subscribers can modify.

You can enter names from your Contacts, and it matches them properly. As it should.

The recipient will receive an email asking if they want to subscribe. This went weird for me, so I don't want to claim I handled that properly. On my Ipad I got a special alert asking for confirmation and when I hit "yes" the calendar got added, and after another few minutes all the events showed up. Don't expect the events to appear instantly…

In any case, it does work, but you cannot do it from you handheld. This is stupid. REALLY stupid. Didn't matter for me, once I realized that OSX is the start point, but it you only have a phone, you are SOL.

Shame on Apple for removing that capability.

Tuesday, November 07, 2017

New Wolfenstein


This really looks good. No, I don't have it yet, at 55 gigabytes, it's going to be a while before I can actually download that whole thing. Probably going to wait until xmas, when I'll be somewhere that has unlimited internet and I can allow the multiple-hours download.

In any case, I watched about 10 mins of play-through video (which was amusing, the guy doing the playing had it set to lowest difficulty and was getting killed often). Resolution and detail look impressive. Starting out in the wheelchair looks pretty hard. I'll need to go back and play the others (New Order, Old Blood) first.

----

After christmas: Steam sale had this at half-price, so I bought it. AND did the download, which was only *45* gigabytes. Still took five hours. Just wait until the first serious update, that'll be another 30GB I'm sure. Yeesh.

Bought Return to Wolfenstein too, that was only a couple bucks, and 760 megabytes. Download maybe 10/15 mins…I only vaguely remember that one, there was some crazy Scottish guy and a fat lady who sang.

I supposedly have a Windows 10 installer DVD coming, so I can upgrade the PC, and then maybe play some of this stuff (Prey is still in the wings).

----

March 1: If I'd been paying more attention, I'd have been able to buy this for Xbox for $30 at Best Buy. I'm sure it would have wanted an update that was huge. This one is in 4K. Geez that's going to be big.

The prior games are pretty cheap on Amazon, New Order + Old Blood for $18. First one seems not available. Since I have a new Xbox One X, with double the disk space, this looks like fun to do over again. Hope the controller aspect doesn't kill me.

Monday, October 09, 2017

new iPhone

October 2017.

Got the iPhone 8 here tend days ago or something.

Key reason I did the upgrade is inductive charging. I don't have that charger yet, but that's why.

This is is glass front AND BACK. Turns out that's not as good an idea as it sounds, although the reason is to allow for the inductive charger.

The issue is that now the back is slippery. The old one was not. This is slippery in the near-perfect sense that if you set it down on a sloped surface, it slides off. Onto whatever next surface is lower down, which might not be what you want AT ALL.

And it doesn't seem to matter what that slope angle is. I have set it down on what seem like near-zero angles and it does slowly slide down/off. For nearly flat, it may take a few minutes to actually do it, but I've watched it happen.

It's not completely frictionless, of course, or the slide would be instantaneous per physical inertia.

At first I was wondering if there was some kinda of internal vibration causing this, but I can't feel anything. It just happens.

That all said…

It's a much more responsive device. But not completely error-free--I've still had some web-pages reset during loading because there's some javascript error.

I'm not convinced I like the new "home" button…well, NON-button. The I-6 had a mechanical button--it felt solid when you really clicked it. This is a touch-click, which takes getting used to, and it's a LOT faster about fingerprint-to-unlock, faster than I'm comfortable with.

The last problem I had with it is that it requires a newer ITunes than I am working with. You have to have 12.7, which comes with a newer OSX than I am running right now. I am slowly going through upgrades to get there, while I try to figure out just what all applications are going to stay back with the older machine I may have to keep alive.

-----

December 2017.

I've had to reboot the phone twice in the last week/ten days. I forget why the first time, something was wacky.

Yesterday morning, email stopped grabbing messages. 9am was the last one pulled down. I was continuing to get the notifications, which means that the gmail server is working, but the phone would not grab messages, or download messages. Apparently there is a 3-stage process here.

1) contact email server (imap.gmail.com) and do a login to fetch headers. I don't know how much headers, but whatever you see on-screen, which looks like from, subject, first 10 words of body, make alert notification.

2) read full headers and insert into InBox. does NOT download entire message.

3) download full message and render. This happens when you get a new message actually on-screen. Or does it? Does the whole thing download in the background somehow?

So what was not working? #2 and #3. In finder-grain detail: #1 continued to work. 9am was the last time #3 had worked, shortly after that #2 quit working. I had a few messages that were in InBox but had no body. At the bottom of the screen there's a message in really tiny print about some error implying I have done something wrong…thing is, I wasn't even out of bed when the trouble started, so *I* haven't done anything. And Apple Mail is working just fine on my Mac Pro.


I had to reboot the phone to recover. All was good after that. Why?

Saturday, September 30, 2017

Ken Burns Vietnam.


Watched I think all but a few mins here/there.

Impressive. I learned a good bit.

I'm just enough too young to have turned 18 after we were completely out, and in that weird late-70s birthdate-window of about 2 years where you didn't even have to register for the draft  at all. So I didn't.

Young enough also that it mostly all happened when I wasn't really hearing about it. Plus, I spent a number of those years in several somewhat isolated places (Air Force Academy, for example, about as isolated as you could get and still have running water; I grew up in the military, my dad was IN Vietnam for most of a year).

So while I sort-of remembered a lot of the names of locations, I don't really remember why.


The whole thing was a huge cock-up. That seems to stem from a few factors:

1) This horrific post-WW2 Communist boogeyman fear. That messed us up all by itself, with HUAC and related crap. Some of us got convinced that anywhere something called itself communist was by definition going to end up being the equivalent of an eastern-european Soviet satellite/barrier/puppet state, sporting nuclear missiles like Cuba did at one point (and that episode we brought on ourselves, thanks JFK). The "domino theory" was stupid, although if you are fear-driven it seemed reasonable. You how it played out--no dominos.

2) WW2 was the last "good" or "clean" war. The veterans of that war were the parents of the draftees for Vietnam. And we'd created and heard endless stories about that having been a just war--where we were clearly "the good guys". So that's what we thought war was about.

3) Racism. This still haunts us. One required stage in war is the dehumanization of the enemy. There was plenty of residue of that from Korea (which was also really nasty, but not in the same way). So when both North and South Vietnamese "look alike" -- which is "enemy" ? And when they're all "gooks" (leftover word from Korea, or older?), smelly unattractive heathens who need the guiding hand of the white man who can help extract their country's natural resources for them and educate them in the proper ways of civilization and religion…well, we're starting out wrong. And our own racism in-squad about other Americans. It's a wonder there weren't more friendly-fire episodes (recall how Willem Dafoe dies in Full Metal Jacket?).

4) We really didn't understand the region. We understood/feared communism, or so we thought. Ho Chi Minh called the North "communist", but really the struggle was a fight for freedom from foreign invaders--and that included us, it was not a fight to become communist, that was just an excuse to receive guns and ammo from China/USSR. The NVA/VC were willing to fight to the last man/woman/child to get rid of us, which was not something we had ever actually experienced--all our experiences had had an "enemy" that was going to surrender at some point (well, except Korea, which in retrospect, wasn't that different from Vietnam). But while NVA/VC accepted military weapons from China and USSR, they didn't intend to be puppets of either one; this same bucket of Stupid got repeated by us a number of places in Latin America, except that we weren't committing troops, just money, to corrupt regimes that would more or less say "Give us money to fight off these locals who want to become communist leadership", but were going to fight them off anyway, they just scammed us for the money.

5) The South Vietnamese government, military, etc., one big corrupt kleptocracy (I sure didn't know that). They weren't good enough themselves to win--they weren't even trying hard. And we couldn't fight their civil war for them. (well, we *could* have, but that wasn't going to work.) 

6) The local situation had been badly handled from the beginning. Which is 100 years earlier near the end of the european-powers colonial period, which was driven by religion, racism, and greed and its own supremacy battles that had raged for centuries.

7) Women and kids as combatants. That was awkward for us--completely out of our experience, but not unusual for freedom fighting.


So the NVA/VC are freedom fighters. "One mans terrorist is another man's freedom fighter." They want to reunify N/S, with themselves in charge of course, after the stupid partitioning that occurred after WW2 ended, that let the French back in. The Vietnamese was in the 50s to get rid of the French didn't teach us anything, and USA looked way too much like more Frenchies.

And the whole thing was a big nasty episode from beginning to end, full of The Stupid, for which we have paid a huge price.


One thing I thought was interesting: The Revolution was televised. Unlike Ken Burns Civil War, where he did find a bunch of still photos (classic Matthew Brady), Vietnam seemed to have a film photographer in every squad and cameras running all the time. So some of those otherwise iconic photos we all remember vividly: the NV spy getting shot in the street, the burning naked girl…those weren't just stills, they were filmed for minutes. I had no idea. I didn't watch the news (didn't really watch ANY tv, same as now).

It was clear that we weren't going to win if we fought the limited war we tried to fight with inadequate troops, on the VC/NVA terms. Recall that last episode? Where NVA brings a long column of mechanized infantry down the trail, and gets the snot knocked out of them by B-52 firepower? Yeah, that was where they battled on *our* terms, and we clobbered them--because all our military thinking was still about how to fight a tank-battle in europe, and suddenly they gave us the opportunity to do so. They had no experience with that, and we had decades of planning and experience. (And, weirdly, that was till the planning approach for an expected direct conflict with USSR--a tank battle in europe: tank battle, Fulda Gap.) (And thus the massive, quick win in Gulf War 1991--Iraq was dangerously stupid about what they could/not do versus what we could do, they massed a load of mechanized ground forces, completely didn't understand air power, and we pounded them flat in a matter of weeks, and then made the same error we made in 1945: we didn't go to Baghdad and knock over the Iraqi gov't. (In 45 we should have rolled into Moscow…imagine if we had knocked over the USSR communist gov't: no cold war, no...Vietnam)

So of course we lost. It was really inevitable. 

Also a stark recognition: the similarity to the post-9/11 wars in Iraq and Afghanistan was stunning. We learned nothing. The battlefield changed from jungle to urban, or rocky mountainous areas--no one could hide, and the fight was similarly nasty, a large guerrilla war (not a clean fight against nazis that behaved like a normal army), and the enemy looks just like the not-enemy, but we are still the foreign invaders.

And Vietnam divided us like nothing other than the Civil War--we learned that we can't trust the government. Can't trust the President. We don't all have the same definition of Patriotism--that continues to be divisive.

Glad to see that Burns used all the music from the era. You can't really separate that time from its music. Pressure creates diamonds, and there were quite a few. I was surprised to NOT hear Barry Sadler's song Green Berets.


We handled the return of soldiers badly. There was so much other social trauma going on here, and Vietnam was not separable from it.


I hope that for a lot of folks who were there that this sparks the cathartic opportunities they need to finally talk about it, and that they can achieve some greater personal peace as a result. The conversations seem to have been taking place. My father was in Vietnam 72/73. He died in 96 of pancreatic cancer. I think he probably got infected by nasty stuff from there, likely Agent Orange in the water, other crud like that. He didn't have a combat job, was in Saigon, at Than Son Nhut, which was occasionally subject to VC mortar shelling in the general area. He'd get under his bed and then go back to sleep. I never asked, but it sounded like no real persona trauma.


And I expect that in 20-30 years Ken Burns will need to do Irag/Afghanistan. Sand instead of jungle, but not much different, altho we didn't overreact against the returning soldiers. Feels like the same errors all made all over again, new actors, same script.

Wednesday, September 27, 2017

Older ITunes trouble

For various reasons, primarily that of not wanting to shell out hundreds of $ every time a new OS forces paid software App updates, I tend to allow the OS world to pass me by.

In the spring this year I had hardware failure on my Windows PC. So I build a whole new machine. Reinstalled apps, games (geez, turned out I had nearly a terabyte of game files, that took a while). This was on Windows 7; I never upgraded that because 8 was an atrocity, 9 never existed. So a couple months after this new hardware build (btw: 4.5GHz hex-core Intel, 16Gig RAM finally, this time I didn't build a tiny machine), Win 7 updates itself, then says "oh, I don't understand this fancy shmancy new hardware, I can't upgrade myself properly now", and my graphics updates are broken too. That means nearly no games work, and I wonder what else is goofed up...so I will have to upgrade to Windows 10.

I mention all that because Windows isn't nearly as good as OSX about upgrades. In general, in the past, you were better off with a clean wipe and reload from zero. That's time consuming, but probably better for Windows anyway.

OSX was not like that. Is not like that. New versions, if they are going to run on your machine, will install as clean upgrades.

But eventually OSX outgrows your hardware. This means you have to buy new hardware occasionally. So now I'm in the habit of not buying new hardware from Apple. EBay has used machines at great prices. So I've bought some older hardware.

In fact, several older hardwares.

I have a G5 machine, with older apps on it. Expensive Apps. That I can't afford to update again. So that one was also serving as music source, with a fiber cable to my fancy newer hifi that takes optical in. Works great. Runs 10.5, aka Leopard.

About a year ago, got a replacement machine with some newer App versions. That was nice. Came with 10.7 (Lion), the newest/lastest it could take.


Now the ITunes problem. Lion, at least on this machine, has either done something odd about virtual memory (actually another unix partition that you can't see) -- vm partition not big enough -- or ITunes is really flawed. ITunes uses VM partition space (I guess?) while actually playing music, and eventually exhausts it. If you pause music, it stops using space, and resumes when you un-pause. I normally just let it run continuously, and hit the mute button on the hifi remote.

So after a few days, ITunes fills virtual memory, and then it hangs, and OSX Lion says "you are out of application memory" but of course I'm not, it's just ITunes being stupid. This never happened on the G5 machine (and the corresponding software).

So I got a new used machine this month. A 3.5GHz dual-hex-core Mac Pro. Most powerful machine Apple ever made. Cloned the boot disk out of the Lion machine for safety. Installed original into dual-hex. Upgraded to Mountain Lion. Same thing just happened with ITunes--"out of application memory"

At this point the only thing that is the same is that the boot disk that had Lion on it now has Mountain Lion. Otherwise everything else is new. I don't know how to make the swap partition any larger here (at the unix level I could do it easily enough, not actually hard there, but I think that the swap-space is dynamic these days, and my knowledge is from the old static-swap days). This disk reports having 200 GB free. It's an SSD--could that be the cause? Don't know. (This is not a fully updated Mtn Lion, and it's ITunes 12.2. Later: fully updated, with version 12.4. I think 12.7 is the latest, needed for some IPhone 8 stuff.)

So what is going on? Weelllllll.....it's called a memory leak. It's a software bug. The likeliest situation I can think of is that memory is being allocated for the audio data and then not released--audio files are pretty big, and after playing for 60 continuous hours, at roughly 1 megabyte per minute, never de-allocated, ITunes has pushed 3.6 gigabytes into page space, and exhausted what it is allowed to have. OK, it shouldn't be using that much RAM anyway, but it's the de-allocation failure that is the issue. This is just about the oldest software bug there is after indexing off the end of an array in C. I suspect that what has happened here is that ITunes is not properly releasing a pointer to already-played audio data, so it's hogging space, and eventually you're out. (And given how slowly new data is created/released in audio speeds, it's not like the problem about running out of file handles, which is A LOT easier to bump into if you aren't closing files that you've opened--which, I grant you, could also be a problem here, but decent code scanners will warn you about that.) I've been guilty of failing to close open files in my own code, but nothing I've written that had lengthy runtime had that problem (partly because you run out of "file handles" after a bit. A project I called "The Fridge" was a distributed grid engine, and while it was self-recovering if there was a disaster, it really needed to be not ever having the need to. Altho there was this one error on Linux where a shelled sub-process crashed so very hard it would take down the grid engine node; never did figure out what was wrong there, and now I've forgotten what that sub-process was.)

Or, if it's the disk itself, there is something similar going in that space is not getting deallocated properly after use in the swap partition. That could be investigated by cloning this disk back onto a platter drive and using that for a while. I have some other trade-arounds I could do. OTOH, it's only ITunes that is screwing up. You could also imagine this being associated with the optical fiber digital audio out, I've never used that before in my life; at the same time, ITunes for Leopard using optical wasn't doing this.

Also: at some point here soon I'm going to upgrade this machine to Maverick. If there's an ITunes bug still there, one would hope it is gone. But maybe it isn't...

In any case, if you are doing what I am doing and are experiencing this crash on an older OSX, the simples approach is to totally quit ITunes at the end of the day (or first thing in the morning) and restart it. You'll lose your position in whatever playlist you were in, but that beats a full machine reboot...

-----

slightly later: ITunes here seems hurt worse/differently: it reaches a state where it is still playing, but I cannot go to the GUI and do anything. I hid it, and it won't reappear, and "Force Quit" reports is as not responding. I hope it's not the case that that Lion original is messed up, I can't reinstall-from-scratch some of the apps, and I need to use them. Grrr.

Solution: I created an Automator iCal alarm app in which I quit ITunes, wait 30 sec, restart ITunes, and tell it to start playing. That is set to repeat every day at 12.05 am, i.e., right after midnight. That way there's no opportunity to accumulate too much memory-leak trash.

That's gotta be better. I hope that the upgrade to Sierra eventually eliminates this bug.

Later later: the daily reset of ITunes seems to be working, but last night it crashed at some point. This is getting tiresome. Later later: ok, that was a one-time problem, hasn't happened again since.

The old quad-core Pro is slowly dying, so it's powered-down right now. I need to recover what I can there, but the machine is not looking good right now. Ethernet seems to go out, video acts weird after a bit, audio sockets don't work...

------------------------

January 2018: I upgraded to Yosemite (10.10), which includes a newer iTunes and the problem seems to have gone away. Also, the Automator thing seems to not work; fortunately that seems to not matter. I didn't upgrade to Maverick because that doesn't have iPhoto (huh? what sort of stupid was that?)

March 2018: January situation continues to be true--iTunes is not being stupid on me, so I am getting rid of the Automator script.

Thursday, September 07, 2017

Weather worries...

In theory, I'm going to the beach saturday. Otoh, Irma might be saying no. Hard to tell where that's going, other than "no place good".

Don't want any of what Houston just got. That was insane.

And from what I'm reading these days, we may have already passed the tipping point--without knowing it--where the planet kills us off soon.

In reality, what we have is that the weather we all grew up with was "stable", or seemed so. Some winters had more snow, some didn't. Some summers were rainier, some were drier. Still, didn't seem like there was much variation.

So that's a stable point. "A" stable point. But hardly the only one. An equally "stable" point would be where there are Harvey-sized hurricanes every year. Eventually that means no one lives near the Gulf coast any more. Houston gets abandoned. Miami.

Or of course we figure out how to build better for those locations. Houses on stilts is a corny example, but not unusual in areas prone to serious ocean floods. At OBX, houses near the beach are all elevated one story.

But that doesn't fix the problem in Norfolk, where the naval base is already at 0 MSL. That's going under permanently before too long.

The elevation here at Hyde U is about 500 feet. Flooding here = end of civilization. Not too likely, but storms ARE going to get worse all over.

Monday, September 04, 2017

Common Core education

I had a conversation with an old friend ten days ago...visited for a few hours, we talked lots of stuff.

One of which was about the diff between our grade-school educations. He was in one school system the whole time, in Florida. I had eight different schools over the same 12 years.

My schools, as best I remember it, as that was 40-50 years ago, seemed an even-handed explanation of things. His made a serious effort to teach the same load of lies about the Confederacy that are still under discussion now. He said that for several years in a row, every fall the entire school would watch Gone With The Wind and teach that as the truth about history. Yeesh. I can't stand that movie*.


Later, while driving home, I realized something interesting:

All the squawk you hear against "Common Core"...the problem for the folks who oppose it is that teaching the same thing everywhere would mean they would no longer be able to teach the false narratives about all the causes of The War to Preserve Slavery--no longer able to teach the lies.

Don't know why that hadn't occurred to me before. But it's clearly the root cause of the complaint about teaching all our children the same thing.

Do they want to also teach some invented math? Who can invent a math that is properly consistent and completely new and different? No? Yeah, that wouldn't work anywhere. Want to invent some new science-y stuff? I know, let's redefine chemistry and physics, the combination of that plus a new math could probably prove that the Earth actually IS flat, IS the center of the universe, and that the Sun revolves around it.

I can't see that working, although they probably think the metric system is kinda like that. Well, ok, I do too, still have to think carefully about conversions every time.

-----

*I love movies. I have watched A LOT of movies in my life. Thousands. But GWTW...Clark Gable played a riverboat gambler in every movie he ever made. Including the ones where he was NOT a riverboat gambler. Gag. GWTW is Part Two of the bullshit film rewrite of US history that began with Birth Of A Nation. Not actually sure if I've ever seen that all the way through; perhaps curious because as a student of film history, I do watch plenty of silent films.

Monday, June 12, 2017

Music tastes and online info

My favorite flavor of music is called "Progressive Rock."

If you know what it is already, then you know what it is. If you don't know what that name means, a short description is that it is rock music that has/is progressed beyond simple 2-or-3-chord songs.

Generally it's roots are classical music rather than pop songs. It's longer, more complex, listening rather than singing or dancing music. The focus is much more the unstrumental composing than the lyrics; lots has no lyrics at all.

And it is generally best described by a list of the performers. The category is broad and there are flavors of Prog Rock I'm not keen on (in general, newer and kinda derivative). So: ELP, Yes, early Genesis. The style originates about 1968.

My favorite online source for info is the Gibraltar Encyclopedia of Progressive Rock. I was casually involved with that back in the 90s, before it was even an online source. My participation was slight in the early-mid-90s, but it was there, when there was really just the alt.music.progressive thing (or whatever it was, been years). The web has improved the amount of info, but things have splintered. Things like FreeDB are good, but have zero meta-info beyond album name, track names, and track lengths--and zero cross-linking.

Anyway. GEPR. There was once a book of it. I bought that, it's a great item, but such a thing is out of date the day after it's printed.

The GEPR website has languished for about six years now. Fred Trafton was running it for years, still owns it, and hasn't had time for it, endangering the value and life of the content (granted, the Wayback Machine would still have it all if Fred didn't at least renew the domain name).

So he and I were having an email chat a few weeks ago. I argued that it needs converting into a Wiki existence, so that others can participate, and he doesn't have to worry about maintenance. I offered to do a chunk of that initial setup. In particular, to scrub the existing website and strip out all the raw info from the web-pages (regrettably, there's no database in the background, just hand-managed HTML, and aging HTML at that).

So I've been working that. Did a large data-mine off another (actually dead) website a few years ago, so I knew what I was up against in attempting it. I don't expect or intend to achieve a perfect extraction, no way that is even worth my time to attempt; because it's hand-made HTML there are a lot of little tiny variations all over, and I'm not writing special handlers for each one.

At this point I'm approaching 2/3 completion. Some of that is done via correcting HTML flaws in the source rather than writing special-case handling for singletons.

The hard thing about doing this kind of extraction is that people who make pages like this treat HTML as a structural content organizer, rather than just as visual markup. And then they aren't consistent about what they do, so the structure is casual rather than strict. This is possible because web browsers tolerate a lot of slop in the HTML. That's really not a good thing any more.

The extraction is going into a database now.  Once I can read everything I want from the HTML into the DB, then I have to make a simplistic form for getting it out again, so that I/we can test to be sure there's no content-rip disasters in there.

Then I have to figure out how to dump that database into something that is wiki pages. I really have no idea how I might do this. Maybe I don't even want to do that, exactly. Maybe I want to push the DB into a wiki DB.

My involvement here is to get to the point where there's a wiki full of as much content as I can manage without spending forever on it. I don't want to own it after that.

Sunday, June 11, 2017

EMail programs

It is possible to use your web-browser to do your email work. I am currently doing this with Chrome and GMail. Can't say I like it, but it more-or-less works. I regularly press control-R to reply, only to have the browser window refresh itself because I forgot that that was what control-R does.

I used to use Seamonkey. That's a Mozilla product, and I was using it because of the set of tools it integrates, and is the real successor to Netscape's unified product (whose name I now don't remember, sorry Jamie...Communicator?)

Anyway. Mozilla products have problems these days (see earlier blog on this topic). There's something wrong on there somewhere that causes/allows memory leaks, and those always turn into problems at runtime eventually; not a BSOD or equiv, but exhausting memory, VirtMem, disk space...

Mozilla's alternative standalone email is Thunderbird, but it's still Moz, which means that the HTML rendering engine inside is the same as Firefox and SeaMonkey. Which means it is going to have the same mem-leak issue. So I can't be using this.

(fwiw, Chrome has some memory issue, too, I don't yet know quite what, but the way it runs means that if a window has a memory problem the others are not affected--Mozilla craters in toto if any one window is the source of the leak)

So I gotta try some other tools. I've used Outlook, not really interested in that. Going to start with things listed here:

http://www.techradar.com/news/the-best-free-email-client

The real question is what HTML engine is in use?

On my Macs I'll be using Apple Mail. That integrates nicely with my phone, ipad, and the multiple machines I use.

I liked Seamonkey. I just can't deal with the memory leaks.

I'd take suggestions for email programs from readers...

-----

Update: Opera Email is working pretty well for me. It's not as fancy as I'd like, there are some behavioral tweak I ought to be able to do, but can't. The alternative would be for me to write my own email program...which, now that I think of it, might be an interesting thing to do.

A new toy

I got a couple of new toys in the past week.

The first is an HP 9050DN printer. Why? Because it will print 11x17 double-sided. I am doing some documents work these days where the target is 11x17 and although I'm not do the final deliverable printing, it's darn sure good to be able to proof things at final size. Already I've caught a couple of changes that need to get made that I wasn't seeing otherwise, and I receive one of the final printed copies. This is a "on-loan" item, paid for by the group I'm doing the docs for.

The second toy is much more interesting, and a lot less common:

a laser cutter. (yes, that's two laser things in the last week)


It's a VersaLaser VL 200. 25 watt, 12x16 cutting area. Bought it from the guy who was actually cutting for me 10 years ago, for $4K.

Why? you ask. Well, because once I am well familiar with how to use it, I can make things for myself better/faster/cheaper than paying someone else to do it.

(OK, thought you were retired and therefore a cheapskate, you also say. Well, yeah, kinda true, but this has been in the works for months, or years if you go back to the larger one I almost bought from him over 2 years ago. Plus, I am getting a new big riding lawnmower tomorrow. Expensive week.)

What will I be doing with this? Model railroad stuff is the target. I'm figuring if I use it to design/build 100 things that averages $40 each, which is a pretty good deal.

Expect new blogs on this topic over the next months. And I hope some magazine articles that pay $ which will help with the cost.

Monday, May 08, 2017

Revisiting Oblivion

This is still my favorite Bethesda game. Newer ones do have improvements in various places, but I like the looks of this one best. Mostly because of inside the Oblivion Gates was so radically different. And the normal terrain wasn't snow. I hate snow.

So I re-acquired it on Steam last year. Decided I would play it without using Chameleon at all, and on much higher difficulty.

Well, the decision to not use Chameleon went by the wayside. The higher difficulty level pretty much killed the possibility of avoiding it.

I'd also forgotten the need to craft a character design better. So I picked a standard flavor, which resulted in most of my major skills being ones I don't care about, and skills I *do* care about aren't helping me level up.

I remembered the need to run Sneak to 100 during the training tunnels, and I invented a new (for me) approach to boosting various magic skills (you have to get into the University, but once you do you can craft a micro-spell that takes 2 magicka per cast and then lean on the "cast" key until you hit 100. Can run around at the same time, but I think that before I do this ever again I'm going to make myself a small weighted gadget that will sit next to the keyboard and do the "leaning" for me; it's a thing that will take several hours, and I don't want to sit there the entire time.

So for that to work interesting for you, you also need to pay for training 5 times each level, to maximize the speed at which you can level up. You do this because at the bottom loot and gear are really uninteresting.

On easy mode, you won't see glass armor until level 10. On "hard', not until you pass 20.

So I'm a weakling character, at Level 23 I have 225 Health; the only way I can take on an opponent is with Chameleon > 100%. So I had to get into Unseen University to craft spells and enchant armor. With Chameleon > 100% you are, to all intents and purposes, permanently invisible. This is, of course, an unfair advantage, and the game becomes less interesting overall. You can't be attacked, you WON'T be attacked, because nothing can see you to do it.

At this difficulty level, opponents are significantly stronger than you, 2-3 hits and you are dead.

(In Morrowind the ability to levitate/fly was similarly "cheating", because only those attack birds could come after you. It may have been that chameleon was equally bad, I never even tried it as I didn't know what it was.)

But when you don't ever have to fight, then you're really going around collecting loot. The best loot is found inside Gates.

If I decide to go through this again, I'm going to try harder to remember how to create my character up front, and avoid Chameleon. And probably play at a lower difficulty.

Sunday, May 07, 2017

The Future: Your choices--which will it be?

There are three choices for what your future looks like. Which one are you choosing?

1) Star Trek

2) Handmaid's Tale. 1984. Depends on whether we go for the theocracy or the SS flavor of totalitarianism. "If you want a picture of the future, imagine a boot stamping on a human face — for ever."

3) Mad Max


Your attitudes and voting behavior will determine which one it is.

You can imagine which one *I* am in favor of.


This blog entry brought to you by: