Vista Normal

Hay nuevos artículos disponibles. Pincha para refrescar la página.
AnteayerSalida Principal

Llama.ttf is AI, in a Font

27 Junio 2024 at 02:00

It’s a great joke, and like all great jokes it makes you think. [Søren Fuglede Jørgensen] managed to cram a 15 M parameter large language model into a completely valid TrueType font: llama.ttf. Being an LLM-in-a-font means that it’ll do its magic across applications – in your photo editor as well as in your text editor.

What magic, we hear you ask? Say you have some text, written in some non-AI-enabled font. Highlight that, and swap over to llama.ttf. The first thing it does is to change all “o” characters to “ø”s, just like [Søren]’s parents did with his name. But the real magic comes when you type a length of exclamation points. In any normal font, they’re just exclamation points, but llama.ttf replaces them with the output of the TinyStories LLM, run locally in the font. Switching back to another font reveals them to be exclamation points after all. Bønkers!

This is all made possible by the HarfBuzz font extensions library. In the name of making custom ligatures and other text shaping possible, HarfBuzz allows fonts to contain Web Assembly code and runs it in a virtual machine at rendering time. This gives font designers the flexibility to render various Unicode combinations as unique glyphs, which is useful for languages like Persian. But it can just as well turn all “o”s into “ø”s or run all exclamation points through an LLM.

Something screams mischief about running arbitrary WASM while you type, but we remind you that since PostScript, font rendering engines have been able to run code in order to help with the formatting problem. This ability was inherited by PDF, and has kept malicious PDFs in the top-10 infiltration vectors for the last fifteen years. [Citation needed.] So if you can model a CPU in PDF, why not an LLM in TTF? Or a Pokemon clone in an OpenType font?

We don’t think [Søren] was making a security point here, we think he was just having fun. You can see how much fun in his video demo embedded below.

Educational Breadboard Synth Module

16 Junio 2024 at 02:00

Synth designers [Erica Synths] have devised a very cool, approachable way to get started with DIY synth hacking. Designed around a breadboard, the EDU DIY LABOR is a synth module with everything you need to get started. The Basic version comes with potentiometers, switches, and jack sockets, and is aimed more at those who likely already have a decent supply of parts on hand for experimentation. The Full kit comes with all that, plus a supply of resistors, capacitors, ICs and transistors so you can get up to speed, even as a beginner.

The device is supplied as a semi-DIY kit, with some soldering and assembly required. The kit was designed in collaboration with Dr. Shalom D. Ruben, a teaching professor of engineering at the University of Colorado. So it should be approachable for those with some soldering experience under their belt. Labor includes a multi-voltage power supply which supplies all Eurorack voltages, an oscillator section for both audible ranges and LFO, a full envelope control section, an output amplifier and more! Once assembled you can quickly start making bloops, beeps, and bzzts. You can easily design filters, oscillators, amplifiers, sequencers, and whatever else you can dream up!

However, the kit is designed to be more than just a synth playground – the idea was also to create an environment where you could learn the basics of electronics at the same time, in an approachable, fun way. This is reflected in the excellent user manual, which goes beyond just assembling the device and gives some example circuits, complete with wave diagrams and detailed working explanations. Great for beginners and experienced hackers who want to learn more about fundamentals and audio synthesis!

Fixing A Camera’s WiFi Connectivity With Ghidra

30 Mayo 2024 at 20:00
A picture of the camera in question, successfully uploading a pic thanks to the fix found

If your old camera’s WiFi picture upload feature breaks, what do you do? Begrudgingly get a new one? Well, if you’re like [Ge0rg], you break out Ghidra and find the culprit. He’s been hacking on Samsung’s connected cameras for a fair bit now, and we’ve covered his adventures hacking on Samsung’s Linux-powered camera series throughout the last decade, from getting root on them for fun, to deep dives into the series. Now, it was time to try and fix a problem with one particular camera, Samsung WB850F, which had its picture upload feature break at some point.

[Ge0rg] grabbed a firmware update .zip, and got greeted by a bunch of compile-time debug data as a bonus, making the reverse-engineering journey all that more tempting. After figuring out the update file partition mapping, loading the code into Ghidra, and feeding the debug data into it to get functions to properly parse, he got to the offending segment, and eventually figured out the bug. Turned out, a particularly blunt line of code checking the HTTP server response was confused by s in https, and a simple spoof server running on a device of your choice with a replacement hosts file is enough to have the feature work again, well, paired with a service that spoofs the long-shutdown Samsung’s picture upload server.

Turned out, a bunch more cameras from Samsung had the same check misfire for them, which made this reverse-engineering journey all that more fruitful. Once again, Ghidra skills save the day.

NameSnack

Por: EasyWithAI
22 Marzo 2023 at 03:56
NameSnack combines cutting-edge AI with advanced naming techniques to help you find the perfect name for your business. This tool lets you discover thousands of memorable business name ideas for your brand in seconds, just enter in some keywords related to your business or niche. You can also check to see if the domain names […]

