namespace ConsoleAppSyncDownload{ class Program { static void Main(string[] args) { WebClient webClient = new WebClient(); //Console.Write("输入下载文件地址:"...
分类:
Web程序 时间:
2014-08-24 23:44:53
阅读次数:
309
看了unix环境高级编程第三章,把代码也都自己敲了一遍,另主要讲解了一些IO函数,read/write/fseek/fcntl;这里主要是c函数,比较容易,看多了就熟悉了。对fcntl函数讲解比较到位,它可以得到和改变打开文件的属性(只读,只写等等,注意后面和stat区别),下面记录了自己在学习.....
分类:
其他好文 时间:
2014-08-24 22:09:33
阅读次数:
291
cat /etc/vsftpd/vsftpd.conf |grep -v ‘^#‘;
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_form...
分类:
其他好文 时间:
2014-08-24 19:37:33
阅读次数:
278
今天在阿里云虚拟机上部署新站点后出现下面的错误:Compiler Error Message: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP....
分类:
数据库 时间:
2014-08-23 20:18:41
阅读次数:
256
普通情况下,Response.Redirect 方法是在server端进行转向,因此,除非使用 Response.Write("") 方法外,是不能在新窗体打开所指定的 URL 地址的。可是,假设细致分析一下,假设设置 form 元素的 target 属性,还是有办法打开新窗体的。以下就是能够採用的...
Question:Given a sorted array of strings which is interspersed with empty strings, write a method to find the location of a given string. 1 package P....
分类:
其他好文 时间:
2014-08-23 15:09:11
阅读次数:
179
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'的解决原因是目录 的访问权限问题,ubuntu下用下面的命令(其他发行版用管理员权限,把sudo去掉)sudo chown -R mysql...
分类:
数据库 时间:
2014-08-23 15:06:40
阅读次数:
220
A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of the sub...
分类:
其他好文 时间:
2014-08-23 11:22:40
阅读次数:
198
安装了vs2010 和vs2013之后,vs2010 安装了第三方的控件,每次启动2010都installer 工具箱的packge 2c298b35-07da-45f1-96a3-be55d91c8d7a ,查了一些资料,删除了注册表里的相关项后,解决了该问题。Searched through.....
分类:
其他好文 时间:
2014-08-23 11:16:00
阅读次数:
343
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-time complexity? How and why?Write a function ...
分类:
其他好文 时间:
2014-08-23 02:15:59
阅读次数:
157