Tag:Beijing

  • PHP regular expression core technology full details section 4 PHP regular search matching processing function experience and skills

    Time:2020-11-3

    Author: geek Xiaojun, a post-80s generation focusing on Web Technology I don’t have to spell smart people, I just need to spell those lazy people, I will certainly surpass most people!CSDN @ geek Xiaojun, original article, B station technology sharingVideo of station B:Bilibili.com 👈Personal blog:cnblogs.com 👈 Perl compatible regular expression processing function in PHP Before […]

  • Domain learning note 12: optimizing user login with site control active directory replication

    Time:2020-10-10

    1、 Preface If the company has branches in Beijing and Shanghai, each branch has its own domain (or domain tree). They form a domain forest together and visit each other through the Internet (such as VPN). When a user in Shanghai logs in to the domain, it is possible to find the domain server in […]

  • As a core member of the special class, baidu super chain participated in the top-level design of Beijing government affairs blockchain

    Time:2020-9-29

    In order to accelerate the innovation and development of blockchain technology and industry, Beijing Municipal Administration of government services, Beijing Science and Technology Commission, and Beijing Economic and Information Bureau organized relevant units to promote the application and construction of blockchain in the field of government affairs services, and achieved phased results. On this basis, […]

  • SQL: Recursive query in MySQL

    Time:2020-9-13

    DROP TABLE IF EXISTS `dudept`; CREATE TABLE `dudept` ( `Id` int(11) NOT NULL AUTO_INCREMENT comment ‘ID’, `deptCode` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL comment”, `deptName` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL comment”, `pCode` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL comment”, `ParentId`int(11) not null comment ‘Parent ID’, PRIMARY […]

  • Vue project commonly used method encapsulation, continuous update…

    Time:2020-7-9

    It can be used directly in Vue project 1. Common tools untils.js in /* *Whether the qualified mobile phone number is verified *True means qualified */ export function isPhone(phoneStr){ let myreg = /^[1][3,4,5,7,8,9][0-9]{9}$/; if (!myreg.test(phoneStr)) { return false; } else { return true; } } /* *Verify whether the ID card number is qualified *True […]

  • Regular Encyclopedia

    Time:2020-7-6

    Regular Encyclopedia 1. Train number /^[GCDZTSPKXLY1-9]\d{1,4}$/ 2. Mobile phone body code (IMEI) /^\d{15,17}$/ 3. Address (or IP) with port number /^((ht|f)tps?:\/\/)?[\w-]+(\.[\w-]+)+:\d{1,5}\/?$/ 4. Website address (URL, support port and “? + parameter” and “ා + parameter) /^(((ht|f)tps?):\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\[email protected]?^=%&\/~+#-])?$/ 5. Unified social credit code /^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/ 6. Thunderbolt link /^thunderx?:\/\/[a-zA-Z\d]+=$/ 7. Ed2k link (loose matching) /^ed2k:\/\/\|file\|.+\|\/$/ 8. Magnetic link […]

  • In 2020, these “regularities” should be collected

    Time:2020-6-22

    Source: https://github.com/any86/any-… Train number /^[GCDZTSPKXLY1-9]\d{1,4}$/ Mobile phone body code (IMEI) /^\d{15,17}$/ Web address (or IP) with port number required /^((ht|f)tps?:\/\/)?[\w-]+(\.[\w-]+)+:\d{1,5}\/?$/ Web address (URL, support port and “? + parameter” and “? + parameter) /^(((ht|f)tps?):\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\[email protected]?^=%&\/~+#-])?$/ Unified social credit code /^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/ Thunderbolt link /^thunderx?:\/\/[a-zA-Z\d]+=$/ Ed2k link (loose fit) /^ed2k:\/\/\|file\|.+\|\/$/ Magnetic link (loose fit) /^magnet:\?xt=urn:btih:[0-9a-fA-F]{40,}.*$/ Subnet mask /^(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(?:\.(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}$/ […]

  • Pipeline operation delete mongodb duplicate data

    Time:2020-4-22

    Preface BecauseMongoDBConstraints are relatively small, so sometimes there will be a lot of duplicate data in the database, especially the data of crawlers. Once the number of documents reaches a certain data level, in order to ensure that the newly inserted data is not repeated, if you useupdateIt’s a little slow to operate. It’s better […]

  • Element UI drop-down list select all, add a new option to select all

    Time:2019-12-28

    It is often used in projects. In a multi select drop-down box, add a new option to select all options, such as: Document <span style=”background-color: #f5f5f5; color: #0000ff;”>new</span><span style=”background-color: #f5f5f5; color: #000000;”> Vue({ el:</span><span style=”background-color: #f5f5f5; color: #000000;”>”</span><span style=”background-color: #f5f5f5; color: #000000;”>#app</span><span style=”background-color: #f5f5f5; color: #000000;”>”</span><span style=”background-color: #f5f5f5; color: #000000;”>, data:{ cities: [ {value: </span><span […]

  • Android list dialog setitems

    Time:2019-12-3

    private Button button; Private final charsequence [] items = {“Beijing”, “Shanghai”, “Guangzhou”}; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (Button) findViewById(R.id.button); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this); Builder.settitle (“please select the following cities”); //Builder. SetMessage (“please select the following […]