码迷,mamicode.com
首页 >  
搜索关键字:direct path write temp    ( 55479个结果)
两道关于binary tree的水题 [Same Tree] [Maximum Depth of Binary Tree]
Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ide...
分类:其他好文   时间:2014-11-15 11:13:11    阅读次数:171
Linux0.00内核为什么要自己设置0x80号陷阱门来调用write_char过程?
我一开始没注意这个问题,只是通过陷阱门觉得很绕弯子,为何不在3级用户代码里直接调用write_char,今天自己写程序想用call调用代码段,才发现了大问题。我写了类似于write_char的过程,代码如下:dividing_line: push%gs pushl%ebx pushl%ecx movl$1,%ecx/*输出1个空格‘..
分类:系统相关   时间:2014-11-15 06:46:46    阅读次数:235
一键优化系统脚本 for centos6.x
#!/bin/bash#setenvexportLANG="en_US.UTF-8"exportPATH=$PATH:/bin/sbin:/usr/sbin#whetherroottorunninguserif[[$(whoami)!=root]];thenecho"pleasesu-rootrunthescript."fiSERVICE=`whichservice`CHKCONFIG=`whichchkconfig`./etc/init.d/functions#installpackagesinstallT..
分类:其他好文   时间:2014-11-15 06:42:14    阅读次数:143
DAS NAS SAN
UNIX LINUX WINDOWS 等服务器的存储主要有两种方式DAS或者是FAS。DAS direct attached storage. 直连存储,服务器和存储直接连接。FAS,fabric-attached-storage,网络附加的存储。FAS又有NAS 和 SAN两种DAS例子:一台吞吐...
分类:其他好文   时间:2014-11-14 23:56:07    阅读次数:286
asp.net mvc 微信公众号token验证
本人的公众号要申请成为开发者,必须经过token认证。微信公众号的官方代码只列出了PHP代码的实例,明显是歧视.net用户。我用的asp.net mvc中的web api,结果调了好久都没有成功,最后发现只要下面几句即可:public void Get(){ string temp = Ht...
分类:微信   时间:2014-11-14 22:40:59    阅读次数:642
交换输出
描述输入n(n 2 3 int main(){ 4 int n; 5 int number[101]; 6 int i; 7 int min; 8 int flag; 9 int temp;10 11 while(1){12 ...
分类:其他好文   时间:2014-11-14 22:25:56    阅读次数:200
php:上传多个文件
path=$path; $this->files=$files; $this->seterror=1; $this->allowtype=array("jpg","gif","JPG","png","jpeg"); $this->filetype=array(); $this->filen...
分类:Web程序   时间:2014-11-14 21:06:55    阅读次数:167
LoadAssetAtPath 与 Load 的区别
一、官方的文档 Resources.LoadAssetAtPathReturns a resource at an asset path (Editor Only).This function always return null in the standalone player or web p....
分类:其他好文   时间:2014-11-14 20:59:57    阅读次数:218
关于同时上传多个图片的类(有点粗糙)
allowtype=Array("jpg","jpeg","gif","png","bmp"); $this->seterror=1; $this->path=$path; $this->docnewname=array(); $this->doctype=array(); $this->...
分类:Web程序   时间:2014-11-14 20:56:45    阅读次数:166
多文件上传
path=$path;$this->files=$files;$this->seterror=1;$this->allowtype=array("jpg","gif","JPG","png");$this->filetype=array();$this->filenewname=array();if...
分类:Web程序   时间:2014-11-14 20:53:31    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!