News for hackers. Stuff that matters.

imran3740

Show HN: Monte Carlo simulator for March Madness bracket pools

https://madness.imranh.org/

For those of you with March Madness brackets (specifically on ESPN), my friend and I made a site that simulates the tournament thousands of times to show you:- every bracket's chances of winning your group,- how each outcome of upcoming games affect those chances (you don't always want your pick to win!), and- you can also manually select the outcomes of future games to re-run the simulator...

( Read More... | no comments | 2 points | on HN )
Re:Sensible macOS Defaults on Saturday March 20, 2021 @03:27PM (#26525457)
The $10/mo is for a subscription to Setapp, which bundles a bunch of apps into one subscription service.
Re:Why Should You Learn Vim in 2020 on Wednesday August 05, 2020 @05:10PM (#24065621)
I'd also recommend Neovim[0], a community-led fork of Vim. One of the focuses of Neovim is exposing an API that lets other apps embed a headless instance in their UIs. This lets you use your Neovim editor along with all its configuration and plugins inside other apps! I've never been satisfied with any of the available vim emulator plugins out there for VSCode, IntelliJ, etc. (there's always something missing!), so this feature has been really valuable to me if I need a better debugging experience but want to use nvim as much as possible.

Someone's already made plugins that embed a Neovim instance right inside VSCode[1] and Sublime Text[2]. There's no emulation here, just straight up neovim running behind those buffers. I've tried VSCode with that plugin (though personally I like to stick to just neovim when I can), and I can say that despite some minor bugs it's been a pretty smooth experience. Even stuff like `gt` to change editor tabs is supported.

[0]: https://neovim.io/

[1]: https://github.com/asvetliakov/vscode-neovim

[2]: https://github.com/lunixbochs/actualvim

Re:MacBook Pro Keyboard Drives Me Crazy on Wednesday August 28, 2019 @07:38PM (#20825194)
I feel like the keyboard issue is the prime example of why companies shouldn't have monopolies on who runs their OS. Sure on the one hand, they control everything and when things work, they Just Work (TM). On the other hand, they control everything and will inevitably screw something up. Your option? Deal with it, or change laptops. Oh, and change OSes too, since that was your only option for macOS.
It's essentially encrypted text, which Git handles just fine.
I actually do this with the subkeys I put on my Yubikey, and thanks to the NFC capability, I can use it on Android.

I've been wanting to switch to a Yubikey with USB-C, since both my laptop and phone have that port and I don't have to rely on NFC, but this has been working fine so I can't really justify the cost.

I use pass[0], which is essentially just a wrapper on top of Git and GPG. All your secrets are stored in text files that are then encrypted by your GPG key, which is then tracked in a Git repo that you can store anywhere. I use the PassFF extension[1] for Firefox, and Password Store for Android[2]. There are plenty of pass-compatible clients for all platforms and extensions for pass on the first site.

If I need to get my password for eg. GitHub outside of Firefox, I just type `$ pass -c dev/github`, decrypt, and it's in my clipboard for 45 seconds.

[0]: https://www.passwordstore.org/

[1]: https://addons.mozilla.org/en-US/firefox/addon/passff/

[2]: https://github.com/zeapo/Android-Password-Store

Re:Privacy-friendly alternatives to Google on Tuesday June 18, 2019 @11:07AM (#20213912)
Same with Notion. If you read their privacy policy, data is not stored encrypted at rest, so I wouldn't view them as privacy-friendly.
Re:Mazda is purging touchscreens from its vehicles on Monday June 17, 2019 @09:38AM (#20202778)
> Press a button and the screen would push back and/or buzz

What do you mean by "press"?

"Pressing" a button (ie. pressing down on it) requires a bit more force than just touching it, so this seems like bad UX to me.

Even if you only were to have the device buzz as you touch any interactive control, I feel like that would start to feel real gimmicky real fast. There's probably a reason that technology didn't make it past CES.

Zvi Mowshowitz put the concept of "slack" well: https://thezvi.wordpress.com/2017/09/30/slack/
Re:Generate new repositories with repository templates on Saturday June 08, 2019 @03:08PM (#20134395)
No, this does not preserve the history of the repo, just gives a single commit with the existing files. You might also think of this as cloning, then squashing down the entire history (well, everything in master anyways) to a single (root) commit.
Re:Apple App Store Principles and Practices on Wednesday May 29, 2019 @02:22PM (#20043592)
I find it funny that Apple themselves mentions that for "Reader" apps users can make purchases outside of the iOS environment, but developers are expressly forbidden from even mentioning this in their app.
What about a physical killswitch goes against Apple's design? The iPhone has always had a ringer/vibrate switch on its side since it was introduced. Obviously it doesn't do anything hardware-wise, but it's still a switch that disables some functionality.
Relevant article from the socialist Current Affairs magazine: https://www.currentaffairs.org/2018/01/everyones-a-leftist-o...
Re:Windows Calculator invalid input with 10^x function on Thursday August 02, 2018 @10:07PM (#17676848)
Just checked, calc fails at 11^0.41703 (curiously not at 41703, but 41704, maybe a floating point thing). Maybe it changes base to e and uses the Taylor series for e^x, but fails if x is too precise for what it expects?
Re:USB Type-C is still a mess on Monday June 11, 2018 @01:55PM (#17286680)
I mean, USB-C seems to be the direction we're going anyways, plus it offers a lot more flexibility for audio eg. allows for active components like a higher-end DAC or amp on the headphones.

Most people probably wouldn't really care for this, and the ones who do probably have portable media players already, so I would prefer to keep the headphone jack. The reality is, though, that USB-C appears to be the future.

Re:The Repeal of Net Neutrality Is Official on Monday June 11, 2018 @01:48PM (#17286609)
Right, which is why you could argue that downtick was orchestrated. In that article you linked Pai cited research claiming investments went down, but Free Press found otherwise.
Re:The Repeal of Net Neutrality Is Official on Monday June 11, 2018 @01:24PM (#17286409)
I'm really not sure, that's Pai's argument. It seems to be a mixed bag [1][2]. Some ISPs don't mind the regulatory burden, and some don't really notice it. Bigger ISPs (like Verizon) also claim that this regulation hurts innovation, and corroborate that with a downtick in broadband investments in 2015 when the rules passed, but for all we know that could have been orchestrated.

[1]: https://www.engadget.com/2017/12/13/net-neutrality-small-isp...

[2]: https://www.fastcompany.com/40499904/small-isp-disputes-fcc-...

Re:USB Type-C is still a mess on Monday June 11, 2018 @01:01PM (#17286162)
> Port shortages

Would it hurt anyone to put two USB-C ports on a smartphone? Thank goodness my phone still has a 3.5mm jack, but some people would like to charge their phone and listen to (wired) audio without having to buy an adapter. And it's not like this is an uncommon use case either, anecdotally some of my friends with iPhones face this issue.

Re:The Repeal of Net Neutrality Is Official on Monday June 11, 2018 @12:52PM (#17286042)
By virtue of this state being regulated, smaller businesses have to spend a non-trivial percentage of their money ensuring compliance with regulation.

Older »