Android realizes TextView text reflection effect
Record the reflection effect of the TextView today, display a string of text, and then display its reflection below the text, first on the effect map: The most important thing is the getDrawingCache() method in View, which takes the image in the cache and draws it. Not much nonsense, I want to write a time with reflection, time can move. First write a View with time walking, this is very simple, get the current time, then open a thread, get the current time once every second, and then display it on the TextView, of course, we write the control, we need to inherit the TextView, the code as follows: Package com.alex.reflecttextview; Import java.uTIl.Calendar; Import android.content.Context; Import android.os.Handler; Import android.os.Message; Import android.text.format.DateFormat; Import android.uTIl.AttributeSet; Import android.widget.TextView; Public class TImeView extends TextView { Private staTIc final int MESSAGE_TIME = 1; Public timeView(Context context, AttributeSet attrs) { Super(context, attrs); New TimeThread().start(); } Public class TimeThread extends Thread { @Override Public void run() { Do { Try { Message msg = new Message(); Msg.what = MESSAGE_TIME; mHandler.sendMessage(msg); Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } while (true); } } Private Handler mHandler = new Handler() { @Override Public void handleMessage(Message msg) { super.handleMessage(msg); Switch (msg.what) { Case MESSAGE_TIME: setTime(); Break; Default: Break; } } }; Public void setTime() { Long sysTime = System.currentTimeMillis(); Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(sysTime); String sysTimeStr = DateFormat.format("hh:mm", sysTime).toString(); If(calendar.get(Calendar.AM_PM) == 0) { sysTimeStr += " AM"; } else { sysTimeStr += “PMâ€; } setText(sysTimeStr.replace("1", "1"))); } }
Bitcoin mining equipment is mainly highly specialized ASIC mill , The maximum computing power of a single miner is 110T/s( Ant S19Pro mill ), The scale of computing power of the whole network is 120EH/s above . Ethereum's mining equipment is mainly graphics card mining machine , Professional ASIC Mining machines are very few , On the one hand, it is because of the of Ethereum mining algorithm [ resist ASIC sex " Improved R & D efficiency ASIC The threshold of the miner , So how much do you know about the mainstream Ethereum mining machine ?
Ethereum mining algorithm has higher requirements for memory , The purpose of this design limits ASIC The use of chips in Ethereum mining . From the results , Most Ethereum mining machines are graphics card machines , This reflects the application of Ethereum mining algorithm ASIC Success on . From the absolute value of computational power scale , The computing power of Ethereum is about 200TH/s, The computing power of bitcoin is about 120EH/s, The latter is close to the former 60 ten thousandfold .
ASIC Mining machines have high computing power , Large power consumption , Like the latest ant S19Pro mill , Rated power consumption is 3250W, Need to consume... Every day 78 Degree electricity , According to the current currency price and 0.23 The electricity price in wet season is RMB , The proportion of electricity charge is 30.68%. Other older bitcoins ASIC mill , Like ants T17 series , The proportion of electricity charges generally exceeds 50%. by comparison , The power consumption of the graphics card miner is low , The proportion of electricity is also low . such as 5600XT8 Graphics card miner of card .
Ant S19-95T It adopts aluminum alloy profile electromechanical integrated design , Parallel four fan structure . According to the measured data , In line with and better than the official data .S19 The series is provided by TSMC 7nm chip , A new generation of customized chips with perfect whole machine architecture and high conversion rate APW12 Power Supply , Reduce power loss during conversion , Use more energy-saving , Greatly shorten the return cycle of the miner . In addition, the newly upgraded mining machine operation interface is also more humanized , Real time computing power . The average computing power and the operation of each chip are clear at a glance .
Shenma mining machine M30S-86T/88T/90T, Bit micro 2020 Launched in 2013 M30S Series of new mining machines , Announced that it would M30S The series is expanded to three 3X product . stay 3X In the new standard , Bit micro promises a one-year warranty for its series of products . This series of mining machines are provided by Samsung 8nm chip , Among them, god horse M30S series , The power consumption is 38J/T, Provide higher computing power , Lower power consumption and high stability.
Ethereum Mining Machine:Jasminer X4,Bitmain Antminer E9 (2.4Gh),iPollo V1,Jasminer X4-1U,iPollo V1 Classic, Ethereum Mining Machine,ETHW Miner,innosilicon a10 pro,E9 Antminer,Innosilicon A11 Shenzhen YLHM Technology Co., Ltd. , https://www.sggminer.com
Jasminer X4-C 1U,iPollo V1 Mini SE Plus