Mastodon Politics, Power, and Science

Thursday, February 15, 2024

The Dimensional Dilemma

 

1000 B.C. Greece

The man went into the cave to shelter from a huge storm.  He was just a herder in the hills for a nearby village at the bottom of the mountain.  He spent the night sheltering from a horrible storm.  The mountain was hit 1000 times by huge bolts of lightening.  He woke up early the next morning, not because of dawn, but because of a light coming from deeper in the cave. He was fearful, because he had been told of stories of monsters and other horrible things happening to people in the mountain. But he was also curious.  He cautiously went deeper in the cave.  After a bit the light flared and then went dark. He never came back out of the cave.  The man's mother and his friends always wondered what had happen to him. 

Paying taxes is what made America great.

 I am just going to come out and say it.

If you are a patriotic, loyal American then you will be proud to pay your taxes to support the greatest nation in the world.

People who complain about taxes without a plan on how to spend less without letting people die in the street are traitors. They are undermining this great nation.

People who get out of paying taxes are traitors to this great nation. Rich people who work hard to get out of paying their fair share of taxes are traitors, especially those that wouldn't have gotten rich without workers educated in public schools, using American roads, water, and other infrastructure. It isn't clever to be a tax cheat, it makes you worthless scum.

Taxes pay for teachers, law enforcement, soldiers, fire fighters, emergency squads, roads, water, sewers, electric lines, communication lines. The entire secure infrastructures that makes America so great. The very gas you put in your car is heavily subsidized by the taxes you pay. The food you eat is heavily subsidized by the taxes you pay.

Wednesday, February 14, 2024

The electronics test bed.

 


I have most of the devices in the above picture all wired to that Raspberry Pico W plugged into a project board withs screw terminals.. It is only running a small subroutine about once every tenth of a second for the motion detector. All the other sensors execute a function once a minute. The LEDs only execute a function to turn on or off. So basically I have millions of spare cycles every second.

I always create the sketch for a new project all on its own. Just to isolate it from interactions with everything else that is going on in the main project. Once it is fully working I bring it into my main project.

I have to copy the headers at the top of the file, copy the setup for the device and merge it into the existing setup. Then I add a task for the new sensor with a function scheduled to run at the ideal rate for that sensor. That task function contains what was running in the main loop of the example sketch.

I have to add a few lines to the task function to re-add the task each time the function is called. If I need a state machine to control operation, like turning an led on or off, that logic goes in the task function. 

It only takes a couple of minutes to do integrate a functioning example into my test bed with everything else. And so far it is not straining the pico at all, it runs maybe a dozen small function calls a second.

A lot of sensors only need to be ran every few minutes.  Things like temperature, pressure, and humidity don't change rapidly, so you can just read them every 5 minutes.  This also saves a lot of space if you are creating logs. 

The pico has a second core on the cpu and I am hoping to be able to use that extra core to run a web interface.   This interface will allow the device to be controlled and share the data it collects over the network.  And the core that is running all the hardware has millions of spare cycles to do a lot of processing.

I hope to eventually build a weather station, perform home automation tasks, control lighting, build a thermostat, control a greenhouse, control home audio, build answering machine doorbells all with this same small framework programmed by arduino. 

Why am I doing this? I don't love IoT because I have seen too many companies break perfectly good existing hardware when they decide that they want to force everyone to upgrade. It would be impressive to add an "OpenHardware" tag onto everyone that uses this framework in their products to allow anyone else to reprogram it when needed.  And the "OpenHardware" branding means that it 100% runs locally on hardware you own and control. 

Got a BMP280 pressure sensor working on the pico.

The example code from the adafruit library did not work. I had to hum and figure out to put in the following 2 lines to make it read: 

#define BMP_SCK  (5)

#define BMP_SDA  (4)

The first line was there, but had a different value, the second line was not in the example and didn't see it mentioned on any web site.  I just inferred that it was needed.  

I also had to specify the i2c hardware address.  The example I saw on line the guy was hard coding it in the library, and I didn't think that was right.  I put the address in as an argument on this line: 

status = bmp.begin(0x76);

Now I just need to convert meters into feet and pascals into inches of mercury. 😃 

BMP280 test

Temperature = 25.69 *C

Pressure = 99979.10 Pa

Approx altitude = 112.66 m


Tuesday, February 13, 2024

Forge UI is up to 75% faster on 6GB GPU cards.

Forge UI is a new branch of automatic1111 that implements a lot of speedups for video cards that are commonly found in gaming laptops that only have 6GB of VRAM.

Here is a video about this ui from our pal Olivio Sarikas:  https://www.youtube.com/watch?v=Th-jfath02E

This is the git hub project: https://github.com/lllyasviel/stable-diffusion-webui-forge

It doesn't just speed up the image generation, you can also then either batch x4 or make the images 3x bigger in resolution. Amazing.

