转载来自:http://write.blog.csdn.net/postedit/7715729一、测试代码 private void button1_Click(object sender, EventArgs e) { string newSourcePath = ImgPath;//源图存.....
分类:
其他好文 时间:
2014-07-07 12:36:28
阅读次数:
288
asp .NET弹出窗口 汇总(精华,麒麟创想) 注://关闭,父窗口弹出对话框,子窗口直接关闭this.Response.Write("");//关闭,父窗口和子窗口都不弹出对话框,直接关闭this.Response.Write("");//弹出窗口刷新当前页面width=200 height=2...
分类:
Web程序 时间:
2014-07-07 00:36:04
阅读次数:
352
题目:Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a function...
分类:
其他好文 时间:
2014-07-07 00:14:37
阅读次数:
186
在Iframe框架下跳转到登录界面总会跳到子界面中,类似于下图试用Respon.Redirect()不行,用Js函数,但我跳转代码都是写在cs文件中的,用Respose.write(),js函数根本没有执行。最后看到一文章,在后台用Respon.Redirect(),而在登录界面中加入js,如下代码...
分类:
其他好文 时间:
2014-07-05 20:22:41
阅读次数:
215
本文由该问题引入到内核锁的讨论,归纳例如以下为什么须要内核锁?多核处理器下,会存在多个进程处于内核态的情况,而在内核态下,进程是能够訪问全部内核数据的,因此要对共享数据进行保护,即相互排斥处理有哪些内核锁机制?(1)原子操作atomic_t数据类型,atomic_inc(atomic_t *v)将v...
分类:
其他好文 时间:
2014-07-05 17:44:12
阅读次数:
155
socket编程原理1、问题的引入1) 普通的I/O操作过程:UNIX系统的I/O命令集,是从Maltics和早期系统中的命令演变出来的,其模式为打开一读/写一关闭(open-write-read-close)。在一个用户进程进行I/O操作时,它首先调用“打开”获得对指定文件或设备的使用权,并返回称...
分类:
其他好文 时间:
2014-07-03 22:20:26
阅读次数:
158
Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a function to...
分类:
其他好文 时间:
2014-07-03 21:59:51
阅读次数:
199
1.需要session控制的大文件下载,防止因为占用session文件时间太久,导致其他页面的session无法执行session_write_close() worked as a lifesaver for me when automatically uploading files to a u...
分类:
其他好文 时间:
2014-07-03 20:55:34
阅读次数:
217
Given two binary trees, write a function to check if they are equal or not.
分类:
其他好文 时间:
2014-07-03 19:26:46
阅读次数:
213
1. 实现基础的信号处理 sigaction使用前一定内存清零2. 实现基础的进程模型 wait 等待子进程结束#include "common.h"#include "serversignal.h"static volatile sig_atomic_t graceful=0;int main.....
分类:
Web程序 时间:
2014-07-03 12:40:57
阅读次数:
221