HNHacker News
TopNewBestAskShowJobs

piyush_soni

2,285 karma · joined June 25, 2012

meet.hn/city/in-Pune

Interests: Programming, Remote Work, Education, Hardware, Music, Philosophy, Science, Space Tech, Technology

---

submissionscomments
piyush_soni··on Show HN: Smart Color Replacer with HSV tolerance and edge snapping
After getting tired of Photoshop's magic wand failing on product photos, I built this color replacer with features most online tools don't have:

• HSV tolerance (not RGB) - Catches all blues regardless of lighting while ignoring whites/grays that RGB tools pick up

• Magnetic lasso-style edge snapping - Uses Sobel edge detection so polygon vertices snap to object boundaries automatically. Green vertices = snapped, yellow = free placement

• Multiple independent color pairs - Replace 5 different shades with tight tolerances instead of cranking up one slider and getting color bleed

• Preserve shading toggle - Change a pink shirt to blue while keeping all fabric folds, shadows, and highlights intact

• Editable polygons - Drag vertices after closing, undo points, hide overlay while keeping selection active

• Remove colors → transparency - Perfect for background removal when you know the bg color

Problem with RGB: White (255,255,255) is mathematically close to Light Pink (255,182,193). HSV separates Hue from Saturation/Value, so you can target "all pinks" while excluding "anything low-saturation" (whites/grays).

Free, browser-based, no account needed. Built for e-commerce product recoloring and design mockups where simple flood-fill tools fail.

