`
文章列表

Install rz & sz

yum -y install lrzsz
#1.安装如下软件 yum -y groupinstall "Development Tools" yum -y install gtk+-devel gtk2-devel yum -y install libXpm-devel yum -y install libpng-devel yum -y install giflib-devel yum -y install libtiff-devel libjpeg-devel yum -y install ncurses-devel yum -y install gpm-devel dbus-devel dbus-glib-de ...
#include<stdio.h> void main(){ //定义文件指针 FILE *fpa,*fpb; /** fopen(文件路径,操作符); 操作符有 r w a r:只读 w:在文件开头写 a:在文件末尾开始写 */ if( (fpa = fopen("d:\\C\\a.txt","r") ) == NULL){ printf("Can`t open file a.txt"); exit(0); } //没有文件会创建 if( (fpb = fope ...

C的链表

#include <stdio.h> //定义一个结构类型 struct student{ int num; char name[20]; struct student *next; }; //声明空间分配函数 void *malloc(unsigned size); //创建链表的函数 struct student *linklist(){ struct student *head,*tail,*p; char name[20]; int num,size=sizeof(struct student); head ...
php的安装、以module方式,将php与apache 结合 找到php根目录下到“php.ini-dist”文件,将其重命名为“php.ini”,复制一份到windows目录 修改“register_globals = Off”值,这个值是用来打开全局变量的,比如表单送过来的值,如果这个值设为“Off”,就只能用“$_POST['变量名']、$_GET['变量名 ']”等来取得送过来的值,如果设为“On”,就可以直接使用“$变量名”来获取送过来的值,当然,设为“Off”就比较安全,不会让人轻易将网页间传送的数据截取 引入dll文件目录extension_dir = "D:\ ...
可以去 http://snaps.php.net 下载 也可以 https://github.com/infusion/PHP.git 更新最新版本的 或者是http://windows.php.net/download/ 还能下载到早期的版本 下载 cygwin

初步学习elisp

    博客分类:
  • Lisp
;run elisp with C-x C-e (+ 3 4) ;print message (message "hi") ;print variable values (message "this number is %d" 0) ;print string (message "this string is %s" "jianghao") ;any expression (message "what this variable ? %S " (list 1 2 ...
记得加入 NameVirtualHost * 配置虚拟路径 和 虚拟主机 代码 <VirtualHost *:80>     DocumentRoot E:/wordpress     ServerName p.com </VirtualHost> <Directory "E:/wordpress">     AllowOverride None     Order allow,deny     Allow from all </Directory>
1.首先配置 ScriptAlias  目录为自己php根目录 <IfModule alias_module>    ScriptAlias /php/ "D:/Run/php/" </IfModule> 2.配置目录权限 否则无法运行php <Directory "D:/Run/php/">     AllowOverride None     Options None     Order allow,deny     Allow from all </Directory> 3.添加php执行文件类型 &l ...
windows安装 mongodb 下载mongodb (下载地址我就不提供了)解压任意目录 在 commond 操作 进入到解压的mongodb 目录下的bin目录下 (PS:不要认为自己把 bin目录加入到环境变量里面在任意目录安装服务都可以 一定要在bin目录下,我开始就在 自己的用户目录下执行的命令服务 也安装上了 但是启动的时候会报错.找不到文件 仔细一看执行目录不对.) mongod ––dbpath F:\data\mongodb --logpath=F:\data\mongodb\log\mongodb.log --install 服务安装好了以后 就可以 在服务列表里面 ...
<script> /** * 格式化数字 * @param number * @param pattern * @return */ function formatNumber(number,pattern){ var str = number.toString(); var strInt; var strFloat; var formatInt; var formatFloat; if(/\./g.test(pattern)){ formatInt ...
Emacs PHP setting ;;打开php模式 (require 'php-mode) (add-hook 'php-mode-user-hook 'turn-on-font-lock) ;;(setq default-directory &quot;F:/i9fox/I9fox/&quot;) ;;根据文件扩展名自动php-mode (add-to-list 'auto-mode-alist '(&quot;\\.php[34]?\\'\\|\\.phtml\\'&quot; . php-mode)) ;;开发项目时,php源文件使用其 ...

LNMP环境搭建

更新依赖包 yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel o ...
<?php //用面向对象的方法写 将猴子选大王实现 同样数3退1 class Monkey { /** * 定义猴子类 * 属性 编号 $id * 左手 $left 表示的当前猴子左边的猴子 * 右手 $right 表示的当前猴子右边的猴子 */ pub ...

PHP数3退1

<?php $sum = 10; for ($i = 0; $i < $sum; $i++){ $arr[$i] = true; } $count = count($arr); $io = 0; $index = 0; while($count > 1){ if($arr[$index]==true){ $io++; ...
Global site tag (gtag.js) - Google Analytics