Better HN
topnewbestaskshowjobs
Log inSign up

showdead

33 karma · joined Sep 6, 2011 (15y ago) · 32 submissions

Submissions

comment 3y ago · link · parent

From 2008, but still applicable: https://nealabq.com/blog/2008/09/15/bugs-returned-mem-refs/

comment 5y ago · link · parent

Oh, the irony.

https://iili.io/qkNFd7.png

comment 5y ago · link · parent

Someone tracked this down to a piece of software called Live! Cam Avatar: https://www.bbc.com/news/technology-56010156

comment 6y ago · link · parent

> x86 is notable in that you can cause a branch or jump without calling a branch or jump instruction.

I'm curious what you are referring to here. Are you talking about CMOV? Or INT/SYSCALL/SYSENTER? Or just the ability to trigger a fault handler? Or semantic games like push followed by ret?

comment 6y ago · link · parent

It's because they have the "American dream" of rising to the top. https://youtu.be/xxD9nGL3NLY

comment 7y ago · link · parent

Not disputing this, but the UX of navigating to a bank's website using Chrome on XP and getting redirected to a "Download Chrome" link when there isn't a newer version for your OS isn't a great experience either.

comment 7y ago · link · parent

Or just turn off javascript for the site, and the paywall doesn't happen.

comment 7y ago · link · parent

Less effective at cooling, more effective at dehumidifying (it seems there is a presumption that dehumidification is roughly linear with operating time.)

comment 7y ago · link · parent

I think this is what is being referred to: https://news.ycombinator.com/item?id=20643052

comment 7y ago · link · parent

For N=104, if you look at the PDF and zoom in, you can see the blue circles have a line rather than a dot. Admittedly, it is hard to see why the blue circles do not have enough freedom to move slightly away and become magenta (particularly the one on N=108).

comment 7y ago · link · parent

> So they have a duty to select a CEO who doesn't enable the unnecessary waste of corporate money on optional taxes.

Waste is one of a very short list of categories that are considered something no one wants: https://medium.com/bull-market/there-is-no-effective-fiducia...

comment 7y ago · link · parent

That might be true, but the reason for this recommendation is because botulism spores can exist in honey and the systems (mostly gut bacteria, from what I understand) of infants are not developed enough to deal with it, unlike older children and adults.

AFAIK, spores have not been observed in US-sourced honey, but that is no guarantee.

comment 7y ago · link · parent

> I'm not sure I've ever seen the design you're referring to

I think this style is what was being referred to: https://www.amazon.com/Stansport-Aluminum-Scout-Canteen-1-Qu...

This particular item does not appear to be well made, which lends credence to the difficulty of finding a high quality product.

comment 7y ago · link · parent

I basically gave up on twitch after it stopped working on the Xbox 360. The app just shows thumbnails but never streams. It doesn't work right in the browser for me either, probably due to running an old version of Chrome, but it used to work, and the browser hasn't changed, so I blame site "upgrades" (read: changes that break what was previously working.)

comment 7y ago · link · parent

Nothing. It made the news in 2009 in Phoenix: http://bobarno.com/thiefhunters/airport-luggage-theft/

comment 7y ago · link · parent

The paper talks about dynamic networks where nodes are being added or removed. If m and k are fixed, does it set an effective upper bound on the number of nodes? How do you address the possibility of multiple nodes having colliding hash values?

comment 7y ago · link · parent

If you have array @foo in perl, $#foo is the index of the last element of the array, which is just the size of the array -1. So if @foo is undefined, $#foo is -1.

Using a variable instead of 'foo' is a symbolic reference, so this is effectively using the symbol table as the associative array. This means that this solution also gets it wrong if your file contains a line that matches the name of a built-in variable in perl. That would be tough to debug!

If your file contains

    This is the first line of the file
then during execution of

    ++$#$_
the result is the same as if you had written

    ++$#{This is the first line of the file}
