batch – Create tags from Anki deck and subdeck information

I have an Anki deck that is divided into multiple subdecks, numbered 1, 2, …, 87 according to the lesson in which the material will be presented during the year. The Anki website specifically advises against this organization and recommends tagging instead. I want to achieve the exact opposite of what this OP wanted; I want to be able to move the information theat is currently held in the (sub)deck name into the tags field so that I can combine all the notes into a single tagged deck without the subdecks. The obvious strategy that is extremely labor intensive, is to

  • export an individual subdeck into its own named text file
  • add a tags field to the text file
  • insert the lesson number corresponding to that text file (and anything else useful) into the tags field
  • repeat for every subdeck
  • combine the subdeck text files into a single file
  • reimport, with tags

Another strategy that occurs to me (but I can’t see how to do it) is to export the whole deck in a single step, and include the (sub)deck name in the export. I could then use various other text-tools to quickly create a tags field with appropriate tagging, and then reimport into a single deck. What should I do?

I should add that I am very familiar with most Unix text-tools, regex, and so forth, and have a simple understanding of SQLite. I would prefer to avoid the SQLite route but I’m prepared to use it if need be!

Decomposing the mutual information between conditionally independent variables and the conditioning variable?

Assume X and Y are conditionally independent given Z:
$P(X,Y|Z)=P(X|Z)P(Y|Z)$.

We are interested in the mutual information between P(X,Y) and P(Z): $I(X,Y;Z)$. Can we decompose this mutual information into two components reflecting the contribution of $X$ and $Y$ separately?

What I have tried:

$I(X,Y;Z)=H(X,Y)-H(X,Y|Z)=H(X,Y)-H(X|Z)-H(Y|Z)$

The second equality is due to the additivity of entropies of independent variables (it holds for each $z$). I am left with $H(X,Y)$ which doesn’t easily decompose ($X$ and $Y$ are not necessarily indepedent when not conditioned on Z).

Note: this question is superficially very similar to this one, but it is not equivalent to it.

python – pyinstaller: add version information from (_version.py and versioneer) to package

I am looking to add a version to an executable as in many other posets. Instead, I am packing up my app with pyinstaller --onedir using a specfile. Everything works well except the app is supposed to display its version number. When I install the python library with pip install ..., and run the app, the version information is present. But when packed up with pyinstaller the version shows as 0+unknown. I am using versioneer to generate version tags automatically.

When the app is installed a _verion.py file is generated with the following content:

# This file was generated by 'versioneer.py' (0.18) from
# revision-control system data, or from the parent directory name of an
# unpacked source archive. Distribution tarballs contain a pre-generated copy
# of this file.

import json

version_json = '''
{
 "date": "2020-09-23T08:27:42-0600",
 "dirty": false,
 "error": null,
 "full-revisionid": "59819d491111ebd8c7341bcd82cf59c04ec4cfae",
 "version": "0.0.34"
}
'''  # END VERSION_JSON


def get_versions():
    return json.loads(version_json)

This file is replacing a file in the source with the same name. Apparently, something goes wrong and the file is not created when versioneer is used. I wonder if that is fixable and how?

X-Monitors – xmonitors.com – The most up-to-date investment information. Refback, deposit insurance, bonuses. – Other Money Making Opportunities

X-Monitors – xmonitors.com – The most up-to-date investment information. Refback, deposit insurance, bonuses.

6de261d0d80b.png

https://xmonitors.com

X-Monitors is a convenient tool for tracking the most accurate and objective information on investment projects:

– only top and proven projects;

– refback from 50% and deposit insurance;


– useful articles and current news on the topic of earnings and investments;


– bonuses, promotions and contests;


– individual advice on investments.


X-Monitors on social media:

Facebook – https://www.facebook.com/groups/xmonitors
VK -https://vk.com/xmonitors
Telegram – https://t.me/xmonitors1
Instagram – https://www.instagram.com/x_monitors

Join us and be always in profit!


X-Monitors contacts:

E-mail: admin@xmonitors.com
Telegram: https://t.me/x_monitors


Go to website
– https://xmonitors.com

menu – Showing more information while decluttering the screen

I’m designing an educational app with gamified elements to it. The way the app has evolved the left side is what we consider the most important information for the user. The items to the right are all considered of equal weight.

The first prototype shows the toolbar/header as this:

enter image description here

I find it very cluttered, and I’m wondering how I can show more information while decluttering…

The ideas I have thought of:

  1. Have another bordered cell to the right and have a constant rotation between the secondary items, like this:

enter image description here

Something like this, clicking on the cell brings up a menu for the user to navigate to all items individual screens.

  1. Maybe something more experimental.. I’m not sure about this one

enter image description here

I’m curious what y’all think on the best practices in this situation..

Thank you

reference request – When is information maximized?

Thanks for contributing an answer to MathOverflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.

