打开的页面关闭后刷新主页面
摘要:有时候需要在一个页面A上点击打开另一个页面B ,在页面B关闭后刷新A页面,可以用如下的代码实现:var wnd_print = null;function commonProceed() { wnd_print = window.open('../Print.aspx?form_instance_id='+form_instance_id+'&template_id=' + template_id); window.setInterval(check_wnd_print,3000);}function check_wnd_print() { if (wn
阅读全文
posted @
2012-10-31 15:44
袁晓平
阅读(228)
推荐(0)
编译ios版本的ffmpeg0.11.1
摘要:./configure \--cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \--as='gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \--sysroot=/Applications/Xcode.app/Contents/Developer/Platfo
阅读全文
posted @
2012-10-25 21:22
袁晓平
阅读(267)
推荐(0)
vs2012编译openssl
摘要:1、下载openssl源代码,我下载的是openssl-1.0.1c,解压源代码2、打开openssl-1.0.1c\INSTALL.w64,用记事本打开,里面解释了如何编译openssl3、下载ActivePerl,可以百度或到http://www.activestate.com/ActivePerl4、解压ActivePerl包,并将bin目录加入到Path环境里5、开始\应用程序\Visual Studio 2012\Visual Studio Tools\ Visual Studio Native x64 Tools Command6、cd openssl-1.0.1c,然后执行以下命
阅读全文
posted @
2012-10-23 19:24
袁晓平
阅读(2324)
推荐(1)
使用boost iostream写文件
摘要:下截boost库,解压,不需要编译,配置属性》C/C++》常规》附加包含目录,添加boost解压后的目录地址,如下图,打开vs2012,新建一个控制台应用程序,源代码如下:#include <ostream>#include <boost/iostreams/device/file.hpp>#include <boost/iostreams/stream.hpp>namespace io = boost::iostreams;int main(){ io::stream_buffer<io::file_sink> buf("log.tx
阅读全文
posted @
2012-10-20 21:08
袁晓平
阅读(1595)
推荐(0)
转换日期为中文数字
摘要:using System;using System.Web;using System.Text;using System.Text.RegularExpressions;namespace DC { class DateConvertor { private static DateConvertor m_DateConvert = null; private char[] strChinese; private DateConvertor() { strChinese = new char[] { '〇','一','二','三',
阅读全文
posted @
2012-10-10 18:23
袁晓平
阅读(497)
推荐(0)