HNHacker News
TopNewBestAskShowJobs

jamessb

1,840 karma · joined March 27, 2012

submissionscomments
jamessb··on Police Officer Exam Tutorial [pdf]
For anyone else who is curious, the past exam papers are available here: https://www.upsc.gov.in/examinations/previous-question-paper...
jamessb··on Show HN: Smart Cards for Everyone
Calling these "Smart Cards" is misleading, as that is a very well-established term for something else (cards containing an embedded IC used for authorization) [1].

The role of "one link" to a page with links to accounts/profiles on other sites seems well-served by existing sites including LinkTree [2] and KeyBase [3].

Potential customers could already put a LinkTree URL + QR code on a business card; the website doesn't do a great job of explaining why NameKard is better (and I have less trust in its website remaining available).

[1]: https://en.wikipedia.org/wiki/Smart_card

[2]: https://linktr.ee

[3]: https://keybase.io

jamessb··on The bait-and-switch hidden in today’s cookie announcement
Ireland seems the natural choice, and wouldn't require you to use a language other than English for anything.
jamessb··on Show HN: Stylepad – Free moodboards for creative professionals
This looks useful. I have some UI/UX suggestions.

Clicking on an image to view the detail feels like opening a modal, and I expected to be able to quickly go back to the initial canvas view by pressing the Esc key or clicking on the white background behind the image (rather than having to click on the cross symbol, which is a relatively small click target, especially on a large monitor).

Ideally the editing controls would be visible when viewing a single image, not just on the canvas view.

If the image labels are numbers, then the images are ordered, and it would be nice if the single-image view let you step between them using next/previous arrows, or arrow-key keyboard shortcuts.

jamessb··on Beautiful Soup
bs4 is able to parse some malformed documents that libxml2 chokes on.

For these cases it can be useful to do the reverse, and use the BeautifulSoup HTML parser as an alternative parser backend for the lxml package: https://lxml.de/elementsoup.html

jamessb··on Ask HN: Books like “Crafting interpreters” or “The ray tracer challenge”?
500 Lines or less [1,2] might be of interest: it doesn't build up a single complex project from scratch, but it several show the core implementation of various complex types of software.

[1]: https://aosabook.org/en/

[2]: https://github.com/aosabook/500lines

jamessb··on I wrote my own rsync [video]
The slides: https://docs.google.com/presentation/d/1XqWF7h8ScimDFbQgLcXP...

The speaker Michael Stapelberg had a few blog posts about his home 25 Gbit/s fiber connection that have been discussed here previously

"My upgrade to 25 Gbit/s Fiber To The Home": https://news.ycombinator.com/item?id=31134534

"25 Gigabit Linux internet router PC build": https://news.ycombinator.com/item?id=27792738

jamessb··on Scrapism
I initially had similar concerns, but the idea seems to be endorsed by the GitHub Developer Experience team: https://githubnext.com/projects/flat-data/
jamessb··on Before Ships Used GPS, There Was the Fresnel Lens
GPS signals can be jammed [1] or spoofed [2] by terrestrial transmitters; and the satellites are controlled by the US military, who could in principle decide to deny access or degrade service.

Navigational errors that could result in grounding or collisions may endanger life (and be very expensive), so it is unsafe to rely solely on GPS, even if you have redundant receivers and power supplies.

[1]: https://en.wikipedia.org/wiki/Global_Positioning_System#Mili...

[2]: https://en.wikipedia.org/wiki/Spoofing_attack#Global_navigat...

jamessb··on Conventional Comments
They criticise the comment: "This is not worded correctly.", by saying that "Comments like this are unhelpful… ", which is true.

However, I don't think that even their example of an "actionable" comment ("suggestion: This is not worded correctly. Can we change this to match the wording of the marketing page?") is actually a "good" comment, because whilst it is slightly more specific it still doesn't say what the wording on the marketing page actually is.

It would be better to write: "Can we change 'X' to 'Y' to match the wording of the marketing page?".

jamessb··on Ask HN: MIT Billion Prices Project
That project url doesn't currently work, but http://www.thebillionpricesproject.com/ does
jamessb··on Own your calendar and contacts with OpenBSD, Baïkal, and FOSS Android
> Extremely lightweight but also quite flexible with its permissions model since we have a shared family calendar.

How are you doing this?

A while ago I skimmed the documentation for a couple of CalDAV servers to try and figure out how I could self-host a shared calendar, but couldn't see an easy way to do this.

I've just done some more searching, and it seems there are two suggested ways to do this with Radicale:

* create a separate account for the shared calendar, and tell everyone who needs write access the password

* create the calendar in one use's directory, and add a symlink to it in the user directories for any other users who need write access.

