512 bytes, even if the size of the block created by the file system is 4096 bytes, the block calculation here is always 512 bytes. for example, if we write a byte to this file, this file actually occupies the size of a block when a file system is created. The holes in the file are used to save the actual storage space. the holes do not occupy the actual disk blocks. the isize display size contains the hole
Connection closed by foreign host.
On this basis, you can write a simple SMTP class.
Class stmp{
Private $mailcfg =array ();
Private $error _msg= ';
function __construct ($mailcfg) {
$this->mailcfg= $mailcfg;
}
Public function Send ($mail) {
$mailcfg = $this->mailcfg;
if (! $fp = Fsockopen ($mailcfg [' Server '], $mailcfg [' Port '], $errno, $ERRSTR, 30)} {
return $this->error ("($mailcfg [Server]:
I believe many new users who want to learn linux are wondering what linux learning courses are good. The following small series will collect and organize several important tutorials for you to learn, if you want to learn more, go to the wdlinux school to find more tutorials.LinuxMount NTFSPartitioning and attaching MethodsIf your disk is in NTFS format, follow these steps to skip the next step.First download a NTFS-3G: Http://www.tuxera.com/community/ntfs-3g-download/Upload the downloaded packag
, with a good one-way iterative function, you can use the appropriate iterative method to construct the iterative hash function, the hash function of the security design theory has the following two points: one is the one-way function, and the other is the randomness of function mapping. The common hash algorithm is MD-5, SHA and so on.Introduction to the 2.SHA1 algorithmSHA (Security hash algorithm) is a standard hash algorithm for the NIST and NSA designs in the United States, originally publi
again # mount/dev/sdb/data -- mount the disk to the created mount directory # vi /etc/fstab -- modify the Automatic startup Mount entry/dev/sdb/data ext3 defaults 0 0*************************
Description
*************************
1. the above operations are a summary. If you can understand them, you do not need to browse the following content;
2. The following are two examples to illustrate the operation process.
**************************************** ****************************************
information appears disk/dev/sda:21.5 GB, 21474836480 bytes 255 heads, Sectors/track, 2610 cylinders Units = cylinders of 16065 * 8225280 bytes Sector size (logical/physical): bytes/512 bytes I/o size (minimum/optimal): Bytes/ Bytes Disk identifier:0x000b604c Device Boot Start End Blocks Id System /dev/sda1 * 1 523 4194304, Linux P Artition 1 does not end on cylinder boundary. /dev/sda2 523 784 2097152 for Linux Swap/solaris Partition 2 does n
In the case of KVM or Xen virtualization, it is often necessary to use the mirror files (image file), we can start the guest system, and then modify the mirrored file, but this is sometimes more cumbersome, in fact, can be the image file directly mount, There are two ways to do this.method One: Find the starting position of the partition, and use the offset parameter of the Mount command to offset the unwanted before you can get the real partition. the specific steps are as follows:1. Use "Fdisk
/dev/sda: 16.1 GB, 16106127360 bytes
255 heads, 63 sectors/track, 1958 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Device Boot Start End Blocks Id System
/Dev/sda1*1 64 514048 + 83 Linux
/Dev/sda2 833 1958 9044595 83 Linux
/Dev/sda3 65 701 5116702 + 83 Linux
/Dev/sda4 702 832 1052257 + 5 Extended
/Dev/sda5 702 832 1052226 82 Linux swap/Solaris
Partition table entries are not in disk order
Disk/dev/sdb: 536 MB, 536870912 bytes
64 hea
# fdisk-l -- view the disk again # mount/dev/sdb/data -- mount the disk to the created mount directory # vi /etc/fstab -- modify the Automatic startup Mount entry/dev/sdb/data ext3 defaults 0 0*************************
Description
*************************
1. the above operations are a summary. If you can understand them, you do not need to browse the following content;
2. The following are two examples to illustrate the operation process.
**************************************** *************
foreign host.
On this basis, you can write a simple SMTP class.
?
Class stmp{
Private $mailcfg =array ();
Private $error _msg= ';
function __construct ($mailcfg) {
$this->mailcfg= $mailcfg;
}
Public function Send ($mail) {
$mailcfg = $this->mailcfg;
if (! $fp = Fsockopen ($mailcfg [' Server '], $mailcfg [' Port '], $errno, $ERRSTR, 30)) {
return $this->error ($mailcfg [Server]: $mailcfg [port]) connect-unable to CONNECT to the SMTP server, please check your R \ "Mail_config.php\");
}
S
1. Start live cd with a cd for Ubuntu installation. (If you were using a USB flash drive, you can use a USB flash drive instead of live cd. The effect is the same. I use thinkpad, press F12 at startup, select start from usb, and enter the linux system by default.) 2. Open the terminal and enter the command ubuntu @ ubuntu :~ $ Sudo-I # Switch to the root user identity root @ ubuntu :~ # Fdisk-l # view the partition of the computer disk. The following shows the result. The result varies with the
(512 byte/Page) NAND FlashIn fact, this m is alsoLarge-page mode (2 k/Page) NAND Flash)Due to my limited energy and ability, I hope that you will be interested in the experts, if you have time, study how to make the above qemu support large capacity such as m of NAND Flash, so that, you can continue learning and experimenting without a Development Board!
Kasim
Th
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.