HNHacker News
TopNewBestAskShowJobs

david_allison

2,123 karma · joined June 21, 2020

maintainer @ AnkiDroid

https://github.com/david-allison

gmail: davidallisongithub

Sponsors: https://github.com/sponsors/david-allison/

https://opencollective.com/ankidroid

submissionscomments
david_allison··on YouTuber won DMCA fight with fake Nintendo lawyer by detecting spoofed email
Thankfully I have appropriate permissions
david_allison··on YouTuber won DMCA fight with fake Nintendo lawyer by detecting spoofed email
I'm getting content ID copyright warnings [not strikes] on audio recordings from the 1940s/50s.
david_allison··on Show HN: I send myself automated emails to practice Dutch
> Unfortunately Anki doesn't have a proper API and isn't easy to reverse engineer

Tried any of the below?

AnkiConnect (HTTP API): https://git.foosoft.net/alex/anki-connect

Rust: https://github.com/ankitects/anki/tree/main/rslib via Protobuf: https://github.com/ankitects/anki/tree/main/proto/anki

Rough DB Schema (outdated, but sufficient): https://github.com/ankidroid/Anki-Android/wiki/Database-Stru...

david_allison··on "Hetzner decided to cancel our account and terminate all servers"
Got the same. Glad it was early before I lost production systems.

> Dear Mr David Allison

> After reviewing your updated customer information, we have decided to deactivate your account because of some concerns we have regarding this information. Therefore, we have cancelled all your existing products and orders with us.

> Best regards

> Your Hetzner Online Team

david_allison··on Show HN: I combined spaced repetition with emails so you can remember anything
More information on #2 (colloquially known as 'active recall'): https://en.wikipedia.org/wiki/Testing_effect
david_allison··on The tragedy of running an old Node project
Not any more. Security vulnerabilities in dependencies now break the build by default.

It's arguable whether this is the correct decision, but it makes things slightly harder than they used to be

david_allison··on M4 MacBook Pro
If you're still under AppleCare+, definitely give it a try before it expires.

Personal anecdote: don't get your hopes up. I've had my issues rejected as 'no fault found', but it's definitely worth spending a bit of time on.

david_allison··on M4 MacBook Pro
> MacBook Pro with M4 Max enables:

> Up to 4.6x faster build performance when compiling code in Xcode when compared to the 16‑inch MacBook Pro with Intel Core i9, and up to 2.2x faster when compared to the 16‑inch MacBook Pro with M1 Max.

OK, that's finally a reason to upgrade from my M1.

david_allison··on New iMac with M4
My M1 MacBook is currently sitting at 46GB usage. It's not heavily under load

(WebStorm, Rider, Android Studio, Chrome, Discord & Slack), not currently running an Android Emulator, LLM or Docker

david_allison··on How the human brain contends with the strangeness of zero
For anyone looking for more information:

https://www.unicode.org/cldr/charts/46/supplemental/language...

grep for "two" (note: "two" means 'dual', not literally '2')

Spec: https://cldr.unicode.org/index/cldr-spec/plural-rules

david_allison··on Company named "><SCRIPT SRC=HTTPS://MJT.XSS.HT> LTD" forced to change it (2020)
DEF CON 29 - Richard Henderson - Old MacDonald Had a Barcode, E I E I CAR:

https://www.youtube.com/watch?v=cIcbAMO6sxo

david_allison··on New Architecture is here
> It is not uncommon to have bugs on certain Android brands, with the community on github reporting the bug but waiting months for it to be fixed.

Welcome to Android. That's not just a React Native issue

https://github.com/M66B/FairEmail/blob/master/app/src/main/j...

david_allison··on Syncthing Android App Discontinued
AFAIK, it's fine on later devices, but Google Play specifically restricts the permission which they need (`MANAGE_EXTERNAL_STORAGE`)
david_allison··on Syncthing Android App Discontinued
>> Android really needs to just allow direct file access to any file which is under a user selected folder.

> It does.

No it doesn't, `ACTION_OPEN_DOCUMENT_TREE` provides you with a `DocumentFile`, which isn't a `java.io.File`.

From their docs:

> It offers a simplified view of a tree of documents, but it has substantial overhead

https://developer.android.com/reference/androidx/documentfil...