So the variable @{This is the first line of the file} goes from undefined to an array of length 1, turning $#{This is the first line of the file} to 0.

Incidentally, this is why the snippet fails to work for a line repeated more than once: for each occurrence of the expression, the value returned is in the sequence -1, 0, 1, 2, 3, ... so it is only false for the second occurrence.

Using preincrement instead of postincrement means the values returned are 0, 1, 2, 3, ... which means that inverting the test makes it false for every occurrence after the first.

comment 7y ago · link · parent

It is much older than that: https://en.wikipedia.org/wiki/Bell,_book,_and_candle

I believe in contemporary use it has become associated with witches, and I have seen it used as a general "occult" reference.

comment 7y ago · link · parent

The popularity of lobster is generally attributed to it being canned and served on the railroads (thinking that they could get away with serving cheap meat to customers in the midwest unfamiliar with it) and then people developing a taste for it.

comment 7y ago · link · parent

Calculator is interesting in that there is a physical button on (many) keyboards to open it. Ironically enough, I encountered a bug with the Windows 10 calculator that caused it to crash upon opening: the window would draw, then a second later vanish.

Turned out that it was due to something profile related: re-registering the Windows App Store fixed the issue. Yes, that's right, a dependency on the app store can prevent you from running Calculator.

comment 7y ago · link · parent

I remember getting a free polo shirt with the AltaVista logo embroidered on it. I don't recall the specific circumstances that led to being sent a shirt, and I wore holes in it so I no longer have it, but it really was superior to the alternatives before Google came along.

comment 7y ago · link · parent

The US does have a television network called PBS (Public Broadcasting Service) which is a non-profit organization although it is only partially government funded (they generally ask for donations from viewers about once a year). The quality of the reporting is usually pretty good, but news is only a subset of their programming, so it doesn't compare to something like the 24-hour cable news channels.

comment 9y ago · link · parent

The term comes from the history of firefighting: http://www.firehydrant.org/info/hist-fp.html

comment 9y ago · link · parent

Well, there is this approach:

    #include <stdio.h>
    #include <stdint.h>
    
    #define FIZZ(x)         (x & 0x0924)
    #define BUZZ(x)         (x & 0x0210)
    #define FIZZBUZZ(x)     (x & 0x4000)
    #define NONE(x)         (x & 0x34cb)
    
    void fizzbuzz(size_t n_max)
    {
        uint32_t x = 1;
        for (size_t i = 1; i <= n_max; i++)
        {
            if (FIZZ(x))
              printf("fizz\n");
            if (BUZZ(x))
              printf("buzz\n");
            if (FIZZBUZZ(x))
              printf("fizzbuzz\n");
            if (NONE(x))
              printf("%d\n", i);
            x <<= 1;
            x |= (x >> 15);
        }
    }
    
    int main(int argc, char **argv)
    {
        fizzbuzz(100);
    }
It's less costly than integer division, and I'm not sure it's what you had in mind. The output here still duplicates the strings.

comment 9y ago · link · parent

I am reminded of this comic strip every time this comes up (despite it being from about 7 or 8 years ago): http://www.smbc-comics.com/?id=1883

comment 9y ago · link · parent

Apparently you can file separately in order to not take spousal income into account, then file an amended return to make it joint instead without recalculating the debt relief. Seems a bit shady to me, but apparently not uncommon.

comment 12y ago · link · parent

Glad to see that this was not dropped! I did notice that matasano.com/articles/crypto-challenges/ has been returning a 404 for the past month or two.

Will there be a way to automatically submit / advance, for those of us that would like to do them without encountering spoilers?

comment 12y ago · link · parent

That doesn't really do much for those of us with backgrounds that do not include Javascript / web development.

Such as embedded processors, just to use an example that might be exactly the type of people who would find this challenge extra interesting.

Full disclosure: I did several of these, but the browser issue is probably what kept me from doing more. It did not run in my (admittedly outdated) browser of choice, so I had to do some Chrome wrangling, which was the opposite of fun.

12