Conservative. Idaho. Software engineer. Historian. Trying to prevent Idiocracy from becoming a documentary.
Email complaints/requests about copyright infringement to clayton @ claytoncramer.com. Reminder: the last copyright troll that bothered me went bankrupt.
"And we know that all things work together for good to them that love God, to them who are the called according to his purpose." -- Rom. 8:28Friday, April 11, 2025
A Lot Can Change Between 9:00 and 9:01
At Least He Was Not Traumatized
Kangaroo Market Continues
Panic in the Ivory Tower
Idaho S1198 is a DEI ban bill primarily aimed an discrimination in training, employment, promotion, and classroom indoctrination. It has a list of naughty words and phrases which will be familiar to you:
Dying With COVID Not of COVID
Thursday, April 10, 2025
HD 12K Channel on YouTube
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.
DOGE Surveys Unemployment Insurance Claims
Some Carry-On Mistakes Almost Make Sense
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
"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
Tuesday, April 8, 2025
70 Nations and Counting
Monday, April 7, 2025
Faster Than the CT5
Bash Script for Machining Hexagons
I rewrote this to be clearer.
#!/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
halfheight=`echo "$height/2" | bc -l`
x1=`echo "$xstart+$millradius" | bc -l`
y1=`echo "$ystart+$millradius" |bc -l`
sqrt3div2=`echo "($height * .866)/2" | bc -l`
x2=$x1
y2=`echo "$ystart+$height-$millradius" | bc -l`
x3=`echo "$x2+(.5*$height)-$millradius" | bc -l`
y3=`echo "$y2+$sqrt3div2-$millradius" | bc -l`
x4=`echo "$x2+$height-$millradius" | bc -l`
y4=`echo "$y2-$millradius" | bc -l`
x5=$x4
y5=$y1
x6=$x3
y6=`echo "$y1-$sqrt3div2+$millradius" | bc -l`
cat prolog.nc >hexagon.nc
echo "g1 z1 f25" >>hexagon.nc
echo "g1 z.1 f25" >>hexagon.nc
for z in $(seq $zstart $zstep $zend)
do
echo "(point 1)" >>hexagon.nc
echo "g1 x$x1 y$y1 f$xyfeed" >>hexagon.nc
echo "g1 z$z f$zfeed" >>hexagon.nc
echo "(point 2)" >>hexagon.nc
echo "g1 x$x2 y$y2 f$xyfeed" >>hexagon.nc
echo "(point 3)" >>hexagon.nc
echo "g1 x$x3 y$y3 f$xyfeed" >>hexagon.nc
echo "(point 4)" >>hexagon.nc
echo "g1 x$x4 y$y4 f$xyfeed" >>hexagon.nc
echo "(point 5)" >>hexagon.nc
echo "g1 x$x5 y$y5 f$xyfeed" >>hexagon.nc
echo "(point 6)" >>hexagon.nc
echo "g1 x$x6 y$y6 f$xyfeed" >>hexagon.nc
done
echo "g1 z1 f25" >>hexagon.nc
cat epilog.nc >>hexagon.nc
It only cuts the outline right now. I need a hole for hex nuts to slide into, not an outline. The next step is to write a wrapper that cuts the outline, then a series of progressively smaller hexagons inside it. You may recall the Larry Niven story "Converging Series" with Satan continuously forced to reappear inside a pentagram drawn on his abdomen. That is the idea, except I am not trying to avoid loss of my soul.
I Keep Saying That I Will Stop Talking About the CT5's Features. .
Brutal Tariff Policies Cause Change
Sunday, April 6, 2025
How Did I Miss This?
"The Consumer Price Index was up 2.8 percent from a year earlier, after rising another 0.2 percent on a monthly basis. That was a step down from January’s surprisingly large 0.5 percent increase and came in below economists’ expectation."
Tariffs on Penguins
Making Slow Motion Control Brackets From Carbon Fiber Composite
It Was Not All Biden's Fault
Saturday, April 5, 2025
This Was So Absurd That I Looked Up the Law
(d) However, traditional enforcement methods have had a well-documented disparate impact on communities of color, and implicit or explicit racial bias in police traffic stops puts drivers of color at risk.
Yes, because they cannot say, "Blacks and Hispanics should have lesser fines than white people," they are using income as a proxy for race. If 1948 Alabama had assessed higher fines on sharecroppers for late library book returns, there was no way this would have been tolerated by the federal courts.
There are days that I think occupation and military government is the only solution to the ferocious racism of California government.
If speeding is a safety hazard, California is going to increase traffic accident death rates for blacks and Hispanics, as well as the people who are their neighbors-- who are disproportionately black and Hispanic.
This is astonishingly close to the Alabama Constitution (1901) provision that disqualified voters based on convictions for "moral turpitude" which disproportionately disqualified blacks. One difference: the Alabama Constitutional Convention had the good sense not to say why. It did not survive Hunter v. Underwood (1985).
Interesting Speculation on Trump's Tariff Strategy
More Backup Drives
Because Windows 11 cannot automatically backup from any drive but C, I have two 1TB USB drivers that backup every night at 2:00 using XCOPY commands. Because I am considering changing my 1 TB SSD from drive C to drive D, and the 2 TB SSD from drive D to drive C, I wanted a way to do a full system backup. I bought a 4 TB external hard drive, which does a system backup with surprising speed.
Is DOJ's Review of Second Amendment Impact on Laws Resl?
Criminal Prosecution Referrals by DOGE
They are finding SS numbers used by non-citizens to get benefits and to vote. They are making criminal referrals.
TikTok Door Kick Challenge
I saw a notice from Meridian PD but this seems to be widespread.
Kicking in a door will get you killed. That the kids have no violent intent does not matter. Most states presume that forced entry creates a presumption that the intruder intends great bodily harm. This justifies use of deadly force. If you know a teen who watches TikTok, inform them of this.