News for hackers. Stuff that matters.

sharth

Re:Chase to become new issuer of Apple Card on Thursday January 08, 2026 @01:29AM (#46537902)
Isn't the Citi Double Cash the canonical 2% card?
Re:The New York Stock Exchange to Launch NYSE Texas on Friday February 14, 2025 @02:11AM (#43045707)
What's the actual difference between NYSE Texas and the traditional NYSE?
Re:Terence Tao: One of my papers got declined today on Wednesday January 01, 2025 @06:14PM (#42570104)
But the journal editor should.
Re:Government URLs that don't end in .gov on Monday July 24, 2023 @01:41AM (#36843509)
There are still plenty of subdomains, for example, https://www.cnusd.k12.ca.us/
Re:US apps send thousands of private photos to Swiss police on Sunday September 29, 2019 @08:08PM (#21110546)
The article that this article links to says that the FBI has shared thousands of photos with Swiss Police.
Re:Alphabet Finishes Reorganization with New XXVI Company on Monday September 04, 2017 @01:09AM (#15165866)
Telegram and Snapchat are probably the most reasonable companies.
Re:Ask HN: How to quantify tax deduction for donations? on Monday February 20, 2017 @12:05PM (#13688856)
Note that the person in the lowest tax bracket is likely not itemizing their deductions, so their cost is more like 100%.
Re:How copying an int made my code 11 times faster on Sunday February 19, 2017 @08:56PM (#13683630)
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.

For example, Lastpass recently had an exploit in their extension: https://news.ycombinator.com/item?id=12171547
Re:The “C Is Efficient” Language Fallacy (2006) on Sunday June 19, 2016 @02:29PM (#11933983)
The first line of your reference says that restrict __is__ part of the C99 standard.
Re:Mistakes to avoid with C++ 11 smart pointers on Saturday May 14, 2016 @09:53PM (#11698996)
If you're going to pass it by const_ref, why not just pass the actual stored object by const_ref instead?
What is "Private Internet Access"?
1/2 + 4/8 == an integer.
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.
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)?
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.
Re:Ask HN: Browser plugins to unfuck scrolling? on Sunday April 19, 2015 @05:35PM (#9404971)
Apple has a great example of a website design that drives me mad: http://www.apple.com/mac-pro/
Re:Ask HN: Internships for a 13-year-old? on Friday April 03, 2015 @12:24PM (#9316752)
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.

Re:CNNIC's response to Google on Thursday April 02, 2015 @12:59PM (#9311912)
Who could you possibly call at say Capital One to verify that a change in their certificate was intended instead of malicious?
Re:CNNIC's response to Google on Thursday April 02, 2015 @12:44PM (#9311812)
It's a dot org: https://letsencrypt.org
So... bring your own charger? Does your coffee shop normally provide you a laptop charger?
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.

Re:Ask HN: How to Download Linux Mint Kernel Source? on Tuesday March 10, 2015 @11:47AM (#9178355)
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

Re:The new MacBook on Monday March 09, 2015 @02:14PM (#9172646)
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.

Older »