浮点数

浮点数 浮点数是属于有理数中某特定子集的数的数字表示,在计算机中用以近似表示任意某个实数。具体的说,这个实数由一个整数或定点数 (即尾数) 乘以某

有理数

有理数 有理数是整数和分数的统称,一切有理数都可以化成分数的形式。 有理数可分为整数和分数也可分为正有理数,0,负有理数。除了无限不循环小数以外

IEEE754

IEEE754 IEEE754代码 标准表示法 为便于软件的移植,浮点数的表示格式应该有统一标准 (定义) 。1985年IEEE (Institute of Electrical and Electronics Engineers) 提出了IEEE754标

原码 反码 补码

原码 反码 补码 机器数和真值 在学习原码, 反码和补码之前, 需要先了解机器数和真值的概念. 机器数 一个数在计算机中的二进制表示形式, 叫做这个数的机器数

eclipse basic

eclipse basic java 方法 注释 设置方法注释模板: 选择eclipse菜单栏中【窗口】下的【首选项】,展开左边树状结构, 到Java->代码样式->代

apache basic

apache basic apache path /etc/apache2/apache2.conf /etc/apache2/httpd.conf /var/log/apache2 linux apache 版本 linux 自动安装的 apache: sudo apachectl -v 启动/重启/停止apache服务器 Task: Start Apache 2 Server /启动apache服务 # /etc/init.d/apache2 start or $ sudo /etc/init.d/apache2 start Task: Restart Apache 2 Server /重启

px pt em

px pt em px: pixel,像素,屏幕上显示的最小单位,用于网页设计; pt: point,是一个标准的长度单位,1pt=1/72英寸,用于印刷业; em: 即%,

html textarea

html textarea TextArea 1 2 3 4 5 6 7 <textarea rows="3" cols="30"> 这里是文本域中的文本 ... ... ... ... </textarea> Code: `` Setting TextArea Size The text area size is determined using the attributes “rows” and “cols”. You can change the size of text area by changing the values of rows and cols. Example Code: text area in status 2sdfsdfsdf

开机自动运行

开机自动运行 用户登录时, bash会在用户目录下按顺序查找以下三个文件,执行最先找到的一个. ~/.bash_profile ~/.bash_login ~/.profile 在上述文件中加入相应命令可以启动某些程序. 如

gitosis install

gitosis install 用apt-get update 和 apt-get upgrade 更新当前系统. 安装OpenSSH Server: sudo apt-get install openssh-server 修改ssh服务端配置文件/etc/ssh/sshd_config Port 22 #

git diff

git diff git diff 查看尚未暂存的文件更新了哪些部分 git diff filename 查看尚未暂存的某个文件更新了哪些 git diff –cached 查看已经暂存起来的文件和上次提交的版本之间的

touch

touch touch fileA 更改 fileA 的日期时间, 默认修改 access, modify, change 三个时间, 如果文件fileA不存在touch命令会在当前目录下创建一个空白文件 fileA.

shell 判断文件存在

shell 判断文件存在 myPath=”/var/log/httpd/” myFile=”/var /log/httpd/access.log” -d 参数判断$myPath是否存在 if [ ! -d “$myPath”]; then mkdir “$myPath” fi -f 参数判断$myFile是否存在 if [ ! -f “$myFile” ]; then touch “$myFile” fi “[” 后面要有空格 &l

Emacs 快捷键, keys

Emacs 快捷键, keys C = Control M = Meta = Alt|Esc Del = Backspace 基本快捷键(Basic) C-v 向下翻一页 M-v 向上翻一页 C-x C-f 在缓冲区打开/新建一个文件 C-x C-s 保存文件 C-x C-w 使用其他文件

linux shell sleep,wait

linux shell sleep,wait sleep 5 等待 秒 一、启动后台子任务 在执行命令后加&操作符,表示将命令放在子shell中异步执行。可以达到多线程效果。如下, sleep 10 #等待

emacs copy current line

emacs copy current line ;;copy current line (global-set-key (kbd “C-c C-w”) ‘copy-lines) (defun copy-lines(&optional arg) (interactive “p”) (save-excursion (beginning-of-line) (set-mark (point)) (next-line arg) (kill-ring-save (mark) (point)) ) )

find command

find command find 命令默认会递归遍历子目录 1 2 3 4 5 6 # find pathname -options find / -name '*task*.log' # find by file size # >100MB find . -type f -size +102400k -name 按文件名查找文件 1 2 3 4 5 6 7 8 9 10 11 # -name 按文件名查找

MySQL 备份 还原 导入 导出 export import

MySQL 备份 还原 导入 导出 export import 1 2 3 4 5 6 7 8 9 10 11 12 # Export MySQLdump -uwiloon -pPASSWORD --default-character-set=utf8 enlab >enlab.sql # -u 与 username 之前可以有空格, -p 与 password 之间可以有空格, -p 后也可以不跟密码, 命令执行后会

chmod

chmod 1 2 chmod a+x 1.sh chmod og+rwx 1.sh 格式: [ugoa…][+-=][rwxX…][,…] u 拥有者 g 与拥有者同组的 o 其它用户 a 三者都是 chmod -R a+rw folderName -R 对目录下和所有文件和子目录进行相同的权限变更

emacs 自动补全括号

emacs 自动补全括号 ;;; use groovy-mode when file ends in .groovy/.gradle or has #!/bin/groovy at start (autoload ‘groovy-mode “groovy-mode” “Groovy editing mode.” t) (add-to-list ‘auto-mode-alist ‘(".groovy$” . groovy-mode)) (add-to-list ‘interpreter-mode-alist ‘(“groovy” . groovy-mode)) (add-to-list ‘auto-mode-alist ‘(".gradle$” . groovy-mode)) ;;auto pair (defun code-mode-auto-pair () “autoPair” (interactive) (make-local-variable ‘skeleton-pair-alist) (setq skeleton-pair-alist ‘( (?` ?` _ “"") (?( ? _ " )") (?[ ? _ " ]") (?{ n