Better HN
topnewbestaskshowjobs
Log inSign up

qwerty1793

126 karma · joined Apr 14, 2012 (14y ago) · 23 submissions

Submissions

comment 3mo ago · link · parent

Or terraform.

comment 1y ago · link · parent

Norway allows you to see / search almost everyone's personal tax record (including name, birth year, postal code, net income and net wealth). You can do this online here: https://www.skatteetaten.no/en/forms/search-the-tax-lists/

comment 2y ago · link · parent

Even worse, there are some different PyPI packages with the same import name. For example, `import snappy` is probably referring to the compression library https://pypi.org/project/python-snappy/ but it could be this maths package https://pypi.org/project/snappy/

comment 2y ago · link · parent

Be careful, doing str(num) requires python to convert the binary representation it has num stored as to a decimal. (C)Python implements a quadratic time change of basis algorithm. This is slow enough that now for very large inputs python will raise "ValueError: Exceeds the limit (4300 digits) for integer string conversion"

comment 3y ago · link · parent

  1. Make it work
  2. Make it understandable
  3. Make it performant (if too slow).

comment 4y ago · link · parent

To be exact, the hard limit is: you cannot delete more than 10% of your organization's accounts (capped at 200) via AWS Organization within a 30 day rolling window. You can always delete an account by going into it as the root user.

https://docs.aws.amazon.com/organizations/latest/userguide/o...

comment 4y ago · link · parent

This argument only applies to functions on a compact domain. So we should only consider trying to approximate sin(x) when x is in [0, 1], for example.

comment 4y ago · link · parent

A number of assumptions seem to be missing from this article. Since the author is using the sigmoid function which is smooth, this argument actually only applies to approximating smooth functions. That is, you dont just need f to be continuous, you need all of its derivatives to exist and all be continuous. Also, since we are only able to have finitely many neurons, we need to be able to approximate f using step functions with definitely many pieces. So this argument can only be used if f is constant outside of a compact region.

comment 5y ago · link · parent

That may have been the case in 2011 when that article was written, but I have just tested this now and my facebook does not accept my password with the case reversed by having the caps lock key on.

comment 5y ago · link · parent

Similarly there are many sites that allow you to log in using `your password` or `your password`.swapcase() (for example, Password123 or pASSWORD123). Automatically trying a variant only costs a single bit of entropy and can greatly reduce login issues

comment 5y ago · link · parent

That's great. However the method that you use to find the canonical representative [1] is quadratic (when the string has length N, there are N rotations and for each rotation you need to check N characters to determine whether this is earlier than the best on that you have found so far). For large strings you would probably want to switch to one of the linear minimal string rotation algorithms [2], for example Booth's Algorithm.

[1] https://github.com/Benjamin-Lee/viroiddb/blob/main/scripts/c...

[2] https://en.wikipedia.org/wiki/Lexicographically_minimal_stri...

comment 5y ago · link · parent

Unlike many of his videos which are made using KSP, this RTLS Abort Challenge video was made using Orbiter 2016 Space Flight Simulator from UCL http://orbit.medphys.ucl.ac.uk/

comment 5y ago · link · parent

Mathoverflow has their "long-open problems which anyone can understand". This includes things like the integer brick problem: Is there a brick where all its dimensions (width, height, breadth, face diagonals and main diagonal) are integers? And Singmaster's conjecture: How many times can a number (other than 1) appear in Pascal's triangle?

https://mathoverflow.net/questions/100265/not-especially-fam...

comment 8y ago · link · parent

The largest eigenvalue of (A - k)^{-1} is 1 / (x - k) where x is the smallest eigenvalue of A that is larger than k. So by using this technique on (A - k)^{-1} for various values of k you can find all of the eigenvalues of A.

comment 9y ago · link · parent

I have to say how confusing I found this demo without a US keyboard. In section 10 I spent far too long pressing Shift+3 and wondering why it wouldn't progress even though I was pressing the pound key (£).

comment 10y ago · link · parent

The first four digits of arXiv papers links are the year and month of submission (to the arXiv). Just from this link I can tell that this was submitted in September 2016.

comment 10y ago · link · parent

There are no other factors less than 2^32. You can see my other comment for details on verifying this.

comment 10y ago · link · parent

The following Sage script shows that p has no prime factors less than 2^32 other than 271 and 13597:

  p_list = [0xCC, 0x17, 0xF2, 0xDC, 0x96, 0xDF, 0x59, 0xA4, 0x46, 0xC5, 0x3E, 0x0E, 0xB8, 0x26, 0x55, 0x0C, 0xE3, 0x88, 0xC1, 0xCE, 0xA7, 0xBC, 0xB3, 0xBF, 0x16, 0x94, 0xD8, 0xA9, 0x45, 0xA2, 0xCE, 0xA9, 0x5B, 0x22, 0x25, 0x5F, 0x92, 0x59, 0x94, 0x1C, 0x22, 0xBF, 0xCB, 0xC8, 0xC8, 0x57, 0xCB, 0xBF, 0xBC, 0x0E, 0xE8, 0x40, 0xF9, 0x87, 0x03, 0xBF, 0x60, 0x9B, 0x08, 0xC6, 0x8E, 0x99, 0xC6, 0x05, 0xFC, 0x00, 0xD6, 0x6D, 0x90, 0xA8, 0xF5, 0xF8, 0xD3, 0x8D, 0x43, 0xC8, 0x8F, 0x7A, 0xBD, 0xBB, 0x28, 0xAC, 0x04, 0x69, 0x4A, 0x0B, 0x86, 0x73, 0x37, 0xF0, 0x6D, 0x4F, 0x04, 0xF6, 0xF5, 0xAF, 0xBF, 0xAB, 0x8E, 0xCE, 0x75, 0x53, 0x4D, 0x7F, 0x7D, 0x17, 0x78, 0x0E, 0x12, 0x46, 0x4A, 0xAF, 0x95, 0x99, 0xEF, 0xBC, 0xA6, 0xC5, 0x41, 0x77, 0x43, 0x7A, 0xB9, 0xEC, 0x8E, 0x07, 0x3C, 0x6D]

  p = 0
  for num in p_list: p = (p << 8) + num

  for i, prime in enumerate(primes(2^32)):
      if i % 100 == 0: print str(prime) + '\r',
      if p % prime == 0: print('\n')

comment 10y ago · link · parent

Sorry, but how did you compute this? Do you know that there are less than 10^85 board positions which have a symmetry?

comment 10y ago · link · parent

Just to point out: entering 1000^6 gives 999,999,999,999,999,900.