An image of a smarphone sitting on a lightly-colored wooden table. It has a tan case surrounding it on the top 2/3, and a copper case holding a BlackBerry Q10 keyboard jutting out over the bottom of the phone.

FairBerry Brings The PKB Back To Your Smartphone

Missing the feel of physical keys on your phone, but not ready to give up your fancy new touchscreen phone? [Dakkaron] has attached a BlackBerry keyboard to a slightly more recent device.

Designed for the FairPhone 4, [Dakkaron]’s hack should be transferable to other smartphones as it connects to the phone over USB without any of that tedious mucking about with Bluetooth. There’s even a handy OpenSCAD-based generator to help you along in the customization process.

[Dakkaron] started with an Arduino Pro Micro-based implementation, but the most recent iteration uses a custom board that can be obtained partially-populated. Unfortunately, the Hirose connector for the keyboard isn’t available off-the-shelf, so you’ll have to solder that yourself if you’re planning to do this mod. Sounds like a perfect opportunity to practice your surface mount soldering skills!

If the Q10 keyboard looks familiar, it’s probably because it’s one of the most popular keyboards for small projects around here. Check out Regrowing a BlackBerry from the Keyboard Out or a LoRa Messenger with one. We’ve even seen them in a conference badge!

Ask Hackaday: What About Imperfect Features?

Throughout the last few years’ time, I’ve been seeing sparks of an eternal discussion here and there. It’s a nuanced one, but if I could summarize, it’s about different feature development strategies we can follow to design things, especially if they’re aimed at a larger market. Specifically – when adding a feature, how complete and perfect should it be?

A while back, I read a Mastodon thread about VLC not implementing backwards per-frame skipping. At the surface level, it’s about an indignant user asking – what’s the deal with VLC not having a “go back a frame” button? A ton of video players have this feature implemented. There’s a forum thread linked, and, reading it could leave you with a good few conflicting emotions. Here’s a recap.

In what appears to be one of multiple threads asking about a ‘previous frame’ button in VLC, there’s an 82-post discussion involving multiple different VLC developers. The users’ argument is that it appears to be clearly technically possible to add a ‘previous frame’ button in practice, and the developers’ argument is that it’s technologically complex to implement in some cases – for certain formats, even impossible to implement! Let’s go into the developers’ stated reasoning in more details, then – here’s what you can find in the thread, to the best of my ability.

Continue reading “Ask Hackaday: What About Imperfect Features?”

Random Number Generation By Brain

If you want to start an argument in certain circles, claim to have a random number generation algorithm. Turns out that producing real random numbers is hard, which is why people often turn to strange methods and still, sometimes, don’t get it right. [Hillel Wayne] wanted to get a “good enough” method that could be done without a computer and found the answer in an old Usenet post from random number guru [George Marsaglia].

The algorithm is simple. Pick a two-digit number — ahem — at random. OK, so you still have to pick a starting number. To get the next number, take the top digit, add six, and then multiply by the bottom digit. So in C:  n1=(n/10+6)*(n%10). Then use the last digit as your random number from 0 to 9. Why does it work? To answer that, the post shows some Raku code to investigate the behavior.

In particular, where does the magic number 6 come into play? The computer program notes that not any number works well there. For example, if you used 4 instead of 6 and then started with 13, all your random digits would be 3. Not really all that random! However, 6 is just a handy number. If you don’t mind a little extra math, there are better choices, like 50.

If you think humans are good at picking random numbers, ask someone to pick a number between 1 and 4 and press them to do it quickly. Nearly always (nearly) they will pick 2. However, don’t be surprised when some people pick 141. Not everyone does well under pressure.

If you want super random numbers, try a lava lamp. Or grab some 555s and a few Nixie tubes.

Human-Written Or Machine-Generated: Finding Intelligence In Language Models

What is the essential element which separates a text written by a human being from a text which has been generated by an algorithm, when said algorithm uses a massive database of human-written texts as its input? This would seem to be the fundamental struggle which society currently deals with, as the prospect of a future looms in which students can have essays auto-generated from large language models (LLMs) and authors can churn out books by the dozen without doing more than asking said algorithm to write it for them, using nothing more than a query containing the desired contents as the human inputs.

Due to the immense amount of human-generated text in such an LLM, in its output there’s a definite overlap between machine-generated text and the average prose by a human author. Statistical methods of detecting the former are also increasingly hamstrung by the human developers and other human workers behind these text-generating algorithms, creating just enough human-like randomness in the algorithm’s predictive vocabulary to convince the casual reader that it was written by a fellow human.