Source

Hackaday Links: May 5, 2024

5 Mayo 2024 at 23:00
Hackaday Links Column Banner

It may be hard to believe, but BASIC turned 60 this week. Opinions about the computer language vary, of course, but one thing everyone can agree on is that Professors Kemeny and Kurtz really stretched things with the acronym: “Beginner’s All-Purpose Symbolic Instruction Code” is pretty tortured, after all. BASIC seems to be the one language it’s universally cool to hate, at least in its current incarnations like Visual Basic and VBA. But back in 1964, the idea that you could plunk someone down in front of a terminal, or more likely a teletype, and have them bang out a working “Hello, world!” program with just a few minutes of instruction was pretty revolutionary. Yeah, line numbers and GOTO statements encouraged spaghetti code and engrained bad programming habits, but at least it got people coding. And perhaps most importantly, it served as a “gateway drug” into the culture for a lot of us. Many of us would have chosen other paths in life had it not been for those dopamine hits provided by getting that first BASIC program working. So happy birthday BASIC!

Speaking of gateways, we’ve been eagerly following the “65 in 24” project, an homage to the “65 in 1” kits sold by Radio Shack back in the day. These were the hardware equivalent of as BASIC to a lot of us, and just as formative. Tom Thoen has been lovingly recreating the breadboard kit, rendering it in PCBs rather than cardboard and making some updates in terms of components choices, but staying as true to the original as possible. One thing that the original had was the “lab manual,” a book containing all 65 circuits with schematics and build instructions, plus crude but charming cartoons to illustrate the principles of the circuit design. Tom obviously needs to replicate that to make the project complete, and while schematics are a breeze in the age of EDA, the cartoons are another matter. He’s making progress on that front, though, with the help of an art student who is really nailing the assignment. Watch out, Joe Kim!

Last week we mentioned HOPE XV is coming in July. This week, a partial list of talks was released, and there’s already a lot of interesting stuff scheduled. Supercon keynote alums Mitch Altman and Cory Doctorow are both scheduled to appear, along with a ton of others. Check out the list, get your proposals in, or just get your tickets.

If an entire forest is composed of a single tree, does it make a sound? Yes it does, and it’s kind of weird. The tree is called Pando, which is also weird, and it’s the largest living individual organism by biomass on Earth. The quaking aspen has 47,000 stems covering 100 acres (40 hectares) of Utah, and though it does a pretty good job of looking like a forest, the stems are genetically identical so it counts as a single organism. Quaking aspens are known to be a noisy tree, with leaves that rattle together in the slightest breeze. That pleasant sound isn’t just for us to enjoy, however, as sound artist Jeff Rice discovered by sticking a hydrophone down into one of Pando’s many hollow stems. The sound of the leaves banging together apparently gets transmitted down the stems and into the interconnected root system. At least that’s the thought; more rigorous experiments would be needed to confirm that the sound isn’t being mechanically coupled through the soil.

And finally, we’re in no position to cast stones at anyone for keeping a lot of browser tabs open, but keeping almost 7,500 Firefox tabs going seems a bit extreme. And yet a software engineer going by the handle Hazel just can’t bring herself to close any tabs, resulting in an epic restore session when her browser finally gave up the ghost. Panic set in at first when Firefox refused to reload all the tabs, accumulated over the last two years, but eventually the browser figured it all out and Hazel was back in business. Interestingly, Firefox doesn’t really use up too much memory to keep al those tabs open — only 70 MB. Compare that to Chrome, which needs 2 GB to keep a measly 10 tabs open.

Bypass PoE And Power Your Starlink Terminal Directly

2 Mayo 2024 at 20:00
Starlink terminal being injected with 12V from an external PSU

Sometimes, you will want to power a device in a way it wasn’t designed for, and you might find that the device in question is way too tailored to the original power source. Today, [Oleg Kutkov] is here to give us a master class on excising unnecessary power conversion out of your devices, with the Starlink terminal as an example. This device can only be officially powered from 48V PoE, but can technically work from about 12V – and, turns out, many people want to mount a Starlink terminal to their cars.

[Oleg] shows us the power circuit of the Starlink terminal, explaining which component is responsible for what, and gives us a block diagram. Then, he shows you the 12V rail that all internal components actually draw power from, and where to feed power into it. Plus, he warns you about possible caveats, like having to disable the builtin 12V regulator to prevent it from backfeeding-induced damage. If you’re looking to modify a similar device, this tutorial gives you heaps of insight on what you might need on your foray.

Thinking to modify your own Starlink terminal, perhaps, and wondering about the power consumption? [Oleg] has current consumption graphs for you, collected with a data logger for Uni-T UT800 of his own design, providing detailed figures on just how much energy you ought to supply to power the terminal from 12V, and where to (not) get it. After all, even a seemingly suitable power supply might not do.

❌
❌