• PI Zi Heng Bi monthly No.21


    Bimonthly: the 21st issue Here we share some interesting projects / tools and some hot news in the embedded field. The Lunar New Year is divided into 24 solar terms. We hope to release one issue on time on the day of each festival. This journal is an open source projectJayHeng/pzh-mcu-bi-weekly)Welcome to issue, contribute or […]

  • PHP encryption and decryption, refer to discuz


    <?php /** *Encryption key */ define(“ENCRYPT_KEY”, “sqltest1179631111”); //Encryption $password = “123456”; $enCryPass = demoEncode($password); var_dump($enCryPass); //Decryption $deCryPass = demoDecode($enCryPass); var_dump($deCryPass); /** *Encryption *@ param $password string password before encryption * @return false|string */ function demoEncode($password) { return authCode($password, “ENCODE”, ENCRYPT_KEY); } /** *Encryption *@ param $encrypass string password to decrypt * @return false|string */ function […]

  • Explain in detail the installation of sql2012 error could not open key… Solutions


    [foreword] Before, due to the wrong operation of Xiaobian, an item about SQL in the registration form was deleted by mistake. What was deleted was also forgotten. At that time, it was to solve a SQL problem, but the problem was not solved. Instead, SQL was unable to be repaired, installed or unloaded. However, due […]

  • Very simple matrix scanning program of 51 single chip microcomputer


    /*Key position definition of key*/ unsigned char code anj[4][4] = { 1, 2, 3, 10, 4, 5, 6, 11, 7, 0, 9, 12, 13, 8, 14, 15, }; char ScanKey() { Char key = – 1; // the assignment is used to judge if the key is not pressed unsigned i,j; for (i = 0;i […]

  • Tkinter (44) event


    In some cases of our program, we call the event. We link the event and related parameters to a function, called binding. When the event occurs, the function will be called. The event related content is divided into three parts: event event, callback function callback and binding Level of binding Binding components, usingbind()method Binding part […]

  • Simplify the process of program development in single chip microcomputer


    First of all, as a new comer, I don’t have much experience in SCM development, so there may be some errors in writing some related documents. I hope you can include them more! I also hope that you will give me your advice and advice! Good memory is not as good as bad writing. The […]

  • Configuration of SSH key in Git


    Git clone supports two ways to download source code: HTTPS and git (SSH) When using git mode to download, if SSH key has not been configured, the following error prompts will appear: Here’s how to configure the SSH key of GIT so that we can download the source code in Git mode. First, check whether […]

  • Recommend a lightweight but efficient free open source windows hotkey scripting language AutoHotKey


    The words written in the front AutoHotKey is a lightweight, small but efficient, free and open source windows hotkey scripting language. Game manipulation, mouse operation, keyboard shortcut redefinition, shortcut phrases and so on, only you can’t imagine, without it, you can’t do it. The artifact of artifact, I hate to meet you late. install Download […]

  • Applet daily – head navigation component of custom component


    Head navigation unit With a small house and return key, the background color can be set, the title text color can be set, the capsule background color can be set, the border color can be set, which is a more comprehensive, is currently in practical application, which can be referred to~ headerNabvar.js const app = […]

  • Win10 Ctrl and ALT key exchange


    I tried to use third-party software to modify, but it was always unsuccessful. Later, I found that modifying the registry directly was very successful. Win + R input regedit Go to this path Note: to create a new binary file named scayboard, right click on it Enter the code 00,00,00,00,00,00,00,00 03,00,00,00,38,00,1D,00 1D,00,38,00,00,00,00,00 How it’s done […]

  • Redis solves the key garbled problem and cleans up the detailed explanation


    Key garbled code problem Since redis uses the jdkserializationredisserializer by default, the key is garbled, as follows: keys ‘*!report:flag:phon*’ 1) “\xac\xed\x00\x05t\x00!report:flag:phone_156464” 2) “\xac\xed\x00\x05t\x00!report:flag:phone_198946” 3) “\xac\xed\x00\x05t\x00!report:flag:phone_183302” Solve key garbled code private RedisTemplate redisTemplate; @Autowired(required = false) public void setRedisTemplate(RedisTemplate redisTemplate) { RedisSerializer stringSerializer = new StringRedisSerializer(); redisTemplate.setKeySerializer(stringSerializer); redisTemplate.setValueSerializer(stringSerializer); redisTemplate.setHashKeySerializer(stringSerializer); redisTemplate.setHashValueSerializer(stringSerializer); this.redisTemplate = redisTemplate; } Clean up […]

  • Key and room | Python


    841. Keys and rooms Source: leetcode https://leetcode-cn.com/problems/keys-and-rooms subject There are n rooms. You were in room 0 at the beginning. Each room has a different number: 0, 1, 2,…, n-1, and there may be some keys in the room that will allow you to enter the next room. Formally, there is a key list rooms […]