Stable Diffusion And Why It Matters

You might not have heard about Stable Diffusion. As of writing this article, it’s less than a few weeks old. Perhaps you’ve heard about it and some of the hubbub around it. It is an AI model that can generate images based on a text prompt or an input image. Why is it important, how do you use it, and why should you care?

This year we have seen several image generation AIs such as Dall-e 2, Imagen, and even Craiyon. Nvidia’s Canvas AI allows someone to create a crude image with various colors representing different elements, such as mountains or water. Canvas can transform it into a beautiful landscape. What makes Stable Diffusion special? For starters, it is open source under the Creative ML OpenRAIL-M license, which is relatively permissive. Additionally, you can run Stable Diffusion (SD) on your computer rather than via the cloud, accessed by a website or API. They recommend a 3xxx series NVIDIA GPU with at least 6GB of RAM to get decent results. But due to its open-source nature, patches and tweaks enable it to be CPU only, AMD powered, or even Mac friendly.

This touches on the more important thing about SD. The community and energy around it. There are dozens of repos with different features, web UIs, and optimizations. People are training new models or fine-tuning models to generate different styles of content better. There are plugins to Photoshop and Krita. Other models are incorporated into the flow, such as image upscaling or face correction. The speed at which this has come into existence is dizzying. Right now, it’s a bit of the wild west. Continue reading “Stable Diffusion And Why It Matters”

Iron Nitrides: Powerful Magnets Without The Rare Earth Elements

Since their relatively recent appearance on the commercial scene, rare-earth magnets have made quite a splash in the public imagination. The amount of magnetic energy packed into these tiny, shiny objects has led to technological leaps that weren’t possible before they came along, like the vibration motors in cell phones, or the tiny speakers in earbuds and hearing aids. And that’s not to mention the motors in electric vehicles and the generators in wind turbines, along with countless medical, military, and scientific uses.

These advances come at a cost, though, as the rare earth elements needed to make them are getting harder to come by. It’s not that rare earth elements like neodymium are all that rare geologically; rather, deposits are unevenly distributed, making it easy for the metals to become pawns in a neverending geopolitical chess game. What’s more, extracting them from their ores is a tricky business in an era of increased sensitivity to environmental considerations.

Luckily, there’s more than one way to make a magnet, and it may soon be possible to build permanent magnets as strong as neodymium magnets, but without any rare earth metals. In fact, the only thing needed to make them is iron and nitrogen, plus an understanding of crystal structure and some engineering ingenuity.

Continue reading “Iron Nitrides: Powerful Magnets Without The Rare Earth Elements”

We Can’t Switch To Electric Cars Until We Get More Copper

Reducing emissions from human activity requires a great deal of effort in many different sectors. When it comes to land transport, the idea is generally to eliminate vehicles powered by combustion engines and replace them with electric vehicles instead. At a glance, the job is simple enough. We know how to build EVs, and the technology is getting to the point where they’re capable of replacing traditional vehicles in many applications.

Of course, the reality is not so simple. To understand the problem of converting transportation to electric drive en masse, you have to take a look at the big numbers. Focus in on the metrics of copper, and you’ll find the story is a concerning one. 

Continue reading “We Can’t Switch To Electric Cars Until We Get More Copper”

Militaries Are Rushing To Get Anti-Drone Lasers Operational

Flying drones have been a part of modern warfare for a good few decades now. Initially, most of these drones were built by traditional military contractors and were primarily used by the world’s best-funded militaries. However, in recent conflicts in Syria, Ukraine, and elsewhere have changed all that. Small commercial drones and compact militarized models have become key tools on the battlefield, for offense, defence, and reconnaissance.

With so many of these tiny craft buzzing around, militaries are scrambling for practical ways to shoot them down. Lasers might be just the ticket to do exactly that. Continue reading “Militaries Are Rushing To Get Anti-Drone Lasers Operational”

Visual Mandela Effect: You Don’t Know Iconic Images As Well As You Think

Pop quiz, hotshot: does the guy on the Monopoly box (standard edition) wear a monocle? Next question: does the Fruit of the Loom logo involve a cornucopia? And finally, does Pikachu have a black-tipped tail? If you answered yes to any of these, I am sad to say that you are wrong, wrong, wrong.

So, what’s the deal? These are all examples of the visual version of the Mandela effect (VME), which is named after the common misconception/mass false memory that anti-Apartheid activist Nelson Mandela died decades ago in prison, despite leading South Africa in the latter half of the ’90s and living until 2013. Many people even claim having seen TV coverage of his funeral, or say they learned about his death in school during Black History Month. The whole thing has VICE wondering whether CERN is causing these mass delusions somehow with the LHC.

The more attention VME gets, the more important it seems to be to study it and try to come to some conclusion. To that end, University of Chicago researchers Deepasri Prasad and Wilma A. Bainbridge submitted an interesting and quite readable study earlier this year purporting that the VME is ‘evidence for shared and specific false memories across people’. In the study, they conducted four experiments using crowd-sourced task completion services.

Continue reading “Visual Mandela Effect: You Don’t Know Iconic Images As Well As You Think”

I3C — No Typo — Wants To Be Your Serial Bus

Remember old hard drives with their giant ribbon cables? They went serial and now the power cables are way thicker than the data cables. We’ve seen the same thing in embedded devices. Talking between chips these days tends to use I2C or SPI or some variation of these to send and receive data over a handful of pins. But now there is I3C, a relatively new industry standard that is getting a bit of traction.

I2C and SPI are mature but they do have problems. I2C can be relatively slow and SPI usually requires extra pins for each device. Besides that, there is poor support for adding and removing devices dynamically or discovering devices automatically.

I3C, created by the MIPI Alliance, aims to fix these problems. It does use the usual two wires, SCL for the clock and SDA for data.  One device acts as a controller. Other devices can be targets or secondary controllers. It is also backward compatible with I2C target devices. Depending on how you implement it, speeds can be quite fast with a raw speed of 12.5 Mbps and using line coding techniques can go to around 33 Mbps.

Continue reading “I3C — No Typo — Wants To Be Your Serial Bus”

How Resilient Is The Natural Gas Grid?

A few years ago, I managed to get myself on a mailing list from a fellow who fancied himself an expert on energy. Actually, it seemed that no area was beyond his expertise, and the fact that EVERY EMAIL FROM HIM CAME WITH A SUBJECT LINE IN CAPS WITH A LOT OF EXCLAMATION POINTS!!!! really sealed the deal on his bona fides. One of the facts he liked to tout was that natural gas was the perfect fuel. Not only is it clean-burning and relatively cheap, it’s also delivered directly to consumers using a completely self-powered grid. Even under “zombie apocalypse” conditions, he claimed that natural gas would continue to flow.

At the time, it seemed a bit overstated, but I figured that there was at least a nugget of truth to it — enough so that I converted from an electric range and water heater to gas-powered appliances a couple of years ago, and added gas fireplaces for supplemental heat. I just sort of took it for granted that the gas would flow, at least until the recent kerfuffle over the Nordstream pipeline. That’s when I got a look at pictures of the immense turbine compressors needed to run that pipeline, the size and complexity of which seem to put the lie to claims about the self-powered nature of natural gas grids.

Surely a system dependent on such equipment could not be entirely self-powered, right? This question and others swirled doubt in my mind, and so I did what I always do in these cases: I decided to write an article so I could look into the details. Here’s what I found out about how natural gas distribution works, at least in North America.

Continue reading “How Resilient Is The Natural Gas Grid?”