RegisterServiceProcess(ProcessID:Long,Type:Long)该函数存在于Kernal32.dll中.Process指向进程的ID,Type表示是否向系统注册该进程,是1,否0.= = = = = = = = = = = = = = = = = = = = = = ...
分类:
其他好文 时间:
2014-08-27 20:21:18
阅读次数:
290
1) greenlet - python中的协程库
1.1) 什么是协程 (Coroutine)
Coroutine Wiki
http://en.wikipedia.org/wiki/Coroutine
CoRoutine是在Thread基础上的再次切分. 每一个Process可以包含多个Thread, 每个线程包含多个CoRoutine在任何时刻, 同一个Threa...
分类:
编程语言 时间:
2014-08-27 18:51:38
阅读次数:
266
在deferred shading 和post process 阶段, 通常要做的一件事情就是讲裁减空间坐标转换到屏幕空间的纹理坐标.这里面通常的做法就是Vertex Shader 输出clip space position 到pixel shader.pixel shader 做除法,然后再 + ...
分类:
其他好文 时间:
2014-08-26 15:10:16
阅读次数:
266
在运行hadoop程序时经常遇到异常java.io.IOException: Task process exit with nonzero status of 1。网上很多博文都说是磁盘不够的问题。 其实我很多时候遇到这个问题是因为程序抛出org.apache.hadoop.mapred.Ch...
分类:
其他好文 时间:
2014-08-26 13:20:56
阅读次数:
191
执行apt-getdist-upgrade时出现“E:Sub-process/usr/bin/dpkgreturnedanerrorcode(1)”,新内核就是不能完成设置,解决办法如下:cd/var/lib/dpkg
mvinfoinfobak;mkdirinfo然后重新来过就没问题了。
分类:
其他好文 时间:
2014-08-26 03:00:06
阅读次数:
197
前言 在Android应用程序的完全退出有点麻烦,系统没有提供完全退出的api。退出单Activity程序 Android系统中提供了以下的方式来退出单Activity的应用程序,如下所示 Process.killProcess(Process.myPid()); System.exit(0...
分类:
其他好文 时间:
2014-08-26 00:25:05
阅读次数:
187
Run the following command first to start the mongo servermongod run --config /usr/local/etc/mongod.confAssuming you installed mongo usingBrew.More inf...
分类:
数据库 时间:
2014-08-26 00:10:15
阅读次数:
554
linux中shell变量$#,$@,$0,$1,$2的含义解释:变量说明:$$Shell本身的PID(ProcessID)$!Shell最后运行的后台Process的PID$?最后运行的命令的结束代码(返回值)$-使用Set命令设定的Flag一览$*所有参数列表。如"$*"用「"」括起来的情况、以"$1$2…$n"的形式输出所有参数。$@所有..
分类:
其他好文 时间:
2014-08-25 19:32:15
阅读次数:
262
如果$b="aa,bb"Start-Process PowerShell.exe -Argumentlist "d:\w.ps1 $a $b $c"Start-Process powershell.exe "d:\w.ps1 $a $b $c"则 $b 中的 逗号 会被识别为特殊字符,在此处会自动被...
分类:
其他好文 时间:
2014-08-25 18:45:24
阅读次数:
194
一、获取当前文件的路径1.System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName获取模块的完整路径,包括文件名。2.System.Environment.CurrentDirectory获取和设置当前目录(该进程从中启动的...
分类:
其他好文 时间:
2014-08-25 18:42:44
阅读次数:
148