frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Open a browser by clapping twice (inspired by Iron Man)

https://github.com/Yutarop/two_claps_open
9•ponta17•1d ago
Recently, I watched Iron Man and was inspired by the scene where Tony Stark claps twice to activate his computer. (https://www.youtube.com/watch?v=OT2b5KzMoC0&t=101s) I thought, “I want to try that!".

So I wrote a simple script that opens Google Chrome — and optionally a local file — when I clap twice.

Technically, I recorded sample clap sounds and analyzed their frequency content in MATLAB (most energy was around 1.4–1.8kHz). Then I built a real-time detection system in Python using a bandpass filter and peak detection to recognize claps and trigger an action.

Is it practical? Maybe not. But it’s fun. Imagine this: you're about to Netflix and chill and open Netflix with two claps. Or you're about to give a presentation and launch your slides like Tony Stark. Just clap twice.

GitHub: https://github.com/Yutarop/two_claps_open

Comments

2Gkashmiri•20h ago
https://www.nch.com.au/action/misc.html

Tonedet. Try it

ponta17•12h ago
Thanks! I'll try that
2Gkashmiri•9h ago
i remember using this software to listen to my UPS beeping which would indicate that the electricity had gone off and then using autohotkey to close open apps and shut down pc.

this was wonderful and it worked brilliantly

ponta17•5h ago
Thanks for sharing! That's an awesome use case. I hadn’t thought of combining it that way, but it’s a great idea.
Larrikin•19h ago
Could probably be enhanced by turning it into an automation in Home Assistant.

Ask HN: Should I build a directory product?

1•alizaid•1m ago•0 comments

History and Disposition

https://v5.chriskrycho.com/notes/history-and-disposition/
1•mooreds•1m ago•0 comments

Should You "Rent" an Exec for Your Startup? A Fractional COO Weighs In

https://review.firstround.com/fractional-exec-hiring-guide/
1•mooreds•1m ago•0 comments

Miami's Drinking Water Is Threatened by a Florida Nuclear Plant

https://www.bloomberg.com/news/features/2025-06-05/bankrupt-upper-west-side-private-school-s-bold-growth-plan-sowed-its-demise
1•gametorch•7m ago•1 comments

The Computer Revolution of the 80s Told by a Pioneer: Lee Felsenstein [video]

https://www.youtube.com/watch?v=rASMe9FDjbg
2•ohjeez•10m ago•0 comments

Show HN: Use OpenAI's 4o to create game assets, publish to Creative Commons

https://gametorch.app/
1•gametorch•11m ago•0 comments

Orbital Ambush? Russian Satellites Move Like Predators Around U.S. Target

https://spacetechtimes.com/are-russian-satellites-creeping-toward-american/
1•nabla9•13m ago•0 comments

(How) One Ancient Language Went Global

https://www.bloomsbury.com/us/proto-9781639732586/
1•handfuloflight•15m ago•0 comments

Neven Mrgan on Why Skeuomorphism Is Like a Classic Car

https://appdocumentary.com/2015/01/08/neven-mrgan-on-why-skeuomorphism-is-like-a-classic-car/
2•tambourine_man•17m ago•0 comments

PhDs for Entrepreneurs

https://medium.com/@danzhang/phds-for-entrepreneurs-7cdbdd891ff3
1•jxmorris12•19m ago•0 comments

Human Vestigiality

https://en.wikipedia.org/wiki/Human_vestigiality
1•elsewhen•19m ago•0 comments

Mprocs written in Rust: Run multiple commands in parallel

https://github.com/pvolok/mprocs
1•behnamoh•20m ago•0 comments

JavaScript await was rogue rogue along

https://codedynasty.dev/posts/Javascript-await-was-rogue-all-along
1•66yatman•20m ago•0 comments

The Common Pile v0.1

https://blog.eleuther.ai/common-pile/
2•Philpax•20m ago•0 comments

Private Japanese spacecraft crashes into moon in 'hard landing,' ispace says

https://www.space.com/astronomy/moon/private-japanese-spacecraft-resilience-ispace-moon-landing-attempt
1•pseudolus•21m ago•0 comments

Food and beer are common perks in hospitality – but are they masking unfairness?

https://theconversation.com/free-food-and-beer-are-common-perks-for-hospitality-workers-but-are-they-masking-unfairness-256330
1•PaulHoule•22m ago•0 comments

New observatory is assembling most complete time-lapse record of night sky

https://phys.org/news/2025-06-observatory-lapse-night-sky.html
1•bookmtn•25m ago•0 comments

Supreme Court Rules 1964 Civil Rights Act Also Protects Whites

https://www.stevesailer.net/p/supreme-court-rules-1964-civil-rights
3•mpweiher•26m ago•2 comments

Using Proprietary Golinks in Firefox

https://www.dgt.is/blog/2025-06-04-proprietary-golinks-firefox/
1•speckx•26m ago•0 comments

Memory optimization is the best way to write high performing CUDA kernel for AI

1•thecongluong•26m ago•0 comments

Exercise Is Great but It's Not a Cancer Drug

https://www.sensible-med.com/p/exercise-is-great-but-its-not-a-cancer
1•hilux•27m ago•0 comments

The Man Whose Weather Forecast Saved the World

https://www.nytimes.com/2025/06/05/weather/d-day-forecast-history-wwii.html
1•tusslewake•28m ago•0 comments

Private lunar lander from Japan crashes into moon in failed mission

https://phys.org/news/2025-06-private-lunar-lander-japan-falls.html
1•bookmtn•29m ago•0 comments

The Accountability Sink in AI Advertising

https://wordsandmoneyinmachines.substack.com/p/ais-advertising-accountability-sink
1•cahoots8727•31m ago•0 comments

What methylene blue can (and can’t) do for the brain

https://neurofrontiers.blog/what-methylene-blue-can-and-cant-do-for-the-brain/
2•wiry•31m ago•0 comments

Sipeed NanoCluster fits 7-node Pi cluster in 6cm

https://www.jeffgeerling.com/blog/2025/sipeed-nanocluster-fits-7-node-pi-cluster-6cm
1•mikece•32m ago•0 comments

The WeightWatcher tool for predicting the accuracy of Deep Neural Networks

https://github.com/CalculatedContent/WeightWatcher
1•jxmorris12•33m ago•0 comments

Don't Put All Your Juice in One Box

https://juicebox.xyz/blog/dont-put-all-your-juice-in-one-box
1•greysonp•35m ago•0 comments

Bloomberg: Everything Apple will showcase at WWDC

https://www.bloomberg.com/news/articles/2025-06-06/apple-wwdc-2025-preview-ios-26-macos-26-new-ai-features-ipados-26-redesigns
1•shadowtree•35m ago•0 comments

Pitching build v/s buy is dead

https://bauva.com/blog/pitching-build-vs-buy-is-dead/
1•pranitbauva1997•35m ago•2 comments