Programming language evolution

Machine language: (binary code) The advantage is: as the bottom language, the highest efficiency is the shortcoming: the development is the most complex and the development efficiency is low. Assembly language: The advantages are: high efficiency, disadvantages: complexity and low development efficiency. High-level language: Separate compilation and interpretation: Compilation: high efficiency, installation of compiler, no dependence on language execution, and disadvantage of poor cross platform performance. Interpretability: the development efficiency is the highest, which can be implemented...

centos 7 network.service control process exited

First, service network restart error. Question Description: vmware 12 Next CentOS 7 network mode, NAT Last night the author planned to update his virtual machine python, found no network Ping www.baidu.com, and then on Windows Ping 192.168.187.130 local, found no problem, So restart the network service: service network restart found the following error: Restarting network (via systemctl): Job for network.service failed. See ‘systemctl status network.service’ and ‘journalctl -xn’ for details. According to the prompt input: [root@localhost~] # systemctl status network s...

JS refresh window, close windows

First, refresh windows.    document.location.href=document.location.href; Two. Close the window. 1、 Close the window without any hints. <a href="javascript:window.opener=null;window.open('','_self');window.close();">Close < /a> 2、Custom prompt closure <script language="javascript"> // This script is a generic script for IE6 and IE7. function custom_close(){ if (confirm("Are you sure you want to close this page? ")){ window.opener=; window.open('','_self'); window.close(); } else{} } </script> <input id="btnClose" type="button" value="Close the page ...

HBase- filters (various filters and code implementation)

Filter introduction HBaseFilters provide a very powerful feature to help users improve the efficiency of processing data in their tables. HBaseTwo of the main data reading functions are get and scan, both of which support direct access to data and access data by specifying start and stop key. You can add more restrictions to the query to reduce the amount of data you get. These restrictions can specify column families, columns, timestamps, and version numbers. All filters take effect on the server side, called predicate push-down, which ensures that the filtered data is not transmitted to the...

Threads and processes

Process (process) thread (thread) folk understanding Processes focus on managing the allocation and scheduling of memory resources, and threads focus on using the CPU to run code Threading is equivalent to the number of pipelines in a factory, and the process is the product being produced on a certain pipeline. Process is the basic unit of allocating resources, and threads are the basic units of execution.。In a purely metaphorical way, if you look at the computer as a whole as a national budget, the process is all kinds of special budgets (education, defense, etc.), and the thread is a more...

Character 16 binary byte relationship

* charThe character store space is one byte.* 16Each character in the decimal system needs to be represented by a 4-bit binary, 0x0 0000, 0xf 1111, or a hexadecimal number of 4 bits.* For example, 42 4D38 04 04 00 00 00 00 00 36 04 00 00,Every two hexadecimal digits are separated, meaning: because one hexadecimal digit is 4 digits, two are 8 digits, or 1 byte, so here is 14 bytes, in bytes, easy to count* * BEFORE DECODE (16 bytes) AFTER DECODE (13 bytes) * +------+--------+------+----------------+ +------+----------------+ * | HDR1 | Length | HDR2 | Actual ...