Both of which seem like a bit of hack compared to bring able to explicitly state that a list of users have write access to a calendar in a config file or through a UI.

jamessb··on Finland will seek NATO membership immediately
> There is a strategy about this as far as yes minster goes about nuclear bomb detention

This is the clip about Salami Tactics and the Nuclear Deterrent: https://www.youtube.com/watch?v=o861Ka9TtT4

jamessb··on Why Executives Like the Office (2021)
> You had me at "My own toilet all to myself". I understand not everyone in the world is loathe to use a public restroom, but Jesus H. Christ, people use public restrooms like apes in a zoo.

It's not just cleanlines: I've also encountered issues like the hand-soap or toilet paper having run out and not been replaced, toilets not working due to plumbing issues (in one office they installed a fancy new rainwater recycling system that didn't initially work, so toilets wouldn't flush), a toilet on the top floor of a building where the flush was very weak and the cistern would take minutes to slowly refill before you could flush a second time, poorly designed sinks that look pretty but splash water everywhere when you turn on the tap, or a building only having a single cubicle so that I'd need to walk to another building if it was in use.

These seem minor, but are irritating nonetheless.

jamessb··on A story about planning for Desert Storm
"Introduced in 1991, DART had by 1995 offset the monetary equivalent of all funds DARPA had channeled into AI research for the previous 30 years combined"

Thanks for the link - someone at BBN had told me a similar story, but I didn't know the name of the program.

jamessb··on Ask HN: Which algorithms based on biological ideas do you know?
The book "Bio-Inspired Artificial Intelligence" is a good introduction [1,2 ] to a range of techniques.

[1]: https://mitpress.mit.edu/books/bio-inspired-artificial-intel...

[2]: https://baibook.epfl.ch/contents.html

jamessb··on OwnTracks – keep track of your own location
The ownTracks docs for beacons is at [1,2], whereas there an open issue on the Overland repo suggesting something similar [3].

Getting a location [4] and detecting the presence and proximity of beacons [5] use different parts of the Core Location API.

[1]: https://owntracks.org/booklet/guide/beacons/

[2]: https://owntracks.org/booklet/features/beacons/

[3]: https://github.com/aaronpk/Overland-iOS/issues/93

[4]: https://developer.apple.com/documentation/corelocation/getti...

[5]: https://developer.apple.com/documentation/corelocation/deter...

jamessb··on How do kids conceive the internet?
> am I missing an alternate use of 'conceive'?

"conceive" is also used in the sense of "to imagine something" [1] or "to apprehend by reason or imagination: understand" [2]. However, an alternative like "understand the internet" or "think about the internet" would be clearer.

[1]: https://dictionary.cambridge.org/dictionary/english/conceive

[2]: https://www.merriam-webster.com/dictionary/conceive

jamessb··on OwnTracks – keep track of your own location
An alternative is the Overland app for iOs [1] or Android [2], logging to compass [3]

Each has features that the other doesn't: OwnTracks can apparently determine a location using iBeacons, whereas Overland can't (though it can detect WiFi networks). Overland lets you record your mode of travel (e.g., driving, cycling, walking), whereas this still seems to be an unimplemented "idea" for OwnTracks [4]. Compass is also designed for tracking a single person, whereas OwnTrack can handle multiple.

[1]: https://github.com/aaronpk/Overland-iOS

[2]: https://github.com/OpenHumans/overland_android

[3]: https://github.com/aaronpk/Compass

[4]: https://owntracks.org/booklet/ideas/

jamessb··on Oilslick – an elevation map showing fine detail in terrain
> Is it a materialized remapping of the underlying .hgt or is it done client-side, in some webGL-shader?

