News for hackers. Stuff that matters.

dantle

Re:Kitchen Optimizations on Thursday January 01, 2026 @08:42AM (#46454036)
A dishwasher micro optimization: put the small forks/spoons face down in the basket, and the large ones face up. Helpful when unloading because these items are time consuming to visually distinguish, but we sort them.

Works best if you can somehow convince your spouse to do it, too. :)

Re:Brave – copy clean link feature on Thursday March 09, 2023 @02:32PM (#35085531)
I made a Shortcut to do this. You can add it to the share sheet. Clicking the shortcut from there strips the link and opens a new share sheet with the stripped link. It's one extra click, but a lot faster than mashing backspace.

https://www.icloud.com/shortcuts/528c9af856fc46c9a3d164a85e8...

Did you have the full GUI running back then? I tried this in 2021 but couldn’t get the GUI to launch. It seemed like an expected graphics lib wasn’t available.
Re:Ask HN: Dealing with ADHD Without Medication? on Thursday February 23, 2023 @12:05PM (#34913187)
Fasting always gets me into a high focus zone (but I don't have ADHD). Try doing a 48 hour zero-calorie/liquid-only fast. Black coffee and teas are fine. Get plenty of electrolytes, especially magnesium and potassium, or else you'll have a headache. Take an ibuprofen if you really need it. And reward yourself at the end. I always get an amazing amount of reading done in these periods.
Re:Few lesser known tricks, quirks and features of C on Sunday February 19, 2023 @12:44PM (#34859873)
Nice article. Saw a few things I wish I'd known about.

1. %n in printf would be handy when writing CLIs dealing w/ multiple lines or precise counts of backspaces.

2. Using enums as a form of static_assert() is a great idea (triggering a div by zero compiler error).

I enjoyed the rhetorical style used in this article. A nicely presented mixture of humor and information.
Re:Tesla Project Dojo Overview on Monday August 23, 2021 @12:11PM (#28278086)
Locality has everything to do with performance. It's why your L1 cache is faster than your L2 cache.
Re:An update to storage policies across your Google Account on Thursday December 03, 2020 @06:01PM (#25296567)
I've used this for about a year, and it has been stable. Hosted on my home computer.

https://github.com/tomav/docker-mailserver

My emails get rejected from @comcast.net but nobody else as far as I can tell. I haven't figured out a good way to debug the issue. As a result, I am not completely off of free Gmail. If you need your emails to be 100% received on the other end, I would recommend paying a hosting provider.

Re:John Cocke, the father of RISC architecture on Saturday October 17, 2020 @12:06AM (#24807409)
It's harder to imagine coming from the IBM of today, but historically the company has earned many laurels from its numerous important contributions to computing. As my computer architecture professor used to say, "everything that's worth inventing already has been at IBM." In addition to RISC, they created out-of-order, superscalar processing, relational databases, TCM, magnetic hard discs, DRAM, etc.
Here's a trivial python script to download them, for the lazy among us.

https://gist.github.com/dantler/f26d75f1051db13649aaedf73f7d...

Re:Apple Silicon: The Passing of Wintel on Sunday July 12, 2020 @08:30PM (#23815925)
Although I'm not familiar with the specifics of (1) and (2), the characterization that Intel "took a while" or "were really slow" to enable features might be a bit unfair. (I am also a former employee)

Keep in mind that Intel's ability to properly light up new silicon features on your PC often relies upon your willingness to update your software. For instance, even if the SMT scheduler fix has been written and upstreamed, the next Ubuntu LTS to integrate the change may be 18 months away. The end user will believe that Intel is taking a long time to develop the fix.

It is helpful, but not necessary. I am listening in on Seattle's trunked radio system with just one, and I get most of the comms.

I documented my setup here: https://dantler.us/seattle-police-scanner/

I currently run my own mailserver. It's running on my home computer, which I leave on 24/7 anyway.

Administration is quite easy if you start with a well-maintained docker image ,and I found one I'm quite happy with.[0] It has been less than 30 minutes of work so far, but I already understand docker quite well. It was nice to learn some more docker stuff, too.

The major downside is that random email hosts seem to reject my mail (looking at you, comcast.net addresses) so I still use a gmail with some contacts.

[0] https://github.com/tomav/docker-mailserver

Re:Am I Unique? on Saturday January 25, 2020 @05:33PM (#22149040)
I'm using Brave and my useragent is not unique.

Version 1.2.43 Chromium: 79.0.3945.130 (Official Build) (64-bit)

Re:Am I Unique? on Saturday January 25, 2020 @05:04PM (#22148909)
Are you sure you're looking only the "User Agent"? The text at the top is describing your entire "browser fingerprint." It includes everything the server could gather from you. Including cookies, browser version, width/height of the window, etc.

In case it's not clear, uniqueness should be seen as bad in this case. It means you can be tracked.

Perhaps the "all at once" attack could work against today's hardware. This is because the mics (in devices I know of) are co-planar and the user may be speaking to Alexa (or whoever) from directly above or below the device. In this configuration, it is valid for all mics to be receiving the same audio signal simultaneously.

But in some future rev, one could imagine that if the mics in the array are non-coplanar (e.g. at least 4 mics) and sufficiently far from each other, then there is no possible way for the audio signal to reach them at once (unless it is actually light being measured).

I'm a bit surprised that this works. It appears that this attack targets a single microphone. However, internal to most of these home assistant devices (e.g. Echo or HomePod) there is an array of microphones. A real sound from a spoken word would probably show up on more than one microphone (with an appropriate time and phase offset), although it seems to not be currently required. It seems like it would be complex or impossible for an attacker to target more than one microphone with this attack.
There have been stories in the news which have raised awareness about how Canada exports their recycling/trash to the Philippines.[0] The Philippines seems to pollute heavily, based on this map. Given this data, it seems counterproductive to send waste to the highest polluting countries, since they are obviously not able to process their existing burden.

[0] https://en.wikipedia.org/wiki/Canada%E2%80%93Philippines_was...

Re:Show HN: A simple way to write standalone C programs for i386 on Wednesday October 02, 2019 @06:31PM (#21141486)
It's pretty easy. With CL.exe (Microsoft's Visual Studio compiler) just use the /SUBSYSTEM:EFI_APPLICATION flag. You may have to manually specify the entry point. Note that there's no default cstdlib, so if you want to use the EFI APIs (e.g. for a "printf" function or other things from the article), you'll need to tell the compiler about the header definitions (as you would any C API).
Re:Microsoft introduces Windows 10 X for dual-screen devices on Wednesday October 02, 2019 @12:14PM (#21138075)
The parent story isn't about some version of Android. Windows 10 X is a real version of Windows, based on the NT Kernel.
Why would a different accelerometer surprise you? The entire SiP is different between the Series 3 and Series 4. One source say the accelerometer in S4 has higher dynamic range. [0]

[0] https://www.anandtech.com/show/13364/apple-announces-the-app...

There isn't a guarantee, but there are incentives for phone/platform providers to avoid spying on you in a battery-powered device. Battery life is still a primary selling point, and these companies are fighting hard to maximize battery life on your device. Turning on the camera is among the most power-hungry tasks, as it activates the image signal processor block of your SoC (which is millions of gates and a high speed transfer interface). It would be difficult to produce a competitive device which spies on its users.
The charging cable that ships with the MacBook is only capable of USB2.0 speed data transfers.[0] You'll want a different cable for high speed data.

[0] https://support.apple.com/en-us/HT208368

Re:TempleOS: Installation on Monday May 20, 2019 @02:04PM (#19963197)
TempleOS is written in x86-64 assembly and won't run on a Raspi. Try a VM!
Skylake was a reasonably big core architecture upgrade (a "tock" in Intel terminology). Several new instructions (XSAVE, AVX512, etc.) were introduced. Perhaps you meant Broadwell?
Re:Show HN: A parser for electronic component descriptions on Saturday August 11, 2018 @12:57PM (#17740452)
You did a nice job with capacitors. It was cool to write X7R and have it show up as a characteristic.
Re:Concise Electronics for Geeks (2010) on Wednesday November 15, 2017 @06:02PM (#15708840)
Great review as an embedded SW guy to nourish my EE background. Nicely peppered with practical tricks and techniques that are useful in the field. I enjoyed seeing the low-pass and high-pass filtered wave signatures along with the explanation of what the problem might be (long/close connections and broken traces, respectively).
Re:Harmony Link will no longer work after March 2018 on Wednesday November 08, 2017 @01:58PM (#15655712)
It's not too difficult to build your own IR blaster that is controlled by an app. I wrote an Arduino library that lets you send device-specific IR commands based on a generic LIRC configuration file. I run it on an Arduino101 and send commands to it via Bluetooth LE. Currently using it with a Windows service for climate control in my rental apartment.[1]

I could share more source code if anybody is interested in doing the same thing.

[1] https://github.com/dantler/infrared-remote-sketch

Re:ARKit + CoreLocation [video] on Saturday July 22, 2017 @02:40PM (#14828638)
Hasn't Yelp's app implemented this feature (called Monocle) for half a decade now? Could anyone explain the difference?

Older »