• Differences between iPad and iPhone development


    1、 Differences between iPhone and iPad development Screen size / resolution Layout / design of UI elements keyboard API Screen orientation support… … Because the iPad screen is larger than the iPhone and can accommodate more UI elements, the arrangement is differentFor example, Sina Weibo: (iPhone on the left, iPad on the right) keyboard The […]

  • Two computers with a set of keyboard and mouse operation method


    The method is as follows:1. First, you need to know the IP addresses of the two computers. The IP address can be obtained through the run box in the computer start menu, enter CMD, and enter ipconfig in the pop-up dialog box. Write down the IP addresses of the two computers.2. Both computers need to […]

  • #JS realizes browser’s full screen and exit full screen


    JS realizes browser’s full screen and exit full screen For more daily use of the public class operation method, you can pay attention to the small pulley website http://www.feiaci.com/#/self/… /** *Full screen */ let toFullScreen = () => { let el = document.documentElement; let rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullScreen; //typeof rfs […]

  • Finger pain, write some code to ease it


    I often use Emacs for writing – sometimes writing code, sometimes using org mode to manage to-do lists, and sometimes using restclient mode to test the HTTP API. Emacs’s rich shortcut keys allow me to do a lot of things without leaving the main keyboard area, but it also brings a different kind of trouble: […]

  • Microsoft’s new Windows terminal is finally stable


    Microsoft’s new Windows terminal has finally stabilized. Windows finally has a more modern terminal environment, including tags, split panes, multiple session types, and settings that allow you to configure everything from keyboard shortcuts to animated GIF backgrounds. Finally, a more modern windows terminal At build 2020 on May 19, 2020, Microsoft announced that the new […]

  • 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 […]

  • Upload local code to GitHub


    1. Create public key and private key 1) ssh-keygen -t rsa -C “[email protected]” 2) Press enter continuously 3) If ID exists_ The RSA file will displayXXX/.ssh/id_rsaaalready exists. It is necessary at this timerm -f id_rsaAnd repeat the above operation. [. SSH is a hidden file. If you want to display it, keyboard command + Shift […]

  • H5 webpage, IOS mobile terminal soft keyboard folded, page content does not slide


    IOS mobile terminal input content, soft keyboard pop-up, the whole page content moved up. But the keyboard is folded, and the page content does not slide. Android is OK. The treatment methods are as follows: //JQuery method reference $(‘input,textarea’).on(‘blur’,function(){ window.scroll (0,0); // the key is this sentence }); $(‘select’).on(‘change’,function(){ window.scroll(0,0); }); The principle is that […]

  • C practical exercise topic 18


    Title:Find the value of S = a + AA + AAA + AAAA + AA… A, where a is a number. For example, 2 + 22 + 222 + 2222 + 22222 (at this time, there are 5 numbers added), and the addition of several numbers is controlled by keyboard. Program analysis:The key is to […]

  • Keyboard events


    1、 Listen for enter call events1、jquery: $(“dom”).keypress(function (even) { if (even.which == 13) { //Event handling } }); 2、JavaScript: document.onkeydown=function(event){ var e = event || window.event || arguments.callee.caller.arguments[0]; If (E & & e.keycode = = 27) {// press ESC //Event handling } If (E & & e.keycode = = 13) {// enter key //Event handling […]

  • A Windows Desktop sedentary reminder widget


    download To get to the point, give the download address directly introduce There is no need to talk about the harm of sitting for a long time, but when we work, we always sit for hours without moving.Before graduation last year, I wrote a desktop sedentary reminder tool that I didn’t care about when I […]

  • JavaScript game example: simple keyboard practice


    Keyboard is a kind of common input equipment. It is a basic skill for computer users to input flexibly and skillfully. Let’s write a simple keyboard practice game. 1. Small interactive animation of puncturing bubbles Before writing a simple keyboard practice game, first design a simple bubble piercing interactive animation. At the bottom of the […]