Intel's Ronler Acres Plant

Silicon Forest
If the type is too small, Ctrl+ is your friend

Tuesday, January 2, 2018

Desmos Graphing Calculator

I've been hanging out at Quora lately. A fair number of math problems show up there. Many of them are inane, like 'What is 2+2?", or "What is 3+3 x 3?".* But some advanced ones show up as well. Some of them are really ugly, I've never seen the like before, don't know what they're good for, or why anyone would care, but they make me curious so I've taken to plotting them on the Desmos Graphing Calculator.  It would be nice if you could simply copy the equation from Quora and then paste in Desmos. You can, but it doesn't translate properly, so you have to go in and fiddle with it enough for Desmos to understand it. Plus sometimes the equation (or expression) you get from Quora is missing something, or didn't get entered properly, so you have to muck with it to get anything graphable.

The equation for the Middle Green Circle on the graph comes from this question on Quora.




Outer Orange circle    x^{2\ }+\ y^2\ =\ 16     
Middle Green circle    e^{\left(y^2\ +\ x^2\ \right)^{.5}}\ =\ 16
Inner Orange circle    e^{.5\left(y^2\ +\ x^2\ \right)}\ =\ 16

The original equation from Quora.

f(x,y) = e^sqrt (x^2+y^2)


Mucking about with above equation and then typing Ctrl-Z causes the graph above to be redrawn. Actually, it doesn't matter what you were doing before, if you have done anything at all in Blogger's Editor, Ctrl-Z (Undo) causes the graph to be redrawn.

Taking the Middle Green Circle and changing it to a function gives us this
f(x,y)=e^{(x^2+y^2)^{.5}}
but Desmos doesn't know how to graph it.

Note that I have replaced the call to sqrt with an exponent. Desmos treats sqrt as four variables (s, q, r & t) being multiplied together.

Also capital X and capital Y mean something special, so don't use them until you figure out they do.

This post started as a test to see if I could copy and paste the equations, but I can see it's expanded a bit.

About the Math
The difference between the 2nd and 3rd equations is that one multiples the exponent of e by .5 and the other raises it the power of .5 which should be equivalent according to math.com's article on exponents (see the Power Rule). I don't quite understand why the graphs of these two equations should be different, but Desmos evidently thinks otherwise.

I set the expression equal to a constant (16) to get it to graph. Properly, it should be set to Z and graphed using a 3D graphing calculator. I found one that looks like it should do the job, but I've been having some trouble with it, so that's going to have to wait for another day.

* What's even weirder is how many answers the inane questions get. I made some sarcastic replies, but it's just endless. Besides, since some people think these questions are worth answering, I am trying to train myself to Pass on these questions, but it's really hard not to click Answer and just let them have it with both barrels. Gee wilkers pops, everyone knows the answer is 42. I mean it's the answer to everything, ain't it?

P.S. I just discovered that Google has a plot function.

Monday, January 1, 2018

The Samaritan


The Samaritan - Trailer

The Samaritan is an okay movie. It's got a bunch of good pieces, like Samuel L. Jackson, but it's not well put together. It's the story of an old confidence man and a young criminal who wants to pull a scam, but the story line is thin. It just doesn't fit together well. Plus they use the word 'grift' way too often.

I would think that to pull off big confidence scam, you would want to be working with people you like and trust, but maybe I'm naive. Maybe people can perform under pressure and work with people they despise. Or maybe someone will be so pissed off they will pull the plug at a crucial moment and the whole thing will collapse and everyone dies. Did I just spoil the story?

I enjoy a good movie about scams The Sting, The Grifters, House of Games and The Spanish Prisoner were all pretty great.

200b

It seems there are invisible characters floating around out there on the internet that cannot be detected by a person using any popular computer programs. Zero-Width Characters by  gives us a hint, but he doesn't tell us the whole story. He gives us two sample lines of text that look the same but he claims are actually different.