To learn more, see our tips on writing great answers.

Needing global information, if anyone could assist

I have an enquiry regarding the country Germany and I hope I am in the right place to ask. I require a document that I can download that lists information on all cities and post codes. Thanks for your help in this matter.

covid 19 – Swiss sends out false information about transit requirements in Switzerland – what steps may be taken to ensure unhindered transportation?

A relative of mine, a Russian national and resident, was recently issued a D-visa from the Czech Republic. While looking for transportation options for him from Moscow to Prague, we found a flight via Zürich with Swiss.

To ensure that this kind of transit through Switzerland is permitted, we consulted the FAQ page of the Swiss migration office. The English version of the page was somewhat vague as it was not clear if permission of transit pertained to holders of D-visas issued by other Schengen states, so we contacted the Moscow office of Swiss for an interpretation. The staff there renounced any authority on behalf of Swiss in this regard and directed us to the e-mail address of the Visa section of the Swiss Embassy in Moscow.

We complied with the instruction given to us by Swiss and contacted the said Visa section. The reply came promptly and was definitively positive. We were told that the legally-binding French and German versions of the same FAQ page explicitly mentioned D-visas issued by any Schengen state as documents enabling transit. We checked these versions and were satisfied that that was correct.

Thus, we established that this itinerary is permitted, and the ticket was purchased.

Despite all that, one day before departure (yesterday), my relative received an e-mail from Swiss containing the following statement:

Only following nationals are allowed to enter Switzerland, the Schengen area and the European Union from Russia: … Holders of a D-Visa issued only by Switzerland

As shown above, this statement is outright false and directly contradicts the information published on the official Web pages of the Swiss competent authorities. Moreover, as said above, Swiss had already renounced authority in this matter before, and had taken steps to get us informed that this transit is possible and lure us into buying the ticket.

My relative was terribly shocked. I sent a complaint through the Swiss Web site (took unproportionally long time as it takes systematic measures against complaints as it seems), but I am unsure if this will work.

Obviously, this is a clear case for a court, but legal way will take a lot of time, and family matters require my relative to travel as soon as possible. Is there anything else I could undertake to ensure that my relative is aboard tonight?

json rpc – Can you verify partial blockchain information from a third party, without yourself having an entire blockchain?

I’m considering consuming, or if unavailable, I’m considering providing, a blockchain querying service along the lines of json rpc.

Would it be possible for me as a consumer of such as service, to verify the integrity of returned data from such queries, without myself running a full node? (If not there wouldn’t be much point using such a service!)

Would it be possible for me as a provider of such a service, to provide enough data for a consumer to verify the validity of the data I send them, when the consumer is not running a full node? (If not there wouldn’t be much point providing such a service!)

My end goal is to run something like a blockchain explorer website on the cloud, but the cost of running a full node (particularly storage) on the cloud is more than I can afford. Obviously I have some feature ideas I’ve not yet seen on other explorers

covid 19 – SwissAir sends out false information about transit requirements in Switzerland – what steps may be taken to ensure unhindered transportation?

A relative of mine, a Russian national and resident, was recently issued a D-visa from the Czech Republic. While looking for transportation options for him from Moscow to Prague, we found a flight via Zürich with SwissAir.

To ensure that this kind of transit through Switzerland is permitted, we consulted the FAQ page of the Swiss migration office. The English version of the page was somewhat vague as it was not clear if permission of transit pertained to holders of D-visas issued by other Schengen states, so we contacted the Moscow office of SwissAir for an interpretation. The staff there renounced any authority on behalf of SwissAir in this regard and directed us to the e-mail address of the Visa section of the Swiss Embassy in Moscow.

We complied with the instruction given to us by Swiss and contacted the said Visa section. The reply came promptly and was definitively positive. We were told that the legally-binding French and German versions of the same FAQ page explicitly mentioned D-visas issued by any Schengen state as documents enabling transit. We checked these versions and were satisfied that that was correct.

Thus, we established that this itinerary is permitted, and the ticket was purchased.

Despite all that, one day before departure (yesterday), my relative received an e-mail from SwissAir containing the following statement:

Only following nationals are allowed to enter Switzerland, the Schengen area and the European Union from Russia: … Holders of a D-Visa issued only by Switzerland

As shown above, this statement is outright false and directly contradicts the information published on the official Web pages of the Swiss competent authorities. Moreover, as said above, SwissAir had already renounced authority in this matter before, and had taken steps to get us informed that this transit is possible and lure us into buying the ticket.

My relative was terribly shocked. I sent a complaint through the SwissAir Web site (took unproportionally long time as it takes systematic measures against complaints as it seems), but I am unsure if this will work.

Obviously, this is a clear case for a court, but legal way will take a lot of time, and family matters require my relative to travel as soon as possible. Is there anything else I could undertake to ensure that my relative is aboard tonight?