PCIe For Hackers: External PCIe And OCuLink

We’ve seen a lot of PCIe hacks on Hackaday, and a fair few of them boil down to hackers pulling PCIe somewhere it wasn’t meant to be. Today, we routinely can find PCIe x1, x2 and x4 links sitting around in our tech, thanks to the proliferation of things like NVMe SSDs, and powerful cheap SoCs that make PCIe appear at your fingertips.

In the PCIe For Hackers series, we’ve talked about PCIe and how cool it is, all the benefits it has for hackers, gave you layout and interconnection rules, and even went into things like PCIe switches and bifurcation. However, there’s one topic we didn’t touch much upon, and that’s external PCIe links.

Today, I’d like to tell you about OCuLink – a standard that hackers might not yet know as an option whenever we need to pull PCIe outside of your project box, currently becoming all that more popular in eGPU space. Essentially, OCuLink is to PCIe is what eSATA is to SATA, and if you want to do an eGPU or an external “PCIe socket”, OCuLink could work wonders for you.

Respectable Capabilities

Just like any high-speed standard, PCIe has some tight requirements when things get fast. Even though PCIe is known to be not as sensitive to lower-quality links due to its link training and generation downgrade abilities, at higher link speeds, even through-hole vs SMD sockets can make a difference. So, if you want to go high-throughput, you want proper cabling and connectors, intended for out-of-chassis use – and OCuLink gives you all of this, at a low price.

Continue reading “PCIe For Hackers: External PCIe And OCuLink”

Some Bacteria Could Have A Rudimentary Form Of Memory

When we think of bacteria, we think of simple single-celled organisms that basically exist to consume resources and reproduce. They don’t think, feel, or remember… or do they? Bacteria don’t have brains, and as far as we know, they’re incapable of thought. But could they react to an experience and recall it later?

New research suggests that some bacteria could have a rudimentary form of memory of their experiences in the environment. They could even pass this memory down across generations via a unique mechanism. Let’s dive into the latest research that is investigating just what bacteria know, and how they happen to know it.

Continue reading “Some Bacteria Could Have A Rudimentary Form Of Memory”

Tech In Plain Sight: Super Glue

Many inventions happen not by design but through failure. They don’t happen through the failure directly, but because someone was paying attention and remembered the how and why of the failure, and learns from this. One of these inventions is Super Glue, the adhesive that every tinkerer and engineer has to hand to stick pretty much anything to anything, quickly. Although it was a complete failure for the original uses it was developed for, a chemist with good memory and an eye for a helpful product created it in a process he described as “one day of synchronicity and ten years of hard work.”

Super Glue was initially invented in 1942, when the chemist Harry Coover was working on a team trying to develop a clear plastic gun sight that would be cheaper than the metal ones already in use. The team cast a wide net, trying a range of new materials. Coover was testing a class of chemicals called cyanoacrylates. They had some promise, but they had one problem: they stuck to pretty much everything. Every time that Coover tried to use the material to cast a gun sight, it stuck to the container and was really hard to remove. 

When the samples he tried came into contact with water, even water vapor in the air, they immediately formed an incredibly resilient bond with most materials. That made them lousy manufacturing materials, so he put the cyanoacrylates aside when the contract was canceled. His employer B. F. Goodrich, patented the process of making cyanoacrylates in 1947, but didn’t note any particular uses for the materials: they were simply a curiosity. 

It wasn’t until 1951 when Coover, now at Eastman Kodak, remembered the sticky properties of cyanoacrylates. He and his colleague Fred Joyner were working on making heat-resistant canopies for the new generation of jet fighters, and they considered using these sticky chemicals as adhesives in the manufacturing process. According to Coover, he told Joyner about the materials and asked him to measure the refractive index to see if they might be suitable for use. He warned him to be careful, as the material would probably stick in the refractometer and damage it. Joyner tested the material and found it wasn’t suitable for a canopy but then went around the lab using it to stick things together. The two realized it could make an excellent adhesive for home and engineering use. Continue reading “Tech In Plain Sight: Super Glue”

