Hashfast pool
Publish: 2021-04-18 07:24:36
1. mining pools are arranged according to computing power. For example, the computing power of digyi mining bitcoin mining pool accounts for about 4% of the total network computing power, ranking among the top ten mining pools in the world. The four technology blockchains are relatively good.
2. Mining is actually competing for the right to pack in the block
as tens of thousands of miners compete for the right to pack, the probability of a single miner seizing the right to pack is very small, and the output is very unstable. It is possible to grab the right once an hour or not once a year
in order to stabilize the mining output, miners often choose to join the mining pool. The mining pool integrates the computing power of a large number of miners and occupies a certain share in the total computing power of the whole network, so as to obtain a more stable mining output. After charging 2% ~ 4% of the pool handling charge, the output is distributed to the miners according to the miners' computing power
it's just like that it's hard for one person to win the lottery, so the mine pool organizes many people to buy the lottery together, and after winning the lottery, they are distributed to everyone according to the amount of contribution.
as tens of thousands of miners compete for the right to pack, the probability of a single miner seizing the right to pack is very small, and the output is very unstable. It is possible to grab the right once an hour or not once a year
in order to stabilize the mining output, miners often choose to join the mining pool. The mining pool integrates the computing power of a large number of miners and occupies a certain share in the total computing power of the whole network, so as to obtain a more stable mining output. After charging 2% ~ 4% of the pool handling charge, the output is distributed to the miners according to the miners' computing power
it's just like that it's hard for one person to win the lottery, so the mine pool organizes many people to buy the lottery together, and after winning the lottery, they are distributed to everyone according to the amount of contribution.
3. The mining machine of bitfish mine is a cluster mining machine with high computing power. The era of CPU mining has long passed, and GPU mining is not the mainstream. Now bitfish mine is an era of ASIC mining and large-scale cluster mining. Looking back on the mining history, bit mining has gone through the following five times: CPU mining, GPU mining, FPGA mining, ASIC mining, large-scale cluster mining, while the mining chips are updated, the mining speed changes are: CPU (20mbash / s), GPU (400mbash / s), FPGA (25ghash / s), ASIC (3.5tash / s), large-scale cluster mining (3.5tash / s * x), At present, bitfish is simulating quantum computing, but it is still a high computing power cluster miner.
4. seven o' When does he break fast? When does he break fast? When does he break fast?
5. JSONObject object = new JSONObject();
object.put("param", "1");
HashMap<String, String> map = JSONObject.parseObject(object.toString(), HashMap.class);
System.out.println(map);
object.put("param", "1");
HashMap<String, String> map = JSONObject.parseObject(object.toString(), HashMap.class);
System.out.println(map);
6. You can send struct directly as long as all variables in struct are char or char array. I made the open source projects fastdfs and fastdht do this. They passed the test under multiple operating systems, and there was no problem
fastdht protocol header format:
typedef struct
{
char PKG_ len[4]; // body length
char key_ hash_ code[4]; // the key hash code
char timestamp[4]; // current time
/* key expires, remain timeout = expires - timestamp */
char expires[4];< br />char cmd;< br />char keep_ alive;< br />char status;< br />} FDHTProtoHeader;
using sizeof (fdhtprotoheader) gets 19 bytes.
fastdht protocol header format:
typedef struct
{
char PKG_ len[4]; // body length
char key_ hash_ code[4]; // the key hash code
char timestamp[4]; // current time
/* key expires, remain timeout = expires - timestamp */
char expires[4];< br />char cmd;< br />char keep_ alive;< br />char status;< br />} FDHTProtoHeader;
using sizeof (fdhtprotoheader) gets 19 bytes.
7. You changed test. PHP to & lt;? php phpinfo();?& gt;
then open it, pay attention to the path of php.ini called
and then execute PHP -- info | grep php.ini to see which directory php.ini calls
if the php.ini path of phpinfo() is different from the path in PHP -- info. Modify
If PHP FPM is used to process PHP, add the - C parameter to specify php.ini when starting PHP FPM
If PHP is processed with splash fcgi, start splash fcgi with the - F & quot parameter; PHP CGI - C php.ini path & quot
for example, splash fcgi - a 127.0.0.1 - P 10100 - C 40 - U www - G www - F & quot; php-cgi -c /etc/php.ini"
then open it, pay attention to the path of php.ini called
and then execute PHP -- info | grep php.ini to see which directory php.ini calls
if the php.ini path of phpinfo() is different from the path in PHP -- info. Modify
If PHP FPM is used to process PHP, add the - C parameter to specify php.ini when starting PHP FPM
If PHP is processed with splash fcgi, start splash fcgi with the - F & quot parameter; PHP CGI - C php.ini path & quot
for example, splash fcgi - a 127.0.0.1 - P 10100 - C 40 - U www - G www - F & quot; php-cgi -c /etc/php.ini"
8. If some people don't want to go out to play ring the May Day holiday, and they don't want to be bored in the dormitory, why don't they go out to do a part-time job and earn some pocket money? For example, go to a small fast food restaurant to serve dishes, which can not only exercise the body, but also exercise the ability to deal with people
"sling hash" in English is used to refer to "serving in a cheap small fast food restaurant", that is, serving dishes in our common saying“ "Sling" means "throw." hash "means cheap food in fast food restaurants, such as bacon, potatoes and vegetables. It seems that the foreign "fast" restaurants even have the words reflected, their plates are not "end", but used to "sling"<
take an example:
Jody earned money for college by slinging hash in a fast food restaurant ring the summer
What's up? Are you excited? There are many snacks waiting for you on the street! Come to the a hash house to sling hash and taste the ups and downs of the a hash slinger!
"sling hash" in English is used to refer to "serving in a cheap small fast food restaurant", that is, serving dishes in our common saying“ "Sling" means "throw." hash "means cheap food in fast food restaurants, such as bacon, potatoes and vegetables. It seems that the foreign "fast" restaurants even have the words reflected, their plates are not "end", but used to "sling"<
take an example:
Jody earned money for college by slinging hash in a fast food restaurant ring the summer
What's up? Are you excited? There are many snacks waiting for you on the street! Come to the a hash house to sling hash and taste the ups and downs of the a hash slinger!
9. // jackson
private static ObjectMapper om = new ObjectMapper();< br />public static String objectToString (Object obj ) throws IOException{
return om.writeValueAsString (obj );< br />}
@Test
public void test1() throws IOException {
Map< String, Object> map = new HashMap< String, Object>();< br />
Map< String, String> map2 = new HashMap< String, String>();< br /> map2.put (" name", & " 1");< br /> map2.put (" age", & " 12");< br /> map.put (" that", map2 );< br />
List< String> list = new ArrayList< String>();< br /> list.add (" hi"); list.add (" hello");< br /> map.put (" list", list );< br />
List< Map< String, String>> gt; confuselist = new ArrayList< Map< String, String>> gt;();< br /> Map< String, String> map3 = new HashMap< String, String>();< br /> map3.put (" name", & " 1");< br /> map3.put (" age", & " 12");< br /> confuselist.add (map3 );< br /> confuselist.add (map2 );< br /> map.put (" confuselist", confuselist );< br />
Object array = Array.newInstance (String.class, 10 );< br /> Array.set (array, 0, " a");< br /> Array.set (array, 1, " b");< br /> Array.set (array, 2, " c");< br /> map.put (" array", array );< br /> // 使[UNK] jackson
System.out.println (objectToString (map ));< br /> // 使[UNK] fastJson
System.out.println (JSON.toJSONString (map ));< br />}
输< br />{" att":{& " age":& " 12",& " name":& " 1"},& " list":[& " hi"," " hello"],& " confuselist":[{& " age":& " 12",& " name":& " 1"}, {& " age":& " 12",& " name":& " 1"}],& " array":[& " a"," " b",& " c," null,null,null,null,null,null]}
{" att":{& " age":& " 12",& " name":& " 1"},& " list":[& " hi"," " hello"],& " confuselist":[{& " age":& " 12",& " name":& " 1"},{& quot;$ ref":& "$. att"}],& " array":[& " a"," " b",& " c," null,null,null,null,null,null]}
private static ObjectMapper om = new ObjectMapper();< br />public static String objectToString (Object obj ) throws IOException{
return om.writeValueAsString (obj );< br />}
@Test
public void test1() throws IOException {
Map< String, Object> map = new HashMap< String, Object>();< br />
Map< String, String> map2 = new HashMap< String, String>();< br /> map2.put (" name", & " 1");< br /> map2.put (" age", & " 12");< br /> map.put (" that", map2 );< br />
List< String> list = new ArrayList< String>();< br /> list.add (" hi"); list.add (" hello");< br /> map.put (" list", list );< br />
List< Map< String, String>> gt; confuselist = new ArrayList< Map< String, String>> gt;();< br /> Map< String, String> map3 = new HashMap< String, String>();< br /> map3.put (" name", & " 1");< br /> map3.put (" age", & " 12");< br /> confuselist.add (map3 );< br /> confuselist.add (map2 );< br /> map.put (" confuselist", confuselist );< br />
Object array = Array.newInstance (String.class, 10 );< br /> Array.set (array, 0, " a");< br /> Array.set (array, 1, " b");< br /> Array.set (array, 2, " c");< br /> map.put (" array", array );< br /> // 使[UNK] jackson
System.out.println (objectToString (map ));< br /> // 使[UNK] fastJson
System.out.println (JSON.toJSONString (map ));< br />}
输< br />{" att":{& " age":& " 12",& " name":& " 1"},& " list":[& " hi"," " hello"],& " confuselist":[{& " age":& " 12",& " name":& " 1"}, {& " age":& " 12",& " name":& " 1"}],& " array":[& " a"," " b",& " c," null,null,null,null,null,null]}
{" att":{& " age":& " 12",& " name":& " 1"},& " list":[& " hi"," " hello"],& " confuselist":[{& " age":& " 12",& " name":& " 1"},{& quot;$ ref":& "$. att"}],& " array":[& " a"," " b",& " c," null,null,null,null,null,null]}
10. If not, deserialize step by step
1. Get the deserialization of each JSON object, including mods_ Description should be defined as string.
2_ Description the JSON array is then deserialized. Note that this is a JSON array, using list
1. Get the deserialization of each JSON object, including mods_ Description should be defined as string.
2_ Description the JSON array is then deserialized. Note that this is a JSON array, using list
Hot content