The map loads pre-rendered map tiles as JPG images from Amazon S3 (you can confirm this in the Network tab of your browser's dev tools).

The page says:

> This map layer is hosted as a public service, and map tiles are free to use under a Creative Commons 4.0 Attribution-NonCommercial-ShareAlike license.

jamessb··on Polaris Program
I'm not sure why you're downvoted.

The name immediately makes me think of the submarine-launched ballistic missile system that proceeded Trident [1, 2]. TBH, I was expecting the link to be to an article about the history of SLBMs.

There's apparently also an Israeli reconnaissance satellite [3] and North Korean SLBM that are referred to as Polaris [4] (plus, obviously, the star).

[1]: https://en.wikipedia.org/wiki/UGM-27_Polaris

[2]: https://en.wikipedia.org/wiki/Polaris_(UK_nuclear_programme)

[3]: https://en.wikipedia.org/wiki/TecSAR-1

[4]: https://en.wikipedia.org/wiki/Pukguksong-1

jamessb··on Post Office scandal: Public inquiry to examine wrongful convictions
> The Royal Mail is (like until recently the RSPCA) one of the few entities in the UK entitled to bring its own prosecutions

No, the ability to bring a private prosecution is not restricted to specific entities - it is a right everyone has (though some offenses can only be prosecuted with the consent of the DPP, and the DPP can choose to take over a private prosecution) [1]. For example, a woman tried to crowdfund a private prosecution for rape [2].

From [1]:

> There are a number of organisations that regularly prosecute cases before the courts of England and Wales but they do so as private individuals, using the right of any individual to bring a private prosecution. One example is the RSPCA.

[1]: https://www.cps.gov.uk/legal-guidance/private-prosecutions

[2]: https://www.bbc.co.uk/news/uk-england-41885897

jamessb··on Northern Powergrid sorry for Storm Arwen trillion pound compensation error
Previously, a man in Malysia mistakenly received a telephone bill for 84 ringitt (£125 trillion [1], or $218 trillion [2]).

Also, in 2003 a man received a final demand letter for £2,320,333,681,613 from British gas [3].

[1]: https://www.theguardian.com/world/2006/apr/11/malaysia

[2]: https://www.nbcnews.com/id/wbna12247590

[3]: https://catless.ncl.ac.uk/Risks/22/61#subj2.1

jamessb··on Why is the Zoom app listening on my microphone when not in a meeting?
> If Zoom were even skirting the line here, their lawyers would put the kibosh on it real quick

Their lawyers didn't stop them from claiming to provide end-to-end encryption, a blatant misrepresentation that resulted in receiving a consent order from the FTC [1] and settling a class-action suit for $85M [2], so I don't think it's safe to assume that they would prevent the company from doing obviously unacceptable things.

[1]: https://www.ftc.gov/system/files/documents/cases/1923167zoom...

[2]: https://arstechnica.com/tech-policy/2021/08/zoom-to-pay-85m-...

jamessb··on Django: Reformatted code with Black
As a reformatting tool should only change the formatting, you could check that the Abstract Syntax Tree is unchanged. The ast module in the standard library gives access to the AST [1].

[1]: https://docs.python.org/3/library/ast.html

jamessb··on Porn sites will be legally required to verify users' age using credit card
> What's the current UK scandal

https://en.wikipedia.org/wiki/Partygate

jamessb··on Some Applications of Mechanics to Mathematics (1961)
See also "The Mathematical Mechanic: Using Physical Reasoning to Solve Problems", a book by Mark Levi [1].

[1]: https://press.princeton.edu/books/paperback/9780691154565/th...

jamessb··on Singapore prime minister Lee Hsien Loong’s Sudoku solver (2018)
> I do not know the specific background of Mr Lee

As an undergraduate, he studied maths at Trinity College Cambridge. Béla Bollobás said [1]:

> I certainly taught him more than anybody else in Cambridge. I can truthfully say that he was an exceptionally good student. I’m not sure that this is really known in Singapore. “Because he’s now the Prime Minister,” people may say, “oh, you would say he was good.” No, he was truly outstanding: he was head and shoulders above the rest of the students. He was not only the first, but the gap between him and the man who came second was huge.

> I think that he did computer science (after mathematics) mostly because his father didn’t want him to stay in pure mathematics. Loong was not only hardworking, conscientious and professional, but he was also very inventive. All the signs indicated that he would have been a world-class research mathematician. I’m sure his father never realized how exceptional Loong was. He thought Loong was very good. No, Loong was much better than that. When I tried to tell Lee Kuan Yew, “Look, your son is phenomenally good: you should encourage him to do mathematics,” then he implied that that was impossible, since as a top-flight professional mathematician Loong would leave Singapore for Princeton, Harvard or Cambridge, and that would send the wrong signal to the people in Singapore. And I have to agree that this was a very good point indeed. Now I am even more impressed by Lee Hsien Loong than I was all those years ago, and I am very proud that I taught him; he seems to be doing very well. I have come round to thinking that it was indeed good for him to go into politics; he can certainly make an awful lot of difference.

He then did the (now-discontinued) Diploma in Computer Science at Cambridge.

[1]: https://web.archive.org/web/20180722130213/https://www2.ims....

jamessb··on Counter-intuitive results in operations research
Image of this example: https://imgur.com/a/Mjo1c0j
jamessb··on Apple contributes to OBS to support screen capture using ScreenCaptureKit
The message for the PR (under the Conversation tab) justifies this as:

> plugins/mac-capture/mac-display-capture.m:621 - The __MAC_10_15 define may not exist on devices running < 10.15, resulting in this section not being appropriately avoided during compilation. Swapping to 101500 should work for all versions of macOS.

← PreviousPage 5 of 20Next →