HNHacker News
TopNewBestAskShowJobs

sonofgod

750 karma · joined September 25, 2016

submissionscomments
sonofgod··on The Acid3 Test (2008)
On my machine:

Chromium 71: 97%, blocks 2&3 silver, pauses at 24, 64.

Firefox Quantum 64: 97%, blocks 2&3 silver, pauses at 24, 64, 65.

From Wikipedia:

Bucket 2: DOM2 Core and DOM Events

Bucket 3: DOM2 Views, DOM 2 Style, CSS3 selectors and Media Queries

By April 2017, the updated specifications had diverged from the test such that the latest versions of Google Chrome and Mozilla Firefox no longer pass the test as written. Hickson acknowledges that some aspects of the test were controversial and has written that the test "no longer reflects the consensus of the Web standards it purports to test, especially when it comes to issues affecting mobile browsers."

sonofgod··on Show HN: I taught my little brother JS, and he made this videogame in a week
... that is seriously fun.

The red block turning up later was AMAZING.

sonofgod··on Doom 3 in WebAssembly
I get some weird lighting bugs -- one side of everyone's face has massive shadowing from the centreline...

... but yes, surprised how well it ran on my old laptop!

sonofgod··on A happy numeric coincidence

  def test(x, y, debug=True):
      num = x**y
      digitalsum = sum(int(a) for a in str(num))
      if x == digitalsum and debug:
          print x, y, num
      return x == digitalsum
  
  for i in range(1,1000):
      for j in range(1,100):
          if test(i, j):
              print i, j
sonofgod··on A happy numeric coincidence
I'm getting bigger numbers from a very quick script -- am I missing something?

digitalsum(999^75) = 999

  999^75 = 927708673390001466432161699937587612771693772928727827334425528520027513591277141564708297244305734237029149442895264407211992619276548532187236223108524403378301874096420069132958960388059297398105903507708174617522225074999
sonofgod··on SQLite as an Application File Format (2014)
Fun fact - we noticed SQLite wasn't RFC-compliant for it's CSV output (it used native lineendings, not CRLF, which is mandatory).

It is fixed now... but I'm now wondering whether SQLite wasn't more correct in the first place...

sonofgod··on Ask HN: How was your Advent of Code 2018 experience?
"oh I need to implement a circular list" ... reads about collections.deque ...

Done.

sonofgod··on Nassim Taleb on why IQ is baloney
Even if intelligence doesn't correlate with not chopping your fingers off with a chisel, it's well established that IQ is a bell curve with an average of approximately 100, so there'll be more IQ 100 people than IQ 90.
sonofgod··on Colossus 237: Apollo 8 Flight Software
http://www.ibiblio.org/apollo/ScansForConversion/Colossus237...
sonofgod··on Colossus 237: Apollo 8 Flight Software
Was shocked to see so many issues!