Copy one line and then search for it using Ctrl-F and you find both lines. Look at the source using the Chrome browser and the lines look the same. Save the page and look at it using the Linux text editor xed and again, both lines look the same.

Invisible Text
Only when I opened the saved web page with vi (an old school text editor) was I able to see the 'invisible' characters: a less-than-sign (<) followed by 200b followed by a greater-than-sign (>). What's even weirder is that vi highlighted this sequence with blue.

Via Monday Evening

Trumponian Economics

I sent WHAT’S RED, BLUE, AND BROKE ALL OVER? AMERICA. to my faithful correspondents and California Bob replied at length. Evidently I'm getting led around by the nose, just like most Americans.



First, Kotkin betrays his bias when he describe's the Recovery and Reinvestment Act as a "transit" project** -- it was actually for myriad projects, including highways, railways, bridges, airports, and transit, as well as homeland security, and even extending broadband reach, which most would agree is a good thing, though maybe it just enables more "couch sitters."  It may have created that 400-lb guy sitting on a bed somewhere who rigged the election.

But it's true that everyone needs a job -- more specifically, it's a good idea to keep people productive and engaged in society so they don't languish and become alienated internet trolls, or worse.  When large numbers of people start to fall through the cracks, it can create problems.  And if people are working at truly productive jobs, it enhances the economy as a whole.  Unlike my job, where we are burning other people's capital to create a dubious product of contrived value.  But we're not the first by any means.

I sort of like the concept of managed back-to-work programs, like the WPA/CCC.  One wonders in our economy hasn't developed to the point where the private sector could do this better.  After all we're not talking about millions of hobos prowling the byways looking for their next meal, for whom we need to set up camps to keep them from starving or turning violent.  We're mostly talking about overweight people sitting on their couches, watching satellite television and poking their iPhones; they're not working because the available jobs "don't pay enough."  Those jobs go to economic refugees from other lands -- agricultural, restaurant, janitorial jobs.

So maybe instead of a large government program, something more subtle might work.  Some 17 states are going to increase the minimum wage today, Jan. 1.

In any case, the GOP has no appetite for big government programs.  They opposed Obama's Recovery and Reinvestment Act, and they grumbled about the "trillion dollar" infrastructure idea that Trump once mentioned.  After all they just passed a tax cut that will make the national debt skyrocket.

Indeed the GOP currently seems to want to strangle the government.  The Trump admin is leaving all kinds of jobs vacant, appointing unqualified and rash political operatives to the bench and key administrative posts, and whether it's the intent or not, the result is going to be the hollowing out of government, top-level corruption as seen in the kleptocracies, insolvency, and ultimately, a failure of the institutions, and triumphant cries of "government doesn't work" by the victors.

In fact I am now counting on the civil service and the bureacracy to preserve our institutions against subversive leadership.

People aren't going to miss the precious institutions of civil society, rule-of-law, enlightened democracy, transparency, low corruption, public education, independent judiciary, etc., until they are gone.

Many [of] you won't notice -- as when the Interior Secretary handed his Whitefish Energy friend tens of millions of dollars to "work" in Puerto Rico.  This new administration started lining their pockets right out of the gate.  And people won't notice when they start letting Nabisco put cement in the Oreos, and those stomach problems you start getting will just be your bad attitude, or God's will....

In my review of history, unregulated free-for-all societies can produce examples of great progress, but they're not typically examples of just egalitarian societies.  If you look at the industrial revolution or the colonial British empire, along with the great fortunes made there was plenty of widespread misery.  At least modern Americans can find jobs if they want them, and they enjoy protections on wages, hours, and working conditions (for now).

Libertarianism is a seductive thing, but I think I'm better off with traffic signals, and someone enforcing that there be no mercury in my Funyuns.

Anyway..Kotkin.  Kotkin derides the "intangible" production of blue states, and lauds the value of the agriculture, energy and manufacturing sectors in the red states -- but doesn't mention that the blue states contribute far more tax dollars to the Feds than they get back, whereas most of the "valuable" red states are net moochers off the Feds.  Not trying to be derogatory, but value is value, and is generally measurable.

