Better HN
topnewbestaskshowjobs
Log inSign up

voidiac

57 karma · joined Feb 19, 2013 (13y ago) · 26 submissions

Submissions

comment 10y ago · link · parent

Python's implementation of sum doesn't care about types, the function looks something like:

    def sum(iterable):
        r = 0
        for v in iterable:
            r += v
        return v

it always starts with an integer, and since int.__add__(str) returns NotImplemented it tries str.__radd__(int) instead, which raises an AttributeError because str has no method __radd__, so no summing of strings and integers.

comment 10y ago · link · parent

Dividing Europe based on language would make more sense: romance languages in the west, germanic in the centre and slavic in the east.

comment 10y ago · link · parent

Most cubes I've seen seem to have metal springs.

comment 11y ago · link · parent

The name is confusing, the first thing i thought of was an SMTP-server.

comment 11y ago · link · parent

Ireland and Great Britain are islands. On these two islands are two sovereign states: Ireland and the United Kingdom of Great Britain and Northern Ireland (also known as UK). The UK consists of four parts: England, Wales and Scotland on the island of Great Britain and Northern Ireland on the island of Ireland.

.ie is the domain of the state Ireland. .uk is the domain of the UK.

comment 11y ago · link · parent

Branching would be something like:

  case JMP: {
    ip = program[ip + 1] - 1;
    break;
  }

comment 11y ago · link · parent

Register based VMs are not more complex than stack based VMs. You can even have a stack and the only difference is that your instructions operate on registers and not directly on the stack. I only consider generating code more complex with a register based VM.

If you are interested here is a toy vm I wrote myself: https://github.com/byo3rn/ire

PS: I suck at documentation.

comment 11y ago · link · parent

There are some more problems with the flags. The colours of the french and german flag are in the wrong order. The icelandic and norwegian flags are missing the white line around the cross. The class for the netherlands shouldn't be lb-flag-holland.

comment 11y ago · link · parent

You can still go there.

comment 11y ago · link · parent

That would be "Nous sommes Charlie".

comment 11y ago · link · parent

The free version of K can be downloaded at http://kx.com/software-download.php

comment 12y ago · link · parent

Should be working now.

comment 12y ago · link · parent

Goto is quite common among c-programmers when it comes to error handling.

comment 13y ago · link · parent

Or you could encrypt your e-mail. It doesn't matter where the server is, since the whole communication with it is probably intercepted by some intelligence agency. The only thing you can do is encrypting your e-mail and telling everyone you know to do so too.

comment 13y ago · link · parent

Is it really necessary that this application is only running on OS X 10.8+?

comment 13y ago · link · parent

Why not run your Windows in a VM and get rid of the PC?

comment 13y ago · link · parent

They are blurring the answers. If you search for something and end up on quora, it can get a bit frustrating , due to the fact, that you can't read the answers and are forced to sign up. That's just rude.

comment 13y ago · link · parent

If you have been on any answer with ?share=1 they're setting a cookie and you get no blurred answers until you remove the cookie or it expires.

comment 13y ago · link · parent

At least there are no spaces in the directory names.

comment 13y ago · link · parent

I think there is a third type in between your two types of people.

comment 13y ago · link · parent

Source Sans Pro

comment 13y ago · link · parent

.NET is not standardised but C# and the CLI are.

comment 13y ago · link · parent

No it's just funny.

comment 13y ago · link · parent

It says "requirement to credit and link" in the article with a link to http://gallery.hd.org/terms.html

comment 13y ago · link · parent

Same here in germany. I've never seen a captcha on Facebook before.

comment 13y ago · link · parent

I can't see any connection to the Samwers or any of their companies in this case.