----

Your fork uses `MANAGE_EXTERNAL_STORAGE` which Google Play heavily restricts:

https://github.com/Catfriend1/syncthing-android/blob/main/ap...

This is very likely the reason that your fork no longer wishes to be on the Play Store:

> Planning to close my Google Play Developer Account. Please say hi if you are interested in obtaining the latest gplay release files from me to help in publishing this app.

https://github.com/Catfriend1/syncthing-android?tab=readme-o...

EDIT: The dangerous permission for `MANAGE_EXTERNAL_STORAGE` doesn't appear in the "App Info", which may be what you're seeing.

david_allison··on Syncthing Android App Discontinued
Cynical take: it puts Google Drive on a level playing-field with local storage (by making the local storage experience awful).
david_allison··on Let Google decide
Add the street & address to OpenStreetMap if it hasn't been done already.

A few banks allow you to change your address online, a digital statement will then show the updated address. A printout works around proof-of-address requirements.

----

> On a larger scale, it made me concerned for the use of AI in these kinds of situations. What if I wasn’t able to intercept a human postmaster who could then look at my documents and say that I was able to have a PO Box to receive mail from outside of town?

GDPR Article 22:

> The data subject shall have the right not to be subject to a decision based solely on automated processing, including profiling, which produces legal effects concerning him or her or similarly significantly affects him or her.

david_allison··on Drawing Graphics on Apple Vision with the Metal Rendering API
Thank you for the link!

I maintain an Android app which doesn't require Play Services. Might as well get it on the store if Meta is encouraging it

david_allison··on Show HN: I made a URL expander because short links are too mainstream
.site is longer
david_allison··on Ask HN: Why Is Stack Overflow Fading Away?
* Significant loss of moderation, core contributors and goodwill of power users since 2020 [Monica incident, firing Community Managers, Code of Conduct changes]

* LLMs

david_allison··on Adding 16 kb page size to Android
The Android Native Development Kit (NDK) allows building native code libraries for Android (typically C/C++, but this can include Rust). These can then be loaded and accessed by JNI on the Java/Kotlin side

* Brief overview of the NDK: https://developer.android.com/ndk/guides

* Guide to supporting 16KB page sizes with the NDK https://developer.android.com/guide/practices/page-sizes

david_allison··on Toasts are bad UX
I fear we're talking past each other. Material Design doesn't have a Toast.

Material Design Snackbars aren't toasts:

* Snackbars are local, toasts are global

* Toasts don't receive focus, snackbars can (via the optional action)

* Toasts auto-dismiss. This is optional for snackbars

* Snackbars can explicitly be dismissed early by a user

david_allison··on Toasts are bad UX
> Note that Snackbars are preferred for brief messages while the app is in the foreground.

https://developer.android.com/reference/android/widget/Toast

david_allison··on Toasts are bad UX
Snackbars aren't toasts
david_allison··on Parsing protobuf at 2+GB/s: how I learned to love tail calls in C (2021)
Your fear is reality: https://replyguy.com/
david_allison··on Increasing Retention Without Increasing Study Time [pdf]
Dunlosky J, Rawson KA, Marsh EJ, Nathan MJ, Willingham DT. Improving Students' Learning With Effective Learning Techniques: Promising Directions From Cognitive and Educational Psychology. Psychol Sci Public Interest. 2013 Jan;14(1):4-58. doi: 10.1177/1529100612453266. PMID: 26173288.
david_allison··on Increasing Retention Without Increasing Study Time [pdf]
Yes, with 263 citations

Rohrer, D., & Pashler, H. (2007). Increasing Retention Without Increasing Study Time. Current Directions in Psychological Science, 16(4), 183-186. https://doi.org/10.1111/j.1467-8721.2007.00500.x

david_allison··on Apple's requirements are about to hit creators and fans on Patreon
Not being able to set custom price points for subscriptions is also painful
david_allison··on Jake Seliger has died
Rest in peace
david_allison··on Ask HN: Who is hiring? (August 2024)
Listed as Remote (US) on the careers page. Do you consider non-US based applicants?
david_allison··on Ask HN: Is it possible to make FAANG salaries without working there?
Bank of America Merrill Lynch
← PreviousPage 5 of 24Next →