Live data from Hacker News

Finding the Air Cannon

twobraids.com

21–30 of 47 posts

Re: Finding the Air Cannon

#21
Artillery triangulation app.

Imagine using such a farmers setup as vortex cannon, you could down non turbulence resistant air vehicles such as drones and glide bombs, with good timing.

Re: Finding the Air Cannon

#22
post #20

>>> Farmers with field crops are often beset with Canadian Geese overwintering in the Willamette Valley. No. I strongly suspect they are dealing with Canada Geese. They are dominant in the photos. Canadian geese would be some random species of geese carrying a Canadian passport. Canada geese are the distinct grey-black species aka cobra chickens. https://midwesternnewspapers.com/dont-cross-the-dreaded-cana...

Not sure why you are being downvoted, this is the best kind of pedanticism.

A large number of people believe it impolite to correct someone's language. I've seen it even called "colonial" to correct written grammar, that we should just let language evolve naturally and not try to enforce rules on others. I am not of that mindset.

Re: Finding the Air Cannon

#23
My neighborhood had a similar issue a while ago (suspected fireworks). I imagined a mobile phone app solution based with high precision timing from GPS signal. Maybe there is a market for it...

Re: Finding the Air Cannon

#24
I can't imagine having to hear explosions every 2 minutes for 20 days!

The Army is doing some artillery training during the day and night for the past week or so in my area, but luckily they aren't doing it every 2 minutes all day and night, just for a few hours up until about 11 or 12 at night and maybe every 5 or 10 minutes they will fire a few rounds. It doesn't bother me anymore after hearing it constantly, but I also live directly next to a very busy street, so I am pretty used to loud noises. Maybe next year when they do the training again I'll try to pinpoint the explosions using this method (just for fun, because I am pretty sure there's only one firing range around here).

Re: Finding the Air Cannon

#25
post #14
post #10

I really dislike Python. This is a clean install of Python straight from the Python developers in a clean container. And it doesn't work. I figured I must need "points" so I pip-installed that. Feels like every time I try to use Python, stupid, incomprehensible errors such as this occur: ``` root@1623eb794014:/# ./tri.py Traceback (most recent call last): File "//./tri.py", line 6, in from points import Point, Block…

In this case it’s the fault of the author in either not including all the source code, or having undocumented dependencies

This is a valid criticism of the Python community and something the core language maintainers should look to address.

Working in Python in the 2000s, I was extremely happy. Working in Python (especially ML and data science applications) in the 2020s is a nightmare. The world has come a long way, and Python has actually taken a backslide.

Python would do well to learn from the Rust project and their Cargo package manager and tooling.

Re: Finding the Air Cannon

#26
post #19

I really like the usage here. I would love to generalize the app to find people hunting and setting off fireworks at impolite times. Why did you use pixels on a map image for location, instead of GPS? Phones have GPS these days. You could have a simple app where you push the button when you hear the noise, it reports to a cloud function, and instantly triangulates and throws a point on your favorite map program.

Writing an app and deploying it to three different devices seems like a lot of complexity, compared to a clock, a pen, and a piece of paper.

Re: Finding the Air Cannon

#27
I cannot understand why the Canada Goose is protected under federal law. There are so many in Stewart Park that I think about taking one down with a net or a bolo but (1) I could get in trouble and (2) I find commercial goose meat to be disgusting (when they talk about eating a goose in a Dickens novel I gag) and can't imagine a wild goose is palatable at all.

(I do have reports though that the eggs are great, I think commercial goose eggs make the best Pirogi, and that someone was able to take two eggs from a nest year after year and even though they hissed bitterly the same pair would come back again year after year.)

Re: Finding the Air Cannon

#28
post #2

Nice work. I feel like there must be some way to triangulate the sound source through direct calculation, but that trigonometry is too advanced for me.

If you want to avoid doing the maths I think you can draw the problem out (assuming the world is a flat piece of paper and the source is located on the same piece of paper with you) From the timings given you can work out the distance from location B and C to the wavefront when it hits point A (4 x 330 and 6 x 330). If you then draw a circle centered at point B with radius 1320m, and a circle centered C with radius 1…

Epic comment and diagram, thanks. From this, how can we calculate bearing and distance from one of our locations to the source? Edit: I see that we can use multilateration suggested by parent-sibling comment if we just had distance to source (ie radius of unique tangent circle).

Re: Finding the Air Cannon

#29
post #14
post #10

I really dislike Python. This is a clean install of Python straight from the Python developers in a clean container. And it doesn't work. I figured I must need "points" so I pip-installed that. Feels like every time I try to use Python, stupid, incomprehensible errors such as this occur: ``` root@1623eb794014:/# ./tri.py Traceback (most recent call last): File "//./tri.py", line 6, in from points import Point, Block…

In this case it’s the fault of the author in either not including all the source code, or having undocumented dependencies

Was this note at the bottom not there earlier? It seems to me like a clear enough disclaimer.

Please note: this code is shared to show the algorithm, not as a drop-in application that just runs. It depends on two private modules configmanners and Points. Both of these are on git hub, but to put them upload them to pip would be to commit to supporting them in perpetuity. I'm not willing to do that.

Re: Finding the Air Cannon

#30
post #10

I really dislike Python. This is a clean install of Python straight from the Python developers in a clean container. And it doesn't work. I figured I must need "points" so I pip-installed that. Feels like every time I try to use Python, stupid, incomprehensible errors such as this occur: ``` root@1623eb794014:/# ./tri.py Traceback (most recent call last): File "//./tri.py", line 6, in from points import Point, Block…

From the article:

> this code is shared to show the algorithm, not as a drop-in application that just runs. It depends on two private modules configmanners and Points. Both of these are on github

I don't know why you would find this so confusing, or blame Python. The author literally explains that the points module is not on pip. You installed some random pip package and expected it to replace a different dependency.

Post reply on HN