HNHacker News
TopNewBestAskShowJobs

sharth

254 karma · joined April 18, 2010

submissionscomments
sharth··on Chase to become new issuer of Apple Card
Isn't the Citi Double Cash the canonical 2% card?
sharth··on The New York Stock Exchange to Launch NYSE Texas
What's the actual difference between NYSE Texas and the traditional NYSE?
sharth··on One of my papers got declined today
But the journal editor should.
sharth··on Government URLs that don't end in .gov
There are still plenty of subdomains, for example, https://www.cnusd.k12.ca.us/
sharth··on US apps send thousands of private photos to Swiss police
The article that this article links to says that the FBI has shared thousands of photos with Swiss Police.
sharth··on Keeping Time with Amazon Time Sync Service
https://developers.google.com/time/smear
sharth··on Alphabet Finishes Reorganization with New XXVI Company
Telegram and Snapchat are probably the most reasonable companies.
sharth··on Ask HN: How to quantify tax deduction for donations?
Note that the person in the lowest tax bracket is likely not itemizing their deductions, so their cost is more like 100%.
sharth··on How copying an int made my code 11 times faster
In this particular case, you'd likely be using printf or cout, both of which perform a copy of integer parameters.

So you wouldn't see this there.

sharth··on 1Password – Standalone licenses vs. new subscription service
For example, Lastpass recently had an exploit in their extension: https://news.ycombinator.com/item?id=12171547
sharth··on The “C Is Efficient” Language Fallacy (2006)
The first line of your reference says that restrict __is__ part of the C99 standard.
sharth··on Mistakes to avoid with C++ 11 smart pointers
If you're going to pass it by const_ref, why not just pass the actual stored object by const_ref instead?
sharth··on LPs are feeling the pressure of startups not finding exits
Limited Partner and General Partner.

https://www.quora.com/What-is-the-difference-between-Limited...

sharth··on Adam Liaw: five simple dishes, and the mistakes you’re making with them (2015)
You probably intended to include this link: http://www.theguardian.com/lifeandstyle/australia-food-blog/...
sharth··on Ask HN: Best tools for scheduling emails with gmail?
http://www.followupthen.com
sharth··on What happened with your Internet last night, and what we are doing about it
They have since 2009.

https://developers.google.com/speed/public-dns/docs/using

sharth··on Is Private Internet Access injecting their own Google cert?
What is "Private Internet Access"?
sharth··on Programmatically solve this Vietnamese math problem for kids
1/2 + 4/8 == an integer.
sharth··on Programmatically solve this Vietnamese math problem for kids
So we can actually iterate over every possible solution pretty quickly. If I cared more, I'd look into using `fractions.Fraction` so that I didn't need to use floating point math.

    from __future__ import division
    import itertools
    
    def f(a, b, c, d, e, f, g, h, i):
        return a + 13 * b / c + d + 12 * e - f - 11 + g * h / i - 10
    
    for choices in itertools.permutations(range(1, 10), 9):
        if abs(f(*choices) - 66) < 0.001:
            print choices
There are also some solution that your code will give that are wrong due to your code using integer division.
sharth··on Two problems I had to solve in my Oxford interview (2013)
The second problem would be clearer if we knew how much scratch space we had. Is it zero? Is it O(1)? Is it O(n)?
sharth··on Embarrassing code I wrote under stress at a job interview
It's certainly a matrix if the other elements are 0. If they have no value then a hash-map or what not makes sense.
sharth··on Ask HN: Browser plugins to unfuck scrolling?
Apple has a great example of a website design that drives me mad: http://www.apple.com/mac-pro/
sharth··on Ask HN: Internships for a 13-year-old?
No US company can legally hire you. The only exception I know of is working for your parents.

http://www.youthrules.dol.gov/know-the-limits/under14.htm

You can legally work as a computer programmer once you are 14, but there are strict restrictions on the number of hours you are able to work.

sharth··on CNNIC's response to Google
Who could you possibly call at say Capital One to verify that a change in their certificate was intended instead of malicious?
sharth··on CNNIC's response to Google
It's a dot org: https://letsencrypt.org
sharth··on The new MacBook's single port comes with a security risk
So... bring your own charger? Does your coffee shop normally provide you a laptop charger?
sharth··on The new MacBook's single port comes with a security risk
One of the suggested alternate modes in the specification is a PCIe bus. This would most likely support bus mastering, and thus a full DMA engine.

This certainly requires some host cooperation, but I imagine that the fear is that these drivers start to be distributed in the OS by default.

One of the BadUSB vectors is a USB keyboard, which is a fairly well expected driver to be included with the OS.

sharth··on Ask HN: How to Download Linux Mint Kernel Source?
Your apt/sources.list says that you are running __trusty__, not Rebecca or Cinnamon. And Trusty was never a codename for a Linux Mint release.

You should probably edit trusty in that file to the proper codename for your os. A list of valid ones can be found here: http://packages.linuxmint.com/dists/

Once you've done that, you should be able to run apt-get update, and apt-get upgrade.

Then, I wouldn't be surprised if Debian's instructions on building a new kernel package wouldn't work: https://www.debian.org/releases/stable/i386/ch08s06.html.en

sharth··on The new MacBook
http://www.usb.org/developers/powerdelivery/
sharth··on The new MacBook
USB Type C to USB Standard A Receptacle adapters are supported by the USB specification.

As I understand things, the desire from the USB-IF is to basically have USB Type A and Type B start to disappear.

Until we get to that critical mass point... Yeah. It'll be annoying. But hopefully we will get to enjoy this standard for at least a few years before it is replaced.

Page 1 of 5Next →