public static string GetHttpResponse(string url) {
string content = ""; // Create a new HttpWebRequest object.Make sure that // a
default proxy is se....
分类:
其他好文 时间:
2014-05-16 21:43:22
阅读次数:
360
轨道力学中二体问题下求解兰伯特方程需要解决一个迭代问题。这是一个老外写的,有很多注释,相信大家应该能看懂,经实际检测,切实可用function
[v1,v2]=solve_lambert(r1,r2,t,GM,lw,N,branch)%This routine implements a new
al...
分类:
其他好文 时间:
2014-05-16 20:36:40
阅读次数:
1531
string strPatten = "(src|href)=(.*?)[>| ]";
string strContent = " "; Regex reg = new Regex(strPatten); foreach (Match match
in...
分类:
其他好文 时间:
2014-05-16 20:00:47
阅读次数:
266
辗转相除,又名欧几里德算法(Euclidean
algorithm)乃求两个正整数之最大公约数的算法。此处用函数的递归调用编写了一个小程序:int gcd(int a,int b){ if(a%b==0)
return b; else return gcd(b,a%b)...
分类:
其他好文 时间:
2014-05-14 10:20:27
阅读次数:
241
检测浏览器是否支持WebSocket var WebSocketsExist = true;
try { var dummy = new WebSocket("ws://localhost:8989/test"); } catch (ex) { try
{ ...
分类:
Web程序 时间:
2014-05-14 09:29:12
阅读次数:
401
这里先给出一段代码:function a(){ setTimeout(function(){
console.log("setTimeout") },2000); function oneSecond(){ var now = new Date()...
分类:
其他好文 时间:
2014-05-14 09:20:02
阅读次数:
271
oracle 导出多张表数据及结构exp qdcenter/qdcenter@oracle11g
file=d:\daochu.dmp tables=(t_newsfile,t_news,t_news_catelogy)
分类:
数据库 时间:
2014-05-14 09:08:44
阅读次数:
313
引用infoQ的一片文章《JavaScript的实例化与继承:请停止使用new关键字》一段话:"传统的实例化与继承假设我们有两个类,Class:function
Class() {}和SubClass:function SubClass(){},SubClass需要继承自Class。传统方法一般是按...
分类:
编程语言 时间:
2014-05-14 08:29:41
阅读次数:
258
byte[] FileByteArray = new byte[FileLength];
//图象文件临时储存Byte数组 //Stream StreamObject = UpFile.InputStream; //建立数据流对像
/////读取图象文件数据,FileByteArray为数据储存.....
分类:
数据库 时间:
2014-05-14 08:24:40
阅读次数:
394
import java.awt.*;import javax.swing.*;public class
GridBagDemo extends JFrame { public static void main(String args[]) {
GridBagDemo demo = new GridB...
分类:
编程语言 时间:
2014-05-14 08:23:37
阅读次数:
298