Best way of making an internal Python-based REST microservice

I have a small academic project that I use in my research. It consists out of a few databases and multiple computational microservices which should access the DBs. It all runs within separate containers.

I want to make another container with a REST python service that’s used by a few other microservices within this project. The purpose of it is fairly simple. It’s a collection of SQL queries and data transformation logic, which I simply want to have within the same place. Maybe have a few instances of this service for scalability in the University’s cluster.

No authentication for this specific microservice is required as it’s always going to be within a secure network. Other microservices (containers) will act as public interfaces for the computational experiments I run.

Currently, I made a prototype of this microservice with Flask + gunicorn. But somehow I’m not sure if this would the optimal solution for such a task. Is this combination actually suitable for production?

I also looked into Django but it seems to be rather heavyweightght for a purpose of making a REST service. Or am I wrong here?

Are there any other alternatives but Flask and Django? Or maybe there’s a better way of using Flask, rather than just making a few threads of the service with gunicorn?

security – Fiio m7 (Android Audio Player) full disk encryption and control internal storage access only when logged in Android 7.0

i have an android music player that uses a custom firmware of android 7.0. There isn’t a full disk encryption option shown, so i do not know what i should do to encrypt it. Also, it lets people access the internal storage when it is locked, which isn’t secure, and i am looking to make the device ask the user if the connected device is trustworthy when the device is unlocked. It currently does not have to be unlocked and will let anyone access internal storage.

tracking – Distinguish same page internal links traffic in Google Analytics

On my website, some pages have the same link to another page, in different places. For example, one is a button, another one is an anchor link.
I’d like to understand which ones draw more traffic.

I read it wasn’t a good idea to add UTM tags for internal traffic.
I also read about event tracking, but this sounds pretty difficult to implement.

So I wonder if there are other easy solutions to get this insight.

Thanks!

internal sd – Formatted SD Card

I formatted my as card to my Lenovo Tab 4 in order to free storage etc, but then realised how I can no longer read the card on my computer. Is there any way to either have the computer read this SD card or to download files onto it?

Or at least can I unformat it?
Thanks so much

5.1 lollipop – Move App Data from SD Card to Internal Storage

TL;DR: Some apps have a little data on the SD and I want to move it to internal in case the apps actually need it. My intent is to use the SD for something else. However, I can’t figure out how to move the data to internal.

I have gone into Application Manager and there is a list of apps (it doesn’t just list all apps) with data on the SD card. Most say 0.00B but a few say 32.00KB (and it is one or the other, there are no other sizes). I tap on them to access the available options and all I see is “move to SD”. I can’t find any option to move data in the opposite direction. All of the apps are mostly on internal storage and I am aware from reading other threads that apps can store data in both places at the same time. I have tried searching both on this site and via Google (and Bing). Unless I put quotes around my entire search, the engines find some way to coerce my question into the opposite of what I want. With the quotes, Google gave me two Reddit posts (that is all); neither of which had a solution as far as I can tell.

Main Questions: Is it possible to move the data apps have stored on the SD card to internal storage? If so, how do I do it?

Side Questions: Why are some apps included on the list but with 0.00B? Does that mean the app has an empty folder on the SD card? Or are there files and I am not supposed to see; so it tells me 0.00B? For the apps with 32.00KB, is that just some standard placeholder/empty file or is there a chance the data is actually needed by the apps?

internal storage – Are these files safe to delete on android?

Whilst I was deleting files on my android to clear up some space; I came across two strange files. One was PubmetricinstalledList and the other was PubmetricmoreApps. The first file contained two separate files which were a .str file and a .tss file. The second file had many folders with all titled with three number ranging from 500 to 900 and inside of them were folders with more random numbers, and inside those folders were two files which were a .ibm file and an .jsn file.

Does anyone know what these files are, and if so are they safe to delete? Sorry for my bad explanation I am mostly curious on what these files are since I couldn’t find anything online about them. Thanks!

Internal links building question

Hello,

I have one question I couldn’t find answer to:
SEMrush

Can a page lose seo juice/drop in ranking from internal links?

I have some pages that are ranking pretty well, but I am afraid they may drop positions if I place links to other pages on my website.

Thanks.

 

How to format SD card second partition as internal storage

I formatted my SD card into 2 partition. The first one is exfat and the second partition is f2fs.

I want to format the second partition as internal storage using built in storage setting, but when I do that the whole SD card get formatted.

How do I format the second partition as internal storage without losing the first partition data?

9 – How can I output the absolute URL as link text for internal links on link fields?

When using a link field without a link text and just with the URL, Drupal 8/9 outputs the relative path as the link text for internal links. How can I change that to either output the absolute URL or (even better) use the title from the entity in the link as the link text?

I am using the “Separate link text and URL” formatter provided by Drupal core.

internal storage – MacroDroid shell script non-root location permission denied

I am currently trying to run a simple shell script via MacroDroid. device is Huawei Oreo not rooted.

in MacroDroid tried following strings

/storage/emulated/0/MacroDroid/script.sh
sh /storage/emulated/0/MacroDroid/script.sh

MacroDroid reports permission denied. the script itself is working when running from adb shell.

What is the proper location for shell scripts on non-rooted device?