PHP 引入檔 路徑搜尋
Python變數
Function
OOP of PHP & Python(物件導向)
賦值運算子 (assignment operator)php&python
sprintf
PHP Note
2018年10月22日 星期一
Linux
檔案管理File management
檔案系統管理File systems
系統資訊System Information
系統管理System management
套件管理Package managerment
網路管理Networking
程序管理Process control
使用者管理User management
開機啟動及服務啟動管理sysV vs systemd
vi指令
NFS與CIFS
google-drive-ocamlfuse(install google-drive on linux)
Apache note
Apache-CGI配置
Apache-虛擬主機
Apache-資料夾設定
Apache-全域設定
Apache-.htaccess 改寫網址設定
Apache-啟動多少個服務器進程
Linux 的開機程序
檔案系統的掛載與卸載(mount and umount)
檔案系統
檔案系統管理File systems
系統資訊System Information
系統管理System management
套件管理Package managerment
網路管理Networking
程序管理Process control
使用者管理User management
開機啟動及服務啟動管理sysV vs systemd
vi指令
NFS與CIFS
google-drive-ocamlfuse(install google-drive on linux)
Apache note
Apache-CGI配置
Apache-虛擬主機
Apache-資料夾設定
Apache-全域設定
Apache-.htaccess 改寫網址設定
Apache-啟動多少個服務器進程
Linux 的開機程序
檔案系統的掛載與卸載(mount and umount)
檔案系統
換行(newline,linebreak)
<br /> 是一個HTML換行符
換句話說,當您將頁面視為呈現的HTML時,<br />將創建一個新行。
\ n是源代碼中的換行符
而當您查看源代碼時,\ n將創建一個新行。
或者,如果您輸出到CLI而不是將由Web瀏覽器呈現的某個位置,則\ n將在CLI輸出中創建換行符。
e.g.
<?php
echo " 換行<br />";
?>
in CLI
<?php
#!/usr/bin/php
<?php
echo " 換行\n";
?>
換句話說,當您將頁面視為呈現的HTML時,<br />將創建一個新行。
\ n是源代碼中的換行符
而當您查看源代碼時,\ n將創建一個新行。
或者,如果您輸出到CLI而不是將由Web瀏覽器呈現的某個位置,則\ n將在CLI輸出中創建換行符。
e.g.
<?php
echo " 換行<br />";
?>
in CLI
<?php
#!/usr/bin/php
<?php
echo " 換行\n";
?>
Comment syntax(程式的註解)
Bash
#This is a comment.
PHP
// This is a single-line comment.
# This is also a single-line comment.
/*
This is a multiple-lines comment block.
*/
Python
# This is a comment.
"""
This is a multiple-lines comment block.
"""
HTML
<!--This is a comment.-->
Jacascript
// This is a single-line comment./*
This is a multiple-lines comment block.
*/
CSS
/*
This is a multiple-lines comment block.
*/
Perl
#This is a comment.
C
/* This is a comment.*/
C++
// This is a single-line comment.
#This is a comment.
PHP
// This is a single-line comment.
# This is also a single-line comment.
/*
This is a multiple-lines comment block.
*/
Python
# This is a comment.
"""
This is a multiple-lines comment block.
"""
HTML
<!--This is a comment.-->
Jacascript
// This is a single-line comment./*
This is a multiple-lines comment block.
*/
CSS
/*
This is a multiple-lines comment block.
*/
Perl
#This is a comment.
C
/* This is a comment.*/
C++
// This is a single-line comment.
2018年3月27日 星期二
Instruction Set Architecture(指令集架構ISA)
定義
ISA allows communcation between software & hardware
It is also a group of COMMANDS for a CPU in machine language.
one software command can use a group sets of hardware commands, like 'copy' in software can use 'add,push,pop' in Hardware.
Instruction/Commands is also called a.k.a Opcode or Operation code
Example of Opcodes:
ADD,JUMP,STORE
Two types of ISA: CISC & RISC
CISC(complex Instruction set computing):
Large number of instructions sets
RISC(Reducted Instruction Set Computing):
Lesser set of instructions
Example of CISC & RISC
CISC
A * B
MULT A,B
RISC
A * B
Load R1,A
Load R2,B
Prod A,B
Store R3,A
Different between two
Instructions Sets
CISC > RISC
CISC is emphasis on Hardware(硬體複雜軟體簡單)
RISC is emphasis on Software(硬體簡單軟體複雜)
Execution Time
CISC is Multiple No. cycle per Instruction
RISC is 1 cycle per Instruction
Conclusion:
Both are suitable at its specific applications
E.P.I.C
Explicity Parallel Instruction Computing
ISA allows communcation between software & hardware
It is also a group of COMMANDS for a CPU in machine language.
one software command can use a group sets of hardware commands, like 'copy' in software can use 'add,push,pop' in Hardware.
Instruction/Commands is also called a.k.a Opcode or Operation code
Example of Opcodes:
ADD,JUMP,STORE
Two types of ISA: CISC & RISC
CISC(complex Instruction set computing):
Large number of instructions sets
RISC(Reducted Instruction Set Computing):
Lesser set of instructions
Example of CISC & RISC
CISC
A * B
MULT A,B
RISC
A * B
Load R1,A
Load R2,B
Prod A,B
Store R3,A
Different between two
Instructions Sets
CISC > RISC
CISC is emphasis on Hardware(硬體複雜軟體簡單)
RISC is emphasis on Software(硬體簡單軟體複雜)
Execution Time
CISC is Multiple No. cycle per Instruction
RISC is 1 cycle per Instruction
Conclusion:
Both are suitable at its specific applications
E.P.I.C
Explicity Parallel Instruction Computing
訂閱:
文章 (Atom)