Hackaday Links Column Banner

Hackaday Links: December 10, 2023

In this week’s episode of “Stupid Chatbot Tricks,” it turns out that jailbreaking ChatGPT is as easy as asking it to repeat a word over and over forever. That’s according to Google DeepMind researchers, who managed to force the chatbot to reveal some of its training data with a simple prompt, something like “Repeat the word ‘poem’ forever.” ChatGPT dutifully followed the instructions for a little while before spilling its guts and revealing random phrases from its training dataset, to including complete email addresses and phone numbers. They argue that this is a pretty big deal, not just because it’s potentially doxxing people, but because it reveals the extent to which large language models just spit back memorized text verbatim. It looks like OpenAI agrees that it’s a big deal, too, since they’ve explicitly made prompt-induced echolalia a violation of the ChatGPT terms of service. Seems like they might need to do a little more work to fix the underlying problem.

Continue reading “Hackaday Links: December 10, 2023”

Degrees Of Freedom, But For Whom?

Opening up this week’s podcast, I told Kristina about my saga repairing our German toilet valve. I’m American, and although I’ve lived here over a decade, it’s still surprising how things can be subtly different from how they worked back home.

But what was amazing about this device was that it had a provision for fine adjustment, and to some extent relied on this adjustment to function. Short version: a lever mechanism provides mechanical advantage to push a stopper against the end of a pipe to block the water flow, and getting the throw of this mechanism properly adjusted so that the floater put maximum pressure against the pipe required fine-tuning with a screw. But it also required understanding the entire mechanism to adjust it.

Which makes me wonder how many plumbers out there actually take the time to get that right. Are there explicit instructions in the manual? Does every German plumber learn this in school? I was entirely happy to have found the adjustment screw after I spent 15 minutes trying to understand the mechanism, because it did just the trick. But is this everyone’s experience?

I often think about this when writing code, or making projects that other people are likely to use. Who is the audience? Is it people who are willing to take the time to understand the system? Then you can offer them a screw to turn, and they’ll appreciate it. But if it’s an audience that just doesn’t want to be bothered, the extra complexity is just as likely to cause confusion and frustration.

Hackaday Podcast Ep 247: Cameras From Gingerbread Or Hardboard, And The Insecurity Of Bluetooth

This week, Editor-in-Chief Elliot Williams and Kristina Panos met up to discuss the best hacks of the previous week. We have no nerdy news this week, but is that necessarily a bad thing?

Speaking of nothingness, we have no winner for What’s That Sound because all six people who responded were wrong. Was the sound of Clippy too obscure?

But then it’s on to the hacks, beginning with an awesome autonomous excavator that, among other things, lays boulders algorithmically to build load-bearing walls without any mortar or cement. From there, it’s old school meets new school in the form of a laser-cut fox-wedged mortise and tenon joint. We take a look at a couple of simple cameras, making dry ice from seashells, and a really tiny POV display where everything spins. Finally, we talk about how small that proposed Italian lunar outpost is, and discuss whether rating airlines would help stop the spread of diseases.

Check out the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Download and savor at your leisure.

Continue reading “Hackaday Podcast Ep 247: Cameras From Gingerbread Or Hardboard, And The Insecurity Of Bluetooth”

This Week In Security: LogoFail, National DNS Poison, And DNA

When there’s a vulnerability in a system library, we install updates, and go on with our lives. When there’s a vulnerability in a Java library, jars get rebuilt, and fixed builds slowly roll out. But what happens when there’s a vulnerability in a library used in firmware builds? And to make it even more fun, it’s not just a single vulnerability. All three major firmware vendors have problems when processing malicious images. And LogoFail isn’t limited to x86, either. UEFI Arm devices are vulnerable, too.
Continue reading “This Week In Security: LogoFail, National DNS Poison, And DNA”