piyush_soni··on Show HN: Best JSON Comparison Tool
I liked the clean interface and on-point functionality, but I loved the loading performance! Several websites which I regularly use for doing JSON diff are extremely slow for large documents. This one does it instantly. Nice work!
piyush_soni··on Apple introduces a universal design across platforms
Man. They way they market and sell 'average' stuff which won't even raise an eyebrow if it came from any other company is remarkable.
piyush_soni··on Show HN: Chili3d – A open-source, browser-based 3D CAD application
I don't know where you see such a line in Onshape's ToS. Can you point me to it? IANAL (and speak only in an individual's capacity who is hopefully reading the same ToS), but the public documents you create as a free user are essentially in "public domain", so even though you still 'own' it, you grant a broad, "worldwide, royalty-free and non-exclusive license to any End User or third party" to use the intellectual property within that document "without restriction". This includes the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of it.
piyush_soni··on Show HN: Chili3d – A open-source, browser-based 3D CAD application
I'm sorry, as far as I know the leadership is pretty clear on that. For a foreseeable future CAM will remain a Pro only feature.
piyush_soni··on Show HN: Chili3d – A open-source, browser-based 3D CAD application
> But I just know, at some point Onshape will start charging us freeriders.

- I don't know about that, may be, may be not, but I don't know of any such plan in the short term at least. It gives University students a free 'professional' license so there's that too.

> Just fill pattern and text are always a struggle.

Feel free to create a support ticket about your pain points. Everyone can easily do that, and Onshape is surprisingly more responsive to support tickets than many other companies.

piyush_soni··on Show HN: Chili3d – A open-source, browser-based 3D CAD application
Onshape employee here. I agree with another poster that for most "non-professional" requirements Onshape's free tier is all one should need - sure, the documents remain public if you don't pay. It's prohibitively expensive to maintain the technology stack with the complexity, scale and performance that Onshape does, and its costs a lot of money. :)
piyush_soni··on Googler... ex-Googler
Sundar Pichai. That's what changed. He's one of the most uninspiring tech leaders of today who just wants to run an already established business with more and more ads with some AI sprinkled upon everything. And cost cutting. That's all, that's his entire vision.
piyush_soni··on Smartphone buyers meh on AI, care more about battery life
Then why are you using it? I tried using Gemini once on my Pixel 6. Couldn't play music on Youtube music on verbal instructions, I switched back to Google Assistant. Will try it again after 6 months now. :)
piyush_soni··on OOP is not that bad
I do understand 3 * O(n) is just O(n), thanks. I was just clarifying my initial typo. However, it's still three/four times the iterations needed - and that matters in performance critical code. One is terminology, and the other is practical difference in code execution time that matters more, and thus needs to be understood better. You might not 'care about constant factors' but they do actually affect performance :).
piyush_soni··on OOP is not that bad
Yes, wrote quickly without thinking. Even if it doesn't change the complexity, it's still three or four times the operations.
piyush_soni··on OOP is not that bad
Oh yes, sorry I meant to write 3 * O(n) which though doesn't change the order is still three times the operations. The example I was remembering was doing filters 'inside' maps.
piyush_soni··on OOP is not that bad
> Keep data transforms and algorithmic calculations in functional style

What annoys me greatly though is kids coding various 'fancy' functional paradigms for data transformation without realizing their performance implications, still thinking they've actually done the 'smarter' thing by transforming it multiple times and changing a simple loop to three or four loops. Example : Array.map.filter.map.reduce. Also when talked about it, they have learned to respond with another fancy term : "that would be premature optimization". :|

piyush_soni··on Google Pixel 9 Pro
Really? I mean it 'saves your time' by not having you to keep waiting so that you can do something else in that time. I don't know how that is not useful. Even if I'm not doing anything world changing in those 3 minutes, it will save me some stress.
piyush_soni··on Coinbase awarded a $500k bug bounty
In the Right panel on the page: $1,996,583 Total bounties paid

I don't know if I should feel happy or concerned about the security policies of a company that has already given 2 million USD in bug bounties :).

piyush_soni··on U.S. sues Apple, accusing it of maintaining an iPhone monopoly
Yes, but of course, that takes more data without their compression and one eventually has to pay more for storage as expected, but at least that option is there.
piyush_soni··on macOS Sonoma 14.4 might break Java on your machine
> It would be pretty darn annoying if an accidental key press could just delete a file! : - Isn't the 'Bin' made exactly for that purpose? And also, just like any other accidental delete, Undo is always there. Very easy!

> The problem is, where does a file go in between the time you cut and you paste? : - It doesn't have to go anywhere, it's just "marked for" 'cut', just like a file marked for copying doesn't go anywhere until you paste it. All other Operating Systems have got it exactly right for eons. If you accidentally copy something else, that mark is removed, and the file is still happily sitting where it was. (Windows even shows it visually in their File Explorer). No safety hazard. I don't understand your other point - be it my entire life's work, it's always at one place or the other. It can't go to a third place, and in any case Undo and Bin are always there. At least in Windows moved files go back to their previous places on Undo. This is a much more intuitive default, making sure a recovery option is always there for exceptions.

> `View` → `Show Path Bar` : Yes, that's what I had done, but imagine having a proper address bar which both tells you where you are, and is editable so can be used to paste a new address to go to. That will be much more intuitive, and that's what other OSs have done.

> Click the gear in the toolbar → `paste`. : I don't see a gear icon, but sure, I can also do it using Cmd+V and also from the Edit Menu. But a 'Paste Item' is still there in the Context menu that is unusable in a lot of situations. Wasn't Steve Jobs really particular about pixel perfectness? I don't see that here.

I didn't even talk about my other problems with this OS especially when you use non-Apple hardware. I just want to point out that unlike what a lot of people believe, Windows (and even modern Linux) UI is much more intuitive and arguably causes less repetitive strain injury to our hands with more frequent OS operations made easier. The only thing I had found great in Mac's UI was Spotlight (though even that leaves a lot to be desired), but Windows now offers that too under their new PowerToys fleet of applications (less capable in some places but it should only get better) and I think people should give it a try.

piyush_soni··on macOS Sonoma 14.4 might break Java on your machine
Oh, then you were probably not pissed enough to search more thoroughly. :) Fortunately, there's a godsend man who wrote a utility called 'PresButan' - https://briankendall.net/presButan/index.htm . Doesn't always auto launch with the OS start for some reason, but works great when it's running and fixes this madness.
piyush_soni··on macOS Sonoma 14.4 might break Java on your machine
It's the built-in mac display that goes blank along with the external monitor. On my Intel 2019 MBP it was very slow (many seconds), on this new M3 it's much shorter but still more than a decent Windows laptop which is almost instant.
piyush_soni··on macOS Sonoma 14.4 might break Java on your machine
Oh ... Where to begin. I can write an essay on it, but just to name a few:

1. There's a button on my M3 Mac keyboard that says 'delete'. It deletes stuff everywhere else, but welcome to Finder, this simple button doesn't delete a file or a folder. They thought giving it a two/three keys combination was a better idea.

2. Similarly, they thought you rename file/folders more often in a day than you open them. Why else would they make you press two keys to open one, and the most common single button in the world to open files (Enter/return) to rename one instead?

3. No 'Cut' (I know the alternatives). One might find it surprising but there are fans that defend even this move - they say it's because this is more "intuitive". You only copy everything first and only at the time of pasting you decide whether you want to move it or copy it. I say, if that's really the case, why does every other app and Editor (including the ones made by Apple) have a Cut option? Why don't we always follow this more intuitive method of "copying" first and then pressing the Option button while pasting. Let's remove Cut from everything and see how intuitive people find it.

4. By default, the Finder doesn't even tell you where you are. That's a basic requirement from a File Manager. Sure, fiddle with the settings and at some place you'll find an option to kind of enable that.

