News for hackers. Stuff that matters.

mkurnikov

Re:Ask HN: Mobile phone addiction help? on Tuesday May 04, 2021 @01:40PM (#27040227)
I switched to second-hand Android phone from my Nokia C3 last year, never used a smartphone before that. I struggled a little bit with easy accessibility of browser / telegram / instagram, so I found a way to make a phone a little dumber.

1. Buy an Android phone (you can probably make the same thing on IPhone with jail-break, but I don't have any experience).

2. Remove all social media apps: Instagram / Twitter / whatever app you struggling with.

3. Download adb https://www.xda-developers.com/install-adb-windows-macos-lin... and execute those lines

./adb uninstall --user 0 com.android.chrome

./adb uninstall --user 0 com.android.vending (Google Play Store)

Some functionality in some apps won't be available, if it requires redirect to the browser tab / Google Play Services, but it's a price to pay for having dumb-phone functionality on the smartphone.

You can still install Google Play once in a while to update apps via

./adb install -d --user 0 COM_ANDROID_VENDING_APK_FILE

update/install new apps and then repeat step (3) from above.

Re:Django 3 on Monday December 02, 2019 @12:34PM (#21684574)
There's a DEP discussion going on at https://github.com/django/deps/pull/65. Though I kind of gave up on it for now, I don't believe it'll be accepted in the current state of mypy and typing ecosystem.

Try 'django-stubs' mentioned above too https://github.com/typeddjango/django-stubs, it's mostly complete. Mypy plugin inside takes care of a lot of stuff.

Disclaimer: I'm a creator of the 'django-stubs'

Re:Django 3 on Monday December 02, 2019 @12:27PM (#21684508)
Hi, I'm a primary maintainer of 'django-stubs'. We're going to release new version with mypy==0.750 and Django 3.0 support soon. Could you create an issue for your 'client.force_login' problem?

> I also had issues with ‘from django.conf import settings’ not being the correct type so I’d suggest changing that to ‘Any’.

This one also has plugin support, and should be working mostly correct. Fill the issue if you can reproduce, I'd love to help with that.

What's your experience with that whole "plugin has to actually run django.setup() before typecheck" thing?