Perhaps the best way to detect machine-generated text may just be found in that one quality that these algorithms are often advertised with, yet which they in reality are completely devoid of: intelligence.

Continue reading “Human-Written Or Machine-Generated: Finding Intelligence In Language Models”

This Unique Flip-Flop Uses Chemistry And Lasers

One of the first logic circuits most of us learn about is the humble flip-flop. They’re easy enough to build with just a couple of NOR or NAND gates, and even building one up from discrete components isn’t too much of a chore. But building a flip-flop from chemicals and lasers is another thing entirely.

That’s the path [Markus Bindhammer] took for his photochromic molecular switch. We suspect this is less of an attempt at a practical optical logic component and more of a demonstration project, but either way, it’s pretty cool. Photochromism is the property by which molecules reversibly rearrange themselves and change color upon exposure to light, the most common example being glass that darkens automatically in the sun. This principle can be used to create an optical flip-flop, which [Markus] refers to as an “RS” type but we’re pretty sure he means “SR.”

The electronics for this are pretty simple, with two laser modules and their drivers, a power supply, and an Arduino to run everything. The optics are straightforward as well — a beam splitter that directs the beams from each laser onto the target, which is a glass cuvette filled with a clear epoxy resin mixed with a photochromic chemical. [Markus] chose spiropyran as the pigment, which when bathed in UV light undergoes an intramolecular carbon-oxygen bond breakage that turns it into the dark blue pigment merocyanine. Hitting the spot with a red laser or heating the cuvette causes the C-O bond to reform, fading the blue spot.

The video below shows the intensely blue dot spot developing under UV light and rapidly fading thanks to just the ambient temperature. To make the effect last longer, [Markus] cools the target with a spritz from a CO2 cartridge. We imagine other photochromic chemicals could also be employed here, as could some kind of photometric sensor to read the current state of the flip-flop. Even as it is, though, this is an interesting way to put chemistry and optics to work.

Continue reading “This Unique Flip-Flop Uses Chemistry And Lasers”

Massive Water Rocket Is Impressive But Accessible

Water rockets are one of those projects that never get old, and bumping the size just adds to the challenge. In the video after the break, [ARRO Rockets] takes us through the launch of Gamma IV, his most ambitious water rocket project yet. Crafted with spliced soda bottles and standard household materials, this rocket is a testament to what one can achieve with simple components and a bit of ingenuity.

The rocket’s release mechanism demonstrates this — employing nothing more than a quick connect hose connection and a basic pulley system. The parachute recovery system is also a nice combo of modern electronics and simplicity. It uses a microcontroller with accelerometer to detect the apogee, and release the parachute to be ejected by another piece of soda bottle acting as a spring. It also records or the flight data on an SD card.

[ARRO Rockets] had some trouble with friction on the launch rail, which was partially solved with liberal application of silicone spray. The root cause might be the rail button flexing on launch, or just the change of the pressurized bottles.

We are especially impressed by how accessible this project is, a reminder that high-flying achievements don’t necessarily require deep pockets or hard-to-source parts. The entire setup is not only cost-effective but also opens up numerous possibilities for further experimentation and refinement, like adding a second stage or a precision release mechanism.

Continue reading “Massive Water Rocket Is Impressive But Accessible”

Crusty: The Story Of The Mac SE That Could

Retrocomputing often involves careful restorations, rare components, and white gloves.  This story involves none of those. This is the story of two people who sought to answer one of the greatest questions in the universe: What does it take to kill a Mac SE?

Crusty’s mainboard as found

The star of the show here is Crusty, a Mac SE that was found on the loading dock of a scrap company. It sat out in the weather for at least 6 months, complete with the original leaking lithium battery.

Enter [RadRacer203], who is friends with the owner of this particular scrap company. [RadRacer203] and picked up Crusty, along with a few other classic Macs. He brought these machines to VCF East 2021, where our other hero comes in. [CJ] is something of a magician with CRTs and analog electronics. Trained under [Sark] himself, [CJ] has mastered the 5-finger exploding capacitor technique.

The battery had eaten through the mainboard and even into the chassis. But after a thorough cleaning, the damn thing booted up. Crusty was born.

This Mac was a survivor. Much like Top Gear and their plucky Toyota Hilux, [RadRacer203] and [CJ] devised a plan to put Crusty to the test.

Click through the break for more!

Continue reading “Crusty: The Story Of The Mac SE That Could”