5. No option to quickly create a text/other file in a given folder. If you've struggled enough and enabled the view where you're able to see where you are at the moment, there's a _chance_ you'd also see that from that view you can actually go to Terminal directly in that folder. Go there, and type `touch <filename>` to create a file in that folder.

6. You got a full path to go to somewhere on the disk. You quickly open Finder. Oh, the default view doesn't even have a place to paste it and hit Enter. Who could have thought to hide it? Same problem with the native 'File Open' dialog that's used by all the other apps on the system. Even if you have the full file path, unless you go to settings you won't find a way to go to that file directly.

7. No easy (if at all) way to persistently map a network drive that automatically remaps when the network drive is available. You have to keep connecting to the SMB server again and again.

8. Side bar folder shortcuts get removed when the folder is deleted and recreated for any reason. You have to recreate them. Not sure who made all these decisions or if they were even thought about.

9. No straight way to even 'Refresh' the files in a folder. Try going out and in, closing and reopening Finder and just 'hope' that it will update and show the newly created files or changed file properties outside. Many times it just doesn't.

10. 'Get Info' allows you to also 'Set' (a lot of) Info. This is UX 101. They could have just named it `Properties` instead.

11. Hell, you can't even maximize this app window by double clicking on the Title bar, unlike for example another Apple made app 'App Store'. No consistency.

12. In List view there's no padding, I can't even find a place where I can right click and paste a previously copied file in the 'current folder', without it hitting a subfolder and pasting the files into that instead (assuming the folder has many folders inside). I'm surprised no one found it in internal user testing.

These are just off top of my head, I'm sure I can find more if I spend some time. There might be involved solutions to these, but there's no way we can call this an 'intuitive' interface. And this is just one application in the whole Operation System.

piyush_soni··on macOS Sonoma 14.4 might break Java on your machine
I have a modern Dell supported 4K display supporting USB-C to USB-C connection. macOS shows black screen for a few seconds before being able to show anything. Also using the 4K monitor with an actual 4K resolution makes everything very slow, so I just use it with lower resolutions :|. Never saw such issues on even entry level Windows laptops.
piyush_soni··on macOS Sonoma 14.4 might break Java on your machine
Wow, I thought I'm the only one as when asked in my Team no one agreed to facing these issues - but I faced it on multiple new Macbook Pros.
piyush_soni··on macOS Sonoma 14.4 might break Java on your machine
Completely agree. Have been using a MBP for almost three years now at work (after using Windows machines for a couple of decades), and I can see how laughable many of the design decisions in macOS are (though I highly doubt they were deliberate 'decisions' at all), and I still fail to understand why people use them over Windows or Linux (sure, great hardware, mostly). It's probably fine as a consumer device, but for developers/power users the UI/UX is just bad. Finder, the built-in File Manager is an abomination of a software. It's like someone paid them to deliberately write a bad quality application.
piyush_soni··on Don't fuck with paste
Wow. That would be a wonderful game of treasure hunt. Fortunately I've not come across that so far :D
piyush_soni··on Don't fuck with paste
Even worse, when on top of all these they add an arbitrary length requirement: It can't be less than 8 letters OR more than 12. :|
piyush_soni··on My favourite animation trick: exponential smoothing (2023)
I would always do that on my previous (slower) Android phones, but it's NOT because they added to the usability, just that they slowed down the interaction significantly when the GPU etc. were not capable enough. On my latest Pixel, I don't do that anymore and just enjoy the animations because they don't slow down my daily interactions anymore. So your point does not actually convey that Animations are useless. They just have a toll on performance, yes. They always will. (I work in an industry where we spend a lot of time perfecting 3D geometry animations, because our users prefer it).
piyush_soni··on Firsty.app – free 300kbit/s eSIM for US/EU
Those data rates look outrageous! When I visited countries like USA/France, I got international roaming enabled on my phone and it was still close to effectively 1 USD per day, though data was limited to total 5 GB for a month's plan or 1 GB for 10 days. It was fine however as most hotels have Wi-Fi anyway.
piyush_soni··on Firsty.app – free 300kbit/s eSIM for US/EU
It will be available in India and most other countries by the end of March according to their own website, and I don't think they're going to change their rates in a month's time.
piyush_soni··on Firsty.app – free 300kbit/s eSIM for US/EU
I don't know because I've never taken a one day prepaid card, but had I been visiting India as a foreigner I'd just buy a local prepaid card for a month considering it's so cheap.
piyush_soni··on Firsty.app – free 300kbit/s eSIM for US/EU
Wow. 1.95 euros a day for the non-ad version? In India (where I live) I pay less than 3 euros a month for a 1.5GB everyday 5G connection and unlimited nationwide calls. So it's definitely not a "fair local rate" as they claim.
Page 1 of 34Next →