Coal jobs?  Even if you're pro-pollution, coal just isn't competitive against nat gas.   The Energy department's scheme to subsidize coal must be a political sop to coal states.

Don't like technology or green energy?  Don't worry, if they're not sustainable they'll eventually fail on their own, but you can't keep scientists from researching stuff they're interested in, or capitalists from subsidizing it.

Don't like finance, media, and tourism?  Again, if they're not sustainable they'll fail, but under current law these industries are allowed to operate.

If Kotkin's argument is that the Feds should pump more money into basic industries, subsidizing manufacturing, coal, energy, agriculture ... that's a point of view.  Seems I'm hearing a lot of : "Erect trade barriers, impose tariffs, deport cheap labor, tax cuts for manufacturers so they have more working capital."

1. Trade restrictions WILL increase the cost of imported goods (which is virtually everything).
2. Less unskilled labor WILL increase costs in those industries (agriculture, food service, janitorial, construction), and the costs or availability of those goods (food, which could stand to be a good bit more expensive; restaurants, who cares, though it's a huge industry; construction -- has to put upward pressure on house costs.  Can't help anyway).
3. Tax cuts for industry -- well, tax cuts are good, though biggest beneficiaries as always will be at the top of the food chain (owners and management).  And again tax cuts cause fiscal problems for the government, which is a separate topic.



He might be right. You could argue about several of his points, but that's what we do, isn't it? While Trump has numerous faults, I'm not sure he is going to have any worse of an effect on the country than any other president. I suspect we might have become so successful that our empire is becoming Byzantine, which will lead to our collapse sometime in next five or ten centuries. Or next Tuesday. Or maybe I just need a better source of information.

  * I posted it here yesterday.
** transit is only 6% of the bill.

Mistakes Were Made

You might think this is a knob, but it's not, it's a 'skirt'.
The main control knob on our Maytag clothes drier wasn't working properly. I assumed the timer that the knob controlled was the problem. Order the timer for $100 and replaced it only to find out that the problem was with the knob. What's the deal, Maytag? You can make a  conpiicated mechanical timer that will last indefinitely but you can't make a simple knob?

So I order a new knob, but it's not just one piece, it's two. Fine, order both pieces only to discover when they arrive that the knob is composed of three pieces, and the one piece that connects to the shaft, the one piece I really need isn't here. Who makes a knob out of three pieces, and why do you have to sell them separately? Why can't you put them together and sell them as one knob?

So I return the two pieces I don't need and order the third one that I do, but this business of the knob flopping around is getting to be a pain, so I stuff the backside full of wood putty and let it set. It's been working fine ever since. However, if it ever does fail I have a brand new knob and a fully functional timer waiting in the wings.




Flip Cap Easy Clean & Change with STA-TITE Installation

Decided to replace a couple of toilet seats because they were getting kind of old and groady. Last time I did this I got plastic seats thinking they would last forever. They don't, so this time I figured I'd get good old wood seats. They're cheaper and they might be warmer. Get ready to mount the new seats and the screws won't fit in the holes. Write to the company and they point me to this video. Now I look at the instructions, and yes, maybe they do explain it, but the pictures are small and not that clear. But mostly their new fangled technique is just backwards from the way it has always been done. They should have big red flags all over the box warning you about this new pair of dimes.



The water heater flaked out the very next day after I last fiddled with it. I was flashing a code of some sort again, but when I started mucking with it one of the wires that goes to another connector just fell off. I bought a set of crimp-on terminals at Lowes and crimped them on and we seem to be good.



