Thursday, April 10, 2025

HD 12K Channel on YouTube

Fortunately my TV only goes to 4K or I would end up in the Maldives and never get back out.

There Was Probably a More Efficient Way to Do This

But convergent sequence of a hexagon shrinking by mill radius until hexagon height less than mill radius seems to do the job.

#!/bin/bash
if [[ $# -lt 8 ]];
   then echo "$0 xstart ystart zstart zstep zend xyfeed zfeed height millradius"
   exit 2;
fi
cat prolog.nc >hexagon.nc
xstart=$1
ystart=$2
zstart=$3
zstep=$4
zend=$5
xyfeed=$6
zfeed=$7
height=$8
millradius=$9
xend=`echo "$xstart+$height" | bc -l`
while [ "$(bc <<< "$height > $millradius")" == 1 ];
do
    xstart=`echo "$xstart+$millradius/2.0" | bc -l`
    height=`echo "$height-$millradius/2.0" | bc -l`
        if [ "$(bc <<< "$height > $millradius")" == 1 ];
    then
    mkhexagon $xstart $ystart $zstart $zstep $zend $xyfeed $zfeed $height $millradius
    fi
done
cat epilog.nc >>hexagon.nc

And there is an increasingly excited sound it makes as the cuts get shorter and shorter.  Writing scripts instead of C always sounds faster than it is.  Bash scripts are never as simple as they should be and are far harder to debug than a C program where you have tools like gdb.

I may need to cut slightly larger to get the hex nuts to slide in more easily. 


DOGE Surveys Unemployment Insurance Claims

They found tens of thousands of people over 115, people between 1 and 5, and people not yet born received benefits.

Now, some this might be mistyped dates, not fraud,  but why does the system not bounce these and ask for corrections?

5/22/20 WAMU reported that Washington State experienced hundreds of millions of dollars in unemployment insurance fraud during the COVID disaster.

Do you see why protesters hate Musk?

Some Carry-On Mistakes Almost Make Sense

Like a Swiss Army knife.   I lost one thst I thought was okay in a carry-on.  But a flash-bang grenade?  4/9/25 WTAE:
"

A federal grand jury indicted a man who officials said was found with a flashbang grenade in his luggage as he passed through the security checkpoint at Pittsburgh International Airport last year."

Watch Inflation Become A Good Thing

4/10/25 CBS News:
"The Consumer Price Index in March rose 2.4% on an annual basis, showing progress in the Federal Reserve's battle to bring down inflation to a 2% rate. 

"By the numbers

"The CPI was forecast to rise 2.6% last month, according to economists polled by financial data firm FactSet. The CPI, a basket of goods and services typically bought by consumers, tracks the change in those prices over time. 

"March's report comes after inflation rose 2.8% on an annual basis in February. 

"On a monthly basis, prices actually fell 0.1% in March, the first monthly drop in nearly five years."


Later in the article is a discussion of the prospect of inflation as higher tariffs raise prices.  

"Because tariffs are paid by U.S. importers like Walmart when they accept shipments of foreign goods, they typically pass off all or some of the tariff cost onto consumers through higher prices."

Why "all or some"?  If other suppliers, such as in the U.S. or other nations subject to lower tariffs, manage to come up with competitive prices, retailers may not be able to pass the suddenly dramatically higher prices of Chinese goods.  

Rgular readers will recall my pleasure when I replaced a broken PRC drill press vise with a far better made Taiwanese one for roughly twice the price.

If doubling the price of poorly made PRC drill press vises makes them price competitive with far better made Taiwanese products (and who knows, maybe American products) there may be little or no price pressure on consumers.   There might just be a pile of PRC drill press vises remaindered at a price that makes W-M and Harbor Freight rethink China as a source. 

Wednesday, April 9, 2025

Today's Bash Question

This should not be this hard. I want to do a while loop on the condition "$xstart  < $xend"

while [ "$xstart < $xend" ]

do

...

done

I know that to do a float compare, I need something like 

echo "$xstart > $xend" | bc -l 

returning a boolean.

Found it:

    while [ "$(bc <<< "$xstart < $xend")" == 1 ];

Kangaroo Market

DJIA up 6.5%.  NASDAQ up 7.5%.  S&P up 7.71%.  I suspect it was not equity markets that caused Trump to pause tariff war, but 10-year Treasury yields now up to 4.396%.  This was not the goal.

UPDATE: The rally survived noon.  NASDAQ gained 12%.  DJIA gained 7.8%.  S&P 500 gained 9.5%.  I hope reassuring the PANICans was not the primary push for the sudden delay in higher tariffs.