Mastodon Politics, Power, and Science

Thursday, February 15, 2024

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

Tuesday, January 30, 2024

Current state of America's electrical transmission infrastructure

 The current state of America's electrical transmission infrastructure is a pressing issue that must be addressed if we are to transition towards more sustainable forms of transportation and promote widespread adoption of electric vehicles. As the demand for cleaner energy sources grows, it's essential that we invest in modernizing our power grid to accommodate new technologies like solar, wind, geothermal, and hydroelectric power – all crucial components in creating a greener future for generations to come.

One significant challenge facing our existing system is its insufficient capacity to handle increased power demands from electric car charging stations. This can lead to potential blackouts or overloading concerns, especially during peak usage times when multiple drivers attempt to charge their vehicles simultaneously. To address this problem, we must upgrade power lines and substations along the entire route, potentially adding new transmission towers or equipment as needed to ensure efficient transfer of electricity across vast distances.


Another critical issue lies in the outdated technology within our electrical grid, which makes it difficult to integrate renewable energy sources and smart metering systems that could improve efficiency and reliability. By replacing old components with advanced automation tools, data analytics, and other cutting-edge technologies, we can create a smarter grid capable of optimizing power distribution and reducing strain on the system during peak usage times.


In addition to these improvements, investing in energy storage options such as batteries or pumped hydroelectric facilities will help balance supply and demand throughout the day by storing excess solar power when it's abundant and releasing that energy later when demand is high. This approach reduces strain on the grid during peak hours, ensuring a consistent flow of electricity even after sunset.


Finally, fostering collaboration among utility companies, government agencies, and policymakers is essential to streamline regulatory processes and promote nationwide progress towards cleaner, more sustainable power sources. A unified set of rules and standards across states would encourage innovation and development of microgrids – smaller-scale power systems that can operate independently or connect to larger grids, providing increased flexibility and resilience for communities. These localized networks often rely on renewable energy sources and energy storage options, further reducing stress on long-distance transmission lines and minimizing energy loss during distribution.


In conclusion, upgrading America's electrical transmission infrastructure is a crucial step towards supporting electric vehicles and promoting widespread adoption of green initiatives. By addressing each challenge through targeted investments and policy changes, we can create a stronger, more efficient power grid capable of harnessing the full potential of renewable energy sources and paving the way for a brighter, more sustainable future.

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...