Yeah it's a bit odd to use a Haskell server to serve a static file which nginx then needs to buffer. You'd do much much better just serving the file out of nginx. You could authenticate requests using the very simple auth_request module:
>If this somehow does end up being a reproducible performance issue (I still
suspect something more complicated is going on), I don't see how userspace
could be expected to mitigate a substantial perf regression in 7.0 that can
only be mitigated by a default-off non-trivial functionality also introduced
in 7.0.
Ukraine has a sound-based version of this, supposedly using cell phones as the primary hardware element. The idea is to scatter hundreds of sensors along the front in some depth, then use simple on-device models to classify sounds and send an alert when a sound matching a known drone signature is detected.
You can use ESP32 with GPS modules and their PPS signals. The PPS signal from the module often has has a roughly precision around 60ns against the global GPS standard.
With that signal you can PID-control an internal timer of the ESP32 - which then can be used to timestamp audio frames. Send that to a central host over Wifi and you can use your standard localization math.
The trick is to use the internal ESP32 10MHz hardware which automatically kicks timestamps into a register if a GPIO does something. Not using high-level C constructs that must eat their way through x API layers.
I've been interested in deploying something like this around my property to localize sounds that I hear just for fun.
IMO having the on-device model to pre-filter to the signals of suspected drones is potentially a good idea in a wartime environment. Not only does it conserve bandwidth (which might be a limited resource), but it also reduces airtime and thus makes the devices harder to spot.
GPS is also unreliable in Ukraine, especially near the front line.
It's unclear which approach would be better from a power budget point of view. One requires substantially more local processing power but much less radio time, while the other requires continuous radio transmission.
> GPS is also unreliable in Ukraine, especially near the front line.
There are GPS antennas that physically can block out signals that are not coming from the sky with a huge amount of decibels. Maybe Aliexpress has some of them in stock? This was heavily ITAR-ed but this ban was lifted recently.
Other option: try to sync against the DCF77 signal from Germany. Not only the beep-beep-beep time signal but also the integrated phase modulation. Jamming VLF is difficult. 77KHz is in the range of ADCs.
Then make a voter: if GPS/GLONASS/Galileo/Beidou is available prefer them, if not fall-back to DCF77. If this fails: free-running.
Cell phones are kinda nice because they're hard to ITAR. Anyone can buy them. Old and crappy ones are generally still good enough for this kind of micro model. They come with their own batteries to hold-over between power loss or overnight. They also come with their own sensors, radios, and compute already integrated. Basically, you can just write software and ignore the hardware side entirely.
Remember, this isn't planned to be a long term solution, or to provide the highest quality available, or to be the cheapest or most efficient solution. It's intended to allow Ukraine to quickly plug sensor gaps in the lines and to scale easily.
That's a fun cobra effect. Age verification ("intended" to make children safer online, if you take the most charitable view) forces more and more people to use VPNs, which overall degrades the value of IP reputation as a signal, forcing providers to accept less reputable IPs because real customers come from them, which means that providers are more vulnerable to attacks that can be used to target children.
The point isn't protection from attacks that target children, it's gatekeeping content to keep it away from children. Providers are more vulnerable to attacks, overall, because of that gatekeeping, because of ht inevitable use of tools like VPNs and proxies to bypass the mechanisms being used. This sort of anti-anonymity is specifically and precisely targeted at decreasing the security of individuals, subjecting them to surveillance and control by the state. It has nothing to do with "protecting the children" and never did.
The four horsemen of the infocalypse are always about power grabs, they're never about actually protecting citizens, or children, or securing a country or region.
We had this happen on one of our sign up forms. I added a crappy open source image captcha and it went away. I guess whichever attacker was using us wasn't that motivated!
I bring a single high-quality large power bank whenever I travel. It's hard to reliably find power for my phone, laptop, e-reader, earbuds, gamma spectrometer, flashlight, etc while in the airport or in flight. Not every plane I end up on has reliable USB chargers. Sometimes it's handy to just plug my devices in while they're in my bag.
Airlines are doing this new fun trick where they interrupt your in-flight entertainment not only for the safety announcements, but also to play ads for their credit cards. And they'll turn up the brightness if it's turned down and turn up the volume if it's too low.
I do tend to mostly read on planes, but e-readers are nice because you can pack fifteen books into something the size of a couple of phones, and they can be backlit so you don't have to annoy your neighbor when they're trying to sleep. Back in the day I always had the problem of putting like three library books into my backpack and more into my checked bag, but I'd still finish them all before the return trip was over and be left without anything to read. With e-readers, I can check out new books mid trip, or even at the airport.
I usually read a book on my e-reader and listen to music on my wireless earbuds. Half the time I'm on an airplane without an entertainment system, which is perfect as I have my own already!
New planes don't have screens, they may have free wifi to watch stuff on your device. Of the 6 planes I have been on in the last two weeks only one had screens. Just back from vacation :)
I'm not one that he flies with gamma spectrometer. But I've had RadiaCode 103G since Dec 2024. It's pretty neat device that can be brought with you almost anywhere.
It's made in Cyprus (EU) and has apparently received some EU funding. Using Google Search AI mode and asking what is CEO Sergey Shek connection with Moscow Radiological institute gave me following reply.
"The connection between Sergey Shek, the founder of Radiacode (formerly Radiascan), and Moscow's radiological research centers is primarily rooted in his and his team's professional and academic history.
The key points of connection are:
Academic and Professional Origins: Radiacode’s founding team consists of Russian physicists and engineers who were educated and began their careers at prestigious scientific institutions in Moscow. These include researchers formerly associated with the N.N. Semenov Federal Research Center for Chemical Physics and other centers specializing in nuclear physics and spectroscopy.
Early Product Development: The company's initial products, such as the Radiascan-701, were developed in Russia using the technical expertise gained at these Moscow-based institutes. The technology behind their current high-precision scintillation detectors stems from this scientific background.
Relocation and Independence: Following the start of the conflict in Ukraine, the company officially rebranded as Radiacode and shifted its headquarters and operations to Cyprus and the United Kingdom. Sergey Shek and the company have sought to distance themselves from Russian state institutions to operate as a global, independent entity.
Today, while the "scientific DNA" of the company originated in Moscow's radiological research environment, Radiacode operates entirely outside of Russia and focuses on the international market for hobbyists and professionals."
Russian background didn't sound good to me for obvious reasons. Thus I did not install app to my daily driver phone and use a separate Android device for this app. But the device is nice and app quite good for what I've used it.
Adding: You can find videos about the device from Youtube.com
Yep, this is the one I have! I pretty much carry it everywhere. It mostly alerts (silently) when I pass by someone who has had nuclear medicine treatments. Otherwise, I just enjoy the being able to detect the small differences in background radiation between indoor and outdoor or different floors of a building.
How could we make enough antimatter to do something useful? Would we need to go hang out near the sun or deorbit Jupiter's moons with superconducting coils to get enough energy?
Shot exchange is a huge problem, made even worse by the arrival of cheap drones. But you're implicitly assuming that the adversary is on roughly equal economic footing. If your defense budget is $800 billion and your adversary's defense budget is $8 billion, you can afford to spend 100x as much shooting down their missiles as they spend lofting them.
There's also a danger in projecting linearly from the beginning of a war, where invading forces both tend to use more expensive stand-off munitions and also have to deal with more aggressive missile launches. As the defender's own air defense system gets degraded, the invader can switch from expensive long range stand-off munitions to cheaper stand-in munitions (like glide bombs) launched from much shorter range. Additionally, the invader will be able to diminish the defender's ability to launch missile strikes in the first place, either by destroying the launchers, the missiles themselves, or their production, thus reducing the demand on expensive high-capability interceptors.
Drones and mines continue to offer asymmetric warfare options that are very hard to counter without a robust low side on the high-low mix. Ukraine are the world's leading experts in this currently, and hopefully are involved with US and Gulf forces to try to improve this shot exchange ratio.
I am assuming nobody is using nukes though. That completely changes the picture. One must always assume "(some of) the missiles will get through". Traditional MAD does not require boots on the ground - merely the assurance that if Iran gets one nuke through and hits New York, the USA will respond with 100+ nukes. The real question then is what the other "large" nuclear powers (Russia and China, primarily) will do in response to that.
Defense budget is an abstraction. At the end of the day, there are only so many factories with only so many raw inputs producing only so many interceptors per day. You cannot simply increase the defense budget in the event of a war of attrition and then attempt to outspend your enemy. And this is beside the political unpopularity of high defense budgets in peacetime, when they would need to be higher, to build the industrial capacity ahead of when it would be needed.
All true, and of course the $900B plus defense budget of the USA is not dedicated to interceptors to the same degree that Iran's $8B is dedicated to missiles. Shot exchange is fundamentally an economic problem though. The USA is not going to go broke shooting down missiles - they're going to run out of interceptors. Money is a much larger constraint for Iran than the US, but even there, the real constraint is military and diplomatic.
How does this guarantee a political and strategic win for Iran?
Iran was already teetering on the edge of being a failed state: socially, economically, environmentally, and agriculturally. Iran is expending expensive ballistic missiles to force those THAAD and Arrow shoot-downs. Yes, they're winning the shot exchange ratio, but their economy is orders of magnitude smaller than the US. Besides, unlike the Gulf states, the US and Israel are not just sitting around playing defense. They are systematically destroying substantial fractions of the Iranian war machine and have both threatened and attacked domestic and international energy production, the lifeblood of the Iranian economy.
The only true winner of this war, however it shakes out in the end, is Russia. All of the Middle Eastern powers aligned with the US are going to be desperate to rebuild their interceptor stockpiles and will surely get priority over Ukraine, likely for a very long time as the production rates are very low as you've pointed out. Plus, Russian gas and oil are worth a lot more than they were prior to this war, and are being allowed to trade more openly as well.
Iran already bled enough high end regional interceptors, the strategic balance is if they can build enough moped shaheeds that can be assembled in garages to overwhelm whatever comes in theatre. And we know upper limit of US+co interceptor production for next 3-4 years. Economic size =/= productive capability. Ultimately Iran with survivable regional strike complex can existentially threaten gulf state adversaries who are all dependent on desalination while Iran, as shit as their water crisis is, is not. UAE, Qatar Saudi and Israel are like 70-90% desalination. They can threaten Iran economic lifeblood, Iran can literally end their lifeblood. Iran simply has massively more lethal/credible escalation dominance vs GCC. Iran already being failed state ironically allows them to escalate harder - they have much less economy to lose, vs GCC losing economy and biology.
Ultimately if Iran locks down Hormuz long term they can transit tax their way to prosperity, and if they can convince PRC to be enforcer of petro-yuan (big if), they'll basically get unlimited hardware to do so. Not that burning bridges with GCC is PRC first choice, but if Iran can lock down Hormuz, they have leverage to compel PRC to accept arrangement because it's worse than no Hormuz energy. The spoiler obviously is US who would rather toast GCC oil than lose petro dollar. Or Israel being nuke happy.
https://nginx.org/en/docs/http/ngx_http_auth_request_module....