Old Bedframe
Older son's bedframe got bent during moving and this led to a kind of slow motion collapsing. Normally I would tackle a repair problem like this with hammer, tongs, some strips of wood or metal and a handful of screws. But being as he lives downtown and I'd already made one attempt at repair, I decided that the expedient thing would be to just order a new one. I could go down there and in short order we could break down the old one and put together the new one. Home made repairs, at least the way I do them, can go on for hours, and without actually seeing the frame I would have a hard time making a plan to repair it.
New Bedframe

I hauled the old frame home thinking I could give it away on Craigslist, but it turns out people see the picture in the Free listings and don't read the description. Only one person persisted when informed of the condition and we couldn't connect because of time distance conflicts. I was thinking fine, I would fix it my self and sell it on Craiglist for half of what it cost. At least I would recoup some of my money. But today we were cleaning the garage and I saw this pile of pieces lying there and I said screw it, and cut up the long rails with my antique saber saw and dumped them in the recycling.



Our Panasonic vacuum cleaner started stinking the other day, a sure sign that the drive belts have reached their end. No problem, I have a spare set. The motor shaft is red hot (not literally), so I let it sit for ten minutes to cool before I attempt to install the new ones. Getting the new ones on is kind of a pain because it takes a goodly amount of force to get them to stretch enough to slide over the pulleys, enough force to drag the vacuum cleaner around. So one foot to brace against the machine to keep it from sliding which leaves both hands free to wrestle with the belt. I ordered a new pair from Sears for $10, but just now I noticed I have ordered these belts with from Amazon a couple of times, once in September of 2016 for $7 and again in  April of 2017

Gunpowder


Gunpowder (2017) | Official Trailer ft. Kit Harington | HBO

Gunpowder is a three part mini-series about the Gunpowder Plot to kill Kind James of England in 1603. The plot is the origin of Guy Fawkes Day,
Remember, remember,
The Fifth of November,
Gunpowder treason and plot;
For I see no reason
Why Gunpowder Treason
Should ever be forgot.
Nursery rhyme made famous (in my head) by V for Vendetta, which is where Anonymous got their masks.

The show stars Kit Harington (commonly know as Jon Snow in Game of Thrones) as Robert Catesby, the Catholic instigator of the scheme. Kit, as he does in Game of Thrones, plays a hothead unswayed by appeals to reason.

Anne Vaux is played by Liv Taylor, daughter of Steve Tyler of Aerosmith.

The hunchback Cecil is played by Mark Gatiss.

One of the best scenes is when the conspirator dump several pounds of gunpowder on a cloth in front of the fire to dry it out. Geez guys, but I suppose desperate times call for desperate measures. Once it's dry any stray spark will set it off, and naturally, because they are engaged in a gun battle with the sheriff's men, a spark does land in the powder and boom, off it goes.

The Gunpowder Plot Conspirators, 1605
The show graphically depicts some of the tortures used to extract confessions from prisoners, and equally graphically depicts the methods of execution. Revolting all around. Thank god for civilization, or maybe I should say thanks that such methods aren't used anymore, at least not in places that the West currently considers civilized. Folks living in Europe in the 1600's considered themselves civilized.

The whole thing hinges on what people believe. You could argue that Catesby was driven to his plotting by the harsh fines being levied against Catholics, but that only works if you adhere to your faith in the face of persecution. Perhaps they remained Catholics because their belief is all they could be sure of, being as the world is such an unpredictable place. Kind of reminds me of the political war being waged in the USA these days. This one is being fought over beliefs just like the war between the Catholics and the Protestants in 17th Century England. Facts and reason are of no use in such a battle.


Uppercase, Lowercase

We have uppercase (capital) and lowercase (small) letters, but numbers are just numbers, aren't they? It turns out there are a couple of special cases where there are uppercase and lowercase numbers.

It exists in Chinese: 壹贰叁肆伍陆柒捌玖拾 for one to ten. It's supposed to prevent tampering of numbers and is still used in important documents (especially if money is involved)
The "lower case" is 一二三四五六七八九十, which can be altered easily - Reddit
The other case is typography, where they are sometimes called Oldstyle figures.
 Origin of the term here.