Python

Don't you know Python?

clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9

Normal,You will encounter this error when installing a Python package,This package must be a package containing C ++ code。

This is due to incompatibility after macOS update,In General,The maintainer of this package should already be compatible with this particular situation:

So on macOS[……]

Click link to continue reading...

Python detects its own memory footprint in real time

Recently doing text statistics,Implemented in Python,Encountered an interesting problem-how to save statistical results。

Writing directly into memory is really impossible,Memory exhausted after ten hours,The program was forced to close。If you write directly to the database,Each write is too slow,It's been more than ten hours,If you go on like this, you will have to count on the week,Not a solution。

At last,I thought of a solution that does both[……]

Click link to continue reading...

Swift Python Json data exchange signature

It has been a very popular self-signed certificate for HTTPS decryption,Then there are a lot of people realize crack of App by modifying Apple's internal purchase receipt。In fact Verified Purchase should be connected to the server App,Server to communicate with Apple's servers,The results are then sent to the App - but a lot of developers (including individual developers and corporate developers) do not bother to go to a special server maintenance,Therefore, the direct use of App and Apple[……]

Click link to continue reading...

Proper use PIP to install Python package to avoid TypeError: ‘module’ object is not callable

Before,I have been so install and use pip on the macOS:

later,This method is ineffective,Become such:

Finally one day,I need to update it prompted pip,thereupon:
[cray[……]

Click link to continue reading...

Changjei generation and accelerated code table from cns11643 Chinese official standard full flash

Has long been,I'm rightCJandExpressThis is useful advice ...... circulated on the Internet version of the code table many fellow sufferers,But the name called "CJ",By contrast and Wubi,Anyhow, also points a stroke 86 and 98,Then there is little new in the new century, and so on,But no Changjei,No matter what version of the CJ,Called "CJ"。

This is very embarrassing,Changjei code table is different for each person with,But not the same where,He did not know。

total[……]

Click link to continue reading...

How do the most basic password security to the server.

Do app do site,Inevitably and server、Backstage、Data deal,Then developed as a background,When it comes to Register Login,You should think most users should be safe,In particular password security。

Now a website security community almost every day、A company is Tuoku,That is the whole point of being stolen database download。So all your user data fall into the hands of criminals,Even so should be how to prevent,Criminals can not get used[……]

Click link to continue reading...

Being Chinese Wikipedia corpus

Recently doing input method thesaurus,Implement new sentence input model,(Based on input model sentence the word I would talk back before),The new model is based on the input sentence HMM (I.e.Hidden Markov Models) To do,Of course,Due to limited funds, I personally equipment,Only the second order matrix。But even so,Model still need training。

of course,Not to say that with the novels and to train bad,Just hard to find the rows[……]

Click link to continue reading...

Let go pip Agent

When using python,Often you need to download some third-party framework,Fortunately, python has a similar apt package management tool,pip。

but,Although management packs can pip,But no source switching mirror,And we downloaded package,Most of the large foreign code hosting server,This often leads to a few hundred KB of package to download one hour。

 [……]

Click link to continue reading...