Elegant And Portable DIY Nightlight Becomes A Fixture For Hacker’s Kids

When [itzikdiy]’s kids asked for a night light for their room, he got the bright idea to build something that straddles the line between portable and permanent. This fixture-less fixture plugs directly into a wall socket and is turned on and off with a handsome rocker switch on the bottom.

This lovely little lamp is mostly made from scrap — the oak on the front appears to have come from an old cabinet door, and the other two ring-shaped pieces are made from pine. [itzikdiy] even took the acrylic from broken panel lamps. Everything was cut with a Dremel and a circle-cutter attachment except the oak, which required a jigsaw. We think it looks great, especially with the different grain directions — call it art deco woodworking.

When it was all said and done, [itzikdiy] found it was too heavy to hang by the plug alone, so he added an L-shaped support beneath the power supply that holds it more evenly against the wall. [itzikdiy] also made a pair of hooks that snap into a pair of slots on the sides of the outlet itself. The solution is simple, sturdy, and effective without disrupting the lines of the lamp at all. Carve out a little bit of time to watch the build video after the break.

We know that someone of your hulking intelligence has no fear of the dark. But if you think you could use a nightlight in the bathroom for those 2 AM trips, look no further.

Continue reading “Elegant And Portable DIY Nightlight Becomes A Fixture For Hacker’s Kids”

This Week In Security: Text Rendering On Windows, GNU Poke, And Bitsquatting

Project Zero just unrestricted the details on CVE-2021-24093, a potentially nasty vulnerability in Windows 10’s DirectWrite, a text rendering library. The flaw got fixed in this month’s patch Tuesday roundup. The flaw is accessible in all the major browsers on Windows 10, as they use DirectWrite for font rendering. The trick here is to use a malicious font that uses some nonsense values. Those values result in a buffer allocation that is too small for complex characters such as Æ.

Because the vulnerability is a Windows library, it’s possible that an exploit would automatically work as a sandbox escape, but I haven’t seen confirmation either way. Let us know if you have some insight there.

Via Bleeping Computer

GNU Poke

The good folks at GNU have minted the 1.0 release of poke, a new binary editing tool. The real killer feature of poke is that it can interpret binary data, decoding it back into readable data structures. If you’re familiar with the way Wireshark can decode packets and give useful, organized output, it seems that poke will provide a similar function, but not limited to network traffic.

It looks like it could become a useful tool for getting a look inside otherwise opaque binaries. What poke brings is a system where you can write pretty-printing templates on the fly, which should be very useful when mapping out an unfamiliar binary. Distros will likely pick up and start packaging poke in the coming weeks, making it even easier to get and play with. Continue reading “This Week In Security: Text Rendering On Windows, GNU Poke, And Bitsquatting”

A New Open-Source Farming Robot Takes Shape

The world of automated farming may be an unglamorous one to those not invested in its attractions, but like the robots themselves that quietly get on in the background with tending crops, those who follow that path spend many seasons refining their designs. The Acorn is a newly-open-sourced robot from Twisted Fields, a Californian research farm, and it provides a fascinating look at the progress of a farming robot design from germination onwards.

The Acorn is not a CNC gantry for small intensive gardens in the manner of designs such as the Farmbot, instead it’s an autonomous solar-powered rover intended for larger farms which will cruise the fields continuously tending to the plants in its patch. It’s a work in progress, so what we see is the completed rover with the tools and machine vision to follow. It pursues the course of a low-cost lightweight platform, an aluminium chassis surmounted by the solar panel, with mountain bike front fork derived wheels at each corner. It has four wheel drive and four wheel steering, meaning that it can traverse the roughest of farmland. We can see its progress since a 2019 prototype, and while it seems as slow as the seasons themselves to mature, we can see that the final version could be a significantly useful machine on a small farm.

It’s not the first autonomous farming robot we’ve seen over the years, as for example this slightly more robust Australian model. We’re guessing that this is the direction autonomous farming is likely to take, with the more traditional tractor-based machinery projected by some manufacturers taking on repetitive loading and hauling roles.

Continue reading “A New Open-Source Farming Robot Takes Shape”

Magnetic Angle Sensor Mods Make Encoder Better For Blasting

Most of the hacks we see around these parts have to do with taking existing components and cobbling them together in interesting new ways. It’s less often that we see existing components gutted and repurposed, but when it happens, like with this reimagined rotary encoder, it certainly grabs our attention.

You may recall [Chris G] from his recent laser-based Asteroids game. If not you should really check it out — the build was pretty sweet. One small problem with the build was in the controls, where the off-the-shelf rotary encoder he was using didn’t have nearly enough resolution for the job. Rather than choosing a commodity replacement part, [Chris] rolled his own from the mechanical parts of the original encoder, like the shaft and panel bushing, and an AS5048A sensor board. The magnetic angle sensor has 14 bits of resolution, and with a small neodymium ring magnet glued to the bottom of the original shaft, the modified encoder offers far greater resolution than the original contact-based encoder.

The sensor breakout board is just the right size for this job; all that [Chris] needed to do to get the two pieces together was to 3D-print a small adapter. We have to admit that when we first saw this on Hackaday.io, we failed to see what the hack was — the modified part looks pretty much like a run-of-the-mill encoder. The video below shows the design and build process with a little precision rock blasting.

Continue reading “Magnetic Angle Sensor Mods Make Encoder Better For Blasting”