Changing symlink “python” crashes python applications

I am running Ubuntu 16.04. and I have installed python3.5 and python3.8 There is a symlink /usr/bin/python3 which points to /usr/bin/python3.5 Now after installing python3.8, I wanted python3 to point to python3.8 so I changed the symlink. But the consequences are terrible. Python applications such as update-manager or zim give following error message ImportError: cannot…

Details

In Scala 2.11+ reflection, how to reliably convert a TypeTag and a Manifest into each other?

In this post: Is it possible to convert a TypeTag to a Manifest? It is indicated that a TypeTag can be converted into a Manifest using the following code: def toManifest[T:TypeTag]: Manifest[T] = { val t = typeTag[T] val mirror = t.mirror def toManifestRec(t: Type): Manifest[_] = { val clazz = ClassTag[T](mirror.runtimeClass(t)).runtimeClass if (t.typeArgs.length ==…

Details

Possible to have multiple mains in a flutter project that uses shared_preferences

I recently filed this Flutter bug: https://github.com/flutter/flutter/issues/48361 It seems: If: deploying to flutter web your project uses shared_preferences your project has more than one main function your the secondary main functions are in sub-directories of the project’s lib (but not lib itself — e.g lib/main.dart and lib/util/text_util.dart both have mains.) then flutter gives an obscure…

Details

Is it possible to authenticate dropbox automatically inside a shinyapps.io instance?

I’m attempting to allow dropbox authentication on my shiny app by following the tutorial on this page https://deanattali.com/blog/shiny-persistent-data-storage/. Unfortunately the solution to authenticating is manually downloading the .httr-oauth file and uploading it to the shinyapps.io server with the rest of the app files. I don’t want to use this solution for security reasons (my code…

Details