This example describes the way in which text in the Android TextView sets properties through Spannablestring. Share to everyone for your reference, specific as follows:
In Android, TextView is the most common control we use to display text.
In general, the text in TextView is a style. So how do you set the font, size, color, style, and hyperlink properties for the text of each part of the TextView? Let's demonstrate this by spannablestring the specific example of the operation.
Create a S
Fabric CA Server (default:http://localhost:7054) url:http://localhost:7054 # Membership Service Provider (MSP) directory # when T He client are used to enroll a peer or a orderer, this field must was # set to the MSP directory of the Peer/orderer Mspdir : ############################################################################# # TLS section for Secure socket CONNEC
tion #############################
service-side stream interface stream to handle the signedevent type data sent by the receiving client. Handler in detail in the following article. In, err: = stream. RECV (), which receives the signedevent type of data, is also the standard use of GPRC bidirectional flows. Err = handler. Handlemessage (in), using handler to process data, Handlemessage is the actual data processing function.
In the Handlemessage function, the client sends the signed signedevent type of data, checks the validity,
Hyperledger source code Analysis of Fabric
The Orderer node startup is implemented by the main () method under the Orderer package and further calls to the main () method in the Orderer/common/server package.
The core code is shown below.
Main is the entry point of Orderer Processfunc main () {
fullcmd: = Kingpin. Mustparse (app. Parse (OS. Args[1:])
//"version" command
if Fullcmd = = version. Fullcommand () {
fmt. Println (metadata. GetVersionInfo ())
return
}
protection), 3 the validity of the signature (using MSP), 4) The submitter (client A in the example) is properly authorized to perform the recommended action on the channel (that is, Each endorser ensures that the submitter satisfies the channel writer policy). Endorser the transaction proposal as a parameter to the function of the input invoked Chaincode, and executes them against the current state database to produce transaction results including r
backup-11 sm-msp-queue[1377]: My unqualified host name (backup-11) unknown; Sleeping for retryOCT 6 23:31:58 backup-11 sendmail[1372]: T96dlphc039178:to=OCT 6 23:32:55 backup-11 sm-msp-queue[1377]: Unable to qualify my own domain name (backup-11) – Using short nameby looking at the above log finally let me find clues, hehe, as follows:Dsn:service unavailableMy unqualified host name (backup-11) unknown; Sle
signature. If the-s option is specified, the-s option also needs to be specified when the other owner is signing. Otherwise, the chained package Signedchaincodedeploymentspec created will only add an instantiation policy on chaincodedeploymentspec basis and will not contain the owner's signature.-S: The package can be signed by the MSP (defined by the Localmspid attribute value in Core.yaml). -S is optional, and if a package is created without a sign
current log that there is a problem with the disk I/O where the archive log resides.
Log in to the database to view the archive path:Sql> Show Parameter Archive_dest
NAME TYPE VALUE------------------------------------ ----------- ------------------------------Log_archive_dest stringLog_archive_dest_1 string location=/export/home/oracle/dev/msp/log_archive_dest_1Log_archive_dest_10 stringLog_archive_dest_2 string location=/export/home/oracle/dev/
-chaincode=mycc1-events-mspdir=/usr/local/balance-transf-1.0.2/ Artifacts/channel/crypto-config/peerorganizations/org1.example.com/peers/peer0.org1.example.com/msp- Events-mspid=org1msp
After normal startup, monitor the event and print the results to the console. If you do not change these places, start the original Block-listen in the case of TLS connection will be a direct error exit.
Although the Org1 MSP
Recently encountered a problem, is the use of PHP mail function to send utf-8 encoded in Chinese mail when the title garbled phenomenon, and the message is the correct text. Originally thought is the page coding problem, found that the page coding Utf-8 no problem ah, looking for a half-day reason, finally found the problem.
1. Mail class with PEAR
PEAR's Mail class allows you to choose to use the SendMail or SMTP way to send a letter, such a packaged interface is good, you do not need to re
Environment
The machine was installed SendMail, but did not start. Mail server is on the other machine, and it has been added to the open relay list and can be sent through this mail server.
Download Address http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz
The code is as follows
Copy Code
#tar –ZXVF sendemail-v1.56.tar.gz#cd sendemail-v1.56#cp Sendemail/usr/local/bin
Then give confirmation that it has execute permissions
Microsoft Project (or MSP) is an item management software program that is developed and sold by Microsoft and is designed to help individuals track, organize, or maintain projects. The MPP is the file name extension for Microsoft Project, and you need to install the appropriate version of the project program to read and write to the. mpp file. Of course, the person who makes the MSP file is best converted t
), (7,1, ' EA ', 1.00), (10,2, ' EA ', 1.00), (11,15, ' EA ', 1.00), (12,3, ' EA ', 1.00), ( 13,4, ' EA ', 1.00), (14,2, ' ML ', 205.00), (15,7, ' EA ', 13.00), (16,12, ' G ', 15.00), (17,16, ' G ', 15.00)CREATE TABLE dbo. Cities(Cityid char (3) NOT null primary key,City varchar (+) is not NULL,Region varchar (+) NULL,Country varchar (+) NOT NULL);CREATE TABLE dbo. Roads(City1 char (3) NOT NULL references dbo. Cities,City2 char (3) NOT NULL references dbo. Cities,distance int NOT NULL,Primary KE
Because the company attendance system needs to upgrade, from the original server2003+sql2000 upgrade to server2003+sql2005, the installation of SQL2005 process all smooth, but in the SP4 patch, there is the following error prompt: Unable to install Windows Installer MSP file, log error: MSP error:1260 Windows cannot open this program because of a software restriction policy blocking. For more information, o
'_ nesc_hton_leint8'/Usr/lib/ncc/nesc_nx.h: 258: syntax error before '_ nesc_bf_decode8'Etc. And the problem seems to be for Telob. There is no problem in compiling micaz, and "make micaz" runs well.
After a while, Google finally found a solution. Open the file/opt/tinyos-2.1.1/support/make/msp. rules in
OBJCOPY = msp430-objcopyOBJDUMP = msp430-objdumpJoin before two rows
CFLAGS + =-I/usr/msp430/includeCFLAGS + =-I/usr/lib/gcc-lib/msp430/3.2.3/includ
static Musicplayer sinstance; Static class Type{public final S tatic int music_click = 1;p ublic final static int music_focused = 2;} Private Soundpool mSp ;p rivate mapStep three: Call the interface and play the audioThis is required on the interface to call//Initialize Mmusic = Musicplayer.getinstance (mainactivity.this);//Sound Mmusic.play when the click is played in the onclick ( MusicPlayer.Type.MUSIC_CLICK);//focus on the state of Onfocuschang
understanding: In fact, in the project, I use the least is polymorphic, in addition to arraylist Terminology: polymorphism refers to allowing objects of different classes to respond to the same message. Polymorphism consists of parameterized polymorphism and inclusion polymorphism. Polymorphism language has the advantage of flexibility, abstraction, behavior sharing and code sharing, which solves the problem of application function with the same name. Getting Started with Java Below I will intr
from the beginning of the first contact with a single-chip microcomputer (MCU), has always felt very fun. From the 8-bit 51 microcontroller to the 16-bit TI MSP series of single-chip microcomputer have tried to learn. It feels good, but it's been a long time ago that 32-bit ARM processors are far away. Fortunately, I do have a chance to touch a 32-bit processor right now. Of course the Cortext M4 core is used, one of the TI Stellaris series processors
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.