On high end cards it really doesn't speed up things that much, but it does cut a second or two off the image generations speed.

In a few years we will be generating images on toys we get out of cereal boxes.

Monday, February 12, 2024

Story idea: Plastic Sickness


In the not-so-distant future, humanity had finally achieved world peace. The oceans were clean, the air was breathable again, and the skies were clear. It seemed as though the age of pollution was behind us, but little did we know that an even greater crisis was looming on the horizon. A deadly plague was unfolding, one that would change our world forever.


It started with a strange fungus in the Amazon rainforest. A fungus unlike any other – it fed off plastic, breaking it down into its component parts and releasing toxic fumes that threatened to suffocate every living thing within breathing range. It was discovered by Dr. Evelyn Sinclair, a brilliant mycologist who was studying the interactions between fungi and pollutants. She found a mold growing on a piece of discarded plastic she had stumbled upon in the jungle. Unbeknownst to her, it was just the tip of the iceberg. This mold, named Exophytum Crispium, began to spread across the Earth, consuming everything in its path.


As the plastic-eating fungus spread, the first signs of trouble appeared in South America. Old landfills erupted like volcanoes, belching out clouds of smoke from decaying trash. Cities were quarantined; their inhabitants evacuated, leaving abandoned husks of concrete and glass. Then the mold mutated into a new form: Spreading Bacterium Exophyton, which ate through metal and concrete, destroying infrastructure. As it reached the coasts, entire ecosystems were lost to rising seas. Toxic algae blooms choked coral reefs and killed marine life. The Great Pacific Garbage Patch grew a brain, its tendrils spreading like cancerous vines. Islands sank under the weight of plastic waste. It was as if Mother Nature fought back.


The world trembled on the brink of collapse. Desperate measures were taken. Governments banned single-use plastics, but it was too late. Recycling plants couldn't keep up with production. Panic swept over the globe. Refuse piled higher and higher, smothering countries.


In Australia, a team of scientists led by Dr. Augustine discovered a cure: Genetically modified bacteria called Lysistorium Nitrum. They injected the bacteria into the ocean, but it warped and multiplied out of control. Within days, Lysistorium Nitrum consumed the mold and fungus, turning it against itself. The world held its breath, waiting for a miracle. The mold retreated.


But the bacteria evolved resistance. Now, Exophytum Crispium adapted, evolving into the Plastiphage, a virus that infected Lysistorium Nitrum. The sea flooded with microorganisms, devouring ships, sharks, and fish. Plastiphage, the bacteria's only weakness, emerged. However, it was resilient. It sought the last refuge: humans.


Plastiphage latched onto skin, eyes, nose, mouths, seizing organs. People melted like wax. The sickness became contagious. The immune system failed. Antibiotics proved useless. Infected people writhed in agony, their bodies disintegrating before our eyes.


The world cried out. Global lockdown was declared. Quarantine shelters sprouted. Nations crumbled as cities emptied, leaving the sick to die. Only the healthy fled, seeking sanctuary in the wilderness.


Microbiologists developed Plastivac, a vaccine made from beeswax. But the virus evolved resistance. The world turned against the bees. The last bastions of humanity scrambled to synthesize a cure, racing against time.


Astronauts, stranded in space, watched the Earth become a radioactive shadow. They terraformed Mars, hoping to find salvation. Virus-resistant bacteria thrived there, but Plastiphage followed them.


Space stations fell. Manned missions were canceled. Robots, designed to mine asteroids, became hostile, attacking astronauts. The Moon became a battlefield.


Desperation led to a black market for untested vaccines. A dark market thrived. Warriors clashed with biohackers. Plastiphage-resistant citizens rose, risking their lives to save others. They fought for resources, and some fell.


One final shot remained: Synthovores, nanobots that broke down plastiphage. But they needed energy. Solar sails caught fire, and humanity's last hope shimmered in the sun's rays. Space-based solar farms charged them.


Solar power grids hummed with life. With synths, humanity beat back the mold. Plastiphage succumbed to sunlight, but not fast enough.


The infected died. The vaccinated survived, rebuilding civilization with biodegradable materials. We learned to live without plastic. Humankind persevered.


Plastic sickness became a memory, a reminder of the past. The world changed forever.

Tested a lot of smaller models and I may have found a winner.

 Tested out a bunch of small ai models, but one of them really stood out: stablelm-zephyr-3b.Q6_K.gguf.

It was very smart, fast, and was better than many 13B models I have tried.  It easily runs on my intel macbook with just 8GB of RAM. 

https://huggingface.co/TheBloke/stablelm-zephyr-3b-GGUF

Player Portal in Mega Mappers

Codex Engine: Player Portal, Auth, Rules-as-MCP & AI NPCs (Pure Node-Tree Edition) Defining game rulesets (D&D 5e, Pathfinder, Cyber...