• benoau 9 hours ago

    There used to be iPhone apps that did something similar -

    https://www.theverge.com/2015/10/28/9625340/iphone-6s-gravit...

    • ashertrockman 9 hours ago

      If anyone happens to be using an iPhone 6S... http://touchscale.co/

      • hackmiester 8 hours ago

        This worked all the way up through the iPhone Xs.

        • jmb99 7 hours ago

          The single most irritating killed feature from Apple. Redesign half of their UI to rely on 3D Touch to make sense, then get rid of 3D Touch without redesigning the UI. Previewing links, moving the cursor, interacting with items, they’re all “press and hold until haptic feedback” instead of “quickly press hard and get immediate feedback.” Easier to accidentally trigger, slower to trigger on purpose.

          • 05 6 hours ago

            Hardware cost+extra weight (need to make the glass thicker to be able to handle extra force and not push on the display). Turns out nobody was really using it because discoverability sucked..

            • jmb99 6 hours ago

              Hardware cost & weight, fine. Glass doesn't need to be thicker than it currently is (I can press on my 13 Pro's screen about twice as hard as was needed for 3D Touch's max depth, and no issues with the screen), and the last time I replaced a battery on a 12, the screen was just as thick as the XS.

              >Turns out nobody was really using it because discoverability sucked..

              Sure, but then redesign the UI after removing 3D Touch to not be equally undiscoverable but less precise. Even on the latest iOS beta with its full redesign, there's still many, many actions that require a long press that are completely undiscoverable. (For example, if you don't have the Shazam app installed, go find the list of songs Siri has recognized when asked "What's this song?" Don't look up the answer.)

              • echoangle 2 hours ago

                > Glass doesn't need to be thicker than it currently is (I can press on my 13 Pro's screen about twice as hard as was needed for 3D Touch's max depth, and no issues with the screen)

                I dont think this is a great argument. The glass maybe needs to be thicker so the sensors on the border can properly measure the pressure, not because the screen is close to shattering.

                • sejje 2 hours ago

                  Maybe you had a hard time parsing his comment.

                  He is capable of pressing twice as hard as the feature required at maximum. The screen handles 2x the maximum without issues. Therefore, the glass is thick enough to handle half that pressure,as required by the feature.

                  It's a good argument.

                  • simondotau 6 minutes ago

                    For what it’s worth, I made the same parsing error upon first read.

                    • echoangle 2 hours ago

                      As far as I know, the pressure is measured around the edge of the screen. If the screen is thin enough, it could bend when pressed and the pressure applied to the center of the screen can’t be properly measured. I don’t think the problem with a too thin screen is the screen breaking when pressing it.

                • macNchz an hour ago

                  3D Touch was amazing for typing alone, I miss it basically every day when I type more than a couple of words on my phone. It was so great to be able to firm-press and slide to move the insertion point, or firmer press to select a word or create a selection. It was like a stripped down mobile version of the kind of write-and-edit flow of jumping around between words that I can get on a proper keyboard with Emacs keybindings drilled into my brain.

                  • yoz-y 3 hours ago

                    The discoverability sucked because Apple never rolled this out to all of the devices, themselves grossly under utilized the feature and eventually ghosted it.

                    It was by far the best cursor control paradigm on iOS. Now everything is long press which is slow and as error prone.

                    I’m all for proposing different paradigms as accessibility but 3dtouch was awesome.

                    • cluckindan 6 hours ago

                      Nobody? Really? It’s definitely the UX feature I miss most on modern iPhones. Long press feels janky in comparison.

                      • gxs 6 hours ago

                        Really? For me it’s the “open image in new tab” option in safari

                        Have no idea why you’d go out of your way to do that other than placating image sharing services

                    • bagels 4 hours ago

                      I hated when my mother in law came to me for help using her iPhone. She had a hard time controlling and understanding 3d touch.

                      • behnamoh 3 hours ago

                        I don't like it when old people are the reason the rest of us can't have nice things. Some grandma in Nebraska can't use 3D touch and now the rest of the demographic of Apple's customers are deprived of it.

                        • nottorp 2 hours ago

                          When I had an iPhone XS i could never understand how to predictably do a normal touch or a 3d touch, or where exactly the OS has different actions for one vs the other.

                          And I play games [1] using just my macbook pro's trackpad...

                          [1] For example, Minecraft works perfectly without a mouse. So does Path of Exile. First person shooters ofc don't.

                          • wat10000 3 hours ago

                            There was a principle of UI design that all UI actions should be discoverable, either with a visible button or a menu item in the menus at the top of the screen (or window on Windows). This is annoying for power users and frequently used actions, so those can also be made available with keyboard shortcuts or right-click actions or what have you, but they must always be optional. This allows power users to be power users without impacting usability for novices.

                            We've been losing this idea recently, especially in mobile UIs where there's a lot of functionality, not much space to put it in, and no equivalent of the menu bar.

                  • cryptoz 6 hours ago

                    You can use any phone with a barometer to make a scale. All iPhones since the 6, and all the Pixels, and Samsung flagships have one. You get a zip loc bag, blow some air into it, put your phone in running an app that shows the pressure in a big font (so you can see it through the ziploc). Then you put an object of known weight on it like a quarter (balanced carefully on top of the air-filled ziploc) and note the pressure change on the display. With that, I think the weight / pressure change scales linearly, so you can now weigh anything small that you can balance on the ziploc.

                    • xsmasher 3 hours ago

                      Wait, I know this one. You give the barometer to the superintendent if he tells you the height of the building.

                      • Raed667 2 hours ago

                        how about stacking the barometers ?

                        • rzzzt 2 hours ago

                          Do I measure the passenger plane with or without the ship?

                      • jbverschoor 4 hours ago

                        Dropbox shouldn’t exist either bc we have rsync ;)

                        • Nathan2055 3 hours ago

                          The infamous Dropbox comment[0] actually didn't even cite rsync; it recommended getting a remote FTP account, using curlftpfs to mount it locally, and then using SVN or CVS to get versioning support.

                          The double irony of that comment is that pretty much all of those technologies listed are obsolete now while Dropbox is still going strong: FTP has been mostly replaced with SFTP and rsync due to its lack of encryption and difficult to manage network architecture, direct mounting of remote hosts still happens but it's more typical in my experience to have local copies of everything that are then synced up with the remote host to provide redundancy, and CVS and SVN have been pretty much completely replaced with Git outside of some specialist and legacy use cases.

                          The "evaluating new products" xkcd[1] is extremely relevant, as is the continued ultra-success of Apple: developing new technologies, and then turning around and marketing those technologies to people who aren't already in this field working on them are effectively two completely different business models.

                          [0]: https://news.ycombinator.com/item?id=9224 [1]: https://xkcd.com/1497/

                        • nemosaltat 3 hours ago

                          no affiliation whatsoever but the app PHYPHOX has access to basically all of your iPhone sensors and can show the information in real time and save it, even has the capability of running a local python server so you can access it from a web browser on the same network or tethered device.

                        • kiddico 4 hours ago

                          I'm adding this to my list of obscure tools I have in the back of my head

                        • wanderingstan 7 hours ago

                          My memory was that the weight API was made private because they didn’t want people using iPhones for drug deals.

                          • notpushkin 8 hours ago
                          • hn_throwaway_99 9 hours ago

                            I think this is neat, but only in a Rube Goldberg machine sort of way. The instructions are:

                            1. Open the scale

                            2. Rest your finger on the trackpad

                            3. While mainting finger contact, put your object on the trackpad

                            4. Try and put as little pressure on the trackpad while still maintaining contact. This is the weight of your object

                            That is, the pressure sensors only work if it detects capacitance, so you need to be touching the track pad (but not too much!!) while weighing something.

                            • wanderingstan 7 hours ago

                              This is a very clever hack, exactly the sort of thing that belongs on Hacker News.

                              • namdnay 8 hours ago

                                Could a small piece of conductive foam or some cleverly layered tin foil+paper work? So put the object on the shim (which has a known or even negligeable weight)

                                • svnt 6 hours ago

                                  No, you need roughly a small human's worth of ground mass for most capacitive touch sensors to register a touch.

                                  • stavros an hour ago

                                    How do capacitive pens work?

                                    • bigyikes 3 hours ago

                                      Tape a wire to the trackpad and hold the wire?

                                    • acct-litter-al 5 hours ago

                                      I once put some aluminum duct tape completely over the touch pad of an old laptop to see what would happen. Turns out it induced enough "eddy currents" to make the mouse move around the screen without me touching it--in a way, visualizing the currents!

                                      I connected the foil to ground using a small strip of the tape to the ground metal of a USB port on the side and it disabled the touch pad.

                                      • acct-litter-al 4 hours ago

                                        Looking back, it would have been interesting to code up a program to record the movement of the mouse as a trail of pixels...

                                      • 83 7 hours ago

                                        Could probably make a small stand with nubbins from touch screen pens as the feet.

                                      • linux2647 8 hours ago

                                        Sometimes you can get capacitance to be detected if you hover your finger just millimeters over the trackpad

                                        • jihadjihad 7 hours ago

                                          Could you accurately weigh a hot dog?

                                          • dtgriscom 5 hours ago

                                            No, only cool ones.

                                          • ashertrockman 7 hours ago

                                            On iPhones at least a hack was to rest a metal spoon on the screen and weigh something in the spoon...

                                            • whycome 8 hours ago

                                              Can’t you get capacitance with a wet sponge? Like your typical dish cellulose sponge. You could make a small platform?

                                              • asimovDev 8 hours ago

                                                I remember drawing on my old iPad back in the day by shoving a wet q-tip into a BIC pen and using it as a stylus. I am sure something similar could be rigged here

                                                • dotancohen 7 hours ago

                                                  I've used carrots and cucumbers as a capacitive stylus while wearing gloves.

                                                  It's the reason why I love Note and S Ultra phones - the stylus. I'm using it now.

                                                  • doubled112 7 hours ago

                                                    The recipe was on your phone/tablet and there was no way you were taking your gloves off?

                                                    • dotancohen 6 hours ago

                                                      Nice. No, I preemptively armed myself with a carrot before taking the dog for a walk in cold weather.

                                                      I only had a non-stylus smartphone for a year and a half before whimpering back to the Note series. It's what keeps me in the Samsung sphere of influence.

                                                      • mietek 4 hours ago

                                                        I used my nose.

                                                      • throwanem 6 hours ago

                                                        Ever try putting gloves back on when your hands and the gloves are both wet? This is why I print recipes on the laser, and just take the paper version downstairs.

                                                      • Y_Y 6 hours ago

                                                        I use this to avoid touching the stupid self-checkout machines when buying groceries

                                                • skyboo 28 minutes ago

                                                  Reminds me of this from when I had an HDD Macbook https://uri.cat/software/LiquidMac/

                                                  • wingworks 21 minutes ago

                                                    That was such a cool app!

                                                  • ivanjermakov 6 hours ago

                                                    > TrackWeight utilizes the Open Multi-Touch Support library by Takuto Nakamura to gain private access to all mouse and trackpad events on macOS. This library provides detailed touch data including pressure readings that are normally inaccessible to standard applications.

                                                    How can something be available as a library but not as a native interface? Swift does not expose that API?

                                                    • bri3d 6 hours ago

                                                      Mac OS has "Private Frameworks" - shared libraries that are used by the system but don't ship with headers by default. It's trivial to produce these headers from the libraries, and then make wrappers for them like OpenMultitouchSupport which is a wrapper for MultitouchSupport.framework.

                                                      • anxman 3 hours ago

                                                        But just to note, I believe you can't pass Gatekeeper/Notary if you use these APIs so it's not possible to sign the app

                                                    • incanus77 8 hours ago

                                                      This reminds me of how, twenty years ago, I used the PowerBook’s hard drive vibration sensor to rig up a seismograph to measure construction noise:

                                                      https://allthegooddomainsweretaken.justinmiller.io/2007/04/0...

                                                      • dtgriscom 4 hours ago

                                                        I wrote that software, called SeisMac. Someone figured out the Apple-private API for the Sudden Motion Sensor that parks your laptop's hard drive if it detects free-fall. Working from that, I wrote a free app that used the API to show three-axis acceleration graphs. I was proudest of the calibration utility, which had you tip your laptop on its side (with properly rotated dialogs!), and then on its screen.

                                                        People would send me recordings from all over the world (e.g. on a ship in the Drake Passage showing enormous surges). It was a lot of fun, and I even got an educational grant to improve it.

                                                        Big bummer when Apple switched to solid-state drives (well, a bummer for my one small reason...)

                                                        [0]: https://en.wikipedia.org/wiki/Sudden_Motion_Sensor

                                                        • incanus77 2 hours ago

                                                          Awesome, the name rings a bell now! Thanks for that. Honestly didn't remember the software involved (nowadays, I'd mention it in the blog post).

                                                        • CalChris 7 hours ago

                                                          I used an iPhone as an air pressure recorder. There's an app for that; many actually. Anyways, the trunk gate on my car wasn't sealing and when it went over pavement joints on the highway it would slightly open and then close in quick succession which was nauseating. I showed the data to Tesla service and they (grumbled and) readjusted the trunk gate. The problem disappeared.

                                                          • stockresearcher 8 hours ago

                                                            I heard that IBM decided to move out of this building [1] because vibration due to the construction of the tower across the street kept destroying hard drives in their computing center.

                                                            [1] https://en.wikipedia.org/wiki/330_North_Wabash

                                                            • mananaysiempre 7 hours ago

                                                              Obligatory link to Brendan Gregg shouting at hard drives: https://www.youtube.com/watch?v=tDacjrSCeq4.

                                                              • js2 7 hours ago

                                                                Gosh I hope there are some lucky 10K seeing this today.

                                                                • stavros an hour ago

                                                                  I was one!

                                                            • bitwize 8 hours ago

                                                              Reminds me of the people who used their ThinkPad's vibration sensor to detect smacks on the machine, and rigged their X window manager to switch virtual desktops when smacked from the appropriate side, panning right when smacked on the left, and left when smacked on the right.

                                                              • 1bpp 8 hours ago

                                                                this update breaks my case smacking workflow, please revert

                                                                • incanus77 7 hours ago

                                                                  Oh, I vaguely remember someone hacking that for some sort of windowing back then on OS X!

                                                            • mikpanko 5 hours ago

                                                              Very cool. Curious: what is the minimum and maximum weight MacBook's trackpad can reliably measure this way?

                                                              • pmxi 8 hours ago

                                                                This is clever! and potentially useful too.

                                                                Have you done any testing to determine how precise and accurate this is? I suspect their must be a lot of variance between laptops, since this isn’t an intended use case.

                                                                • cluckindan 6 hours ago

                                                                  I would assume Apple hardware comes precalibrated. Homogeneity is everything for their product lines, down to individual calibration of screens and audio hardware. It would be weird to get a new laptop and have its trackpad feel different.

                                                                  • hbn 4 hours ago

                                                                    They have a setting for adjusting the pressure needed to activate a click.

                                                                    I wonder if that affects this app at all.

                                                                  • mschuster91 8 hours ago

                                                                    > I suspect their must be a lot of variance between laptops, since this isn’t an intended use case.

                                                                    Yeah and so it is for ordinary strain gauges aka load cells. You can either use a 2 point calibration (aka no load followed by known load) or if you want more precision a 3 point calibration.

                                                                    [1] https://en.wikipedia.org/wiki/Load_cell

                                                                  • pavon 4 hours ago

                                                                    I love this, such a creative hack, and the wonderful irony that it only works when one has their finger on the scale.

                                                                    * Not legal for trade outside of Ankh-Morpork.

                                                                    • jordanmorgan10 6 hours ago

                                                                      Back when we had 3D Touch, there was UIForce which did this. I still lament the loss of 3D Touch to this day :-(

                                                                      • volemo 5 hours ago

                                                                        It was such a useful feature! I mourn it every time I try to save a picture from Google and iOS selects nonexistent text around it. :(

                                                                      • jahantech 5 hours ago

                                                                        This is exactly why normal people call us geeks "weird". Keep bringing on the cool stuff!

                                                                        • mig39 7 hours ago

                                                                          Very cool, Krish! Hi from Fort McMurray! I'm going to use this project as an example for a Computer Science class.

                                                                          • qoez 8 hours ago

                                                                            Apparantely on safari there's touch strength so this should be possible to make for the web too, cool

                                                                            • ashertrockman 7 hours ago

                                                                              Somebody could use this as a starting point. http://touchscale.co/ You'd have to collect new data on touch strength vs. weight to get the regression parameters.

                                                                              (If you do this, let me know and I can add it to the site above, and then we can both delight in the surprisingly large amount of unmonetizable traffic it gets.)

                                                                            • arm32 6 hours ago

                                                                              I must not use this for weed, I must not use this for weed, I must not use this for weed

                                                                              • dmd 6 hours ago

                                                                                Why not?

                                                                                • ThatMedicIsASpy 5 hours ago

                                                                                  Weed can be sticky depending on the strain/harvest/cure time

                                                                                  • arm32 5 hours ago

                                                                                    The sticky icky would completely destroy my beautiful, black M3 MBP.

                                                                              • projektfu 4 hours ago

                                                                                Could it be used to provide gait analysis for your pet mouse?

                                                                                • subdev 4 hours ago

                                                                                  How does one come up with this idea?

                                                                                  • koiueo 3 hours ago

                                                                                    Finally, some actually useful usage scenario for that oversized trackpad

                                                                                    • qwertytyyuu 9 hours ago

                                                                                      Ah I remember being able to do this with the iPhone 6s

                                                                                      • DonHopkins 8 hours ago

                                                                                        Just what I need to roll the quantitative doobie.

                                                                                        • thrownawaysz 8 hours ago

                                                                                          Can someone compile a binary? Don't want to download Xcode just for that...

                                                                                          • byyoung3 2 hours ago

                                                                                            great work

                                                                                            • fnord77 5 hours ago

                                                                                              What's the weight range it can handle? no mention of it and I don't want to dig through code

                                                                                              • tln 9 hours ago

                                                                                                No download link?

                                                                                                • ChrisMarshallNY 8 hours ago

                                                                                                  I think it's a DIY project.

                                                                                                  • addandsubtract 7 hours ago

                                                                                                    DIY projects can't be downloaded?

                                                                                                    • ChrisMarshallNY 6 hours ago

                                                                                                      By "downloaded," I expect that you mean "Built, tested, and deployed." It's not an App Store app. It's basically a technology demo. Get Xcode, and build it and run it.

                                                                                                      • lucasoshiro 2 hours ago

                                                                                                        A .dmg or at least a CLI instruction would really help

                                                                                                        • ChrisMarshallNY 2 hours ago

                                                                                                          You could always request that from the author. Since it's a Mac app, they could do that. Not so, if it were an iOS app.

                                                                                                          It's a pretty basic SwiftUI app. They haven't really polished it, so I could see why they might not be interested in making it much more accessible. It's a tool for Mac geeks.

                                                                                                          Speaking for myself, I have a whole bunch of packages, and almost every one has a test harness. Many of the test harnesses are "full-fat" iOS apps, so they can't be provided as releases, unless I create an App Store app for each one.

                                                                                                          They need to be built and run. A couple are Mac apps, but the whole deal with them, is that they are test harnesses, so divorcing them from the IDE is sort of negating their purpose. They are meant to help other Apple developers to understand and use the packages the apps are associated with.

                                                                                                • theyknowitsxmas 7 hours ago

                                                                                                  Apple would've made an app a long time ago but would get sued after someone put a tire on it.

                                                                                                  • mrexroad 7 hours ago

                                                                                                    I can already picture the Reddit post of an inverted aeropress brew fail while using trackpad as scale.

                                                                                                  • ynniv 6 hours ago

                                                                                                    Finally some hacker news

                                                                                                    • ChrisMarshallNY 9 hours ago

                                                                                                      Very cool, but I'd still probably just buy a cheap digital scale.