• kirb 7 hours ago

    Note: This appears to be a fork of Sam Henri Gold’s recent lid-angle sensor project, with the wav file changed. The readme does give credit, though the license has been changed from Apache to MIT for some reason.

    Original: https://github.com/samhenrigold/LidAngleSensor

    Demos (no farts, sorry): https://hachyderm.io/@samhenrigold/115159295473019599 https://hachyderm.io/@samhenrigold/115159854830332329

    • Tade0 7 hours ago

      What a glorious homage to fartscroll.js:

      https://theonion.github.io/fartscroll.js/

      Coincidentally the number of stars this library had over the years was a decent predictor whether a new frontend library/framework was mature enough for adoption.

      In other words: if something is less popular than a joke library that makes fart sounds, can it really be considered as having the momentum to go mainstream? For instance, ReasonML struggled for years to beat fartscroll.js. Where is it now?

    • vunderba 7 hours ago

      What you really want is two slightly different "NOM NOM" noshing sounds on open and close so you can feed it some flash drives and instantly wear out the hinge as you rapidly make your laptop mimic an eating motion.

      I'm sure the fine details of the Apple warranty covers cookie monster roleplaying.

      • DonHopkins 7 hours ago

        As long as we're testing the warrantee, how about a Farty Bird game where you flap by opening and closing your MacBook screen really fast!

        • freedomben 6 hours ago

          Brilliant variation on the clicking games! Love it

      • andersco 7 hours ago

        For this to truly be funny, it needs to be installed on on an unsuspecting user’s laptop, preferably some C-level type about to join an in-person board meeting.

        • Angostura 7 hours ago

          I don't have a C-level to hand. My daughter's university laptop, however is just here...

          • lotsofpulp 6 hours ago

            Child-level works, too.

          • astrospective 4 hours ago

            We had a classmate would would wander off with his laptop unlocked so one day we set all his system sounds to fart noises and cranked up the volume. He came back to class minimized a window and the whole class heard the noise and cracked up. We also got good mileage out of adding a wireless mouse on another occasion and zipping his cursor around the screen for probably a good ten minutes.

          • wombatpm 4 hours ago

            Back in the days of OS7/OS8 there was a system extension called MacSniff. Your MacIntosh would randomly sniff like it had a runny nose and clear its throat. I put it on one of our group machines and within 24 hours someone turned it off with a note: machine sounds sick

            • VladVladikoff 7 hours ago

              The GitHub needs a video demo. I’m too lazy to install this just to see it in action.

            • vaenaes 7 hours ago

              Tesla IT will be deploying this to all employee MacBooks tonight.

              • sonofhans 6 hours ago

                They should deploy it to all _Teslas_ tonight :D

                • astrospective 4 hours ago

                  Swapping lid for trunk?

                  • anakaine 4 hours ago

                    On_door_close()

                • sien 6 hours ago

                  You can do this in Python now with :

                  https://github.com/tcsenpai/pybooklid

                  here is an example that plays a sound via Pygame

                  https://github.com/Petess/MacLidPythonSound

                  This avoids having to deal with Xcode.

                  • A4ET8a8uTh0_v2 7 hours ago

                    But does it change tune depending on the angle ( how tight is the opening )?

                    edit: clicked link. ofcourse it does

                    • ElCapitanMarkla 7 hours ago

                      Fantastic, my kids are going to love this.

                      Seconding the call for a video.

                      Also the instructions to remove the quarantine attr don't work.

                      xattr -cr ~/Downloads/FartScrollLid.app 11:12:20

                      option -r not recognized

                      edit: that should be `xattr -d FartScrollLid.app`

                      • N2yhWNXQN3k9 6 hours ago

                        Probably you are going to love introducing your kids to this and witnessing their reaction, but, isn't it more likely they won't remember what you forced upon them in the long run? They might not even give a fuck, ever? Just speaking from experience.

                        • Retr0id 4 hours ago

                          Forced?

                      • Tewboo 2 hours ago

                        I've seen some quirky apps, but this one takes the cake! Could be fun for a laugh, though I wonder about battery life.

                        • mr-wendel 5 hours ago

                          I already think the power-on noise sounds like an obnoxious fart. I can never remember how to suppress it so I refuse to turn a macbook on around other people.

                          I may as well install this to reaffirm that yes, this is an Apple product (in case you fail to see the prominent logo) and yes, I am better than everyone else for owning one (/sarc).

                          • classichasclass 5 hours ago

                            I can't believe the sound effect isn't in the "Assets" folder. This seems like a miss-ed opportunity.

                            • onlinehost 6 hours ago

                              I don't know why this reminded me of a really scumbag troll thing we would do on AIM/AOL. I guess because it involves sound and open/close.

                              If you remember using AOL or AIM(AOL Instant Messenger) there were sound effects for various "events" like "Welcome" or "You've got mail" when you got a new email.

                              AOL and AIM had "buddy lists" and there were sound effects when they came online or offline. Like a knocking sound and door closing sound.

                              In the early 2000s when cable and DSL was becoming more widespread, it became cool for people to leave their AOL/AIM accounts connected all the time. This generally meant a computer running usually in their house, bedroom, or living room. People would leave "Away Messages" sort of like a status on a social media timeline. I think Jack Dorsey said turning AIM away messages into a timeline was one of his original inspirations for making a social media app. Anyway

                              So someone opens Visual Basic and starts writing some code. It goes to the privacy preferences of their own account and checks "Don't allow anyone to see me online" and then clicks apply.

                              Now it checks "Allow everyone to see me online" and clicks apply.

                              What does this do for everyone on your buddy list?

                              They hear a constant rotation of WAV files like BuddyIn.wav BuddyOut.wav. Over and over.

                              you can hear in the first few seconds of this video https://www.youtube.com/watch?v=AQjfU4g6_SQ

                              • gdudeman 5 hours ago

                                Even farther off topic, but this reminds me of the time my friends and I recorded a 3 minute long wav file that ended with a quiet “this is god. Can you hear me? I’d like to talk with you,” and set it to be the error sound on a friend’s PC.

                                Much hilarity ensued.

                                • Fnoord 5 hours ago

                                  Back in the late 90s, ICQ's "oh! oh!" (incoming message) has been used in media items (such as TV) about online threats such as malware, phishing, or just anything concerning children (such as online predators). One cool thing though was that there were entire sound packs to turn your ICQ into something else. And if you'd use it as ring-tone on your GSM (before that smartphone age) people around you would recognize it.

                                  I guess I could still use it when my wife messages me on Signal.

                                  • userbinator 5 hours ago

                                    That reminds me of the Hook Flash in telephony for getting an operator's attention: https://en.wikipedia.org/wiki/Hook_flash#History

                                  • lherron 5 hours ago

                                    Need someone to do this with the old THX test sound.

                                    • scyzoryk_xyz 7 hours ago

                                      The GitHub posts for MacBook lid making X sound are going to be a daily thing now

                                      • qwertytyyuu 6 hours ago

                                        How did this get number one spot on hacker news feed XD

                                        • DimmieMan 6 hours ago

                                          "wait you can do that?" + farts.

                                          There's something wonderful in only knowing that there's and entire lid angle sensor API in a macbook purely because someone reverse engineered it to make the laptop fart.

                                        • benguild 4 hours ago

                                          Been waiting for this

                                          • shawn_w 7 hours ago

                                            The modern whoopie cushion.

                                            • kaptain 2 hours ago

                                              Imagine a Beowulf cluster running this.

                                              • fragmede 6 hours ago

                                                Where's dbatalero when you need him! https://news.ycombinator.com/item?id=45120517

                                                (I will be sending a pull request just as soon as I get back to my laptop after dinner and seeing my nephews)

                                                • 2snakes 6 hours ago

                                                  What's next, pr0n sounds? lulz

                                                  • hulitu an hour ago

                                                    Diarrhea on the screen. /s