Spirit of indepence, thought of freedom

You are trying to use relative imports in python, but you encounter one of the exceptions ImportError: attempted relative import with no known parent package. Yes, relative imports can be confusing from time to time. In this article, we see the method used by python interpreter to resolve the relative imports and how we can fix this issue.

Read more »

InfluxDB

Attention:

  1. How to use DataFrame Client

    1
    client = DataFrameClient('localhost', 8086, user, password, dbname)
    Read more »

1.If you can not use alphadin.bst in your TexStudio:

save alphadin.bst file from here to your local device, and keep it with the same file with your .tex file.

Read more »

1. update

db.collection.update(criteria, objNew, upset, multi)
criteria: The search condition of update,
objNew: The object or operator of update, like $set, $inc, $setOnInsert
upsert: If the criteria doesn’t exist, if insert objNew, true is insert, default[false], not insert.
multi: default[false], just update the first record of the founded result, if this argument is true, update all founded records.

Read more »

Because of the intellectual property protection laws are so strict in Germany, downloading with p2p tools like baidunetdisk or xunlei online is very dangourous and is likely to be discovered by online police at any time. So we can try to replace these p2p tools with Aria2 that is faster and sampler.

Read more »