(The issues are for the virtualagc simulator, and include such wonders as correctly emulating processor loads so that you too can have program alarms flash up when you're trying not to crash into the moon)

Also, if you liked type-in programming in the 1980s... :D

sonofgod··on Soup-Salad-Sandwich Space
Since the three axes do not sum to one, there is something clearly missing within their model.

Hmmm. I think a triangular graph would be a better way of representing the data -- this would also expose the hole at the centre of their model; that there are no foods which are equal mixtures of soup, salad and sandwich.

I feel this is an important avenue for further research, and I seek funding to discover the triple-S food...

sonofgod··on Show HN: Mission Emission – Calculate the emissions a vehicle produces
Given that's a difference in the sixth significant figure, it's probably not even a rounding error for these calculations.
sonofgod··on Show HN: Mission Emission – Calculate the emissions a vehicle produces
Can't speak for all metric users, but I found "mt" for metric tonnes just confusing; the standard abbreviation is just "t".

Yes, that's easily confused with the imperial ton, but I think that's a less important problem.

sonofgod··on An underground cathedral protecting Tokyo from floods
It's probably not safe for people when flooded; it's unlikely to be a static pond, but a cascading torrent.

... but yeah, now I want to see pictures of it in use :D

sonofgod··on Ask HN: Have you ever inherited a codebase nobody on the team could understand?
> How did you deal with it?

I quit six months in.

sonofgod··on Show HN: An open-source collaborative whiteboard
"oh there's a public whiteboard, I wonder how long it'll be before... "

[page loads]

"... it's a new world record!"

sonofgod··on $200 retail whole genome sequencing now available
If some of your family have inheritable diseases, you could find out if you have them or if your children could have them. Finding out that you will suffer from a nasty disease in the future could be quite a shock, though.

People also spend money on things like handwriting analysis, personality questionnaires and measuring people's skulls to try to work out what they are like; genomics is at least somewhat accurate and based on reality!

In practice, you'll get told things like "You have endurance muscles, not fast muscles" and "You probably have blue eyes" (mirrors are more accurate!) and "You have twice the chance of getting this specific type of cancer" (twice a very small number is still a very small number).

sonofgod··on What the Boston School Bus Schedule Can Teach Us about AI
Even after reading the article I'm not sure what it teaches us about AI, rather:

* if you make a fair choice, it'll appear to screw over previously privileged people.

* just because it's an optimal solution doesn't mean it's a reasonable one

* actually talk to people about their needs

sonofgod··on Ask HN: Should I Be Ashamed to Love JavaScript?
I think Javascript's ubiquity -- it has an implementation in every browser -- is the cause of much of its hatred. No one hates on SNOBOL because it's been superseded and no-one uses it; but if you're wanting to interface with the web, there's no other first-class langugage, everything else transpiles to JavaScript.

I think an opinionated JavaScript interpreter which considered the worst elements of JavaScript to literally be bugs (e.g. single equals) would help immensely...

sonofgod··on The Potentiometer Handbook (1975) [pdf]
Skip to Chapter 9 for some lovely comic 70s artwork and a how-not-to guide of how to abuse your potentiometers... :D
sonofgod··on A Generative Model of the Mutual Escalation of Anxiety Between Religious Groups
Was a bit concerned about the probability of those clusters in Figure 1 occurring by chance, particularly with the middle one looking so weak: it's about a 0.8% chance of getting three and a 7% chance of getting two over a thirty year period...

Just about seems convincing.

sonofgod··on JPEG image of Shakespeare which is also a zip file containing his complete works
So Borges' Library of Babel -- every possible 3200 character book from a 25-character alphabet; essentially the 'space' equivalent of the infinite monkey theorem's 'time' domain -- is sufficiently large that if we took this universe and shrunk it down to the Planck length (the smallest length there is) and filled another universe with these femtouniverses, and then scaled that one down likewise, and repeated this process EIGHTY times, we'd be able to fit all the books in.

And Hamlet would be split amongst dozens of these books.

25^3200 is a large number.

sonofgod··on Night Sight for Pixel phones
https://xkcd.com/1109/
sonofgod··on Show HN: Personal avatar generator built in ReasonML
I'd consider changing the random balance on the facial hair -- with six types of facial hair and one without, and (I presume) equal weighting to those seven categories, 6 out of 7 faces come out as people able to grow beards...
sonofgod··on Show HN: Test Your Culture – What's your (English-speaking) cultural knowledge?
Internal error Sorry, but something went wrong with our code. Retrying may or may not fix it. (19284)

(Retrying does not fix it.)

(url: https://testyourculture.com/step_three?u=zmtPIg)

sonofgod··on Call Python functions from VBA in all Microsoft Office apps
I don't think it came up in our review of Excel/Python technologies -- perhaps because that's not the primary focus of the library.
sonofgod··on Call Python functions from VBA in all Microsoft Office apps
A couple of years ago I played with xlwings, but found it too slow for our usecase (a few cells modified per second) plus we found the Windows requirement quite onerous.

I wound up reading/writing our spreadsheets in pure Python -- we used xlwt which doesn't support xlsx, so I'd probably consider using openpyxl these days.

(Specifically we were selecting parts of spreadsheets based on row/column headers inside the spreadsheet even if they weren't in the first row/column or there were multiple tables per tab; if this sounds useful to you check out https://github.com/sensiblecodeio/xypath )

sonofgod··on Ask HN: Examples of AI ethical principles?
There's a difference between "unethical to make a human do" and "create an unethical result": e.g. there are ethical benefits from the automation of risky jobs. The obvious one in ML and computers is image recognition of horrific images.

(Granted, there are then additional issues of where and how you deploy that technology.)

sonofgod··on DuckDuckGo Traffic
I'm going to say no, because the black hole will be more dense than a neutron star, where chemical energy (and, more generally, chemistry) can't exist because protons and electrons fuse into neutrons.

The energy still exists, presumably, but claiming that's relevant would be like claiming a cheese at the top of a hill (potentially about to be rolled) has more calories.

sonofgod··on Show HN: Remote jobs for people with disabilities
You've got some encoding issues, I think it's double UTF-8: ("You’ve")

I appreciate it's only a demo but your one job being not actually remote is a bit of a letdown.

The big challenge is going to be getting this advertised.

← PreviousPage 5 of 7Next →